Version Description
- Add correct Area layout on WooCommerce pages
- Add compatibility with the Divi Builder plugin
- Improve Exit-Intent logic so that multiple exit-intent popups are displayed one by one instead of all at once
- Improve JS API: The
DiviArea
object exposes additional functions - Improve the minification of CSS files to generate ~16% smaller files
- Improve the background overlay in modern browsers (sorry, does not work in Firefox yet)
- Fix console error that said
could not load style.css.map
- Fix the "Close other Popups" behavior, so now it will really close other popups
- Fix some minor bugs in the popup behavior
Plugin tested with WordPress 5.4.1 and Divi 4.4.6
Download this release
Release Info
Developer | stracker.phil |
Plugin | Popups for Divi |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.5 to 2.1.0
- css/builder.css +1 -53
- css/front.css +1 -242
- js/builder.js +1 -1
- js/front.js +1 -1
- plugin.php +2 -2
- readme.txt +15 -4
css/builder.css
CHANGED
@@ -1,53 +1 @@
|
|
1 |
-
|
2 |
-
* Popups for Divi - styles in page builder
|
3 |
-
*/
|
4 |
-
.popup {
|
5 |
-
box-shadow: 0 3px 10px -1px rgba(0, 0, 0, 0.3), 0 0 20px 2px rgba(0, 0, 0, 0.2);
|
6 |
-
min-width: 360px;
|
7 |
-
max-width: 95%; }
|
8 |
-
|
9 |
-
#et-fb-app .et_pb_section.popup {
|
10 |
-
background-color: #FFF;
|
11 |
-
margin: 30px auto;
|
12 |
-
overflow: visible;
|
13 |
-
z-index: auto; }
|
14 |
-
#et-fb-app .et_pb_section.popup + .et_pb_section.popup {
|
15 |
-
margin-top: 60px; }
|
16 |
-
#et-fb-app .et_pb_section.popup:after {
|
17 |
-
content: '';
|
18 |
-
position: absolute;
|
19 |
-
background: #ccc;
|
20 |
-
left: 50%;
|
21 |
-
top: -30px;
|
22 |
-
bottom: -30px;
|
23 |
-
z-index: -1;
|
24 |
-
width: 10000px;
|
25 |
-
min-width: 100vw;
|
26 |
-
-webkit-transform: translateX(-50%);
|
27 |
-
transform: translateX(-50%); }
|
28 |
-
#et-fb-app .et_pb_section.popup:before {
|
29 |
-
content: "#" attr(id);
|
30 |
-
position: absolute;
|
31 |
-
top: 0px;
|
32 |
-
left: 50%;
|
33 |
-
-webkit-transform: translate(-50%, -100%);
|
34 |
-
transform: translate(-50%, -100%);
|
35 |
-
background: #666;
|
36 |
-
padding: 0 8px;
|
37 |
-
color: #FFF;
|
38 |
-
font-size: 12px;
|
39 |
-
line-height: 26px;
|
40 |
-
font-weight: bold;
|
41 |
-
opacity: 0.5;
|
42 |
-
transition: all 0.3s;
|
43 |
-
bottom: auto;
|
44 |
-
right: auto;
|
45 |
-
z-index: 20;
|
46 |
-
border-radius: 3px 3px 0 0; }
|
47 |
-
#et-fb-app .et_pb_section.popup:hover:before {
|
48 |
-
background: #2B87DA;
|
49 |
-
opacity: 1; }
|
50 |
-
|
51 |
-
.et_fb_hidden_header #et-fb-app .et_pb_section.popup:after {
|
52 |
-
width: 100vw; }
|
53 |
-
|
1 |
+
.popup{box-shadow:0 3px 10px -1px rgba(0,0,0,.3),0 0 20px 2px rgba(0,0,0,.2);min-width:360px;max-width:95%}#et-fb-app .et_pb_section.popup{background-color:#fff;margin:30px auto;overflow:visible;z-index:auto}#et-fb-app .et_pb_section.popup+.et_pb_section.popup{margin-top:60px}#et-fb-app .et_pb_section.popup:after{content:"";position:absolute;background:#ccc;left:50%;top:-30px;bottom:-30px;z-index:-1;width:10000px;min-width:100vw;-webkit-transform:translateX(-50%);transform:translateX(-50%)}#et-fb-app .et_pb_section.popup:before{content:"#" attr(id);position:absolute;top:0;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%);background:#666;padding:0 8px;color:#fff;font-size:12px;line-height:26px;font-weight:700;opacity:.5;transition:all .3s;bottom:auto;right:auto;z-index:20;border-radius:3px 3px 0 0}#et-fb-app .et_pb_section.popup:hover:before{background:#2b87da;opacity:1}.et_fb_hidden_header #et-fb-app .et_pb_section.popup:after{width:100vw}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/front.css
CHANGED
@@ -1,242 +1 @@
|
|
1 |
-
|
2 |
-
* Divi Areas Pro - styles for front-end
|
3 |
-
**/
|
4 |
-
.evr_fb_popup_modal {
|
5 |
-
position: fixed;
|
6 |
-
left: 0;
|
7 |
-
top: 0;
|
8 |
-
right: 0;
|
9 |
-
bottom: 0;
|
10 |
-
background: rgba(0, 0, 0, 0.55);
|
11 |
-
z-index: 99; }
|
12 |
-
|
13 |
-
[data-dm-type=popup][id],
|
14 |
-
.divi-area-wrap-fly-in {
|
15 |
-
box-shadow: 0 3px 10px -1px rgba(0, 0, 0, 0.3), 0 2px 50px 2px rgba(0, 0, 0, 0.2);
|
16 |
-
background-color: #fff; }
|
17 |
-
[data-dm-type=popup][id].divi-area-wrap,
|
18 |
-
.divi-area-wrap-fly-in.divi-area-wrap {
|
19 |
-
background-color: transparent; }
|
20 |
-
|
21 |
-
.popup_outer_wrap {
|
22 |
-
position: fixed;
|
23 |
-
z-index: 100;
|
24 |
-
pointer-events: none;
|
25 |
-
max-width: 100vw;
|
26 |
-
max-height: 100vh; }
|
27 |
-
.popup_outer_wrap.type-popup {
|
28 |
-
min-width: 320px; }
|
29 |
-
@media screen and (min-width: 981px) {
|
30 |
-
.popup_outer_wrap.type-popup {
|
31 |
-
width: 90%; } }
|
32 |
-
@media screen and (max-width: 980px) {
|
33 |
-
.popup_outer_wrap.type-popup {
|
34 |
-
width: calc(100% - 20px); } }
|
35 |
-
.popup_outer_wrap.type-inline {
|
36 |
-
position: relative;
|
37 |
-
top: unset;
|
38 |
-
bottom: unset;
|
39 |
-
left: unset;
|
40 |
-
right: unset;
|
41 |
-
width: unset;
|
42 |
-
height: unset;
|
43 |
-
-webkit-transform: unset;
|
44 |
-
transform: unset;
|
45 |
-
max-width: unset;
|
46 |
-
max-height: unset; }
|
47 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-top-left {
|
48 |
-
left: 0;
|
49 |
-
top: 0; }
|
50 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-top-center {
|
51 |
-
left: 50%;
|
52 |
-
top: 0;
|
53 |
-
-webkit-transform: translate(-50%, 0);
|
54 |
-
transform: translate(-50%, 0); }
|
55 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-top-center.type-hover {
|
56 |
-
-webkit-transform: translate(-50%, -100%);
|
57 |
-
transform: translate(-50%, -100%); }
|
58 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-top-right {
|
59 |
-
right: 0;
|
60 |
-
top: 0; }
|
61 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-center-left {
|
62 |
-
left: 0;
|
63 |
-
top: 50%; }
|
64 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-center-left:not([class*=" popup_full_height"]) {
|
65 |
-
-webkit-transform: translate(0, -50%);
|
66 |
-
transform: translate(0, -50%); }
|
67 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-center-left.type-hover {
|
68 |
-
-webkit-transform: translate(-100%, -50%);
|
69 |
-
transform: translate(-100%, -50%); }
|
70 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-center-center {
|
71 |
-
left: 50%;
|
72 |
-
top: 50%; }
|
73 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-center-center:not([class*=" popup_full_height"]) {
|
74 |
-
-webkit-transform: translate(-50%, -50%);
|
75 |
-
transform: translate(-50%, -50%); }
|
76 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-center-right {
|
77 |
-
right: 0;
|
78 |
-
top: 50%; }
|
79 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-center-right:not([class*=" popup_full_height"]) {
|
80 |
-
-webkit-transform: translate(0, -50%);
|
81 |
-
transform: translate(0, -50%); }
|
82 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-bottom-left {
|
83 |
-
left: 0;
|
84 |
-
bottom: 0; }
|
85 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-bottom-center {
|
86 |
-
left: 50%;
|
87 |
-
bottom: 0;
|
88 |
-
-webkit-transform: translate(-50%, 0);
|
89 |
-
transform: translate(-50%, 0); }
|
90 |
-
.popup_outer_wrap:not([class*=" type-inline"]).position-bottom-right {
|
91 |
-
right: 0;
|
92 |
-
bottom: 0; }
|
93 |
-
.popup_outer_wrap:not([class*=" type-inline"]).popup_full_width {
|
94 |
-
-webkit-transform: translateY(-50%);
|
95 |
-
transform: translateY(-50%);
|
96 |
-
width: 100%;
|
97 |
-
left: 0; }
|
98 |
-
.popup_outer_wrap:not([class*=" type-inline"]).popup_full_width > [data-dm-type=popup] {
|
99 |
-
max-width: 100%;
|
100 |
-
overflow-x: auto; }
|
101 |
-
.popup_outer_wrap:not([class*=" type-inline"]).popup_full_height {
|
102 |
-
-webkit-transform: translate(-50%, -50%);
|
103 |
-
transform: translate(-50%, -50%);
|
104 |
-
height: 100%;
|
105 |
-
height: calc(100% - 20px);
|
106 |
-
top: 50%; }
|
107 |
-
.popup_outer_wrap:not([class*=" type-inline"]).popup_full_height > [data-dm-type=popup] {
|
108 |
-
max-height: 100%;
|
109 |
-
overflow-y: auto; }
|
110 |
-
.popup_outer_wrap:not([class*=" type-inline"]).popup_full_width.popup_full_height {
|
111 |
-
-webkit-transform: none;
|
112 |
-
transform: none; }
|
113 |
-
.popup_outer_wrap:not([class*=" type-inline"]).popup_full_width.popup_full_height > [data-dm-type=popup] {
|
114 |
-
overflow: auto; }
|
115 |
-
.popup_outer_wrap .divi-area-wrap,
|
116 |
-
.popup_outer_wrap [data-dm-type=popup] {
|
117 |
-
position: relative;
|
118 |
-
background-repeat: no-repeat;
|
119 |
-
background-position: center center;
|
120 |
-
margin: auto;
|
121 |
-
transition: all 0.3s;
|
122 |
-
pointer-events: all; }
|
123 |
-
.popup_outer_wrap .divi-area-wrap.with-loader,
|
124 |
-
.popup_outer_wrap [data-dm-type=popup].with-loader {
|
125 |
-
background-image: url(../img/spin.gif), radial-gradient(circle at center, #fff 65%, #fff0 66%) !important;
|
126 |
-
background-size: 32px 32px, 48px 48px; }
|
127 |
-
.popup_outer_wrap .divi-area-wrap.no-shadow,
|
128 |
-
.popup_outer_wrap [data-dm-type=popup].no-shadow {
|
129 |
-
box-shadow: none; }
|
130 |
-
.popup_outer_wrap .divi-area-wrap .et_pb_row:after,
|
131 |
-
.popup_outer_wrap .divi-area-wrap .et_pb_row_inner:after,
|
132 |
-
.popup_outer_wrap .divi-area-wrap .et_pb_slides:after,
|
133 |
-
.popup_outer_wrap .divi-area-wrap .clearfix:after,
|
134 |
-
.popup_outer_wrap [data-dm-type=popup] .et_pb_row:after,
|
135 |
-
.popup_outer_wrap [data-dm-type=popup] .et_pb_row_inner:after,
|
136 |
-
.popup_outer_wrap [data-dm-type=popup] .et_pb_slides:after,
|
137 |
-
.popup_outer_wrap [data-dm-type=popup] .clearfix:after {
|
138 |
-
content: ""; }
|
139 |
-
|
140 |
-
@media screen and (min-width: 783px) {
|
141 |
-
.admin-bar .popup_outer_wrap.popup_full_height {
|
142 |
-
height: calc(100% - 52px);
|
143 |
-
margin-top: 16px; } }
|
144 |
-
|
145 |
-
@media screen and (min-width: 601px) and (max-width: 782px) {
|
146 |
-
.admin-bar .popup_outer_wrap.popup_full_height {
|
147 |
-
height: calc(100% - 66px);
|
148 |
-
margin-top: 23px; } }
|
149 |
-
|
150 |
-
/* Used in front-end when a popup is displayed to a visitor */
|
151 |
-
#page-container #main-content {
|
152 |
-
transition: all 0s; }
|
153 |
-
|
154 |
-
body.evr_popup_open {
|
155 |
-
overflow: hidden; }
|
156 |
-
body.evr_popup_open #page-container #main-content {
|
157 |
-
transition: all 0.5s 1s;
|
158 |
-
-webkit-filter: blur(2px);
|
159 |
-
filter: blur(2px);
|
160 |
-
opacity: 0.75; }
|
161 |
-
|
162 |
-
.divi-area-wrap {
|
163 |
-
position: relative; }
|
164 |
-
|
165 |
-
/* Styles that are shared between Popups for Divi and Divi Areas Pro */
|
166 |
-
.divi-area-wrap.with-close .evr-close_wrap,
|
167 |
-
.popup_outer_wrap [data-dm-type=popup].with-close .evr-close_wrap {
|
168 |
-
display: block !important; }
|
169 |
-
|
170 |
-
.divi-area-wrap.no-close .evr-close_wrap,
|
171 |
-
.popup_outer_wrap [data-dm-type=popup].no-close .evr-close_wrap {
|
172 |
-
display: none !important; }
|
173 |
-
|
174 |
-
.divi-area-wrap .evr-close_wrap,
|
175 |
-
.popup_outer_wrap [data-dm-type=popup] .evr-close_wrap {
|
176 |
-
position: absolute;
|
177 |
-
right: 0;
|
178 |
-
top: 0;
|
179 |
-
opacity: 0.2;
|
180 |
-
z-index: 100;
|
181 |
-
text-align: right;
|
182 |
-
transition: opacity 0.6s 0.3s; }
|
183 |
-
|
184 |
-
.divi-area-wrap .evr-close,
|
185 |
-
.popup_outer_wrap [data-dm-type=popup] .evr-close {
|
186 |
-
display: block;
|
187 |
-
box-sizing: content-box;
|
188 |
-
width: 30px;
|
189 |
-
height: 30px;
|
190 |
-
line-height: 30px;
|
191 |
-
text-align: center;
|
192 |
-
font-family: "Courier New", monospace;
|
193 |
-
font-size: 20px;
|
194 |
-
font-weight: bold;
|
195 |
-
cursor: pointer;
|
196 |
-
color: #333;
|
197 |
-
background: #fff2;
|
198 |
-
opacity: 0.7;
|
199 |
-
box-shadow: 0 0 3px 1px #00000008;
|
200 |
-
transition: all 0.3s; }
|
201 |
-
.divi-area-wrap .evr-close:hover, .divi-area-wrap .evr-close:focus, .divi-area-wrap .evr-close:active,
|
202 |
-
.popup_outer_wrap [data-dm-type=popup] .evr-close:hover,
|
203 |
-
.popup_outer_wrap [data-dm-type=popup] .evr-close:focus,
|
204 |
-
.popup_outer_wrap [data-dm-type=popup] .evr-close:active {
|
205 |
-
color: #000;
|
206 |
-
background: #fff;
|
207 |
-
opacity: 1;
|
208 |
-
box-shadow: 0 0 4px 0 #0002, 0 0 3px 1px #0001;
|
209 |
-
-webkit-transform: scale(1.1);
|
210 |
-
transform: scale(1.1); }
|
211 |
-
|
212 |
-
.divi-area-wrap.dark .evr-close,
|
213 |
-
.popup_outer_wrap [data-dm-type=popup].dark .evr-close {
|
214 |
-
color: #eee;
|
215 |
-
background: #0002;
|
216 |
-
box-shadow: 0 0 0 1px #ffffff08;
|
217 |
-
text-shadow: 0px 0px 1px #000, 0px 0px 3px #000a; }
|
218 |
-
.divi-area-wrap.dark .evr-close:hover, .divi-area-wrap.dark .evr-close:focus, .divi-area-wrap.dark .evr-close:active,
|
219 |
-
.popup_outer_wrap [data-dm-type=popup].dark .evr-close:hover,
|
220 |
-
.popup_outer_wrap [data-dm-type=popup].dark .evr-close:focus,
|
221 |
-
.popup_outer_wrap [data-dm-type=popup].dark .evr-close:active {
|
222 |
-
color: #fff;
|
223 |
-
background: #2b2b2b;
|
224 |
-
box-shadow: 0 0 1px 1px #fff3; }
|
225 |
-
|
226 |
-
.divi-area-wrap.is-open .evr-close_wrap,
|
227 |
-
.popup_outer_wrap [data-dm-type=popup].is-open .evr-close_wrap {
|
228 |
-
opacity: 1;
|
229 |
-
transition: opacity 0.6s 0.3s; }
|
230 |
-
|
231 |
-
.divi-area-wrap.close-alt .evr-close,
|
232 |
-
.popup_outer_wrap [data-dm-type=popup].close-alt .evr-close {
|
233 |
-
box-shadow: none !important;
|
234 |
-
background: transparent !important; }
|
235 |
-
|
236 |
-
.divi-area-wrap .et_pb_contact_select,
|
237 |
-
.popup_outer_wrap [data-dm-type=popup] .et_pb_contact_select {
|
238 |
-
-moz-appearance: textfield; }
|
239 |
-
|
240 |
-
.popup_outer_wrap [data-dm-registered] {
|
241 |
-
display: block !important; }
|
242 |
-
|
1 |
+
.evr_fb_popup_modal{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}.evr_popup_open .evr_fb_popup_modal{-webkit-backdrop-filter:saturate(180%) blur(5px);backdrop-filter:saturate(180%) blur(5px)}.divi-area-wrap-fly-in,[data-dm-type=popup][id]{box-shadow:0 3px 10px -1px rgba(0,0,0,.3),0 2px 50px 2px rgba(0,0,0,.2);background-color:#fff}.divi-area-wrap-fly-in.divi-area-wrap,[data-dm-type=popup][id].divi-area-wrap{background-color:transparent}.popup_outer_wrap{position:fixed;z-index:100;pointer-events:none;max-width:100vw;max-height:100vh}.popup_outer_wrap.type-popup{min-width:320px}@media screen and (min-width:981px){.popup_outer_wrap.type-popup{width:90%}}@media screen and (max-width:980px){.popup_outer_wrap.type-popup{width:calc(100% - 20px)}}.popup_outer_wrap.type-inline{position:relative;top:unset;bottom:unset;left:unset;right:unset;width:unset;height:unset;-webkit-transform:unset;transform:unset;max-width:unset;max-height:unset}.popup_outer_wrap:not([class*=" type-inline"]).position-top-left{left:0;top:0}.popup_outer_wrap:not([class*=" type-inline"]).position-top-center{left:50%;top:0;-webkit-transform:translate(-50%);transform:translate(-50%)}.popup_outer_wrap:not([class*=" type-inline"]).position-top-center.type-hover{-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.popup_outer_wrap:not([class*=" type-inline"]).position-top-right{right:0;top:0}.popup_outer_wrap:not([class*=" type-inline"]).position-center-left{left:0;top:50%}.popup_outer_wrap:not([class*=" type-inline"]).position-center-left:not([class*=" popup_full_height"]){-webkit-transform:translateY(-50%);transform:translateY(-50%)}.popup_outer_wrap:not([class*=" type-inline"]).position-center-left.type-hover{-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.popup_outer_wrap:not([class*=" type-inline"]).position-center-center{left:50%;top:50%}.popup_outer_wrap:not([class*=" type-inline"]).position-center-center:not([class*=" popup_full_height"]){-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.popup_outer_wrap:not([class*=" type-inline"]).position-center-right{right:0;top:50%}.popup_outer_wrap:not([class*=" type-inline"]).position-center-right:not([class*=" popup_full_height"]){-webkit-transform:translateY(-50%);transform:translateY(-50%)}.popup_outer_wrap:not([class*=" type-inline"]).position-bottom-left{left:0;bottom:0}.popup_outer_wrap:not([class*=" type-inline"]).position-bottom-center{left:50%;bottom:0;-webkit-transform:translate(-50%);transform:translate(-50%)}.popup_outer_wrap:not([class*=" type-inline"]).position-bottom-right{right:0;bottom:0}.popup_outer_wrap:not([class*=" type-inline"]).popup_full_width{-webkit-transform:translateY(-50%);transform:translateY(-50%);width:100%;left:0}.popup_outer_wrap:not([class*=" type-inline"]).popup_full_width>[data-dm-type=popup]{max-width:100%;overflow-x:auto}.popup_outer_wrap:not([class*=" type-inline"]).popup_full_height{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);height:100%;height:calc(100% - 20px);top:50%}.popup_outer_wrap:not([class*=" type-inline"]).popup_full_height>[data-dm-type=popup]{max-height:100%;overflow-y:auto}.popup_outer_wrap:not([class*=" type-inline"]).popup_full_width.popup_full_height{-webkit-transform:none;transform:none}.popup_outer_wrap:not([class*=" type-inline"]).popup_full_width.popup_full_height>[data-dm-type=popup]{overflow:auto}.popup_outer_wrap .divi-area-wrap,.popup_outer_wrap [data-dm-type=popup]{position:relative;background-repeat:no-repeat;background-position:50%;margin:auto;transition:all .3s;pointer-events:all}.popup_outer_wrap .divi-area-wrap.with-loader,.popup_outer_wrap [data-dm-type=popup].with-loader{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}.popup_outer_wrap .divi-area-wrap.no-shadow,.popup_outer_wrap [data-dm-type=popup].no-shadow{box-shadow:none}.popup_outer_wrap .divi-area-wrap .clearfix:after,.popup_outer_wrap .divi-area-wrap .et_pb_row:after,.popup_outer_wrap .divi-area-wrap .et_pb_row_inner:after,.popup_outer_wrap .divi-area-wrap .et_pb_slides:after,.popup_outer_wrap [data-dm-type=popup] .clearfix:after,.popup_outer_wrap [data-dm-type=popup] .et_pb_row:after,.popup_outer_wrap [data-dm-type=popup] .et_pb_row_inner:after,.popup_outer_wrap [data-dm-type=popup] .et_pb_slides:after{content:""}@media screen and (min-width:783px){.admin-bar .popup_outer_wrap.popup_full_height{height:calc(100% - 52px);margin-top:16px}}@media screen and (min-width:601px) and (max-width:782px){.admin-bar .popup_outer_wrap.popup_full_height{height:calc(100% - 66px);margin-top:23px}}#page-container #main-content{transition:all 0s}body.evr_popup_open{overflow:hidden}.divi-area-wrap{position:relative}#et-boc .divi-area-wrap.with-close .evr-close_wrap,.popup_outer_wrap [data-dm-type=popup].with-close .evr-close_wrap{display:block!important}#et-boc .divi-area-wrap.no-close .evr-close_wrap,.popup_outer_wrap [data-dm-type=popup].no-close .evr-close_wrap{display:none!important}#et-boc .divi-area-wrap .evr-close_wrap,.popup_outer_wrap [data-dm-type=popup] .evr-close_wrap{position:absolute;right:0;top:0;opacity:.2;z-index:100;text-align:right;transition:opacity .6s .3s}#et-boc .divi-area-wrap .evr-close,.popup_outer_wrap [data-dm-type=popup] .evr-close{display:block;box-sizing:content-box;width:30px;height:30px;line-height:30px;text-align:center!important;font-family:Courier New,monospace;font-size:20px;font-weight:700;cursor:pointer;color:#333;background:hsla(0,0%,100%,.13);opacity:.7;box-shadow:0 0 3px 1px rgba(0,0,0,.03);transition:all .3s}#et-boc .divi-area-wrap .evr-close:active,#et-boc .divi-area-wrap .evr-close:focus,#et-boc .divi-area-wrap .evr-close:hover,.popup_outer_wrap [data-dm-type=popup] .evr-close:active,.popup_outer_wrap [data-dm-type=popup] .evr-close:focus,.popup_outer_wrap [data-dm-type=popup] .evr-close:hover{color:#000;background:#fff;opacity:1;box-shadow:0 0 4px 0 rgba(0,0,0,.13),0 0 3px 1px rgba(0,0,0,.07);-webkit-transform:scale(1.1);transform:scale(1.1)}#et-boc .divi-area-wrap.dark .evr-close,.popup_outer_wrap [data-dm-type=popup].dark .evr-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 .divi-area-wrap.dark .evr-close:active,#et-boc .divi-area-wrap.dark .evr-close:focus,#et-boc .divi-area-wrap.dark .evr-close:hover,.popup_outer_wrap [data-dm-type=popup].dark .evr-close:active,.popup_outer_wrap [data-dm-type=popup].dark .evr-close:focus,.popup_outer_wrap [data-dm-type=popup].dark .evr-close:hover{color:#fff;background:#2b2b2b;box-shadow:0 0 1px 1px hsla(0,0%,100%,.2)}#et-boc .divi-area-wrap.is-open .evr-close_wrap,.popup_outer_wrap [data-dm-type=popup].is-open .evr-close_wrap{opacity:1;transition:opacity .6s .3s}#et-boc .divi-area-wrap.close-alt .evr-close,.popup_outer_wrap [data-dm-type=popup].close-alt .evr-close{box-shadow:none!important;background:transparent!important}#et-boc .divi-area-wrap .et_pb_contact_select,.popup_outer_wrap [data-dm-type=popup] .et_pb_contact_select{-moz-appearance:textfield}.popup_outer_wrap [data-dm-registered]{display:block!important}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/builder.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var e={};function o(a){if(e[a])return e[a].exports;var s=e[a]={i:a,l:!1,exports:{}};return t[a].call(s.exports,s,s.exports,o),s.l=!0,s.exports}o.m=t,o.c=e,o.d=function(t,e,a){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)o.d(a,s,function(e){return t[e]}.bind(null,s));return a},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=14)}([function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.debugGroup=function(t){if(DiviPopupData.debug&&console.group){var e=!a||t&&t!==a;if(a&&(console.groupEnd(),a=!1),t&&e){var o=Array.prototype.slice.call(arguments);o.unshift("[DiviAreas]"),console.group.apply(this,o),a=t}}},e.debugTable=function(){if(DiviPopupData.debug){var t=Array.prototype.slice.call(arguments);Array.isArray(t[0])||(t=[t]),console.table?console.table.apply(this,t):console.log.apply(this,t)}},e.verbose=function(){if(DiviPopupData.debug&&DiviPopupData.debugVerbose){var t=Array.prototype.slice.call(arguments);t.unshift("color:#cfd8dc;font-style:italic"),t.unshift("[DiviAreas] %c%s"),console.debug.apply(this,t)}},e.debug=function(){if(DiviPopupData.debug){var t=Array.prototype.slice.call(arguments);t.unshift("color:#90a4ae"),t.unshift("[DiviAreas] %c%s"),console.debug.apply(this,t)}},e.info=function(){if(DiviPopupData.debug){var t=Array.prototype.slice.call(arguments);t.unshift("color:#0288d1;background:#fafcfe"),t.unshift("[DiviAreas] %c%s"),console.log.apply(this,t)}},e.error=function(){var t=Array.prototype.slice.call(arguments);t.unshift("[DiviAreas]"),console.error.apply(this,t)},e.initErrorLogging=function(e){var a=function(t,e,o){if(!t[e]||!t[e].__dm_orig__){var a=t[e];for(var s in t[e]=function(){var t=!1;try{t=o.apply(this,arguments)}finally{try{if(!t&&a){var e=a.apply(this,arguments);return e}}catch(t){throw t}}},a)a.hasOwnProperty(s)&&(t[e][s]=a[s]);t[e].__dm_orig__=a}},s=function(){var e=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var a=0;a<arguments.length;a++)if("object"===o(arguments[a])&&arguments[a]&&arguments[a].message&&arguments[a].stack){e=arguments[a];break}if(e){var s=[],r=e.stack.toString().split("\n");if(s.push("divimode.com Anonymized Error Report"),s.push("-".repeat(30)),s.push(e.name),e.message?s.push(e.message):s.push("-"),s.push(""),r&&r.length>1)for(var n=0;n<r.length;n++){var i=r[n];if(i.match(/(\/wp-includes\/|\/jquery\.js)/))break;i.match(/\.js/)&&(i=(i=(i=i.replace(/^\s+|\s+$/g,"")).replace(/https?:.*?\/wp-content/g,"")).replace(/\.js\?[\w=&_\-\.]*/g,".js"),s.push(i))}if(t.DiviPopupData&&DiviPopupData.sys)for(var u in s.push(""),DiviPopupData.sys)try{s.push(u+": "+DiviPopupData.sys[u])}catch(t){}s.push("-".repeat(30));var d=console.error.__dm_orig__||console.error;return console.log(""),d("✋ "+s.join("\n| ")),console.log(""),!0}return!1};a(e,"onerror",s),a(e.console,"error",s)};var a=!1}).call(this,o(5))},,,,,function(t,e){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(o=window)}t.exports=o},,,,,,,,,function(t,e,o){o(15),t.exports=o(17)},function(t,e,o){"use strict";var a=function(t){return t&&t.__esModule?t:{default:t}}(o(16));(0,o(0).initErrorLogging)(window),jQuery(window).on("et_fb_init",function(){window.DiviAreaVB=window.DiviAreaVB||new a.default})},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var o=0;o<e.length;o++){var a=e[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,o,a){return o&&t(e.prototype,o),a&&t(e,a),e}}();var s=!1,r=!1,n=!1,i=!1,u={},d={module_id:"",module_class:"",da_is_popup:"off",da_popup_slug:"",da_exit_intent:"off",da_has_close:"on",da_alt_close:"off",da_dark_close:"off",da_not_modal:"on",da_is_singular:"off",da_with_loader:"off",da_has_shadow:"on",da_disable_devices:"off|off|off"},l=0,f=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.init=this.init.bind(this),window.setTimeout(this.init,20)}return a(t,[{key:"init",value:function(){if(window.ET_Builder){var t=(window._daConfig||{}).divi_areas_cpt||"divi-area";((((ET_Builder.Frames||{}).app||{}).ETBuilderBackendDynamic||{}).postType||"page")!==t&&this.startObserver()}else{if(!(++l<10))throw new Error("Could not initilize the Library (ET_Builder is undefined)");window.setTimeout(this.init,250)}}},{key:"startObserver",value:function(){var t=this;s&&this.stopObserver();var e=this.getAppFrame();if(e){var o=jQuery(e.document),a=this.sanitizeSlug;s=window.setInterval(function(){return t.observeAttribs()},200),o.on("blur.da",'input[name="module_id"], input[name="module_class"]',function(){t.observeClasses()}),o.on("blur.da",'input[name="da_popup_slug"]',function(){jQuery(this).val(a(jQuery(this).val()))})}else window.setTimeout(function(){return t.startObserver()},100)}},{key:"stopObserver",value:function(){if(s){var t=this.getAppFrame(),e=jQuery(t.document);window.clearInterval(s),e.off(".da",'input[name="module_id"], input[name="module_class"], input[name="da_popup_slug"]'),s=!1}}},{key:"observeAttribs",value:function(){var t=this.getApp();if(t&&t.state.activeModule&&t.state.activeModule.props&&"et_pb_section"===t.state.activeModule.props.type)for(var e=0;e<t.state.sections.length;e++){var o=t.state.sections[e],a=!1;this.compareSectionAttrs(o)&&(a=this.setSectionClasses(o)),a&&this.setSectionState(o,a)}}},{key:"observeClasses",value:function(){var t=this.getApp();if(t&&t.state)for(var e=0;e<t.state.sections.length;e++){var o=t.state.sections[e],a=!1;this.compareSectionClasses(o)&&(a=this.setSectionAttrs(o),a=this.setSectionClasses(a)),a&&this.setSectionState(o,a)}}},{key:"getAppFrame",value:function(){return!!(window.top.ET_Builder&&window.top.ET_Builder.Frames&&window.top.ET_Builder.Frames.top)&&window.top.ET_Builder.Frames.top}},{key:"getApp",value:function(){var t=this.getAppFrame();if(!t)return!1;var e=jQuery(t.document).find("#et-fb-app .place-top");if(!e||!e.length)return!1;if(!n||!e[0][n])for(var o in e[0])if(0===o.indexOf("__reactInternalInstance$")){r=o.substr(24),n="__reactInternalInstance$"+r;break}var a=e[0][n],s=this.getProp(a,["alternate","return","alternate","return","alternate","memoizedProps","_owner","alternate","memoizedState"]),i=this.getProp(a,["return","stateNode","setState"]);return!(!s||!i)&&{state:s,setState:i.bind(a.return.stateNode)}}},{key:"getProp",value:function(t,e){if(!e.length)return t;var o=e.shift();return!(!t||void 0===t[o])&&this.getProp(t[o],e)}},{key:"setSectionState",value:function(t,e){var o=this.getAppFrame();for(var a in d)t.attrs[a]!==e.attrs[a]&&(void 0===e.attrs[a]?delete t.attrs[a]:t.attrs[a]=e.attrs[a]);i&&window.clearTimeout(i),i=window.setTimeout(function(){i=!1;var t=document.createEvent("MouseEvents"),e=document.createEvent("MouseEvents"),a=o.jQuery(".et-fb-modal__resize")[0],s=o;a&&s&&(t.initMouseEvent("mousedown",!0,!0),e.initMouseEvent("mouseup",!0,!0),a.dispatchEvent(t),s.dispatchEvent(e))},50)}},{key:"compareSectionAttrs",value:function(t){var e=u[t.address],o=!1;for(var a in e||(o=!0,e={}),d)0===a.indexOf("da_")&&t.attrs[a]!==e[a]&&(o=!0,e[a]=t.attrs[a]);return o&&(u[t.address]=e),o}},{key:"compareSectionClasses",value:function(t){var e=u[t.address],o=!1;return e||(o=!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)&&(o=!0,e.module_id=t.attrs.module_id),t.attrs.module_class!==e.module_class&&(t.attrs.module_class||e.module_class)&&(o=!0,e.module_class=t.attrs.module_class),o&&(u[t.address]=e),o}},{key:"sanitizeSlug",value:function(t){return"string"!=typeof t&&(t=""),t=(t=(t=(t=t.replace(/#/g,"")).replace(/[^a-zA-Z0-9\-_]/g,"-")).replace(/\-+/g,"-")).replace(/^\-+|\-+$/g,"")}},{key:"setSectionClasses",value:function(t){var e=JSON.parse(JSON.stringify(t)),o=(t.attrs.module_class||"").split(" "),a=t.attrs.da_is_popup||"off",s=t.attrs.da_popup_slug||"",r=t.attrs.da_exit_intent||"off",n=t.attrs.da_has_close||"on",i=t.attrs.da_alt_close||"off",d=t.attrs.da_dark_close||"off",l=t.attrs.da_not_modal||"on",f=t.attrs.da_is_singular||"off",p=t.attrs.da_with_loader||"off",c=t.attrs.da_has_shadow||"on",_=(t.attrs.da_disable_devices||"off|off|off").split("|"),v=["popup","on-exit","no-close","close-alt","dark","is-modal","single","with-loader","no-shadow","not-mobile","not-tablet","not-desktop"];return o=o.filter(function(t){return-1===v.indexOf(t)}),"on"===a&&(o.push("popup"),"on"===r&&o.push("on-exit"),"on"!==n?o.push("no-close"):("on"===i&&o.push("close-alt"),"on"===d&&o.push("dark")),"on"!==l&&o.push("is-modal"),"on"===f&&o.push("single"),"on"===p&&o.push("with-loader"),"on"!==c&&o.push("no-shadow"),"on"===_[0]&&o.push("not-mobile"),"on"===_[1]&&o.push("not-tablet"),"on"===_[2]&&o.push("not-desktop"),s&&(e.attrs.module_id=this.sanitizeSlug(s))),e.attrs.module_class=o.filter(function(t){return t}).join(" "),u[e.address].module_class=e.attrs.module_class,u[e.address].module_id=e.attrs.module_id,e}},{key:"setSectionAttrs",value:function(t){var e=JSON.parse(JSON.stringify(t)),o=this.sanitizeSlug(t.attrs.module_id),a=(t.attrs.module_class||"").split(" "),s=["off","off","off"];return e.attrs.da_is_popup=-1!==a.indexOf("popup")?"on":"off",e.attrs.da_has_close=-1===a.indexOf("no-close")?"on":"off",e.attrs.da_exit_intent=-1!==a.indexOf("on-exit")?"on":"off",e.attrs.da_alt_close=-1!==a.indexOf("close-alt")?"on":"off",e.attrs.da_dark_close=-1!==a.indexOf("dark")?"on":"off",e.attrs.da_not_modal=-1===a.indexOf("is-modal")?"on":"off",e.attrs.da_is_singular=-1!==a.indexOf("single")?"on":"off",e.attrs.da_with_loader=-1!==a.indexOf("with-loader")?"on":"off",e.attrs.da_has_shadow=-1===a.indexOf("no-shadow")?"on":"off",s[0]=-1!==a.indexOf("not-mobile")?"on":"off",s[1]=-1!==a.indexOf("not-tablet")?"on":"off",s[2]=-1!==a.indexOf("not-desktop")?"on":"off",e.attrs.da_disable_devices=s.join("|"),o&&(e.attrs.da_popup_slug=o),u[e.address].da_is_popup=e.attrs.da_is_popup,u[e.address].da_popup_slug=this.sanitizeSlug(e.attrs.da_popup_slug),u[e.address].da_has_close=e.attrs.da_has_close,u[e.address].da_exit_intent=e.attrs.da_exit_intent,u[e.address].da_alt_close=e.attrs.da_alt_close,u[e.address].da_dark_close=e.attrs.da_dark_close,u[e.address].da_not_modal=e.attrs.da_not_modal,u[e.address].da_is_singular=e.attrs.da_is_singular,u[e.address].da_has_shadow=e.attrs.da_has_shadow,u[e.address].da_disable_devices=e.attrs.da_disable_devices,u[e.address].da_with_loader=e.attrs.da_with_loader,e}}]),t}();e.default=f},function(t,e,o){}]);
|
1 |
+
!function(e){var t={};function o(a){if(t[a])return t[a].exports;var s=t[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,o),s.l=!0,s.exports}o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)o.d(a,s,function(t){return e[t]}.bind(null,s));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=12)}([,,function(e,t,o){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){e.Debug=e.Debug||{};var t=!1;e.Debug.group=function(e){if(DiviPopupData.debug&&console.group){var o=!t||e&&e!==t;if(t&&(console.groupEnd(),t=!1),e&&o){var a=Array.prototype.slice.call(arguments);a.unshift("[DiviAreas]"),console.group.apply(this,a),t=e}}},e.Debug.table=function(){if(DiviPopupData.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)}},e.Debug.verbose=function(){if(DiviPopupData.debug&&DiviPopupData.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)}},e.Debug.debug=function(){if(DiviPopupData.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#90a4ae"),e.unshift("[DiviAreas] %c%s"),console.debug.apply(this,e)}},e.Debug.info=function(){if(DiviPopupData.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#0288d1;background:#fafcfe"),e.unshift("[DiviAreas] %c%s"),console.log.apply(this,e)}},e.Debug.error=function(){var e=Array.prototype.slice.call(arguments);e.unshift("[DiviAreas]"),console.error.apply(this,e)},e.Debug.sysInfo=function(){if(DiviArea.lib&&DiviArea.version&&console.log("JS API:",DiviArea.lib,DiviArea.version),window.DiviPopupData&&DiviPopupData.sys&&DiviPopupData.sys.plugin)for(var e in console.log(""),console.log("System information:"),DiviPopupData.sys)try{console.log(" -",e+":",DiviPopupData.sys[e])}catch(e){}console.log("")},e.Debug.initErrorLogging=function(e){var t=function(e,t,o){if(!e[t]||!e[t].__dm_orig__){var a=e[t];for(var s in e[t]=function(){var e=!1;try{e=o.apply(this,arguments)}finally{try{if(!e&&a)return a.apply(this,arguments)}catch(e){throw e}}},a)a.hasOwnProperty(s)&&(e[t][s]=a[s]);e[t].__dm_orig__=a}},o=function(){var e=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var t=0;t<arguments.length;t++)if("object"===a(arguments[t])&&arguments[t]&&arguments[t].message&&arguments[t].stack){e=arguments[t];break}if(e){var o=[],s=e.stack.toString().split("\n");if(o.push("divimode.com Anonymized Error Report"),o.push("-".repeat(30)),o.push(e.name),e.message?o.push(e.message):o.push("-"),o.push(""),s&&s.length>1)for(var i=0;i<s.length;i++){var r=s[i];if(r.match(/(\/wp-includes\/|\/jquery\.js)/))break;r.match(/\.js/)&&(r=(r=(r=r.replace(/^\s+|\s+$/g,"")).replace(/https?:.*?\/wp-content/g,"")).replace(/\.js\?[\w=&_\-\.]*/g,".js"),o.push(r))}if(DiviArea.info&&(o.push(""),o.push("js api:"+DiviArea.info)),window.DiviPopupData&&DiviPopupData.sys&&DiviPopupData.sys.plugin)for(var n in o.push(""),DiviPopupData.sys)try{o.push(n+": "+DiviPopupData.sys[n])}catch(e){}o.push("-".repeat(30));var u=console.error.__dm_orig__||console.error;return console.log(""),u("✋ "+o.join("\n| ")),console.log(""),!0}return!1};t(e,"onerror",o),t(e.console,"error",o)}}(window.DiviArea=window.DiviArea||{})},,,,,,,,,,function(e,t,o){o(13),e.exports=o(15)},function(e,t,o){"use strict";var a=function(e){return e&&e.__esModule?e:{default:e}}(o(14));o(2),DiviArea.Debug.initErrorLogging(window),jQuery(window).on("et_fb_init",function(){window.DiviAreaVB=window.DiviAreaVB||new a.default})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,o,a){return o&&e(t.prototype,o),a&&e(t,a),t}}();var s=!1,i=!1,r=!1,n=!1,u={},l={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"},d=0,p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init=this.init.bind(this),window.setTimeout(this.init,20)}return a(e,[{key:"init",value:function(){if(window.ET_Builder){var e=(window._daConfig||{}).divi_areas_cpt||"divi-area";((((ET_Builder.Frames||{}).app||{}).ETBuilderBackendDynamic||{}).postType||"page")!==e&&this.startObserver()}else{if(!(++d<10))throw new Error("Could not initilize the Library (ET_Builder is undefined)");window.setTimeout(this.init,250)}}},{key:"startObserver",value:function(){var e=this;s&&this.stopObserver();var t=this.getAppFrame();if(t){var o=jQuery(t.document),a=this.sanitizeSlug;s=window.setInterval(function(){return e.observeAttribs()},200),o.on("blur.da",'input[name="module_id"], input[name="module_class"]',function(){e.observeClasses()}),o.on("blur.da",'input[name="da_popup_slug"]',function(){jQuery(this).val(a(jQuery(this).val()))})}else window.setTimeout(function(){return e.startObserver()},100)}},{key:"stopObserver",value:function(){if(s){var e=this.getAppFrame(),t=jQuery(e.document);window.clearInterval(s),t.off(".da",'input[name="module_id"], input[name="module_class"], input[name="da_popup_slug"]'),s=!1}}},{key:"observeAttribs",value:function(){var e=this.getApp();if(e&&e.state.activeModule&&e.state.activeModule.props&&"et_pb_section"===e.state.activeModule.props.type)for(var t=0;t<e.state.sections.length;t++){var o=e.state.sections[t],a=!1;this.compareSectionAttrs(o)&&(a=this.setSectionClasses(o)),a&&this.setSectionState(o,a)}}},{key:"observeClasses",value:function(){var e=this.getApp();if(e&&e.state)for(var t=0;t<e.state.sections.length;t++){var o=e.state.sections[t],a=!1;this.compareSectionClasses(o)&&(a=this.setSectionAttrs(o),a=this.setSectionClasses(a)),a&&this.setSectionState(o,a)}}},{key:"getAppFrame",value:function(){return!!(window.top.ET_Builder&&window.top.ET_Builder.Frames&&window.top.ET_Builder.Frames.top)&&window.top.ET_Builder.Frames.top}},{key:"getApp",value:function(){var e=this.getAppFrame();if(!e)return!1;var t=jQuery(e.document).find("#et-fb-app .place-top");if(!t||!t.length)return!1;if(!r||!t[0][r])for(var o in t[0])if(0===o.indexOf("__reactInternalInstance$")){i=o.substr(24),r="__reactInternalInstance$"+i;break}var a=t[0][r],s=this.getProp(a,["alternate","return","alternate","return","alternate","memoizedProps","_owner","alternate","memoizedState"]),n=this.getProp(a,["return","stateNode","setState"]);return!(!s||!n)&&{state:s,setState:n.bind(a.return.stateNode)}}},{key:"getProp",value:function(e,t){if(!t.length)return e;var o=t.shift();return!(!e||void 0===e[o])&&this.getProp(e[o],t)}},{key:"setSectionState",value:function(e,t){var o=this.getAppFrame();for(var a in l)e.attrs[a]!==t.attrs[a]&&(void 0===t.attrs[a]?delete e.attrs[a]:e.attrs[a]=t.attrs[a]);n&&window.clearTimeout(n),n=window.setTimeout(function(){n=!1;var e=document.createEvent("MouseEvents"),t=document.createEvent("MouseEvents"),a=o.jQuery(".et-fb-modal__resize")[0],s=o;a&&s&&(e.initMouseEvent("mousedown",!0,!0),t.initMouseEvent("mouseup",!0,!0),a.dispatchEvent(e),s.dispatchEvent(t))},50)}},{key:"compareSectionAttrs",value:function(e){var t=u[e.address],o=!1;for(var a in t||(o=!0,t={}),l)0===a.indexOf("da_")&&e.attrs[a]!==t[a]&&(o=!0,t[a]=e.attrs[a]);return o&&(u[e.address]=t),o}},{key:"compareSectionClasses",value:function(e){var t=u[e.address],o=!1;return t||(o=!0,t={}),void 0===t.module_id&&(t.module_id=""),void 0===t.module_class&&(t.module_class=""),e.attrs.module_id!==t.module_id&&(e.attrs.module_id||t.module_id)&&(o=!0,t.module_id=e.attrs.module_id),e.attrs.module_class!==t.module_class&&(e.attrs.module_class||t.module_class)&&(o=!0,t.module_class=e.attrs.module_class),o&&(u[e.address]=t),o}},{key:"sanitizeSlug",value:function(e){return"string"!=typeof e&&(e=""),e=(e=(e=(e=e.replace(/#/g,"")).replace(/[^a-zA-Z0-9\-_]/g,"-")).replace(/\-+/g,"-")).replace(/^\-+|\-+$/g,"")}},{key:"setSectionClasses",value:function(e){var t=JSON.parse(JSON.stringify(e)),o=(e.attrs.module_class||"").split(" "),a=e.attrs.da_is_popup||"off",s=e.attrs.da_popup_slug||"",i=e.attrs.da_exit_intent||"off",r=e.attrs.da_has_close||"on",n=e.attrs.da_alt_close||"off",l=e.attrs.da_dark_close||"off",d=e.attrs.da_not_modal||"on",p=e.attrs.da_is_singular||"off",f=e.attrs.da_with_loader||"off",c=e.attrs.da_has_shadow||"on",_=(e.attrs.da_disable_devices||"off|off|off").split("|"),v=["popup","on-exit","no-close","close-alt","dark","is-modal","single","with-loader","no-shadow","not-mobile","not-tablet","not-desktop"];return o=o.filter(function(e){return-1===v.indexOf(e)}),"on"===a&&(o.push("popup"),"on"===i&&o.push("on-exit"),"on"!==r?o.push("no-close"):("on"===n&&o.push("close-alt"),"on"===l&&o.push("dark")),"on"!==d&&o.push("is-modal"),"on"===p&&o.push("single"),"on"===f&&o.push("with-loader"),"on"!==c&&o.push("no-shadow"),"on"===_[0]&&o.push("not-mobile"),"on"===_[1]&&o.push("not-tablet"),"on"===_[2]&&o.push("not-desktop"),s&&(t.attrs.module_id=this.sanitizeSlug(s))),t.attrs.module_class=o.filter(function(e){return e}).join(" "),u[t.address].module_class=t.attrs.module_class,u[t.address].module_id=t.attrs.module_id,t}},{key:"setSectionAttrs",value:function(e){var t=JSON.parse(JSON.stringify(e)),o=this.sanitizeSlug(e.attrs.module_id),a=(e.attrs.module_class||"").split(" "),s=["off","off","off"];return t.attrs.da_is_popup=-1!==a.indexOf("popup")?"on":"off",t.attrs.da_has_close=-1===a.indexOf("no-close")?"on":"off",t.attrs.da_exit_intent=-1!==a.indexOf("on-exit")?"on":"off",t.attrs.da_alt_close=-1!==a.indexOf("close-alt")?"on":"off",t.attrs.da_dark_close=-1!==a.indexOf("dark")?"on":"off",t.attrs.da_not_modal=-1===a.indexOf("is-modal")?"on":"off",t.attrs.da_is_singular=-1!==a.indexOf("single")?"on":"off",t.attrs.da_with_loader=-1!==a.indexOf("with-loader")?"on":"off",t.attrs.da_has_shadow=-1===a.indexOf("no-shadow")?"on":"off",s[0]=-1!==a.indexOf("not-mobile")?"on":"off",s[1]=-1!==a.indexOf("not-tablet")?"on":"off",s[2]=-1!==a.indexOf("not-desktop")?"on":"off",t.attrs.da_disable_devices=s.join("|"),o&&(t.attrs.da_popup_slug=o),u[t.address].da_is_popup=t.attrs.da_is_popup,u[t.address].da_popup_slug=this.sanitizeSlug(t.attrs.da_popup_slug),u[t.address].da_has_close=t.attrs.da_has_close,u[t.address].da_exit_intent=t.attrs.da_exit_intent,u[t.address].da_alt_close=t.attrs.da_alt_close,u[t.address].da_dark_close=t.attrs.da_dark_close,u[t.address].da_not_modal=t.attrs.da_not_modal,u[t.address].da_is_singular=t.attrs.da_is_singular,u[t.address].da_has_shadow=t.attrs.da_has_shadow,u[t.address].da_disable_devices=t.attrs.da_disable_devices,u[t.address].da_with_loader=t.attrs.da_with_loader,t}}]),e}();t.default=p},function(e,t,o){}]);
|
js/front.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function a(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(o,i,function(t){return e[t]}.bind(null,i));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=9)}([function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.debugGroup=function(e){if(DiviPopupData.debug&&console.group){var t=!o||e&&e!==o;if(o&&(console.groupEnd(),o=!1),e&&t){var a=Array.prototype.slice.call(arguments);a.unshift("[DiviAreas]"),console.group.apply(this,a),o=e}}},t.debugTable=function(){if(DiviPopupData.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)}},t.verbose=function(){if(DiviPopupData.debug&&DiviPopupData.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)}},t.debug=function(){if(DiviPopupData.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#90a4ae"),e.unshift("[DiviAreas] %c%s"),console.debug.apply(this,e)}},t.info=function(){if(DiviPopupData.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#0288d1;background:#fafcfe"),e.unshift("[DiviAreas] %c%s"),console.log.apply(this,e)}},t.error=function(){var e=Array.prototype.slice.call(arguments);e.unshift("[DiviAreas]"),console.error.apply(this,e)},t.initErrorLogging=function(t){var o=function(e,t,a){if(!e[t]||!e[t].__dm_orig__){var o=e[t];for(var i in e[t]=function(){var e=!1;try{e=a.apply(this,arguments)}finally{try{if(!e&&o){var t=o.apply(this,arguments);return t}}catch(e){throw e}}},o)o.hasOwnProperty(i)&&(e[t][i]=o[i]);e[t].__dm_orig__=o}},i=function(){var t=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var o=0;o<arguments.length;o++)if("object"===a(arguments[o])&&arguments[o]&&arguments[o].message&&arguments[o].stack){t=arguments[o];break}if(t){var i=[],n=t.stack.toString().split("\n");if(i.push("divimode.com Anonymized Error Report"),i.push("-".repeat(30)),i.push(t.name),t.message?i.push(t.message):i.push("-"),i.push(""),n&&n.length>1)for(var r=0;r<n.length;r++){var s=n[r];if(s.match(/(\/wp-includes\/|\/jquery\.js)/))break;s.match(/\.js/)&&(s=(s=(s=s.replace(/^\s+|\s+$/g,"")).replace(/https?:.*?\/wp-content/g,"")).replace(/\.js\?[\w=&_\-\.]*/g,".js"),i.push(s))}if(e.DiviPopupData&&DiviPopupData.sys)for(var d in i.push(""),DiviPopupData.sys)try{i.push(d+": "+DiviPopupData.sys[d])}catch(e){}i.push("-".repeat(30));var l=console.error.__dm_orig__||console.error;return console.log(""),l("✋ "+i.join("\n| ")),console.log(""),!0}return!1};o(t,"onerror",i),o(t.console,"error",i)};var o=!1}).call(this,a(5))},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOption=function(e){var t=DiviPopupData[e],a=e.toLowerCase();return(0,o.applyFiltersSilently)("get_option_"+a,t)},t.toBool=function(e,t){void 0===t&&(t=!0);if(void 0===e||null===e)return!!t;if(!0===e||!1===e)return e;"string"==typeof e&&(e=e.toLowerCase());if(0===e||"0"===e||"n"===e[0]||"f"===e[0]||"off"===e)return!1;if(1===e||"1"===e||"y"===e[0]||"t"===e[0]||"on"===e)return!0;return!!t},t.setLocalData=function(e,t,a){(!a||isNaN(a)||a<1)&&(a=525600);var i=e.replace(/-/g,"_");if(t=(0,o.applyFilters)("set_local_data_value-"+i,t,e,a),a=(0,o.applyFilters)("set_local_data_expiration-"+i,a,e,t),window.localStorage){var n=new Date;n=n.setMinutes(n.getMinutes()+a),localStorage.setItem("_da_"+e,n+":"+t)}else r("_da_"+e,t,a)},t.getLocalData=function(e){var t=!1;if(window.localStorage){var a=localStorage.getItem("_da_"+e);if(a){var i=a.split(":"),n=parseInt(i.shift()),r=i.join(":");n>new Date?t=r:localStorage.removeItem("_da_"+e)}}else t=s("_da_"+e);var d=e.replace(/-/g,"_");return(0,o.applyFilters)("get_local_data-"+d,t)},t.setCookie=r,t.getCookie=s,t.toMilliseconds=function(e){var t,a=parseFloat(e,10),o=e.match(/m?s/);o&&(o=o[0]);switch(o){case"s":t=1e3*a;break;case"ms":t=a;break;default:t=0}return t},t.initOptions=function(){var e={popupSelector:".et_pb_section.popup",fullWidthClass:"popup_full_width",fullHeightClass:"popup_full_height",openPopupClass:"evr_popup_open",overlayClass:"evr_fb_popup_modal",modalIndicatorClass:"is-modal",exitIndicatorClass:"on-exit",activePopupClass:"is-open",noCloseClass:"no-close",altCloseClass:"close-alt",notMobileClass:"not-mobile",notTabletClass:"not-tablet",notDesktopClass:"not-desktop",withCloseClass:"with-close",singletonClass:"single",darkModeClass:"dark",noShadowClass:"with-shadow",closeButtonClass:"evr-close",defaultShowCloseButton:!0,idAttrib:"data-popup",triggerClassPrefix:"show-popup-",baseContext:"body",triggerCloseClass:"close",zIndex:1e5,onExitDelay:2e3,animateSpeed:300,debug:!1,debugVerbose:!1,initializeOnEvent:"et_pb_after_init_modules"};if(window.DiviPopupData)for(var t in e)void 0===DiviPopupData[t]&&(DiviPopupData[t]=e[t]),DiviPopupData[t].replace&&(DiviPopupData[t]=DiviPopupData[t].replace(/^[\s\xA0]+|[\s\xA0]+$/g,""));else window.DiviPopupData=e;DiviPopupData.zIndex=parseInt(DiviPopupData.zIndex),DiviPopupData.onExitDelay=parseInt(DiviPopupData.onExitDelay),DiviPopupData.animateSpeed=parseInt(DiviPopupData.animateSpeed),DiviPopupData.debug=!!DiviPopupData.debug,DiviPopupData.defaultShowCloseButton=!!DiviPopupData.defaultShowCloseButton,(!DiviPopupData.triggerClassPrefix||DiviPopupData.triggerClassPrefix.length<3)&&(DiviPopupData.triggerClassPrefix=!1);"body"===DiviPopupData.baseContext&&1===jQuery("body.et_divi_theme #page-container").length&&(DiviPopupData.baseContext="#page-container",(0,i.info)("🎚 Divi theme detected.","Inject Areas into #page-container"));"body"===DiviPopupData.baseContext||jQuery(DiviPopupData.baseContext).length||(DiviPopupData.baseContext="body",(0,i.info)("🎚 Invalid baseContext given.","Inject Areas into body instead."));DiviPopupData=(0,o.applyFilters)("init_options",DiviPopupData),(0,n.broadcast)("OptionsReady")},t.isPositon=function e(t,a){var o=t.offsetParent();if("HTML"===o.prop("tagName"))return!1;return o.css("position")===a||e(o,a)};var o=a(2),i=a(0),n=a(3);function r(e,t,a){var o=escape(t);if(a){var i=new Date;i.setMinutes(i.getMinutes()+a),o+="; expires="+i.toUTCString()}document.cookie=e+"="+o+"; path=/"}function s(e){var t,a,o,i=document.cookie.split(";");for(t=0;t<i.length;t++)if(a=i[t].substr(0,i[t].indexOf("=")),o=i[t].substr(i[t].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))===e)return unescape(o);return!1}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeFilter=function(e,t){"string"==typeof e&&(n(e,t),(0,o.debug)("Remove Filter:",e))},t.removeAction=function(e,t){"string"==typeof e&&(n(e,t),(0,o.debug)("Remove Action:",e))},t.applyFilters=function(e,t){var a=Array.prototype.slice.call(arguments);if("string"==typeof(e=a.shift()))return(0,o.info)("📢️ Apply Filters:",e),(0,o.debug)('⚙ DiviArea.addFilter("'+e+'", callback)'),s("filter",e,a);return!1},t.doAction=function(e,t){var a=Array.prototype.slice.call(arguments);"string"==typeof(e=a.shift())&&((0,o.info)("📢️ Do Action:",e),(0,o.debug)('⚙ DiviArea.addAction("'+e+'", callback)'),s("action",e,a))},t.applyFiltersSilently=function(e,t){var a=Array.prototype.slice.call(arguments);if("string"==typeof(e=a.shift()))return(0,o.verbose)("📢️ Apply Filters:",e),(0,o.verbose)('⚙ DiviArea.addFilter("'+e+'", callback)'),s("filter",e,a);return!1},t.addFilter=function(e,t,a,i){"string"==typeof e&&"function"==typeof t&&(r(e,t,parseInt(a||10,10),i||window),(0,o.debug)("Add Filter:",e))},t.addAction=function(e,t,a,i){"string"==typeof e&&"function"==typeof t&&(r(e,t,parseInt(a||10,10),i||window),(0,o.debug)("Add Action:",e))},t.addActionOnce=function(e,t,a,i){if("string"==typeof e&&"function"==typeof t){r(e,t,parseInt(a||10,10),i||window),r(e,function(){n(e,t)},1+parseInt(a||10,10),i||window),(0,o.debug)("Add Action Once:",e)}};var o=a(0),i={};function n(e,t,a){var o,n,r;if(i[e]){if(t)if((o=i[e])&&a)for(r=o.length;r--;)(n=o[r]).callback===t&&n.context===a&&(o[r]=!1);else for(r=o.length;r--;)o[r].callback===t&&(o[r]=!1)}else i[e]=[]}function r(e,t,a,o){var n={callback:t,priority:a,context:o},r=i[e];r?(r.push(n),r=function(e){var t,a,o,i,n=e.length;for(i=1;i<n;i++)for(t=e[i],a=i;a>0;a--)(o=e[a-1]).priority>t.priority&&(e[a]=o,e[a-1]=t);return e}(r)):r=[n],i[e]=r}function s(e,t,a){var o,n=i[t],r=!1,s=void 0;if(n){var d=n.length;for(o=0;o<d;o++)n[o]?"filter"===e?void 0!==(s=n[o].callback.apply(n[o].context,a))&&(a[0]=s):(!n[o]||n[o].callback,n[o].callback.apply(n[o].context,a)):r=1;if(r)for(o=d;o--;)n[o]||n.splice(o,1)}if("filter"===e)return a[0]}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.initializeModule=function(){(0,n.debug)("Initialize the app"),jQuery(document).trigger("DiviAreas:Loaded",[window.DiviAreas]),(0,r.doAction)("load"),p("Load"),function(){var e=jQuery(".et_pb_fullscreen_nav_container #mobile_menu_slide");if(!e.length)return;e.parent().css({minHeight:e.outerHeight()})}(),h(f),b(s.doResizeAreas),jQuery(document).on("keyup",_),window.setTimeout(function(){(0,r.addAction)("exit_intent",w)},(0,i.getOption)("onExitDelay")),(0,r.addAction)("close_area",m),f(),(0,r.doAction)("ready"),p("Ready")},t.broadcast=p,t.observe=function(e,t,a){var o=".__"+e,i="DiviPopup:"+e,r=c(a);function s(o,i){var s=window;return r?((0,n.verbose)("Handle observed area event",e,a.data("_id")),s=a):(i&&jQuery(i).data("_id")&&(s=jQuery(i)),(0,n.verbose)("Handle observed global event",e)),t.apply(s,arguments)}(0,n.error)("observe() is deprecated. Use DiviArea.addAction() or DiviArea.addFilter() instead!"),r?((0,n.debug)("[DEPRECATED] Observe area event:",e,a.data("_id")),a.off(o),a.on(i+o,s)):((0,n.debug)("[DEPRECATED] Observe global event:",e),jQuery(document).off(o),jQuery(document).on(i+o,s))},t.isArea=c,t.reOrderAreas=function(e){if(!(0,s.countVisibleAreas)())return;(0,s.reorderVisibleAreas)(),e&&function(e){u&&!e.data("observe-resize")&&(u.observe(e[0]),e.data("observe-resize",!0))}(e);(0,s.countVisibleAreas)("popup")&&DiviPopup.showOverlay()},t.doActivateTriggers=f,t.doDeactivateTriggers=g,t.removeArea=function(e,t){var a=[],l=(e=jQuery(e)).data("_id"),f=[];"popup"===e.data("_type")&&((0,s.loopVisibleAreas)("popup",function(e){e.hasClass((0,i.getOption)("singletonClass"))?a.push(e.data("_id")):f.push(e.data("_id"))}),t?(a.push(l),l=!1):e.hasClass((0,i.getOption)("singletonClass"))&&(a=f,l=!1));function g(e){"object"===(void 0===e?"undefined":o(e))&&(e=e.data("_id")),e&&e.length&&("#"!==e[0]&&(e="#"+e),a.push(e))}function v(e){if(c(e=jQuery(e))&&e.data("_key")){e.removeClass("__is_animating"),y(e),(0,r.doAction)("hide_area",e),(0,r.doAction)("hide_area-"+e.data("_key"),e),p("Hide",e),e.find("div .popup-trigger").off("._da"),function(e){u&&e.data("observe-resize")&&(u.unobserve(e[0]),e.data("observe-resize",!1))}(e);var t=e.parent();"skip"===e.data("_do_animation")?a():((0,n.info)("✨ Animate the area (hide)",e.data("_id")),(0,d.animateArea)(e,"hide",a)),(0,s.removeVisibleArea)(e)}function a(){e.detach().hide().data("_visible","no"),t.hasClass((0,i.getOption)("popupWrapperClass"))&&t.remove()}}t?(a=(0,r.applyFilters)("hide_ids_before_hide",a,e,f),a=(0,r.applyFilters)("hide_ids_before_hide-"+e.data("_key"),a,e,f),p("BeforeHide",e,f,g),(0,r.doAction)("before_hide",e,a),(0,r.doAction)("before_hide-"+e.data("_key"),e,a)):(a=(0,r.applyFilters)("hide_ids_before_show",a,e,f),a=(0,r.applyFilters)("hide_ids_before_show-"+e.data("_key"),a,e,f),p("BeforeShow",e,f,g),(0,r.doAction)("before_show",e,a),(0,r.doAction)("before_show-"+e.data("_key"),e,a));a.length&&(0,n.debug)("Hide following areas:",a);(0,s.loopVisibleAreas)("all",function(e){var t=e.data("_id");-1!==a.indexOf(t)&&v(e)}),l&&v(l)},t.getContext=v,t.addDomObserver=h,t.addResizeObserver=b,t.initContext=function(){(l=jQuery((0,i.getOption)("baseContext"))).length||(0,n.error)('Could not find the popup container "'+(0,i.getOption)("baseContext")+'"')},t.initExitIntent=function(){jQuery(window).on("mouseleave.da",function(e){var t;"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&"select"!==e.target.tagName.toLowerCase()&&(t=Math.max(document.documentElement.clientWidth,window.innerWidth||0),e.clientX>=t-50||e.clientY>=50||e.toElement||e.relatedTarget||((0,n.info)("⚡️ Exit-intent detected"),(0,r.doAction)("exit_intent"),p("ExitIntent")))})},t.blurArea=y,t.focusArea=function(e){var t=(0,i.getOption)("activePopupClass");e&&!e.hasClass(t)&&(e.addClass(t),(0,r.doAction)("focus_area",e),(0,r.doAction)("focus_area-"+e.data("_key"),e),p("Focus",e),f(e))};var i=a(1),n=a(0),r=a(2),s=a(4),d=a(7),l=null,u=null;function p(e,t){var a=void 0,o=void 0,i=Array.prototype.slice.call(arguments);i.shift();var r=["DiviPopup:"+e],d=c(i[0]),l=[];for(d?(0,n.debug)("Broadcast area event:",e,i[0].data("_id")):(0,n.debug)("Broadcast global event:",e),window.DiviArea&&r.unshift("DiviArea:"+e),a=0;a<r.length;a++){if(d){var u=(0,s.getAllIds)(t);for(l.push({obj:t,event:r[a],params:i.slice(1)}),(0,n.verbose)('⚙ $("'+t.data("_id")+'").on("'+r[a]+'")'),o=0;o<u.length;o++){var p=":"+u[o].replace(/^#/,"");l.push({obj:jQuery(document),event:r[a]+p,params:i}),(0,n.verbose)('⚙ $(document).on("'+r[a]+p+'")')}}l.push({obj:jQuery(document),event:r[a],params:i}),(0,n.verbose)('⚙ $(document).on("'+r[a]+'")')}for(a=0;a<l.length;a++)l[a].obj.triggerHandler(l[a].event,l[a].params)}function c(e){return e&&e.length&&e instanceof jQuery&&e.data("_id")}function f(e){var t,a=void 0===e,o=void 0,r=void 0;if(void 0===e&&(e=v()),function(e){e.find((0,i.getOption)("popupSelector")).filter("[id]").each(function(){var e=jQuery(this);(0,n.debug)("Found an inline Popup Area:",e.attr("id")),DiviPopup.register(e,{},"popup")})}(e),(t=function(e,t){var a,o,i,n=[];if(!e.ids)return[];function r(e,t){var a;for(a=0;a<t.length;a++)jQuery(t[a]).attr("data-area-id")||n.push({id:e,item:jQuery(t[a])})}for(a=0;a<e.ids.length;a++)if(r(i=e.ids[a].replace(/^#/,""),jQuery('[href="#'+i+'"]',t)),e.linkPrefix&&r(i,jQuery('[href="#'+e.linkPrefix+i+'"]',t)),e.classPrefix&&r(i,jQuery("."+e.classPrefix+i,t)),e.dataAttrib&&r(i,jQuery("["+e.dataAttrib+'="'+i+'"]',t)),window.et_link_options_data)for(o=et_link_options_data.length-1;o>=0;o--)if("#"+i===et_link_options_data[o].url){var s=jQuery(".et_pb_module."+et_link_options_data[o].class,t);r(i,s),s.off("click"),et_link_options_data.splice(o,1)}return n}({ids:(0,s.getAllIds)("popup"),linkPrefix:"popup:",dataAttrib:(0,i.getOption)("idAttrib"),classPrefix:(0,i.getOption)("triggerClassPrefix")},e)).length){for(a?(0,n.debugGroup)("Activate all triggers in document"):(0,n.debugGroup)("Activate triggers in area",e.data("_id")),o=0;o<t.length;o++)C((r=t[o]).item,r.id);(0,n.debugGroup)()}else a?(0,n.debug)("No new triggers found in document"):(0,n.debug)("No new triggers found in area",e.data("_id"))}function g(e){void 0!==e&&((0,n.debug)("Deactivate all triggers in area",e.data("_id")),e.find("[data-area-id]").each(function(){!function(e){(0,n.debug)("Remove trigger:",e[0]),e.removeAttr("data-area-id"),e.removeClass("popup-trigger"),e.off("._da")}(jQuery(this))}))}function v(){return l}function h(e){var t=window.MutationObserver||window.WebKitMutationObserver,a=window.addEventListener,o=v();t?new t(function(t,a){return t[0].addedNodes.length?((0,n.debug)("DOM changed (nodes added)"),e()):t[0].removedNodes.length?((0,n.debug)("DOM changed (nodes removed)"),e()):void 0}).observe(o[0],{childList:!0,subtree:!0}):a&&(o.addEventListener("DOMNodeInserted",e,!1),o.addEventListener("DOMNodeRemoved",e,!1))}function b(e){var t=window.ResizeObserver||window.WebKitResizeObserver;t?u=new t(e):window.setInterval(e,750),jQuery(window).resize(e)}function y(e){var t=(0,i.getOption)("activePopupClass");e&&e.hasClass(t)&&(e.removeClass(t),(0,r.doAction)("blur_area",e),(0,r.doAction)("blur_area-"+e.data("_key"),e),p("Blur",e),g(e))}function m(e,t){c(e)||((0,n.debug)("Close the top-most area"),DiviPopup.hide())}function _(e){if(27===e.keyCode)return(0,n.info)("⚡️ ESC-key pressed"),(0,r.applyFilters)("esc_key_pressed",!1)?((0,n.debug)("Ignored, manually cancelled in filter"),!0):(0,s.countVisibleAreas)("popup")?((0,n.debug)("Close top-most popup"),(0,r.doAction)("close_area",!1,"esc"),p("Close"),!1):((0,n.debug)("Ignored, no popup is visible"),!0)}function w(){(0,s.loopAllAreas)("!inline",function(e,t){e.hasClass((0,i.getOption)("exitIndicatorClass"))&&DiviPopup.show(t)})}function C(e,t){var a;if(a=(0,s.getId)(t)){if(e.attr("data-area-id"))return e.off("._da"),e.on("click._da",o),void(0,n.debug)("Trigger already prepared",e[0]);(0,s.getArea)(a)?(e.attr("data-area-id",a),e.addClass("popup-trigger"),e.on("click._da",o),(0,n.debug)("Prepared trigger to open this area:",a,e[0])):(0,n.debug)("Ignore trigger. No area found with this ID:",e[0])}else(0,n.debug)("Ignore trigger. Invalid target ID:",t,e[0]);function o(e){return e.preventDefault(),(0,n.debug)("Trigger area:",a),DiviPopup.show(a),!1}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getId=f,t.getRealId=g,t.addAltId=function(e,t){if(e===t)return;t=f(t),null===e?delete c[t]:c[t]=e},t.getArea=v,t.registerArea=function(e,t,a){if(!(t=f(t)))return!1;var l=v(t);if(l)return l;var p=jQuery(t);if(!p.length)return!1;a&&(p=p.filter(a));if(!p||1!==p.length)return!1;"inline"===e?p.data("_visible","yes"):(p.detach(),p.data("_visible","no"));var c=t.replace(/-/g,"_").replace(/^#/,"");p.addClass(e),p.attr("data-dm-type",e),p.attr("data-dm-registered",1),p.data("_id",t),p.data("_key",c),p.data("_type",e),(0,i.debug)("Area Type",e),(0,i.debug)("Area ID",t),(0,i.debug)("Area Hook",c),(0,r.attachCloseButton)(p),u[t]=p,p.hasClass((0,o.getOption)("notMobileClass"))?p.data("on-mobile",!1):p.data("on-mobile",(0,o.toBool)(p.data("on-mobile")));p.hasClass((0,o.getOption)("notTabletClass"))?p.data("on-tablet",!1):p.data("on-tablet",(0,o.toBool)(p.data("on-tablet")));p.hasClass((0,o.getOption)("notDesktopClass"))?p.data("on-desktop",!1):p.data("on-desktop",(0,o.toBool)(p.data("on-desktop")));p.hasClass((0,o.getOption)("withCloseClass"))?p.data("show-close",!0):p.hasClass((0,o.getOption)("noCloseClass"))?p.data("show-close",!1):p.data("show-close",(0,o.toBool)(p.data("show-close")));p.hasClass((0,o.getOption)("altCloseClass"))?p.data("close-alt",!0):p.data("close-alt",(0,o.toBool)(p.data("close-alt"),!1));p.hasClass((0,o.getOption)("modalIndicatorClass"))?p.data("is-modal",!0):p.data("is-modal",(0,o.toBool)(p.data("is-modal"),!1));p.hasClass((0,o.getOption)("exitIndicatorClass"))?p.data("trigger-exit",!0):p.data("trigger-exit",(0,o.toBool)(p.data("trigger-exit"),!1));p.hasClass((0,o.getOption)("noShadowClass"))?p.data("no-shadow",!0):p.data("no-shadow",(0,o.toBool)(p.data("no-shadow"),!1));p.hasClass((0,o.getOption)("darkModeClass"))?p.data("dark-mode",!0):p.data("dark-mode",(0,o.toBool)(p.data("dark-mode"),!1));p.hasClass((0,o.getOption)("singletonClass"))?p.data("singleton",!0):p.data("singleton",(0,o.toBool)(p.data("singleton"),!1));return p.data("position","center-center"),p.data("position-v","center"),p.data("position-h","center"),(0,r.configArea)(p),(0,n.doAction)("init_area",p),(0,n.doAction)("init_area-"+p.data("_key"),p),(0,s.broadcast)("Init",p),(0,d.initializeAreaAnimation)(p),(0,i.info)("➕ Registered new area:",t,"("+e+")"),p},t.getAllIds=function(e){var t=[];if(e&&e instanceof jQuery){var a=e.data("_id");for(var o in t.push(a),c)a===c[o]&&t.push(o)}else{for(var i in u){var n=u[i];_(e,n)&&t.push(i)}for(var r in c){var s=c[r],d=u[s];_(e,d)&&t.push(r)}}return t},t.loopAllAreas=function(e,t){for(var a in u){var o=u[a];_(e,o)&&t(o,a)}},t.countVisibleAreas=h,t.addVisibleArea=function(e){if(!(e=v(e)))return!1;var t=e.data("_type");if((0,i.debug)("Make area visible",e.data("_id")),"popup"!==t&&h("popup")){for(var a=0;a<p.length;a++)if("popup"===p[a].data("_type")){p.splice(a,0,e);break}}else p.push(e);if(e.find("div ."+(0,o.getOption)("triggerCloseClass")).off(".da"),e.find("."+(0,o.getOption)("closeButtonClass")).off(".da"),e.find("div ."+(0,o.getOption)("triggerCloseClass")).on("click.da",function(t){(0,i.debug)("Click on custom close-button"),(0,n.doAction)("close_area",e,"custom"),(0,n.doAction)("close_area-"+e.data("_key"),e,"custom"),(0,s.broadcast)("Close",e)}),e.hasClass((0,o.getOption)("withCloseClass"))){var r=e.find("."+(0,o.getOption)("closeButtonClass"));r.on("click.da",function(t){(0,i.debug)("Click on default close-button"),(0,n.doAction)("close_area",e,"default"),(0,n.doAction)("close_area-"+e.data("_key"),e,"default"),(0,s.broadcast)("Close",e)})}},t.removeVisibleArea=function(e){if(!(e=v(e)))return!1;var t=e.data("_id");(0,i.debug)("Make area hidden",t);for(var a=p.length-1;a>=0;a--){var n=p[a];t===n.data("_id")&&p.splice(a,1)}e.find("div ."+(0,o.getOption)("triggerCloseClass")).off(".da"),e.find("."+(0,o.getOption)("closeButtonClass")).off(".da")},t.getVisibleArea=b,t.loopVisibleAreas=y,t.reorderVisibleAreas=function(){var e=(0,o.getOption)("zIndex"),t=1,a=[];function r(r){var l=r.data("_type"),u=r.parent(),p=e+t;isNaN(r.data("z-index"))||(p=r.data("z-index")),u.hasClass((0,o.getOption)("popupWrapperClass"))||("inline"===l?(r.wrap("<div>"),u=r.parent()):((u=jQuery("<div/>")).appendTo((0,s.getContext)()),r.detach().appendTo(u)),u.addClass((0,o.getOption)("popupWrapperClass")),u.addClass("type-"+l),u.addClass("position-"+r.data("position"))),a.push({id:r.data("_id"),type:r.data("_type"),pos:t,zIndex:"inline"===l?"":p}),"inline"!==l&&u.css({zIndex:p}),t++,"yes"!==r.data("_visible")&&("skip"===r.data("_do_animation")?r.show():((0,i.info)("✨ Animate the area (show)",r.data("_id")),(0,d.animateArea)(r,"show")),r.data("_visible","yes"),(0,n.doAction)("show_area",r),(0,n.doAction)("show_area-"+r.data("_key"),r),(0,s.broadcast)("Show",r))}(0,i.debug)("Refresh order (z-index) of visible areas"),y("all",s.blurArea),y("inline",r),y("!popup,inline",r),h("popup")&&(a.push({id:"-",type:"overlay",pos:t,zIndex:(0,l.showOverlay)()}),y("popup",r));(0,i.info)("👓 List of visible Areas:"),(0,i.debugTable)(a),(0,s.focusArea)(b()),window.setTimeout(m,50)},t.doResizeAreas=m;var o=a(1),i=a(0),n=a(2),r=a(6),s=a(3),d=a(7),l=a(8),u={},p=[],c={};function f(e,t){if(e instanceof jQuery){if(e.data("_id"))return e.data("_id");e=e.attr("id")}if(!e)return"";if("#"!==e[0]&&(e="#"+e),t){var a=new RegExp("^#"+t+":");e=e.replace(a,"#",e)}return e?e.toString():""}function g(e){var t=f(e),a=f(c[t]);return void 0!==u[t]?t:void 0!==u[a]?a:""}function v(e){if(e instanceof jQuery)return!!e.data("_id")&&e;var t=g(e);return!!t&&u[t]}function h(e){if(!e||"all"===e)return p.length;var t=0;return y(e,function(){return t++}),t}function b(e,t){for(var a=p.length-1;a>=0;a--)if(_(e,p[a])){if(void 0===t||-1===t)return p[a];if(t===p[a].data("_id"))return p[a]}return!1}function y(e,t){for(var a=0;a<p.length;a++)_(e,p[a])&&t(p[a],a)}function m(){var e=parseInt(jQuery("html").css("marginTop")),t=jQuery(window).innerWidth(),a=jQuery(window).innerHeight()-e;y("all",function(e){var n,r,s=e.parent(),d=e.data("_type"),l={};"inline"===d||e.data("max-width")||(e.hasClass("et_pb_section")?e.data("max-width",e.outerWidth()+"px"):(e.data("max-width",e.children(".et_pb_section").first().outerWidth()+"px"),e.children(".et_pb_section").css({width:"100%",maxWidth:""})),(0,i.debug)("Auto max-width calculated:",e.data("_id"),e.data("max-width"))),e.data("max-height")&&(l.overflow="auto",l.maxHeight=e.data("max-height")),e.data("max-width")&&(l.maxWidth=e.data("max-width")),e.css(l),"popup"===d&&(r=isNaN(e[0].scrollHeight)?e.innerHeight:e[0].scrollHeight,n=isNaN(e[0].scrollWidth)?e.innerWidth:e[0].scrollWidth,t<n+20?s.addClass((0,o.getOption)("fullWidthClass")):s.removeClass((0,o.getOption)("fullWidthClass")),a<r+20?s.addClass((0,o.getOption)("fullHeightClass")):s.removeClass((0,o.getOption)("fullHeightClass")))})}function _(e,t){if(!e)return!0;if("all"===e)return!0;var a="!"===e[0],o=t.data("_type");e=e.replace("!","").split(",");for(var i=0;i<e.length;i++){if(e[i]=e[i].trim(),a&&e[i]===o)return!1;if(!a&&e[i]===o)return!0}return!!a}},function(e,t){var a;a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(a=window)}e.exports=a},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.attachCloseButton=function(e){var t=(0,i.getOption)("closeButtonClass"),a=t+"_wrap",o=(0,i.getOption)("noCloseClass"),r=(0,i.getOption)("withCloseClass");if(e.find("."+a).length)return;var s=jQuery("<span />").addClass(a),d=jQuery('<a href="#close" />').addClass(t);d.html("×"),d.appendTo(s),s.appendTo(e),e.hasClass(o)||e.hasClass(r)||((0,i.getOption)("defaultShowCloseButton")?e.addClass(r):e.addClass(o));(0,n.debug)("Added default close button to area",e.data("_id"))},t.setupHoverArea=function(e){var t=jQuery(e.data("_trigger"));if(!t.length)return;var a=(0,i.isPositon)(t,"fixed"),o="#"+e.attr("id"),s=e.data("close-on"),l=1e3*e.data("close-delay"),u=e,p=!1,c=!1,f=!1;d&&(f=new d(function(e){var t=!0,a=!1,o=void 0;try{for(var i,n=e[Symbol.iterator]();!(t=(i=n.next()).done);t=!0){var r=i.value,s=r.contentRect,d=s.width+"-"+s.height;d!==c&&(c=d,v())}}catch(e){a=!0,o=e}finally{try{!t&&n.return&&n.return()}finally{if(a)throw o}}},{box:"border-box"}));function g(){(0,n.info)("📐 Position area relative to element:",t),u=e.closest(".popup_outer_wrap"),v(),(0,r.removeAction)("show_area-"+e.data("_key"),g)}function v(){var o=a?t[0].getBoundingClientRect():t.clientRect(),i={left:"",top:"",right:"",bottom:"",width:"",height:"",position:a?"fixed":"absolute"};"top"===e.data("position-v")?i.top=o.top:"bottom"===e.data("position-v")?i.top=o.bottom:"left"===e.data("position-h")?(i.top=o.top+o.height/2,i.left=o.left):"right"===e.data("position-h")?(i.top=o.top+o.height/2,i.left=o.right):(0,n.error)("Invalid position",e.data("position")),(0,n.debug)("Area position:",i),u.css(i)}function h(){b(),p=window.setTimeout(function(){DiviArea.hide(e.data("_id"))},l)}function b(){p&&window.clearTimeout(p),p=!1}(0,r.addAction)("show_area-"+e.data("_key"),function(){f&&f.observe(t[0]),function(){"click"===s?jQuery(document).on("click."+o,function(e){jQuery(e.target).closest(o).length||h()}):"hover"===s&&(e.on("mouseleave._dah",h),t.on("mouseleave._dah",h));t.on("mouseenter._dah",b),e.on("mouseenter._dah",b)}(),g()}),(0,r.addAction)("hide_area-"+e.data("_key"),function(){f&&f.disconnect(),jQuery(document).off("."+o),e.off("._dah"),t.off("._dah")}),(0,n.debug)("Prepared positioning of hover area")},t.checkViewport=function(e){var t=!0,a=jQuery(window).innerWidth();t=a<768?!!e.data("on-mobile"):a<981?!!e.data("on-tablet"):!!e.data("on-desktop");return t},t.triggerLazyLoad=function(e){jQuery("body").trigger("post-load")},t.triggerAnimations=function(e){void 0!==window.et_reinit_waypoint_modules&&window.et_reinit_waypoint_modules()},t.initRecaptcha=function(e){if(!window.grecaptcha)return;if(!e.find('input[name="g-recaptcha-response"]').length)return;if(e.find("[data-sitekey].g-recaptcha").length>0)e.find("form").each(function(){var e=jQuery(this),t=e.find("[data-sitekey].g-recaptcha");if(t.length&&!e.find('iframe[src*="/recaptcha/"]').length){var a={sitekey:t.attr("data-sitekey"),type:t.attr("data-type"),size:t.attr("data-size"),theme:t.attr("data-theme"),badge:t.attr("data-badge"),tabindex:t.attr("data-tabindex")},o=t.attr("data-callback"),i=t.attr("data-expired-callback");o&&"function"==typeof window[o]&&(a.callback=window[o]),i&&"function"==typeof window[i]&&(a["expired-callback"]=window[i]);var n=grecaptcha.render(t[0],a);window.recaptchaWidgets&&recaptchaWidgets.push(n)}});else{var t=jQuery('script[src*="google.com/recaptcha/api.js"]').attr("src"),a=t.replace(/^.*render=(.*)$/,"$1").split("&")[0];grecaptcha.execute(a,{action:"homepage"}).then(function(t){e.find('form [name="g-recaptcha-response]').val(t)})}},t.configArea=function(e,t,a){var n,r,d=(0,s.getArea)(e);if(!d||1!==d.length)return;if(n=d.data("_id"),"object"===(void 0===t?"undefined":o(t))){for(var l in t)t.hasOwnProperty(l)&&DiviPopup.config(d,l,t[l]);return}if(void 0!==t){if("string"!=typeof t)return;switch(t=t.trim().toLowerCase().replace(/-/g,"")){case"notmobile":r=(0,i.toBool)(d.data("on-mobile")),d.data("on-mobile",!(0,i.toBool)(a,!r));break;case"onmobile":r=(0,i.toBool)(d.data("on-mobile")),d.data("on-mobile",(0,i.toBool)(a,r));break;case"nottablet":r=(0,i.toBool)(d.data("on-tablet")),d.data("on-tablet",!(0,i.toBool)(a,!r));break;case"ontablet":r=(0,i.toBool)(d.data("on-tablet")),d.data("on-tablet",(0,i.toBool)(a,r));break;case"notdesktop":r=(0,i.toBool)(d.data("on-desktop")),d.data("on-desktop",!(0,i.toBool)(a,!r));break;case"ondesktop":r=(0,i.toBool)(d.data("on-desktop")),d.data("on-desktop",(0,i.toBool)(a,r));break;case"triggerexit":d.data("trigger-exit",(0,i.toBool)(a));break;case"hideclose":d.data("show-close",!(0,i.toBool)(a));break;case"showclose":d.data("show-close",(0,i.toBool)(a));break;case"closealt":d.data("close-alt",(0,i.toBool)(a));break;case"ismodal":d.data("is-modal",(0,i.toBool)(a));break;case"notmodal":d.data("is-modal",!(0,i.toBool)(a));break;case"shadow":d.data("no-shadow",!(0,i.toBool)(a));break;case"noshadow":d.data("no-shadow",(0,i.toBool)(a));break;case"dark":d.data("dark-mode",(0,i.toBool)(a));break;case"maxwidth":d.data("max-width",a);break;case"maxheight":d.data("max-height",a);break;case"zindex":d.data("z-index",parseInt(a));break;case"singleton":d.data("singleton",(0,i.toBool)(a));break;case"ids":case"alternateid":Array.isArray(a)?a.forEach(function(e){return(0,s.addAltId)(n,e)}):(0,s.addAltId)(n,a);break;case"position":var u=[];-1!==a.indexOf("top")?u.push("top"):-1!==a.indexOf("bottom")?u.push("bottom"):u.push("center"),-1!==a.indexOf("left")?u.push("left"):-1!==a.indexOf("right")?u.push("right"):u.push("center"),d.data("position",u.join("-")),d.data("position-v",u[0]),d.data("position-h",u[1]);break;case"closetrigger":d.data("close-on",a);break;case"closedelay":d.data("close-delay",parseFloat(a))}}d.data("on-mobile")?d.removeClass((0,i.getOption)("notMobileClass")):d.addClass((0,i.getOption)("notMobileClass"));d.data("on-tablet")?d.removeClass((0,i.getOption)("notTabletClass")):d.addClass((0,i.getOption)("notTabletClass"));d.data("on-desktop")?d.removeClass((0,i.getOption)("notDesktopClass")):d.addClass((0,i.getOption)("notDesktopClass"));d.data("trigger-exit")?d.addClass((0,i.getOption)("exitIndicatorClass")):d.removeClass((0,i.getOption)("exitIndicatorClass"));d.data("show-close")?(d.addClass((0,i.getOption)("withCloseClass")),d.removeClass((0,i.getOption)("noCloseClass"))):(d.addClass((0,i.getOption)("noCloseClass")),d.removeClass((0,i.getOption)("withCloseClass")));d.data("close-alt")?d.addClass((0,i.getOption)("altCloseClass")):d.removeClass((0,i.getOption)("altCloseClass"));d.data("is-modal")?d.addClass((0,i.getOption)("modalIndicatorClass")):d.removeClass((0,i.getOption)("modalIndicatorClass"));d.data("no-shadow")?d.addClass((0,i.getOption)("noShadowClass")):d.removeClass((0,i.getOption)("noShadowClass"));d.data("dark-mode")?d.addClass((0,i.getOption)("darkModeClass")):d.removeClass((0,i.getOption)("darkModeClass"));d.data("singleton")?d.addClass((0,i.getOption)("singletonClass")):d.removeClass((0,i.getOption)("singletonClass"))};var i=a(1),n=a(0),r=a(2),s=a(4),d=window.ResizeObserver||window.WebKitResizeObserver},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animateArea=function(e,t,a){var s=!1,d=!1;if("show"===t&&"yes"===e.data("_visible"))return(0,i.debug)("Skip opening-animation, area is already visible"),!1;if("hide"===t&&"yes"!==e.data("_visible"))return(0,i.debug)("Skip closing-animation, area is not visible"),!1;window.TweenLite&&"flyin"===e.data("_type")&&(d=!0);"function"!=typeof a&&(a=function(){});if("hide"===t&&"flyin"!==e.data("_type"))return void a();e.hasClass("et_pb_section")&&jQuery.fn.waypoint&&"yes"!==et_pb_custom.ignore_waypoints&&function(e){var t=e.attr("data-animation"),a=!1;if(!t)return!1;if(!(a=n[t]))return!1;jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),e.attr({"data-animation-style":a.style,"data-animation-repeat":"once"===a.repeat?"":"infinite","data-animation-duration":a.duration,"data-animation-delay":a.delay,"data-animation-intensity":a.intensity,"data-animation-starting-opacity":a.starting_opacity,"data-animation-speed-curve":a.speed_curve}),r(e,{offset:"100%",handler:function(){!function(e){var t=e.attr("data-animation-style"),a=e.attr("data-animation-repeat"),o=e.attr("data-animation-duration"),i=e.attr("data-animation-delay"),n=e.attr("data-animation-intensity"),r=e.attr("data-animation-starting-opacity"),s=e.attr("data-animation-speed-curve");!function(e){for(var t=[],a=e.get(0).attributes,o=0;o<a.length;o++)"data-animation-"===a[o].name.substring(0,15)&&t.push(a[o].name);jQuery.each(t,function(t,a){e.removeAttr(a)})}(e);var d=isNaN(parseInt(r))?0:.01*parseInt(r);-1===jQuery.inArray(s,["linear","ease","ease-in","ease-out","ease-in-out"])&&(s="ease-in-out"),e.css({"animation-duration":o,"animation-delay":i,opacity:d,"animation-timing-function":s});for(var l={},u=isNaN(parseInt(n))?50:parseInt(n),p=["slide","zoom","flip","fold","roll"],c=!1,f=!1,g=0;g<p.length;g++){var v=p[g];if(t&&t.substr(0,v.length)===v){c=v,""!==(f=t.substr(v.length,t.length))&&(f=f.toLowerCase());break}}!1!==c&&!1!==f&&(l=function(e,t,a){var o={};switch(e){case"slide":switch(t){case"top":o={transform:"translate3d(0, "+(i=-2*a)+"%, 0)"};break;case"right":o={transform:"translate3d("+(i=2*a)+"%, 0, 0)"};break;case"bottom":o={transform:"translate3d(0, "+(i=2*a)+"%, 0)"};break;case"left":var i=-2*a;o={transform:"translate3d("+i+"%, 0, 0)"};break;default:o={transform:"scale3d("+(n=.01*(100-a))+", "+n+", "+n+")"}}break;case"zoom":var n=.01*(100-a);switch(t){case"top":case"right":case"bottom":case"left":default:o={transform:"scale3d("+n+", "+n+", "+n+")"}}break;case"flip":switch(t){case"right":o={transform:"perspective(2000px) rotateY("+(r=Math.ceil(.9*a))+"deg)"};break;case"left":o={transform:"perspective(2000px) rotateY("+(r=-1*Math.ceil(.9*a))+"deg)"};break;case"top":default:o={transform:"perspective(2000px) rotateX("+(r=Math.ceil(.9*a))+"deg)"};break;case"bottom":o={transform:"perspective(2000px) rotateX("+(r=-1*Math.ceil(.9*a))+"deg)"}}break;case"fold":switch(t){case"top":o={transform:"perspective(2000px) rotateX("+(r=-1*Math.ceil(.9*a))+"deg)"};break;case"bottom":o={transform:"perspective(2000px) rotateX("+(r=Math.ceil(.9*a))+"deg)"};break;case"left":o={transform:"perspective(2000px) rotateY("+(r=Math.ceil(.9*a))+"deg)"};break;case"right":default:o={transform:"perspective(2000px) rotateY("+(r=-1*Math.ceil(.9*a))+"deg)"}}break;case"roll":switch(t){case"right":case"bottom":o={transform:"rotateZ("+(r=-1*Math.ceil(3.6*a))+"deg)"};break;case"top":case"left":o={transform:"rotateZ("+(r=Math.ceil(3.6*a))+"deg)"};break;default:var r=Math.ceil(3.6*a);o={transform:"rotateZ("+r+"deg)"}}}return o}(c,f,u)),jQuery.isEmptyObject(l)||e.css(l),e.addClass("et_animated"),e.addClass(t),e.addClass(a)}(jQuery(this.element))}})}(e)&&(s=!0);d?function(e,t,a){(0,i.debug)("Animate Area using GSAP");var n=(0,o.getOption)("animateSpeed"),r={},s={};e.css({opacity:"show"===t?0:1,transition:"all 0s"}),e.show(),window.setTimeout(function(){"left"===e.data("position-h")?(r.left=-1*e.outerWidth(),s.left=0):"right"===e.data("position-h")?(r.right=-1*e.outerWidth(),s.right=0):"top"===e.data("position-v")?(r.top=-1*e.outerHeight(),s.top=0):"bottom"===e.data("position-v")&&(r.bottom=-1*e.outerHeight(),s.bottom=0),r.opacity=1,s.opacity=1,"hide"===t?(e.css(s),TweenLite.to(e,n/1e3,{css:r})):(e.css(r),TweenLite.to(e,n/1e3,{css:s})),window.setTimeout(a,n)},5)}(e,t,a):s?function(e,t,a){(0,i.debug)("Animate Area using a Divi Animation"),e.show(),e.css({opacity:0}),window.setTimeout(function(){e.css({opacity:""}),r(e,{offset:"100%",handler:function(){e.addClass("et-animated"),a()}},2)},10)}(e,0,a):function(e,t,a){"show"===t?((0,i.debug)("Animate Area using jQuery fadeIn"),e.fadeIn((0,o.getOption)("animateSpeed"),a)):"hide"===t&&((0,i.debug)("Animate Area using jQuery fadeOut"),e.fadeOut((0,o.getOption)("animateSpeed"),a))}(e,t,a)},t.initializeAreaAnimation=function(e){if(!window.et_animation_data||!window.et_animation_data.length>0)return!1;e.removeClass("et-waypoint"),e.removeClass("et-animated");for(var t=0;t<et_animation_data.length;t++){var a=!1,o=et_animation_data[t];o&&(o.class&&e.hasClass(o.class)&&o.style&&o.repeat&&o.duration&&o.delay&&o.intensity&&o.starting_opacity&&o.speed_curve&&(a=o.class,e.addClass("pfd-waypoint"),e.attr("data-animation",a),n[a]=o,et_animation_data[t].class=void 0))}};var o=a(1),i=a(0),n={};function r(e,t,a){a=a||e.data("et_waypoint_max_instances")||1;var o=e.data("et_waypoint")||[];if(o.length<a){var i=e.waypoint(t);i&&i.length>0&&(o.push(i[0]),e.data("et_waypoint",o))}else for(var n=0;n<o.length;n++)o[n].context.refresh()}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showOverlay=function(){var e=(0,o.getOption)("zIndex");null===d&&((d=jQuery("<div />")).addClass((0,o.getOption)("overlayClass")),d.prependTo((0,s.getContext)()),d.on("click.popup",p));e+=Math.max(0,(0,r.countVisibleAreas)()),d.css({zIndex:e}),l||(l=!0,(0,i.info)("⤴️ Show background overlay"),d.fadeIn((0,o.getOption)("animateSpeed"),function(){jQuery("body").addClass((0,o.getOption)("openPopupClass"))}),(0,n.doAction)("show_overlay"),(0,s.broadcast)("OverlayShow"));return e},t.hideOverlay=u;var o=a(1),i=a(0),n=a(2),r=a(4),s=a(3),d=null,l=!1;function u(){l&&(l=!1,(0,i.info)("⤵️ Hide background overlay"),d.hide(),jQuery("body").removeClass((0,o.getOption)("openPopupClass")),(0,n.doAction)("hide_overlay"),(0,s.broadcast)("OverlayHide"))}function p(e){if((0,i.info)("⚡️ Click on background overlay"),e.preventDefault(),(0,n.applyFilters)("ignore_overlay_click",!1))return(0,i.debug)("Ignore click:","Manually cancelled via filter"),!1;if((0,n.doAction)("click_overlay"),(0,s.broadcast)("OverlayClick"),!(0,r.countVisibleAreas)("popup"))return(0,i.debug)("Ignore click:","No visible Popups found"),!1;var t=(0,r.getVisibleArea)("popup");return t.length?t.hasClass((0,o.getOption)("modalIndicatorClass"))?((0,i.debug)("Ignore click:",'Top-most popup is marked as "modal"'),!1):((0,n.doAction)("close_area"),(0,r.countVisibleAreas)("popup")||u(),!1):((0,i.debug)("Ignore click:",'Top-most popup is marked as "modal"'),!1)}},function(e,t,a){a(10),e.exports=a(13)},function(e,t,a){"use strict";var o=function(e){return e&&e.__esModule?e:{default:e}}(a(11));window.DiviArea=0,window.DiviArea=window.DiviPopup=new o.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,a,o){return a&&e(t.prototype,a),o&&e(t,o),t}}(),i=a(1),n=a(0),r=a(2),s=a(4),d=a(6),l=a(3),u=a(8),p=function(e){return e&&e.__esModule?e:{default:e}}(a(12));function c(e,t){(0,l.isArea)(e)&&DiviArea.hide(e.data("_id"))}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=[window.location.protocol,"//",window.location.host,"/wp-admin/edit.php?post_type=divi-area&page=settings#frontend"];this.app=window.DiviArea?"Divi Areas Pro":"Popups for Divi",this.lib=window.DiviArea?"DiviArea":"DiviPopup",this.version="1.0.0",this.info=this.lib+"-"+this.version,(0,n.info)("🚀 Initialize "+this.app,"- JS API:",this.info),window.DiviArea?(0,n.info)("ℹ️ You can disable the debug output on the Settings page:",t.join("")):(0,n.info)("ℹ️ You can disable the debug output by disabling WP_DEBUG"),(0,n.debug)("Details about the Debug Mode","https://divimode.com/knowledge-base/debug-options/"),(0,p.default)(),(0,i.initOptions)(),(0,l.initContext)(),(0,l.initExitIntent)(),(0,i.getOption)("initializeOnEvent")?jQuery(window,document).on((0,i.getOption)("initializeOnEvent"),function(){window.setTimeout(l.initializeModule,1)}):window.setTimeout(l.initializeModule,1)}return o(e,[{key:"markClosed",value:function(e,t){if((0,i.getOption)("debug")){var a=(0,s.getId)(e);(0,n.info)("📌 Mark Area as closed for "+t+" minutes:",a)}(0,i.setLocalData)(e,"1",t)}},{key:"isClosed",value:function(e){var t=(0,i.getLocalData)(e);if((0,i.getOption)("debug")){var a=(0,s.getId)(e);"1"===t?(0,n.info)("📌 Area is still closed:",a):(0,n.info)("📌 Area is not closed:",a)}return"1"===t}},{key:"register",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2];if(!(e=(0,s.getId)(e)))return!1;var o,i=(0,s.getArea)(e);if(i)return i;if(a||(a=(o=jQuery((0,s.getId)(e))).data("_type")),!a&&o.length)for(var r=o.attr("class").split(" "),l=0;l<r.length;l++)if(0===r[l].indexOf("divi-area-type-")){a=r[l].replace("divi-area-type-","");break}if(!a)return!1;(0,n.debugGroup)("Register Area | "+a+" | "+e);var u=(0,s.registerArea)(a,e,t.selector);return!(!u||!u.length)&&(Object.keys(t).forEach(function(e){(0,d.configArea)(u,e,t[e])}),"inline"===a&&((0,d.triggerLazyLoad)(u),this.show(e)),(0,n.debugGroup)(),u)}},{key:"config",value:function(e,t,a){(0,d.configArea)(e,t,a)}},{key:"show",value:function(e,t){var a=(0,s.getId)(e),o=(0,s.getArea)(a),u=0,p=!1;if((0,n.debugGroup)("Show area",a),!o||!o.length)return(0,n.error)("Could not find an area with the ID:",a),(0,n.debugGroup)(),!1;if(!(0,d.checkViewport)(o))return(0,n.debug)("Do not trigger area on this device:",a),(0,n.debugGroup)(),!1;var f=o.data("_type");return"yes"===o.data("_visible")&&o.data("_do_animation","skip"),t&&(t.delegateTarget?p=t.delegateTarget:t.target&&(p=t.target)),o.data("_trigger",p),(0,n.debug)("Trigger element:",p||"(none)"),"inline"!==f&&((0,l.removeArea)(o),o.removeClass((0,i.getOption)("exitIndicatorClass"))),"hover"===f&&(0,d.setupHoverArea)(o),(0,s.addVisibleArea)(o),(0,r.addAction)("close_area-"+o.data("_key"),c),(0,l.reOrderAreas)(o),"inline"!==f&&("skip"!==o.data("_do_animation")&&o.data("animation")&&(o.css({transition:"none"}),u+=(0,i.toMilliseconds)(o.css("animation-delay")),u+=(0,i.toMilliseconds)(o.css("animation-duration")),o.addClass("__is_animating"),window.setTimeout(function(){"yes"===o.data("_visible")&&o.removeClass("__is_animating")},u+50)),window.setTimeout(function(){(0,d.triggerLazyLoad)(o),(0,d.triggerAnimations)(o),(0,d.initRecaptcha)(o)},50)),(0,n.debugGroup)(),o.data("_do_animation",""),!0}},{key:"hide",value:function(e){var t;(0,s.countVisibleAreas)()&&(t=e?(0,s.getVisibleArea)("all",(0,s.getRealId)(e)):(0,s.getVisibleArea)("all"))&&((0,n.debug)("Close area and unlink event handlers:",t.data("_id")),(0,l.removeArea)(t,!0)),(0,s.countVisibleAreas)("popup")?(0,l.reOrderAreas)():DiviPopup.hideOverlay()}},{key:"showOverlay",value:function(){(0,u.showOverlay)()}},{key:"hideOverlay",value:function(){(0,u.hideOverlay)()}},{key:"addFilter",value:function(e,t,a){r.addFilter.apply(window,arguments)}},{key:"addAction",value:function(e,t,a){r.addAction.apply(window,arguments)}},{key:"addActionOnce",value:function(e,t){r.addActionOnce.apply(window,arguments)}},{key:"removeFilter",value:function(e,t,a){r.removeFilter.apply(window,arguments)}},{key:"removeAction",value:function(e,t,a){r.removeAction.apply(window,arguments)}},{key:"applyFilters",value:function(e,t){return r.applyFilters.apply(window,arguments)}},{key:"doAction",value:function(e,t){r.doAction.apply(window,arguments)}},{key:"openPopup",value:function(e){(0,n.error)("DiviPopup.openPopup() is deprecated. Please use DiviPopup.show() instead"),DiviPopup.show(e)}},{key:"openArea",value:function(e){(0,n.error)("DiviArea.openArea() is deprecated. Please use DiviArea.show() instead"),DiviPopup.show(e)}},{key:"closePopup",value:function(e){(0,n.error)("DiviPopup.closeArea() is deprecated. Please use DiviPopup.hide() instead"),DiviPopup.hide(e)}},{key:"closeArea",value:function(e){(0,n.error)("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviPopup.hide(e)}},{key:"broadcast",value:function(e,t,a){(0,n.error)("DiviArea.broadcast() is deprecated. Please use DiviArea.doAction() instead"),l.broadcast.apply(window,arguments)}},{key:"observe",value:function(e,t,a){l.observe.apply(window,arguments)}}]),e}();t.default=f},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){!function(e){e.support.getBoundingClientRect="getBoundingClientRect"in document.documentElement,e.fn.clientRect=function(){var t={top:0,left:0,width:0,height:0,bottom:0,right:0};if(0===this.length)return t;var a,o=this[0],i=o.ownerDocument,n=i.documentElement;if(!e.contains(n,o))return t;if(e.support.getBoundingClientRect){try{a=o.getBoundingClientRect()}catch(e){}if(!a)return t;if(a.right===a.left&&a.top===a.bottom)return t;var r=function(t){return e.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}(i);t.top=a.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),t.left=a.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0),t.width=a.right-a.left,t.height=a.bottom-a.top}else{if("none"==this.css("display"))return t;(t=this.offset()).width=this.outerWidth(),t.height=this.outerHeight()}return t.bottom=t.top+t.height,t.right=t.left+t.width,t}}(jQuery)}},function(e,t,a){}]);
|
1 |
+
!function(e){var i={};function t(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=i,t.d=function(e,i,a){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var o in e)t.d(a,o,function(i){return e[i]}.bind(null,o));return a},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},t.p="",t(t.s=6)}([function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getId=u,i.getRealId=p,i.addAltId=function(e,i){if(e===i)return;i=u(i),null===e?delete d[i]:d[i]=e},i.getArea=c,i.registerArea=function(e,i,t){if(!(i=u(i)))return!1;var o=c(i);if(o)return o;var n=jQuery(i);if(!n.length)return!1;t&&(n=n.filter(t));if(!n||1!==n.length)return!1;"inline"===e?n.data("_visible","yes"):(n.closest(".et-l").length&&n.data("wrap-classes","et-l"),n.detach(),n.data("_visible","no"));var l=i.replace(/-/g,"_").replace(/^#/,"");n.addClass(e),n.attr("data-dm-type",e),n.attr("data-dm-registered",1),n.data("_id",i),n.data("_key",l),n.data("_type",e),DiviArea.Debug.debug("Area Type",e),DiviArea.Debug.debug("Area ID",i),DiviArea.Debug.debug("Area Hook",l),(0,a.attachCloseButton)(n),s[i]=n,n.hasClass(DiviArea.Utils.getOption("notMobileClass"))?n.data("on-mobile",!1):n.data("on-mobile",DiviArea.Utils.toBool(n.data("on-mobile")));n.hasClass(DiviArea.Utils.getOption("notTabletClass"))?n.data("on-tablet",!1):n.data("on-tablet",DiviArea.Utils.toBool(n.data("on-tablet")));n.hasClass(DiviArea.Utils.getOption("notDesktopClass"))?n.data("on-desktop",!1):n.data("on-desktop",DiviArea.Utils.toBool(n.data("on-desktop")));n.hasClass(DiviArea.Utils.getOption("withCloseClass"))?n.data("show-close",!0):n.hasClass(DiviArea.Utils.getOption("noCloseClass"))?n.data("show-close",!1):n.data("show-close",DiviArea.Utils.toBool(n.data("show-close")));n.hasClass(DiviArea.Utils.getOption("altCloseClass"))?n.data("close-alt",!0):n.data("close-alt",DiviArea.Utils.toBool(n.data("close-alt"),!1));n.hasClass(DiviArea.Utils.getOption("modalIndicatorClass"))?n.data("is-modal",!0):n.data("is-modal",DiviArea.Utils.toBool(n.data("is-modal"),!1));n.hasClass(DiviArea.Utils.getOption("exitIndicatorClass"))?n.data("trigger-exit",!0):n.data("trigger-exit",DiviArea.Utils.toBool(n.data("trigger-exit"),!1));n.hasClass(DiviArea.Utils.getOption("noShadowClass"))?n.data("no-shadow",!0):n.data("no-shadow",DiviArea.Utils.toBool(n.data("no-shadow"),!1));n.hasClass(DiviArea.Utils.getOption("darkModeClass"))?n.data("dark-mode",!0):n.data("dark-mode",DiviArea.Utils.toBool(n.data("dark-mode"),!1));n.hasClass(DiviArea.Utils.getOption("singletonClass"))?n.data("singleton",!0):n.data("singleton",DiviArea.Utils.toBool(n.data("singleton"),!1));return n.data("position","center-center"),n.data("position-v","center"),n.data("position-h","center"),(0,a.configArea)(n),(0,r.initializeAreaAnimation)(n),DiviArea.Debug.info("➕ Registered new area:",i,"("+e+")"),n},i.getAllIds=function(e){var i=[];if(e&&e instanceof jQuery){var t=e.data("_id");for(var a in i.push(t),d)t===d[a]&&i.push(a)}else{for(var o in s){var r=s[o];b(e,r)&&i.push(o)}for(var n in d){var l=d[n],u=s[l];b(e,u)&&i.push(n)}}return i},i.loopAllAreas=function(e,i){for(var t in s){var a=s[t];b(e,a)&&i(a,t)}},i.countVisibleAreas=v,i.addVisibleArea=function(e){if(!(e=c(e)))return!1;var i=e.data("_type");if(DiviArea.Debug.debug("Make area visible",e.data("_id")),"popup"!==i&&v("popup")){for(var t=0;t<l.length;t++)if("popup"===l[t].data("_type")){l.splice(t,0,e);break}}else l.push(e);if(e.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da"),e.find("."+DiviArea.Utils.getOption("closeButtonClass")).off(".da"),e.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).on("click.da",function(i){return DiviArea.Debug.debug("Click on custom close-button"),DiviArea.Hooks.doAction("close_area",e,"custom"),DiviArea.Hooks.doAction("close_area-"+e.data("_key"),e,"custom"),(0,o.broadcast)("Close",e),i.preventDefault(),!1}),e.hasClass(DiviArea.Utils.getOption("withCloseClass"))){var a=e.find("."+DiviArea.Utils.getOption("closeButtonClass"));a.on("click.da",function(i){return DiviArea.Debug.debug("Click on default close-button"),DiviArea.Hooks.doAction("close_area",e,"default"),DiviArea.Hooks.doAction("close_area-"+e.data("_key"),e,"default"),(0,o.broadcast)("Close",e),i.preventDefault(),!1})}},i.removeVisibleArea=function(e){if(!(e=c(e)))return!1;var i=e.data("_id");DiviArea.Debug.debug("Make area hidden",i);for(var t=l.length-1;t>=0;t--){var a=l[t];i===a.data("_id")&&l.splice(t,1)}e.find("div ."+DiviArea.Utils.getOption("triggerCloseClass")).off(".da"),e.find("."+DiviArea.Utils.getOption("closeButtonClass")).off(".da")},i.getVisibleArea=g,i.loopVisibleAreas=f,i.reorderVisibleAreas=function(){var e=DiviArea.Utils.getOption("zIndex"),i=1,t=[];function a(a){var n=a.data("_type"),s=a.parent(),l=e+i;if(isNaN(a.data("z-index"))||(l=a.data("z-index")),!s.hasClass(DiviArea.Utils.getOption("popupWrapperClass"))){"inline"===n?(a.wrap("<div>"),s=a.parent()):((s=jQuery("<div/>")).appendTo((0,o.getContext)()),a.detach().appendTo(s));var d=a.data("wrap-classes");d&&s.addClass(d),s.addClass(DiviArea.Utils.getOption("popupWrapperClass")),s.addClass("type-"+n),s.addClass("position-"+a.data("position"))}t.push({id:a.data("_id"),type:a.data("_type"),pos:i,zIndex:"inline"===n?"":l}),"inline"!==n&&s.css({zIndex:l}),i++,"yes"!==a.data("_visible")&&("skip"===a.data("_do_animation")?a.show():(DiviArea.Debug.info("✨ Animate the area (show)",a.data("_id")),(0,r.animateArea)(a,"show")),a.data("_visible","yes"),DiviArea.Hooks.doAction("show_area",a),DiviArea.Hooks.doAction("show_area-"+a.data("_key"),a),(0,o.broadcast)("Show",a))}DiviArea.Debug.debug("Refresh order (z-index) of visible areas"),f("all",o.blurArea),f("inline",a),f("!popup,inline",a),v("popup")&&(t.push({id:"-",type:"overlay",pos:i,zIndex:(0,n.showOverlay)()}),f("popup",a));DiviArea.Debug.info("👓 List of visible Areas:"),DiviArea.Debug.table(t),(0,o.focusArea)(g()),window.setTimeout(D,50)},i.doResizeAreas=D;var a=t(3),o=t(1),r=t(4),n=t(5),s={},l=[],d={};function u(e,i){if(e instanceof jQuery){if(e.data("_id"))return e.data("_id");e=e.attr("id")}if(!e)return"";if("#"!==e[0]&&(e="#"+e),i){var t=new RegExp("^#"+i+":");e=e.replace(t,"#",e)}return e?e.toString():""}function p(e){var i=u(e),t=u(d[i]);return void 0!==s[i]?i:void 0!==s[t]?t:""}function c(e){if(e instanceof jQuery)return!!e.data("_id")&&e;var i=p(e);return!!i&&s[i]}function v(e){if(!e||"all"===e)return l.length;var i=0;return f(e,function(){return i++}),i}function g(e,i){for(var t=l.length-1;t>=0;t--)if(b(e,l[t])){if(void 0===i||-1===i)return l[t];if(i===l[t].data("_id"))return l[t]}return!1}function f(e,i,t){for(var a=l.length,o=t?a-1:0,r=0;r<a;r++){var n=l[o];o+=t?-1:1,b(e,n)&&i(n,r)}}function D(){var e=parseInt(jQuery("html").css("marginTop")),i=jQuery(window).innerWidth(),t=jQuery(window).innerHeight()-e;f("all",function(e){var a,o,r=e.parent(),n=e.data("_type"),s={};"inline"===n||e.data("max-width")||(e.hasClass("et_pb_section")?e.data("max-width",e.outerWidth()+"px"):(e.data("max-width",e.children(".et_pb_section").first().outerWidth()+"px"),e.children(".et_pb_section").css({width:"100%",maxWidth:""})),DiviArea.Debug.debug("Auto max-width calculated:",e.data("_id"),e.data("max-width"))),e.data("max-height")&&(s.overflow="auto",s.maxHeight=e.data("max-height")),e.data("max-width")&&(s.maxWidth=e.data("max-width")),e.css(s),"popup"===n&&(o=isNaN(e[0].scrollHeight)?e.innerHeight:e[0].scrollHeight,a=isNaN(e[0].scrollWidth)?e.innerWidth:e[0].scrollWidth,i<a+20?r.addClass(DiviArea.Utils.getOption("fullWidthClass")):r.removeClass(DiviArea.Utils.getOption("fullWidthClass")),t<o+20?r.addClass(DiviArea.Utils.getOption("fullHeightClass")):r.removeClass(DiviArea.Utils.getOption("fullHeightClass")))})}function b(e,i){if(!e)return!0;if("all"===e)return!0;var t="!"===e[0],a=i.data("_type");e=e.replace("!","").split(",");for(var o=0;o<e.length;o++){if(e[o]=e[o].trim(),t&&e[o]===a)return!1;if(!t&&e[o]===a)return!0}return!!t}},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i.initializeModule=function(){DiviArea.Debug.debug("Initialize the app"),jQuery(document).trigger("DiviAreas:Loaded",[window.DiviAreas]),DiviArea.Hooks.doAction("load"),l("Load"),function(){var e=jQuery(".et_pb_fullscreen_nav_container #mobile_menu_slide");if(!e.length)return;e.parent().css({minHeight:e.outerHeight()})}(),v(u),g(o.doResizeAreas),jQuery(document).on("keyup",b),window.setTimeout(function(){DiviArea.Hooks.addAction("exit_intent",A)},DiviArea.Utils.getOption("onExitDelay")),DiviArea.Hooks.addAction("close_area",D),u(),DiviArea.Hooks.doAction("ready"),l("Ready")},i.broadcast=l,i.observe=function(e,i,t){var a=".__"+e,o="DiviPopup:"+e,r=d(t);function n(a,o){var n=window;return r?(DiviArea.Debug.verbose("Handle observed area event",e,t.data("_id")),n=t):(o&&jQuery(o).data("_id")&&(n=jQuery(o)),DiviArea.Debug.verbose("Handle observed global event",e)),i.apply(n,arguments)}DiviArea.Debug.error("observe() is deprecated. Use DiviArea.addAction() or DiviArea.addFilter() instead!"),r?(DiviArea.Debug.debug("[DEPRECATED] Observe area event:",e,t.data("_id")),t.off(a),t.on(o+a,n)):(DiviArea.Debug.debug("[DEPRECATED] Observe global event:",e),jQuery(document).off(a),jQuery(document).on(o+a,n))},i.isArea=d,i.reOrderAreas=function(e){if(!(0,o.countVisibleAreas)())return;(0,o.reorderVisibleAreas)(),e&&function(e){s&&!e.data("observe-resize")&&(s.observe(e[0]),e.data("observe-resize",!0))}(e);(0,o.countVisibleAreas)("popup")&&DiviPopup.showOverlay()},i.doActivateTriggers=u,i.doDeactivateTriggers=p,i.removeArea=function(e,i){var t=[],n=(e=jQuery(e)).data("_id"),u=[];"popup"===e.data("_type")&&((0,o.loopVisibleAreas)("popup",function(e){u.push(e.data("_id"))}),i?(t.push(n),n=!1):e.data("singleton")&&(t=u,n=!1));function p(e){"object"===(void 0===e?"undefined":a(e))&&(e=e.data("_id")),e&&e.length&&("#"!==e[0]&&(e="#"+e),t.push(e))}function c(e){if(d(e=jQuery(e))&&e.data("_key")){e.removeClass("__is_animating"),f(e),DiviArea.Hooks.doAction("hide_area",e),DiviArea.Hooks.doAction("hide_area-"+e.data("_key"),e),l("Hide",e),e.find("div .popup-trigger").off("._da"),function(e){s&&e.data("observe-resize")&&(s.unobserve(e[0]),e.data("observe-resize",!1))}(e);var i=e.parent();"skip"===e.data("_do_animation")?t():(DiviArea.Debug.info("✨ Animate the area (hide)",e.data("_id")),(0,r.animateArea)(e,"hide",t)),(0,o.removeVisibleArea)(e)}function t(){e.detach().hide().data("_visible","no"),i.hasClass(DiviArea.Utils.getOption("popupWrapperClass"))&&i.remove()}}i?(t=DiviArea.Hooks.applyFilters("hide_ids_before_hide",t,e,u),t=DiviArea.Hooks.applyFilters("hide_ids_before_hide-"+e.data("_key"),t,e,u),l("BeforeHide",e,u,p),DiviArea.Hooks.doAction("before_hide",e,t),DiviArea.Hooks.doAction("before_hide-"+e.data("_key"),e,t)):(t=DiviArea.Hooks.applyFilters("hide_ids_before_show",t,e,u),t=DiviArea.Hooks.applyFilters("hide_ids_before_show-"+e.data("_key"),t,e,u),l("BeforeShow",e,u,p),DiviArea.Hooks.doAction("before_show",e,t),DiviArea.Hooks.doAction("before_show-"+e.data("_key"),e,t));t.length&&(DiviArea.Debug.debug("Hide following areas:",t),(0,o.loopVisibleAreas)("all",function(e){var i=e.data("_id");-1!==t.indexOf(i)&&c(e)},!0));n&&c(n)},i.getContext=c,i.addDomObserver=v,i.addResizeObserver=g,i.initContext=function(){(n=jQuery(DiviArea.Utils.getOption("baseContext"))).length||DiviArea.Debug.error('Could not find the popup container "'+DiviArea.Utils.getOption("baseContext")+'"')},i.initExitIntent=function(){jQuery(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"),DiviArea.Hooks.doAction("exit_intent"),l("ExitIntent")))})},i.blurArea=f,i.focusArea=function(e){var i=DiviArea.Utils.getOption("activePopupClass");e&&!e.hasClass(i)&&(e.addClass(i),DiviArea.Hooks.doAction("focus_area",e),DiviArea.Hooks.doAction("focus_area-"+e.data("_key"),e),l("Focus",e),u(e))};var o=t(0),r=t(4),n=null,s=null;function l(e,i){var t=void 0,a=void 0,r=Array.prototype.slice.call(arguments);r.shift();var n=["DiviPopup:"+e],s=d(r[0]),l=[];for(s?DiviArea.Debug.debug("Broadcast area event:",e,r[0].data("_id")):DiviArea.Debug.debug("Broadcast global event:",e),window.DiviArea&&n.unshift("DiviArea:"+e),t=0;t<n.length;t++){if(s){var u=(0,o.getAllIds)(i);for(l.push({obj:i,event:n[t],params:r.slice(1)}),DiviArea.Debug.verbose('⚙ $("'+i.data("_id")+'").on("'+n[t]+'")'),a=0;a<u.length;a++){var p=":"+u[a].replace(/^#/,"");l.push({obj:jQuery(document),event:n[t]+p,params:r}),DiviArea.Debug.verbose('⚙ $(document).on("'+n[t]+p+'")')}}l.push({obj:jQuery(document),event:n[t],params:r}),DiviArea.Debug.verbose('⚙ $(document).on("'+n[t]+'")')}for(t=0;t<l.length;t++)l[t].obj.triggerHandler(l[t].event,l[t].params)}function d(e){return e&&e.length&&e instanceof jQuery&&e.data("_id")}function u(e){var i,t=void 0===e,a=void 0,r=void 0;if(void 0===e&&(e=c()),function(e){e.find(DiviArea.Utils.getOption("popupSelector")).filter("[id]").each(function(){var e=jQuery(this);DiviArea.Debug.debug("Found an inline Popup Area:",e.attr("id")),DiviPopup.register(e,{},"popup")})}(e),(i=function(e,i){var t,a,o,r=[];if(!e.ids||!e.ids.length)return[];function n(e,i){var t;for(t=0;t<i.length;t++){var a=jQuery(i[t]);a.attr("data-area-id")||r.push({id:e,item:a})}}for(t=0;t<e.ids.length;t++)if(n(o=e.ids[t].replace(/^#/,""),jQuery('[href="#'+o+'"]',i)),e.linkPrefix&&n(o,jQuery('[href="#'+e.linkPrefix+o+'"]',i)),e.classPrefix&&n(o,jQuery("."+e.classPrefix+o,i)),e.dataAttrib&&n(o,jQuery("["+e.dataAttrib+'="'+o+'"]',i)),window.et_link_options_data)for(a=et_link_options_data.length-1;a>=0;a--)if("#"+o===et_link_options_data[a].url){var s=jQuery(".et_pb_module."+et_link_options_data[a].class,i);n(o,s),s.off("click"),et_link_options_data.splice(a,1)}return r}({ids:(0,o.getAllIds)("popup"),linkPrefix:"popup:",dataAttrib:DiviArea.Utils.getOption("idAttrib"),classPrefix:DiviArea.Utils.getOption("triggerClassPrefix")},e)).length){for(t?DiviArea.Debug.group("Activate all triggers in document"):DiviArea.Debug.group("Activate triggers in area",e.data("_id")),a=0;a<i.length;a++)h((r=i[a]).item,r.id);DiviArea.Debug.group()}else t?DiviArea.Debug.debug("No new triggers found in document"):DiviArea.Debug.debug("No new triggers found in area",e.data("_id"))}function p(e){void 0!==e&&(DiviArea.Debug.debug("Deactivate all triggers in area",e.data("_id")),e.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")}(jQuery(this))}))}function c(){return n}function v(e){var i=window.MutationObserver||window.WebKitMutationObserver,t=window.addEventListener,a=c();i?new i(function(i,t){return i[0].addedNodes.length?(DiviArea.Debug.debug("DOM changed (nodes added)"),e()):i[0].removedNodes.length?(DiviArea.Debug.debug("DOM changed (nodes removed)"),e()):void 0}).observe(a[0],{childList:!0,subtree:!0}):t&&(a.addEventListener("DOMNodeInserted",e,!1),a.addEventListener("DOMNodeRemoved",e,!1))}function g(e){var i=window.ResizeObserver||window.WebKitResizeObserver;i?s=new i(e):window.setInterval(e,750),jQuery(window).resize(e)}function f(e){var i=DiviArea.Utils.getOption("activePopupClass");e&&(e.hasClass(i)&&(e.removeClass(i),DiviArea.Hooks.doAction("blur_area",e),DiviArea.Hooks.doAction("blur_area-"+e.data("_key"),e),l("Blur",e)),p(e))}function D(e,i){d(e)||(DiviArea.Debug.debug("Close the top-most area"),DiviPopup.hide())}function b(e){if(27===e.keyCode)return DiviArea.Debug.info("⚡️ ESC-key pressed"),DiviArea.Hooks.applyFilters("esc_key_pressed",!1)?(DiviArea.Debug.debug("Ignored, manually cancelled in filter"),!0):(0,o.countVisibleAreas)("popup")?(DiviArea.Debug.debug("Close top-most popup"),DiviArea.Hooks.doAction("close_area",!1,"esc"),l("Close"),!1):(DiviArea.Debug.debug("Ignored, no popup is visible"),!0)}function A(){var e=!1,i=!1;(0,o.loopAllAreas)("popup",function(i,t){e||i.hasClass(DiviArea.Utils.getOption("exitIndicatorClass"))&&(e=t)}),(0,o.loopAllAreas)("flyin",function(e,t){i||e.hasClass(DiviArea.Utils.getOption("exitIndicatorClass"))&&(i=t)}),e&&DiviArea.show(e),i&&DiviArea.show(i)}function h(e,i){var t;if(t=(0,o.getId)(i)){if(e.attr("data-area-id"))return e.off("._da"),e.on("click._da",a),void DiviArea.Debug.debug("Trigger already prepared",e[0]);(0,o.getArea)(t)?(e.attr("data-area-id",t),e.addClass("popup-trigger"),e.on("click._da",a),DiviArea.Debug.debug("Prepared trigger to open this area:",t,e[0])):DiviArea.Debug.debug("Ignore trigger. No area found with this ID:",e[0])}else DiviArea.Debug.debug("Ignore trigger. Invalid target ID:",i,e[0]);function a(e){return e.preventDefault(),DiviArea.Debug.debug("Trigger area:",t),DiviPopup.show(t),!1}}},function(e,i,t){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){e.Debug=e.Debug||{};var i=!1;e.Debug.group=function(e){if(DiviPopupData.debug&&console.group){var t=!i||e&&e!==i;if(i&&(console.groupEnd(),i=!1),e&&t){var a=Array.prototype.slice.call(arguments);a.unshift("[DiviAreas]"),console.group.apply(this,a),i=e}}},e.Debug.table=function(){if(DiviPopupData.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)}},e.Debug.verbose=function(){if(DiviPopupData.debug&&DiviPopupData.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)}},e.Debug.debug=function(){if(DiviPopupData.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#90a4ae"),e.unshift("[DiviAreas] %c%s"),console.debug.apply(this,e)}},e.Debug.info=function(){if(DiviPopupData.debug){var e=Array.prototype.slice.call(arguments);e.unshift("color:#0288d1;background:#fafcfe"),e.unshift("[DiviAreas] %c%s"),console.log.apply(this,e)}},e.Debug.error=function(){var e=Array.prototype.slice.call(arguments);e.unshift("[DiviAreas]"),console.error.apply(this,e)},e.Debug.sysInfo=function(){if(DiviArea.lib&&DiviArea.version&&console.log("JS API:",DiviArea.lib,DiviArea.version),window.DiviPopupData&&DiviPopupData.sys&&DiviPopupData.sys.plugin)for(var e in console.log(""),console.log("System information:"),DiviPopupData.sys)try{console.log(" -",e+":",DiviPopupData.sys[e])}catch(e){}console.log("")},e.Debug.initErrorLogging=function(e){var i=function(e,i,t){if(!e[i]||!e[i].__dm_orig__){var a=e[i];for(var o in e[i]=function(){var e=!1;try{e=t.apply(this,arguments)}finally{try{if(!e&&a)return a.apply(this,arguments)}catch(e){throw e}}},a)a.hasOwnProperty(o)&&(e[i][o]=a[o]);e[i].__dm_orig__=a}},t=function(){var e=!1;if(arguments[0]&&"[DiviAreas]"===arguments[0])return!1;for(var i=0;i<arguments.length;i++)if("object"===a(arguments[i])&&arguments[i]&&arguments[i].message&&arguments[i].stack){e=arguments[i];break}if(e){var t=[],o=e.stack.toString().split("\n");if(t.push("divimode.com Anonymized Error Report"),t.push("-".repeat(30)),t.push(e.name),e.message?t.push(e.message):t.push("-"),t.push(""),o&&o.length>1)for(var r=0;r<o.length;r++){var n=o[r];if(n.match(/(\/wp-includes\/|\/jquery\.js)/))break;n.match(/\.js/)&&(n=(n=(n=n.replace(/^\s+|\s+$/g,"")).replace(/https?:.*?\/wp-content/g,"")).replace(/\.js\?[\w=&_\-\.]*/g,".js"),t.push(n))}if(DiviArea.info&&(t.push(""),t.push("js api:"+DiviArea.info)),window.DiviPopupData&&DiviPopupData.sys&&DiviPopupData.sys.plugin)for(var s in t.push(""),DiviPopupData.sys)try{t.push(s+": "+DiviPopupData.sys[s])}catch(e){}t.push("-".repeat(30));var l=console.error.__dm_orig__||console.error;return console.log(""),l("✋ "+t.join("\n| ")),console.log(""),!0}return!1};i(e,"onerror",t),i(e.console,"error",t)}}(window.DiviArea=window.DiviArea||{})},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i.attachCloseButton=function(e){var i=DiviArea.Utils.getOption("closeButtonClass"),t=i+"_wrap",a=DiviArea.Utils.getOption("noCloseClass"),o=DiviArea.Utils.getOption("withCloseClass");if(e.find("."+t).length)return;var r=jQuery("<span />").addClass(t),n=jQuery('<a href="#close" />').addClass(i);n.html("×"),n.appendTo(r),r.appendTo(e),e.hasClass(a)||e.hasClass(o)||(DiviArea.Utils.getOption("defaultShowCloseButton")?e.addClass(o):e.addClass(a));DiviArea.Debug.debug("Added default close button to area",e.data("_id"))},i.setupHoverArea=function(e){var i=jQuery(e.data("_trigger"));if(!i.length)return;var t=DiviArea.Utils.isPositon(i,"fixed"),a="#"+e.attr("id"),o=e.data("close-on"),n=1e3*e.data("close-delay"),s=e,l=!1,d=!1,u=!1;r&&(u=new r(function(e){var i=!0,t=!1,a=void 0;try{for(var o,r=e[Symbol.iterator]();!(i=(o=r.next()).done);i=!0){var n=o.value,s=n.contentRect,l=s.width+"-"+s.height;l!==d&&(d=l,c())}}catch(e){t=!0,a=e}finally{try{!i&&r.return&&r.return()}finally{if(t)throw a}}},{box:"border-box"}));function p(){DiviArea.Debug.info("📐 Position area relative to element:",i),s=e.closest(".popup_outer_wrap"),c(),DiviArea.Hooks.removeAction("show_area-"+e.data("_key"),p)}function c(){var a=t?i[0].getBoundingClientRect():DiviArea.Utils.getClientRect(i),o={left:"",top:"",right:"",bottom:"",width:"",height:"",position:t?"fixed":"absolute"};"top"===e.data("position-v")?o.top=a.top:"bottom"===e.data("position-v")?o.top=a.bottom:"left"===e.data("position-h")?(o.top=a.top+a.height/2,o.left=a.left):"right"===e.data("position-h")?(o.top=a.top+a.height/2,o.left=a.right):DiviArea.Debug.error("Invalid position",e.data("position")),DiviArea.Debug.debug("Area position:",o),s.css(o)}function v(){g(),l=window.setTimeout(function(){DiviArea.hide(e.data("_id"))},n)}function g(){l&&window.clearTimeout(l),l=!1}DiviArea.Hooks.addAction("show_area-"+e.data("_key"),function(){u&&u.observe(i[0]),function(){"click"===o?jQuery(document).on("click."+a,function(e){jQuery(e.target).closest(a).length||v()}):"hover"===o&&(e.on("mouseleave._dah",v),i.on("mouseleave._dah",v));i.on("mouseenter._dah",g),e.on("mouseenter._dah",g)}(),p()}),DiviArea.Hooks.addAction("hide_area-"+e.data("_key"),function(){u&&u.disconnect(),jQuery(document).off("."+a),e.off("._dah"),i.off("._dah")}),DiviArea.Debug.debug("Prepared positioning of hover area")},i.checkViewport=function(e){var i=!0,t=jQuery(window).innerWidth();i=t<768?!!e.data("on-mobile"):t<981?!!e.data("on-tablet"):!!e.data("on-desktop");return i},i.triggerLazyLoad=function(e){jQuery("body").trigger("post-load")},i.triggerAnimations=function(e){void 0!==window.et_reinit_waypoint_modules&&window.et_reinit_waypoint_modules()},i.initRecaptcha=function(e){if(!window.grecaptcha)return;if(!e.find('input[name="g-recaptcha-response"]').length)return;if(e.find("[data-sitekey].g-recaptcha").length>0)e.find("form").each(function(){var e=jQuery(this),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"),o=i.attr("data-expired-callback");a&&"function"==typeof window[a]&&(t.callback=window[a]),o&&"function"==typeof window[o]&&(t["expired-callback"]=window[o]);var r=grecaptcha.render(i[0],t);window.recaptchaWidgets&&recaptchaWidgets.push(r)}});else{var i=jQuery('script[src*="google.com/recaptcha/api.js"]').attr("src"),t=i.replace(/^.*render=(.*)$/,"$1").split("&")[0];grecaptcha.execute(t,{action:"homepage"}).then(function(i){e.find('form [name="g-recaptcha-response]').val(i)})}},i.configArea=function(e,i,t){var r,n,s=(0,o.getArea)(e);if(!s||1!==s.length)return;if(r=s.data("_id"),"object"===(void 0===i?"undefined":a(i))){for(var l in i)i.hasOwnProperty(l)&&DiviPopup.config(s,l,i[l]);return}if(void 0!==i){if("string"!=typeof i)return;switch(i=i.trim().toLowerCase().replace(/-/g,"")){case"notmobile":n=DiviArea.Utils.toBool(s.data("on-mobile")),s.data("on-mobile",!DiviArea.Utils.toBool(t,!n));break;case"onmobile":n=DiviArea.Utils.toBool(s.data("on-mobile")),s.data("on-mobile",DiviArea.Utils.toBool(t,n));break;case"nottablet":n=DiviArea.Utils.toBool(s.data("on-tablet")),s.data("on-tablet",!DiviArea.Utils.toBool(t,!n));break;case"ontablet":n=DiviArea.Utils.toBool(s.data("on-tablet")),s.data("on-tablet",DiviArea.Utils.toBool(t,n));break;case"notdesktop":n=DiviArea.Utils.toBool(s.data("on-desktop")),s.data("on-desktop",!DiviArea.Utils.toBool(t,!n));break;case"ondesktop":n=DiviArea.Utils.toBool(s.data("on-desktop")),s.data("on-desktop",DiviArea.Utils.toBool(t,n));break;case"triggerexit":s.data("trigger-exit",DiviArea.Utils.toBool(t));break;case"hideclose":s.data("show-close",!DiviArea.Utils.toBool(t));break;case"showclose":s.data("show-close",DiviArea.Utils.toBool(t));break;case"closealt":s.data("close-alt",DiviArea.Utils.toBool(t));break;case"ismodal":s.data("is-modal",DiviArea.Utils.toBool(t));break;case"notmodal":s.data("is-modal",!DiviArea.Utils.toBool(t));break;case"shadow":s.data("no-shadow",!DiviArea.Utils.toBool(t));break;case"noshadow":s.data("no-shadow",DiviArea.Utils.toBool(t));break;case"dark":s.data("dark-mode",DiviArea.Utils.toBool(t));break;case"maxwidth":s.data("max-width",t);break;case"maxheight":s.data("max-height",t);break;case"zindex":s.data("z-index",parseInt(t));break;case"singleton":s.data("singleton",DiviArea.Utils.toBool(t));break;case"ids":case"alternateid":Array.isArray(t)?t.forEach(function(e){return(0,o.addAltId)(r,e)}):(0,o.addAltId)(r,t);break;case"position":var d=[];-1!==t.indexOf("top")?d.push("top"):-1!==t.indexOf("bottom")?d.push("bottom"):d.push("center"),-1!==t.indexOf("left")?d.push("left"):-1!==t.indexOf("right")?d.push("right"):d.push("center"),s.data("position",d.join("-")),s.data("position-v",d[0]),s.data("position-h",d[1]);break;case"closetrigger":s.data("close-on",t);break;case"closedelay":s.data("close-delay",parseFloat(t))}}s.data("on-mobile")?s.removeClass(DiviArea.Utils.getOption("notMobileClass")):s.addClass(DiviArea.Utils.getOption("notMobileClass"));s.data("on-tablet")?s.removeClass(DiviArea.Utils.getOption("notTabletClass")):s.addClass(DiviArea.Utils.getOption("notTabletClass"));s.data("on-desktop")?s.removeClass(DiviArea.Utils.getOption("notDesktopClass")):s.addClass(DiviArea.Utils.getOption("notDesktopClass"));s.data("trigger-exit")?s.addClass(DiviArea.Utils.getOption("exitIndicatorClass")):s.removeClass(DiviArea.Utils.getOption("exitIndicatorClass"));s.data("show-close")?(s.addClass(DiviArea.Utils.getOption("withCloseClass")),s.removeClass(DiviArea.Utils.getOption("noCloseClass"))):(s.addClass(DiviArea.Utils.getOption("noCloseClass")),s.removeClass(DiviArea.Utils.getOption("withCloseClass")));s.data("close-alt")?s.addClass(DiviArea.Utils.getOption("altCloseClass")):s.removeClass(DiviArea.Utils.getOption("altCloseClass"));s.data("is-modal")?s.addClass(DiviArea.Utils.getOption("modalIndicatorClass")):s.removeClass(DiviArea.Utils.getOption("modalIndicatorClass"));s.data("no-shadow")?s.addClass(DiviArea.Utils.getOption("noShadowClass")):s.removeClass(DiviArea.Utils.getOption("noShadowClass"));s.data("dark-mode")?s.addClass(DiviArea.Utils.getOption("darkModeClass")):s.removeClass(DiviArea.Utils.getOption("darkModeClass"));s.data("singleton")?s.addClass(DiviArea.Utils.getOption("singletonClass")):s.removeClass(DiviArea.Utils.getOption("singletonClass"))};var o=t(0),r=window.ResizeObserver||window.WebKitResizeObserver},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.animateArea=function(e,i,t){var r=!1,n=!1;if("show"===i&&"yes"===e.data("_visible"))return DiviArea.Debug.debug("Skip opening-animation, area is already visible"),!1;if("hide"===i&&"yes"!==e.data("_visible"))return DiviArea.Debug.debug("Skip closing-animation, area is not visible"),!1;window.TweenLite&&"flyin"===e.data("_type")&&(n=!0);"function"!=typeof t&&(t=function(){});if("hide"===i&&"flyin"!==e.data("_type"))return void t();e.hasClass("et_pb_section")&&jQuery.fn.waypoint&&"yes"!==et_pb_custom.ignore_waypoints&&function(e){var i=e.attr("data-animation"),t=!1;if(!i)return!1;if(!(t=a[i]))return!1;jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),e.attr({"data-animation-style":t.style,"data-animation-repeat":"once"===t.repeat?"":"infinite","data-animation-duration":t.duration,"data-animation-delay":t.delay,"data-animation-intensity":t.intensity,"data-animation-starting-opacity":t.starting_opacity,"data-animation-speed-curve":t.speed_curve}),o(e,{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"),o=e.attr("data-animation-delay"),r=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":o,opacity:l,"animation-timing-function":s});for(var d={},u=isNaN(parseInt(r))?50:parseInt(r),p=["slide","zoom","flip","fold","roll"],c=!1,v=!1,g=0;g<p.length;g++){var f=p[g];if(i&&i.substr(0,f.length)===f){c=f,""!==(v=i.substr(f.length,i.length))&&(v=v.toLowerCase());break}}!1!==c&&!1!==v&&(d=function(e,i,t){var a={};switch(e){case"slide":switch(i){case"top":a={transform:"translate3d(0, "+(o=-2*t)+"%, 0)"};break;case"right":a={transform:"translate3d("+(o=2*t)+"%, 0, 0)"};break;case"bottom":a={transform:"translate3d(0, "+(o=2*t)+"%, 0)"};break;case"left":var o=-2*t;a={transform:"translate3d("+o+"%, 0, 0)"};break;default:a={transform:"scale3d("+(r=.01*(100-t))+", "+r+", "+r+")"}}break;case"zoom":var r=.01*(100-t);switch(i){case"top":case"right":case"bottom":case"left":default:a={transform:"scale3d("+r+", "+r+", "+r+")"}}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}(c,v,u)),jQuery.isEmptyObject(d)||e.css(d),e.addClass("et_animated"),e.addClass(i),e.addClass(t)}(jQuery(this.element))}})}(e)&&(r=!0);n?function(e,i,t){DiviArea.Debug.debug("Animate Area using GSAP");var a=DiviArea.Utils.getOption("animateSpeed"),o={},r={};e.css({opacity:"show"===i?0:1,transition:"all 0s"}),e.show(),window.setTimeout(function(){"left"===e.data("position-h")?(o.left=-1*e.outerWidth(),r.left=0):"right"===e.data("position-h")?(o.right=-1*e.outerWidth(),r.right=0):"top"===e.data("position-v")?(o.top=-1*e.outerHeight(),r.top=0):"bottom"===e.data("position-v")&&(o.bottom=-1*e.outerHeight(),r.bottom=0),o.opacity=1,r.opacity=1,"hide"===i?(e.css(r),TweenLite.to(e,a/1e3,{css:o})):(e.css(o),TweenLite.to(e,a/1e3,{css:r})),window.setTimeout(t,a)},5)}(e,i,t):r?function(e,i,t){DiviArea.Debug.debug("Animate Area using a Divi Animation"),e.show(),e.css({opacity:0}),window.setTimeout(function(){e.css({opacity:""}),o(e,{offset:"100%",handler:function(){e.addClass("et-animated"),t()}},2)},10)}(e,0,t):function(e,i,t){"show"===i?(DiviArea.Debug.debug("Animate Area using jQuery fadeIn"),e.fadeIn(DiviArea.Utils.getOption("animateSpeed"),t)):"hide"===i&&(DiviArea.Debug.debug("Animate Area using jQuery fadeOut"),e.fadeOut(DiviArea.Utils.getOption("animateSpeed"),t))}(e,i,t)},i.initializeAreaAnimation=function(e){if(!window.et_animation_data||!window.et_animation_data.length>0)return!1;e.removeClass("et-waypoint"),e.removeClass("et-animated");for(var i=0;i<et_animation_data.length;i++){var t=!1,o=et_animation_data[i];o&&(o.class&&e.hasClass(o.class)&&o.style&&o.repeat&&o.duration&&o.delay&&o.intensity&&o.starting_opacity&&o.speed_curve&&(t=o.class,e.addClass("pfd-waypoint"),e.attr("data-animation",t),a[t]=o,et_animation_data[i].class=void 0))}};var a={};function o(e,i,t){t=t||e.data("et_waypoint_max_instances")||1;var a=e.data("et_waypoint")||[];if(a.length<t){var o=e.waypoint(i);o&&o.length>0&&(a.push(o[0]),e.data("et_waypoint",a))}else for(var r=0;r<a.length;r++)a[r].context.refresh()}},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.showOverlay=function(){var e=DiviArea.Utils.getOption("zIndex");null===r&&((r=jQuery("<div />")).addClass(DiviArea.Utils.getOption("overlayClass")),r.prependTo((0,o.getContext)()),r.on("click.popup",l));e+=Math.max(0,(0,a.countVisibleAreas)()),r.css({zIndex:e}),n||(n=!0,DiviArea.Debug.info("⤴️ Show background overlay"),r.fadeIn(DiviArea.Utils.getOption("animateSpeed"),function(){jQuery("body").addClass(DiviArea.Utils.getOption("openPopupClass"))}),DiviArea.Hooks.doAction("show_overlay"),(0,o.broadcast)("OverlayShow"));return e},i.hideOverlay=s;var a=t(0),o=t(1),r=null,n=!1;function s(){n&&(n=!1,DiviArea.Debug.info("⤵️ Hide background overlay"),r.hide(),jQuery("body").removeClass(DiviArea.Utils.getOption("openPopupClass")),DiviArea.Hooks.doAction("hide_overlay"),(0,o.broadcast)("OverlayHide"))}function l(e){if(DiviArea.Debug.info("⚡️ Click on background overlay"),e.preventDefault(),DiviArea.Hooks.applyFilters("ignore_overlay_click",!1))return DiviArea.Debug.debug("Ignore click:","Manually cancelled via filter"),!1;if(DiviArea.Hooks.doAction("click_overlay"),(0,o.broadcast)("OverlayClick"),!(0,a.countVisibleAreas)("popup"))return DiviArea.Debug.debug("Ignore click:","No visible Popups found"),!1;var i=(0,a.getVisibleArea)("popup");return i.length?i.hasClass(DiviArea.Utils.getOption("modalIndicatorClass"))?(DiviArea.Debug.debug("Ignore click:",'Top-most popup is marked as "modal"'),!1):(DiviArea.Hooks.doAction("close_area",null,"overlay"),(0,a.countVisibleAreas)("popup")||s(),!1):(DiviArea.Debug.debug("Ignore click:",'Top-most popup is marked as "modal"'),!1)}},function(e,i,t){t(7),e.exports=t(11)},function(e,i,t){"use strict";var a=function(e){return e&&e.__esModule?e:{default:e}}(t(8));window.DiviArea=window.DiviPopup=new a.default,t(2),t(9),t(10),DiviArea.init(!1)},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function e(e,i){for(var t=0;t<i.length;t++){var a=i[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(i,t,a){return t&&e(i.prototype,t),a&&e(i,a),i}}(),o=t(0),r=t(3),n=t(1),s=t(5);function l(e,i){if((0,n.isArea)(e)){var t=!1;if(t=DiviArea.Hooks.applyFilters("before_close_area",!1,e,i),t=DiviArea.Hooks.applyFilters("before_close_area-"+e.data("_key"),t,e,i))return DiviArea.Debug.debug("Ignored, manually cancelled in filter"),!0;DiviArea.hide(e.data("_id"))}}var d=function(){function e(){!function(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}(this,e)}return a(e,[{key:"init",value:function(e){var i=[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="1.1.0",this.info=this.lib+"-"+this.version,DiviArea.Debug.info("🚀 Initialize "+this.app,"- JS API:",this.info),e?DiviArea.Debug.info("ℹ️ You can disable the debug output on the Settings page:",i.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(),(0,n.initContext)(),(0,n.initExitIntent)(),DiviArea.Utils.getOption("initializeOnEvent")?jQuery(window,document).on(DiviArea.Utils.getOption("initializeOnEvent"),function(){window.setTimeout(n.initializeModule,1)}):window.setTimeout(n.initializeModule,1)}},{key:"markClosed",value:function(e,i){if(DiviArea.Utils.getOption("debug")){var t=(0,o.getId)(e);DiviArea.Debug.info("📌 Mark Area as closed for "+i+" minutes:",t)}DiviArea.Utils.setLocalData(e,"1",i)}},{key:"isClosed",value:function(e){var i=DiviArea.Utils.getLocalData(e);if(DiviArea.Utils.getOption("debug")){var t=(0,o.getId)(e);"1"===i?DiviArea.Debug.info("📌 Area is still closed:",t):DiviArea.Debug.info("📌 Area is not closed:",t)}return"1"===i}},{key:"register",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments[2];if(!(e=(0,o.getId)(e)))return!1;var a,s=(0,o.getArea)(e);if(s)return s;if(t||(t=(a=jQuery((0,o.getId)(e))).data("_type")),!t&&a.length)for(var l=a.attr("class").split(" "),d=0;d<l.length;d++)if(0===l[d].indexOf("divi-area-type-")){t=l[d].replace("divi-area-type-","");break}if(!t)return!1;DiviArea.Debug.group("Register Area | "+t+" | "+e);var u=(0,o.registerArea)(t,e,i.selector);return!(!u||!u.length)&&(Object.keys(i).forEach(function(e){(0,r.configArea)(u,e,i[e])}),"inline"===t&&((0,r.triggerLazyLoad)(u),this.show(e)),DiviArea.Debug.group(),DiviArea.Hooks.doAction("init_area",u),DiviArea.Hooks.doAction("init_area-"+u.data("_key"),u),(0,n.broadcast)("Init",u),u)}},{key:"config",value:function(e,i,t){(0,r.configArea)(e,i,t)}},{key:"show",value:function(e,i){var t=(0,o.getId)(e),a=(0,o.getArea)(t),s=0,d=!1;if(DiviArea.Debug.group("Show area",t),!a||!a.length)return DiviArea.Debug.error("Could not find an area with the ID:",t),DiviArea.Debug.group(),!1;if(!(0,r.checkViewport)(a))return DiviArea.Debug.debug("Do not trigger area on this device:",t),DiviArea.Debug.group(),!1;var u=a.data("_type");return"yes"===a.data("_visible")&&a.data("_do_animation","skip"),i&&(i.delegateTarget?d=i.delegateTarget:i.target&&(d=i.target)),a.data("_trigger",d),DiviArea.Debug.debug("Trigger element:",d||"(none)"),"inline"!==u&&((0,n.removeArea)(a),a.removeClass(DiviArea.Utils.getOption("exitIndicatorClass"))),"hover"===u&&(0,r.setupHoverArea)(a),(0,o.addVisibleArea)(a),DiviArea.Hooks.addAction("close_area-"+a.data("_key"),l),(0,n.reOrderAreas)(a),"inline"!==u&&("skip"!==a.data("_do_animation")&&a.data("animation")&&(a.css({transition:"none"}),s+=DiviArea.Utils.toMilliseconds(a.css("animation-delay")),s+=DiviArea.Utils.toMilliseconds(a.css("animation-duration")),a.addClass("__is_animating"),window.setTimeout(function(){"yes"===a.data("_visible")&&a.removeClass("__is_animating")},s+50)),window.setTimeout(function(){(0,r.triggerLazyLoad)(a),(0,r.triggerAnimations)(a),(0,r.initRecaptcha)(a)},50)),DiviArea.Debug.group(),a.data("_do_animation",""),!0}},{key:"hide",value:function(e){var i;if((0,o.countVisibleAreas)())if((i=e?(0,o.getVisibleArea)("all",(0,o.getRealId)(e)):(0,o.getVisibleArea)("all"))&&i.length)DiviArea.Debug.debug("Close area and unlink event handlers:",i.data("_id")),(0,n.removeArea)(i,!0);else if(e)return DiviArea.Debug.error("Could not find an area with the ID:",e),!1;(0,o.countVisibleAreas)("popup")?(0,n.reOrderAreas)():DiviPopup.hideOverlay()}},{key:"showOverlay",value:function(){(0,s.showOverlay)()}},{key:"hideOverlay",value:function(){(0,s.hideOverlay)()}},{key:"listAreas",value:function(){return(0,o.getAllIds)()}},{key:"addFilter",value:function(e,i,t){DiviArea.Hooks.addFilter.apply(window,arguments)}},{key:"addAction",value:function(e,i,t){DiviArea.Hooks.addAction.apply(window,arguments)}},{key:"addActionOnce",value:function(e,i){DiviArea.Hooks.addActionOnce.apply(window,arguments)}},{key:"removeFilter",value:function(e,i,t){DiviArea.Hooks.removeFilter.apply(window,arguments)}},{key:"removeAction",value:function(e,i,t){DiviArea.Hooks.removeAction.apply(window,arguments)}},{key:"applyFilters",value:function(e,i){return DiviArea.Hooks.applyFilters.apply(window,arguments)}},{key:"doAction",value:function(e,i){DiviArea.Hooks.doAction.apply(window,arguments)}},{key:"openPopup",value:function(e){DiviArea.Debug.error("DiviPopup.openPopup() is deprecated. Please use DiviPopup.show() instead"),DiviPopup.show(e)}},{key:"openArea",value:function(e){DiviArea.Debug.error("DiviArea.openArea() is deprecated. Please use DiviArea.show() instead"),DiviPopup.show(e)}},{key:"closePopup",value:function(e){DiviArea.Debug.error("DiviPopup.closeArea() is deprecated. Please use DiviPopup.hide() instead"),DiviPopup.hide(e)}},{key:"closeArea",value:function(e){DiviArea.Debug.error("DiviArea.closeArea() is deprecated. Please use DiviArea.hide() instead"),DiviPopup.hide(e)}},{key:"broadcast",value:function(e,i,t){DiviArea.Debug.error("DiviArea.broadcast() is deprecated. Please use DiviArea.doAction() instead"),n.broadcast.apply(window,arguments)}},{key:"observe",value:function(e,i,t){n.observe.apply(window,arguments)}}]),e}();i.default=d},function(e,i,t){"use strict";!function(e){e.Hooks=e.Hooks||{};var i={};function t(e,t,a){var o,r,n;if(i[e]){if(t)if((o=i[e])&&a)for(n=o.length;n--;)(r=o[n]).callback===t&&r.context===a&&(o[n]=!1);else for(n=o.length;n--;)o[n].callback===t&&(o[n]=!1)}else i[e]=[]}function a(e,t,a,o){var r={callback:t,priority:a,context:o},n=i[e];n?(n.push(r),n=function(e){var i,t,a,o,r=e.length;for(o=1;o<r;o++)for(i=e[o],t=o;t>0;t--)(a=e[t-1]).priority>i.priority&&(e[t]=a,e[t-1]=i);return e}(n)):n=[r],i[e]=n}function o(e,t,a){var o,r=i[t],n=!1,s=void 0;if(r){var l=r.length;for(o=0;o<l;o++)r[o]?"filter"===e?void 0!==(s=r[o].callback.apply(r[o].context,a))&&(a[0]=s):(!r[o]||r[o].callback,r[o].callback.apply(r[o].context,a)):n=1;if(n)for(o=l;o--;)r[o]||r.splice(o,1)}if("filter"===e)return a[0]}e.Hooks.removeFilter=function(e,i){"string"==typeof e&&(t(e,i),DiviArea.Debug.debug("Remove Filter:",e))},e.Hooks.removeAction=function(e,i){"string"==typeof e&&(t(e,i),DiviArea.Debug.debug("Remove Action:",e))},e.Hooks.applyFilters=function(e,i){var t=Array.prototype.slice.call(arguments);return"string"==typeof(e=t.shift())&&(DiviArea.Debug.info("📢️ Apply Filters:",e),DiviArea.Debug.debug('⚙ DiviArea.addFilter("'+e+'", callback)'),o("filter",e,t))},e.Hooks.doAction=function(e,i){var t=Array.prototype.slice.call(arguments);"string"==typeof(e=t.shift())&&(DiviArea.Debug.info("📢️ Do Action:",e),DiviArea.Debug.debug('⚙ DiviArea.addAction("'+e+'", callback)'),o("action",e,t))},e.Hooks.applyFiltersSilently=function(e,i){var t=Array.prototype.slice.call(arguments);return"string"==typeof(e=t.shift())&&(DiviArea.Debug.verbose("📢️ Apply Filters:",e),DiviArea.Debug.verbose('⚙ DiviArea.addFilter("'+e+'", callback)'),o("filter",e,t))},e.Hooks.addFilter=function(e,i,t,o){"string"==typeof e&&"function"==typeof i&&(a(e,i,parseInt(t||10,10),o||window),DiviArea.Debug.debug("Add Filter:",e))},e.Hooks.addAction=function(e,i,t,o){"string"==typeof e&&"function"==typeof i&&(a(e,i,parseInt(t||10,10),o||window),DiviArea.Debug.debug("Add Action:",e))},e.Hooks.addActionOnce=function(e,i,o,r){if("string"==typeof e&&"function"==typeof i){a(e,i,parseInt(o||10,10),r||window),a(e,function(){t(e,i)},1+parseInt(o||10,10),r||window),DiviArea.Debug.debug("Add Action Once:",e)}}}(window.DiviArea=window.DiviArea||{})},function(e,i,t){"use strict";!function(e,i){i.Utils=i.Utils||{},i.Utils.getOption=function(e){var i=DiviPopupData[e],t=e.toLowerCase();return DiviArea.Hooks.applyFiltersSilently("get_option_"+t,i)},i.Utils.toBool=function(e,i){return void 0===i&&(i=!0),void 0===e||null===e?!!i:!0===e||!1===e?e:("string"==typeof e&&(e=e.toLowerCase()),0!==e&&"0"!==e&&"n"!==e[0]&&"f"!==e[0]&&"off"!==e&&(1===e||"1"===e||"y"===e[0]||"t"===e[0]||"on"===e||!!i))},i.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},i.Utils.isPositon=function(e,t){var a=e.offsetParent();return"HTML"!==a.prop("tagName")&&(t===a.css("position")||i.Utils.isPositon(a,t))},i.Utils.setLocalData=function(e,t,a){(!a||isNaN(a)||a<1)&&(a=525600);var o=e.replace(/-/g,"_");if(t=DiviArea.Hooks.applyFilters("set_local_data_value-"+o,t,e,a),a=DiviArea.Hooks.applyFilters("set_local_data_expiration-"+o,a,e,t),window.localStorage){var r=new Date;r=r.setMinutes(r.getMinutes()+a),localStorage.setItem("_da_"+e,r+":"+t)}else i.Utils.setCookie("_da_"+e,t,a)},i.Utils.getLocalData=function(e){var t=!1;if(window.localStorage){var a=localStorage.getItem("_da_"+e);if(a){var o=a.split(":"),r=parseInt(o.shift()),n=o.join(":");r>new Date?t=n:localStorage.removeItem("_da_"+e)}}else t=i.Utils.getCookie("_da_"+e);var s=e.replace(/-/g,"_");return DiviArea.Hooks.applyFilters("get_local_data-"+s,t)},i.Utils.setCookie=function(e,i,t){var a=escape(i);if(t){var o=new Date;o.setMinutes(o.getMinutes()+t),a+="; expires="+o.toUTCString()}document.cookie=e+"="+a+"; path=/"},i.Utils.getCookie=function(e){var i,t,a,o=document.cookie.split(";");for(i=0;i<o.length;i++)if(t=o[i].substr(0,o[i].indexOf("=")),a=o[i].substr(o[i].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))===e)return unescape(a);return!1},i.Utils.getWindow=function(i){return e.isWindow(i)?i:9===i.nodeType&&(i.defaultView||i.parentWindow)},i.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,o=(i=i[0]).ownerDocument,r=o.documentElement;if(!e.contains(r,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(o);t.top=a.top+(n.pageYOffset||r.scrollTop)-(r.clientTop||0),t.left=a.left+(n.pageXOffset||r.scrollLeft)-(r.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},i.Utils.init=function(){var i={popupSelector:".et_pb_section.popup",fullWidthClass:"popup_full_width",fullHeightClass:"popup_full_height",openPopupClass:"evr_popup_open",overlayClass:"evr_fb_popup_modal",modalIndicatorClass:"is-modal",exitIndicatorClass:"on-exit",activePopupClass:"is-open",noCloseClass:"no-close",altCloseClass:"close-alt",notMobileClass:"not-mobile",notTabletClass:"not-tablet",notDesktopClass:"not-desktop",withCloseClass:"with-close",singletonClass:"single",darkModeClass:"dark",noShadowClass:"with-shadow",closeButtonClass:"evr-close",popupWrapperClass:"popup_outer_wrap",defaultShowCloseButton:!0,idAttrib:"data-popup",triggerClassPrefix:"show-popup-",baseContext:"body",triggerCloseClass:"close",zIndex:1e5,onExitDelay:2e3,animateSpeed:300,debug:!1,debugVerbose:!1,initializeOnEvent:"et_pb_after_init_modules"};if(e.support.getBoundingClientRect="getBoundingClientRect"in document.documentElement,window.DiviPopupData)for(var t in i)void 0===DiviPopupData[t]&&(DiviPopupData[t]=i[t]),DiviPopupData[t].replace&&(DiviPopupData[t]=DiviPopupData[t].replace(/^[\s\xA0]+|[\s\xA0]+$/g,""));else window.DiviPopupData=i;DiviPopupData.zIndex=parseInt(DiviPopupData.zIndex),DiviPopupData.onExitDelay=parseInt(DiviPopupData.onExitDelay),DiviPopupData.animateSpeed=parseInt(DiviPopupData.animateSpeed),DiviPopupData.debug=!!DiviPopupData.debug,DiviPopupData.defaultShowCloseButton=!!DiviPopupData.defaultShowCloseButton,(!DiviPopupData.triggerClassPrefix||DiviPopupData.triggerClassPrefix.length<3)&&(DiviPopupData.triggerClassPrefix=!1),"body"===DiviPopupData.baseContext&&(1===e(".et-db #et-boc").length?(DiviPopupData.baseContext=".et-db #et-boc",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #et-boc")):1===e("body.et_divi_theme #page-container").length&&(DiviPopupData.baseContext="#page-container",DiviArea.Debug.info("🎚 Divi theme detected.","Inject Areas into #page-container"))),"body"===DiviPopupData.baseContext||e(DiviPopupData.baseContext).length||(DiviPopupData.baseContext="body",DiviArea.Debug.info("🎚 Invalid baseContext given.","Inject Areas into body instead.")),DiviPopupData=DiviArea.Hooks.applyFilters("init_options",DiviPopupData)}}(window.jQuery,window.DiviArea=window.DiviArea||{})},function(e,i,t){}]);
|
plugin.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
* Author: Philipp Stracker
|
14 |
* Author URI: https://philippstracker.com/
|
15 |
* Created: 30.12.2017
|
16 |
-
* Version: 2.0
|
17 |
* Text Domain: divi-popup
|
18 |
* Domain Path: /lang
|
19 |
* License: GPL v2 or later
|
@@ -40,7 +40,7 @@ defined( 'ABSPATH' ) || die();
|
|
40 |
/**
|
41 |
* A new version value will force refresh of CSS and JS files for all users.
|
42 |
*/
|
43 |
-
define( 'DIVI_POPUP_VERSION', '2.0
|
44 |
|
45 |
define( 'DIVI_POPUP_PLUGIN_FILE', __FILE__ );
|
46 |
define( 'DIVI_POPUP_PLUGIN', plugin_basename( DIVI_POPUP_PLUGIN_FILE ) );
|
13 |
* Author: Philipp Stracker
|
14 |
* Author URI: https://philippstracker.com/
|
15 |
* Created: 30.12.2017
|
16 |
+
* Version: 2.1.0
|
17 |
* Text Domain: divi-popup
|
18 |
* Domain Path: /lang
|
19 |
* License: GPL v2 or later
|
40 |
/**
|
41 |
* A new version value will force refresh of CSS and JS files for all users.
|
42 |
*/
|
43 |
+
define( 'DIVI_POPUP_VERSION', '2.1.0' );
|
44 |
|
45 |
define( 'DIVI_POPUP_PLUGIN_FILE', __FILE__ );
|
46 |
define( 'DIVI_POPUP_PLUGIN', plugin_basename( DIVI_POPUP_PLUGIN_FILE ) );
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: strackerphil-1
|
3 |
Tags: popup, marketing, divi
|
4 |
Requires at least: 3.0.1
|
5 |
-
Tested up to: 5.
|
6 |
Stable tag: trunk
|
7 |
-
Requires PHP: 5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -173,12 +173,23 @@ When you need additional features, then please have a look at our the Premium pl
|
|
173 |
|
174 |
== Changelog ==
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
= 2.0.5 =
|
177 |
* Add new JS API: `DiviArea.addActionOnce()`
|
178 |
* Fix a bug that happened for logged in users when WordPress runs on a Windows Server
|
179 |
|
180 |
-
Plugin tested with WordPress 5.4.1 and Divi 4.4.5
|
181 |
-
|
182 |
= 2.0.4 =
|
183 |
* Add the new option "Show Loader" to the Popup Tab to better support iframes inside the Popup
|
184 |
* Improve input of Popup ID in Visual Builder to prevent invalid characters
|
2 |
Contributors: strackerphil-1
|
3 |
Tags: popup, marketing, divi
|
4 |
Requires at least: 3.0.1
|
5 |
+
Tested up to: 5.4.1
|
6 |
Stable tag: trunk
|
7 |
+
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
173 |
|
174 |
== Changelog ==
|
175 |
|
176 |
+
= 2.1.0 =
|
177 |
+
* Add correct Area layout on WooCommerce pages
|
178 |
+
* Add compatibility with the Divi Builder plugin
|
179 |
+
* Improve Exit-Intent logic so that multiple exit-intent popups are displayed one by one instead of all at once
|
180 |
+
* Improve JS API: The `DiviArea` object exposes additional functions
|
181 |
+
* Improve the minification of CSS files to generate ~16% smaller files
|
182 |
+
* Improve the background overlay in modern browsers (sorry, does not work in Firefox yet)
|
183 |
+
* Fix console error that said `could not load style.css.map`
|
184 |
+
* Fix the "Close other Popups" behavior, so now it will really close other popups
|
185 |
+
* Fix some minor bugs in the popup behavior
|
186 |
+
|
187 |
+
Plugin tested with WordPress 5.4.1 and Divi 4.4.6
|
188 |
+
|
189 |
= 2.0.5 =
|
190 |
* Add new JS API: `DiviArea.addActionOnce()`
|
191 |
* Fix a bug that happened for logged in users when WordPress runs on a Windows Server
|
192 |
|
|
|
|
|
193 |
= 2.0.4 =
|
194 |
* Add the new option "Show Loader" to the Popup Tab to better support iframes inside the Popup
|
195 |
* Improve input of Popup ID in Visual Builder to prevent invalid characters
|