Version Description
- 2021-07-07 =
- Improved: Project update project if was changed
- Improved: Added new name for layouts tab
- Fixed: Dynamic content UI
- Fixed: Sync uploaded files
- Fixed: Corner option crashing the editor
- Fixed: Polling request 500
- Fixed: Image blurred in sections
- Fixed: Styles for video iFrame
- Fixed: Membership View as Roles Order
- Fixed: Changed design buttons admin
Download this release
Release Info
Developer | themefusecom |
Plugin | Brizy – Page Builder |
Version | 2.2.19 |
Comparing to | |
See all releases |
Code changes from version 2.2.18 to 2.2.19
- README.md +14 -1
- admin/blocks/api.php +4 -12
- admin/cloud/block-bridge.php +21 -0
- admin/cloud/client.php +910 -823
- admin/cloud/layout-bridge.php +22 -0
- admin/cloud/media-uploads-bridge.php +130 -0
- admin/cloud/popup-bridge.php +50 -0
- admin/form-entries.php +1 -1
- admin/main.php +34 -4
- admin/rule.php +12 -6
- admin/rules/api.php +4 -4
- admin/rules/manager.php +13 -13
- admin/settings.php +2 -6
- admin/static/css/style.css +87 -70
- admin/static/img/brizy-2x.png +0 -0
- admin/static/img/brizy-logo.svg +3 -9
- admin/static/js/script.js +1 -1
- admin/views/button.php +24 -25
- admin/views/editor.php +0 -23
- brizy.php +4 -4
- compatibilities/gutenberg.php +28 -15
- compatibilities/init.php +5 -1
- compatibilities/the-events-calendar.php +40 -0
- config.php +1 -0
- editor/api.php +53 -9
- editor/asset/attachment-aware.php +3 -4
- editor/asset/static-file-trait.php +258 -0
- editor/asset/static-file.php +1 -252
- editor/block.php +15 -0
- editor/editor/editor.php +990 -900
- editor/forms/wordpress-integration.php +5 -1
- editor/url-builder.php +396 -356
- public/editor-build/184-wp/editor/js/editor.js +0 -1
README.md
CHANGED
@@ -3,7 +3,7 @@ Contributors: themefuse<br>
|
|
3 |
Requires at least: 4.5<br>
|
4 |
Tested up to: 5.7<br>
|
5 |
Requires PHP: 5.6<br>
|
6 |
-
Stable tag: 2.2.
|
7 |
License: GPLv3<br>
|
8 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -118,6 +118,19 @@ $bodyHtml = apply_filters( 'brizy_content', $html->get_body(), Brizy_Editor_Proj
|
|
118 |
|
119 |
## Changelog
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
### 2.2.18 - 2021-06-28
|
122 |
* Fixed: Update the post content on compile page
|
123 |
|
3 |
Requires at least: 4.5<br>
|
4 |
Tested up to: 5.7<br>
|
5 |
Requires PHP: 5.6<br>
|
6 |
+
Stable tag: 2.2.19<br>
|
7 |
License: GPLv3<br>
|
8 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
118 |
|
119 |
## Changelog
|
120 |
|
121 |
+
### 2.2.19 - 2021-07-07
|
122 |
+
* Improved: Project update project if was changed
|
123 |
+
* Improved: Added new name for layouts tab
|
124 |
+
* Fixed: Dynamic content UI
|
125 |
+
* Fixed: Sync uploaded files
|
126 |
+
* Fixed: Corner option crashing the editor
|
127 |
+
* Fixed: Polling request 500
|
128 |
+
* Fixed: Image blurred in sections
|
129 |
+
* Fixed: Styles for video iFrame
|
130 |
+
* Fixed: Membership View as Roles Order
|
131 |
+
* Fixed: Changed design buttons admin
|
132 |
+
|
133 |
+
|
134 |
### 2.2.18 - 2021-06-28
|
135 |
* Fixed: Update the post content on compile page
|
136 |
|
admin/blocks/api.php
CHANGED
@@ -138,7 +138,6 @@ class Brizy_Admin_Blocks_Api extends Brizy_Admin_AbstractApi {
|
|
138 |
}
|
139 |
}
|
140 |
|
141 |
-
|
142 |
public function actionUpdateGlobalBlock() {
|
143 |
$this->verifyNonce( self::nonce );
|
144 |
|
@@ -156,10 +155,6 @@ class Brizy_Admin_Blocks_Api extends Brizy_Admin_AbstractApi {
|
|
156 |
$this->error( 400, 'Invalid meta data' );
|
157 |
}
|
158 |
|
159 |
-
if ( $this->param( 'dataVersion' ) === null ) {
|
160 |
-
$this->error( '400', 'Invalid data version' );
|
161 |
-
}
|
162 |
-
|
163 |
$status = stripslashes( $this->param( 'status' ) );
|
164 |
|
165 |
if ( ! in_array( $status, [ 'publish', 'draft' ] ) ) {
|
@@ -181,8 +176,8 @@ class Brizy_Admin_Blocks_Api extends Brizy_Admin_AbstractApi {
|
|
181 |
if ( (int) $this->param( 'is_autosave' ) ) {
|
182 |
$block->save( 1 );
|
183 |
} else {
|
184 |
-
|
185 |
-
|
186 |
$block->getWpPost()->post_status = $status;
|
187 |
|
188 |
// position
|
@@ -234,10 +229,6 @@ class Brizy_Admin_Blocks_Api extends Brizy_Admin_AbstractApi {
|
|
234 |
$this->error( 400, 'Invalid meta data' );
|
235 |
}
|
236 |
|
237 |
-
if ( $this->param( 'dataVersion' )[ $i ] === null ) {
|
238 |
-
$this->error( '400', 'Invalid data version' );
|
239 |
-
}
|
240 |
-
|
241 |
$status = stripslashes( $this->param( 'status' )[ $i ] );
|
242 |
|
243 |
if ( ! in_array( $status, [ 'publish', 'draft' ] ) ) {
|
@@ -270,7 +261,8 @@ class Brizy_Admin_Blocks_Api extends Brizy_Admin_AbstractApi {
|
|
270 |
$block->save( 1 );
|
271 |
} else {
|
272 |
|
273 |
-
|
|
|
274 |
$block->getWpPost()->post_status = $status;
|
275 |
|
276 |
// position
|
138 |
}
|
139 |
}
|
140 |
|
|
|
141 |
public function actionUpdateGlobalBlock() {
|
142 |
$this->verifyNonce( self::nonce );
|
143 |
|
155 |
$this->error( 400, 'Invalid meta data' );
|
156 |
}
|
157 |
|
|
|
|
|
|
|
|
|
158 |
$status = stripslashes( $this->param( 'status' ) );
|
159 |
|
160 |
if ( ! in_array( $status, [ 'publish', 'draft' ] ) ) {
|
176 |
if ( (int) $this->param( 'is_autosave' ) ) {
|
177 |
$block->save( 1 );
|
178 |
} else {
|
179 |
+
// issue: #14271
|
180 |
+
//$block->setDataVersion( $this->param( 'dataVersion' ) );
|
181 |
$block->getWpPost()->post_status = $status;
|
182 |
|
183 |
// position
|
229 |
$this->error( 400, 'Invalid meta data' );
|
230 |
}
|
231 |
|
|
|
|
|
|
|
|
|
232 |
$status = stripslashes( $this->param( 'status' )[ $i ] );
|
233 |
|
234 |
if ( ! in_array( $status, [ 'publish', 'draft' ] ) ) {
|
261 |
$block->save( 1 );
|
262 |
} else {
|
263 |
|
264 |
+
// issue: #14271
|
265 |
+
//$block->setDataVersion( $this->param( 'dataVersion' )[ $i ] );
|
266 |
$block->getWpPost()->post_status = $status;
|
267 |
|
268 |
// position
|
admin/cloud/block-bridge.php
CHANGED
@@ -34,6 +34,15 @@ class Brizy_Admin_Cloud_BlockBridge extends Brizy_Admin_Cloud_AbstractBridge {
|
|
34 |
}
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
$bridge = new Brizy_Admin_Cloud_FontBridge( $this->client );
|
38 |
foreach ( $media->fonts as $fontUid ) {
|
39 |
try {
|
@@ -126,6 +135,18 @@ class Brizy_Admin_Cloud_BlockBridge extends Brizy_Admin_Cloud_AbstractBridge {
|
|
126 |
}
|
127 |
}
|
128 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
}
|
130 |
}
|
131 |
|
34 |
}
|
35 |
}
|
36 |
|
37 |
+
$bridge = new Brizy_Admin_Cloud_MediaUploadsBridge( $this->client );
|
38 |
+
foreach ( $media->uploads as $uid ) {
|
39 |
+
try {
|
40 |
+
$bridge->export( $uid );
|
41 |
+
} catch (Exception $e) {
|
42 |
+
Brizy_Logger::instance()->critical( 'Failed to export block uploads: '.$e->getMessage(),[$e] );
|
43 |
+
}
|
44 |
+
}
|
45 |
+
|
46 |
$bridge = new Brizy_Admin_Cloud_FontBridge( $this->client );
|
47 |
foreach ( $media->fonts as $fontUid ) {
|
48 |
try {
|
135 |
}
|
136 |
}
|
137 |
}
|
138 |
+
|
139 |
+
$mediaUploadBridge = new Brizy_Admin_Cloud_MediaUploadsBridge( $this->client );
|
140 |
+
$mediaUploadBridge->setBlockId( $post );
|
141 |
+
if ( isset( $blockMedia->uploads ) ) {
|
142 |
+
foreach ( $blockMedia->uploads as $mediaUpload ) {
|
143 |
+
try {
|
144 |
+
$mediaUploadBridge->import( $mediaUpload );
|
145 |
+
} catch ( Exception $e ) {
|
146 |
+
Brizy_Logger::instance()->critical( 'Failed to import block uploads: '.$e->getMessage(),[$e] );
|
147 |
+
}
|
148 |
+
}
|
149 |
+
}
|
150 |
}
|
151 |
}
|
152 |
|
admin/cloud/client.php
CHANGED
@@ -1,829 +1,916 @@
|
|
1 |
<?php
|
2 |
|
3 |
|
4 |
-
class Brizy_Admin_Cloud_Client extends WP_Http
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
828 |
|
829 |
}
|
1 |
<?php
|
2 |
|
3 |
|
4 |
+
class Brizy_Admin_Cloud_Client extends WP_Http
|
5 |
+
{
|
6 |
+
|
7 |
+
use Brizy_Editor_Asset_AttachmentAware;
|
8 |
+
|
9 |
+
const TRANSIENT_KEY = 'brizy_cloud_editor_versions';
|
10 |
+
|
11 |
+
/**
|
12 |
+
* @var Brizy_Editor_Project
|
13 |
+
*/
|
14 |
+
private $brizyProject;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* @var WP_Http
|
18 |
+
*/
|
19 |
+
private $http;
|
20 |
+
|
21 |
+
/**
|
22 |
+
* @var integer
|
23 |
+
*/
|
24 |
+
private $library;
|
25 |
+
|
26 |
+
/**
|
27 |
+
* @var Brizy_Admin_Cloud_Client
|
28 |
+
*/
|
29 |
+
static private $instance;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* @param $project
|
33 |
+
* @param $http
|
34 |
+
*
|
35 |
+
* @return Brizy_Admin_Cloud_Client
|
36 |
+
*/
|
37 |
+
public static function instance($project, $http)
|
38 |
+
{
|
39 |
+
static $instance;
|
40 |
+
if (self::$instance) {
|
41 |
+
return self::$instance;
|
42 |
+
}
|
43 |
+
|
44 |
+
return self::$instance = new self($project, $http);
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Brizy_Admin_Cloud_Client constructor.
|
49 |
+
*
|
50 |
+
* @param Brizy_Editor_Project $project
|
51 |
+
* @param WP_Http $http
|
52 |
+
*/
|
53 |
+
private function __construct($project, $http)
|
54 |
+
{
|
55 |
+
$this->brizyProject = $project;
|
56 |
+
$this->http = $http;
|
57 |
+
|
58 |
+
add_action('brizy-updated', ['Brizy_Admin_Cloud_Client', 'clearVersionCache']);
|
59 |
+
do_action('brizy-activated', ['Brizy_Admin_Cloud_Client', 'clearVersionCache']);
|
60 |
+
}
|
61 |
+
|
62 |
+
public static function clearVersionCache()
|
63 |
+
{
|
64 |
+
delete_transient(self::TRANSIENT_KEY);
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* @return Brizy_Editor_Project
|
69 |
+
*/
|
70 |
+
public function getBrizyProject()
|
71 |
+
{
|
72 |
+
return $this->brizyProject;
|
73 |
+
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* @param Brizy_Editor_Project $brizyProject
|
77 |
+
*
|
78 |
+
* @return Brizy_Admin_Cloud_Client
|
79 |
+
*/
|
80 |
+
public function setBrizyProject($brizyProject)
|
81 |
+
{
|
82 |
+
$this->brizyProject = $brizyProject;
|
83 |
+
|
84 |
+
return $this;
|
85 |
+
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
* @return WP_Http
|
89 |
+
*/
|
90 |
+
public function getHttp()
|
91 |
+
{
|
92 |
+
return $this->http;
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* @param WP_Http $http
|
97 |
+
*
|
98 |
+
* @return Brizy_Admin_Cloud_Client
|
99 |
+
*/
|
100 |
+
public function setHttp($http)
|
101 |
+
{
|
102 |
+
$this->http = $http;
|
103 |
+
|
104 |
+
return $this;
|
105 |
+
}
|
106 |
+
|
107 |
+
/**
|
108 |
+
* @param $uid
|
109 |
+
*
|
110 |
+
* @return string
|
111 |
+
*/
|
112 |
+
public function getScreenshotUrl($uid)
|
113 |
+
{
|
114 |
+
$url = Brizy_Config::getEditorBaseUrls() . Brizy_Config::CLOUD_SCREENSHOT;
|
115 |
+
|
116 |
+
return sprintf($url, $uid);
|
117 |
+
}
|
118 |
+
|
119 |
+
/**
|
120 |
+
* @param $screenUid
|
121 |
+
* @param $filePath
|
122 |
+
*
|
123 |
+
* @return bool
|
124 |
+
*/
|
125 |
+
public function createScreenshot($screenUid, $filePath)
|
126 |
+
{
|
127 |
+
$data = array(
|
128 |
+
'uid' => $screenUid,
|
129 |
+
'attachment' => base64_encode(file_get_contents($filePath))
|
130 |
+
);
|
131 |
+
$response = $this->http->post(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_SCREENSHOTS, array(
|
132 |
+
'headers' => $this->getHeaders(),
|
133 |
+
'body' => $data
|
134 |
+
));
|
135 |
+
|
136 |
+
$code = wp_remote_retrieve_response_code($response);
|
137 |
+
|
138 |
+
if ($code >= 200 && $code <= 300) {
|
139 |
+
return true;
|
140 |
+
}
|
141 |
+
|
142 |
+
return false;
|
143 |
+
}
|
144 |
+
|
145 |
+
private function getHeaders($aditional = null)
|
146 |
+
{
|
147 |
+
|
148 |
+
$values = $this->getCloudEditorVersions();
|
149 |
+
|
150 |
+
return array_merge(array(
|
151 |
+
//'X-AUTH-APP-TOKEN' => Brizy_Config::CLOUD_APP_KEY,
|
152 |
+
'X-AUTH-USER-TOKEN' => $this->brizyProject->getMetaValue('brizy-cloud-token'),
|
153 |
+
'X-EDITOR-VERSION' => $values['editor'],
|
154 |
+
'X-SYNC-VERSION' => BRIZY_SYNC_VERSION
|
155 |
+
), is_array($aditional) ? $aditional : array());
|
156 |
+
}
|
157 |
+
|
158 |
+
private function getHeadersWithoutAuthorization($aditional = null)
|
159 |
+
{
|
160 |
+
return array_merge(array(
|
161 |
+
//'X-AUTH-APP-TOKEN' => Brizy_Config::CLOUD_APP_KEY,
|
162 |
+
'X-SYNC-VERSION' => BRIZY_SYNC_VERSION
|
163 |
+
), is_array($aditional) ? $aditional : array());
|
164 |
+
}
|
165 |
+
|
166 |
+
public function getLibraries()
|
167 |
+
{
|
168 |
+
$response = $this->http->get(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_LIBRARY, array('headers' => $this->getHeaders()));
|
169 |
+
|
170 |
+
$code = wp_remote_retrieve_response_code($response);
|
171 |
+
|
172 |
+
if ($code == 200) {
|
173 |
+
|
174 |
+
$body = wp_remote_retrieve_body($response);
|
175 |
+
|
176 |
+
$libraries = json_decode($body);
|
177 |
+
|
178 |
+
if (count($libraries) == 0) {
|
179 |
+
throw new Exception('No libraries provided');
|
180 |
+
}
|
181 |
+
|
182 |
+
|
183 |
+
return $libraries;
|
184 |
+
}
|
185 |
+
|
186 |
+
return null;
|
187 |
+
}
|
188 |
+
|
189 |
+
/**
|
190 |
+
* @param $email
|
191 |
+
* @param $password
|
192 |
+
*
|
193 |
+
* @return array|bool|WP_Error
|
194 |
+
*/
|
195 |
+
public function signIn($email, $password)
|
196 |
+
{
|
197 |
+
|
198 |
+
$response = $this->http->post(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_SIGNIN, array(
|
199 |
+
'headers' => $this->getHeadersWithoutAuthorization(array(
|
200 |
+
'Content-type' => 'application/x-www-form-urlencoded'
|
201 |
+
)),
|
202 |
+
'body' => array(
|
203 |
+
'email' => $email,
|
204 |
+
'password' => $password
|
205 |
+
),
|
206 |
+
'timeout' => 30
|
207 |
+
));
|
208 |
+
|
209 |
+
$code = wp_remote_retrieve_response_code($response);
|
210 |
+
|
211 |
+
if ($code == 200) {
|
212 |
+
|
213 |
+
$jsonResponse = json_decode($response['body']);
|
214 |
+
|
215 |
+
// update cloud editor versions
|
216 |
+
$this->getCloudEditorVersions(true);
|
217 |
+
|
218 |
+
return $jsonResponse->token;
|
219 |
+
}
|
220 |
+
|
221 |
+
return false;
|
222 |
+
}
|
223 |
+
|
224 |
+
|
225 |
+
/**
|
226 |
+
* @param string $firstName
|
227 |
+
* @param string $lastName
|
228 |
+
* @param string $email
|
229 |
+
* @param string $password
|
230 |
+
* @param string $confirmPassword
|
231 |
+
*
|
232 |
+
* @return bool
|
233 |
+
*/
|
234 |
+
public function signUp($firstName, $lastName, $email, $password, $confirmPassword)
|
235 |
+
{
|
236 |
|
237 |
+
$response = $this->http->post(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_SIGNUP, array(
|
238 |
+
'headers' => $this->getHeadersWithoutAuthorization(array(
|
239 |
+
'Content-type' => 'application/x-www-form-urlencoded'
|
240 |
+
)),
|
241 |
+
'body' => array(
|
242 |
+
'first_name' => $firstName,
|
243 |
+
'last_name' => $lastName,
|
244 |
+
'email' => $email,
|
245 |
+
'new_password' => $password,
|
246 |
+
'confirm_password' => $confirmPassword,
|
247 |
+
)
|
248 |
+
));
|
249 |
+
|
250 |
+
$code = wp_remote_retrieve_response_code($response);
|
251 |
+
|
252 |
+
if ($code == 200) {
|
253 |
+
|
254 |
+
$jsonResponse = json_decode($response['body']);
|
255 |
+
|
256 |
+
return $jsonResponse->token;
|
257 |
+
}
|
258 |
+
|
259 |
+
return false;
|
260 |
+
}
|
261 |
+
|
262 |
+
/**
|
263 |
+
* @param $email
|
264 |
+
*
|
265 |
+
* @return bool
|
266 |
+
*/
|
267 |
+
public function resetPassword($email)
|
268 |
+
{
|
269 |
+
|
270 |
+
$response = $this->http->post(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_RESET_PASSWORD, array(
|
271 |
+
'headers' => $this->getHeaders(array(
|
272 |
+
'Content-type' => 'application/x-www-form-urlencoded'
|
273 |
+
)),
|
274 |
+
'body' => array(
|
275 |
+
'email' => $email,
|
276 |
+
)
|
277 |
+
));
|
278 |
+
|
279 |
+
$code = wp_remote_retrieve_response_code($response);
|
280 |
+
|
281 |
+
return $code >= 200 && $code < 300;
|
282 |
+
}
|
283 |
+
|
284 |
+
public function getCloudEditorVersions($ignoreCache = false)
|
285 |
+
{
|
286 |
+
|
287 |
+
$value = get_transient('brizy_cloud_editor_versions');
|
288 |
+
|
289 |
+
if ($value && !$ignoreCache) {
|
290 |
+
return $value;
|
291 |
+
}
|
292 |
+
|
293 |
+
$url = Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_EDITOR_VERSIONS;
|
294 |
+
|
295 |
+
$response = $this->http->get($url);
|
296 |
+
|
297 |
+
$code = wp_remote_retrieve_response_code($response);
|
298 |
+
|
299 |
+
if ($code == 200) {
|
300 |
+
$value = (array)json_decode($response['body']);
|
301 |
+
set_transient('brizy_cloud_editor_versions', $value, 3600);
|
302 |
+
} else {
|
303 |
+
throw new Exception(wp_remote_retrieve_response_message($response));
|
304 |
+
}
|
305 |
+
|
306 |
+
return $value;
|
307 |
+
}
|
308 |
+
|
309 |
+
public function getContainers()
|
310 |
+
{
|
311 |
+
return $this->getCloudEntity(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_CONTAINERS, []);
|
312 |
+
}
|
313 |
+
|
314 |
+
public function getProjects($filters)
|
315 |
+
{
|
316 |
+
return $this->getCloudEntity(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_PROJECTS, $filters);
|
317 |
+
}
|
318 |
+
|
319 |
+
public function getProject($id)
|
320 |
+
{
|
321 |
+
|
322 |
+
$url = sprintf(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_PROJECTS . "/%d", (int)$id);
|
323 |
+
$response = $this->http->get($url, array('headers' => $this->getHeaders()));
|
324 |
+
|
325 |
+
$code = wp_remote_retrieve_response_code($response);
|
326 |
+
if ($code == 200) {
|
327 |
+
return json_decode($response['body']);
|
328 |
+
}
|
329 |
+
|
330 |
+
return null;
|
331 |
+
}
|
332 |
+
|
333 |
+
public function createProject($container, $name)
|
334 |
+
{
|
335 |
+
|
336 |
+
$response = $this->http->post(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_PROJECTS, array(
|
337 |
+
'headers' => $this->getHeaders(),
|
338 |
+
'body' => array(
|
339 |
+
'name' => $name,
|
340 |
+
'container' => $container,
|
341 |
+
'globals' => null,
|
342 |
+
'site_id' => null
|
343 |
+
)
|
344 |
+
));
|
345 |
+
|
346 |
+
$code = wp_remote_retrieve_response_code($response);
|
347 |
+
if ($code == 200) {
|
348 |
+
return json_decode($response['body']);
|
349 |
+
}
|
350 |
+
|
351 |
+
return false;
|
352 |
+
}
|
353 |
+
|
354 |
+
public function getBlocks($filters = array())
|
355 |
+
{
|
356 |
+
return $this->getCloudEntityByContainer(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_SAVEDBLOCKS, $filters);
|
357 |
+
}
|
358 |
+
|
359 |
+
/**
|
360 |
+
* @param $id
|
361 |
+
*
|
362 |
+
* @return array|mixed|object|null
|
363 |
+
*/
|
364 |
+
public function getBlockByUid($uid)
|
365 |
+
{
|
366 |
+
$blocks = $this->getBlocks(['uid' => $uid]);
|
367 |
+
|
368 |
+
return array_pop($blocks);
|
369 |
+
}
|
370 |
+
|
371 |
+
/**
|
372 |
+
* @param $id
|
373 |
+
*
|
374 |
+
* @return array|mixed|object|null
|
375 |
+
*/
|
376 |
+
public function getBlock($id)
|
377 |
+
{
|
378 |
+
$blocks = $this->getCloudEntityByContainer(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_SAVEDBLOCKS . "/{$id}", []);
|
379 |
+
|
380 |
+
return array_pop($blocks);
|
381 |
+
}
|
382 |
+
|
383 |
+
/**
|
384 |
+
* @param Brizy_Editor_Block $block
|
385 |
+
*
|
386 |
+
* @return bool
|
387 |
+
* @throws Exception
|
388 |
+
*/
|
389 |
+
public function createOrUpdateBlock($block)
|
390 |
+
{
|
391 |
+
|
392 |
+
$cloudBlockData = array(
|
393 |
+
'container' => $this->brizyProject->getCloudContainer(),
|
394 |
+
'meta' => $block->getMeta(),
|
395 |
+
'media' => $block->getMedia(),
|
396 |
+
'data' => $block->get_editor_data(),
|
397 |
+
'uid' => $block->getUid(),
|
398 |
+
'dataVersion' => 1
|
399 |
+
);
|
400 |
+
|
401 |
+
$url = Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_SAVEDBLOCKS;
|
402 |
+
$cloudUid = $block->getCloudId($this->brizyProject->getCloudAccountId());
|
403 |
+
$cloudBlock = null;
|
404 |
+
if (!$cloudUid && ($cloudBlock = $this->getBlockByUid($block->getUid()))) {
|
405 |
+
$cloudUid = $cloudBlock->uid;
|
406 |
+
}
|
407 |
+
|
408 |
+
|
409 |
+
if (!$cloudUid) {
|
410 |
+
$response = $this->http->post($url, array(
|
411 |
+
'headers' => $this->getHeaders(),
|
412 |
+
'body' => $cloudBlockData
|
413 |
+
));
|
414 |
+
} else {
|
415 |
+
|
416 |
+
$cloudBlockData['dataVersion'] = $cloudBlock->dataVersion + 1;
|
417 |
+
|
418 |
+
$response = $this->http->request($url . "/" . $cloudBlock->id, array(
|
419 |
+
'method' => 'PUT',
|
420 |
+
'headers' => $this->getHeaders(),
|
421 |
+
'body' => $cloudBlockData
|
422 |
+
));
|
423 |
+
}
|
424 |
+
|
425 |
+
$code = wp_remote_retrieve_response_code($response);
|
426 |
+
|
427 |
+
if ($code >= 400) {
|
428 |
+
// update cloud editor versions
|
429 |
+
$this->getCloudEditorVersions(true);
|
430 |
+
Brizy_Logger::instance()->critical('Cloud api exception', [$response]);
|
431 |
+
throw new Exception(wp_remote_retrieve_response_message($response));
|
432 |
+
}
|
433 |
+
|
434 |
+
return json_decode(wp_remote_retrieve_body($response));
|
435 |
+
}
|
436 |
+
|
437 |
+
/**
|
438 |
+
* @param $blockId
|
439 |
+
*
|
440 |
+
* @return bool
|
441 |
+
* @throws Exception
|
442 |
+
*/
|
443 |
+
public function deleteBlock($blockId)
|
444 |
+
{
|
445 |
+
$query = http_build_query(['container' => $this->brizyProject->getCloudContainer()]);
|
446 |
+
$url = Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_SAVEDBLOCKS . "/" . $blockId . "?" . $query;
|
447 |
+
$response = $this->http->request($url, array('method' => 'DELETE', 'headers' => $this->getHeaders()));
|
448 |
+
$code = wp_remote_retrieve_response_code($response);
|
449 |
+
|
450 |
+
if ($code >= 400) {
|
451 |
+
throw new Exception('Invalid code return by cloud api');
|
452 |
+
}
|
453 |
+
|
454 |
+
return $code == 200;
|
455 |
+
}
|
456 |
+
|
457 |
+
|
458 |
+
/**
|
459 |
+
* @param $filters
|
460 |
+
*
|
461 |
+
* @return array|mixed|object|null
|
462 |
+
*/
|
463 |
+
public function getPopups($filters = array())
|
464 |
+
{
|
465 |
+
return $this->getCloudEntity(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_POPUPS, $filters);
|
466 |
+
}
|
467 |
+
|
468 |
+
/**
|
469 |
+
* @param $uid
|
470 |
+
*
|
471 |
+
* @return mixed
|
472 |
+
*/
|
473 |
+
public function getPopupByUid($uid)
|
474 |
+
{
|
475 |
+
$popups = $this->getPopups(['uid' => $uid]);
|
476 |
+
|
477 |
+
return array_pop($popups);
|
478 |
+
}
|
479 |
+
|
480 |
+
/**
|
481 |
+
* @param Brizy_Editor_Popup $popup
|
482 |
+
*
|
483 |
+
* @return bool
|
484 |
+
* @throws Exception
|
485 |
+
*/
|
486 |
+
public function createOrUpdatePopup($popup)
|
487 |
+
{
|
488 |
+
|
489 |
+
$cloudBlockData = array(
|
490 |
+
'container' => $this->brizyProject->getCloudContainer(),
|
491 |
+
'meta' => $popup->getMeta(),
|
492 |
+
'data' => $popup->get_editor_data(),
|
493 |
+
'is_autosave' => 0,
|
494 |
+
'uid' => $popup->getUid(),
|
495 |
+
'dataVersion' => 1
|
496 |
+
|
497 |
+
);
|
498 |
+
|
499 |
+
$url = Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_POPUPS;
|
500 |
+
|
501 |
+
$cloudUid = $popup->getCloudId($this->brizyProject->getCloudAccountId());
|
502 |
+
|
503 |
+
|
504 |
+
if ($cloudUid) {
|
505 |
+
$response = $this->http->request($url, array(
|
506 |
+
'method' => 'PUT',
|
507 |
+
'headers' => $this->getHeaders(),
|
508 |
+
'body' => $cloudBlockData
|
509 |
+
));
|
510 |
+
} else {
|
511 |
+
$response = $this->http->post($url . "/" . $cloudUid, array(
|
512 |
+
'headers' => $this->getHeaders(),
|
513 |
+
'body' => $cloudBlockData
|
514 |
+
));
|
515 |
+
}
|
516 |
+
|
517 |
+
$code = wp_remote_retrieve_response_code($response);
|
518 |
+
|
519 |
+
if ($code >= 400) {
|
520 |
+
$this->getCloudEditorVersions(true);
|
521 |
+
Brizy_Logger::instance()->critical('Cloud api exception', [$response]);
|
522 |
+
throw new Exception('Invalid code return by cloud api');
|
523 |
+
}
|
524 |
+
|
525 |
+
return json_decode(wp_remote_retrieve_body($response));
|
526 |
+
}
|
527 |
+
|
528 |
+
/**
|
529 |
+
* @param $popupId
|
530 |
+
*
|
531 |
+
* @return bool
|
532 |
+
* @throws Exception
|
533 |
+
*/
|
534 |
+
public function deletePopup($popupId)
|
535 |
+
{
|
536 |
+
$query = http_build_query(['container' => $this->brizyProject->getCloudContainer()]);
|
537 |
+
$url = Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_POPUPS . "/" . $popupId . "?" . $query;
|
538 |
+
$response = $this->http->request($url, array('method' => 'DELETE', 'headers' => $this->getHeaders()));
|
539 |
+
$code = wp_remote_retrieve_response_code($response);
|
540 |
+
|
541 |
+
if ($code >= 400) {
|
542 |
+
throw new Exception('Invalid code return by cloud api');
|
543 |
+
}
|
544 |
+
|
545 |
+
return $code == 200;
|
546 |
+
}
|
547 |
+
|
548 |
+
|
549 |
+
/**
|
550 |
+
* @param $filters
|
551 |
+
*
|
552 |
+
* @return array|mixed|object|null
|
553 |
+
*/
|
554 |
+
public function getLayouts($filters = array())
|
555 |
+
{
|
556 |
+
return $this->getCloudEntity(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_LAYOUTS, $filters);
|
557 |
+
}
|
558 |
+
|
559 |
+
/**
|
560 |
+
* @param $uid
|
561 |
+
*
|
562 |
+
* @return mixed
|
563 |
+
*/
|
564 |
+
public function getLayoutByUid($uid)
|
565 |
+
{
|
566 |
+
$layouts = $this->getLayouts(['uid' => $uid]);
|
567 |
+
|
568 |
+
return array_pop($layouts);
|
569 |
+
}
|
570 |
+
|
571 |
+
/**
|
572 |
+
* @param $id
|
573 |
+
*
|
574 |
+
* @return array|mixed|object|null
|
575 |
+
*/
|
576 |
+
public function getLayout($id)
|
577 |
+
{
|
578 |
+
return $this->getCloudEntityByContainer(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_LAYOUTS . "/" . $id, []);
|
579 |
+
}
|
580 |
+
|
581 |
+
|
582 |
+
/**
|
583 |
+
* @param Brizy_Editor_Layout $layout
|
584 |
+
*
|
585 |
+
* @return bool
|
586 |
+
* @throws Exception
|
587 |
+
*/
|
588 |
+
public function createOrUpdateLayout($layout)
|
589 |
+
{
|
590 |
+
|
591 |
+
$cloudBlockData = array(
|
592 |
+
'container' => $this->brizyProject->getCloudContainer(),
|
593 |
+
'meta' => $layout->getMeta(),
|
594 |
+
'media' => $layout->getMedia(),
|
595 |
+
'data' => $layout->get_editor_data(),
|
596 |
+
'uid' => $layout->getUid(),
|
597 |
+
'dataVersion' => 1
|
598 |
+
);
|
599 |
+
|
600 |
+
$url = Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_LAYOUTS;
|
601 |
+
|
602 |
+
|
603 |
+
$cloudUid = $layout->getCloudId($this->brizyProject->getCloudAccountId());
|
604 |
+
|
605 |
+
$cloudLayout = null;
|
606 |
+
if (!$cloudUid && ($cloudLayout = $this->getLayoutByUid($layout->getUid()))) {
|
607 |
+
$cloudUid = $cloudLayout->uid;
|
608 |
+
}
|
609 |
+
|
610 |
+
if (!$cloudUid) {
|
611 |
+
$response = $this->http->post($url, array(
|
612 |
+
'headers' => $this->getHeaders(),
|
613 |
+
'body' => $cloudBlockData
|
614 |
+
));
|
615 |
+
} else {
|
616 |
+
$cloudBlockData['dataVersion'] = $cloudLayout->dataVersion + 1;
|
617 |
+
|
618 |
+
$response = $this->http->request($url . "/" . $cloudLayout->id, array(
|
619 |
+
'method' => 'PUT',
|
620 |
+
'headers' => $this->getHeaders(),
|
621 |
+
'body' => $cloudBlockData,
|
622 |
+
));
|
623 |
+
}
|
624 |
+
|
625 |
+
$code = wp_remote_retrieve_response_code($response);
|
626 |
+
|
627 |
+
if ($code >= 400) {
|
628 |
+
$this->getCloudEditorVersions(true);
|
629 |
+
Brizy_Logger::instance()->critical('Cloud api exception', [$response]);
|
630 |
+
throw new Exception('Invalid code return by cloud api');
|
631 |
+
}
|
632 |
+
|
633 |
+
return json_decode(wp_remote_retrieve_body($response));
|
634 |
+
}
|
635 |
+
|
636 |
+
/**
|
637 |
+
* @param $layoutId
|
638 |
+
*
|
639 |
+
* @return bool
|
640 |
+
* @throws Exception
|
641 |
+
*/
|
642 |
+
public function deleteLayout($layoutId)
|
643 |
+
{
|
644 |
+
$query = http_build_query(['container' => $this->brizyProject->getCloudContainer()]);
|
645 |
+
$url = Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_LAYOUTS . "/" . $layoutId . "?" . $query;
|
646 |
+
$response = $this->http->request($url, array('method' => 'DELETE', 'headers' => $this->getHeaders()));
|
647 |
+
$code = wp_remote_retrieve_response_code($response);
|
648 |
+
|
649 |
+
if ($code >= 400) {
|
650 |
+
throw new Exception('Invalid code return by cloud api');
|
651 |
+
}
|
652 |
+
|
653 |
+
return $code == 200;
|
654 |
+
}
|
655 |
+
|
656 |
+
|
657 |
+
/**
|
658 |
+
* @param $uid
|
659 |
+
*
|
660 |
+
* @return bool
|
661 |
+
* @throws Exception
|
662 |
+
*/
|
663 |
+
public function isMediaUploaded($uid)
|
664 |
+
{
|
665 |
+
$cloud_entity_by_container = $this->getCloudEntity(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_MEDIA, ['name' => $uid]);
|
666 |
+
|
667 |
+
return is_array($cloud_entity_by_container) && count($cloud_entity_by_container) > 0;
|
668 |
+
}
|
669 |
+
|
670 |
+
/**
|
671 |
+
* @param $uid
|
672 |
+
*
|
673 |
+
* @return bool
|
674 |
+
* @throws Exception
|
675 |
+
*/
|
676 |
+
public function isCustomFileUploaded($fileUid, $customFileName)
|
677 |
+
{
|
678 |
+
// download file and store it in wp
|
679 |
+
$urlBuilder = new Brizy_Editor_UrlBuilder();
|
680 |
+
$external_asset_url = $urlBuilder->external_custom_file($fileUid, $customFileName);
|
681 |
+
|
682 |
+
$response = $this->http->get($external_asset_url);
|
683 |
+
$code = wp_remote_retrieve_response_code($response);
|
684 |
+
|
685 |
+
if($code>=500) {
|
686 |
+
throw new \Exception('Unable to determine if the files was uploaded or not.');
|
687 |
+
}
|
688 |
+
|
689 |
+
return $code==200;
|
690 |
+
}
|
691 |
+
|
692 |
+
/**
|
693 |
+
* @param $file
|
694 |
+
*
|
695 |
+
* @return bool
|
696 |
+
* @throws Exception
|
697 |
+
*/
|
698 |
+
public function uploadMedia($uid, $file)
|
699 |
+
{
|
700 |
+
|
701 |
+
$response = $this->http->post(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_MEDIA, array(
|
702 |
+
'headers' => $this->getHeaders(),
|
703 |
+
'body' => array(
|
704 |
+
'attachment' => base64_encode(file_get_contents($file)),
|
705 |
+
'name' => $uid,
|
706 |
+
'filename' => basename($file)
|
707 |
+
)
|
708 |
+
));
|
709 |
+
|
710 |
+
$code = wp_remote_retrieve_response_code($response);
|
711 |
+
|
712 |
+
if ($code >= 400) {
|
713 |
+
throw new Exception('Invalid code return by cloud api');
|
714 |
+
}
|
715 |
+
|
716 |
+
return true;
|
717 |
+
}
|
718 |
+
|
719 |
+
public function uploadCustomFile($uid, $file)
|
720 |
+
{
|
721 |
+
$body = array(
|
722 |
+
'attachment' => base64_encode(file_get_contents($file)),
|
723 |
+
'uid' => $uid,
|
724 |
+
'filename' => basename($file),
|
725 |
+
'container' => $this->brizyProject->getCloudContainer(),
|
726 |
+
);
|
727 |
+
$response = $this->http->post(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_CUSTOM_FILES, array(
|
728 |
+
'headers' => $this->getHeaders(),
|
729 |
+
'body' => $body
|
730 |
+
));
|
731 |
+
|
732 |
+
$code = wp_remote_retrieve_response_code($response);
|
733 |
+
|
734 |
+
if ($code >= 400) {
|
735 |
+
throw new Exception('Invalid code return by cloud api');
|
736 |
+
}
|
737 |
+
|
738 |
+
return true;
|
739 |
+
}
|
740 |
+
|
741 |
+
|
742 |
+
/**
|
743 |
+
* @param $font
|
744 |
+
*
|
745 |
+
* Ex:
|
746 |
+
* [
|
747 |
+
* 'id' => 'askdalskdlaksd',
|
748 |
+
* 'family' => 'proxima-nova',
|
749 |
+
* 'type' => 'uploaded',
|
750 |
+
* 'weights' => [
|
751 |
+
* '400' => [
|
752 |
+
* 'ttf' => codecept_data_dir( 'fonts/pn-regular-webfont.ttf' ),
|
753 |
+
* 'eot' => codecept_data_dir( 'fonts/pn-regular-webfont.eot' ),
|
754 |
+
* 'woff' => codecept_data_dir( 'fonts/pn-regular-webfont.woff' ),
|
755 |
+
* 'woff2' => codecept_data_dir( 'fonts/pn-regular-webfont.woff2' ),
|
756 |
+
* ],
|
757 |
+
* '500' => [
|
758 |
+
* 'eot' => codecept_data_dir( 'fonts/pn-medium-webfont.eot' ),
|
759 |
+
* 'woff' => codecept_data_dir( 'fonts/pn-medium-webfont.woff' ),
|
760 |
+
* 'woff2' => codecept_data_dir( 'fonts/pn-medium-webfont.woff2' ),
|
761 |
+
* ],
|
762 |
+
* '700' => [
|
763 |
+
* 'eot' => codecept_data_dir( 'fonts/pn-bold-webfont.eot' ),
|
764 |
+
* 'woff' => codecept_data_dir( 'fonts/pn-bold-webfont.woff' ),
|
765 |
+
* 'woff2' => codecept_data_dir( 'fonts/pn-bold-webfont.woff2' ),
|
766 |
+
* ],
|
767 |
+
* ]
|
768 |
+
* ];
|
769 |
+
*
|
770 |
+
* @return bool
|
771 |
+
* @throws Exception
|
772 |
+
*/
|
773 |
+
public function createFont($font)
|
774 |
+
{
|
775 |
+
|
776 |
+
$params = array(
|
777 |
+
'container' => $this->brizyProject->getCloudContainer(),
|
778 |
+
'uid' => $font['id'],
|
779 |
+
'family' => $font['family'],
|
780 |
+
);
|
781 |
+
|
782 |
+
// prepare font data
|
783 |
+
foreach ($font['weights'] as $weigth => $files) {
|
784 |
+
foreach ($files as $type => $file) {
|
785 |
+
$params["files[$weigth][$type]"] = new CURLFile($file);
|
786 |
+
}
|
787 |
+
}
|
788 |
+
unset($font['weights']);
|
789 |
+
|
790 |
+
$file_upload_request = function ($handle_or_parameters, $request = '', $url = '') use ($params) {
|
791 |
+
$this->updateWPHTTPRequest($handle_or_parameters, $params);
|
792 |
+
};
|
793 |
+
// handle cURL requests
|
794 |
+
add_action('http_api_curl', $file_upload_request, 10);
|
795 |
+
// handle fsockopen
|
796 |
+
add_action('requests-fsockopen.before_send', $file_upload_request, 10, 3);
|
797 |
+
|
798 |
+
$response = $this->http->post(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_FONTS, array(
|
799 |
+
'headers' => $this->getHeaders(['Content-Type' => 'multipart/form-data']),
|
800 |
+
'body' => $params,
|
801 |
+
'timeout' => 40
|
802 |
+
));
|
803 |
+
|
804 |
+
remove_action('http_api_curl', $file_upload_request);
|
805 |
+
remove_action('requests-fsockopen.before_send', $file_upload_request);
|
806 |
+
|
807 |
+
$code = wp_remote_retrieve_response_code($response);
|
808 |
+
|
809 |
+
if ($code >= 400) {
|
810 |
+
throw new Exception('Invalid code return by cloud api');
|
811 |
+
}
|
812 |
+
|
813 |
+
return json_decode(wp_remote_retrieve_body($response));
|
814 |
+
}
|
815 |
+
|
816 |
+
public function getFont($uid)
|
817 |
+
{
|
818 |
+
$response = $this->getCloudEntity(Brizy_Config::CLOUD_ENDPOINT . Brizy_Config::CLOUD_FONTS . "/{$uid}");
|
819 |
+
|
820 |
+
if (is_array($response)) {
|
821 |
+
return $response;
|
822 |
+
}
|
823 |
+
|
824 |
+
return null;
|
825 |
+
}
|
826 |
+
|
827 |
+
|
828 |
+
/**
|
829 |
+
* @param $endpoint
|
830 |
+
* @param $filters
|
831 |
+
*
|
832 |
+
* @return array|mixed|object|null
|
833 |
+
*/
|
834 |
+
private function getCloudEntity($endpoint, $filters = array())
|
835 |
+
{
|
836 |
+
|
837 |
+
$http_build_query = http_build_query($filters);
|
838 |
+
|
839 |
+
if ($http_build_query) {
|
840 |
+
$http_build_query = '?' . $http_build_query;
|
841 |
+
}
|
842 |
+
|
843 |
+
$url = $endpoint . $http_build_query;
|
844 |
+
$response = $this->http->get($url, array('headers' => $this->getHeaders()));
|
845 |
+
|
846 |
+
$code = wp_remote_retrieve_response_code($response);
|
847 |
+
if ($code == 200) {
|
848 |
+
return (array)json_decode($response['body']);
|
849 |
+
}
|
850 |
+
|
851 |
+
return null;
|
852 |
+
}
|
853 |
+
|
854 |
+
/**
|
855 |
+
* @param $endpoint
|
856 |
+
* @param $filters
|
857 |
+
*
|
858 |
+
* @return array|mixed|object|null
|
859 |
+
*/
|
860 |
+
private function getCloudEntityByContainer($endpoint, $filters = array())
|
861 |
+
{
|
862 |
+
|
863 |
+
$filters = array_merge($filters, ['container' => $this->brizyProject->getCloudContainer()]);
|
864 |
+
|
865 |
+
return $this->getCloudEntity($endpoint, $filters);
|
866 |
+
}
|
867 |
+
|
868 |
+
private function updateWPHTTPRequest(&$handle_or_parameters, $form_body_arguments)
|
869 |
+
{
|
870 |
+
if (function_exists('curl_init') && function_exists('curl_exec')) {
|
871 |
+
curl_setopt($handle_or_parameters, CURLOPT_POSTFIELDS, $form_body_arguments);
|
872 |
+
} elseif (function_exists('fsockopen')) {
|
873 |
+
$form_fields = [];
|
874 |
+
$form_files = [];
|
875 |
+
foreach ($form_body_arguments as $name => $value) {
|
876 |
+
if (file_exists($value)) {
|
877 |
+
// Not great for large files since it dumps into memory but works well for small files
|
878 |
+
$form_files[$name] = file_get_contents($value);
|
879 |
+
} else {
|
880 |
+
$form_fields[$name] = $value;
|
881 |
+
}
|
882 |
+
}
|
883 |
+
|
884 |
+
function build_data_files($boundary, $fields, $files)
|
885 |
+
{
|
886 |
+
$data = '';
|
887 |
+
$eol = "\r\n";
|
888 |
+
|
889 |
+
$delimiter = '-------------' . $boundary;
|
890 |
+
|
891 |
+
foreach ($fields as $name => $content) {
|
892 |
+
$data .= "--" . $delimiter . $eol
|
893 |
+
. 'Content-Disposition: form-data; name="' . $name . "\"" . $eol . $eol
|
894 |
+
. $content . $eol;
|
895 |
+
}
|
896 |
+
|
897 |
+
foreach ($files as $name => $content) {
|
898 |
+
$data .= "--" . $delimiter . $eol
|
899 |
+
. 'Content-Disposition: form-data; name="' . $name . '"; filename="' . $name . '"' . $eol
|
900 |
+
//. 'Content-Type: image/png'.$eol
|
901 |
+
. 'Content-Transfer-Encoding: binary' . $eol;
|
902 |
+
|
903 |
+
$data .= $eol;
|
904 |
+
$data .= $content . $eol;
|
905 |
+
}
|
906 |
+
$data .= "--" . $delimiter . "--" . $eol;
|
907 |
+
|
908 |
+
return $data;
|
909 |
+
}
|
910 |
+
|
911 |
+
$boundary = uniqid("", true);
|
912 |
+
$handle_or_parameters = build_data_files($boundary, $form_fields, $form_files);
|
913 |
+
}
|
914 |
+
}
|
915 |
|
916 |
}
|
admin/cloud/layout-bridge.php
CHANGED
@@ -38,6 +38,16 @@ class Brizy_Admin_Cloud_LayoutBridge extends Brizy_Admin_Cloud_AbstractBridge {
|
|
38 |
}
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
$bridge = new Brizy_Admin_Cloud_FontBridge( $this->client );
|
42 |
foreach ( $media->fonts as $fontUid ) {
|
43 |
try {
|
@@ -131,6 +141,18 @@ class Brizy_Admin_Cloud_LayoutBridge extends Brizy_Admin_Cloud_AbstractBridge {
|
|
131 |
}
|
132 |
}
|
133 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
}
|
136 |
$wpdb->query( 'COMMIT' );
|
38 |
}
|
39 |
}
|
40 |
|
41 |
+
$bridge = new Brizy_Admin_Cloud_MediaUploadsBridge( $this->client );
|
42 |
+
foreach ( $media->uploads as $uid ) {
|
43 |
+
try {
|
44 |
+
$bridge->export( $uid );
|
45 |
+
} catch (Exception $e) {
|
46 |
+
Brizy_Logger::instance()->critical( 'Failed to export layout uploads: '.$e->getMessage(),[$e] );
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
|
51 |
$bridge = new Brizy_Admin_Cloud_FontBridge( $this->client );
|
52 |
foreach ( $media->fonts as $fontUid ) {
|
53 |
try {
|
141 |
}
|
142 |
}
|
143 |
}
|
144 |
+
|
145 |
+
$mediaUploadBridge = new Brizy_Admin_Cloud_MediaUploadsBridge( $this->client );
|
146 |
+
$mediaUploadBridge->setBlockId( $post );
|
147 |
+
if ( isset( $blockMedia->uploads ) ) {
|
148 |
+
foreach ( $blockMedia->uploads as $mediaUid ) {
|
149 |
+
try {
|
150 |
+
$mediaUploadBridge->import( $mediaUid );
|
151 |
+
} catch ( Exception $e ) {
|
152 |
+
Brizy_Logger::instance()->critical( 'Failed to import layout uploads: '.$e->getMessage(),[$e] );
|
153 |
+
}
|
154 |
+
}
|
155 |
+
}
|
156 |
}
|
157 |
}
|
158 |
$wpdb->query( 'COMMIT' );
|
admin/cloud/media-uploads-bridge.php
ADDED
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class Brizy_Admin_Cloud_MediaUploadsBridges
|
5 |
+
*/
|
6 |
+
class Brizy_Admin_Cloud_MediaUploadsBridge extends Brizy_Admin_Cloud_AbstractBridge
|
7 |
+
{
|
8 |
+
|
9 |
+
use Brizy_Editor_Asset_AttachmentAware;
|
10 |
+
use Brizy_Editor_Asset_StaticFileTrait;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* This is the block id for which we are importing the media
|
14 |
+
* If this is not set the import will fail.
|
15 |
+
*
|
16 |
+
* @var int
|
17 |
+
*/
|
18 |
+
private $blockId;
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @param $mediaUid
|
22 |
+
*
|
23 |
+
* @return mixed|void
|
24 |
+
* @throws Exception
|
25 |
+
*/
|
26 |
+
public function export($mediaUpload)
|
27 |
+
{
|
28 |
+
|
29 |
+
list($uploadUid,$uploadName) = explode('|||', $mediaUpload);
|
30 |
+
$mediaId = (int)$this->getAttachmentByMediaName($uploadUid);
|
31 |
+
|
32 |
+
if (!$mediaId) {
|
33 |
+
throw new Exception("Unable to find media {$uploadUid}");
|
34 |
+
}
|
35 |
+
|
36 |
+
if ($this->client->isCustomFileUploaded($uploadUid,$uploadName)) {
|
37 |
+
return true;
|
38 |
+
}
|
39 |
+
|
40 |
+
// upload file
|
41 |
+
$filePath = get_attached_file($mediaId);
|
42 |
+
$this->client->uploadCustomFile($uploadUid, $filePath);
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* @param $mediaUid
|
47 |
+
*
|
48 |
+
* @return mixed|void
|
49 |
+
* @throws Exception
|
50 |
+
*/
|
51 |
+
public function import($mediaUpload)
|
52 |
+
{
|
53 |
+
|
54 |
+
if (!$this->blockId) {
|
55 |
+
throw new Exception('The block id is not set.');
|
56 |
+
}
|
57 |
+
|
58 |
+
list($fileUid, $customFileName) = explode('|||', $mediaUpload);
|
59 |
+
|
60 |
+
// enable svg upload
|
61 |
+
$svnUpload = new Brizy_Admin_Svg_Main();
|
62 |
+
$svnUploadEnabled = Brizy_Editor_Storage_Common::instance()->get('svg-upload', false);
|
63 |
+
|
64 |
+
if (!$svnUploadEnabled) {
|
65 |
+
$svnUpload->enableSvgUpload();
|
66 |
+
}
|
67 |
+
|
68 |
+
// download file and store it in wp
|
69 |
+
$urlBuilder = new Brizy_Editor_UrlBuilder();
|
70 |
+
$external_asset_url = $urlBuilder->external_custom_file($fileUid, $customFileName);
|
71 |
+
|
72 |
+
|
73 |
+
$original_asset_path = $urlBuilder->brizy_upload_path("/custom_files/" . $customFileName);
|
74 |
+
$original_asset_path_relative = $urlBuilder->brizy_upload_relative_path("/custom_files/" . $customFileName);
|
75 |
+
|
76 |
+
if (!file_exists($original_asset_path)) {
|
77 |
+
// I assume that the media was already attached.
|
78 |
+
|
79 |
+
if (!$this->store_file($external_asset_url, $original_asset_path)) {
|
80 |
+
// unable to save the attachment
|
81 |
+
Brizy_Logger::instance()->error('Unable to store original media file', array(
|
82 |
+
'source' => (string)$external_asset_url,
|
83 |
+
'destination' => $original_asset_path
|
84 |
+
));
|
85 |
+
throw new Exception('Unable to cache custom file upload');
|
86 |
+
}
|
87 |
+
}
|
88 |
+
|
89 |
+
$attachmentId = $this->create_attachment($customFileName, $original_asset_path, $original_asset_path_relative, null, $fileUid);
|
90 |
+
|
91 |
+
if ($attachmentId === 0 || is_wp_error($attachmentId)) {
|
92 |
+
Brizy_Logger::instance()->error('Unable to create custom file attachment', array(
|
93 |
+
'customFile' => (string)$external_asset_url,
|
94 |
+
'original_asset_path' => (string)$original_asset_path,
|
95 |
+
'original_asset_path_relative' => (string)$original_asset_path_relative,
|
96 |
+
|
97 |
+
));
|
98 |
+
throw new Exception('Unable to attach media');
|
99 |
+
}
|
100 |
+
|
101 |
+
// disabled it if was disabled before
|
102 |
+
if (!$svnUploadEnabled) {
|
103 |
+
$svnUpload->disableSvgUpload();
|
104 |
+
}
|
105 |
+
}
|
106 |
+
|
107 |
+
|
108 |
+
/**
|
109 |
+
* @param $blockId
|
110 |
+
*
|
111 |
+
* @return mixed|void
|
112 |
+
* @throws Exception
|
113 |
+
*/
|
114 |
+
public function delete($blockId)
|
115 |
+
{
|
116 |
+
throw new Exception('Not implemented');
|
117 |
+
}
|
118 |
+
|
119 |
+
/**
|
120 |
+
* @param int $blockId
|
121 |
+
*
|
122 |
+
* @return Brizy_Admin_Cloud_MediaBridge
|
123 |
+
*/
|
124 |
+
public function setBlockId($blockId)
|
125 |
+
{
|
126 |
+
$this->blockId = (int)$blockId;
|
127 |
+
|
128 |
+
return $this;
|
129 |
+
}
|
130 |
+
}
|
admin/cloud/popup-bridge.php
CHANGED
@@ -37,6 +37,15 @@ class Brizy_Admin_Cloud_PopupBridge extends Brizy_Admin_Cloud_AbstractBridge {
|
|
37 |
}
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
$bridge = new Brizy_Admin_Cloud_FontBridge( $this->client );
|
41 |
foreach ( $media->fonts as $fontUid ) {
|
42 |
try {
|
@@ -84,6 +93,47 @@ class Brizy_Admin_Cloud_PopupBridge extends Brizy_Admin_Cloud_AbstractBridge {
|
|
84 |
$brizyPost->set_needs_compile( true );
|
85 |
$brizyPost->setDataVersion( 1 );
|
86 |
$brizyPost->save();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
$wpdb->query( 'COMMIT' );
|
89 |
} catch ( Exception $e ) {
|
37 |
}
|
38 |
}
|
39 |
|
40 |
+
$bridge = new Brizy_Admin_Cloud_MediaUploadsBridge( $this->client );
|
41 |
+
foreach ( $media->uploads as $uid ) {
|
42 |
+
try {
|
43 |
+
$bridge->export( $uid );
|
44 |
+
} catch (Exception $e) {
|
45 |
+
Brizy_Logger::instance()->critical( 'Failed to export popup uploads: '.$e->getMessage(),[$e] );
|
46 |
+
}
|
47 |
+
}
|
48 |
+
|
49 |
$bridge = new Brizy_Admin_Cloud_FontBridge( $this->client );
|
50 |
foreach ( $media->fonts as $fontUid ) {
|
51 |
try {
|
93 |
$brizyPost->set_needs_compile( true );
|
94 |
$brizyPost->setDataVersion( 1 );
|
95 |
$brizyPost->save();
|
96 |
+
|
97 |
+
|
98 |
+
// import fonts
|
99 |
+
if ( isset( $layout['media'] ) ) {
|
100 |
+
$blockMedia = json_decode( $popup['media'] );
|
101 |
+
|
102 |
+
$fontBridge = new Brizy_Admin_Cloud_FontBridge( $this->client );
|
103 |
+
if ( isset( $blockMedia->fonts ) ) {
|
104 |
+
foreach ( $blockMedia->fonts as $cloudFontUid ) {
|
105 |
+
try {
|
106 |
+
$fontBridge->import( $cloudFontUid );
|
107 |
+
} catch ( Exception $e ) {
|
108 |
+
|
109 |
+
}
|
110 |
+
}
|
111 |
+
}
|
112 |
+
|
113 |
+
$mediaBridge = new Brizy_Admin_Cloud_MediaBridge( $this->client );
|
114 |
+
$mediaBridge->setBlockId( $post );
|
115 |
+
if ( isset( $blockMedia->images ) ) {
|
116 |
+
foreach ( $blockMedia->images as $mediaUid ) {
|
117 |
+
try {
|
118 |
+
$mediaBridge->import( $mediaUid );
|
119 |
+
} catch ( Exception $e ) {
|
120 |
+
|
121 |
+
}
|
122 |
+
}
|
123 |
+
}
|
124 |
+
|
125 |
+
$mediaUploadBridge = new Brizy_Admin_Cloud_MediaUploadsBridge( $this->client );
|
126 |
+
$mediaUploadBridge->setBlockId( $post );
|
127 |
+
if ( isset( $blockMedia->uploads ) ) {
|
128 |
+
foreach ( $blockMedia->uploads as $mediaUid ) {
|
129 |
+
try {
|
130 |
+
$mediaUploadBridge->import( $mediaUid );
|
131 |
+
} catch ( Exception $e ) {
|
132 |
+
Brizy_Logger::instance()->critical( 'Failed to import layout uploads: '.$e->getMessage(),[$e] );
|
133 |
+
}
|
134 |
+
}
|
135 |
+
}
|
136 |
+
}
|
137 |
}
|
138 |
$wpdb->query( 'COMMIT' );
|
139 |
} catch ( Exception $e ) {
|
admin/form-entries.php
CHANGED
@@ -118,7 +118,7 @@ class Brizy_Admin_FormEntries {
|
|
118 |
}
|
119 |
|
120 |
public function addSubmenuPage() {
|
121 |
-
add_submenu_page(
|
122 |
}
|
123 |
|
124 |
public function handleEnableButton() {
|
118 |
}
|
119 |
|
120 |
public function addSubmenuPage() {
|
121 |
+
add_submenu_page( Brizy_Admin_Settings::menu_slug(), __( 'Leads', 'brizy' ), __( 'Leads', 'brizy' ), 'manage_options', 'edit.php?post_type=' . self::CP_FORM_ENTRY, null );
|
122 |
}
|
123 |
|
124 |
public function handleEnableButton() {
|
admin/main.php
CHANGED
@@ -42,10 +42,7 @@ class Brizy_Admin_Main {
|
|
42 |
'action_change_template'
|
43 |
) ); // action to change template from editor
|
44 |
|
45 |
-
add_action( 'edit_form_after_title',
|
46 |
-
$this,
|
47 |
-
'action_add_enable_disable_buttons'
|
48 |
-
) ); // add button to enable disable editor
|
49 |
}
|
50 |
|
51 |
add_action( 'before_delete_post', array( $this, 'action_delete_page' ) );
|
@@ -55,6 +52,7 @@ class Brizy_Admin_Main {
|
|
55 |
add_filter( 'admin_body_class', array( $this, 'filter_add_body_class' ), 10, 2 );
|
56 |
|
57 |
add_action( 'admin_head', array( $this, 'hide_editor' ) );
|
|
|
58 |
add_action( 'brizy_global_data_updated', array( $this, 'global_data_updated' ) );
|
59 |
add_filter( 'plugin_action_links_' . BRIZY_PLUGIN_BASE, array( $this, 'plugin_action_links' ) );
|
60 |
add_filter( 'display_post_states', array( $this, 'display_post_states' ), 10, 2 );
|
@@ -214,6 +212,38 @@ class Brizy_Admin_Main {
|
|
214 |
}
|
215 |
}
|
216 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
public function plugin_action_links( $links ) {
|
218 |
$settings_link = sprintf( '<a href="%s">%s</a>', admin_url( 'admin.php?page=' . Brizy_Admin_Settings::menu_slug() ), __( 'Settings', 'brizy' ) );
|
219 |
array_unshift( $links, $settings_link );
|
42 |
'action_change_template'
|
43 |
) ); // action to change template from editor
|
44 |
|
45 |
+
add_action( 'edit_form_after_title', [ $this, 'action_add_enable_disable_buttons' ], -1 ); // add button to enable disable editor
|
|
|
|
|
|
|
46 |
}
|
47 |
|
48 |
add_action( 'before_delete_post', array( $this, 'action_delete_page' ) );
|
52 |
add_filter( 'admin_body_class', array( $this, 'filter_add_body_class' ), 10, 2 );
|
53 |
|
54 |
add_action( 'admin_head', array( $this, 'hide_editor' ) );
|
55 |
+
add_action( 'admin_head', array( $this, 'custom_css_btns' ) );
|
56 |
add_action( 'brizy_global_data_updated', array( $this, 'global_data_updated' ) );
|
57 |
add_filter( 'plugin_action_links_' . BRIZY_PLUGIN_BASE, array( $this, 'plugin_action_links' ) );
|
58 |
add_filter( 'display_post_states', array( $this, 'display_post_states' ), 10, 2 );
|
212 |
}
|
213 |
}
|
214 |
|
215 |
+
public function custom_css_btns() {
|
216 |
+
|
217 |
+
$prefix = 'brizy';
|
218 |
+
|
219 |
+
if ( class_exists( 'BrizyPro_Admin_WhiteLabel' ) && BrizyPro_Admin_WhiteLabel::_init()->getEnabled() ) {
|
220 |
+
$prefix = method_exists( 'BrizyPro_Admin_WhiteLabel', 'getPrefix' ) ? BrizyPro_Admin_WhiteLabel::_init()->getPrefix() : get_option( 'brizy_prefix', 'brizy' );
|
221 |
+
}
|
222 |
+
|
223 |
+
$cssId = '#toplevel_page_' . $prefix . '-settings';
|
224 |
+
$svg = __bt( 'brizy-logo', plugins_url( '../admin/static/img/brizy-logo.svg', __FILE__ ) );
|
225 |
+
|
226 |
+
echo
|
227 |
+
'<style>' .
|
228 |
+
$cssId . ' .wp-menu-image::before {
|
229 |
+
background-color: rgba(240,246,252,.6);
|
230 |
+
content: "\00a0";
|
231 |
+
-webkit-mask: url(' . $svg . ') no-repeat center;
|
232 |
+
mask: url(' . $svg . ') no-repeat center;
|
233 |
+
mask-size: contain;
|
234 |
+
-webkit-mask-size: contain;
|
235 |
+
}' .
|
236 |
+
|
237 |
+
$cssId . '.wp-has-current-submenu .wp-menu-image::before {
|
238 |
+
background-color: white;
|
239 |
+
}' .
|
240 |
+
|
241 |
+
$cssId . '.wp-not-current-submenu:hover .wp-menu-image::before {
|
242 |
+
background-color: #72aee6;
|
243 |
+
}
|
244 |
+
</style>';
|
245 |
+
}
|
246 |
+
|
247 |
public function plugin_action_links( $links ) {
|
248 |
$settings_link = sprintf( '<a href="%s">%s</a>', admin_url( 'admin.php?page=' . Brizy_Admin_Settings::menu_slug() ), __( 'Settings', 'brizy' ) );
|
249 |
array_unshift( $links, $settings_link );
|
admin/rule.php
CHANGED
@@ -172,13 +172,19 @@ class Brizy_Admin_Rule extends Brizy_Admin_Serializable implements Brizy_Admin_R
|
|
172 |
// matching archive rules
|
173 |
if ( isset( $ruleValues[1] ) && isset( $checkValues[1] ) && ( $ruleValues[1] & self::ARCHIVE ) && ( $checkValues[1] & self::ARCHIVE ) ) {
|
174 |
|
175 |
-
if (
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
|
|
|
|
|
|
181 |
}
|
|
|
|
|
|
|
182 |
}
|
183 |
|
184 |
foreach ( $ruleValues as $i => $value ) {
|
172 |
// matching archive rules
|
173 |
if ( isset( $ruleValues[1] ) && isset( $checkValues[1] ) && ( $ruleValues[1] & self::ARCHIVE ) && ( $checkValues[1] & self::ARCHIVE ) ) {
|
174 |
|
175 |
+
if ($checkValues[1] == $ruleValues[1] ||
|
176 |
+
$ruleValues[1] == self::DATE_ARCHIVE ||
|
177 |
+
$ruleValues[1] == self::YEAR_ARCHIVE ||
|
178 |
+
$ruleValues[1] == self::MONTH_ARCHIVE ||
|
179 |
+
$ruleValues[1] == self::DAY_ARCHIVE ||
|
180 |
+
$ruleValues[1] == self::ARCHIVE) {
|
181 |
+
if(empty($ruleValues[2]) || $ruleValues[2]==$entityType) {
|
182 |
+
return true;
|
183 |
+
}
|
184 |
}
|
185 |
+
|
186 |
+
|
187 |
+
|
188 |
}
|
189 |
|
190 |
foreach ( $ruleValues as $i => $value ) {
|
admin/rules/api.php
CHANGED
@@ -346,7 +346,7 @@ class Brizy_Admin_Rules_Api extends Brizy_Admin_AbstractApi {
|
|
346 |
$groups[] = array(
|
347 |
'title' => 'Pages',
|
348 |
'value' => Brizy_Admin_Rule::POSTS,
|
349 |
-
'items' => array_map( $closure, $this->getCustomPostsList( Brizy_Admin_Rule::POSTS, $templateType ) )
|
350 |
);
|
351 |
}
|
352 |
|
@@ -584,13 +584,13 @@ class Brizy_Admin_Rules_Api extends Brizy_Admin_AbstractApi {
|
|
584 |
wp_send_json_success( $groups, 200 );
|
585 |
}
|
586 |
|
587 |
-
private function getCustomPostsList( $groupValue, $templateType ) {
|
588 |
$postTypes = get_post_types( [ 'public' => true ], 'objects' );
|
589 |
$postTypes = array_diff_key( $postTypes, array_flip( [ 'attachment', 'elementor_library', Brizy_Admin_Stories_Main::CP_STORY ] ) );
|
590 |
|
591 |
-
return array_values( array_filter( $postTypes, function ( $type ) use ( $groupValue, $templateType ) {
|
592 |
$type->groupValue = $groupValue;
|
593 |
-
if ( $templateType == 'single_product' ) {
|
594 |
return $type->name == 'product' && $type->public && $type->show_ui;
|
595 |
} else {
|
596 |
return $type->name != 'product' && $type->public && $type->show_ui;
|
346 |
$groups[] = array(
|
347 |
'title' => 'Pages',
|
348 |
'value' => Brizy_Admin_Rule::POSTS,
|
349 |
+
'items' => array_map( $closure, $this->getCustomPostsList( Brizy_Admin_Rule::POSTS, $templateType, $context ) )
|
350 |
);
|
351 |
}
|
352 |
|
584 |
wp_send_json_success( $groups, 200 );
|
585 |
}
|
586 |
|
587 |
+
private function getCustomPostsList( $groupValue, $templateType, $context ) {
|
588 |
$postTypes = get_post_types( [ 'public' => true ], 'objects' );
|
589 |
$postTypes = array_diff_key( $postTypes, array_flip( [ 'attachment', 'elementor_library', Brizy_Admin_Stories_Main::CP_STORY ] ) );
|
590 |
|
591 |
+
return array_values( array_filter( $postTypes, function ( $type ) use ( $groupValue, $templateType, $context ) {
|
592 |
$type->groupValue = $groupValue;
|
593 |
+
if ( $templateType == 'single_product' || $context=='popup-rules' ) {
|
594 |
return $type->name == 'product' && $type->public && $type->show_ui;
|
595 |
} else {
|
596 |
return $type->name != 'product' && $type->public && $type->show_ui;
|
admin/rules/manager.php
CHANGED
@@ -45,27 +45,27 @@ class Brizy_Admin_Rules_Manager {
|
|
45 |
$applyFor = Brizy_Admin_Rule::DAY_ARCHIVE;
|
46 |
if ( $wp_query->queried_object ) {
|
47 |
$entityType = $wp_query->queried_object->name;
|
48 |
-
}
|
49 |
} elseif ( is_month() ) {
|
50 |
$applyFor = Brizy_Admin_Rule::MONTH_ARCHIVE;
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
} elseif ( is_year() ) {
|
55 |
$applyFor = Brizy_Admin_Rule::YEAR_ARCHIVE;
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
} elseif ( is_date() ) {
|
60 |
$applyFor = Brizy_Admin_Rule::DATE_ARCHIVE;
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
} elseif ( is_archive() || isset($_REQUEST['post_type']) ) {
|
65 |
$applyFor = Brizy_Admin_Rule::ARCHIVE;
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
} elseif ( ( $wp_query->queried_object instanceof WP_Post || $wp_query->post instanceof WP_Post ) && get_queried_object() ) {
|
70 |
$applyFor = Brizy_Admin_Rule::POSTS;
|
71 |
$entityType = get_queried_object()->post_type;
|
45 |
$applyFor = Brizy_Admin_Rule::DAY_ARCHIVE;
|
46 |
if ( $wp_query->queried_object ) {
|
47 |
$entityType = $wp_query->queried_object->name;
|
48 |
+
} else $entityType = 'post';
|
49 |
} elseif ( is_month() ) {
|
50 |
$applyFor = Brizy_Admin_Rule::MONTH_ARCHIVE;
|
51 |
+
if ( $wp_query->queried_object ) {
|
52 |
+
$entityType = $wp_query->queried_object->name;
|
53 |
+
} else $entityType = 'post';
|
54 |
} elseif ( is_year() ) {
|
55 |
$applyFor = Brizy_Admin_Rule::YEAR_ARCHIVE;
|
56 |
+
if ( $wp_query->queried_object ) {
|
57 |
+
$entityType = $wp_query->queried_object->name;
|
58 |
+
} else $entityType = 'post';
|
59 |
} elseif ( is_date() ) {
|
60 |
$applyFor = Brizy_Admin_Rule::DATE_ARCHIVE;
|
61 |
+
if ( $wp_query->queried_object ) {
|
62 |
+
$entityType = $wp_query->queried_object->name;
|
63 |
+
} else $entityType = 'post';
|
64 |
} elseif ( is_archive() || isset($_REQUEST['post_type']) ) {
|
65 |
$applyFor = Brizy_Admin_Rule::ARCHIVE;
|
66 |
+
if ( $wp_query->queried_object ) {
|
67 |
+
$entityType = $wp_query->queried_object->name;
|
68 |
+
} else $entityType = 'post';
|
69 |
} elseif ( ( $wp_query->queried_object instanceof WP_Post || $wp_query->post instanceof WP_Post ) && get_queried_object() ) {
|
70 |
$applyFor = Brizy_Admin_Rule::POSTS;
|
71 |
$entityType = get_queried_object()->post_type;
|
admin/settings.php
CHANGED
@@ -94,8 +94,7 @@ class Brizy_Admin_Settings {
|
|
94 |
'read',
|
95 |
self::menu_slug(),
|
96 |
array( $this, 'render' ),
|
97 |
-
|
98 |
-
//plugins_url( '/static/img/brizy-logo.svg', __FILE__ ),
|
99 |
'58'
|
100 |
);
|
101 |
}
|
@@ -197,15 +196,12 @@ class Brizy_Admin_Settings {
|
|
197 |
$list_post_types = $this->list_post_types();
|
198 |
$prepared_types = array_map( array( $this, 'is_selected' ), $list_post_types );
|
199 |
$svgEnabled = Brizy_Editor_Storage_Common::instance()->get( 'svg-upload', false );
|
200 |
-
$time = get_option( Brizy_Update::KEY );
|
201 |
|
202 |
return Brizy_Admin_View::render(
|
203 |
'settings/general',
|
204 |
[
|
205 |
'types' => $prepared_types,
|
206 |
-
'svgUploadEnabled' => $svgEnabled
|
207 |
-
'disablePostponeUpdateUrl' => add_query_arg( 'disable-postpone-update', 'true', admin_url( 'plugins.php' ) ),
|
208 |
-
'showPostponeBtn' => $time > time()
|
209 |
]
|
210 |
);
|
211 |
}
|
94 |
'read',
|
95 |
self::menu_slug(),
|
96 |
array( $this, 'render' ),
|
97 |
+
'',
|
|
|
98 |
'58'
|
99 |
);
|
100 |
}
|
196 |
$list_post_types = $this->list_post_types();
|
197 |
$prepared_types = array_map( array( $this, 'is_selected' ), $list_post_types );
|
198 |
$svgEnabled = Brizy_Editor_Storage_Common::instance()->get( 'svg-upload', false );
|
|
|
199 |
|
200 |
return Brizy_Admin_View::render(
|
201 |
'settings/general',
|
202 |
[
|
203 |
'types' => $prepared_types,
|
204 |
+
'svgUploadEnabled' => $svgEnabled
|
|
|
|
|
205 |
]
|
206 |
);
|
207 |
}
|
admin/static/css/style.css
CHANGED
@@ -35,108 +35,125 @@
|
|
35 |
display: flex;
|
36 |
}
|
37 |
|
38 |
-
.brizy-logo {
|
39 |
-
max-height: 22px;
|
40 |
-
margin-left: 4px;
|
41 |
-
margin-right: 4px;
|
42 |
-
transform: translateY(2px);
|
43 |
-
}
|
44 |
-
|
45 |
.brizy-button--arrow {
|
46 |
max-height: 14px;
|
47 |
margin-right: 11px;
|
48 |
}
|
49 |
|
50 |
.brizy-buttons {
|
51 |
-
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
}
|
54 |
|
55 |
-
.brizy-buttons
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
text-align: center;
|
62 |
}
|
63 |
|
64 |
-
.
|
|
|
|
|
65 |
}
|
66 |
|
67 |
-
.brizy-buttons-gutenberg
|
|
|
|
|
|
|
68 |
}
|
69 |
|
70 |
-
.brizy-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
align-items: center;
|
86 |
-
text-decoration: none;
|
87 |
-
transition: all 200ms linear;
|
88 |
-
height: 33px;
|
89 |
}
|
90 |
|
91 |
-
.brizy-button
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
}
|
96 |
|
97 |
-
.brizy-
|
98 |
-
|
99 |
-
color: #444;
|
100 |
-
border-color: #e5e5e5;
|
101 |
-
background-color: #fff;
|
102 |
-
box-shadow: 0px 2px 0px 0px #e3e3e3;
|
103 |
}
|
104 |
|
105 |
-
.brizy-button
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
}
|
112 |
|
113 |
-
.brizy-button
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
|
|
117 |
}
|
118 |
|
119 |
-
.brizy-button--primary:hover
|
120 |
-
|
121 |
-
.brizy-button--primary:active {
|
122 |
-
color: #fff !important;;
|
123 |
-
background-color: #d62c64 !important;;
|
124 |
-
border-color: #d62c64 !important;;
|
125 |
-
box-shadow: 0px 2px 0px 0px #981e46 !important;;
|
126 |
}
|
127 |
|
128 |
.brizy-button--default:hover,
|
129 |
.brizy-button--default:focus,
|
130 |
.brizy-button--default:active {
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
}
|
136 |
|
137 |
/**
|
138 |
-
|
139 |
-
|
140 |
.brizy-template-rules .error {
|
141 |
color: red;
|
142 |
}
|
35 |
display: flex;
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
.brizy-button--arrow {
|
39 |
max-height: 14px;
|
40 |
margin-right: 11px;
|
41 |
}
|
42 |
|
43 |
.brizy-buttons {
|
44 |
+
margin-top:auto;
|
45 |
+
margin-bottom:auto;
|
46 |
+
text-align:center;
|
47 |
+
}
|
48 |
+
.brizy-buttons .button {
|
49 |
+
height: 33px;
|
50 |
+
min-height: 32px !important;
|
51 |
+
line-height: 1 !important;
|
52 |
+
display: inline-flex;
|
53 |
+
align-items: center;
|
54 |
}
|
55 |
|
56 |
+
.brizy-buttons .button::before {
|
57 |
+
background-color: white;
|
58 |
+
content: "\00a0";
|
59 |
+
width: 20px;
|
60 |
+
height: 20px;
|
61 |
+
margin-right: 10px;
|
|
|
62 |
}
|
63 |
|
64 |
+
.is-classic-editor {
|
65 |
+
margin: 20px 20px 20px 0;
|
66 |
+
text-align: left;
|
67 |
}
|
68 |
|
69 |
+
.brizy-buttons-gutenberg {
|
70 |
+
margin-bottom: 50px;
|
71 |
+
height: 300px;
|
72 |
+
width: 100%;
|
73 |
}
|
74 |
|
75 |
+
.brizy-buttons-gutenberg a {
|
76 |
+
height: 100%;
|
77 |
+
display: -webkit-box;
|
78 |
+
display: -ms-flexbox;
|
79 |
+
display: flex;
|
80 |
+
-webkit-box-pack: center;
|
81 |
+
-ms-flex-pack: center;
|
82 |
+
justify-content: center;
|
83 |
+
-webkit-box-align: center;
|
84 |
+
-ms-flex-align: center;
|
85 |
+
align-items: center;
|
86 |
+
border: 1px solid #dedede;
|
87 |
+
background-color: #f9f9f9;
|
88 |
+
text-decoration: none;
|
89 |
+
position: relative;
|
|
|
|
|
|
|
|
|
90 |
}
|
91 |
|
92 |
+
.brizy-buttons-gutenberg .button {
|
93 |
+
min-height: 46px !important;
|
94 |
+
padding-left: 35px !important;
|
95 |
+
padding-right: 35px !important;
|
96 |
}
|
97 |
|
98 |
+
.brizy-buttons-gutenberg a:hover {
|
99 |
+
background-color: #fff
|
|
|
|
|
|
|
|
|
100 |
}
|
101 |
|
102 |
+
.brizy-button {
|
103 |
+
padding: 0px 12px 0px;
|
104 |
+
border-style: solid;
|
105 |
+
border-width: 1px;
|
106 |
+
border-bottom: 0;
|
107 |
+
border-radius: 3px;
|
108 |
+
background-color: #d62c64;
|
109 |
+
text-shadow: none;
|
110 |
+
font-size: 13px;
|
111 |
+
font-family: "Open Sans", sans-serif;
|
112 |
+
color: #fff !important;
|
113 |
+
line-height: 1;
|
114 |
+
display: inline-flex;
|
115 |
+
align-items: center;
|
116 |
+
text-decoration: none;
|
117 |
+
transition: all 200ms linear;
|
118 |
+
height: 33px;
|
119 |
+
}
|
120 |
+
|
121 |
+
.brizy-go-editor-back-arrow {
|
122 |
+
padding-bottom: 5px;
|
123 |
+
font-size: 18px;
|
124 |
+
}
|
125 |
+
.brizy-button--default {
|
126 |
+
font-size: 15px;
|
127 |
+
color: #444;
|
128 |
+
border-color: #e5e5e5;
|
129 |
+
background-color: #fff;
|
130 |
+
box-shadow: 0px 2px 0px 0px #e3e3e3;
|
131 |
}
|
132 |
|
133 |
+
.brizy-button--primary {
|
134 |
+
height: 33px;
|
135 |
+
color: #2271b1 !important;
|
136 |
+
border-color: #2271b1 !important;
|
137 |
+
background-color: #e9e9e9 !important;
|
138 |
+
box-shadow: 0 1px 0 #2271b1!important;
|
139 |
}
|
140 |
|
141 |
+
a.brizy-button--primary:hover {
|
142 |
+
background-color: #f7f7f7 !important;
|
|
|
|
|
|
|
|
|
|
|
143 |
}
|
144 |
|
145 |
.brizy-button--default:hover,
|
146 |
.brizy-button--default:focus,
|
147 |
.brizy-button--default:active {
|
148 |
+
color: #444;
|
149 |
+
border-color: #e5e5e5;
|
150 |
+
background-color: #fff;
|
151 |
+
box-shadow: 0px 2px 0px 0px #e3e3e3;
|
152 |
}
|
153 |
|
154 |
/**
|
155 |
+
* Style Brizy Templates
|
156 |
+
*/
|
157 |
.brizy-template-rules .error {
|
158 |
color: red;
|
159 |
}
|
admin/static/img/brizy-2x.png
DELETED
Binary file
|
admin/static/img/brizy-logo.svg
CHANGED
@@ -1,13 +1,7 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3 |
-
|
4 |
-
<
|
5 |
-
|
6 |
-
<defs></defs>
|
7 |
-
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
8 |
-
<g id="brizy-logo-2">
|
9 |
-
<path d="M1.76744915,5.42394877 L8.14019105,9.76033448 L14.2328753,5.45506181 L7.85965616,1.20869949 L1.76744915,5.42394877 Z" id="Path" stroke="#f0f5fa" stroke-width="2"></path>
|
10 |
-
<polygon id="Path-2" fill="#f0f5fa" points="0 10.4572332 2.11320755 8.83953968 8.1509434 12.9993231 13.9874214 8.95508922 16 10.4572332 8.1509434 15.8880615"></polygon>
|
11 |
-
</g>
|
12 |
</g>
|
13 |
</svg>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3 |
+
<title>Icons / Brizy / logo</title>
|
4 |
+
<g id="Icons-/-Brizy-/-logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
5 |
+
<path d="M8.31363932,1.00097401 C14.6921658,1.04143425 14.9865593,2.3548823 15.0001467,7.26264889 L15.0001467,8.73850282 C14.9863402,13.7254269 14.6825962,15.0011517 8.00022831,15.0011517 C1.42392978,15.0011517 1.02536623,13.7656047 1.00121086,8.97318 L0.999847253,8.49821537 C0.999652451,8.33614065 0.999652451,8.17028679 0.999652451,8.00057586 L0.999676802,7.74889252 C0.999701152,7.66595585 0.999749852,7.58397371 0.999847253,7.50293635 L1.00121086,7.02797171 C1.02536623,2.235547 1.42392978,1 8.00022831,1 Z M4.3880998,8.44637849 L3.57881198,9.29081447 L8.09695816,11.9481732 L12.6151044,9.29081447 L11.8298616,8.46052061 L8.09695816,10.6253103 L4.3880998,8.44637849 Z M8.09695816,3.94761089 L3.57881198,6.65368016 L8.09695816,9.3597494 L12.6151044,6.65368016 L8.09695816,3.94761089 Z M8.09695816,5.24430492 L10.5506638,6.71811036 L8.09695816,8.19191581 L5.64325255,6.71811036 L8.09695816,5.24430492 Z" id="Combined-Shape" fill="#03080F" fill-rule="nonzero"></path>
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
</g>
|
7 |
</svg>
|
admin/static/js/script.js
CHANGED
@@ -158,7 +158,7 @@ jQuery(document).ready(function ($) {
|
|
158 |
|
159 |
insertBrizyBtn: function () {
|
160 |
|
161 |
-
if ( $( '.brizy-buttons' ).length ) {
|
162 |
return;
|
163 |
}
|
164 |
|
158 |
|
159 |
insertBrizyBtn: function () {
|
160 |
|
161 |
+
if ( $( '.edit-post-header-toolbar .brizy-buttons' ).length ) {
|
162 |
return;
|
163 |
}
|
164 |
|
admin/views/button.php
CHANGED
@@ -9,26 +9,24 @@
|
|
9 |
|
10 |
$state = $is_using_brizy ? 'disable' : 'enable';
|
11 |
$className = $is_using_brizy ? 'brizy-button--default' : 'brizy-button--primary';
|
|
|
12 |
?>
|
13 |
-
<div class="brizy-buttons">
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
}
|
30 |
-
?>
|
31 |
-
</a>
|
32 |
</div>
|
33 |
<?php
|
34 |
if ( $is_using_brizy ) {
|
@@ -40,12 +38,13 @@ if ( $is_using_brizy ) {
|
|
40 |
</style>
|
41 |
|
42 |
<div class="brizy-editor">
|
43 |
-
<
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
49 |
</div>
|
50 |
<?php
|
51 |
}
|
9 |
|
10 |
$state = $is_using_brizy ? 'disable' : 'enable';
|
11 |
$className = $is_using_brizy ? 'brizy-button--default' : 'brizy-button--primary';
|
12 |
+
$edit_url = esc_url( set_url_scheme( admin_url( 'admin-post.php?action=_brizy_admin_editor_' . $state . '&post=' . $post->ID ) ) );
|
13 |
?>
|
14 |
+
<div class="brizy-buttons is-classic-editor">
|
15 |
+
<?php
|
16 |
+
if ( $is_using_brizy ) {
|
17 |
+
?>
|
18 |
+
<a class="brizy-button brizy-button--primary enable-brizy-editor" href="<?php echo $edit_url; ?>">
|
19 |
+
<span class="brizy-go-editor-back-arrow">←</span> <span><?php echo __( 'Back to WordPress Editor', 'brizy' ) ?></span>
|
20 |
+
</a>
|
21 |
+
<?php
|
22 |
+
} else {
|
23 |
+
?>
|
24 |
+
<a href="<?php echo $edit_url;?>" class="button button-primary button-large enable-brizy-editor">
|
25 |
+
<?php printf( esc_html__( 'Edit with %s', 'brizy' ), __bt( 'brizy', 'Brizy' ) ); ?>
|
26 |
+
</a>
|
27 |
+
<?php
|
28 |
+
}
|
29 |
+
?>
|
|
|
|
|
|
|
30 |
</div>
|
31 |
<?php
|
32 |
if ( $is_using_brizy ) {
|
38 |
</style>
|
39 |
|
40 |
<div class="brizy-editor">
|
41 |
+
<div class="brizy-buttons brizy-buttons-gutenberg">
|
42 |
+
<a href="<?php echo $url;?>" class="">
|
43 |
+
<div class="button button-primary button-large">
|
44 |
+
<?php printf( esc_html__( 'Edit with %s', 'brizy' ), __bt( 'brizy', 'Brizy' ) ); ?>
|
45 |
+
</div>
|
46 |
+
</a>
|
47 |
+
</div>
|
48 |
</div>
|
49 |
<?php
|
50 |
}
|
admin/views/editor.php
DELETED
@@ -1,23 +0,0 @@
|
|
1 |
-
<?php if ( ! defined( 'ABSPATH' ) ) {
|
2 |
-
die( 'Direct access forbidden.' );
|
3 |
-
}
|
4 |
-
|
5 |
-
/**
|
6 |
-
* @var string $url
|
7 |
-
*/
|
8 |
-
$plugins_url = plugins_url();
|
9 |
-
|
10 |
-
?>
|
11 |
-
|
12 |
-
<style>
|
13 |
-
#post-status-info
|
14 |
-
{
|
15 |
-
display: none;
|
16 |
-
}
|
17 |
-
</style>
|
18 |
-
|
19 |
-
|
20 |
-
<div class="brizy-editor">
|
21 |
-
<a class="preview brizy-button brizy-button--primary" type="button" href="<?php echo $url; ?>"><?php _e( 'Continue to edit with', 'brizy' ); ?>
|
22 |
-
<img src="<?php echo plugins_url( '../static/img/brizy.png', __FILE__ );?>" srcset="<?php echo plugins_url( '../static/img/brizy.png', __FILE__ );?> 1x, <?php echo plugins_url( '../static/img/brizy-2x.png', __FILE__ );?> 2x" class="brizy-logo" /></a>
|
23 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
brizy.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin URI: https://brizy.io/
|
6 |
* Author: Brizy.io
|
7 |
* Author URI: https://brizy.io/
|
8 |
-
* Version: 2.2.
|
9 |
* Text Domain: brizy
|
10 |
* License: GPLv3
|
11 |
* Domain Path: /languages
|
@@ -19,9 +19,9 @@ if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && stripos( $_SERVER['HTTP_X_FO
|
|
19 |
|
20 |
define( 'BRIZY_DEVELOPMENT', false );
|
21 |
define( 'BRIZY_LOG', false );
|
22 |
-
define( 'BRIZY_VERSION', '2.2.
|
23 |
-
define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '
|
24 |
-
define( 'BRIZY_SYNC_VERSION', '
|
25 |
define( 'BRIZY_FILE', __FILE__ );
|
26 |
define( 'BRIZY_PLUGIN_BASE', plugin_basename( BRIZY_FILE ) );
|
27 |
define( 'BRIZY_PLUGIN_PATH', dirname( BRIZY_FILE ) );
|
5 |
* Plugin URI: https://brizy.io/
|
6 |
* Author: Brizy.io
|
7 |
* Author URI: https://brizy.io/
|
8 |
+
* Version: 2.2.19
|
9 |
* Text Domain: brizy
|
10 |
* License: GPLv3
|
11 |
* Domain Path: /languages
|
19 |
|
20 |
define( 'BRIZY_DEVELOPMENT', false );
|
21 |
define( 'BRIZY_LOG', false );
|
22 |
+
define( 'BRIZY_VERSION', '2.2.19' );
|
23 |
+
define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '189-wp' );
|
24 |
+
define( 'BRIZY_SYNC_VERSION', '189' );
|
25 |
define( 'BRIZY_FILE', __FILE__ );
|
26 |
define( 'BRIZY_PLUGIN_BASE', plugin_basename( BRIZY_FILE ) );
|
27 |
define( 'BRIZY_PLUGIN_PATH', dirname( BRIZY_FILE ) );
|
compatibilities/gutenberg.php
CHANGED
@@ -7,6 +7,7 @@ class Brizy_Compatibilities_Gutenberg {
|
|
7 |
add_action( 'admin_print_scripts-edit.php', array( $this, 'add_edit_button_to_gutenberg' ), 12 );
|
8 |
add_action( 'admin_init', array( $this, 'action_disable_gutenberg' ) );
|
9 |
add_action( 'admin_footer', array( $this, 'print_admin_footer_tpls' ) );
|
|
|
10 |
}
|
11 |
|
12 |
|
@@ -85,17 +86,17 @@ class Brizy_Compatibilities_Gutenberg {
|
|
85 |
?>
|
86 |
<script id="brizy-gutenberg-btn-switch-mode" type="text/html">
|
87 |
<div class="brizy-buttons">
|
88 |
-
<a class="brizy-button brizy-button--primary enable-brizy-editor"
|
89 |
-
|
90 |
-
<img src="<?php echo plugins_url( '../admin/static/img/arrow.png', __FILE__ ) ?>"
|
91 |
-
class="brizy-button--arrow" /> <?php echo __( 'Back to WordPress Editor', 'brizy' ) ?>
|
92 |
</a>
|
93 |
</div>
|
94 |
</script>
|
95 |
<script id="brizy-gutenberg-btn-middle" type="text/html">
|
96 |
-
<div class="brizy-buttons-gutenberg">
|
97 |
-
<a
|
98 |
-
|
|
|
|
|
99 |
</a>
|
100 |
</div>
|
101 |
</script>
|
@@ -103,20 +104,32 @@ class Brizy_Compatibilities_Gutenberg {
|
|
103 |
<?php
|
104 |
} else {
|
105 |
$edit_url = esc_url( admin_url( 'admin-post.php?action=_brizy_admin_editor_enable&post=' . get_the_ID() ) );
|
|
|
106 |
?>
|
107 |
<script id="brizy-gutenberg-btn-switch-mode" type="text/html">
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
</div>
|
115 |
-
</script>
|
116 |
<?php
|
117 |
}
|
118 |
} catch ( Exception $e ) {
|
119 |
|
120 |
}
|
121 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
}
|
7 |
add_action( 'admin_print_scripts-edit.php', array( $this, 'add_edit_button_to_gutenberg' ), 12 );
|
8 |
add_action( 'admin_init', array( $this, 'action_disable_gutenberg' ) );
|
9 |
add_action( 'admin_footer', array( $this, 'print_admin_footer_tpls' ) );
|
10 |
+
add_action( 'admin_head', [ $this, 'admin_head' ] );
|
11 |
}
|
12 |
|
13 |
|
86 |
?>
|
87 |
<script id="brizy-gutenberg-btn-switch-mode" type="text/html">
|
88 |
<div class="brizy-buttons">
|
89 |
+
<a class="brizy-button brizy-button--primary enable-brizy-editor" href="<?php echo $edit_url ?>">
|
90 |
+
<span class="brizy-go-editor-back-arrow">←</span> <span><?php echo __( 'Back to WordPress Editor', 'brizy' ) ?></span>
|
|
|
|
|
91 |
</a>
|
92 |
</div>
|
93 |
</script>
|
94 |
<script id="brizy-gutenberg-btn-middle" type="text/html">
|
95 |
+
<div class="brizy-buttons brizy-buttons-gutenberg">
|
96 |
+
<a href="<?php echo $continueUrl; ?>" class="">
|
97 |
+
<div class="button button-primary button-large">
|
98 |
+
<?php printf( esc_html__( 'Edit with %s', 'brizy' ), __bt( 'brizy', 'Brizy' ) ); ?>
|
99 |
+
</div>
|
100 |
</a>
|
101 |
</div>
|
102 |
</script>
|
104 |
<?php
|
105 |
} else {
|
106 |
$edit_url = esc_url( admin_url( 'admin-post.php?action=_brizy_admin_editor_enable&post=' . get_the_ID() ) );
|
107 |
+
|
108 |
?>
|
109 |
<script id="brizy-gutenberg-btn-switch-mode" type="text/html">
|
110 |
+
<div class="brizy-buttons" >
|
111 |
+
<a href="<?php echo $edit_url;?>" class="button button-primary button-large">
|
112 |
+
<?php printf( esc_html__( 'Edit with %s', 'brizy' ), __bt( 'brizy', 'Brizy' ) ); ?>
|
113 |
+
</a>
|
114 |
+
</div>
|
115 |
+
</script>
|
|
|
|
|
116 |
<?php
|
117 |
}
|
118 |
} catch ( Exception $e ) {
|
119 |
|
120 |
}
|
121 |
}
|
122 |
+
|
123 |
+
public function admin_head() {
|
124 |
+
|
125 |
+
echo
|
126 |
+
'<style>
|
127 |
+
.brizy-buttons .button::before {
|
128 |
+
-webkit-mask: url(' . __bt( 'brizy-logo', plugins_url( '../admin/static/img/brizy-logo.svg', __FILE__ ) ) . ') no-repeat center;
|
129 |
+
mask: url(' . __bt( 'brizy-logo', plugins_url( '../admin/static/img/brizy-logo.png', __FILE__ ) ) . ') no-repeat center;
|
130 |
+
mask-size: contain;
|
131 |
+
-webkit-mask-size: contain;
|
132 |
+
}' .
|
133 |
+
'</style>';
|
134 |
+
}
|
135 |
}
|
compatibilities/init.php
CHANGED
@@ -85,11 +85,15 @@ class Brizy_Compatibilities_Init {
|
|
85 |
|
86 |
if ( class_exists( 'WooCommerce' ) ) {
|
87 |
new Brizy_Compatibilities_Woocommerce();
|
88 |
-
|
89 |
|
90 |
if ( class_exists( 'bbPress' ) ) {
|
91 |
new Brizy_Compatibilities_Bbpress();
|
92 |
}
|
|
|
|
|
|
|
|
|
93 |
}
|
94 |
|
95 |
public function after_setup_theme() {
|
85 |
|
86 |
if ( class_exists( 'WooCommerce' ) ) {
|
87 |
new Brizy_Compatibilities_Woocommerce();
|
88 |
+
}
|
89 |
|
90 |
if ( class_exists( 'bbPress' ) ) {
|
91 |
new Brizy_Compatibilities_Bbpress();
|
92 |
}
|
93 |
+
|
94 |
+
if ( class_exists( 'Tribe__Events__Main' ) ) {
|
95 |
+
new Brizy_Compatibilities_TheEventsCalendar();
|
96 |
+
}
|
97 |
}
|
98 |
|
99 |
public function after_setup_theme() {
|
compatibilities/the-events-calendar.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* https://wordpress.org/plugins/the-events-calendar/
|
4 |
+
*/
|
5 |
+
class Brizy_Compatibilities_TheEventsCalendar {
|
6 |
+
|
7 |
+
public function __construct() {
|
8 |
+
add_action( 'wp_head', [ $this, 'wp_head' ], 99 );
|
9 |
+
add_action( 'loop_start', [ $this, 'loop_start' ], 999 );
|
10 |
+
}
|
11 |
+
|
12 |
+
public function wp_head() {
|
13 |
+
if ( $this->isEvent() ) {
|
14 |
+
remove_action( 'wp_head', [ 'Tribe__Events__Templates', 'maybeSpoofQuery' ], 100 );
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
public function loop_start() {
|
19 |
+
if ( $this->isEvent() ) {
|
20 |
+
add_action( 'tribe_events_views_v2_should_hijack_page_template', '__return_false' );
|
21 |
+
}
|
22 |
+
}
|
23 |
+
|
24 |
+
public function isEvent() {
|
25 |
+
|
26 |
+
if ( ! tribe_is_event_query() ) {
|
27 |
+
return false;
|
28 |
+
}
|
29 |
+
|
30 |
+
if ( isset( $_GET[ Brizy_Editor::prefix( '-edit' ) ] ) || isset( $_GET[ Brizy_Editor::prefix( '-edit-iframe' ) ] ) ) {
|
31 |
+
return true;
|
32 |
+
}
|
33 |
+
|
34 |
+
if ( Brizy_Editor_Entity::isBrizyEnabled( get_the_ID() ) || Brizy_Admin_Templates::getTemplate() ) {
|
35 |
+
return true;
|
36 |
+
}
|
37 |
+
|
38 |
+
return false;
|
39 |
+
}
|
40 |
+
}
|
config.php
CHANGED
@@ -47,6 +47,7 @@ class Brizy_Config {
|
|
47 |
const CLOUD_LAYOUTS = '/api/layouts';
|
48 |
const CLOUD_SCREENSHOT = '/screenshot/%s';
|
49 |
const CLOUD_SCREENSHOTS = '/api/screenshots';
|
|
|
50 |
const WP_HTTP_TIMEOUT = 30;
|
51 |
|
52 |
static public function getCompilerUrls() {
|
47 |
const CLOUD_LAYOUTS = '/api/layouts';
|
48 |
const CLOUD_SCREENSHOT = '/screenshot/%s';
|
49 |
const CLOUD_SCREENSHOTS = '/api/screenshots';
|
50 |
+
const CLOUD_CUSTOM_FILES = '/api/custom_files';
|
51 |
const WP_HTTP_TIMEOUT = 30;
|
52 |
|
53 |
static public function getCompilerUrls() {
|
editor/api.php
CHANGED
@@ -463,12 +463,13 @@ class Brizy_Editor_API extends Brizy_Admin_AbstractApi {
|
|
463 |
}
|
464 |
|
465 |
private function getPostSample( $templateId ) {
|
|
|
|
|
466 |
$wp_post = get_post( $templateId );
|
467 |
if ( $wp_post->post_type !== Brizy_Admin_Templates::CP_TEMPLATE ) {
|
468 |
return $wp_post;
|
469 |
}
|
470 |
|
471 |
-
|
472 |
$ruleManager = new Brizy_Admin_Rules_Manager();
|
473 |
$rules = $ruleManager->getRules( $wp_post->ID );
|
474 |
$rule = null;
|
@@ -504,7 +505,6 @@ class Brizy_Editor_API extends Brizy_Admin_AbstractApi {
|
|
504 |
} else {
|
505 |
return null;
|
506 |
}
|
507 |
-
return isset( $post[0] ) ? $post[0] : null;
|
508 |
}
|
509 |
|
510 |
$filter = $values[0];
|
@@ -536,36 +536,62 @@ class Brizy_Editor_API extends Brizy_Admin_AbstractApi {
|
|
536 |
} else {
|
537 |
return null;
|
538 |
}
|
539 |
-
|
540 |
case Brizy_Admin_Rule::TAXONOMY :
|
541 |
$args = array(
|
542 |
'taxonomy' => $rule->getEntityType(),
|
543 |
'hide_empty' => false,
|
544 |
);
|
|
|
545 |
if ( count( $rule->getEntityValues() ) ) {
|
546 |
$args['term_taxonomy_id'] = $rule->getEntityValues();
|
547 |
}
|
548 |
|
549 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
550 |
|
551 |
-
return array_pop( $array );
|
552 |
-
break;
|
553 |
case Brizy_Admin_Rule::ARCHIVE :
|
554 |
return null;
|
555 |
-
|
556 |
case Brizy_Admin_Rule::TEMPLATE :
|
557 |
|
558 |
switch ( $rule->getEntityType() ) {
|
559 |
case 'author':
|
560 |
$authors = get_users();
|
|
|
|
|
561 |
|
562 |
return array_pop( $authors );
|
563 |
-
break;
|
564 |
|
565 |
case '404':
|
|
|
|
|
|
|
|
|
566 |
case 'search':
|
|
|
|
|
|
|
567 |
return null;
|
568 |
-
|
569 |
case 'home_page':
|
570 |
$get_option = get_option( 'page_for_posts' );
|
571 |
|
@@ -583,6 +609,24 @@ class Brizy_Editor_API extends Brizy_Admin_AbstractApi {
|
|
583 |
}
|
584 |
|
585 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
586 |
}
|
587 |
|
588 |
}
|
463 |
}
|
464 |
|
465 |
private function getPostSample( $templateId ) {
|
466 |
+
global $wp_query;
|
467 |
+
|
468 |
$wp_post = get_post( $templateId );
|
469 |
if ( $wp_post->post_type !== Brizy_Admin_Templates::CP_TEMPLATE ) {
|
470 |
return $wp_post;
|
471 |
}
|
472 |
|
|
|
473 |
$ruleManager = new Brizy_Admin_Rules_Manager();
|
474 |
$rules = $ruleManager->getRules( $wp_post->ID );
|
475 |
$rule = null;
|
505 |
} else {
|
506 |
return null;
|
507 |
}
|
|
|
508 |
}
|
509 |
|
510 |
$filter = $values[0];
|
536 |
} else {
|
537 |
return null;
|
538 |
}
|
539 |
+
|
540 |
case Brizy_Admin_Rule::TAXONOMY :
|
541 |
$args = array(
|
542 |
'taxonomy' => $rule->getEntityType(),
|
543 |
'hide_empty' => false,
|
544 |
);
|
545 |
+
|
546 |
if ( count( $rule->getEntityValues() ) ) {
|
547 |
$args['term_taxonomy_id'] = $rule->getEntityValues();
|
548 |
}
|
549 |
|
550 |
+
$terms = get_terms( $args );
|
551 |
+
$term = array_pop( $terms );
|
552 |
+
|
553 |
+
if ( $term ) {
|
554 |
+
$wp_query = new WP_Query(
|
555 |
+
[
|
556 |
+
'tax_query' => [
|
557 |
+
[
|
558 |
+
'taxonomy' => $rule->getEntityType(),
|
559 |
+
'field' => 'term_id',
|
560 |
+
'terms' => $term->term_id,
|
561 |
+
]
|
562 |
+
]
|
563 |
+
]
|
564 |
+
);
|
565 |
+
|
566 |
+
$wp_query->is_tax = true;
|
567 |
+
}
|
568 |
+
|
569 |
+
return array_pop( $terms );
|
570 |
|
|
|
|
|
571 |
case Brizy_Admin_Rule::ARCHIVE :
|
572 |
return null;
|
573 |
+
|
574 |
case Brizy_Admin_Rule::TEMPLATE :
|
575 |
|
576 |
switch ( $rule->getEntityType() ) {
|
577 |
case 'author':
|
578 |
$authors = get_users();
|
579 |
+
$wp_query = new WP_Query( [ 'author_name' => get_userdata( get_current_user_id() )->data->user_nicename ] );
|
580 |
+
$wp_query->is_author = true;
|
581 |
|
582 |
return array_pop( $authors );
|
|
|
583 |
|
584 |
case '404':
|
585 |
+
$wp_query->is_404 = true;
|
586 |
+
|
587 |
+
return null;
|
588 |
+
|
589 |
case 'search':
|
590 |
+
|
591 |
+
$wp_query->is_search = true;
|
592 |
+
|
593 |
return null;
|
594 |
+
|
595 |
case 'home_page':
|
596 |
$get_option = get_option( 'page_for_posts' );
|
597 |
|
609 |
}
|
610 |
|
611 |
break;
|
612 |
+
case Brizy_Admin_Rule::YEAR_ARCHIVE:
|
613 |
+
|
614 |
+
$wp_query = new WP_Query( 'year=' . date( 'Y' ) );
|
615 |
+
$wp_query->is_year = true;
|
616 |
+
|
617 |
+
return null;
|
618 |
+
case Brizy_Admin_Rule::MONTH_ARCHIVE:
|
619 |
+
|
620 |
+
$wp_query = new WP_Query( 'year=' . date( 'Y' ) . '&monthnum=' . date( 'm' ) );
|
621 |
+
$wp_query->is_month = true;
|
622 |
+
|
623 |
+
return null;
|
624 |
+
case Brizy_Admin_Rule::DAY_ARCHIVE:
|
625 |
+
|
626 |
+
$wp_query = new WP_Query( 'year=' . date( 'Y' ) . '&monthnum=' . date( 'm' ) . '&day=' . date( 'd' ) );
|
627 |
+
$wp_query->is_day = true;
|
628 |
+
|
629 |
+
return null;
|
630 |
}
|
631 |
|
632 |
}
|
editor/asset/attachment-aware.php
CHANGED
@@ -18,10 +18,9 @@ trait Brizy_Editor_Asset_AttachmentAware {
|
|
18 |
"SELECT
|
19 |
{$posts_table}.ID
|
20 |
FROM {$posts_table}
|
21 |
-
|
22 |
-
WHERE
|
23 |
-
( {$meta_table}.meta_key = '
|
24 |
-
AND {$meta_table}.meta_value = %s )
|
25 |
AND {$posts_table}.post_type = 'attachment'
|
26 |
AND {$posts_table}.post_status = 'inherit'
|
27 |
GROUP BY {$posts_table}.ID
|
18 |
"SELECT
|
19 |
{$posts_table}.ID
|
20 |
FROM {$posts_table}
|
21 |
+
LEFT JOIN {$meta_table} ON ( {$posts_table}.ID = {$meta_table}.post_id )
|
22 |
+
WHERE
|
23 |
+
( {$meta_table}.meta_key = 'brizy_post_uid' AND {$meta_table}.meta_value = %s )
|
|
|
24 |
AND {$posts_table}.post_type = 'attachment'
|
25 |
AND {$posts_table}.post_status = 'inherit'
|
26 |
GROUP BY {$posts_table}.ID
|
editor/asset/static-file-trait.php
ADDED
@@ -0,0 +1,258 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
trait Brizy_Editor_Asset_StaticFileTrait {
|
4 |
+
|
5 |
+
public static function get_asset_content( $asset_source ) {
|
6 |
+
$http = new WP_Http();
|
7 |
+
$wp_response = null;
|
8 |
+
if ( is_string( $asset_source ) ) {
|
9 |
+
$wp_response = $http->request( $asset_source, array( 'timeout' => 30 ) );
|
10 |
+
} else {
|
11 |
+
foreach ( $asset_source as $url ) {
|
12 |
+
$wp_response = $http->request( $url, array( 'timeout' => 30 ) );
|
13 |
+
|
14 |
+
if ( is_wp_error( $wp_response ) ) {
|
15 |
+
Brizy_Logger::instance()->error( 'Unable to get media content', array( 'exception' => $wp_response ) );
|
16 |
+
continue;
|
17 |
+
}
|
18 |
+
|
19 |
+
break;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
|
23 |
+
$code = wp_remote_retrieve_response_code( $wp_response );
|
24 |
+
|
25 |
+
if ( is_wp_error( $wp_response ) || ! ( $code >= 200 && $code < 300 ) ) {
|
26 |
+
Brizy_Logger::instance()->error( 'Unable to get media content', array( 'exception' => $wp_response ) );
|
27 |
+
|
28 |
+
return false;
|
29 |
+
}
|
30 |
+
|
31 |
+
$content = wp_remote_retrieve_body( $wp_response );
|
32 |
+
|
33 |
+
return $content;
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* @param $asset_source
|
38 |
+
* @param $asset_path
|
39 |
+
*
|
40 |
+
* @return bool
|
41 |
+
*/
|
42 |
+
protected function store_file( $asset_source, $asset_path ) {
|
43 |
+
|
44 |
+
if ( file_exists( $asset_path ) ) {
|
45 |
+
return true;
|
46 |
+
}
|
47 |
+
|
48 |
+
try {
|
49 |
+
// check destination dir
|
50 |
+
$dir_path = dirname( $asset_path );
|
51 |
+
|
52 |
+
if ( ! file_exists( $dir_path ) ) {
|
53 |
+
if ( !file_exists( $dir_path ) && ! mkdir( $dir_path, 0755, true ) && ! is_dir( $dir_path ) ) {
|
54 |
+
throw new \RuntimeException( sprintf( 'Directory "%s" was not created', $dir_path ) );
|
55 |
+
}
|
56 |
+
}
|
57 |
+
|
58 |
+
$content = self::get_asset_content( $asset_source );
|
59 |
+
|
60 |
+
if ( $content !== false ) {
|
61 |
+
file_put_contents( $asset_path, $content );
|
62 |
+
} else {
|
63 |
+
return false;
|
64 |
+
}
|
65 |
+
|
66 |
+
} catch ( Exception $e ) {
|
67 |
+
// clean up
|
68 |
+
if ( $asset_path ) {
|
69 |
+
@unlink( $asset_path );
|
70 |
+
}
|
71 |
+
|
72 |
+
return false;
|
73 |
+
}
|
74 |
+
|
75 |
+
return true;
|
76 |
+
}
|
77 |
+
|
78 |
+
protected function create_attachment( $madia_name, $absolute_asset_path, $relative_asset_path, $post_id = null, $uid = null ) {
|
79 |
+
$filetype = wp_check_filetype( $absolute_asset_path );
|
80 |
+
|
81 |
+
$upload_path = wp_upload_dir();
|
82 |
+
|
83 |
+
$attachment = array(
|
84 |
+
'guid' => $upload_path['baseurl'] . "/" . $relative_asset_path,
|
85 |
+
'post_mime_type' => $filetype['type'],
|
86 |
+
'post_title' => basename( $absolute_asset_path ),
|
87 |
+
'post_content' => '',
|
88 |
+
'post_status' => 'inherit'
|
89 |
+
);
|
90 |
+
|
91 |
+
$attachment_id = wp_insert_attachment( $attachment, $relative_asset_path, $post_id );
|
92 |
+
|
93 |
+
if ( is_wp_error( $attachment_id ) || $attachment_id === 0 ) {
|
94 |
+
return false;
|
95 |
+
}
|
96 |
+
|
97 |
+
update_post_meta( $attachment_id, 'brizy_attachment_uid', $uid ? $uid : md5( $attachment_id . time() ) );
|
98 |
+
|
99 |
+
if ( ! function_exists( 'wp_generate_attachment_metadata' ) ) {
|
100 |
+
include_once ABSPATH . "/wp-admin/includes/image.php";
|
101 |
+
}
|
102 |
+
|
103 |
+
$attach_data = wp_generate_attachment_metadata( $attachment_id, $absolute_asset_path );
|
104 |
+
wp_update_attachment_metadata( $attachment_id, $attach_data );
|
105 |
+
|
106 |
+
return $attachment_id;
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* @param $attachmentId
|
111 |
+
* @param $post_id
|
112 |
+
* @param $madia_name
|
113 |
+
*
|
114 |
+
* @return bool
|
115 |
+
* @throws Brizy_Editor_Exceptions_NotFound
|
116 |
+
*/
|
117 |
+
public function attach_to_post( $attachmentId, $post_id, $madia_name ) {
|
118 |
+
|
119 |
+
if ( ! $post_id ) {
|
120 |
+
return false;
|
121 |
+
}
|
122 |
+
$bpost = Brizy_Editor_Post::get( $post_id );
|
123 |
+
|
124 |
+
update_post_meta( $attachmentId, 'brizy_post_uid', $bpost->getUid() );
|
125 |
+
|
126 |
+
return $attachmentId;
|
127 |
+
}
|
128 |
+
|
129 |
+
/**
|
130 |
+
* @param $filename
|
131 |
+
* @param array $headers
|
132 |
+
*/
|
133 |
+
public function send_file( $filename, $headers = array() ) {
|
134 |
+
if ( file_exists( $filename ) ) {
|
135 |
+
|
136 |
+
$defaultHeaders = array(
|
137 |
+
'Content-Type' => $this->get_mime( $filename, 1 ),
|
138 |
+
'Cache-Control' => 'max-age=600'
|
139 |
+
);
|
140 |
+
|
141 |
+
$content = file_get_contents( $filename );
|
142 |
+
|
143 |
+
// send headers
|
144 |
+
$headers = array_merge( $defaultHeaders, $headers );
|
145 |
+
|
146 |
+
foreach ( $headers as $key => $val ) {
|
147 |
+
if ( is_array( $val ) ) {
|
148 |
+
$val = implode( ', ', $val );
|
149 |
+
}
|
150 |
+
|
151 |
+
header( "{$key}: {$val}" );
|
152 |
+
}
|
153 |
+
// send file content
|
154 |
+
echo $content;
|
155 |
+
exit;
|
156 |
+
} else {
|
157 |
+
global $wp_query;
|
158 |
+
$wp_query->set_404();
|
159 |
+
|
160 |
+
return;
|
161 |
+
}
|
162 |
+
|
163 |
+
}
|
164 |
+
|
165 |
+
/**
|
166 |
+
* @param $filename
|
167 |
+
* @param int $mode
|
168 |
+
*
|
169 |
+
* @return mixed|string
|
170 |
+
*/
|
171 |
+
protected function get_mime( $filename, $mode = 0 ) {
|
172 |
+
|
173 |
+
// mode 0 = full check
|
174 |
+
// mode 1 = extension check only
|
175 |
+
|
176 |
+
$mime_types = array(
|
177 |
+
|
178 |
+
'txt' => 'text/plain',
|
179 |
+
'htm' => 'text/html',
|
180 |
+
'html' => 'text/html',
|
181 |
+
'php' => 'text/html',
|
182 |
+
'css' => 'text/css',
|
183 |
+
'js' => 'application/javascript',
|
184 |
+
'json' => 'application/json',
|
185 |
+
'xml' => 'application/xml',
|
186 |
+
'swf' => 'application/x-shockwave-flash',
|
187 |
+
'flv' => 'video/x-flv',
|
188 |
+
|
189 |
+
// images
|
190 |
+
'png' => 'image/png',
|
191 |
+
'jpe' => 'image/jpeg',
|
192 |
+
'jpeg' => 'image/jpeg',
|
193 |
+
'jpg' => 'image/jpeg',
|
194 |
+
'gif' => 'image/gif',
|
195 |
+
'bmp' => 'image/bmp',
|
196 |
+
'ico' => 'image/vnd.microsoft.icon',
|
197 |
+
'tiff' => 'image/tiff',
|
198 |
+
'tif' => 'image/tiff',
|
199 |
+
'svg' => 'image/svg+xml',
|
200 |
+
'svgz' => 'image/svg+xml',
|
201 |
+
'webp' => 'image/webp',
|
202 |
+
|
203 |
+
// archives
|
204 |
+
'zip' => 'application/zip',
|
205 |
+
'rar' => 'application/x-rar-compressed',
|
206 |
+
'exe' => 'application/x-msdownload',
|
207 |
+
'msi' => 'application/x-msdownload',
|
208 |
+
'cab' => 'application/vnd.ms-cab-compressed',
|
209 |
+
|
210 |
+
// audio/video
|
211 |
+
'mp3' => 'audio/mpeg',
|
212 |
+
'qt' => 'video/quicktime',
|
213 |
+
'mov' => 'video/quicktime',
|
214 |
+
|
215 |
+
// adobe
|
216 |
+
'pdf' => 'application/pdf',
|
217 |
+
'psd' => 'image/vnd.adobe.photoshop',
|
218 |
+
'ai' => 'application/postscript',
|
219 |
+
'eps' => 'application/postscript',
|
220 |
+
'ps' => 'application/postscript',
|
221 |
+
|
222 |
+
// ms office
|
223 |
+
'doc' => 'application/msword',
|
224 |
+
'rtf' => 'application/rtf',
|
225 |
+
'xls' => 'application/vnd.ms-excel',
|
226 |
+
'ppt' => 'application/vnd.ms-powerpoint',
|
227 |
+
'docx' => 'application/msword',
|
228 |
+
'xlsx' => 'application/vnd.ms-excel',
|
229 |
+
'pptx' => 'application/vnd.ms-powerpoint',
|
230 |
+
|
231 |
+
|
232 |
+
// open office
|
233 |
+
'odt' => 'application/vnd.oasis.opendocument.text',
|
234 |
+
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
|
235 |
+
);
|
236 |
+
|
237 |
+
$array = explode( '.', $filename );
|
238 |
+
$str = end( $array );
|
239 |
+
$ext = strtolower( $str );
|
240 |
+
|
241 |
+
if ( function_exists( 'mime_content_type' ) && $mode == 0 ) {
|
242 |
+
$mimetype = mime_content_type( $filename );
|
243 |
+
|
244 |
+
return $mimetype;
|
245 |
+
|
246 |
+
} elseif ( function_exists( 'finfo_open' ) && $mode == 0 ) {
|
247 |
+
$finfo = finfo_open( FILEINFO_MIME );
|
248 |
+
$mimetype = finfo_file( $finfo, $filename );
|
249 |
+
finfo_close( $finfo );
|
250 |
+
|
251 |
+
return $mimetype;
|
252 |
+
} elseif ( array_key_exists( $ext, $mime_types ) ) {
|
253 |
+
return $mime_types[ $ext ];
|
254 |
+
} else {
|
255 |
+
return 'application/octet-stream';
|
256 |
+
}
|
257 |
+
}
|
258 |
+
}
|
editor/asset/static-file.php
CHANGED
@@ -2,256 +2,5 @@
|
|
2 |
|
3 |
abstract class Brizy_Editor_Asset_StaticFile {
|
4 |
|
5 |
-
|
6 |
-
$http = new WP_Http();
|
7 |
-
$wp_response = null;
|
8 |
-
if ( is_string( $asset_source ) ) {
|
9 |
-
$wp_response = $http->request( $asset_source, array( 'timeout' => 30 ) );
|
10 |
-
} else {
|
11 |
-
foreach ( $asset_source as $url ) {
|
12 |
-
$wp_response = $http->request( $url, array( 'timeout' => 30 ) );
|
13 |
-
|
14 |
-
if ( is_wp_error( $wp_response ) ) {
|
15 |
-
Brizy_Logger::instance()->error( 'Unable to get media content', array( 'exception' => $wp_response ) );
|
16 |
-
continue;
|
17 |
-
}
|
18 |
-
|
19 |
-
break;
|
20 |
-
}
|
21 |
-
}
|
22 |
-
|
23 |
-
$code = wp_remote_retrieve_response_code( $wp_response );
|
24 |
-
|
25 |
-
if ( is_wp_error( $wp_response ) || ! ( $code >= 200 && $code < 300 ) ) {
|
26 |
-
Brizy_Logger::instance()->error( 'Unable to get media content', array( 'exception' => $wp_response ) );
|
27 |
-
|
28 |
-
return false;
|
29 |
-
}
|
30 |
-
|
31 |
-
$content = wp_remote_retrieve_body( $wp_response );
|
32 |
-
|
33 |
-
return $content;
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* @param $asset_source
|
38 |
-
* @param $asset_path
|
39 |
-
*
|
40 |
-
* @return bool
|
41 |
-
*/
|
42 |
-
protected function store_file( $asset_source, $asset_path ) {
|
43 |
-
|
44 |
-
if ( file_exists( $asset_path ) ) {
|
45 |
-
return true;
|
46 |
-
}
|
47 |
-
|
48 |
-
try {
|
49 |
-
// check destination dir
|
50 |
-
$dir_path = dirname( $asset_path );
|
51 |
-
|
52 |
-
if ( ! file_exists( $dir_path ) ) {
|
53 |
-
if ( !file_exists( $dir_path ) && ! mkdir( $dir_path, 0755, true ) && ! is_dir( $dir_path ) ) {
|
54 |
-
throw new \RuntimeException( sprintf( 'Directory "%s" was not created', $dir_path ) );
|
55 |
-
}
|
56 |
-
}
|
57 |
-
|
58 |
-
$content = self::get_asset_content( $asset_source );
|
59 |
-
|
60 |
-
if ( $content !== false ) {
|
61 |
-
file_put_contents( $asset_path, $content );
|
62 |
-
} else {
|
63 |
-
return false;
|
64 |
-
}
|
65 |
-
|
66 |
-
} catch ( Exception $e ) {
|
67 |
-
// clean up
|
68 |
-
if ( $asset_path ) {
|
69 |
-
@unlink( $asset_path );
|
70 |
-
}
|
71 |
-
|
72 |
-
return false;
|
73 |
-
}
|
74 |
-
|
75 |
-
return true;
|
76 |
-
}
|
77 |
-
|
78 |
-
protected function create_attachment( $madia_name, $absolute_asset_path, $relative_asset_path, $post_id = null, $uid = null ) {
|
79 |
-
$filetype = wp_check_filetype( $absolute_asset_path );
|
80 |
-
|
81 |
-
$upload_path = wp_upload_dir();
|
82 |
-
|
83 |
-
$attachment = array(
|
84 |
-
'guid' => $upload_path['baseurl'] . "/" . $relative_asset_path,
|
85 |
-
'post_mime_type' => $filetype['type'],
|
86 |
-
'post_title' => basename( $absolute_asset_path ),
|
87 |
-
'post_content' => '',
|
88 |
-
'post_status' => 'inherit'
|
89 |
-
);
|
90 |
-
|
91 |
-
$attachment_id = wp_insert_attachment( $attachment, $relative_asset_path, $post_id );
|
92 |
-
|
93 |
-
if ( is_wp_error( $attachment_id ) || $attachment_id === 0 ) {
|
94 |
-
return false;
|
95 |
-
}
|
96 |
-
|
97 |
-
update_post_meta( $attachment_id, 'brizy_attachment_uid', $uid ? $uid : md5( $attachment_id . time() ) );
|
98 |
-
|
99 |
-
if ( ! function_exists( 'wp_generate_attachment_metadata' ) ) {
|
100 |
-
include_once ABSPATH . "/wp-admin/includes/image.php";
|
101 |
-
}
|
102 |
-
|
103 |
-
$attach_data = wp_generate_attachment_metadata( $attachment_id, $absolute_asset_path );
|
104 |
-
wp_update_attachment_metadata( $attachment_id, $attach_data );
|
105 |
-
|
106 |
-
return $attachment_id;
|
107 |
-
}
|
108 |
-
|
109 |
-
/**
|
110 |
-
* @param $attachmentId
|
111 |
-
* @param $post_id
|
112 |
-
* @param $madia_name
|
113 |
-
*
|
114 |
-
* @return bool
|
115 |
-
* @throws Brizy_Editor_Exceptions_NotFound
|
116 |
-
*/
|
117 |
-
public function attach_to_post( $attachmentId, $post_id, $madia_name ) {
|
118 |
-
|
119 |
-
if ( ! $post_id ) {
|
120 |
-
return false;
|
121 |
-
}
|
122 |
-
$bpost = Brizy_Editor_Post::get( $post_id );
|
123 |
-
|
124 |
-
update_post_meta( $attachmentId, 'brizy_post_uid', $bpost->getUid() );
|
125 |
-
|
126 |
-
return $attachmentId;
|
127 |
-
}
|
128 |
-
|
129 |
-
/**
|
130 |
-
* @param $filename
|
131 |
-
* @param array $headers
|
132 |
-
*/
|
133 |
-
public function send_file( $filename, $headers = array() ) {
|
134 |
-
if ( file_exists( $filename ) ) {
|
135 |
-
|
136 |
-
$defaultHeaders = array(
|
137 |
-
'Content-Type' => $this->get_mime( $filename, 1 ),
|
138 |
-
'Cache-Control' => 'max-age=600'
|
139 |
-
);
|
140 |
-
|
141 |
-
$content = file_get_contents( $filename );
|
142 |
-
|
143 |
-
// send headers
|
144 |
-
$headers = array_merge( $defaultHeaders, $headers );
|
145 |
-
|
146 |
-
foreach ( $headers as $key => $val ) {
|
147 |
-
if ( is_array( $val ) ) {
|
148 |
-
$val = implode( ', ', $val );
|
149 |
-
}
|
150 |
-
|
151 |
-
header( "{$key}: {$val}" );
|
152 |
-
}
|
153 |
-
// send file content
|
154 |
-
echo $content;
|
155 |
-
exit;
|
156 |
-
} else {
|
157 |
-
global $wp_query;
|
158 |
-
$wp_query->set_404();
|
159 |
-
|
160 |
-
return;
|
161 |
-
}
|
162 |
-
|
163 |
-
}
|
164 |
-
|
165 |
-
/**
|
166 |
-
* @param $filename
|
167 |
-
* @param int $mode
|
168 |
-
*
|
169 |
-
* @return mixed|string
|
170 |
-
*/
|
171 |
-
protected function get_mime( $filename, $mode = 0 ) {
|
172 |
-
|
173 |
-
// mode 0 = full check
|
174 |
-
// mode 1 = extension check only
|
175 |
-
|
176 |
-
$mime_types = array(
|
177 |
-
|
178 |
-
'txt' => 'text/plain',
|
179 |
-
'htm' => 'text/html',
|
180 |
-
'html' => 'text/html',
|
181 |
-
'php' => 'text/html',
|
182 |
-
'css' => 'text/css',
|
183 |
-
'js' => 'application/javascript',
|
184 |
-
'json' => 'application/json',
|
185 |
-
'xml' => 'application/xml',
|
186 |
-
'swf' => 'application/x-shockwave-flash',
|
187 |
-
'flv' => 'video/x-flv',
|
188 |
-
|
189 |
-
// images
|
190 |
-
'png' => 'image/png',
|
191 |
-
'jpe' => 'image/jpeg',
|
192 |
-
'jpeg' => 'image/jpeg',
|
193 |
-
'jpg' => 'image/jpeg',
|
194 |
-
'gif' => 'image/gif',
|
195 |
-
'bmp' => 'image/bmp',
|
196 |
-
'ico' => 'image/vnd.microsoft.icon',
|
197 |
-
'tiff' => 'image/tiff',
|
198 |
-
'tif' => 'image/tiff',
|
199 |
-
'svg' => 'image/svg+xml',
|
200 |
-
'svgz' => 'image/svg+xml',
|
201 |
-
|
202 |
-
// archives
|
203 |
-
'zip' => 'application/zip',
|
204 |
-
'rar' => 'application/x-rar-compressed',
|
205 |
-
'exe' => 'application/x-msdownload',
|
206 |
-
'msi' => 'application/x-msdownload',
|
207 |
-
'cab' => 'application/vnd.ms-cab-compressed',
|
208 |
-
|
209 |
-
// audio/video
|
210 |
-
'mp3' => 'audio/mpeg',
|
211 |
-
'qt' => 'video/quicktime',
|
212 |
-
'mov' => 'video/quicktime',
|
213 |
-
|
214 |
-
// adobe
|
215 |
-
'pdf' => 'application/pdf',
|
216 |
-
'psd' => 'image/vnd.adobe.photoshop',
|
217 |
-
'ai' => 'application/postscript',
|
218 |
-
'eps' => 'application/postscript',
|
219 |
-
'ps' => 'application/postscript',
|
220 |
-
|
221 |
-
// ms office
|
222 |
-
'doc' => 'application/msword',
|
223 |
-
'rtf' => 'application/rtf',
|
224 |
-
'xls' => 'application/vnd.ms-excel',
|
225 |
-
'ppt' => 'application/vnd.ms-powerpoint',
|
226 |
-
'docx' => 'application/msword',
|
227 |
-
'xlsx' => 'application/vnd.ms-excel',
|
228 |
-
'pptx' => 'application/vnd.ms-powerpoint',
|
229 |
-
|
230 |
-
|
231 |
-
// open office
|
232 |
-
'odt' => 'application/vnd.oasis.opendocument.text',
|
233 |
-
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
|
234 |
-
);
|
235 |
-
|
236 |
-
$array = explode( '.', $filename );
|
237 |
-
$str = end( $array );
|
238 |
-
$ext = strtolower( $str );
|
239 |
-
|
240 |
-
if ( function_exists( 'mime_content_type' ) && $mode == 0 ) {
|
241 |
-
$mimetype = mime_content_type( $filename );
|
242 |
-
|
243 |
-
return $mimetype;
|
244 |
-
|
245 |
-
} elseif ( function_exists( 'finfo_open' ) && $mode == 0 ) {
|
246 |
-
$finfo = finfo_open( FILEINFO_MIME );
|
247 |
-
$mimetype = finfo_file( $finfo, $filename );
|
248 |
-
finfo_close( $finfo );
|
249 |
-
|
250 |
-
return $mimetype;
|
251 |
-
} elseif ( array_key_exists( $ext, $mime_types ) ) {
|
252 |
-
return $mime_types[ $ext ];
|
253 |
-
} else {
|
254 |
-
return 'application/octet-stream';
|
255 |
-
}
|
256 |
-
}
|
257 |
}
|
2 |
|
3 |
abstract class Brizy_Editor_Asset_StaticFile {
|
4 |
|
5 |
+
use Brizy_Editor_Asset_StaticFileTrait;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
}
|
editor/block.php
CHANGED
@@ -403,4 +403,19 @@ class Brizy_Editor_Block extends Brizy_Editor_Post {
|
|
403 |
update_metadata( 'post', $this->getWpPostId(), self::BRIZY_MEDIA, $this->media );
|
404 |
}
|
405 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
406 |
}
|
403 |
update_metadata( 'post', $this->getWpPostId(), self::BRIZY_MEDIA, $this->media );
|
404 |
}
|
405 |
|
406 |
+
/**
|
407 |
+
* @return $this|Brizy_Editor_Block
|
408 |
+
* @throws Brizy_Editor_Exceptions_DataVersionMismatch
|
409 |
+
*/
|
410 |
+
protected function saveDataVersion()
|
411 |
+
{
|
412 |
+
// cyheck data version except for global blocks
|
413 |
+
// issue: #14271
|
414 |
+
if(Brizy_Admin_Blocks_Main::CP_GLOBAL !== $this->getWpPost()->post_type) {
|
415 |
+
parent::saveDataVersion();
|
416 |
+
}
|
417 |
+
|
418 |
+
return $this;
|
419 |
+
}
|
420 |
+
|
421 |
}
|
editor/editor/editor.php
CHANGED
@@ -1,132 +1,136 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class Brizy_Editor_Editor_Editor
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
|
|
|
|
|
|
|
|
130 |
|
131 |
'support' =>
|
132 |
__bt( 'support-url', apply_filters( 'brizy_support_url', Brizy_Config::SUPPORT_URL )
|
@@ -159,314 +163,369 @@ class Brizy_Editor_Editor_Editor {
|
|
159 |
'l10n' => $this->getTexts(),
|
160 |
'pageData' => apply_filters( 'brizy_page_data', array() ),
|
161 |
'availableRoles' => $this->roleList()
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
pm.*
|
200 |
FROM
|
201 |
{$wpdb->prefix}postmeta pm
|
202 |
JOIN {$wpdb->prefix}postmeta pm2 ON pm2.post_id=pm.post_id AND pm2.meta_key='brizy_post_uid' AND pm2.meta_value=%s
|
203 |
WHERE pm.meta_key='brizy_attachment_uid'
|
204 |
GROUP BY pm.post_id",
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
|
471 |
$item_value = array(
|
472 |
'id' => $menu_uid,
|
@@ -485,491 +544,522 @@ class Brizy_Editor_Editor_Editor {
|
|
485 |
'xfn' => get_post_meta( $item->ID, '_menu_item_xfn', true ),
|
486 |
);
|
487 |
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
}
|
608 |
-
|
609 |
-
return $roles;
|
610 |
-
}
|
611 |
-
|
612 |
-
private function getOneArchiveLink( $args = '' ) {
|
613 |
-
global $wpdb, $wp_locale;
|
614 |
-
|
615 |
-
$defaults = array(
|
616 |
-
'type' => 'monthly',
|
617 |
-
'limit' => '',
|
618 |
-
'order' => 'DESC',
|
619 |
-
'post_type' => 'post',
|
620 |
-
'year' => get_query_var( 'year' ),
|
621 |
-
'monthnum' => get_query_var( 'monthnum' ),
|
622 |
-
'day' => get_query_var( 'day' ),
|
623 |
-
'w' => get_query_var( 'w' ),
|
624 |
-
);
|
625 |
-
|
626 |
-
$r = wp_parse_args( $args, $defaults );
|
627 |
-
|
628 |
-
$post_type_object = get_post_type_object( $r['post_type'] );
|
629 |
-
if ( ! is_post_type_viewable( $post_type_object ) ) {
|
630 |
-
return;
|
631 |
}
|
632 |
-
$r['post_type'] = $post_type_object->name;
|
633 |
|
634 |
-
|
635 |
-
$
|
636 |
-
|
637 |
-
|
638 |
-
if ( ! empty( $r['limit'] ) ) {
|
639 |
-
$r['limit'] = absint( $r['limit'] );
|
640 |
-
$r['limit'] = ' LIMIT ' . $r['limit'];
|
641 |
-
}
|
642 |
-
|
643 |
-
$order = strtoupper( $r['order'] );
|
644 |
-
if ( $order !== 'ASC' ) {
|
645 |
-
$order = 'DESC';
|
646 |
-
}
|
647 |
-
|
648 |
-
// this is what will separate dates on weekly archive links
|
649 |
-
$archive_week_separator = '–';
|
650 |
-
|
651 |
-
$sql_where = $wpdb->prepare( "WHERE post_type = %s AND post_status = 'publish'", $r['post_type'] );
|
652 |
-
|
653 |
-
/**
|
654 |
-
* Filters the SQL WHERE clause for retrieving archives.
|
655 |
-
*
|
656 |
-
* @param string $sql_where Portion of SQL query containing the WHERE clause.
|
657 |
-
* @param array $r An array of default arguments.
|
658 |
-
*
|
659 |
-
* @since 2.2.0
|
660 |
-
*
|
661 |
-
*/
|
662 |
-
$where = apply_filters( 'getarchives_where', $sql_where, $r );
|
663 |
-
|
664 |
-
/**
|
665 |
-
* Filters the SQL JOIN clause for retrieving archives.
|
666 |
-
*
|
667 |
-
* @param string $sql_join Portion of SQL query containing JOIN clause.
|
668 |
-
* @param array $r An array of default arguments.
|
669 |
-
*
|
670 |
-
* @since 2.2.0
|
671 |
-
*
|
672 |
-
*/
|
673 |
-
$join = apply_filters( 'getarchives_join', '', $r );
|
674 |
-
|
675 |
-
$output = '';
|
676 |
-
|
677 |
-
$last_changed = wp_cache_get_last_changed( 'posts' );
|
678 |
-
|
679 |
-
$limit = $r['limit'];
|
680 |
-
|
681 |
-
if ( 'monthly' == $r['type'] ) {
|
682 |
-
$query = "SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM $wpdb->posts $join $where GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date $order $limit";
|
683 |
-
$key = md5( $query );
|
684 |
-
$key = "wp_get_archives:$key:$last_changed";
|
685 |
-
if ( ! $results = wp_cache_get( $key, 'posts' ) ) {
|
686 |
-
$results = $wpdb->get_results( $query );
|
687 |
-
wp_cache_set( $key, $results, 'posts' );
|
688 |
-
}
|
689 |
-
if ( $results ) {
|
690 |
-
foreach ( (array) $results as $result ) {
|
691 |
-
$url = get_month_link( $result->year, $result->month );
|
692 |
-
if ( 'post' !== $r['post_type'] ) {
|
693 |
-
$url = add_query_arg( 'post_type', $r['post_type'], $url );
|
694 |
-
}
|
695 |
-
|
696 |
-
return $url;
|
697 |
-
}
|
698 |
-
}
|
699 |
-
}
|
700 |
-
}
|
701 |
-
|
702 |
-
/**
|
703 |
-
* @return string
|
704 |
-
* @throws Exception
|
705 |
-
*/
|
706 |
-
private function getTexts() {
|
707 |
-
if ( BRIZY_DEVELOPMENT ) {
|
708 |
-
$brizy_public_editor_build_texts = '\Brizy_Public_EditorBuild_Dev_Texts';
|
709 |
-
} else {
|
710 |
-
$version = '';
|
711 |
-
foreach ( explode( '-', BRIZY_EDITOR_VERSION ) as $tmp ) {
|
712 |
-
$version .= ucfirst( $tmp );
|
713 |
-
}
|
714 |
-
$brizy_public_editor_build_texts = '\Brizy_Public_EditorBuild_' . $version . '_Texts';
|
715 |
-
}
|
716 |
-
|
717 |
-
if ( ! class_exists( $brizy_public_editor_build_texts ) ) {
|
718 |
-
if ( BRIZY_DEVELOPMENT ) {
|
719 |
-
throw new \Exception( 'You must build the editor first.' );
|
720 |
-
} else {
|
721 |
-
throw new \Exception( 'Unable to find class ' . $brizy_public_editor_build_texts );
|
722 |
-
}
|
723 |
-
}
|
724 |
-
|
725 |
-
return (object) $brizy_public_editor_build_texts::get_editor_texts();
|
726 |
-
}
|
727 |
-
|
728 |
-
private function addTemplateFields( $config, $is_template, $wp_post_id ) {
|
729 |
-
|
730 |
-
$template_rules = [];
|
731 |
-
if ( $is_template ) {
|
732 |
-
$rule_manager = new Brizy_Admin_Rules_Manager();
|
733 |
-
$template_rules = $rule_manager->getRules( $wp_post_id );
|
734 |
-
$config['template_type'] = $this->getTemplateType( $template_rules );
|
735 |
-
}
|
736 |
-
|
737 |
-
$config['wp']['ruleMatches'] = $this->getTemplateRuleMatches( $is_template, $wp_post_id, $template_rules );
|
738 |
-
|
739 |
-
return $config;
|
740 |
-
}
|
741 |
-
|
742 |
-
/**
|
743 |
-
* @param $isTemplate
|
744 |
-
* @param $wpPostId
|
745 |
-
* @param $templateRules
|
746 |
-
*
|
747 |
-
* @return array
|
748 |
-
*/
|
749 |
-
private function getTemplateRuleMatches( $isTemplate, $wpPostId, $templateRules ) {
|
750 |
-
|
751 |
-
$ruleMatches = array();
|
752 |
-
|
753 |
-
if ( $isTemplate ) {
|
754 |
-
|
755 |
-
foreach ( $templateRules as $rule ) {
|
756 |
-
/**
|
757 |
-
* @var Brizy_Admin_Rule $rule ;
|
758 |
-
*/
|
759 |
-
$ruleMatches[] = array(
|
760 |
-
'type' => $rule->getType(),
|
761 |
-
'group' => $rule->getAppliedFor(),
|
762 |
-
'entityType' => $rule->getEntityType(),
|
763 |
-
'values' => $rule->getEntityValues(),
|
764 |
-
);
|
765 |
}
|
766 |
-
} else {
|
767 |
-
$ruleMatches[] = array(
|
768 |
-
'type' => Brizy_Admin_Rule::TYPE_INCLUDE,
|
769 |
-
'group' => Brizy_Admin_Rule::POSTS,
|
770 |
-
'entityType' => $this->post->getWpPost()->post_type,
|
771 |
-
'values' => array( $wpPostId ),
|
772 |
-
);
|
773 |
-
}
|
774 |
-
|
775 |
-
return $ruleMatches;
|
776 |
-
}
|
777 |
-
|
778 |
-
|
779 |
-
/**
|
780 |
-
*
|
781 |
-
* @param $template_rules
|
782 |
-
*/
|
783 |
-
private function getTemplateType( $template_rules ) {
|
784 |
-
foreach ( $template_rules as $rule ) {
|
785 |
|
786 |
-
|
787 |
-
continue;
|
788 |
-
}
|
789 |
-
|
790 |
-
// single mode
|
791 |
-
if ( $rule->getAppliedFor() == Brizy_Admin_Rule::POSTS ) {
|
792 |
-
if ( $rule->getEntityType() == 'product' ) {
|
793 |
-
return 'product';
|
794 |
-
} else {
|
795 |
-
return 'single';
|
796 |
-
}
|
797 |
-
}
|
798 |
|
|
|
|
|
799 |
|
800 |
-
|
801 |
-
if (
|
802 |
-
|
803 |
-
return 'single';
|
804 |
-
}
|
805 |
-
|
806 |
-
if ( in_array( $rule->getEntityType(), [ 'search', 'author', 'home_page' ] ) ) {
|
807 |
-
return 'archive';
|
808 |
-
}
|
809 |
}
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
921 |
'getTerms' => $pref . Brizy_Editor_API::AJAX_GET_TERMS,
|
922 |
'getPostObjects' => $pref . Brizy_Editor_API::AJAX_GET_POST_OBJECTS, // ???
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
|
|
961 |
|
962 |
|
963 |
$response = array(
|
964 |
'isSyncAllowed' => true,
|
965 |
);
|
966 |
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
|
973 |
-
|
974 |
-
|
975 |
}
|
1 |
<?php
|
2 |
|
3 |
+
class Brizy_Editor_Editor_Editor
|
4 |
+
{
|
5 |
+
|
6 |
+
/**
|
7 |
+
* @var self
|
8 |
+
*/
|
9 |
+
static private $insance;
|
10 |
+
|
11 |
+
/**
|
12 |
+
* @var array
|
13 |
+
*/
|
14 |
+
static private $config;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* @var Brizy_Editor_Post
|
18 |
+
*/
|
19 |
+
private $post;
|
20 |
+
|
21 |
+
/**
|
22 |
+
* @var Brizy_Editor_Project
|
23 |
+
*/
|
24 |
+
private $project;
|
25 |
+
|
26 |
+
/**
|
27 |
+
* @var Brizy_Editor_UrlBuilder
|
28 |
+
*/
|
29 |
+
private $urlBuilder;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* @param Brizy_Editor_Project $project
|
33 |
+
* @param Brizy_Editor_Post $post
|
34 |
+
*
|
35 |
+
* @return Brizy_Editor_Editor_Editor
|
36 |
+
*/
|
37 |
+
public static function get(Brizy_Editor_Project $project, Brizy_Editor_Post $post)
|
38 |
+
{
|
39 |
+
|
40 |
+
$postId = $post && $post->getWpPostId() ? $post->getWpPostId() : 0;
|
41 |
+
if (isset(self::$insance[$postId])) {
|
42 |
+
return self::$insance[$postId];
|
43 |
+
}
|
44 |
+
|
45 |
+
return self::$insance[$postId] = new self($project, $post);
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Brizy_Editor_Editor_Editor constructor.
|
50 |
+
*
|
51 |
+
* @param Brizy_Editor_Project $project
|
52 |
+
* @param Brizy_Editor_Post $post
|
53 |
+
*/
|
54 |
+
public function __construct(Brizy_Editor_Project $project, Brizy_Editor_Post $post = null)
|
55 |
+
{
|
56 |
+
$this->post = $post;
|
57 |
+
$this->project = $project;
|
58 |
+
$this->urlBuilder = new Brizy_Editor_UrlBuilder($project, $post ? $post->getWpPostId() : null);
|
59 |
+
}
|
60 |
+
|
61 |
+
private function getMode($postType)
|
62 |
+
{
|
63 |
+
switch ($postType) {
|
64 |
+
case Brizy_Admin_Stories_Main::CP_STORY:
|
65 |
+
return 'internal_story';
|
66 |
+
case Brizy_Admin_Templates::CP_TEMPLATE:
|
67 |
+
return 'template';
|
68 |
+
case Brizy_Admin_Popups_Main::CP_POPUP:
|
69 |
+
return 'internal_popup';
|
70 |
+
case 'product':
|
71 |
+
case 'product_variation':
|
72 |
+
return 'product';
|
73 |
+
default:
|
74 |
+
return 'page';
|
75 |
+
}
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* @throws Exception
|
80 |
+
*/
|
81 |
+
public function config()
|
82 |
+
{
|
83 |
+
|
84 |
+
$cachePostId = $this->post ? $this->post->getWpPostId() : 0;
|
85 |
+
if (isset(self::$config[$cachePostId])) {
|
86 |
+
return self::$config[$cachePostId];
|
87 |
+
}
|
88 |
+
|
89 |
+
global $wp_registered_sidebars;
|
90 |
+
|
91 |
+
$wp_post_id = null;
|
92 |
+
$preview_post_link = null;
|
93 |
+
$change_template_url = null;
|
94 |
+
|
95 |
+
$parent_post_type = get_post_type($this->post->getWpPostId());
|
96 |
+
$wp_post_id = $this->post->getWpPostId();
|
97 |
+
$preview_post_link = $this->getPreviewUrl($this->post->getWpPost());
|
98 |
+
|
99 |
+
$change_template_url = set_url_scheme(
|
100 |
+
admin_url('admin-post.php?post=' . $this->post->getWpPostId() . '&action=_brizy_change_template')
|
101 |
+
);
|
102 |
+
$mode = $this->getMode($parent_post_type);
|
103 |
+
|
104 |
+
$heartBeatInterval = (int)apply_filters('wp_check_post_lock_window', 150);
|
105 |
+
$config = array(
|
106 |
+
'user' => array(
|
107 |
+
'role' => 'admin',
|
108 |
+
'isAuthorized' => $this->project->getMetaValue('brizy-cloud-token') !== null,
|
109 |
+
),
|
110 |
+
'project' => array(
|
111 |
+
'id' => $this->project->getId(),
|
112 |
+
'status' => $this->getProjectStatus(),
|
113 |
+
'heartBeatInterval' => ($heartBeatInterval > 10 && $heartBeatInterval < 30 ? $heartBeatInterval : 30) * 1000,
|
114 |
+
),
|
115 |
+
'urls' => array(
|
116 |
+
'site' => home_url(),
|
117 |
+
'api' => home_url('/wp-json/v1'),
|
118 |
+
'assets' => $this->urlBuilder->editor_build_url(),
|
119 |
+
'image' => $this->urlBuilder->external_media_url() . "",
|
120 |
+
'blockThumbnails' => $this->urlBuilder->external_asset_url('thumbs') . "",
|
121 |
+
'templateThumbnails' => $this->urlBuilder->external_asset_url('thumbs') . "",
|
122 |
+
'templateIcons' => $this->urlBuilder->proxy_url('editor/icons'),
|
123 |
+
'templateFonts' => $this->urlBuilder->external_fonts_url(),
|
124 |
+
'editorFonts' => home_url(),
|
125 |
+
'pagePreview' => $preview_post_link,
|
126 |
+
'about' => __bt('about-url', apply_filters('brizy_about_url', Brizy_Config::ABOUT_URL)),
|
127 |
+
'backToDashboard' => get_edit_post_link($wp_post_id, null),
|
128 |
+
'assetsExternal' => $this->urlBuilder->external_asset_url() . "",
|
129 |
+
|
130 |
+
// wp specific
|
131 |
+
'changeTemplate' => $change_template_url,
|
132 |
+
'upgradeToPro' =>
|
133 |
+
apply_filters('brizy_upgrade_to_pro_url', Brizy_Config::UPGRADE_TO_PRO_URL),
|
134 |
|
135 |
'support' =>
|
136 |
__bt( 'support-url', apply_filters( 'brizy_support_url', Brizy_Config::SUPPORT_URL )
|
163 |
'l10n' => $this->getTexts(),
|
164 |
'pageData' => apply_filters( 'brizy_page_data', array() ),
|
165 |
'availableRoles' => $this->roleList()
|
166 |
+
),
|
167 |
+
'mode' => $mode,
|
168 |
+
'applications' => array(
|
169 |
+
'form' => array(
|
170 |
+
'submitUrl' => '{{brizy_dc_ajax_url}}?action=' . Brizy_Editor::prefix(
|
171 |
+
Brizy_Editor_Forms_Api::AJAX_SUBMIT_FORM
|
172 |
+
),
|
173 |
+
),
|
174 |
+
),
|
175 |
+
'server' => array(
|
176 |
+
'maxUploadSize' => $this->fileUploadMaxSize(),
|
177 |
+
),
|
178 |
+
'branding' => array('brizy' => __bt('brizy', 'Brizy')),
|
179 |
+
'prefix' => Brizy_Editor::prefix(),
|
180 |
+
'cloud' => $this->getCloudInfo(),
|
181 |
+
'editorVersion' => BRIZY_EDITOR_VERSION,
|
182 |
+
);
|
183 |
+
|
184 |
+
$manager = new Brizy_Editor_Accounts_ServiceAccountManager(Brizy_Editor_Project::get());
|
185 |
+
|
186 |
+
$config = $this->addRecaptchaAccounts($manager, $config);
|
187 |
+
$config = $this->addSocialAccounts($manager, $config);
|
188 |
+
$config = $this->addGlobalBlocksData($config);
|
189 |
+
|
190 |
+
|
191 |
+
$config = $this->addTemplateFields($config, $mode === 'template', $wp_post_id);
|
192 |
+
|
193 |
+
return self::$config[$cachePostId] = apply_filters('brizy_editor_config', $config);
|
194 |
+
}
|
195 |
+
|
196 |
+
private function addGlobalBlocksData($config) {
|
197 |
+
|
198 |
+
$postTaxonomies = get_post_taxonomies($wp_post_id = (int)$config['wp']['page']);
|
199 |
+
$postTerms = [];
|
200 |
+
foreach ($postTaxonomies as $tax) {
|
201 |
+
$postTerms = array_merge($postTerms, wp_get_post_terms($wp_post_id, $tax));
|
202 |
+
}
|
203 |
+
|
204 |
+
$postTermsByKeys = [];
|
205 |
+
foreach ($postTerms as $term) {
|
206 |
+
$postTermsByKeys[$term->term_id] = $term;
|
207 |
+
}
|
208 |
+
|
209 |
+
$config['wp']['postTerms'] = $postTerms;
|
210 |
+
$config['wp']['postTermParents'] = array_values(array_diff_key($this->getAllParents($postTermsByKeys),$postTermsByKeys));
|
211 |
+
$config['wp']['postAuthor'] = (int)$this->post->getWpPost()->post_author;
|
212 |
+
return $config;
|
213 |
+
}
|
214 |
+
|
215 |
+
/**
|
216 |
+
* @return object
|
217 |
+
*/
|
218 |
+
private function get_page_attachments()
|
219 |
+
{
|
220 |
+
global $wpdb;
|
221 |
+
$query = $wpdb->prepare(
|
222 |
+
"SELECT
|
223 |
pm.*
|
224 |
FROM
|
225 |
{$wpdb->prefix}postmeta pm
|
226 |
JOIN {$wpdb->prefix}postmeta pm2 ON pm2.post_id=pm.post_id AND pm2.meta_key='brizy_post_uid' AND pm2.meta_value=%s
|
227 |
WHERE pm.meta_key='brizy_attachment_uid'
|
228 |
GROUP BY pm.post_id",
|
229 |
+
$this->post->getUid()
|
230 |
+
);
|
231 |
+
|
232 |
+
$results = $wpdb->get_results($query);
|
233 |
+
$attachment_data = array();
|
234 |
+
foreach ($results as $row) {
|
235 |
+
$attachment_data[$row->meta_value] = true;
|
236 |
+
}
|
237 |
+
|
238 |
+
return (object)$attachment_data;
|
239 |
+
}
|
240 |
+
|
241 |
+
/**
|
242 |
+
* @return array|null
|
243 |
+
*/
|
244 |
+
public static function get_woocomerce_plugin_info()
|
245 |
+
{
|
246 |
+
if (function_exists('wc') && defined('WC_PLUGIN_FILE')) {
|
247 |
+
return array('version' => WooCommerce::instance()->version);
|
248 |
+
}
|
249 |
+
|
250 |
+
return null;
|
251 |
+
}
|
252 |
+
|
253 |
+
/**
|
254 |
+
* @param $wp_post_id
|
255 |
+
*
|
256 |
+
* @return array|null
|
257 |
+
*/
|
258 |
+
private function getThumbnailData($wp_post_id)
|
259 |
+
{
|
260 |
+
$post_thumbnail_id = get_post_thumbnail_id($wp_post_id);
|
261 |
+
$post_thumbnail = "";
|
262 |
+
|
263 |
+
if ($post_thumbnail_id) {
|
264 |
+
$post_thumbnail_focal_point = get_post_meta($wp_post_id, 'brizy_attachment_focal_point', true);
|
265 |
+
|
266 |
+
if (!is_array($post_thumbnail_focal_point)) {
|
267 |
+
$post_thumbnail_focal_point = array('x' => "", 'y' => "");
|
268 |
+
}
|
269 |
+
|
270 |
+
$post_thumbnail = array(
|
271 |
+
'id' => $post_thumbnail_id,
|
272 |
+
'url' => get_the_post_thumbnail_url($wp_post_id),
|
273 |
+
'pointX' => isset($post_thumbnail_focal_point['x']) ? $post_thumbnail_focal_point['x'] : "",
|
274 |
+
'pointY' => isset($post_thumbnail_focal_point['y']) ? $post_thumbnail_focal_point['y'] : "",
|
275 |
+
);
|
276 |
+
}
|
277 |
+
|
278 |
+
return $post_thumbnail;
|
279 |
+
}
|
280 |
+
|
281 |
+
private function getAllParents($terms)
|
282 |
+
{
|
283 |
+
$result = [];
|
284 |
+
foreach ($terms as $i => $term) {
|
285 |
+
foreach($this->getTermParents($term) as $aTerm) {
|
286 |
+
if(!isset($result[$aTerm->term_id])) {
|
287 |
+
$result[$aTerm->term_id] = $aTerm;
|
288 |
+
}
|
289 |
+
}
|
290 |
+
}
|
291 |
+
return $result;
|
292 |
+
}
|
293 |
+
|
294 |
+
private function getTermParents($term)
|
295 |
+
{
|
296 |
+
$parents = [];
|
297 |
+
if ($term->parent) {
|
298 |
+
$parent = get_term_by('id', $term->parent, $term->taxonomy);
|
299 |
+
|
300 |
+
if ($parent) {
|
301 |
+
$parents[$parent->term_id] = $parent;
|
302 |
+
if ($parent->parent > 0)
|
303 |
+
$parents = array_merge($parents, $this->getTermParents($parent));
|
304 |
+
}
|
305 |
+
}
|
306 |
+
|
307 |
+
return $parents;
|
308 |
+
}
|
309 |
+
|
310 |
+
/**
|
311 |
+
* @param $wp_post
|
312 |
+
*
|
313 |
+
* @return null|string
|
314 |
+
* @throws Brizy_Editor_Exceptions_NotFound
|
315 |
+
* @throws Brizy_Editor_Exceptions_UnsupportedPostType
|
316 |
+
*/
|
317 |
+
private function getPreviewUrl($wp_post)
|
318 |
+
{
|
319 |
+
|
320 |
+
if ($wp_post->post_type == Brizy_Admin_Templates::CP_TEMPLATE) {
|
321 |
+
|
322 |
+
$ruleManager = new Brizy_Admin_Rules_Manager();
|
323 |
+
$rules = $ruleManager->getRules($wp_post->ID);
|
324 |
+
$rule = null;
|
325 |
+
|
326 |
+
|
327 |
+
if (!function_exists('addQueryStringToUrl')) {
|
328 |
+
function addQueryStringToUrl($link, $query)
|
329 |
+
{
|
330 |
+
$parsedUrl = parse_url($link);
|
331 |
+
$separator = (!isset($parsedUrl['query']) || $parsedUrl['query'] == null) ? '?' : '&';
|
332 |
+
$link .= $separator . $query;
|
333 |
+
|
334 |
+
return $link;
|
335 |
+
}
|
336 |
+
}
|
337 |
+
|
338 |
+
|
339 |
+
// find first include rule
|
340 |
+
foreach ($rules as $rule) {
|
341 |
+
/**
|
342 |
+
* @var Brizy_Admin_Rule $rule ;
|
343 |
+
*/
|
344 |
+
if ($rule->getType() == Brizy_Admin_Rule::TYPE_INCLUDE) {
|
345 |
+
break;
|
346 |
+
}
|
347 |
+
}
|
348 |
+
|
349 |
+
if ($rule) {
|
350 |
+
|
351 |
+
switch ($rule->getAppliedFor()) {
|
352 |
+
case Brizy_Admin_Rule::WOO_SHOP_PAGE:
|
353 |
+
if (function_exists('wc_get_page_id') && wc_get_page_id('shop')) {
|
354 |
+
$wp_post = get_post(wc_get_page_id('shop'));
|
355 |
+
}
|
356 |
+
break;
|
357 |
+
case Brizy_Admin_Rule::POSTS :
|
358 |
+
$args = array(
|
359 |
+
'post_type' => $rule->getEntityType(),
|
360 |
+
);
|
361 |
+
|
362 |
+
if (count($rule->getEntityValues())) {
|
363 |
+
$args['post__in'] = $rule->getEntityValues();
|
364 |
+
}
|
365 |
+
|
366 |
+
$array = get_posts($args);
|
367 |
+
|
368 |
+
foreach ($array as $p) {
|
369 |
+
|
370 |
+
if ($p->post_type == 'attachment') {
|
371 |
+
return addQueryStringToUrl(get_attachment_link($p->ID), 'preview=1');
|
372 |
+
}
|
373 |
+
|
374 |
+
if (!Brizy_Editor::checkIfPostTypeIsSupported($p->ID, false) ||
|
375 |
+
!Brizy_Editor_Entity::isBrizyEnabled($p->ID)) {
|
376 |
+
$wp_post = $p;
|
377 |
+
break;
|
378 |
+
}
|
379 |
+
|
380 |
+
}
|
381 |
+
break;
|
382 |
+
case Brizy_Admin_Rule::TAXONOMY :
|
383 |
+
$args = array(
|
384 |
+
'taxonomy' => $rule->getEntityType(),
|
385 |
+
'hide_empty' => false,
|
386 |
+
);
|
387 |
+
if (count($rule->getEntityValues())) {
|
388 |
+
$args['term_taxonomy_id'] = $rule->getEntityValues();
|
389 |
+
}
|
390 |
+
|
391 |
+
$array = get_terms($args);
|
392 |
+
|
393 |
+
if (count($array) == 0) {
|
394 |
+
break;
|
395 |
+
}
|
396 |
+
$term = array_pop($array);
|
397 |
+
$link = get_term_link($term);
|
398 |
+
|
399 |
+
return addQueryStringToUrl($link, 'preview=1');
|
400 |
+
break;
|
401 |
+
case Brizy_Admin_Rule::ARCHIVE :
|
402 |
+
if ($rule->getEntityType()) {
|
403 |
+
$link = get_post_type_archive_link($rule->getEntityType());
|
404 |
+
|
405 |
+
return addQueryStringToUrl($link, 'preview=1');
|
406 |
+
}
|
407 |
+
|
408 |
+
$link = $this->getOneArchiveLink();
|
409 |
+
|
410 |
+
return addQueryStringToUrl($link, 'preview=1');
|
411 |
+
break;
|
412 |
+
case Brizy_Admin_Rule::TEMPLATE :
|
413 |
+
|
414 |
+
// array( 'title' => 'Author page', 'value' => 'author', 'groupValue' => Brizy_Admin_Rule::TEMPLATE ),
|
415 |
+
// array( 'title' => 'Search page', 'value' => 'search', 'groupValue' => Brizy_Admin_Rule::TEMPLATE ),
|
416 |
+
// array( 'title' => 'Home page', 'value' => 'front_page', 'groupValue' => Brizy_Admin_Rule::TEMPLATE ),
|
417 |
+
// array( 'title' => '404 page', 'value' => '404', 'groupValue' => Brizy_Admin_Rule::TEMPLATE ),
|
418 |
+
// array( 'title' => 'Archive page', 'value' => '', 'groupValue' => Brizy_Admin_Rule::ARCHIVE ),
|
419 |
+
switch ($rule->getEntityType()) {
|
420 |
+
case 'author':
|
421 |
+
$authors = get_users();
|
422 |
+
$author = array_pop($authors);
|
423 |
+
$link = get_author_posts_url($author->ID);
|
424 |
+
|
425 |
+
return addQueryStringToUrl($link, 'preview=1');
|
426 |
+
break;
|
427 |
+
|
428 |
+
case 'search':
|
429 |
+
return addQueryStringToUrl(get_search_link('find-me'), 'preview=1');
|
430 |
+
break;
|
431 |
+
case '404':
|
432 |
+
return addQueryStringToUrl(get_home_url(null, (string)time()), 'preview=1');
|
433 |
+
break;
|
434 |
+
case 'home_page':
|
435 |
+
$get_option = get_option('page_for_posts');
|
436 |
+
|
437 |
+
if ($get_option) {
|
438 |
+
return addQueryStringToUrl(get_permalink($get_option), 'preview=1');
|
439 |
+
}
|
440 |
+
break;
|
441 |
+
case 'front_page':
|
442 |
+
return addQueryStringToUrl(home_url(), 'preview=1');
|
443 |
+
break;
|
444 |
+
}
|
445 |
+
|
446 |
+
break;
|
447 |
+
}
|
448 |
+
|
449 |
+
}
|
450 |
+
}
|
451 |
+
|
452 |
+
return get_preview_post_link(
|
453 |
+
$wp_post,
|
454 |
+
array(
|
455 |
+
'preview_id' => $wp_post->ID,
|
456 |
+
'preview_nonce' => wp_create_nonce('post_preview_' . $wp_post->ID),
|
457 |
+
)
|
458 |
+
);
|
459 |
+
}
|
460 |
+
|
461 |
+
/**
|
462 |
+
* @return array
|
463 |
+
*/
|
464 |
+
private function get_menu_data()
|
465 |
+
{
|
466 |
+
$menus = wp_get_nav_menus();
|
467 |
+
$menu_data = array();
|
468 |
+
|
469 |
+
foreach ($menus as $menu) {
|
470 |
+
|
471 |
+
$custom_menu_data = get_term_meta($menu->term_id, 'brizy_data', true);
|
472 |
+
|
473 |
+
$menu_uid = get_term_meta($menu->term_id, 'brizy_uid', true);
|
474 |
+
if (!$menu_uid) {
|
475 |
+
$menu_uid = md5($menu->term_id . time());
|
476 |
+
update_term_meta($menu->term_id, 'brizy_uid', $menu_uid);
|
477 |
+
}
|
478 |
+
|
479 |
+
$amenu = array(
|
480 |
+
'id' => $menu_uid,
|
481 |
+
'name' => $menu->name,
|
482 |
+
'items' => array(),
|
483 |
+
);
|
484 |
+
|
485 |
+
$amenu = (object)array_merge(
|
486 |
+
$amenu,
|
487 |
+
get_object_vars(is_object($custom_menu_data) ? $custom_menu_data : (object)array())
|
488 |
+
);
|
489 |
+
|
490 |
+
$menu_items = wp_get_nav_menu_items($menu->term_id);
|
491 |
+
_wp_menu_item_classes_by_context($menu_items);
|
492 |
+
$menu_items = $this->get_menu_tree($menu_items);
|
493 |
+
|
494 |
+
if (count($menu_items) > 0) {
|
495 |
+
$amenu->items = $menu_items;
|
496 |
+
}
|
497 |
+
|
498 |
+
$menu_data[] = $amenu;
|
499 |
+
}
|
500 |
+
|
501 |
+
return apply_filters('brizy_menu_data', $menu_data);
|
502 |
+
}
|
503 |
+
|
504 |
+
/**
|
505 |
+
* @param $items
|
506 |
+
* @param int $parent
|
507 |
+
*
|
508 |
+
* @return array
|
509 |
+
*/
|
510 |
+
private function get_menu_tree($items, $parent = 0)
|
511 |
+
{
|
512 |
+
$result_items = array();
|
513 |
+
|
514 |
+
foreach ($items as $item) {
|
515 |
+
if ((int)$item->menu_item_parent !== $parent) {
|
516 |
+
continue;
|
517 |
+
}
|
518 |
+
|
519 |
+
$menu_uid = get_post_meta($item->ID, 'brizy_post_uid', true);
|
520 |
+
|
521 |
+
if (!$menu_uid) {
|
522 |
+
$menu_uid = md5($item->ID . time());
|
523 |
+
update_post_meta($item->ID, 'brizy_post_uid', $menu_uid);
|
524 |
+
}
|
525 |
+
|
526 |
+
$megaMenuItems = $this->getMegaMenuItems();
|
527 |
+
|
528 |
+
$menu_data = get_post_meta($item->ID, 'brizy_data', true);
|
529 |
|
530 |
$item_value = array(
|
531 |
'id' => $menu_uid,
|
544 |
'xfn' => get_post_meta( $item->ID, '_menu_item_xfn', true ),
|
545 |
);
|
546 |
|
547 |
+
$an_item = (object)array(
|
548 |
+
'type' => 'MenuItem',
|
549 |
+
);
|
550 |
+
|
551 |
+
$an_item->value = (object)array_merge(
|
552 |
+
$item_value,
|
553 |
+
get_object_vars(is_object($menu_data) ? $menu_data : (object)array())
|
554 |
+
);
|
555 |
+
|
556 |
+
$child_items = $this->get_menu_tree($items, $item->ID);
|
557 |
+
|
558 |
+
$an_item->value->items = array();
|
559 |
+
|
560 |
+
if (count($child_items) > 0) {
|
561 |
+
$an_item->value->items = $child_items;
|
562 |
+
}
|
563 |
+
|
564 |
+
$result_items[] = $an_item;
|
565 |
+
}
|
566 |
+
|
567 |
+
return $result_items;
|
568 |
+
}
|
569 |
+
|
570 |
+
/**
|
571 |
+
* @return array
|
572 |
+
*/
|
573 |
+
private function getMegaMenuItems()
|
574 |
+
{
|
575 |
+
|
576 |
+
return array(
|
577 |
+
(object)(array(
|
578 |
+
'type' => "SectionMegaMenu",
|
579 |
+
'value' => (object)array('items' => array()),
|
580 |
+
)),
|
581 |
+
);
|
582 |
+
}
|
583 |
+
|
584 |
+
/**
|
585 |
+
* @param Brizy_Editor_Accounts_ServiceAccountManager $manager
|
586 |
+
* @param array $config
|
587 |
+
*
|
588 |
+
* @return array
|
589 |
+
*/
|
590 |
+
private function addRecaptchaAccounts(Brizy_Editor_Accounts_ServiceAccountManager $manager, array $config)
|
591 |
+
{
|
592 |
+
$accounts = $manager->getAccountsByGroup(Brizy_Editor_Accounts_AbstractAccount::RECAPTCHA_GROUP);
|
593 |
+
|
594 |
+
if (isset($accounts[0]) && $accounts[0] instanceof Brizy_Editor_Accounts_RecaptchaAccount) {
|
595 |
+
$config['applications']['form']['recaptcha']['siteKey'] = $accounts[0]->getSiteKey();
|
596 |
+
}
|
597 |
+
|
598 |
+
return $config;
|
599 |
+
}
|
600 |
+
|
601 |
+
/**
|
602 |
+
* @param Brizy_Editor_Accounts_ServiceAccountManager $manager
|
603 |
+
* @param array $config
|
604 |
+
*
|
605 |
+
* @return array
|
606 |
+
*/
|
607 |
+
private function addSocialAccounts(Brizy_Editor_Accounts_ServiceAccountManager $manager, array $config)
|
608 |
+
{
|
609 |
+
$accounts = $manager->getAccountsByGroup(Brizy_Editor_Accounts_AbstractAccount::SOCIAL_GROUP);
|
610 |
+
|
611 |
+
foreach ($accounts as $account) {
|
612 |
+
if (isset($account) && $account instanceof Brizy_Editor_Accounts_SocialAccount) {
|
613 |
+
$config['applications'][$account->getGroup()][] = $account->convertToOptionValue();
|
614 |
+
}
|
615 |
+
}
|
616 |
+
|
617 |
+
return $config;
|
618 |
+
}
|
619 |
+
|
620 |
+
|
621 |
+
private function fileUploadMaxSize()
|
622 |
+
{
|
623 |
+
static $max_size = -1;
|
624 |
+
|
625 |
+
if ($max_size < 0) {
|
626 |
+
// Start with post_max_size.
|
627 |
+
$post_max_size = $this->parseSize(ini_get('post_max_size'));
|
628 |
+
if ($post_max_size > 0) {
|
629 |
+
$max_size = number_format($post_max_size / 1048576, 2, '.', '');
|
630 |
+
}
|
631 |
+
|
632 |
+
// If upload_max_size is less, then reduce. Except if upload_max_size is
|
633 |
+
// zero, which indicates no limit.
|
634 |
+
$upload_max = $this->parseSize(ini_get('upload_max_filesize'));
|
635 |
+
if ($upload_max > 0 && $upload_max < $max_size) {
|
636 |
+
$max_size = number_format($upload_max / 1048576, 2, '.', '');
|
637 |
+
}
|
638 |
+
}
|
639 |
+
|
640 |
+
return $max_size;
|
641 |
+
}
|
642 |
+
|
643 |
+
private function parseSize($size)
|
644 |
+
{
|
645 |
+
$unit = preg_replace('/[^bkmgtpezy]/i', '', $size); // Remove the non-unit characters from the size.
|
646 |
+
$size = preg_replace('/[^0-9\.]/', '', $size); // Remove the non-numeric characters from the size.
|
647 |
+
if ($unit) {
|
648 |
+
// Find the position of the unit in the ordered string which is the power of magnitude to multiply a kilobyte by.
|
649 |
+
return round($size * pow(1024, stripos('bkmgtpezy', $unit[0])));
|
650 |
+
} else {
|
651 |
+
return round($size);
|
652 |
+
}
|
653 |
+
}
|
654 |
+
|
655 |
+
/**
|
656 |
+
* @return array
|
657 |
+
*/
|
658 |
+
private function roleList()
|
659 |
+
{
|
660 |
+
$editable_roles = apply_filters('editable_roles', wp_roles()->roles);
|
661 |
+
$wpRoles = [ 'customer', 'shop_manager', 'subscriber', 'contributor', 'author', 'editor', 'administrator' ];
|
662 |
+
$out = [];
|
663 |
+
|
664 |
+
if (!Brizy_Admin_Membership_Membership::is_pro()) {
|
665 |
+
$editable_roles = array_intersect_key($editable_roles, array_flip($wpRoles ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
666 |
}
|
|
|
667 |
|
668 |
+
$roles = array_filter( $editable_roles, function( $key ) {
|
669 |
+
if ( ! strpos( $key, '-' ) ) {
|
670 |
+
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
671 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
672 |
|
673 |
+
$parts = explode( '-', $key );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
674 |
|
675 |
+
return get_post_type( end( $parts ) ) == Brizy_Admin_Membership_Membership::CP_ROLE;
|
676 |
+
}, ARRAY_FILTER_USE_KEY );
|
677 |
|
678 |
+
foreach ( $wpRoles as $role ) {
|
679 |
+
if ( isset( $editable_roles[ $role ] ) ) {
|
680 |
+
$roles[ $role ] = $editable_roles[ $role ];
|
|
|
|
|
|
|
|
|
|
|
|
|
681 |
}
|
682 |
+
}
|
683 |
+
|
684 |
+
$roles = array_merge( $roles, array_diff_key( $editable_roles, $roles ) );foreach ($roles as $role => $details) {
|
685 |
+
$out[] = [
|
686 |
+
'role' => esc_attr($role),
|
687 |
+
'name' => translate_user_role($details['name'])
|
688 |
+
];
|
689 |
+
}
|
690 |
+
|
691 |
+
return $out;
|
692 |
+
}
|
693 |
+
|
694 |
+
private function getOneArchiveLink($args = '')
|
695 |
+
{
|
696 |
+
global $wpdb, $wp_locale;
|
697 |
+
|
698 |
+
$defaults = array(
|
699 |
+
'type' => 'monthly',
|
700 |
+
'limit' => '',
|
701 |
+
'order' => 'DESC',
|
702 |
+
'post_type' => 'post',
|
703 |
+
'year' => get_query_var('year'),
|
704 |
+
'monthnum' => get_query_var('monthnum'),
|
705 |
+
'day' => get_query_var('day'),
|
706 |
+
'w' => get_query_var('w'),
|
707 |
+
);
|
708 |
+
|
709 |
+
$r = wp_parse_args($args, $defaults);
|
710 |
+
|
711 |
+
$post_type_object = get_post_type_object($r['post_type']);
|
712 |
+
if (!is_post_type_viewable($post_type_object)) {
|
713 |
+
return;
|
714 |
+
}
|
715 |
+
$r['post_type'] = $post_type_object->name;
|
716 |
+
|
717 |
+
if ('' == $r['type']) {
|
718 |
+
$r['type'] = 'monthly';
|
719 |
+
}
|
720 |
+
|
721 |
+
if (!empty($r['limit'])) {
|
722 |
+
$r['limit'] = absint($r['limit']);
|
723 |
+
$r['limit'] = ' LIMIT ' . $r['limit'];
|
724 |
+
}
|
725 |
+
|
726 |
+
$order = strtoupper($r['order']);
|
727 |
+
if ($order !== 'ASC') {
|
728 |
+
$order = 'DESC';
|
729 |
+
}
|
730 |
+
|
731 |
+
// this is what will separate dates on weekly archive links
|
732 |
+
$archive_week_separator = '–';
|
733 |
+
|
734 |
+
$sql_where = $wpdb->prepare("WHERE post_type = %s AND post_status = 'publish'", $r['post_type']);
|
735 |
+
|
736 |
+
/**
|
737 |
+
* Filters the SQL WHERE clause for retrieving archives.
|
738 |
+
*
|
739 |
+
* @param string $sql_where Portion of SQL query containing the WHERE clause.
|
740 |
+
* @param array $r An array of default arguments.
|
741 |
+
*
|
742 |
+
* @since 2.2.0
|
743 |
+
*
|
744 |
+
*/
|
745 |
+
$where = apply_filters('getarchives_where', $sql_where, $r);
|
746 |
+
|
747 |
+
/**
|
748 |
+
* Filters the SQL JOIN clause for retrieving archives.
|
749 |
+
*
|
750 |
+
* @param string $sql_join Portion of SQL query containing JOIN clause.
|
751 |
+
* @param array $r An array of default arguments.
|
752 |
+
*
|
753 |
+
* @since 2.2.0
|
754 |
+
*
|
755 |
+
*/
|
756 |
+
$join = apply_filters('getarchives_join', '', $r);
|
757 |
+
|
758 |
+
$output = '';
|
759 |
+
|
760 |
+
$last_changed = wp_cache_get_last_changed('posts');
|
761 |
+
|
762 |
+
$limit = $r['limit'];
|
763 |
+
|
764 |
+
if ('monthly' == $r['type']) {
|
765 |
+
$query = "SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM $wpdb->posts $join $where GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date $order $limit";
|
766 |
+
$key = md5($query);
|
767 |
+
$key = "wp_get_archives:$key:$last_changed";
|
768 |
+
if (!$results = wp_cache_get($key, 'posts')) {
|
769 |
+
$results = $wpdb->get_results($query);
|
770 |
+
wp_cache_set($key, $results, 'posts');
|
771 |
+
}
|
772 |
+
if ($results) {
|
773 |
+
foreach ((array)$results as $result) {
|
774 |
+
$url = get_month_link($result->year, $result->month);
|
775 |
+
if ('post' !== $r['post_type']) {
|
776 |
+
$url = add_query_arg('post_type', $r['post_type'], $url);
|
777 |
+
}
|
778 |
+
|
779 |
+
return $url;
|
780 |
+
}
|
781 |
+
}
|
782 |
+
}
|
783 |
+
}
|
784 |
+
|
785 |
+
/**
|
786 |
+
* @return string
|
787 |
+
* @throws Exception
|
788 |
+
*/
|
789 |
+
private function getTexts()
|
790 |
+
{
|
791 |
+
if (BRIZY_DEVELOPMENT) {
|
792 |
+
$brizy_public_editor_build_texts = '\Brizy_Public_EditorBuild_Dev_Texts';
|
793 |
+
} else {
|
794 |
+
$version = '';
|
795 |
+
foreach (explode('-', BRIZY_EDITOR_VERSION) as $tmp) {
|
796 |
+
$version .= ucfirst($tmp);
|
797 |
+
}
|
798 |
+
$brizy_public_editor_build_texts = '\Brizy_Public_EditorBuild_' . $version . '_Texts';
|
799 |
+
}
|
800 |
+
|
801 |
+
if (!class_exists($brizy_public_editor_build_texts)) {
|
802 |
+
if (BRIZY_DEVELOPMENT) {
|
803 |
+
throw new \Exception('You must build the editor first.');
|
804 |
+
} else {
|
805 |
+
throw new \Exception('Unable to find class ' . $brizy_public_editor_build_texts);
|
806 |
+
}
|
807 |
+
}
|
808 |
+
|
809 |
+
return (object)$brizy_public_editor_build_texts::get_editor_texts();
|
810 |
+
}
|
811 |
+
|
812 |
+
private function addTemplateFields($config, $is_template, $wp_post_id)
|
813 |
+
{
|
814 |
+
|
815 |
+
$template_rules = [];
|
816 |
+
if ($is_template) {
|
817 |
+
$rule_manager = new Brizy_Admin_Rules_Manager();
|
818 |
+
$template_rules = $rule_manager->getRules($wp_post_id);
|
819 |
+
$config['template_type'] = $this->getTemplateType($template_rules);
|
820 |
+
}
|
821 |
+
|
822 |
+
$config['wp']['ruleMatches'] = $this->getTemplateRuleMatches($is_template, $wp_post_id, $template_rules);
|
823 |
+
|
824 |
+
return $config;
|
825 |
+
}
|
826 |
+
|
827 |
+
/**
|
828 |
+
* @param $isTemplate
|
829 |
+
* @param $wpPostId
|
830 |
+
* @param $templateRules
|
831 |
+
*
|
832 |
+
* @return array
|
833 |
+
*/
|
834 |
+
private function getTemplateRuleMatches($isTemplate, $wpPostId, $templateRules)
|
835 |
+
{
|
836 |
+
|
837 |
+
$ruleMatches = array();
|
838 |
+
|
839 |
+
if ($isTemplate) {
|
840 |
+
|
841 |
+
foreach ($templateRules as $rule) {
|
842 |
+
/**
|
843 |
+
* @var Brizy_Admin_Rule $rule ;
|
844 |
+
*/
|
845 |
+
$ruleMatches[] = array(
|
846 |
+
'type' => $rule->getType(),
|
847 |
+
'group' => $rule->getAppliedFor(),
|
848 |
+
'entityType' => $rule->getEntityType(),
|
849 |
+
'values' => $rule->getEntityValues(),
|
850 |
+
);
|
851 |
+
}
|
852 |
+
} else {
|
853 |
+
$ruleMatches[] = array(
|
854 |
+
'type' => Brizy_Admin_Rule::TYPE_INCLUDE,
|
855 |
+
'group' => Brizy_Admin_Rule::POSTS,
|
856 |
+
'entityType' => $this->post->getWpPost()->post_type,
|
857 |
+
'values' => array($wpPostId),
|
858 |
+
);
|
859 |
+
}
|
860 |
+
|
861 |
+
return $ruleMatches;
|
862 |
+
}
|
863 |
+
|
864 |
+
|
865 |
+
/**
|
866 |
+
*
|
867 |
+
* @param $template_rules
|
868 |
+
*/
|
869 |
+
private function getTemplateType($template_rules)
|
870 |
+
{
|
871 |
+
foreach ($template_rules as $rule) {
|
872 |
+
|
873 |
+
if ($rule->getType() != Brizy_Admin_Rule::TYPE_INCLUDE) {
|
874 |
+
continue;
|
875 |
+
}
|
876 |
+
|
877 |
+
// single mode
|
878 |
+
if ($rule->getAppliedFor() == Brizy_Admin_Rule::POSTS) {
|
879 |
+
if ($rule->getEntityType() == 'product') {
|
880 |
+
return 'product';
|
881 |
+
} else {
|
882 |
+
return 'single';
|
883 |
+
}
|
884 |
+
}
|
885 |
+
|
886 |
+
|
887 |
+
// single mode
|
888 |
+
if ($rule->getAppliedFor() == Brizy_Admin_Rule::TEMPLATE) {
|
889 |
+
if (in_array($rule->getEntityType(), ['404', 'front_page'])) {
|
890 |
+
return 'single';
|
891 |
+
}
|
892 |
+
|
893 |
+
if (in_array($rule->getEntityType(), ['search', 'author', 'home_page'])) {
|
894 |
+
return 'archive';
|
895 |
+
}
|
896 |
+
}
|
897 |
+
|
898 |
+
// archive mode
|
899 |
+
if ($rule->getAppliedFor() == Brizy_Admin_Rule::TAXONOMY) {
|
900 |
+
if (in_array($rule->getEntityType(), ['product_cat', 'product_tag'])) {
|
901 |
+
return 'product_archive';
|
902 |
+
}
|
903 |
+
if (in_array($rule->getEntityType(), ['category', 'post_tag',])) {
|
904 |
+
return 'archive';
|
905 |
+
}
|
906 |
+
}
|
907 |
+
|
908 |
+
// product archive mode
|
909 |
+
if (in_array($rule->getAppliedFor(), [
|
910 |
+
Brizy_Admin_Rule::ARCHIVE,
|
911 |
+
Brizy_Admin_Rule::DATE_ARCHIVE,
|
912 |
+
Brizy_Admin_Rule::DAY_ARCHIVE,
|
913 |
+
Brizy_Admin_Rule::MONTH_ARCHIVE,
|
914 |
+
Brizy_Admin_Rule::YEAR_ARCHIVE,
|
915 |
+
Brizy_Admin_Rule::TAXONOMY,
|
916 |
+
Brizy_Admin_Rule::WOO_SHOP_PAGE
|
917 |
+
])) {
|
918 |
+
if ($rule->getAppliedFor() == Brizy_Admin_Rule::WOO_SHOP_PAGE && in_array($rule->getEntityType(), [
|
919 |
+
'product',
|
920 |
+
'shop_page'
|
921 |
+
])) {
|
922 |
+
return 'product_archive';
|
923 |
+
} else {
|
924 |
+
return 'archive';
|
925 |
+
}
|
926 |
+
}
|
927 |
+
}
|
928 |
+
|
929 |
+
return '';
|
930 |
+
}
|
931 |
+
|
932 |
+
/**
|
933 |
+
* @return array
|
934 |
+
*/
|
935 |
+
public function getProjectStatus()
|
936 |
+
{
|
937 |
+
$projectLockedBy = Brizy_Editor::get()->checkIfProjectIsLocked();
|
938 |
+
$userData = WP_User::get_data_by('id', $projectLockedBy);
|
939 |
+
unset($userData->user_pass);
|
940 |
+
unset($userData->user_registered);
|
941 |
+
unset($userData->user_status);
|
942 |
+
unset($userData->user_activation_key);
|
943 |
+
|
944 |
+
return [
|
945 |
+
'locked' => $projectLockedBy !== false,
|
946 |
+
'lockedBy' => $userData,
|
947 |
+
];
|
948 |
+
}
|
949 |
+
|
950 |
+
/**
|
951 |
+
* @return array
|
952 |
+
*/
|
953 |
+
public function getApiActions()
|
954 |
+
{
|
955 |
+
$pref = Brizy_Editor::prefix();
|
956 |
+
|
957 |
+
return array(
|
958 |
+
'hash' => wp_create_nonce(Brizy_Editor_API::nonce),
|
959 |
+
'url' => set_url_scheme(admin_url('admin-ajax.php')),
|
960 |
+
|
961 |
+
'heartBeat' => $pref . Brizy_Editor_API::AJAX_HEARTBEAT,
|
962 |
+
'takeOver' => $pref . Brizy_Editor_API::AJAX_TAKE_OVER,
|
963 |
+
'lockProject' => $pref . Brizy_Editor_API::AJAX_LOCK_PROJECT,
|
964 |
+
'removeLock' => $pref . Brizy_Editor_API::AJAX_REMOVE_LOCK,
|
965 |
+
'getPage' => $pref . Brizy_Editor_API::AJAX_GET,
|
966 |
+
'getPostInfo' => $pref . Brizy_Editor_API::AJAX_GET_POST_INFO,
|
967 |
+
'updatePage' => $pref . Brizy_Editor_API::AJAX_UPDATE,
|
968 |
+
'getProject' => $pref . Brizy_Editor_API::AJAX_GET_PROJECT,
|
969 |
+
'setProject' => $pref . Brizy_Editor_API::AJAX_SET_PROJECT,
|
970 |
+
'setProjectMeta' => $pref . Brizy_Editor_API::AJAX_UPDATE_EDITOR_META_DATA,
|
971 |
+
'getGlobalBlockList' => $pref . Brizy_Admin_Blocks_Api::GET_GLOBAL_BLOCKS_ACTION,
|
972 |
+
'createGlobalBlock' => $pref . Brizy_Admin_Blocks_Api::CREATE_GLOBAL_BLOCK_ACTION,
|
973 |
+
'updateGlobalBlock' => $pref . Brizy_Admin_Blocks_Api::UPDATE_GLOBAL_BLOCK_ACTION,
|
974 |
+
'updateGlobalBlocks' => $pref . Brizy_Admin_Blocks_Api::UPDATE_GLOBAL_BLOCKS_ACTION,
|
975 |
+
'deleteGlobalBlock' => $pref . Brizy_Admin_Blocks_Api::DELETE_GLOBAL_BLOCK_ACTION,
|
976 |
+
'getRuleGroupList' => $pref . Brizy_Admin_Rules_Api::RULE_GROUP_LIST,
|
977 |
+
'getLayoutByUid' => $pref . Brizy_Admin_Layouts_Api::GET_LAYOUT_BY_UID_ACTION,
|
978 |
+
'getLayoutList' => $pref . Brizy_Admin_Layouts_Api::GET_LAYOUTS_ACTION,
|
979 |
+
'createLayout' => $pref . Brizy_Admin_Layouts_Api::CREATE_LAYOUT_ACTION,
|
980 |
+
'updateLayout' => $pref . Brizy_Admin_Layouts_Api::UPDATE_LAYOUT_ACTION,
|
981 |
+
'deleteLayout' => $pref . Brizy_Admin_Layouts_Api::DELETE_LAYOUT_ACTION,
|
982 |
+
'cloudSignIn' => $pref . Brizy_Admin_Cloud_Api::AJAX_SIGNIN_ACTION,
|
983 |
+
'cloudSignUp' => $pref . Brizy_Admin_Cloud_Api::AJAX_SIGNUP_ACTION,
|
984 |
+
'cloudSignOut' => $pref . Brizy_Admin_Cloud_Api::AJAX_SIGNOUT_ACTION,
|
985 |
+
'cloudSyncAllowed' => $pref . Brizy_Admin_Cloud_Api::AJAX_SYNC_ALLOWED,
|
986 |
+
'cloudResetPassword' => $pref . Brizy_Admin_Cloud_Api::AJAX_RESET_PASSWORD_ACTION,
|
987 |
+
'cloudSync' => $pref . Brizy_Admin_Cloud_Api::AJAX_TRIGGER_SYNC_ACTION,
|
988 |
+
'createRule' => $pref . Brizy_Admin_Rules_Api::CREATE_RULE_ACTION,
|
989 |
+
'createRules' => $pref . Brizy_Admin_Rules_Api::CREATE_RULES_ACTION,
|
990 |
+
'updateRules' => $pref . Brizy_Admin_Rules_Api::UPDATE_RULES_ACTION,
|
991 |
+
'deleteRule' => $pref . Brizy_Admin_Rules_Api::DELETE_RULE_ACTION,
|
992 |
+
'getRuleList' => $pref . Brizy_Admin_Rules_Api::LIST_RULE_ACTION,
|
993 |
+
'updateBlockPositions' => $pref . Brizy_Admin_Blocks_Api::UPDATE_POSITIONS_ACTION,
|
994 |
+
'getSavedBlockByUid' => $pref . Brizy_Admin_Blocks_Api::GET_SAVED_BLOCK_ACTION,
|
995 |
+
'getSavedBlockList' => $pref . Brizy_Admin_Blocks_Api::GET_SAVED_BLOCKS_ACTION,
|
996 |
+
'createSavedBlock' => $pref . Brizy_Admin_Blocks_Api::CREATE_SAVED_BLOCK_ACTION,
|
997 |
+
'updateSavedBlock' => $pref . Brizy_Admin_Blocks_Api::UPDATE_SAVED_BLOCK_ACTION,
|
998 |
+
'deleteSavedBlock' => $pref . Brizy_Admin_Blocks_Api::DELETE_SAVED_BLOCK_ACTION,
|
999 |
+
'media' => $pref . Brizy_Editor_API::AJAX_MEDIA,
|
1000 |
+
'downloadMedia' => $pref . Brizy_Editor_API::AJAX_DOWNLOAD_MEDIA,
|
1001 |
+
'getMediaUid' => $pref . Brizy_Editor_API::AJAX_MEDIA_METAKEY,
|
1002 |
+
'getAttachmentUid' => $pref . Brizy_Editor_API::AJAX_CREATE_ATTACHMENT_UID,
|
1003 |
+
'getServerTimeStamp' => $pref . Brizy_Editor_API::AJAX_TIMESTAMP,
|
1004 |
+
'createBlockScreenshot' => $pref . Brizy_Editor_BlockScreenshotApi::AJAX_CREATE_BLOCK_SCREENSHOT,
|
1005 |
+
'updateBlockScreenshot' => $pref . Brizy_Editor_BlockScreenshotApi::AJAX_UPDATE_BLOCK_SCREENSHOT,
|
1006 |
+
'getSidebars' => $pref . Brizy_Editor_API::AJAX_SIDEBARS,
|
1007 |
+
'shortcodeContent' => $pref . Brizy_Editor_API::AJAX_SHORTCODE_CONTENT,
|
1008 |
+
'placeholderContent' => $pref . Brizy_Editor_API::AJAX_PLACEHOLDER_CONTENT,
|
1009 |
+
'getMenus' => $pref . Brizy_Editor_API::AJAX_GET_MENU_LIST,
|
1010 |
'getTerms' => $pref . Brizy_Editor_API::AJAX_GET_TERMS,
|
1011 |
'getPostObjects' => $pref . Brizy_Editor_API::AJAX_GET_POST_OBJECTS, // ???
|
1012 |
+
'setFeaturedImage' => $pref . Brizy_Editor_API::AJAX_SET_FEATURED_IMAGE,
|
1013 |
+
'setFeaturedImageFocalPoint' => $pref . Brizy_Editor_API::AJAX_SET_IMAGE_FOCAL_PT,
|
1014 |
+
'removeFeaturedImage' => $pref . Brizy_Editor_API::AJAX_REMOVE_FEATURED_IMAGE,
|
1015 |
+
'getForm' => $pref . Brizy_Editor_Forms_Api::AJAX_GET_FORM,
|
1016 |
+
'createForm' => $pref . Brizy_Editor_Forms_Api::AJAX_CREATE_FORM,
|
1017 |
+
'updateForm' => $pref . Brizy_Editor_Forms_Api::AJAX_UPDATE_FORM,
|
1018 |
+
'deleteForm' => $pref . Brizy_Editor_Forms_Api::AJAX_DELETE_FORM,
|
1019 |
+
'getIntegration' => $pref . Brizy_Editor_Forms_Api::AJAX_GET_INTEGRATION,
|
1020 |
+
'createIntegration' => $pref . Brizy_Editor_Forms_Api::AJAX_CREATE_INTEGRATION,
|
1021 |
+
'updateIntegration' => $pref . Brizy_Editor_Forms_Api::AJAX_UPDATE_INTEGRATION,
|
1022 |
+
'deleteIntegration' => $pref . Brizy_Editor_Forms_Api::AJAX_DELETE_INTEGRATION,
|
1023 |
+
'createFont' => $pref . Brizy_Admin_Fonts_Api::AJAX_CREATE_FONT_ACTION,
|
1024 |
+
'deleteFont' => $pref . Brizy_Admin_Fonts_Api::AJAX_DELETE_FONT_ACTION,
|
1025 |
+
'getFonts' => $pref . Brizy_Admin_Fonts_Api::AJAX_GET_FONTS_ACTION,
|
1026 |
+
'getAccount' => $pref . Brizy_Editor_Accounts_Api::BRIZY_GET_ACCOUNT,
|
1027 |
+
'getAccounts' => $pref . Brizy_Editor_Accounts_Api::BRIZY_GET_ACCOUNTS,
|
1028 |
+
'addAccount' => $pref . Brizy_Editor_Accounts_Api::BRIZY_ADD_ACCOUNT,
|
1029 |
+
'updateAccount' => $pref . Brizy_Editor_Accounts_Api::BRIZY_UPDATE_ACCOUNT,
|
1030 |
+
'deleteAccount' => $pref . Brizy_Editor_Accounts_Api::BRIZY_DELETE_ACCOUNT,
|
1031 |
+
'validateRecaptchaAccount' => $pref . Brizy_Editor_Forms_Api::AJAX_VALIDATE_RECAPTCHA_ACCOUNT,
|
1032 |
+
'rulePostsGroupList' => $pref . Brizy_Admin_Rules_Api::RULE_POSTS_GROUP_LIST,
|
1033 |
+
'ruleArchiveGroupList' => $pref . Brizy_Admin_Rules_Api::RULE_ARCHIVE_GROUP_LIST,
|
1034 |
+
'ruleTemplateGroupList' => $pref . Brizy_Admin_Rules_Api::RULE_TEMPLATE_GROUP_LIST,
|
1035 |
+
);
|
1036 |
+
}
|
1037 |
+
|
1038 |
+
/**
|
1039 |
+
* @return array
|
1040 |
+
* @throws Exception
|
1041 |
+
*/
|
1042 |
+
public function getCloudInfo()
|
1043 |
+
{
|
1044 |
+
// the cloud will be always initialized with the exception when the white label is enabled
|
1045 |
+
// we wil return isSyncAllowed = false just in case
|
1046 |
+
if (class_exists('BrizyPro_Admin_WhiteLabel') && BrizyPro_Admin_WhiteLabel::_init()->getEnabled()) {
|
1047 |
+
return array(
|
1048 |
+
'isSyncAllowed' => false,
|
1049 |
+
);
|
1050 |
+
}
|
1051 |
|
1052 |
|
1053 |
$response = array(
|
1054 |
'isSyncAllowed' => true,
|
1055 |
);
|
1056 |
|
1057 |
+
if ($this->project->getMetaValue('brizy-cloud-token') !== null) {
|
1058 |
+
$cloudClient = Brizy_Admin_Cloud_Client::instance(Brizy_Editor_Project::get(), new WP_Http());
|
1059 |
+
$versions = $cloudClient->getCloudEditorVersions();
|
1060 |
+
$response['isSyncAllowed'] = $versions['sync'] == BRIZY_SYNC_VERSION;
|
1061 |
+
}
|
1062 |
|
1063 |
+
return $response;
|
1064 |
+
}
|
1065 |
}
|
editor/forms/wordpress-integration.php
CHANGED
@@ -384,7 +384,11 @@ class Brizy_Editor_Forms_WordpressIntegration extends Brizy_Editor_Forms_Abstrac
|
|
384 |
|
385 |
if ( isset( $json_obj->emailTo ) ) {
|
386 |
$instance->setEmailTo( trim( $json_obj->emailTo ) );
|
387 |
-
}
|
|
|
|
|
|
|
|
|
388 |
if ( isset( $json_obj->subject ) ) {
|
389 |
$instance->setSubject( trim( $json_obj->subject ) );
|
390 |
}
|
384 |
|
385 |
if ( isset( $json_obj->emailTo ) ) {
|
386 |
$instance->setEmailTo( trim( $json_obj->emailTo ) );
|
387 |
+
} else {
|
388 |
+
// set the default email
|
389 |
+
$current_user = wp_get_current_user();
|
390 |
+
$instance->setEmailTo( $current_user->user_email );;
|
391 |
+
}
|
392 |
if ( isset( $json_obj->subject ) ) {
|
393 |
$instance->setSubject( trim( $json_obj->subject ) );
|
394 |
}
|
editor/url-builder.php
CHANGED
@@ -1,115 +1,124 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class Brizy_Editor_UrlBuilder
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
// public function media_proxy_url( $end_point = '' ) {
|
114 |
//
|
115 |
// $end_point = ltrim( $end_point, "/" );
|
@@ -117,251 +126,282 @@ class Brizy_Editor_UrlBuilder {
|
|
117 |
// return $this->proxy_url( "/media/" . $end_point );
|
118 |
// }
|
119 |
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
366 |
}
|
367 |
|
1 |
<?php
|
2 |
|
3 |
+
class Brizy_Editor_UrlBuilder
|
4 |
+
{
|
5 |
+
|
6 |
+
/**
|
7 |
+
* @var Brizy_Editor_Project
|
8 |
+
*/
|
9 |
+
protected $project;
|
10 |
+
|
11 |
+
/**
|
12 |
+
* @var Brizy_Editor_Post
|
13 |
+
*/
|
14 |
+
protected $post;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* @var int
|
18 |
+
*/
|
19 |
+
protected $post_id;
|
20 |
+
|
21 |
+
/**
|
22 |
+
* @var array
|
23 |
+
*/
|
24 |
+
protected $upload_dir;
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Brizy_Editor_UrlBuilder constructor.
|
28 |
+
*
|
29 |
+
* @param Brizy_Editor_Project|null $project
|
30 |
+
* @param int|null $post_id
|
31 |
+
*/
|
32 |
+
public function __construct($project = null, $post_id = null)
|
33 |
+
{
|
34 |
+
$this->post_id = $post_id;
|
35 |
+
$this->upload_dir = Brizy_Admin_UploadDir::getUploadDir(null, true);
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return Brizy_Admin_UrlIterator
|
40 |
+
*/
|
41 |
+
public function compiler_url()
|
42 |
+
{
|
43 |
+
return Brizy_Config::getCompilerUrls();
|
44 |
+
}
|
45 |
+
|
46 |
+
|
47 |
+
public function application_form_notification_url()
|
48 |
+
{
|
49 |
+
|
50 |
+
$urls = array(Brizy_Config::BRIZY_APPLICATION_FORM_NOTIFICATION_URL);
|
51 |
+
|
52 |
+
return new Brizy_Admin_UrlIterator($urls);
|
53 |
+
}
|
54 |
+
|
55 |
+
/**
|
56 |
+
* @param string $path
|
57 |
+
* @param string $path
|
58 |
+
*
|
59 |
+
* @return string
|
60 |
+
*/
|
61 |
+
public function plugin_url($path = '')
|
62 |
+
{
|
63 |
+
|
64 |
+
if ($path) {
|
65 |
+
$path = '/' . ltrim($path, '/');
|
66 |
+
}
|
67 |
+
|
68 |
+
return BRIZY_PLUGIN_URL . $path;
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* @param string $path
|
73 |
+
* @param string $path
|
74 |
+
*
|
75 |
+
* @return string
|
76 |
+
*/
|
77 |
+
public function plugin_path($path = '')
|
78 |
+
{
|
79 |
+
|
80 |
+
if ($path) {
|
81 |
+
$path = '/' . ltrim($path, '/');
|
82 |
+
}
|
83 |
+
|
84 |
+
return BRIZY_PLUGIN_PATH . $path;
|
85 |
+
}
|
86 |
+
|
87 |
+
|
88 |
+
/**
|
89 |
+
* @param $post
|
90 |
+
*/
|
91 |
+
public function set_post_id($post_id)
|
92 |
+
{
|
93 |
+
$this->post_id = $post_id;
|
94 |
+
}
|
95 |
+
|
96 |
+
public function multipass_url()
|
97 |
+
{
|
98 |
+
return set_url_scheme(admin_url('admin-ajax.php')) . "?action=brizy_multipass_create&client_id=" . Brizy_Config::BRIZY_APPLICATION_FORM_ID;
|
99 |
+
}
|
100 |
+
|
101 |
+
|
102 |
+
public function proxy_url($end_point)
|
103 |
+
{
|
104 |
+
|
105 |
+
$params = array();
|
106 |
+
|
107 |
+
if ($this->post_id) {
|
108 |
+
$params[Brizy_Editor::prefix('_post')] = ((int)$this->post_id);
|
109 |
+
}
|
110 |
+
|
111 |
+
// do not move this line
|
112 |
+
$params[Brizy_Editor::prefix()] = $end_point;
|
113 |
+
|
114 |
+
return add_query_arg($params, home_url('/'));
|
115 |
+
}
|
116 |
+
|
117 |
+
/**
|
118 |
+
* @param string $end_point
|
119 |
+
*
|
120 |
+
* @return string
|
121 |
+
*/
|
122 |
// public function media_proxy_url( $end_point = '' ) {
|
123 |
//
|
124 |
// $end_point = ltrim( $end_point, "/" );
|
126 |
// return $this->proxy_url( "/media/" . $end_point );
|
127 |
// }
|
128 |
|
129 |
+
/**
|
130 |
+
* @param $path
|
131 |
+
*
|
132 |
+
* @return string
|
133 |
+
*/
|
134 |
+
public function upload_path($path = null)
|
135 |
+
{
|
136 |
+
if ($path) {
|
137 |
+
$path = '/' . ltrim($path, '/');
|
138 |
+
}
|
139 |
+
|
140 |
+
return wp_normalize_path($this->upload_dir['basedir'] . $path);
|
141 |
+
}
|
142 |
+
|
143 |
+
/**
|
144 |
+
* @param $path
|
145 |
+
*
|
146 |
+
* @return string
|
147 |
+
*/
|
148 |
+
public function upload_url($path = null)
|
149 |
+
{
|
150 |
+
if ($path) {
|
151 |
+
$path = "/" . ltrim($path, "/");
|
152 |
+
}
|
153 |
+
|
154 |
+
return $this->upload_dir['baseurl'] . $path;
|
155 |
+
}
|
156 |
+
|
157 |
+
/**
|
158 |
+
* @param $path
|
159 |
+
*
|
160 |
+
* @return string
|
161 |
+
*/
|
162 |
+
public function brizy_upload_path($path = null)
|
163 |
+
{
|
164 |
+
|
165 |
+
if ($path) {
|
166 |
+
$path = ltrim($path, '/');
|
167 |
+
}
|
168 |
+
|
169 |
+
return $this->upload_path(sprintf(Brizy_Config::LOCAL_PAGE_ASSET_STATIC_URL, $path));
|
170 |
+
}
|
171 |
+
|
172 |
+
/**
|
173 |
+
* @param $path
|
174 |
+
*
|
175 |
+
* @return string
|
176 |
+
*/
|
177 |
+
public function brizy_upload_relative_path($path = null)
|
178 |
+
{
|
179 |
+
|
180 |
+
if ($path) {
|
181 |
+
$path = ltrim($path, '/');
|
182 |
+
}
|
183 |
+
|
184 |
+
return ltrim(sprintf(Brizy_Config::LOCAL_PAGE_ASSET_STATIC_URL, $path), "/");
|
185 |
+
}
|
186 |
+
|
187 |
+
|
188 |
+
/**
|
189 |
+
* @param $path
|
190 |
+
*
|
191 |
+
* @return string
|
192 |
+
*/
|
193 |
+
public function brizy_upload_url($path = null)
|
194 |
+
{
|
195 |
+
|
196 |
+
if ($path) {
|
197 |
+
$path = ltrim($path, "/");
|
198 |
+
}
|
199 |
+
|
200 |
+
return $this->upload_url(sprintf(Brizy_Config::LOCAL_PAGE_ASSET_STATIC_URL, $path));
|
201 |
+
}
|
202 |
+
|
203 |
+
/**
|
204 |
+
* This will return the relative path to the upload dir.
|
205 |
+
* ex: /brizy/pages/3/x.jpg
|
206 |
+
*
|
207 |
+
* @param null $path
|
208 |
+
* @param null $post_id
|
209 |
+
*
|
210 |
+
* @return string
|
211 |
+
*/
|
212 |
+
public function page_upload_path($path = null, $post_id = null)
|
213 |
+
{
|
214 |
+
|
215 |
+
if (is_null($post_id) && $this->post_id) {
|
216 |
+
$post_id = (int)$this->post_id;
|
217 |
+
}
|
218 |
+
|
219 |
+
if ($path) {
|
220 |
+
$path = '/' . ltrim($path, '/');
|
221 |
+
}
|
222 |
+
|
223 |
+
return $this->brizy_upload_path($post_id . $path);
|
224 |
+
}
|
225 |
+
|
226 |
+
public function page_upload_relative_path($path = null, $post_id = null)
|
227 |
+
{
|
228 |
+
if (is_null($post_id) && $this->post_id) {
|
229 |
+
$post_id = (int)$this->post_id;
|
230 |
+
}
|
231 |
+
|
232 |
+
if ($path) {
|
233 |
+
$path = '/' . ltrim($path, '/');
|
234 |
+
}
|
235 |
+
|
236 |
+
return $this->brizy_upload_relative_path($post_id . $path);
|
237 |
+
}
|
238 |
+
|
239 |
+
/**
|
240 |
+
* @param null $path
|
241 |
+
* @param null $post_id
|
242 |
+
*
|
243 |
+
* @return string
|
244 |
+
*/
|
245 |
+
public function page_upload_url($path = null, $post_id = null)
|
246 |
+
{
|
247 |
+
|
248 |
+
if (is_null($post_id) && $this->post_id) {
|
249 |
+
$post_id = (int)$this->post_id;
|
250 |
+
}
|
251 |
+
|
252 |
+
if ($path) {
|
253 |
+
$path = '/' . ltrim($path, '/');
|
254 |
+
}
|
255 |
+
|
256 |
+
return $this->brizy_upload_url($post_id . $path);
|
257 |
+
}
|
258 |
+
|
259 |
+
|
260 |
+
/**
|
261 |
+
* @param null $path
|
262 |
+
*
|
263 |
+
* @return string
|
264 |
+
*/
|
265 |
+
public function editor_asset_path($path = null)
|
266 |
+
{
|
267 |
+
|
268 |
+
if ($path) {
|
269 |
+
$path = '/' . ltrim($path, '/');
|
270 |
+
}
|
271 |
+
|
272 |
+
return $this->brizy_upload_path('editor' . $path);
|
273 |
+
}
|
274 |
+
|
275 |
+
/**
|
276 |
+
* @param null $path
|
277 |
+
*
|
278 |
+
* @return string
|
279 |
+
*/
|
280 |
+
public function editor_build_url()
|
281 |
+
{
|
282 |
+
return Brizy_Config::EDITOR_BUILD_URL;
|
283 |
+
}
|
284 |
+
|
285 |
+
/**
|
286 |
+
* @param null $path
|
287 |
+
*
|
288 |
+
* @return string
|
289 |
+
*/
|
290 |
+
static public function editor_build_path($path = null)
|
291 |
+
{
|
292 |
+
if ($path) {
|
293 |
+
$path = '/' . ltrim(
|
294 |
+
str_replace(array('/', '\\'), '/', $path),
|
295 |
+
'/');
|
296 |
+
}
|
297 |
+
|
298 |
+
return Brizy_Config::EDITOR_BUILD_PATH . $path;
|
299 |
+
}
|
300 |
+
|
301 |
+
/**
|
302 |
+
* @param null $path
|
303 |
+
*
|
304 |
+
* @return string
|
305 |
+
*/
|
306 |
+
public function media_asset_path($path = null)
|
307 |
+
{
|
308 |
+
if ($path) {
|
309 |
+
$path = '/' . ltrim($path, '/');
|
310 |
+
}
|
311 |
+
|
312 |
+
return $this->brizy_upload_path("media" . $path);
|
313 |
+
}
|
314 |
+
|
315 |
+
/**
|
316 |
+
* @param null $path
|
317 |
+
*
|
318 |
+
* @return string
|
319 |
+
*/
|
320 |
+
public function media_asset_url($path = null)
|
321 |
+
{
|
322 |
+
if ($path) {
|
323 |
+
$path = "/" . ltrim($path, "/");
|
324 |
+
}
|
325 |
+
|
326 |
+
return $this->brizy_upload_url("media" . $path);
|
327 |
+
}
|
328 |
+
|
329 |
+
/**
|
330 |
+
* @param null $path
|
331 |
+
*
|
332 |
+
* @return string
|
333 |
+
*/
|
334 |
+
public function external_media_url($path = null)
|
335 |
+
{
|
336 |
+
if ($path) {
|
337 |
+
$path = "/" . ltrim($path, "/");
|
338 |
+
}
|
339 |
+
|
340 |
+
$url = Brizy_Config::MEDIA_IMAGE_URL . $path;
|
341 |
+
|
342 |
+
$urls = array();
|
343 |
+
foreach (Brizy_Config::getEditorBaseUrls() as $baseUrl) {
|
344 |
+
$urls[] = $baseUrl . $url;
|
345 |
+
}
|
346 |
+
|
347 |
+
return new Brizy_Admin_UrlIterator($urls);
|
348 |
+
}
|
349 |
+
|
350 |
+
/**
|
351 |
+
* @param null $path
|
352 |
+
*
|
353 |
+
* @return string
|
354 |
+
*/
|
355 |
+
public function external_custom_file($uid, $fileName = null)
|
356 |
+
{
|
357 |
+
$result = [];
|
358 |
+
$brizyCloudUrls = Brizy_Config::getEditorBaseUrls();
|
359 |
+
foreach ($brizyCloudUrls as $url) {
|
360 |
+
$result[] = (string)$url . '/customfile/' . $uid . '/' . $fileName;
|
361 |
+
}
|
362 |
+
return new Brizy_Admin_UrlIterator($result);
|
363 |
+
}
|
364 |
+
|
365 |
+
/**
|
366 |
+
* @param null $path
|
367 |
+
* @param null $template_version
|
368 |
+
*
|
369 |
+
* @return Brizy_Admin_UrlIterator
|
370 |
+
*/
|
371 |
+
public function external_asset_url($path = null, $template_version = null)
|
372 |
+
{
|
373 |
+
|
374 |
+
if (is_null($template_version)) {
|
375 |
+
$template_version = BRIZY_EDITOR_VERSION;
|
376 |
+
}
|
377 |
+
|
378 |
+
if ($path) {
|
379 |
+
$path = "/" . ltrim($path, "/");
|
380 |
+
}
|
381 |
+
|
382 |
+
$urls = array();
|
383 |
+
foreach (Brizy_Config::getStaticUrls() as $url) {
|
384 |
+
$urls[] = sprintf($url . $path, $template_version);
|
385 |
+
}
|
386 |
+
|
387 |
+
return new Brizy_Admin_UrlIterator($urls);
|
388 |
+
}
|
389 |
+
|
390 |
+
/**
|
391 |
+
* @param null $template_version
|
392 |
+
*
|
393 |
+
* @return string
|
394 |
+
*/
|
395 |
+
public function external_fonts_url($template_version = null)
|
396 |
+
{
|
397 |
+
|
398 |
+
if (is_null($template_version)) {
|
399 |
+
$template_version = BRIZY_EDITOR_VERSION;
|
400 |
+
}
|
401 |
+
|
402 |
+
$url = Brizy_Config::getFontsUrl();
|
403 |
+
|
404 |
+
return sprintf($url, $template_version);
|
405 |
+
}
|
406 |
}
|
407 |
|
public/editor-build/184-wp/editor/js/editor.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!function(e){function t(t){for(var n,i,l=t[0],s=t[1],c=t[2],u=0,p=[];u<l.length;u++)i=l[u],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&p.push(a[i][0]),a[i]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(d&&d(t);p.length;)p.shift()();return r.push.apply(r,c||[]),o()}function o(){for(var e,t=0;t<r.length;t++){for(var o=r[t],n=!0,l=1;l<o.length;l++){var s=o[l];0!==a[s]&&(n=!1)}n&&(r.splice(t--,1),e=i(i.s=o[0]))}return e}var n={},a={0:0},r=[];function i(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.e=function(e){var t=[],o=a[e];if(0!==o)if(o)t.push(o[2]);else{var n=new Promise((function(t,n){o=a[e]=[t,n]}));t.push(o[2]=n);var r,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=function(e){return i.p+""+({}[e]||e)+".js"}(e);var s=new Error;r=function(t){l.onerror=l.onload=null,clearTimeout(c);var o=a[e];if(0!==o){if(o){var n=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+n+": "+r+")",s.name="ChunkLoadError",s.type=n,s.request=r,o[1](s)}a[e]=void 0}};var c=setTimeout((function(){r({type:"timeout",target:l})}),12e4);l.onerror=l.onload=r,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(o,n,function(t){return e[t]}.bind(null,n));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var l=window.webpackJsonp=window.webpackJsonp||[],s=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var d=s;r.push([553,1]),o()}([,function(e,t,o){"use strict";var n=o(209);o.d(t,"a",(function(){return n.a}))},,function(e,t,o){"use strict";o.r(t),o.d(t,"saveOnChanges",(function(){return c})),o.d(t,"defaultValueKey",(function(){return i.a})),o.d(t,"defaultValueValue",(function(){return i.b})),o.d(t,"deviceStateValueByKey",(function(){return i.c})),o.d(t,"makeKeyByStateDevice",(function(){return i.e})),o.d(t,"onChangeBgImage",(function(){return v})),o.d(t,"onChangeBgImageBgOpacity",(function(){return f})),o.d(t,"onChangeBgImageDependencies",(function(){return y})),o.d(t,"onChangeBgImageColumnAndRowSyncMobile",(function(){return O})),o.d(t,"onChangeBorderStyle2",(function(){return x})),o.d(t,"onChangeElementBorderStyleDependencies2",(function(){return j})),o.d(t,"onChangeContainerBorderStyleDependencies2",(function(){return B})),o.d(t,"onChangeBorderColorHexAndOpacity2",(function(){return P})),o.d(t,"onChangeBorderColorHexAndOpacityPalette2",(function(){return w})),o.d(t,"onChangeElementBorderColorHexAndOpacityDependencies2",(function(){return T})),o.d(t,"onChangeContainerBorderColorHexAndOpacityDependencies2",(function(){return z})),o.d(t,"onChangeBorderColorHexAndOpacityColumnAndRowSyncTablet2",(function(){return E})),o.d(t,"onChangeBorderColorHexAndOpacityColumnAndRowSyncMobile2",(function(){return k})),o.d(t,"onChangeBorderColorPalette2",(function(){return H})),o.d(t,"onChangeBorderColorPaletteOpacity2",(function(){return _})),o.d(t,"onChangeBorderWidthType2",(function(){return F})),o.d(t,"onChangeBorderWidthGrouped2",(function(){return R})),o.d(t,"onChangeBorderWidthGroupedDependencies2",(function(){return M})),o.d(t,"onChangeBorderWidthUngrouped2",(function(){return L})),o.d(t,"onChangeBorderWidthUngroupedDependencies2",(function(){return W})),o.d(t,"onChangeBorderRadiusGrouped",(function(){return D})),o.d(t,"onChangeBorderRadiusGroupedDependencies",(function(){return V})),o.d(t,"onChangeBorderRadiusUngrouped",(function(){return $})),o.d(t,"onChangeBorderRadiusUngroupedDependencies",(function(){return G})),o.d(t,"onChangeColorHexAndOpacity",(function(){return U})),o.d(t,"onChangeColorHexAndOpacityPalette",(function(){return K})),o.d(t,"onChangeColorPalette",(function(){return q})),o.d(t,"onChangeColorPaletteOpacity",(function(){return Y})),o.d(t,"onChangeBgColorType2",(function(){return Z})),o.d(t,"onChangeGradientRange2",(function(){return J})),o.d(t,"onChangeBgColorHexAndOpacity2",(function(){return Q})),o.d(t,"onChangeBgColorHexAndOpacityPalette2",(function(){return ee})),o.d(t,"onChangeBgColorHexAndOpacityDependencies2",(function(){return te})),o.d(t,"onChangeBgColorHexAndOpacityColumnAndRowSyncMobile2",(function(){return oe})),o.d(t,"onChangeBgColorPalette2",(function(){return ne})),o.d(t,"onChangeBgColorPaletteOpacity2",(function(){return ae})),o.d(t,"onChangeBoxShadowHexAndOpacity2",(function(){return se})),o.d(t,"onChangeBoxShadowHexAndOpacityPalette2",(function(){return ce})),o.d(t,"onChangeBoxShadowHexAndOpacityDependencies2",(function(){return de})),o.d(t,"onChangeBoxShadowPalette2",(function(){return ue})),o.d(t,"onChangeBoxShadowPaletteOpacity2",(function(){return pe})),o.d(t,"onChangeBoxShadowType2",(function(){return ie})),o.d(t,"onChangeBoxShadowTypeDependencies2",(function(){return le})),o.d(t,"onChangeBoxShadowFields2",(function(){return be})),o.d(t,"onChangeBoxShadowFieldsDependencies2",(function(){return me})),o.d(t,"onChangeBoxShadowOpacity2",(function(){return he})),o.d(t,"onChangePaddingGrouped",(function(){return fe})),o.d(t,"onChangePaddingUngrouped",(function(){return ye})),o.d(t,"onChangeMarginGrouped",(function(){return Ce})),o.d(t,"onChangeMarginUngrouped",(function(){return xe})),o.d(t,"onChangeElementSectionBoxShadowHexAndOpacityDependencies",(function(){return je})),o.d(t,"onChangeElementProgressBarBg2ColorHexAndOpacity",(function(){return Be})),o.d(t,"onChangeElementProgressBarBg2ColorHexAndOpacityPalette",(function(){return Pe})),o.d(t,"onChangeElementProgressBarBg2ColorHexAndOpacityDependencies",(function(){return we})),o.d(t,"onChangeElementProgressBarBg2ColorPalette",(function(){return Te})),o.d(t,"onChangeElementProgressBarBg2ColorPaletteOpacity",(function(){return ze})),o.d(t,"onChangeElementIconBorderColorHex2",(function(){return ke})),o.d(t,"onChangeElementIconBorderColorPalette2",(function(){return He})),o.d(t,"onChangeElementIconBorderColorFields2",(function(){return _e})),o.d(t,"onChangeElementIconBorderHoverColorHex2",(function(){return Fe})),o.d(t,"onChangeElementIconBorderHoverColorPalette2",(function(){return Re})),o.d(t,"onChangeElementIconBorderHoverColorFields2",(function(){return Me})),o.d(t,"onChangeElementButtonBorderColorHex2",(function(){return We})),o.d(t,"onChangeElementButtonBorderColorPalette2",(function(){return Ie})),o.d(t,"onChangeElementButtonBorderColorFields2",(function(){return Ne})),o.d(t,"onChangeElementButtonBorderHoverColorHex2",(function(){return Ae})),o.d(t,"onChangeElementButtonBorderHoverColorPalette2",(function(){return De})),o.d(t,"onChangeElementButtonBorderHoverColorFields2",(function(){return Ve})),o.d(t,"onChangeBgColorHexButton2",(function(){return $e})),o.d(t,"onChangeBgColorPaletteButton2",(function(){return Ge})),o.d(t,"onChangeBgColorFieldsButton2",(function(){return Ue})),o.d(t,"onChangeHoverBgColorHexButton2",(function(){return Ke})),o.d(t,"onChangeHoverBgColorPaletteButton2",(function(){return qe})),o.d(t,"onChangeHoverBgColorFieldsButton2",(function(){return Ye})),o.d(t,"onChangeColorHexButtonIcon2",(function(){return Xe})),o.d(t,"onChangeColorPaletteButtonIcon2",(function(){return Ze})),o.d(t,"onChangeColorFieldsButtonIcon2",(function(){return Je})),o.d(t,"onChangeHoverColorHexButtonIcon2",(function(){return Qe})),o.d(t,"onChangeHoverColorPaletteButtonIcon2",(function(){return et})),o.d(t,"onChangeHoverColorFieldsButtonIcon2",(function(){return tt})),o.d(t,"onChangeMenuColorHex2",(function(){return ot})),o.d(t,"onChangeMenuColorPalette2",(function(){return nt})),o.d(t,"onChangeMenuColorFields2",(function(){return at})),o.d(t,"onChangeMenuHoverColorHex2",(function(){return rt})),o.d(t,"onChangeMenuHoverColorPalette2",(function(){return it})),o.d(t,"onChangeMenuHoverColorFields2",(function(){return lt})),o.d(t,"onChangeActiveColorHexSubMenu2",(function(){return $t})),o.d(t,"onChangeActiveColorPaletteSubMenu2",(function(){return Gt})),o.d(t,"onChangeActiveColorFieldsSubMenu2",(function(){return Ut})),o.d(t,"onChangeBgActiveColorHexSubMenu2",(function(){return Kt})),o.d(t,"onChangeBgActiveColorPaletteSubMenu2",(function(){return qt})),o.d(t,"onChangeBgActiveColorFieldsSubMenu2",(function(){return Yt})),o.d(t,"onChangeColorHexMMenu2",(function(){return st})),o.d(t,"onChangeColorPaletteMMenu2",(function(){return ct})),o.d(t,"onChangeColorFieldsMMenu2",(function(){return dt})),o.d(t,"onChangeHoverColorHexMMenu2",(function(){return ut})),o.d(t,"onChangeHoverColorPaletteMMenu2",(function(){return pt})),o.d(t,"onChangeHoverColorFieldsMMenu2",(function(){return bt})),o.d(t,"onChangeColorHexSubMenu2",(function(){return mt})),o.d(t,"onChangeColorPaletteSubMenu2",(function(){return ht})),o.d(t,"onChangeColorFieldsSubMenu2",(function(){return gt})),o.d(t,"onChangeHoverColorHexSubMenu2",(function(){return vt})),o.d(t,"onChangeHoverColorPaletteSubMenu2",(function(){return ft})),o.d(t,"onChangeHoverColorFieldsSubMenu2",(function(){return yt})),o.d(t,"onChangeColorHexIconMenu2",(function(){return Ot})),o.d(t,"onChangeColorPaletteIconMenu2",(function(){return St})),o.d(t,"onChangeColorFieldsIconMenu2",(function(){return Ct})),o.d(t,"onChangeTabletColorHexIconMMenu2",(function(){return xt})),o.d(t,"onChangeTabletColorPaletteIconMMenu2",(function(){return jt})),o.d(t,"onChangeTabletColorFieldsIconMMenu2",(function(){return Bt})),o.d(t,"onChangeMobileColorHexIconMMenu2",(function(){return Pt})),o.d(t,"onChangeMobileColorPaletteIconMMenu2",(function(){return wt})),o.d(t,"onChangeMobileColorFieldsIconMMenu2",(function(){return Tt})),o.d(t,"onChangeActiveColorHexMMenu2",(function(){return Xt})),o.d(t,"onChangeActiveColorPaletteMMenu2",(function(){return Zt})),o.d(t,"onChangeActiveColorFieldsMMenu2",(function(){return Jt})),o.d(t,"onChangeBgColorHexMMenu2",(function(){return zt})),o.d(t,"onChangeBgColorPaletteMMenu2",(function(){return Et})),o.d(t,"onChangeBgColorFieldsMMenu2",(function(){return kt})),o.d(t,"onChangeBgColorHexSubMenu2",(function(){return Ht})),o.d(t,"onChangeBgColorPaletteSubMenu2",(function(){return _t})),o.d(t,"onChangeBgColorFieldsSubMenu2",(function(){return Ft})),o.d(t,"onChangeBgHoverColorHexSubMenu2",(function(){return Rt})),o.d(t,"onChangeBgHoverColorPaletteSubMenu2",(function(){return Mt})),o.d(t,"onChangeBgHoverColorFieldsSubMenu2",(function(){return Lt})),o.d(t,"onChangeBorderColorHexMMenu2",(function(){return Wt})),o.d(t,"onChangeBorderColorPaletteMMenu2",(function(){return It})),o.d(t,"onChangeBorderColorFieldsMMenu2",(function(){return Nt})),o.d(t,"onChangeBorderColorHexSubMenu2",(function(){return At})),o.d(t,"onChangeBorderColorPaletteSubMenu2",(function(){return Dt})),o.d(t,"onChangeBorderColorFieldsSubMenu2",(function(){return Vt})),o.d(t,"onChangeTypography",(function(){return oo})),o.d(t,"onChangeTypographyTablet",(function(){return no})),o.d(t,"onChangeTypographyMobile",(function(){return ao})),o.d(t,"tabletSyncOnChange",(function(){return i.g})),o.d(t,"mobileSyncOnChange",(function(){return i.f})),o.d(t,"keySyncOnChange",(function(){return i.d})),o.d(t,"validateKeyByProperty",(function(){return i.h})),o.d(t,"onChangeTypography2",(function(){return so}));var n={};o.r(n),o.d(n,"saveOnChanges",(function(){return c})),o.d(n,"defaultValueKey",(function(){return i.a})),o.d(n,"defaultValueValue",(function(){return i.b})),o.d(n,"deviceStateValueByKey",(function(){return i.c})),o.d(n,"makeKeyByStateDevice",(function(){return i.e})),o.d(n,"onChangeBgImage",(function(){return v})),o.d(n,"onChangeBgImageBgOpacity",(function(){return f})),o.d(n,"onChangeBgImageDependencies",(function(){return y})),o.d(n,"onChangeBgImageColumnAndRowSyncMobile",(function(){return O})),o.d(n,"onChangeBorderStyle2",(function(){return x})),o.d(n,"onChangeElementBorderStyleDependencies2",(function(){return j})),o.d(n,"onChangeContainerBorderStyleDependencies2",(function(){return B})),o.d(n,"onChangeBorderColorHexAndOpacity2",(function(){return P})),o.d(n,"onChangeBorderColorHexAndOpacityPalette2",(function(){return w})),o.d(n,"onChangeElementBorderColorHexAndOpacityDependencies2",(function(){return T})),o.d(n,"onChangeContainerBorderColorHexAndOpacityDependencies2",(function(){return z})),o.d(n,"onChangeBorderColorHexAndOpacityColumnAndRowSyncTablet2",(function(){return E})),o.d(n,"onChangeBorderColorHexAndOpacityColumnAndRowSyncMobile2",(function(){return k})),o.d(n,"onChangeBorderColorPalette2",(function(){return H})),o.d(n,"onChangeBorderColorPaletteOpacity2",(function(){return _})),o.d(n,"onChangeBorderWidthType2",(function(){return F})),o.d(n,"onChangeBorderWidthGrouped2",(function(){return R})),o.d(n,"onChangeBorderWidthGroupedDependencies2",(function(){return M})),o.d(n,"onChangeBorderWidthUngrouped2",(function(){return L})),o.d(n,"onChangeBorderWidthUngroupedDependencies2",(function(){return W})),o.d(n,"onChangeBorderRadiusGrouped",(function(){return D})),o.d(n,"onChangeBorderRadiusGroupedDependencies",(function(){return V})),o.d(n,"onChangeBorderRadiusUngrouped",(function(){return $})),o.d(n,"onChangeBorderRadiusUngroupedDependencies",(function(){return G})),o.d(n,"onChangeColorHexAndOpacity",(function(){return U})),o.d(n,"onChangeColorHexAndOpacityPalette",(function(){return K})),o.d(n,"onChangeColorPalette",(function(){return q})),o.d(n,"onChangeColorPaletteOpacity",(function(){return Y})),o.d(n,"onChangeBgColorType2",(function(){return Z})),o.d(n,"onChangeGradientRange2",(function(){return J})),o.d(n,"onChangeBgColorHexAndOpacity2",(function(){return Q})),o.d(n,"onChangeBgColorHexAndOpacityPalette2",(function(){return ee})),o.d(n,"onChangeBgColorHexAndOpacityDependencies2",(function(){return te})),o.d(n,"onChangeBgColorHexAndOpacityColumnAndRowSyncMobile2",(function(){return oe})),o.d(n,"onChangeBgColorPalette2",(function(){return ne})),o.d(n,"onChangeBgColorPaletteOpacity2",(function(){return ae})),o.d(n,"onChangeBoxShadowHexAndOpacity2",(function(){return se})),o.d(n,"onChangeBoxShadowHexAndOpacityPalette2",(function(){return ce})),o.d(n,"onChangeBoxShadowHexAndOpacityDependencies2",(function(){return de})),o.d(n,"onChangeBoxShadowPalette2",(function(){return ue})),o.d(n,"onChangeBoxShadowPaletteOpacity2",(function(){return pe})),o.d(n,"onChangeBoxShadowType2",(function(){return ie})),o.d(n,"onChangeBoxShadowTypeDependencies2",(function(){return le})),o.d(n,"onChangeBoxShadowFields2",(function(){return be})),o.d(n,"onChangeBoxShadowFieldsDependencies2",(function(){return me})),o.d(n,"onChangeBoxShadowOpacity2",(function(){return he})),o.d(n,"onChangePaddingGrouped",(function(){return fe})),o.d(n,"onChangePaddingUngrouped",(function(){return ye})),o.d(n,"onChangeMarginGrouped",(function(){return Ce})),o.d(n,"onChangeMarginUngrouped",(function(){return xe})),o.d(n,"onChangeElementSectionBoxShadowHexAndOpacityDependencies",(function(){return je})),o.d(n,"onChangeElementProgressBarBg2ColorHexAndOpacity",(function(){return Be})),o.d(n,"onChangeElementProgressBarBg2ColorHexAndOpacityPalette",(function(){return Pe})),o.d(n,"onChangeElementProgressBarBg2ColorHexAndOpacityDependencies",(function(){return we})),o.d(n,"onChangeElementProgressBarBg2ColorPalette",(function(){return Te})),o.d(n,"onChangeElementProgressBarBg2ColorPaletteOpacity",(function(){return ze})),o.d(n,"onChangeElementIconBorderColorHex2",(function(){return ke})),o.d(n,"onChangeElementIconBorderColorPalette2",(function(){return He})),o.d(n,"onChangeElementIconBorderColorFields2",(function(){return _e})),o.d(n,"onChangeElementIconBorderHoverColorHex2",(function(){return Fe})),o.d(n,"onChangeElementIconBorderHoverColorPalette2",(function(){return Re})),o.d(n,"onChangeElementIconBorderHoverColorFields2",(function(){return Me})),o.d(n,"onChangeElementButtonBorderColorHex2",(function(){return We})),o.d(n,"onChangeElementButtonBorderColorPalette2",(function(){return Ie})),o.d(n,"onChangeElementButtonBorderColorFields2",(function(){return Ne})),o.d(n,"onChangeElementButtonBorderHoverColorHex2",(function(){return Ae})),o.d(n,"onChangeElementButtonBorderHoverColorPalette2",(function(){return De})),o.d(n,"onChangeElementButtonBorderHoverColorFields2",(function(){return Ve})),o.d(n,"onChangeBgColorHexButton2",(function(){return $e})),o.d(n,"onChangeBgColorPaletteButton2",(function(){return Ge})),o.d(n,"onChangeBgColorFieldsButton2",(function(){return Ue})),o.d(n,"onChangeHoverBgColorHexButton2",(function(){return Ke})),o.d(n,"onChangeHoverBgColorPaletteButton2",(function(){return qe})),o.d(n,"onChangeHoverBgColorFieldsButton2",(function(){return Ye})),o.d(n,"onChangeColorHexButtonIcon2",(function(){return Xe})),o.d(n,"onChangeColorPaletteButtonIcon2",(function(){return Ze})),o.d(n,"onChangeColorFieldsButtonIcon2",(function(){return Je})),o.d(n,"onChangeHoverColorHexButtonIcon2",(function(){return Qe})),o.d(n,"onChangeHoverColorPaletteButtonIcon2",(function(){return et})),o.d(n,"onChangeHoverColorFieldsButtonIcon2",(function(){return tt})),o.d(n,"onChangeMenuColorHex2",(function(){return ot})),o.d(n,"onChangeMenuColorPalette2",(function(){return nt})),o.d(n,"onChangeMenuColorFields2",(function(){return at})),o.d(n,"onChangeMenuHoverColorHex2",(function(){return rt})),o.d(n,"onChangeMenuHoverColorPalette2",(function(){return it})),o.d(n,"onChangeMenuHoverColorFields2",(function(){return lt})),o.d(n,"onChangeActiveColorHexSubMenu2",(function(){return $t})),o.d(n,"onChangeActiveColorPaletteSubMenu2",(function(){return Gt})),o.d(n,"onChangeActiveColorFieldsSubMenu2",(function(){return Ut})),o.d(n,"onChangeBgActiveColorHexSubMenu2",(function(){return Kt})),o.d(n,"onChangeBgActiveColorPaletteSubMenu2",(function(){return qt})),o.d(n,"onChangeBgActiveColorFieldsSubMenu2",(function(){return Yt})),o.d(n,"onChangeColorHexMMenu2",(function(){return st})),o.d(n,"onChangeColorPaletteMMenu2",(function(){return ct})),o.d(n,"onChangeColorFieldsMMenu2",(function(){return dt})),o.d(n,"onChangeHoverColorHexMMenu2",(function(){return ut})),o.d(n,"onChangeHoverColorPaletteMMenu2",(function(){return pt})),o.d(n,"onChangeHoverColorFieldsMMenu2",(function(){return bt})),o.d(n,"onChangeColorHexSubMenu2",(function(){return mt})),o.d(n,"onChangeColorPaletteSubMenu2",(function(){return ht})),o.d(n,"onChangeColorFieldsSubMenu2",(function(){return gt})),o.d(n,"onChangeHoverColorHexSubMenu2",(function(){return vt})),o.d(n,"onChangeHoverColorPaletteSubMenu2",(function(){return ft})),o.d(n,"onChangeHoverColorFieldsSubMenu2",(function(){return yt})),o.d(n,"onChangeColorHexIconMenu2",(function(){return Ot})),o.d(n,"onChangeColorPaletteIconMenu2",(function(){return St})),o.d(n,"onChangeColorFieldsIconMenu2",(function(){return Ct})),o.d(n,"onChangeTabletColorHexIconMMenu2",(function(){return xt})),o.d(n,"onChangeTabletColorPaletteIconMMenu2",(function(){return jt})),o.d(n,"onChangeTabletColorFieldsIconMMenu2",(function(){return Bt})),o.d(n,"onChangeMobileColorHexIconMMenu2",(function(){return Pt})),o.d(n,"onChangeMobileColorPaletteIconMMenu2",(function(){return wt})),o.d(n,"onChangeMobileColorFieldsIconMMenu2",(function(){return Tt})),o.d(n,"onChangeActiveColorHexMMenu2",(function(){return Xt})),o.d(n,"onChangeActiveColorPaletteMMenu2",(function(){return Zt})),o.d(n,"onChangeActiveColorFieldsMMenu2",(function(){return Jt})),o.d(n,"onChangeBgColorHexMMenu2",(function(){return zt})),o.d(n,"onChangeBgColorPaletteMMenu2",(function(){return Et})),o.d(n,"onChangeBgColorFieldsMMenu2",(function(){return kt})),o.d(n,"onChangeBgColorHexSubMenu2",(function(){return Ht})),o.d(n,"onChangeBgColorPaletteSubMenu2",(function(){return _t})),o.d(n,"onChangeBgColorFieldsSubMenu2",(function(){return Ft})),o.d(n,"onChangeBgHoverColorHexSubMenu2",(function(){return Rt})),o.d(n,"onChangeBgHoverColorPaletteSubMenu2",(function(){return Mt})),o.d(n,"onChangeBgHoverColorFieldsSubMenu2",(function(){return Lt})),o.d(n,"onChangeBorderColorHexMMenu2",(function(){return Wt})),o.d(n,"onChangeBorderColorPaletteMMenu2",(function(){return It})),o.d(n,"onChangeBorderColorFieldsMMenu2",(function(){return Nt})),o.d(n,"onChangeBorderColorHexSubMenu2",(function(){return At})),o.d(n,"onChangeBorderColorPaletteSubMenu2",(function(){return Dt})),o.d(n,"onChangeBorderColorFieldsSubMenu2",(function(){return Vt})),o.d(n,"onChangeTypography",(function(){return oo})),o.d(n,"onChangeTypographyTablet",(function(){return no})),o.d(n,"onChangeTypographyMobile",(function(){return ao})),o.d(n,"tabletSyncOnChange",(function(){return i.g})),o.d(n,"mobileSyncOnChange",(function(){return i.f})),o.d(n,"keySyncOnChange",(function(){return i.d})),o.d(n,"validateKeyByProperty",(function(){return i.h})),o.d(n,"onChangeTypography2",(function(){return so}));var a=o(2),r=o(10),i=o(25);function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function s(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?l(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function c(e){return e.onChange.reduce((t,o)=>{const a=n[o](e);return Object.assign(t,a)},{})}function d({v:e,device:t,state:o,me:n,childs:a,value:l,dragEnd:c=!0,tempZero:d=!1}){const u=e=>Object(i.a)({key:e,device:t,state:o});let p={};var b;return b=n,(Object(i.b)({v:e,key:b,device:t,state:o})!==l||c)&&(p=s(s({[u(n)]:l},a?a.reduce((e,t)=>(e[u(t)]=l,e),{}):{}),c&&(d||!d&&0!==l&&""!==l)?s({[u("temp"+Object(r.c)(n))]:l},a?a.reduce((e,t)=>(e[u("temp"+Object(r.c)(t))]=l,e),{}):{}):{})),p}function u({v:e,device:t,state:o,me:n,childs:a,current:l,value:c,dragEnd:d=!0,tempZero:u=!1}){const p=e=>Object(i.a)({key:e,device:t,state:o});let b={};var m;return m=l,(Object(i.b)({v:e,key:m,device:t,state:o})!==c||d)&&(b=s(s({[p(l)]:c},d&&(u||!u&&0!==c&&""!==c)?{[p("temp"+Object(r.c)(l))]:c}:{}),a.filter(e=>e!==l).every(t=>e[t]===c)?s({[p(n)]:c},d&&(u||!u&&0!==c&&""!==c)?{[p("temp"+Object(r.c)(n))]:c}:{}):{})),b}function p({v:e,device:t,state:o,parent:n,childs:a,value:l,sliderDragEnd:c=!0,temp:d=!1,tempZero:u=!1}){const p=s({[Object(i.a)({key:n,device:t,state:o})]:l},a.reduce((e,n)=>(e[Object(i.a)({key:n,device:t,state:o})]=l,e),{})),b=d&&!u?s({[Object(i.a)({key:"temp"+Object(r.c)(n),device:t,state:o})]:l>0&&c?l:Object(i.b)({v:e,key:"temp"+Object(r.c)(n),device:t,state:o})},a.reduce((n,a)=>(n[Object(i.a)({key:"temp"+Object(r.c)(a),device:t,state:o})]=l>0&&c?l:Object(i.b)({v:e,key:"temp"+Object(r.c)(a),device:t,state:o}),n),{})):d?s({[Object(i.a)({key:"temp"+Object(r.c)(n),device:t,state:o})]:l},a.reduce((e,n)=>(e[Object(i.a)({key:"temp"+Object(r.c)(n),device:t,state:o})]=l,e),{})):{};return Object.assign(p,b)}function b({v:e,device:t,state:o,parent:n,childs:a,current:l,value:s,temp:c=!1,tempZero:d=!1}){const u=a.filter(e=>e!==l).every(t=>e[t]===s)?s:Object(i.b)({v:e,key:n,device:t,state:o}),p=a.filter(e=>e!==l).every(t=>e[t]===s)?s:s>0?Object(i.b)({v:e,key:"temp"+Object(r.c)(n),device:t,state:o}):Object(i.b)({v:e,key:n,device:t,state:o});return c&&d?{[Object(i.a)({key:n,device:t,state:o})]:u,[Object(i.a)({key:"temp"+Object(r.c)(n),device:t,state:o})]:p}:{[Object(i.a)({key:n,device:t,state:o})]:u}}function m({v:e,device:t,state:o,childs:n,current:a,value:l,temp:c=!1}){return c?s({[Object(i.a)({key:a,device:t,state:o})]:l,[Object(i.a)({key:"temp"+Object(r.c)(a),device:t,state:o})]:l},n.filter(e=>e!==a).reduce((n,a)=>(n[Object(i.a)({key:"temp"+Object(r.c)(a),device:t,state:o})]=0===e[a]?0:Object(i.b)({v:e,key:"temp"+Object(r.c)(a),device:t,state:o}),n),{})):{[Object(i.a)({key:a,device:t,state:o})]:l}}function h({v:e,device:t="desktop",state:o="normal",value:n,dependencies:a}){const l=n=>Object(i.b)({v:e,key:n,device:t,state:o});return Object.entries(a).reduce((a,[s,c])=>{const d=!(0!==n&&""!==n||void 0===c.nullValue||!(c.nullValue.length>0&&c.nullValue.every(t=>""===e[t]||0===e[t])||0===c.nullValue.length)),u=!(0===n||""===n||0!==l(s)&&""!==l(s)&&"off"!==l("boxShadow")||!(c.tempValue.length>0&&c.tempValue.every(t=>""===e[t]||0===e[t])||0===c.tempValue.length)),p=null===l(s)||void 0===l(s);return p&&console.log("onChange "+s+" "+l(s)),p||(a[(e=>Object(i.a)({key:e,device:t,state:o}))(s)]=d?"string"===c.type?"":0:l(u?"temp"+Object(r.c)(s):s)),Object.assign(a,c.childs.reduce((a,l)=>(null===e[Object(i.a)({key:l,device:t,state:o})]||void 0===e[Object(i.a)({key:l,device:t,state:o})]||(a[Object(i.a)({key:l,device:t,state:o})]=0!==n&&""!==n||void 0===c.nullValue||!(c.nullValue.length>0&&c.nullValue.every(t=>""===e[t]||0===e[t])||0===c.nullValue.length)?(n>0||""!==n)&&c.childs.every(n=>0===Object(i.b)({v:e,key:"temp"+Object(r.c)(n),device:t,state:o}))?Object(i.b)({v:e,key:"temp"+Object(r.c)(s),device:t,state:o}):(n>0||""!==n)&&(c.tempValue.length>0&&c.tempValue.every(t=>""===e[t]||0===e[t])||0===c.tempValue.length)?Object(i.b)({v:e,key:"temp"+Object(r.c)(l),device:t,state:o}):Object(i.b)({v:e,key:l,device:t,state:o}):"string"===c.type?"":0),a),{}),c.childs.reduce((a,l)=>(null===e[Object(i.a)({key:"temp"+Object(r.c)(l),device:t,state:o})]||void 0===e[Object(i.a)({key:"temp"+Object(r.c)(l),device:t,state:o})]||(a[Object(i.a)({key:"temp"+Object(r.c)(l),device:t,state:o})]=(n>0||""!==n)&&c.childs.every(n=>0===Object(i.b)({v:e,key:"temp"+Object(r.c)(n),device:t,state:o}))?Object(i.b)({v:e,key:s,device:t,state:o}):Object(i.b)({v:e,key:"temp"+Object(r.c)(l),device:t,state:o})),a),{})),a},{})}function g({v:e,device:t,state:o,childs:n,current:a,value:l,dependencies:s}){return Object.entries(s).reduce((s,[c,d])=>(null===e[c]||(s[Object(i.a)({key:c,device:t,state:o})]=(0===l||""===l)&&(n.length>0&&n.filter(e=>e!==a).every(t=>0===e[t])||0===n.length)&&void 0!==d.nullValue&&(d.nullValue.length>0&&d.nullValue.every(t=>""===e[t]||0===e[t])||0===d.nullValue.length)?"string"===d.type?"":0:(l>0||""!==l)&&(d.tempValue.length>0&&d.tempValue.every(t=>""===e[t]||0===e[t])||0===d.tempValue.length)?Object(i.b)({v:e,key:"temp"+Object(r.c)(c),device:t,state:o}):Object(i.b)({v:e,key:c,device:t,state:o})),Object.assign(s,d.childs.reduce((s,c)=>(null===e[c]||(s[Object(i.a)({key:c,device:t,state:o})]=(0===l||""===l)&&(n.length>0&&n.filter(e=>e!==a).every(t=>0===e[t])||0===n.length)&&(d.nullValue.length>0&&d.nullValue.every(t=>""===e[t]||0===e[t])||0===d.nullValue.length)?"string"===d.type?"":0:(l>0||""!==l)&&0===d.tempValue.length?Object(i.b)({v:e,key:"temp"+Object(r.c)(c),device:t,state:o}):Object(i.b)({v:e,key:c,device:t,state:o})),s),{})),s),{})}function v({device:e,state:t,width:o,height:n,extension:a,src:r,x:l,y:s,population:c,isChanged:d}){return"image"===d?{[Object(i.a)({key:"bgImageWidth",device:e,state:t})]:o,[Object(i.a)({key:"bgImageHeight",device:e,state:t})]:n,[Object(i.a)({key:"bgImageExtension",device:e,state:t})]:a,[Object(i.a)({key:"bgImageSrc",device:e,state:t})]:r}:"population"===d?{[Object(i.a)({key:"bgPopulation",device:e,state:t})]:c}:{[Object(i.a)({key:"bgPositionX",device:e,state:t})]:l,[Object(i.a)({key:"bgPositionY",device:e,state:t})]:s}}function f({v:e,device:t,state:o,src:n,isChanged:a}){const r=""!==n&&1===Object(i.b)({v:e,key:"bgColorOpacity",device:t,state:o})?.9:Object(i.b)({v:e,key:"bgColorOpacity",device:t,state:o}),l=""!==n&&1===Object(i.b)({v:e,key:"bgColorOpacity",device:t,state:o})?.9:Object(i.b)({v:e,key:"tempBgColorOpacity",device:t,state:o});return"image"===a?{[Object(i.a)({key:"bgColorOpacity",device:t,state:o})]:r,[Object(i.a)({key:"tempBgColorOpacity",device:t,state:o})]:l}:{}}function y({v:e,device:t,state:o,src:n}){return h({v:e,device:t,state:o,value:n,dependencies:{borderRadius:{childs:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nullValue:["bgColorOpacity","borderColorOpacity"],tempValue:[]}}})}function O({v:e,device:t,src:o}){return"desktop"===t||"mobile"===t?{mobilePaddingRight:o?e.tempMobilePaddingRight:0,mobilePaddingLeft:o?e.tempMobilePaddingLeft:0}:{}}function S(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function C(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?S(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function x({v:e,device:t,state:o,borderStyle:n,prefix:a=""}){const l=e=>Object(i.a)({key:e,device:t,state:o}),s=Object(r.b)(a,"border"),c=Object(r.b)(s,"style"),d=Object(r.b)("temp",c);return{[l(c)]:n,[l(d)]:""!==n?n:(u=d,Object(i.b)({v:e,key:u,device:t,state:o}))};var u}function j({v:e,device:t,state:o,borderStyle:n,prefix:a=""}){const i=Object(r.b)(a,"border");return h({v:e,device:t,state:o,value:n,dependencies:{[Object(r.b)(i,"colorOpacity")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(i,"colorPalette")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(i,"width")]:{childs:[Object(r.b)(i,"topWidth"),Object(r.b)(i,"rightWidth"),Object(r.b)(i,"bottomWidth"),Object(r.b)(i,"leftWidth")],nullValue:[],tempValue:[]}}})}function B({v:e,device:t,state:o,borderStyle:n}){return h({v:e,device:t,state:o,value:n,dependencies:{borderColorOpacity:{childs:[],nullValue:[],tempValue:[]},borderColorPalette:{childs:[],nullValue:[],tempValue:[]},borderWidth:{childs:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],nullValue:[],tempValue:[]},borderRadius:{childs:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nullValue:["bgColorOpacity","bgImageSrc"],tempValue:[]}}})}function P({v:e,device:t,state:o,hex:n,opacity:a,prefix:l="",isChanged:s="hex",opacityDragEnd:c=!1}){const d=e=>Object(i.a)({key:e,device:t,state:o}),u=Object(r.b)(l,"border"),p=Object(r.b)(u,"colorHex"),b=Object(r.b)(u,"colorOpacity"),m=Object(r.b)("temp",b),h=(a=I({v:e,device:t,state:o,opacity:a,prefix:l,isChanged:s}))>0&&c?a:(g=m,Object(i.b)({v:e,key:g,device:t,state:o}));var g;return{[d(p)]:n,[d(b)]:a,[d(m)]:h}}function w({v:e,device:t,state:o,opacity:n,prefix:a="",isChanged:l="hex"}){const s=e=>Object(i.a)({key:e,device:t,state:o}),c=n=>Object(i.b)({v:e,key:n,device:t,state:o}),d=Object(r.b)(a,"border"),u=Object(r.b)(d,"colorPalette"),p=Object(r.b)("temp",u);n=I({v:e,device:t,state:o,opacity:n,prefix:a,isChanged:l});const b="hex"===l||0===n?"":c(n>0?p:u),m="hex"===l?"":c(p);return{[s(u)]:b,[s(p)]:m}}function T({v:e,device:t,state:o,opacity:n,isChanged:a,prefix:i=""}){const l=Object(r.b)(i,"border"),s={[Object(r.b)(l,"style")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(l,"width")]:{childs:[Object(r.b)(l,"topWidth"),Object(r.b)(l,"rightWidth"),Object(r.b)(l,"bottomWidth"),Object(r.b)(l,"leftWidth")],nullValue:[],tempValue:[]}};return h({v:e,device:t,state:o,value:n=I({v:e,device:t,state:o,opacity:n,prefix:i,isChanged:a}),dependencies:s})}function z({v:e,device:t,state:o,opacity:n,isChanged:a}){return h({v:e,device:t,state:o,value:n=I({v:e,device:t,state:o,opacity:n,isChanged:a}),dependencies:{borderStyle:{childs:[],nullValue:[],tempValue:[]},borderWidth:{childs:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],nullValue:[],tempValue:[]},borderRadius:{childs:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nullValue:["bgColorOpacity","bgImageSrc"],tempValue:[]}}})}function E({v:e,device:t,opacity:o,isChanged:n}){if("desktop"===t||"tablet"===t){return{tabletPaddingRight:0===(o=I({v:e,device:t,opacity:o,isChanged:n}))?0:"hex"===n||o>0?e.tempTabletPaddingRight:e.tabletPaddingRight,tabletPaddingLeft:0===o?0:"hex"===n||o>0?e.tempTabletPaddingLeft:e.tabletPaddingLeft}}return{}}function k({v:e,device:t,opacity:o,isChanged:n}){if("desktop"===t||"mobile"===t){return{mobilePaddingRight:0===(o=I({v:e,device:t,opacity:o,isChanged:n}))?0:"hex"===n||o>0?e.tempMobilePaddingRight:e.mobilePaddingRight,mobilePaddingLeft:0===o?0:"hex"===n||o>0?e.tempMobilePaddingLeft:e.mobilePaddingLeft}}return{}}function H({device:e,state:t,palette:o,prefix:n=""}){const a=o=>Object(i.a)({key:o,device:e,state:t}),l=Object(r.b)(n,"border"),s=Object(r.b)(l,"colorPalette"),c=Object(r.b)("temp",s);return{[a(s)]:o,[a(c)]:o}}function _({v:e,device:t,state:o,opacity:n,isChanged:a,prefix:l=""}){const s=Object(r.b)(l,"border"),c=Object(r.b)(s,"colorOpacity");return n=I({v:e,device:t,state:o,opacity:n,prefix:l,isChanged:a}),{[(d=c,Object(i.a)({key:d,device:t,state:o}))]:n};var d}function F({device:e,state:t,type:o,prefix:n=""}){const a=Object(r.b)(n,"border"),l=Object(r.b)(a,"widthType");return{[(s=l,Object(i.a)({key:s,device:e,state:t}))]:o};var s}function R({v:e,device:t,state:o,value:n,sliderDragEnd:a,prefix:i=""}){const l=Object(r.b)(i,"border");return p({v:e,device:t,state:o,parent:Object(r.b)(l,"width"),childs:[Object(r.b)(l,"topWidth"),Object(r.b)(l,"rightWidth"),Object(r.b)(l,"bottomWidth"),Object(r.b)(l,"leftWidth")],value:n,sliderDragEnd:a,temp:!0,tempZero:!1})}function M({v:e,device:t,state:o,value:n,prefix:a=""}){const i=Object(r.b)(a,"border"),l=Object(r.b)(i,"style"),s=Object(r.b)(i,"radius"),c=Object(r.b)(i,"colorOpacity"),d=Object(r.b)(i,"colorPalette");return h({v:e,device:t,state:o,value:n,dependencies:{[l]:{childs:[],nullValue:[],tempValue:[]},[s]:{childs:[Object(r.b)(i,"topLeftRadius"),Object(r.b)(i,"topRightRadius"),Object(r.b)(i,"bottomLeftRadius"),Object(r.b)(i,"bottomRightRadius")],nullValue:["bgColorOpacity","bgImageSrc"],tempValue:[]},[c]:{childs:[],nullValue:[],tempValue:[]},[d]:{childs:[],nullValue:[],tempValue:[]}}})}function L({v:e,device:t,state:o,current:n,value:a,prefix:i=""}){const l=Object(r.b)(i,"border"),s=Object(r.b)(l,"width"),c=[Object(r.b)(l,"topWidth"),Object(r.b)(l,"rightWidth"),Object(r.b)(l,"bottomWidth"),Object(r.b)(l,"leftWidth")];return C(C({},m({v:e,device:t,state:o,childs:c,current:n,value:a,temp:!0})),b({v:e,device:t,state:o,parent:s,childs:c,current:n,value:a,temp:!0}))}function W({v:e,device:t,state:o,current:n,value:a,prefix:i=""}){const l=Object(r.b)(i,"border"),s=Object(r.b)(l,"width"),c=[Object(r.b)(l,"topWidth"),Object(r.b)(l,"rightWidth"),Object(r.b)(l,"bottomWidth"),Object(r.b)(l,"leftWidth")],d=Object(r.b)(l,"style"),u=Object(r.b)(l,"radius"),p=Object(r.b)(l,"colorOpacity"),b=Object(r.b)(l,"colorPalette");return g({v:e,device:t,state:o,parent:s,childs:c,current:n,value:a,dependencies:{[d]:{childs:[],nullValue:[],tempValue:[]},[u]:{childs:[Object(r.b)(l,"topLeftRadius"),Object(r.b)(l,"topRightRadius"),Object(r.b)(l,"bottomLeftRadius"),Object(r.b)(l,"bottomRightRadius")],nullValue:["bgColorOpacity","bgImageSrc"],tempValue:[]},[p]:{childs:[],nullValue:[],tempValue:[]},[b]:{childs:[],nullValue:[],tempValue:[]}}})}function I({v:e,device:t,state:o,prefix:n="",opacity:a,isChanged:l="hex"}){const s=n=>Object(i.b)({v:e,key:n,device:t,state:o}),c=Object(r.b)(n,"border"),d=Object(r.b)(c,"colorOpacity"),u=Object(r.b)("temp",d);return"hex"!==l&&"palette"!==l||0!==s(d)?void 0===a?s(d):a:s(u)}function N(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function A(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?N(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):N(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function D({v:e,device:t,state:o,value:n,sliderDragEnd:a,prefix:i=""}){return p({v:e,device:t,state:o,parent:Object(r.b)(i,"borderRadius"),childs:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"].map(e=>Object(r.b)(i,e)),value:n,sliderDragEnd:a,temp:!0,tempZero:!0})}function V({v:e,device:t,state:o,value:n,prefix:a=""}){return h({v:e,device:t,state:o,value:n,tempZero:!0,dependencies:{borderStyle:{childs:[],tempValue:["bgColorOpacity","bgImageSrc"]},borderWidth:{childs:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"].map(e=>Object(r.b)(a,e)),tempValue:["bgColorOpacity","bgImageSrc"]},borderColorOpacity:{childs:[],tempValue:["bgColorOpacity","bgImageSrc"]},borderColorPalette:{childs:[],tempValue:["bgColorOpacity","bgImageSrc"]}}})}function $({v:e,device:t,state:o,value:n,current:a,prefix:i=""}){const l=Object(r.b)(i,a),s=Object(r.b)(i,"borderRadius"),c=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"].map(e=>Object(r.b)(i,e));return A(A({},m({v:e,device:t,childs:c,state:o,current:l,value:n,temp:!0})),b({v:e,device:t,state:o,parent:s,childs:c,current:l,value:n,temp:!0,tempZero:!0}))}function G({v:e,device:t,state:o,value:n,current:a,prefix:i=""}){const l=Object(r.b)(i,a);return A({},g({v:e,device:t,state:o,parent:Object(r.b)(i,"borderRadius"),childs:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"].map(e=>Object(r.b)(i,e)),current:l,value:n,dependencies:{borderStyle:{childs:[],tempValue:["bgColorOpacity","bgImageSrc"]},borderWidth:{childs:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"].map(e=>Object(r.b)(i,e)),tempValue:["bgColorOpacity","bgImageSrc"]},borderColorOpacity:{childs:[],tempValue:["bgColorOpacity","bgImageSrc"]},borderColorPalette:{childs:[],tempValue:["bgColorOpacity","bgImageSrc"]}}}))}function U({v:e,device:t,state:o,prefix:n="color",hex:a,opacity:l,isChanged:s="hex",opacityDragEnd:c=!1}){const d=e=>Object(i.a)({key:e,device:t,state:o}),u="temp"+Object(r.c)(n),p=(l=X({v:e,device:t,state:o,prefix:n,opacity:l,isChanged:s}))>0&&c?l:(b=Object(r.b)(u,"opacity"),Object(i.b)({v:e,key:b,device:t,state:o}));var b;return{[d(Object(r.b)(n,"hex"))]:a,[d(Object(r.b)(n,"opacity"))]:l,[d(Object(r.b)(u,"opacity"))]:p}}function K({v:e,device:t,state:o,prefix:n="color",opacity:a,isChanged:l="hex"}){const s=e=>Object(i.a)({key:e,device:t,state:o}),c=n=>Object(i.b)({v:e,key:n,device:t,state:o}),d="temp"+Object(r.c)(n);a=X({v:e,device:t,state:o,prefix:n,opacity:a,isChanged:l});const u="hex"===l||0===a?"":c(a>0?Object(r.b)(d,"palette"):Object(r.b)(n,"palette")),p="hex"===l?"":c(Object(r.b)(d,"palette"));return{[s(Object(r.b)(n,"palette"))]:u,[s(Object(r.b)(d,"palette"))]:p}}function q({device:e,state:t,prefix:o="color",palette:n}){const a=o=>Object(i.a)({key:o,device:e,state:t}),l="temp"+Object(r.c)(o);return{[a(Object(r.b)(o,"palette"))]:n,[a(Object(r.b)(l,"palette"))]:n}}function Y({v:e,device:t,state:o,prefix:n="color",opacity:a,isChanged:l="hex"}){return a=X({v:e,device:t,state:o,prefix:n,opacity:a,isChanged:l}),{[(s=Object(r.b)(n,"opacity"),Object(i.a)({key:s,device:t,state:o}))]:a};var s}function X({v:e,device:t,state:o,prefix:n="color",opacity:a,isChanged:l="hex"}){const s=n=>Object(i.b)({v:e,key:n,device:t,state:o}),c="temp"+Object(r.c)(n);return"hex"===l&&0===s(Object(r.b)(n,"opacity"))?s(Object(r.b)(c,"opacity")):void 0===a?s(Object(r.b)(n,"opacity")):a}function Z({v:e,device:t,state:o,bgColorType:n}){const a=e=>Object(i.a)({key:e,device:t,state:o});return{[a("bgColorType")]:n,[a("gradientActivePointer")]:"solid"===n?"startPointer":(r="gradientActivePointer",Object(i.b)({v:e,key:r,device:t,state:o}))};var r}function J({device:e,state:t,startPointer:o,finishPointer:n,activePointer:a}){const r=o=>Object(i.a)({key:o,device:e,state:t});return{[r("gradientStartPointer")]:o,[r("gradientFinishPointer")]:n,[r("gradientActivePointer")]:a}}function Q({v:e,device:t,state:o,prefix:n,hex:a,opacity:l,isChanged:s="hex",opacityDragEnd:c=!1}){const d=e=>Object(i.a)({key:e,device:t,state:o}),u="temp"+Object(r.c)(n),p=(l=re({v:e,device:t,state:o,prefix:n,opacity:l,isChanged:s}))>0&&c?l:(b=Object(r.b)(u,"colorOpacity"),Object(i.b)({v:e,key:b,device:t,state:o}));var b;return{[d(Object(r.b)(n,"colorHex"))]:a,[d(Object(r.b)(n,"colorOpacity"))]:l,[d(Object(r.b)(u,"colorOpacity"))]:p}}function ee({v:e,device:t,state:o,prefix:n,opacity:a,isChanged:l="hex"}){const s=e=>Object(i.a)({key:e,device:t,state:o}),c=n=>Object(i.b)({v:e,key:n,device:t,state:o}),d="temp"+Object(r.c)(n);a=re({v:e,device:t,state:o,prefix:n,opacity:a,isChanged:l});const u="hex"===l||0===a?"":c(a>0?Object(r.b)(d,"colorPalette"):Object(r.b)(n,"colorPalette")),p="hex"===l?"":c(Object(r.b)(d,"colorPalette"));return{[s(Object(r.b)(n,"colorPalette"))]:u,[s(Object(r.b)(d,"colorPalette"))]:p}}function te({v:e,device:t,state:o,prefix:n,opacity:a,isChanged:r="hex"}){return h({v:e,device:t,state:o,value:a=re({v:e,device:t,state:o,prefix:n,opacity:a,isChanged:r}),dependencies:{borderRadius:{childs:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nullValue:["bgImageSrc","borderColorOpacity"],tempValue:[]}}})}function oe({v:e,device:t,prefix:o,opacity:n,isChanged:a="hex"}){if("desktop"===t||"mobile"===t){return{mobilePaddingRight:0===(n=re({v:e,device:t,prefix:o,opacity:n,isChanged:a}))?0:"hex"===a||n>0?e.tempMobilePaddingRight:e.mobilePaddingRight,mobilePaddingLeft:0===n?0:"hex"===a||n>0?e.tempMobilePaddingLeft:e.mobilePaddingLeft}}return{}}function ne({device:e,state:t,prefix:o,palette:n}){const a=o=>Object(i.a)({key:o,device:e,state:t}),l="temp"+Object(r.c)(o);return{[a(Object(r.b)(o,"colorPalette"))]:n,[a(Object(r.b)(l,"colorPalette"))]:n}}function ae({v:e,device:t,state:o,prefix:n,opacity:a,isChanged:l="hex"}){return a=re({v:e,device:t,state:o,prefix:n,opacity:a,isChanged:l}),{[(s=Object(r.b)(n,"colorOpacity"),Object(i.a)({key:s,device:t,state:o}))]:a};var s}function re({v:e,device:t,state:o,prefix:n,opacity:a,isChanged:l="hex"}){const s=n=>Object(i.b)({v:e,key:n,device:t,state:o}),c="temp"+Object(r.c)(n);return"hex"!==l&&"palette"!==l||0!==s(Object(r.b)(n,"colorOpacity"))||1!==s(Object(r.b)(c,"colorOpacity"))||""===s("bgImageSrc")?"hex"!==l&&"palette"!==l||0!==s(Object(r.b)(n,"colorOpacity"))?void 0===a?s(Object(r.b)(n,"colorOpacity")):a:s(Object(r.b)(c,"colorOpacity")):.9}function ie({v:e,device:t,state:o,boxShadowType:n,prefix:a=""}){const l=e=>Object(i.a)({key:e,device:t,state:o}),s=Object(r.b)(a,"boxShadow"),c=Object(r.b)("temp",s);return{[l(s)]:n,[l(c)]:""!==n?n:(d=c,Object(i.b)({v:e,key:d,device:t,state:o}))};var d}function le({v:e,device:t,state:o,boxShadowType:n,prefix:a=""}){const i=Object(r.b)(a,"boxShadow");return h({v:e,device:t,state:o,value:n,dependencies:{[Object(r.b)(i,"colorOpacity")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(i,"colorPalette")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(i,"blur")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(i,"spread")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(i,"vertical")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(i,"horizontal")]:{childs:[],nullValue:[],tempValue:[]}}})}function se({v:e,device:t,state:o,hex:n,opacity:a,prefix:l="",isChanged:s="hex",opacityDragEnd:c=!1}){const d=e=>Object(i.a)({key:e,device:t,state:o}),u=Object(r.b)(l,"boxShadow"),p=Object(r.b)(u,"colorHex"),b=Object(r.b)(u,"colorOpacity"),m=Object(r.b)("temp",b),h=(a=he({v:e,device:t,state:o,opacity:a,prefix:l,isChanged:s}))>0&&c?a:(g=m,Object(i.b)({v:e,key:g,device:t,state:o}));var g;return{[d(p)]:n,[d(b)]:a,[d(m)]:h}}function ce({v:e,device:t,state:o,opacity:n,prefix:a="",isChanged:l="hex"}){const s=e=>Object(i.a)({key:e,device:t,state:o}),c=n=>Object(i.b)({v:e,key:n,device:t,state:o}),d=Object(r.b)(a,"boxShadow"),u=Object(r.b)(d,"colorPalette"),p=Object(r.b)("temp",u);n=he({v:e,device:t,state:o,opacity:n,isChanged:l});const b="hex"===l||0===n?"":c(n>0?p:u),m="hex"===l?"":c(p);return{[s(u)]:b,[s(p)]:m}}function de({v:e,device:t,state:o,opacity:n,isChanged:a,prefix:i=""}){const l=Object(r.b)(i,"boxShadow"),s={[l]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(l,"blur")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(l,"spread")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(l,"vertical")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(l,"horizontal")]:{childs:[],nullValue:[],tempValue:[]}};return h({v:e,device:t,state:o,value:n=he({v:e,device:t,state:o,opacity:n,prefix:i,isChanged:a}),dependencies:s})}function ue({device:e,state:t,palette:o,prefix:n=""}){const a=o=>Object(i.a)({key:o,device:e,state:t}),l=Object(r.b)(n,"boxShadow"),s=Object(r.b)(l,"colorPalette"),c=Object(r.b)("temp",s);return{[a(s)]:o,[a(c)]:o}}function pe({v:e,device:t,state:o,opacity:n,isChanged:a,prefix:l=""}){const s=Object(r.b)(l,"boxShadow"),c=Object(r.b)(s,"colorOpacity");return n=he({v:e,device:t,state:o,opacity:n,prefix:l,isChanged:a}),{[(d=c,Object(i.a)({key:d,device:t,state:o}))]:n};var d}function be({device:e,state:t,boxShadowBlur:o=0,boxShadowSpread:n=0,boxShadowVertical:a=0,boxShadowHorizontal:l=0,prefix:s=""}){const c=o=>Object(i.a)({key:o,device:e,state:t}),d=Object(r.b)(s,"boxShadow"),u=Object(r.b)(d,"blur"),p=Object(r.b)(d,"spread"),b=Object(r.b)(d,"vertical"),m=Object(r.b)(d,"horizontal"),h=Object(r.b)("temp",u),g=Object(r.b)("temp",p),v=Object(r.b)("temp",b),f=Object(r.b)("temp",m);return{[c(u)]:o,[c(h)]:o,[c(p)]:n,[c(g)]:n,[c(b)]:a,[c(v)]:a,[c(m)]:l,[c(f)]:l}}function me({v:e,device:t,state:o,boxShadowBlur:n=0,boxShadowSpread:a=0,boxShadowVertical:i=0,boxShadowHorizontal:l=0,prefix:s=""}){const c=Math.max(n,a,i,l),d=Object(r.b)(s,"boxShadow");return h({v:e,device:t,state:o,value:c,dependencies:{[d]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(d,"colorOpacity")]:{childs:[],nullValue:[],tempValue:[]},[Object(r.b)(d,"colorPalette")]:{childs:[],nullValue:[],tempValue:[]}}})}function he({v:e,device:t,state:o,prefix:n="",opacity:a,isChanged:l="hex"}){const s=n=>Object(i.b)({v:e,key:n,device:t,state:o}),c=Object(r.b)(n,"boxShadow"),d=Object(r.b)(c,"colorOpacity"),u=Object(r.b)("temp",d);return"hex"!==l&&"palette"!==l||0!==s(d)?void 0===a?s(d):a:s(u)}function ge(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ve(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ge(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function fe({v:e,device:t,state:o,me:n="padding",childs:a,value:i,suffix:l,sliderDragEnd:s,prefix:c=""}){const u=[],p=[],b=Object(r.b)(c,n);return a.forEach(e=>{const t=Object(r.b)(c,e);u.push(t),p.push(Object(r.b)(t,"suffix"))}),ve(ve({},d({v:e,device:t,state:o,me:b+"Suffix",childs:p,value:l,dragEnd:s})),d({v:e,device:t,state:o,childs:u,value:i,me:b,dragEnd:s}))}function ye({v:e,device:t,state:o,value:n,suffix:a,sliderDragEnd:i,childs:l,current:s,me:c="padding",prefix:d=""}){const p=[],b=[],m=Object(r.b)(d,c),h=Object(r.b)(d,s);return l.forEach(e=>{const t=Object(r.b)(d,e);p.push(t),b.push(Object(r.b)(t,"suffix"))}),ve(ve({},u({v:e,device:t,state:o,me:m+"Suffix",childs:b,current:h+"Suffix",value:a,dragEnd:i})),u({v:e,device:t,state:o,childs:p,current:h,value:n,me:m,dragEnd:i}))}function Oe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Se(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Oe(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Ce({v:e,device:t,state:o,value:n,suffix:a}){const r=["marginTop","marginRight","marginBottom","marginLeft"],i=[];for(var l=0;l<r.length;l++)i[l]=r[l]+"Suffix";return Se(Se({},p({v:e,device:t,state:o,parent:"marginSuffix",childs:i,value:a})),p({v:e,device:t,state:o,parent:"margin",childs:r,value:n}))}function xe({v:e,device:t,state:o,current:n,value:a,suffix:r}){const l=["marginTop","marginRight","marginBottom","marginLeft"],s=[];for(var c=0;c<l.length;c++)s[c]=l[c]+"Suffix";return Se(Se(Se({[""+Object(i.a)({key:n+"Suffix",device:t,state:o})]:r},m({v:e,device:t,state:o,childs:l,current:n,value:a})),b({v:e,device:t,state:o,parent:"margin",childs:l,current:n,value:a})),b({v:e,device:t,state:o,parent:"marginSuffix",childs:s,current:n+"Suffix",value:r}))}function je({v:e,device:t,state:o,opacity:n,isChanged:a="hex"}){return h({v:e,device:t,state:o,value:n=function({v:e,device:t,state:o,opacity:n,isChanged:a}){return"hex"===a&&0===Object(i.b)({v:e,key:"boxShadowColorOpacity",device:t,state:o})?Object(i.b)({v:e,key:"tempBoxShadowColorOpacity",device:t,state:o}):void 0===n?Object(i.b)({v:e,key:"boxShadowColorOpacity",device:t,state:o}):n}({v:e,device:t,state:o,opacity:n,isChanged:a}),dependencies:{boxShadowBlur:{childs:[],nullValue:[],tempValue:[]},boxShadowVertical:{childs:[],nullValue:[],tempValue:[]}}})}function Be({v:e,device:t,state:o,hex:n,opacity:a,isChanged:r="hex",opacityDragEnd:l=!1}){const s=(a=Ee({v:e,device:t,state:o,opacity:a,isChanged:r}))>0&&l?a:Object(i.b)({v:e,key:"tempBg2ColorOpacity",device:t,state:o});return{[Object(i.a)({key:"bg2ColorHex",device:t,state:o})]:n,[Object(i.a)({key:"bg2ColorOpacity",device:t,state:o})]:a,[Object(i.a)({key:"tempBg2ColorOpacity",device:t,state:o})]:s}}function Pe({v:e,device:t,state:o,opacity:n,isChanged:a="hex"}){n=Ee({v:e,device:t,state:o,opacity:n,isChanged:a});const r="hex"===a||0===n?"":n>0?Object(i.b)({v:e,key:"tempBg2ColorPalette",device:t,state:o}):Object(i.b)({v:e,key:"bg2ColorPalette",device:t,state:o}),l="hex"===a?"":Object(i.b)({v:e,key:"tempBg2ColorPalette",device:t,state:o});return{[Object(i.a)({key:"bg2ColorPalette",device:t,state:o})]:r,[Object(i.a)({key:"tempBg2ColorPalette",device:t,state:o})]:l}}function we({v:e,device:t,state:o,opacity:n,isChanged:a="hex"}){return h({v:e,device:t,state:o,value:n=Ee({v:e,device:t,state:o,opacity:n,isChanged:a}),dependencies:{borderRadius:{childs:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nullValue:["bg2ImageSrc","borderColorOpacity"],tempValue:[]}}})}function Te({device:e,state:t,palette:o}){return{[Object(i.a)({key:"bg2ColorPalette",device:e,state:t})]:o,[Object(i.a)({key:"tempBg2ColorPalette",device:e,state:t})]:o}}function ze({v:e,device:t,state:o,opacity:n,isChanged:a="hex"}){return n=Ee({v:e,device:t,state:o,opacity:n,isChanged:a}),{[Object(i.a)({key:"bg2ColorOpacity",device:t,state:o})]:n}}function Ee({v:e,device:t,state:o,opacity:n,isChanged:a}){return"hex"===a&&0===Object(i.b)({v:e,key:"bg2ColorOpacity",device:t,state:o})&&1===Object(i.b)({v:e,key:"tempBg2ColorOpacity",device:t,state:o})&&""!==Object(i.b)({v:e,key:"bg2ImageSrc",device:t,state:o})?.9:"hex"===a&&0===Object(i.b)({v:e,key:"bg2ColorOpacity",device:t,state:o})?Object(i.b)({v:e,key:"tempBg2ColorOpacity",device:t,state:o}):void 0===n?Object(i.b)({v:e,key:"bg2ColorOpacity",device:t,state:o}):n}function ke({v:e,hex:t,opacity:o,isChanged:n="hex"}){return{borderColorHex:t,borderColorOpacity:o=t!==e.borderColorHex&&0===e.borderColorOpacity?e.tempBorderColorOpacity:o,borderColorPalette:"hex"===n?"":e.borderColorPalette,tempBorderColorOpacity:o>0?o:e.tempBorderColorOpacity,tempBorderColorPalette:"hex"===n?"":e.tempBorderColorPalette,padding:0===o&&0===e.bgColorOpacity?0:o>0?e.tempPadding:e.padding,borderRadiusType:0===o&&0===e.bgColorOpacity?"":o>0?e.tempBorderRadiusType:e.borderRadiusType,fillType:0===o&&0===e.bgColorOpacity?"default":o>0&&0===e.bgColorOpacity?"outline":e.fillType,borderWidth:0===o?0:o>0?e.tempBorderWidth:e.borderWidth,bgColorOpacity:o>0&&e.bgColorOpacity>0?e.tempBgColorOpacity:e.bgColorOpacity,hoverBgColorHex:e.bgColorHex===e.hoverBgColorHex?t:e.hoverBgColorHex,hoverBgColorOpacity:0===o&&0===e.bgColorOpacity?0:e.bgColorOpacity===e.hoverBgColorOpacity?o:e.hoverBgColorOpacity}}function He({v:e,palette:t}){return{borderColorPalette:t,tempBorderColorPalette:t,borderColorOpacity:0===e.borderColorOpacity?e.tempBorderColorOpacity:e.borderColorOpacity,padding:e.tempPadding,borderRadiusType:e.tempBorderRadiusType,fillType:0===e.bgColorOpacity?"outline":e.bgColorOpacity>0?"filled":e.fillType,borderWidth:e.tempBorderWidth}}function _e({v:e,hex:t,opacity:o,isChanged:n}){return{borderColorPalette:"hex"===n?"":e.borderColorPalette,borderColorHex:t,borderColorOpacity:o}}function Fe({v:e,hex:t,opacity:o,isChanged:n="hex"}){return{hoverBorderColorHex:t,hoverBorderColorOpacity:t!==e.hoverBorderColorHex&&0==e.hoverBorderColorOpacity?e.tempHoverBorderColorOpacity:o,hoverBorderColorPalette:"hex"===n?"":e.hoverBorderColorPalette}}function Re({v:e,palette:t}){return{hoverBorderColorPalette:t,hoverBorderColorOpacity:0===e.hoverBorderColorOpacity?e.tempHoverBorderColorOpacity:e.hoverBorderColorOpacity}}function Me({v:e,hex:t,opacity:o,isChanged:n}){return{hoverBorderColorPalette:"hex"===n?"":e.hoverBorderColorPalette,hoverBorderColorHex:t,hoverBorderColorOpacity:o}}var Le=o(14);function We({v:e,hex:t,opacity:o,isChanged:n="hex",opacityDragEnd:a=!1}){return{borderColorHex:t,borderColorOpacity:o=t!==e.borderColorHex&&0===e.borderColorOpacity?e.tempBorderColorOpacity:o,tempBorderColorOpacity:o>0&&a?o:e.tempBorderColorOpacity,borderColorPalette:"hex"===n?"":e.borderColorPalette,tempBorderColorPalette:"hex"===n?"":e.tempBorderColorPalette,paddingRL:0===o&&0===e.bgColorOpacity?0:o>0&&!Le.g?e.tempPaddingRL:e.paddingRL,paddingRight:0===o&&0===e.bgColorOpacity?0:o>0&&!Le.g?e.tempPaddingRight:e.paddingRight,paddingLeft:0===o&&0===e.bgColorOpacity?0:o>0&&!Le.g?e.tempPaddingLeft:e.paddingRight,paddingTB:0!==o||0!==e.bgColorOpacity||Le.g?e.paddingTB:e.tempPaddingTB,paddingTop:0!==o||0!==e.bgColorOpacity||Le.g?e.paddingTop:e.tempPaddingTop,paddingBottom:0!==o||0!==e.bgColorOpacity||Le.g?e.paddingBottom:e.tempPaddingBottom,fillType:0===o&&0===e.bgColorOpacity?"default":o>0&&0===e.bgColorOpacity?"outline":e.fillType,borderRadiusType:0===o&&0===e.bgColorOpacity?"":o>0?e.tempBorderRadiusType:e.borderRadiusType,borderWidth:0===o?0:o>0?e.tempBorderWidth:e.borderWidth,bgColorOpacity:o>0&&e.bgColorOpacity>0?e.tempBgColorOpacity:e.bgColorOpacity,hoverBgColorHex:e.bgColorHex===e.hoverBgColorHex?t:e.hoverBgColorHex,hoverBgColorOpacity:0===o&&0===e.bgColorOpacity?0:e.bgColorOpacity===e.hoverBgColorOpacity?o:e.hoverBgColorOpacity}}function Ie({v:e,palette:t}){return{borderColorPalette:t,tempBorderColorPalette:t,borderColorOpacity:0===e.borderColorOpacity?e.tempBorderColorOpacity:e.borderColorOpacity,borderRadiusType:e.tempBorderRadiusType,fillType:0===e.bgColorOpacity?"outline":e.bgColorOpacity>0?"filled":e.fillType,borderWidth:e.tempBorderWidth}}function Ne({v:e,hex:t,opacity:o,isChanged:n="hex"}){return{borderColorPalette:"hex"===n?"":e.borderColorPalette,borderColorHex:t,borderColorOpacity:o}}function Ae({v:e,hex:t,opacity:o,isChanged:n="hex"}){return{hoverBorderColorHex:t,hoverBorderColorOpacity:t!==e.hoverBorderColorHex&&0==e.hoverBorderColorOpacity?e.tempHoverBorderColorOpacity:o,hoverBorderColorPalette:"hex"===n?"":e.hoverBorderColorPalette}}function De({v:e,palette:t}){return{hoverBorderColorPalette:t,hoverBorderColorOpacity:0===e.hoverBorderColorOpacity?e.tempHoverBorderColorOpacity:e.hoverBorderColorOpacity}}function Ve({v:e,hex:t,opacity:o,isChanged:n="hex"}){return{hoverBorderColorPalette:"hex"===n?"":e.hoverBorderColorPalette,hoverBorderColorHex:t,hoverBorderColorOpacity:o}}function $e({v:e,hex:t,opacity:o,isChanged:n="hex",opacityDragEnd:a=!1}){return{bgColorHex:t,bgColorOpacity:o=t!==e.bgColorHex&&0===e.bgColorOpacity?e.tempBgColorOpacity:o,bgColorPalette:"hex"===n?"":e.bgColorPalette,tempBgColorPalette:"hex"===n?"":e.tempBgColorPalette,tempBgColorOpacity:o>0&&a?o:e.tempBgColorOpacity,borderRadiusType:0===o&&0===e.borderColorOpacity?"":o>0?e.tempBorderRadiusType:e.borderRadiusType,fillType:0===o&&0===e.borderColorOpacity?"default":0===o&&e.borderColorOpacity>0?"outline":o>0?"filled":e.fillType,borderWidth:0===o&&0===e.borderColorOpacity?0:e.borderWidth,borderColorHex:""!==e.bgColorPalette&&e.bgColorPalette===e.borderColorPalette&&"filled"===e.fillType||""===e.bgColorPalette&&e.bgColorHex===e.borderColorHex&&"filled"===e.fillType?t:e.borderColorHex,borderColorPalette:""!==e.bgColorPalette&&e.bgColorPalette===e.borderColorPalette&&"filled"===e.fillType?"":e.borderColorPalette,tempBorderColorPalette:""!==e.bgColorPalette&&e.bgColorPalette===e.borderColorPalette&&"filled"===e.fillType?"":e.tempBorderColorPalette,borderColorOpacity:""===e.bgColorPalette&&e.bgColorHex===e.borderColorHex&&e.bgColorOpacity===e.tempBorderColorOpacity&&"filled"===e.fillType||0===o&&0===e.borderColorOpacity?0:e.borderColorOpacity,hoverBgColorOpacity:0===o&&0===e.borderColorOpacity?0:o>0?e.tempHoverBgColorOpacity:e.hoverBgColorOpacity,hoverBorderColorHex:e.borderColorHex===e.hoverBorderColorHex?t:e.hoverBorderColorHex,hoverBorderColorOpacity:0===o&&0===e.bgColorOpacity?0:e.hoverBorderColorOpacity}}function Ge({v:e,palette:t}){return{bgColorPalette:t,tempBgColorPalette:t,bgColorOpacity:0===e.bgColorOpacity?e.tempBgColorOpacity:e.bgColorOpacity,borderRadiusType:e.tempBorderRadiusType,fillType:"filled",borderColorPalette:""!==e.bgColorPalette&&e.bgColorPalette===e.borderColorPalette&&"filled"===e.fillType||""===e.bgColorPalette&&e.bgColorHex===e.borderColorHex&&"filled"===e.fillType?t:e.borderColorPalette,tempBorderColorPalette:""!==e.bgColorPalette&&e.bgColorPalette===e.borderColorPalette&&"filled"===e.fillType||""===e.bgColorPalette&&e.bgColorHex===e.borderColorHex&&"filled"===e.fillType?t:e.borderColorPalette,hoverBgColorOpacity:e.tempHoverBgColorOpacity}}function Ue({v:e,hex:t,opacity:o,isChanged:n="hex"}){return{bgColorPalette:"hex"===n?"":e.bgColorPalette,bgColorHex:t,bgColorOpacity:o}}function Ke({v:e,hex:t,opacity:o,isChanged:n="hex",opacityDragEnd:a=!1}){return{hoverBgColorHex:t,hoverBgColorOpacity:o=t!==e.hoverBgColorHex&&0===e.hoverBgColorOpacity?e.tempHoverBgColorOpacity:o,tempHoverBgColorOpacity:o>0&&a?o:e.tempHoverBgColorOpacity,hoverBgColorPalette:"hex"===n?"":e.hoverBgColorPalette,tempHoverBgColorPalette:"hex"===n?"":e.tempHoverBgColorPalette,hoverBorderColorHex:""!==e.hoverBgColorPalette&&e.hoverBgColorPalette===e.hoverBorderColorPalette&&"filled"===e.fillType||""===e.hoverBgColorPalette&&e.hoverBgColorHex===e.hoverBorderColorHex&&"filled"===e.fillType?t:e.hoverBorderColorHex,hoverBorderColorPalette:""!==e.hoverBgColorPalette&&e.hoverBgColorPalette===e.hoverBorderColorPalette&&"filled"===e.fillType?"":e.hoverBorderColorPalette,tempHoverBorderColorPalette:""!==e.hoverBgColorPalette&&e.hoverBgColorPalette===e.hoverBorderColorPalette&&"filled"===e.fillType?"":e.tempHoverBorderColorPalette,hoverBorderColorOpacity:""===e.hoverBgColorPalette&&e.hoverBgColorHex===e.hoverBorderColorHex&&e.hoverBgColorOpacity===e.tempHoverBorderColorOpacity&&"filled"===e.fillType?0:e.hoverBorderColorOpacity}}function qe({v:e,palette:t}){return{hoverBgColorPalette:t,hoverBgColorOpacity:0===e.hoverBgColorOpacity?e.tempHoverBgColorOpacity:e.hoverBgColorOpacity,hoverBorderColorPalette:""!==e.hoverBgColorPalette&&e.hoverBgColorPalette===e.hoverBorderColorPalette&&"filled"===e.fillType||""===e.hoverBgColorPalette&&e.hoverBgColorHex===e.hoverBorderColorHex&&"filled"===e.fillType?t:e.hoverBorderColorPalette,tempHoverBorderColorPalette:""!==e.hoverBgColorPalette&&e.hoverBgColorPalette===e.hoverBorderColorPalette&&"filled"===e.fillType||""===e.hoverBgColorPalette&&e.hoverBgColorHex===e.hoverBorderColorHex&&"filled"===e.fillType?t:e.hoverBorderColorPalette}}function Ye({v:e,hex:t,opacity:o,isChanged:n="hex"}){return{hoverBgColorPalette:"hex"===n?"":e.hoverBgColorPalette,hoverBgColorHex:t,hoverBgColorOpacity:o}}function Xe({v:e,hex:t,opacity:o,isChanged:n,opacityDragEnd:a}){return{colorHex:t,colorOpacity:o=t!==e.colorHex&&0==e.colorOpacity?e.tempColorOpacity:o,colorPalette:"hex"===n?"":e.colorPalette,tempColorOpacity:o>0&&a?o:e.tempColorOpacity,hoverColorHex:e.colorHex===e.hoverColorHex?t:e.hoverColorHex,hoverColorOpacity:e.colorOpacity===e.hoverColorOpacity?o:e.hoverColorOpacity}}function Ze({v:e,palette:t}){return{colorPalette:t,colorOpacity:0===e.colorOpacity?e.tempColorOpacity:e.colorOpacity}}function Je({v:e,hex:t,opacity:o,isChanged:n="hex"}){return{colorPalette:"hex"===n?"":e.colorPalette,colorHex:t,colorOpacity:o}}function Qe({v:e,hex:t,opacity:o,isChanged:n="hex"}){return{hoverColorHex:t,hoverColorOpacity:t!==e.hoverColorHex&&0==e.hoverColorOpacity?e.tempHoverColorOpacity:o,hoverColorPalette:"hex"===n?"":e.hoverColorPalette}}function et({v:e,palette:t}){return{hoverColorPalette:t,hoverColorOpacity:0===e.hoverColorOpacity?e.tempHoverColorOpacity:e.hoverColorOpacity}}function tt({v:e,hex:t,opacity:o,isChanged:n="hex"}){return{hoverColorPalette:"hex"===n?"":e.hoverColorPalette,hoverColorHex:t,hoverColorOpacity:o}}function ot({v:e,hex:t,opacity:o,isChanged:n,opacityDragEnd:a}){return{colorHex:t,colorOpacity:o=t!==e.colorHex&&0===e.colorOpacity?e.tempColorOpacity:o,colorPalette:"hex"===n?"":e.colorPalette,tempColorOpacity:o>0&&a?o:e.tempColorOpacity,hoverColorHex:e.colorHex===e.hoverColorHex?t:e.hoverColorHex,hoverColorOpacity:e.colorOpacity===e.hoverColorOpacity?o:e.hoverColorOpacity}}function nt({v:e,palette:t}){return{colorPalette:t,colorOpacity:0===e.colorOpacity?e.tempColorOpacity:e.colorOpacity,hoverColorPalette:e.colorPalette===e.hoverColorPalette?t:e.hoverColorPalette}}function at({v:e,hex:t,opacity:o,isChanged:n}){return{colorPalette:"hex"===n?"":e.colorPalette,colorHex:t,colorOpacity:o,hoverColorHex:e.colorHex===e.hoverColorHex?t:e.hoverColorHex,hoverColorOpacity:e.colorOpacity===e.hoverColorOpacity?o:e.hoverColorOpacity}}function rt({v:e,hex:t,opacity:o,isChanged:n}){return o=t!==e.colorHex&&0===e.colorOpacity?e.tempColorOpacity:o,{hoverColorHex:t,hoverColorOpacity:t!==e.hoverColorHex&&0===e.hoverColorOpacity?e.tempHoverColorOpacity:o,hoverColorPalette:"hex"===n?"":e.hoverColorPalette}}function it({v:e,palette:t}){return{hoverColorPalette:t,hoverColorOpacity:0===e.hoverColorOpacity?e.tempHoverColorOpacity:e.hoverColorOpacity}}function lt({v:e,hex:t,opacity:o,isChanged:n}){return{hoverColorPalette:"hex"===n?"":e.hoverColorPalette,hoverColorHex:t,hoverColorOpacity:o}}function st({v:e,hex:t,opacity:o,isChanged:n,opacityDragEnd:a}){return{mMenuColorHex:t,mMenuColorOpacity:o=t!==e.mMenuColorHex&&0==e.mMenuColorOpacity?e.mMenuTempColorOpacity:o,mMenuColorPalette:"hex"===n?"":e.mMenuColorPalette,mMenuTempColorOpacity:o>0&&a?o:e.mMenuTempColorOpacity,mMenuHoverColorHex:e.mMenuColorHex===e.mMenuHoverColorHex?t:e.mMenuHoverColorHex,mMenuHoverColorOpacity:e.mMenuColorOpacity===e.mMenuHoverColorOpacity?o:e.mMenuHoverColorOpacity}}function ct({v:e,palette:t}){return{mMenuColorPalette:t,mMenuColorOpacity:0===e.mMenuColorOpacity?e.mMenuTempColorOpacity:e.mMenuColorOpacity}}function dt({v:e,hex:t,opacity:o,isChanged:n}){return{mMenuColorPalette:"hex"===n?"":e.mMenuColorPalette,mMenuColorHex:t,mMenuColorOpacity:o}}function ut({v:e,hex:t,opacity:o,isChanged:n}){return{mMenuHoverColorHex:t,mMenuHoverColorOpacity:t!==e.mMenuHoverColorHex&&0==e.mMenuHoverColorOpacity?e.mMenuTempHoverColorOpacity:o,mMenuHoverColorPalette:"hex"===n?"":e.mMenuHoverColorPalette}}function pt({v:e,palette:t}){return{mMenuHoverColorPalette:t,mMenuHoverColorOpacity:0===e.mMenuHoverColorOpacity?e.mMenuTempHoverColorOpacity:e.mMenuHoverColorOpacity}}function bt({v:e,hex:t,opacity:o,isChanged:n}){return{mMenuHoverColorPalette:"hex"===n?"":e.mMenuHoverColorPalette,mMenuHoverColorHex:t,mMenuHoverColorOpacity:o}}function mt({v:e,hex:t,opacity:o,isChanged:n,opacityDragEnd:a}){return{subMenuColorHex:t,subMenuColorOpacity:o=t!==e.subMenuColorHex&&0===e.subMenuColorOpacity?e.subMenuTempColorOpacity:o,subMenuColorPalette:"hex"===n?"":e.subMenuColorPalette,subMenuTempColorOpacity:o>0&&a?o:e.subMenuTempColorOpacity,subMenuHoverColorHex:e.subMenuColorHex===e.subMenuHoverColorHex?t:e.subMenuHoverColorHex,subMenuHoverColorOpacity:e.subMenuColorOpacity===e.subMenuHoverColorOpacity?o:e.subMenuHoverColorOpacity,mMenuColorHex:e.subMenuColorHex===e.mMenuColorHex?t:e.mMenuColorHex,mMenuColorOpacity:e.subMenuColorOpacity===e.mMenuColorOpacity?o:e.mMenuColorOpacity,mMenuHoverColorHex:e.subMenuColorHex===e.mMenuHoverColorHex?t:e.mMenuHoverColorHex,mMenuHoverColorOpacity:e.subMenuColorOpacity===e.mMenuHoverColorOpacity?o:e.mMenuHoverColorOpacity}}function ht({v:e,palette:t}){return{subMenuColorPalette:t,subMenuColorOpacity:0===e.subMenuColorOpacity?e.subMenuTempColorOpacity:e.subMenuColorOpacity,subMenuHoverColorPalette:e.subMenuColorPalette===e.subMenuHoverColorPalette?t:e.subMenuHoverColorPalette,mMenuColorPalette:e.subMenuColorPalette===e.mMenuColorPalette?t:e.mMenuColorPalette,mMenuHoverColorPalette:e.subMenuColorPalette===e.mMenuHoverColorPalette?t:e.mMenuHoverColorPalette}}function gt({v:e,hex:t,opacity:o,isChanged:n}){return{subMenuColorPalette:"hex"===n?"":e.subMenuColorPalette,subMenuColorHex:t,subMenuColorOpacity:o,subMenuHoverColorHex:e.subMenuColorHex===e.subMenuHoverColorHex?t:e.subMenuHoverColorHex,subMenuHoverColorOpacity:e.subMenuColorOpacity===e.subMenuHoverColorOpacity?t:e.subMenuHoverColorOpacity,mMenuColorHex:e.subMenuColorHex===e.mMenuColorHex?t:e.mMenuBgColorHex,mMenuColorOpacity:e.subMenuColorOpacity===e.mMenuColorOpacity?o:e.mMenuColorOpacity,mMenuHoverColorHex:e.subMenuColorHex===e.mMenuHoverColorHex?t:e.mMenuHoverColorHex,mMenuHoverColorOpacity:e.subMenuColorOpacity===e.mMenuHoverColorOpacity?o:e.mMenuHoverColorOpacity}}function vt({v:e,hex:t,opacity:o,isChanged:n}){return{subMenuHoverColorHex:t,subMenuHoverColorOpacity:t!==e.subMenuHoverColorHex&&0===e.subMenuHoverColorOpacity?e.subMenuTempHoverColorOpacity:o,subMenuHoverColorPalette:"hex"===n?"":e.subMenuHoverColorPalette,mMenuHoverColorHex:e.subMenuHoverColorHex===e.mMenuHoverColorHex?t:e.mMenuHoverColorHex,mMenuHoverColorOpacity:e.subMenuHoverColorOpacity===e.mMenuHoverColorOpacity?o:e.mMenuHoverColorOpacity}}function ft({v:e,palette:t}){return{subMenuHoverColorPalette:t,subMenuHoverColorOpacity:0===e.subMenuHoverColorOpacity?e.subMenuTempHoverColorOpacity:e.subMenuHoverColorOpacity,mMenuHoverColorPalette:e.subMenuHoverColorPalette===e.mMenuHoverColorPalette?t:e.mMenuHoverColorPalette}}function yt({v:e,hex:t,opacity:o,isChanged:n}){return{subMenuHoverColorPalette:"hex"===n?"":e.subMenuHoverColorPalette,subMenuHoverColorHex:t,subMenuHoverColorOpacity:o,mMenuHoverColorHex:e.subMenuHoverColorHex===e.mMenuHoverColorHex?t:e.mMenuHoverColorHex,mMenuHoverColorOpacity:e.subMenuHoverColorOpacity===e.mMenuHoverColorOpacity?o:e.mMenuHoverColorOpacity}}function Ot({v:e,hex:t,opacity:o,isChanged:n}){return{mMenuIconColorHex:t,mMenuIconColorOpacity:t!==e.mMenuIconColorHex&&0===e.mMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o,mMenuIconColorPalette:"hex"===n?"":e.mMenuIconColorPalette}}function St({v:e,palette:t}){return{mMenuIconColorPalette:t,mMenuIconColorHex:"",mMenuIconColorOpacity:0===e.mMenuIconColorOpacity?e.mMenuTempIconColorOpacity:e.mMenuIconColorOpacity}}function Ct({v:e,hex:t,opacity:o,isChanged:n}){const a=t!==e.mMenuIconColorHex&&0===e.mMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o;return{mMenuIconColorPalette:"hex"===n?"":e.mMenuIconColorPalette,mMenuIconColorHex:t,mMenuIconColorOpacity:a}}function xt({v:e,hex:t,opacity:o,isChanged:n}){return{tabletMMenuIconColorHex:t,tabletMMenuIconColorOpacity:t!==e.tabletMMenuIconColorHex&&0===e.tabletMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o,tabletMMenuIconColorPalette:"hex"===n?"":e.tabletMMenuIconColorPalette}}function jt({v:e,palette:t}){return{tabletMMenuIconColorPalette:t,tabletMMenuIconColorHex:"",tabletMMenuIconColorOpacity:0===e.tabletMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:e.tabletMMenuIconColorOpacity}}function Bt({v:e,hex:t,opacity:o,isChanged:n}){const a=t!==e.tabletMMenuIconColorHex&&0===e.tabletMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o;return{tabletMMenuIconColorPalette:"hex"===n?"":e.tabletMMenuIconColorPalette,tabletMMenuIconColorHex:t,tabletMMenuIconColorOpacity:a}}function Pt({v:e,hex:t,opacity:o,isChanged:n}){return{mobileMMenuIconColorHex:t,mobileMMenuIconColorOpacity:t!==e.mobileMMenuIconColorHex&&0===e.mobileMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o,mobileMMenuIconColorPalette:"hex"===n?"":e.mobileMMenuIconColorPalette}}function wt({v:e,palette:t}){return{mobileMMenuIconColorPalette:t,mobileMMenuIconColorHex:"",mobileMMenuIconColorOpacity:0===e.mobileMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:e.mobileMMenuIconColorOpacity}}function Tt({v:e,hex:t,opacity:o,isChanged:n}){const a=t!==e.mobileMMenuIconColorHex&&0===e.mobileMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o;return{mobileMMenuIconColorPalette:"hex"===n?"":e.mobileMMenuIconColorPalette,mobileMMenuIconColorHex:t,mobileMMenuIconColorOpacity:a}}function zt({v:e,hex:t,opacity:o,isChanged:n,opacityDragEnd:a}){return{mMenuBgColorHex:t,mMenuBgColorOpacity:o=t!==e.mMenuBgColorHex&&0==e.mMenuBgColorOpacity?e.mMenuTempBgColorOpacity:o,mMenuBgColorPalette:"hex"===n?"":e.mMenuBgColorPalette,mMenuTempBgColorOpacity:o>0&&a?o:e.mMenuTempBgColorOpacity}}function Et({v:e,palette:t}){return{mMenuBgColorPalette:t,mMenuBgColorOpacity:0===e.mMenuBgColorOpacity?e.mMenuTempBgColorOpacity:e.mMenuBgColorOpacity}}function kt({v:e,hex:t,opacity:o,isChanged:n}){return{mMenuBgColorPalette:"hex"===n?"":e.mMenuBgColorPalette,mMenuBgColorHex:t,mMenuBgColorOpacity:o}}function Ht({v:e,hex:t,opacity:o,isChanged:n,opacityDragEnd:a=!1}){return{subMenuBgColorHex:t,subMenuBgColorOpacity:o=t!==e.subMenuBgColorHex&&0===e.subMenuBgColorOpacity?e.subMenuTempBgColorOpacity:o,subMenuBgColorPalette:"hex"===n?"":e.subMenuBgColorPalette,subMenuTempBgColorOpacity:o>0&&a?o:e.subMenuTempBgColorOpacity,subMenuHoverBgColorHex:e.subMenuBgColorHex===e.subMenuHoverBgColorHex?t:e.subMenuHoverBgColorHex,subMenuHoverBgColorOpacity:e.subMenuBgColorOpacity===e.subMenuHoverBgColorOpacity?t:e.subMenuHoverBgColorOpacity,mMenuBgColorHex:e.subMenuBgColorHex===e.mMenuBgColorHex?t:e.mMenuBgColorHex,mMenuBgColorOpacity:e.subMenuBgColorOpacity===e.mMenuBgColorOpacity?o:e.mMenuBgColorOpacity}}function _t({v:e,palette:t}){return{subMenuBgColorPalette:t,subMenuBgColorOpacity:0===e.subMenuBgColorOpacity?e.subMenuTempBgColorOpacity:e.subMenuBgColorOpacity,subMenuHoverBgColorPalette:e.subMenuBgColorPalette===e.subMenuHoverBgColorPalette?t:e.subMenuHoverBgColorPalette,mMenuBgColorPalette:e.subMenuBgColorPalette===e.mMenuBgColorPalette?t:e.mMenuBgColorPalette}}function Ft({v:e,hex:t,opacity:o,isChanged:n}){return{subMenuBgColorPalette:"hex"===n?"":e.subMenuBgColorPalette,subMenuBgColorHex:t,subMenuBgColorOpacity:o,subMenuHoverBgColorHex:e.subMenuBgColorHex===e.subMenuHoverBgColorHex?t:e.subMenuHoverBgColorHex,subMenuHoverBgColorOpacity:e.subMenuBgColorOpacity===e.subMenuHoverBgColorOpacity?t:e.subMenuHoverBgColorOpacity,mMenuBgColorHex:e.subMenuBgColorHex===e.mMenuBgColorHex?t:e.mMenuBgColorHex,mMenuBgColorOpacity:e.subMenuBgColorOpacity===e.mMenuBgColorOpacity?o:e.mMenuBgColorOpacity}}function Rt({v:e,hex:t,opacity:o,isChanged:n}){return{subMenuHoverBgColorHex:t,subMenuHoverBgColorOpacity:t!==e.subMenuHoverBgColorHex&&0===e.subMenuHoverBgColorOpacity?e.subMenuTempHoverBgColorOpacity:o,subMenuHoverBgColorPalette:"hex"===n?"":e.subMenuHoverBgColorPalette}}function Mt({v:e,palette:t}){return{subMenuHoverBgColorPalette:t,subMenuHoverBgColorOpacity:0===e.subMenuHoverBgColorOpacity?e.subMenuTempHoverBgColorOpacity:e.subMenuHoverBgColorOpacity}}function Lt({v:e,hex:t,opacity:o,isChanged:n}){return{subMenuHoverBgColorPalette:"hex"===n?"":e.subMenuHoverBgColorPalette,subMenuHoverBgColorHex:t,subMenuHoverBgColorOpacity:o}}function Wt({v:e,hex:t,opacity:o,isChanged:n,opacityDragEnd:a}){return{mMenuBorderColorHex:t,mMenuBorderColorOpacity:o=t!==e.mMenuBorderColorHex&&0==e.mMenuBorderColorOpacity?e.mMenuTempBorderColorOpacity:o,mMenuBorderColorPalette:"hex"===n?"":e.mMenuBorderColorPalette,mMenuTempBorderColorOpacity:o>0&&a?o:e.mMenuTempBorderColorOpacity}}function It({v:e,palette:t}){return{mMenuBorderColorPalette:t,mMenuBorderColorOpacity:0===e.mMenuBorderColorOpacity?e.mMenuTempBorderColorOpacity:e.mMenuBorderColorOpacity}}function Nt({v:e,hex:t,opacity:o,isChanged:n}){return{mMenuBorderColorPalette:"hex"===n?"":e.mMenuBorderColorPalette,mMenuBorderColorHex:t,mMenuBorderColorOpacity:o}}function At({v:e,hex:t,opacity:o,isChanged:n,opacityDragEnd:a}){return{subMenuBorderColorHex:t,subMenuBorderColorOpacity:o=t!==e.subMenuBorderColorHex&&0===e.subMenuBorderColorOpacity?e.subMenuTempBorderColorOpacity:o,subMenuBorderColorPalette:"hex"===n?"":e.subMenuBorderColorPalette,subMenuTempBorderColorOpacity:o>0&&a?o:e.subMenuTempBorderColorOpacity,mMenuBorderColorHex:e.subMenuBorderColorHex===e.mMenuBorderColorHex?t:e.mMenuBorderColorHex,mMenuBorderColorOpacity:e.subMenuBorderColorOpacity===e.mMenuBorderColorOpacity?o:e.mMenuBorderColorOpacity}}function Dt({v:e,palette:t}){return{subMenuBorderColorPalette:t,subMenuBorderColorOpacity:0===e.subMenuBorderColorOpacity?e.subMenuTempBorderColorOpacity:e.subMenuBorderColorOpacity,mMenuBorderColorPalette:e.subMenuBorderColorPalette===e.mMenuBorderColorPalette?t:e.mMenuBorderColorPalette}}function Vt({v:e,hex:t,opacity:o,isChanged:n}){return{subMenuBorderColorPalette:"hex"===n?"":e.subMenuBorderColorPalette,subMenuBorderColorHex:t,subMenuBorderColorOpacity:o,mMenuBorderColorHex:e.subMenuBorderColorHex===e.mMenuBorderColorHex?t:e.mMenuBorderColorHex,mMenuBorderColorOpacity:e.subMenuBorderColorOpacity===e.mMenuBorderColorOpacity?o:e.mMenuBorderColorOpacity}}function $t({v:e,hex:t,opacity:o,isChanged:n}){return{activeSubMenuColorHex:t,activeSubMenuColorOpacity:t!==e.activeSubMenuColorHex&&0===e.activeSubMenuColorOpacity?e.tempActiveSubMenuColorOpacity:o,activeSubMenuColorPalette:"hex"===n?"":e.activeSubMenuColorPalette,activeMMenuColorHex:e.activeSubMenuColorHex===e.activeMMenuColorHex?t:e.activeMMenuColorHex,activeMMenuColorOpacity:e.activeSubMenuColorOpacity===e.activeMMenuColorOpacity?o:e.activeMMenuColorOpacity}}function Gt({v:e,palette:t}){return{activeSubMenuColorPalette:t,activeSubMenuColorOpacity:0===e.activeSubMenuColorOpacity?e.tempActiveSubMenuColorOpacity:e.activeSubMenuColorOpacity,activeMMenuColorPalette:e.activeSubMenuColorPalette===e.activeMMenuColorPalette?t:e.activeMMenuColorPalette}}function Ut({v:e,hex:t,opacity:o,isChanged:n}){return{activeSubMenuColorPalette:"hex"===n?"":e.activeSubMenuColorPalette,activeSubMenuColorHex:t,activeSubMenuColorOpacity:o,activeMMenuColorHex:e.activeSubMenuColorHex===e.activeMMenuColorHex?t:e.activeMMenuColorHex,activeMMenuColorOpacity:e.activeSubMenuColorOpacity===e.activeMMenuColorOpacity?o:e.activeMMenuColorOpacity}}function Kt({v:e,hex:t,opacity:o,isChanged:n}){return{activeSubMenuBgColorHex:t,activeSubMenuBgColorOpacity:t!==e.activeSubMenuBgColorHex&&0===e.activeSubMenuBgColorOpacity?e.tempActiveSubMenuBgColorOpacity:o,activeSubMenuBgColorPalette:"hex"===n?"":e.activeSubMenuBgColorPalette}}function qt({v:e,palette:t}){return{activeSubMenuBgColorPalette:t,activeSubMenuBgColorOpacity:0===e.activeSubMenuBgColorOpacity?e.tempActiveSubMenuBgColorOpacity:e.activeSubMenuBgColorOpacity}}function Yt({v:e,hex:t,opacity:o,isChanged:n}){return{activeSubMenuBgColorPalette:"hex"===n?"":e.activeSubMenuBgColorPalette,activeSubMenuBgColorHex:t,activeSubMenuBgColorOpacity:o}}function Xt({v:e,hex:t,opacity:o,isChanged:n}){return{activeMMenuColorHex:t,activeMMenuColorOpacity:t!==e.activeMMenuColorHex&&0==e.activeMMenuColorOpacity?e.tempActiveMMenuHoverColorOpacity:o,activeMMenuColorPalette:"hex"===n?"":e.activeMMenuColorPalette}}function Zt({v:e,palette:t}){return{activeMMenuColorPalette:t,activeMMenuColorOpacity:0===e.activeMMenuColorOpacity?e.tempActiveMMenuHoverColorOpacity:e.activeMMenuColorOpacity}}function Jt({v:e,hex:t,opacity:o,isChanged:n}){return{activeMMenuColorPalette:"hex"===n?"":e.activeMMenuColorPalette,activeMMenuColorHex:t,activeMMenuColorOpacity:o}}var Qt=o(33);function eo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function to(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):eo(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function oo(e,t){const{fontSize:o,fontFamily:n,fontFamilyType:a,lineHeight:r,letterSpacing:i,fontWeight:l}=""===t.fontStyle?t:Object(Qt.e)(t.fontStyle);return to({fontSize:o,fontFamily:n,fontFamilyType:a,lineHeight:r,letterSpacing:i,fontWeight:l,fontStyle:""},e)}function no(e,t){const{tabletFontSize:o,tabletLineHeight:n,tabletLetterSpacing:a,tabletFontWeight:r}=""===t.tabletFontStyle?t:Object(Qt.e)(t.tabletFontStyle);return to({tabletFontSize:o,tabletLineHeight:n,tabletLetterSpacing:a,tabletFontWeight:r,tabletFontStyle:""},e)}function ao(e,t){const{mobileFontSize:o,mobileLineHeight:n,mobileLetterSpacing:a,mobileFontWeight:r}=""===t.mobileFontStyle?t:Object(Qt.e)(t.mobileFontStyle);return to({mobileFontSize:o,mobileLineHeight:n,mobileLetterSpacing:a,mobileFontWeight:r,mobileFontStyle:""},e)}var ro=o(13);function io(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function lo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?io(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):io(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function so({v:e,prefix:t="",current:o,value:n,weights:a,type:l,device:s,state:c}){const d=Object(i.a)({key:Object(r.b)(t,"fontStyle"),device:s,state:c}),u=Object(i.a)({key:Object(r.b)(t,"fontFamily"),device:s,state:c}),p=Object(i.a)({key:Object(r.b)(t,"fontFamilyType"),device:s,state:c}),b=Object(i.a)({key:Object(r.b)(t,"fontSize"),device:s,state:c}),m=Object(i.a)({key:Object(r.b)(t,"lineHeight"),device:s,state:c}),h=Object(i.a)({key:Object(r.b)(t,"letterSpacing"),device:s,state:c}),g=Object(i.a)({key:Object(r.b)(t,"fontWeight"),device:s,state:c}),v=Object(ro.e)("fontFamilyType",Object(i.b)({v:e,key:Object(r.b)(t,"fontFamilyType"),device:s,state:c}),Object(i.b)({v:e,key:Object(r.b)(t,"fontStyle"),device:s,state:c})),f=Object(ro.e)("fontFamily",Object(i.b)({v:e,key:Object(r.b)(t,"fontFamily"),device:s,state:c}),Object(i.b)({v:e,key:Object(r.b)(t,"fontStyle"),device:s,state:c})),y=Object(ro.e)("fontSize",Object(i.b)({v:e,key:Object(r.b)(t,"fontSize"),device:s,state:c}),Object(i.b)({v:e,key:Object(r.b)(t,"fontStyle"),device:s,state:c})),O=Object(ro.e)("lineHeight",Object(i.b)({v:e,key:Object(r.b)(t,"lineHeight"),device:s,state:c}),Object(i.b)({v:e,key:Object(r.b)(t,"fontStyle"),device:s,state:c})),S=Object(ro.e)("letterSpacing",Object(i.b)({v:e,key:Object(r.b)(t,"letterSpacing"),device:s,state:c}),Object(i.b)({v:e,key:Object(r.b)(t,"fontStyle"),device:s,state:c})),C=Object(ro.e)("fontWeight",Object(i.b)({v:e,key:Object(r.b)(t,"fontWeight"),device:s,state:c}),Object(i.b)({v:e,key:Object(r.b)(t,"fontStyle"),device:s,state:c}));return lo(lo(lo(lo(lo({[d]:""},o===u?{[u]:n,[p]:l}:{[u]:f,[p]:v}),o===b?{[b]:n}:{[b]:y}),o===m?{[m]:n}:{[m]:O}),o===h?{[h]:n}:{[h]:S}),o===g?{[g]:n}:o===u?{[g]:Object(Qt.m)(C,a)}:{[g]:C})}},function(e,t,o){"use strict";o.d(t,"pd",(function(){return a})),o.d(t,"k",(function(){return s})),o.d(t,"l",(function(){return c})),o.d(t,"m",(function(){return d})),o.d(t,"g",(function(){return u})),o.d(t,"p",(function(){return m})),o.d(t,"o",(function(){return h})),o.d(t,"q",(function(){return g})),o.d(t,"r",(function(){return O})),o.d(t,"n",(function(){return S})),o.d(t,"t",(function(){return C})),o.d(t,"s",(function(){return x})),o.d(t,"u",(function(){return j})),o.d(t,"B",(function(){return B})),o.d(t,"h",(function(){return w})),o.d(t,"i",(function(){return T})),o.d(t,"j",(function(){return z})),o.d(t,"Zc",(function(){return k})),o.d(t,"b",(function(){return H})),o.d(t,"a",(function(){return _})),o.d(t,"c",(function(){return F})),o.d(t,"xd",(function(){return R})),o.d(t,"vd",(function(){return M})),o.d(t,"Sd",(function(){return W})),o.d(t,"Od",(function(){return I})),o.d(t,"Pd",(function(){return N})),o.d(t,"Nd",(function(){return A})),o.d(t,"Qd",(function(){return V})),o.d(t,"Rd",(function(){return D})),o.d(t,"Mb",(function(){return $})),o.d(t,"Lb",(function(){return G})),o.d(t,"Qb",(function(){return U})),o.d(t,"Nb",(function(){return K})),o.d(t,"Ob",(function(){return q})),o.d(t,"Pb",(function(){return Y})),o.d(t,"sd",(function(){return X})),o.d(t,"qd",(function(){return Z})),o.d(t,"td",(function(){return J})),o.d(t,"rd",(function(){return Q})),o.d(t,"ud",(function(){return ee})),o.d(t,"jd",(function(){return te})),o.d(t,"id",(function(){return oe})),o.d(t,"gd",(function(){return ne})),o.d(t,"hd",(function(){return ae})),o.d(t,"md",(function(){return re})),o.d(t,"kd",(function(){return ie})),o.d(t,"nd",(function(){return le})),o.d(t,"ld",(function(){return se})),o.d(t,"od",(function(){return ce})),o.d(t,"fd",(function(){return de})),o.d(t,"ed",(function(){return ue})),o.d(t,"cd",(function(){return pe})),o.d(t,"dd",(function(){return be})),o.d(t,"z",(function(){return he})),o.d(t,"w",(function(){return ge})),o.d(t,"x",(function(){return ve})),o.d(t,"A",(function(){return fe})),o.d(t,"v",(function(){return ye})),o.d(t,"y",(function(){return Oe})),o.d(t,"Jd",(function(){return Ce})),o.d(t,"Id",(function(){return xe})),o.d(t,"Fd",(function(){return je})),o.d(t,"Gd",(function(){return Be})),o.d(t,"Ed",(function(){return Pe})),o.d(t,"Hd",(function(){return we})),o.d(t,"Dd",(function(){return Te})),o.d(t,"Cd",(function(){return ze})),o.d(t,"zd",(function(){return Ee})),o.d(t,"Ad",(function(){return ke})),o.d(t,"yd",(function(){return He})),o.d(t,"Bd",(function(){return _e})),o.d(t,"Kd",(function(){return Fe})),o.d(t,"Ld",(function(){return Re})),o.d(t,"ee",(function(){return We})),o.d(t,"Zd",(function(){return Ne})),o.d(t,"ae",(function(){return Ae})),o.d(t,"de",(function(){return De})),o.d(t,"be",(function(){return Ve})),o.d(t,"ce",(function(){return $e})),o.d(t,"Td",(function(){return Ge})),o.d(t,"Ud",(function(){return Ue})),o.d(t,"Xd",(function(){return Ke})),o.d(t,"Vd",(function(){return qe})),o.d(t,"Wd",(function(){return Ye})),o.d(t,"Vc",(function(){return Xe})),o.d(t,"Xc",(function(){return Ze})),o.d(t,"Yc",(function(){return Je})),o.d(t,"Wc",(function(){return Qe})),o.d(t,"bd",(function(){return tt})),o.d(t,"ad",(function(){return ot})),o.d(t,"wd",(function(){return nt})),o.d(t,"Y",(function(){return at})),o.d(t,"W",(function(){return rt})),o.d(t,"X",(function(){return it})),o.d(t,"Ib",(function(){return lt})),o.d(t,"Yd",(function(){return st})),o.d(t,"bb",(function(){return ct})),o.d(t,"db",(function(){return dt})),o.d(t,"cb",(function(){return ut})),o.d(t,"fb",(function(){return pt})),o.d(t,"gb",(function(){return bt})),o.d(t,"hb",(function(){return mt})),o.d(t,"kb",(function(){return ht})),o.d(t,"lb",(function(){return gt})),o.d(t,"jb",(function(){return vt})),o.d(t,"wc",(function(){return ft})),o.d(t,"sc",(function(){return yt})),o.d(t,"mc",(function(){return Ot})),o.d(t,"pc",(function(){return St})),o.d(t,"nc",(function(){return Ct})),o.d(t,"oc",(function(){return xt})),o.d(t,"qc",(function(){return jt})),o.d(t,"uc",(function(){return Bt})),o.d(t,"tc",(function(){return Pt})),o.d(t,"rc",(function(){return wt})),o.d(t,"Md",(function(){return Tt})),o.d(t,"vc",(function(){return zt})),o.d(t,"rb",(function(){return Et})),o.d(t,"R",(function(){return kt})),o.d(t,"U",(function(){return Ht})),o.d(t,"V",(function(){return _t})),o.d(t,"S",(function(){return Ft})),o.d(t,"T",(function(){return Rt})),o.d(t,"ib",(function(){return Mt})),o.d(t,"O",(function(){return Lt})),o.d(t,"P",(function(){return Wt})),o.d(t,"J",(function(){return It})),o.d(t,"C",(function(){return Kt})),o.d(t,"I",(function(){return qt})),o.d(t,"G",(function(){return Nt})),o.d(t,"H",(function(){return At})),o.d(t,"K",(function(){return Dt})),o.d(t,"L",(function(){return Vt})),o.d(t,"F",(function(){return $t})),o.d(t,"D",(function(){return Gt})),o.d(t,"E",(function(){return Ut})),o.d(t,"Q",(function(){return Yt})),o.d(t,"M",(function(){return Xt})),o.d(t,"N",(function(){return Zt})),o.d(t,"Hb",(function(){return Jt})),o.d(t,"Fb",(function(){return Qt})),o.d(t,"Gb",(function(){return eo})),o.d(t,"eb",(function(){return to})),o.d(t,"Oc",(function(){return oo})),o.d(t,"Pc",(function(){return no})),o.d(t,"yc",(function(){return ao})),o.d(t,"xc",(function(){return ro})),o.d(t,"zc",(function(){return io})),o.d(t,"kc",(function(){return lo})),o.d(t,"lc",(function(){return so})),o.d(t,"ic",(function(){return co})),o.d(t,"jc",(function(){return uo})),o.d(t,"dc",(function(){return po})),o.d(t,"ec",(function(){return bo})),o.d(t,"cc",(function(){return mo})),o.d(t,"gc",(function(){return ho})),o.d(t,"hc",(function(){return go})),o.d(t,"fc",(function(){return vo})),o.d(t,"Z",(function(){return fo})),o.d(t,"ab",(function(){return yo})),o.d(t,"Rb",(function(){return Oo})),o.d(t,"Tb",(function(){return Co})),o.d(t,"Sb",(function(){return So})),o.d(t,"Kb",(function(){return xo})),o.d(t,"Jb",(function(){return jo})),o.d(t,"Uc",(function(){return Bo})),o.d(t,"Sc",(function(){return Po})),o.d(t,"Rc",(function(){return wo})),o.d(t,"Qc",(function(){return To})),o.d(t,"Tc",(function(){return zo})),o.d(t,"Lc",(function(){return Eo})),o.d(t,"Cc",(function(){return ko})),o.d(t,"Ac",(function(){return Ho})),o.d(t,"Bc",(function(){return _o})),o.d(t,"Hc",(function(){return Fo})),o.d(t,"Ic",(function(){return Ro})),o.d(t,"Jc",(function(){return Mo})),o.d(t,"Kc",(function(){return Lo})),o.d(t,"Fc",(function(){return Wo})),o.d(t,"Ec",(function(){return Io})),o.d(t,"Gc",(function(){return No})),o.d(t,"Dc",(function(){return Ao})),o.d(t,"Ab",(function(){return Do})),o.d(t,"zb",(function(){return Vo})),o.d(t,"Bb",(function(){return $o})),o.d(t,"Cb",(function(){return Go})),o.d(t,"mb",(function(){return Uo})),o.d(t,"qb",(function(){return Ko})),o.d(t,"pb",(function(){return qo})),o.d(t,"ob",(function(){return Yo})),o.d(t,"nb",(function(){return Xo})),o.d(t,"Eb",(function(){return Zo})),o.d(t,"Db",(function(){return Jo})),o.d(t,"xb",(function(){return Qo})),o.d(t,"yb",(function(){return en})),o.d(t,"vb",(function(){return tn})),o.d(t,"sb",(function(){return on})),o.d(t,"tb",(function(){return nn})),o.d(t,"ub",(function(){return an})),o.d(t,"wb",(function(){return rn})),o.d(t,"bc",(function(){return ln})),o.d(t,"Ub",(function(){return bn})),o.d(t,"Vb",(function(){return mn})),o.d(t,"Wb",(function(){return pn})),o.d(t,"Xb",(function(){return un})),o.d(t,"Yb",(function(){return cn})),o.d(t,"Zb",(function(){return sn})),o.d(t,"ac",(function(){return dn})),o.d(t,"f",(function(){return hn})),o.d(t,"e",(function(){return gn})),o.d(t,"d",(function(){return vn})),o.d(t,"Nc",(function(){return fn})),o.d(t,"Mc",(function(){return yn}));var n=o(3);function a({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"media",device:t})}var r=o(61),i=o(46);const l=e=>"svg"===e;function s({v:e,device:t,state:o}){const a=Object(r.i)({v:e,state:o}),s=Object(n.defaultValueValue)({v:e,key:"media",device:t,state:o}),c=Object(n.defaultValueValue)({v:e,key:"bgImageSrc",device:t,state:o}),d=Object(n.defaultValueValue)({v:e,key:"bgImageExtension",device:t,state:o}),u=Object(n.defaultValueValue)({v:e,key:"bgPopulation",device:t,state:o}),p=Object(n.defaultValueValue)({v:e,key:"media",device:t,state:"hover"}),b=Object(n.defaultValueValue)({v:e,key:"bgImageSrc",device:t,state:"hover"}),m=Object(n.defaultValueValue)({v:e,key:"bgImageExtension",device:t,state:"hover"}),h=Object(n.defaultValueValue)({v:e,key:"bgPopulation",device:t,state:"hover"}),g="image"===p&&""!==b&&""===h?`url(${l(m)?Object(i.f)(b):Object(i.c)(b)})`:"none",v="image"===s&&""!==c&&""===u?`url(${l(d)?Object(i.f)(c):Object(i.c)(c)})`:"none";return"hover"===a?g:v}function c({v:e,device:t,state:o}){const a=Object(r.i)({v:e,state:o}),i=Object(n.defaultValueValue)({v:e,key:"bgPopulation",device:t,state:o}),l=Object(n.defaultValueValue)({v:e,key:"bgPositionX",device:t,state:o}),s=Object(n.defaultValueValue)({v:e,key:"bgPopulation",device:t,state:"hover"}),c=Object(n.defaultValueValue)({v:e,key:"bgPositionX",device:t,state:"hover"});return"hover"===a&&""===s?c+"%":""===i?l+"%":0}function d({v:e,device:t,state:o}){const a=Object(r.i)({v:e,state:o}),i=Object(n.defaultValueValue)({v:e,key:"bgPopulation",device:t,state:o}),l=Object(n.defaultValueValue)({v:e,key:"bgPositionY",device:t,state:o}),s=Object(n.defaultValueValue)({v:e,key:"bgPopulation",device:t,state:"hover"}),c=Object(n.defaultValueValue)({v:e,key:"bgPositionY",device:t,state:"hover"});return"hover"===a&&""===s?c+"%":""===i?l+"%":0}function u({v:e,isSlider:t}){const{bgAttachment:o}=e;return{none:"scroll",fixed:"fixed",animated:"scroll"}[t?"none":o]}var p=o(10);const b=(e,t)=>"hover"===Object(r.i)({v:e,state:t})?"hover":t;function m({v:e,device:t,state:o,prefix:a=""}){o=b(e,o);const r=Object(p.b)(a,"borderRadius");return i=Object(p.b)(r,"type"),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}function h({v:e,device:t,state:o,prefix:a=""}){o=b(e,o);return r=Object(p.b)(a,"borderRadius"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o});var r}function g({v:e,device:t,state:o,prefix:a="",current:r="topLeft"}){o=b(e,o);const i=Object(p.b)(a,"border");return l=Object(p.b)(i,r+"Radius"),Object(n.defaultValueValue)({v:e,key:l,device:t,state:o});var l}var v=o(18),f=o(13);const y=(e,t)=>"hover"===Object(r.i)({v:e,state:t})?"hover":t;function O({v:e,device:t,state:o,prefix:a=""}){o=y(e,o);const r=Object(p.b)(a,"border");return i=Object(p.b)(r,"style"),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}function S({v:e,device:t,state:o,prefix:a=""}){o=y(e,o);const r=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}),i=Object(p.b)(a,"border"),l=Object(p.b)(i,"colorHex"),s=Object(p.b)(i,"colorOpacity"),c=Object(p.b)(i,"colorPalette"),{hex:d}=Object(f.d)(r(l),r(c));return Object(v.c)(d,r(s))}function C({v:e,device:t,state:o,prefix:a=""}){o=y(e,o);const r=Object(p.b)(a,"border");return i=Object(p.b)(r,"widthType"),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}function x({v:e,device:t,state:o,prefix:a=""}){o=y(e,o);const r=Object(p.b)(a,"border");return i=Object(p.b)(r,"width"),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}function j({v:e,device:t,state:o,prefix:a="",current:r="top"}){o=y(e,o);const i=Object(p.b)(a,"border"),l=Object(p.b)(i,r+"Width");return s=l,Object(n.defaultValueValue)({v:e,key:s,device:t,state:o});var s}function B({v:e,device:t,state:o,prefix:a="color"}){o=((e,t)=>"hover"===Object(r.i)({v:e,state:t})?"hover":t)(e,o);const i=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}),{hex:l}=Object(f.d)(i(Object(p.b)(a,"hex")),i(Object(p.b)(a,"palette")));return Object(v.c)(l,i(Object(p.b)(a,"opacity")))}const P=(e,t)=>"hover"===Object(r.i)({v:e,state:t})?"hover":t;function w({v:e,device:t,state:o,prefix:a="bg"}){o=P(e,o);const r=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}),{hex:i}=Object(f.d)(r(Object(p.b)(a,"colorHex")),r(Object(p.b)(a,"colorPalette")));return Object(v.c)(i,r(Object(p.b)(a,"colorOpacity")))}function T({v:e,device:t,state:o,prefix:a="bg"}){o=P(e,o);const r=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});return Object(f.d)(r(Object(p.b)(a,"colorHex")),r(Object(p.b)(a,"colorPalette"))).hex}function z({v:e,device:t,state:o}){o=E(e,o);const a=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}),r=a("bgColorType"),i=a("gradientType"),{hex:l}=Object(f.d)(a("bgColorHex"),a("bgColorPalette")),{hex:s}=Object(f.d)(a("gradientColorHex"),a("gradientColorPalette")),c=a("bgColorOpacity"),d=a("gradientColorOpacity"),u=a("gradientStartPointer"),p=a("gradientFinishPointer"),b=a("gradientLinearDegree"),m=a("gradientRadialDegree");return"gradient"===r?"linear"===i?`linear-gradient(${b}deg, ${Object(v.c)(l,c)} ${u}%, ${Object(v.c)(s,d)} ${p}%)`:`radial-gradient(circle ${m}px, ${Object(v.c)(l,c)} ${u}%, ${Object(v.c)(s,d)} ${p}%)`:"none"}const E=(e,t)=>"hover"===Object(r.i)({v:e,state:t})?"hover":t;function k({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"hoverTransition",device:t,state:o})}function H({v:e,device:t,state:o,prefix:a=""}){const r=(i=Object(p.b)(a,"verticalAlign"),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}));var i;return void 0===r?r:{top:"flex-start",center:"center",bottom:"flex-end"}[r]}function _({v:e,device:t,state:o}){const a=Object(n.defaultValueValue)({v:e,key:"horizontalAlign",device:t,state:o});return void 0===a?a:{left:"flex-start",center:"center",right:"flex-end"}[a]}function F({v:e,device:t,state:o,prefix:a=""}){return r=Object(p.b)(a,"horizontalAlign"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o});var r}function R({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"reverseColumns",device:t})}function M({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"reverseColumns",device:t})}var L=o(48);function W({v:e,device:t,state:o,prefix:a=""}){return L.b((r=Object(p.b)(a,"width"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o})));var r}function I({v:e,device:t}){return L.b(Object(n.defaultValueValue)({v:e,key:"height",device:t}))}function N({v:e,device:t}){return L.b(Object(n.defaultValueValue)({v:e,key:"size",device:t}))}function A({v:e,device:t,state:o}){return L.b(Object(n.defaultValueValue)({v:e,key:"containerSize",device:t,state:o}))}function D({v:e,device:t,state:o}){return L.b(Object(n.defaultValueValue)({v:e,key:"textSpacing",device:t,state:o}))}function V({v:e,device:t,state:o}){return L.b((a="spacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o})));var a}function $({v:e,device:t,state:o}){return a="containerType",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function G({v:e,device:t,state:o}){return a="containerSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function U({v:e}){const{slider:t}=e;return t}function K({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"fullHeight",device:t})}function q({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"sectionHeight",device:t})}function Y({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"sectionHeightSuffix",device:t})}function X({v:e,device:t,state:o,prefix:a=""}){const r=Object(p.b)(a,"padding");return i=Object(p.b)(r,"type"),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}function Z({v:e,device:t,state:o,prefix:a=""}){return r=Object(p.b)(a,"padding"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o});var r}function J({v:e,device:t,state:o,prefix:a="",current:r="paddingTop"}){return i=Object(p.b)(a,r),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}function Q({v:e,device:t,state:o,prefix:a=""}){const r=Object(p.b)(a,"padding");return i=Object(p.b)(r,"suffix"),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}function ee({v:e,device:t,state:o,prefix:a="",current:r="paddingTopSuffix"}){return i=Object(p.b)(a,r),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}function te({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"itemPaddingTop",device:t})+"px"}function oe({v:e,device:t}){return parseFloat(Object(n.defaultValueValue)({v:e,key:"itemPaddingRight",device:t})/2)+"px"}function ne({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"itemPaddingBottom",device:t})+"px"}function ae({v:e,device:t}){return parseFloat(Object(n.defaultValueValue)({v:e,key:"itemPaddingLeft",device:t})/2)+"px"}function re({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"marginType",device:t,state:o})}function ie({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"margin",device:t,state:o})}function le({v:e,device:t,state:o,current:a}){return Object(n.defaultValueValue)({v:e,key:a,device:t,state:o})}function se({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"marginSuffix",device:t,state:o})}function ce({v:e,device:t,state:o,current:a}){return Object(n.defaultValueValue)({v:e,key:a,device:t,state:o})}function de({v:e,device:t}){return-Object(n.defaultValueValue)({v:e,key:"itemPaddingTop",device:t})+"px"}function ue({v:e,device:t}){return parseFloat(-Object(n.defaultValueValue)({v:e,key:"itemPaddingRight",device:t})/2)+"px"}function pe({v:e,device:t}){return-Object(n.defaultValueValue)({v:e,key:"itemPaddingBottom",device:t})+"px"}function be({v:e,device:t}){return parseFloat(-Object(n.defaultValueValue)({v:e,key:"itemPaddingLeft",device:t})/2)+"px"}const me=(e,t)=>"hover"===Object(r.i)({v:e,state:t})?"hover":t;function he({v:e,device:t,state:o,prefix:a=""}){o=me(e,o);return r=Object(p.b)(a,"boxShadow"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o});var r}function ge({v:e,device:t,state:o,prefix:a=""}){o=me(e,o);const r=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}),i=Object(p.b)(a,"boxShadow"),l=Object(p.b)(i,"colorHex"),s=Object(p.b)(i,"colorOpacity"),c=Object(p.b)(i,"colorPalette"),{hex:d}=Object(f.d)(r(l),r(c));return Object(v.c)(d,r(s))}function ve({v:e,device:t,state:o,prefix:a=""}){o=me(e,o);const r=Object(p.b)(a,"boxShadow");return i=Object(p.b)(r,"horizontal"),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}function fe({v:e,device:t,state:o,prefix:a=""}){o=me(e,o);const r=Object(p.b)(a,"boxShadow");return i=Object(p.b)(r,"vertical"),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}function ye({v:e,device:t,state:o,prefix:a=""}){o=me(e,o);const r=Object(p.b)(a,"boxShadow");return i=Object(p.b)(r,"blur"),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}function Oe({v:e,device:t,state:o,prefix:a=""}){o=me(e,o);const r=Object(p.b)(a,"boxShadow");return i=Object(p.b)(r,"spread"),Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});var i}var Se=o(129);function Ce({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"shapeTopType",device:t,state:o})}function xe({v:e,device:t,state:o}){const{hex:a}=Object(f.d)(Object(n.defaultValueValue)({v:e,key:"shapeTopColorHex",device:t,state:o}),Object(n.defaultValueValue)({v:e,key:"shapeTopColorPalette",device:t,state:o})),r=Object(n.defaultValueValue)({v:e,key:"shapeTopColorOpacity",device:t,state:o}),i=Object(n.defaultValueValue)({v:e,key:"shapeTopType",device:t,state:o});return Object(Se.b)(i,Object(v.c)(a,r))}function je({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"shapeTopHeight",device:t,state:o})}function Be({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"shapeTopHeightSuffix",device:t,state:o})}function Pe({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"shapeTopHorizontal",device:t,state:o})}function we({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"shapeTopIndex",device:t,state:o})}function Te({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"shapeBottomType",device:t,state:o})}function ze({v:e,device:t,state:o}){const{hex:a}=Object(f.d)(Object(n.defaultValueValue)({v:e,key:"shapeBottomColorHex",device:t,state:o}),Object(n.defaultValueValue)({v:e,key:"shapeBottomColorPalette",device:t,state:o})),r=Object(n.defaultValueValue)({v:e,key:"shapeBottomColorOpacity",device:t,state:o}),i=Object(n.defaultValueValue)({v:e,key:"shapeBottomType",device:t,state:o});return Object(Se.b)(i,Object(v.c)(a,r))}function Ee({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"shapeBottomHeight",device:t,state:o})}function ke({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"shapeBottomHeightSuffix",device:t,state:o})}function He({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"shapeBottomHorizontal",device:t,state:o})}function _e({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"shapeBottomIndex",device:t,state:o})}function Fe({v:e,device:t,state:o}){let n;return n="desktop"===t?function({v:e}){const t=e.showOnDesktop;return"on"===t||void 0===t?"":"blur(3px)"}({v:e,device:t,state:o}):"tablet"===t?function({v:e}){const t=e.showOnTablet;return"on"===t||void 0===t?"":"blur(3px)"}({v:e,device:t,state:o}):function({v:e}){const t=e.showOnMobile;return"on"===t||void 0===t?"":"blur(3px)"}({v:e,device:t,state:o}),n}function Re({v:e,device:t,state:o}){let n;return n="desktop"===t?function({v:e}){const t=e.showOnDesktop;return"on"===t||void 0===t?1:.9}({v:e,device:t,state:o}):"tablet"===t?function({v:e}){const t=e.showOnTablet;return"on"===t||void 0===t?1:.9}({v:e,device:t,state:o}):function({v:e}){const t=e.showOnMobile;return"on"===t||void 0===t?1:.9}({v:e,device:t,state:o}),n}var Me=o(2);function Le(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function We(e){return L.b((t="zIndex",Object(n.defaultValueValue)(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(o),!0).forEach((function(t){Object(Me.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Le(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({key:t},e))));var t}var Ie=o(33);function Ne({v:e}){const{fontFamily:t,fontFamilyType:o}=e;return void 0===t?t:Object(Ie.d)({family:t,type:o}).family}function Ae({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"fontSize",device:t,state:o})}function De({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"lineHeight",device:t,state:o})}function Ve({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"fontWeight",device:t,state:o})}function $e({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"letterSpacing",device:t,state:o})}function Ge({v:e,device:t,state:o,prefix:a=""}){const r=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}),i=Object(p.b)(a,"fontFamily"),l=Object(p.b)(a,"fontFamilyType"),s=Object(p.b)(a,"fontStyle"),c=Object(f.e)("fontFamily",e[i],r(s)),d=Object(f.e)("fontFamilyType",e[l],r(s));return Object(Ie.d)({type:d,family:c}).family}function Ue({v:e,device:t,state:o,prefix:a=""}){const r=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}),i=Object(p.b)(a,"fontSize"),l=Object(p.b)(a,"fontStyle");return Object(f.e)((s="fontSize",Object(n.defaultValueKey)({key:s,device:t,state:o})),r(i),r(l));var s}function Ke({v:e,device:t,state:o,prefix:a=""}){const r=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}),i=Object(p.b)(a,"lineHeight"),l=Object(p.b)(a,"fontStyle");return Object(f.e)((s="lineHeight",Object(n.defaultValueKey)({key:s,device:t,state:o})),r(i),r(l));var s}function qe({v:e,device:t,state:o,prefix:a=""}){const r=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}),i=Object(p.b)(a,"fontWeight"),l=Object(p.b)(a,"fontStyle");return Object(f.e)((s="fontWeight",Object(n.defaultValueKey)({key:s,device:t,state:o})),r(i),r(l));var s}function Ye({v:e,device:t,state:o,prefix:a=""}){const r=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}),i=Object(p.b)(a,"letterSpacing"),l=Object(p.b)(a,"fontStyle");return Object(f.e)((s="letterSpacing",Object(n.defaultValueKey)({key:s,device:t,state:o})),r(i),r(l));var s}function Xe({v:e,device:t,state:o,prefix:a=""}){o=et(e,o);return r=Object(p.b)(a,"brightness"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o});var r}function Ze({v:e,device:t,state:o,prefix:a=""}){o=et(e,o);return r=Object(p.b)(a,"hue"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o});var r}function Je({v:e,device:t,state:o,prefix:a=""}){o=et(e,o);return r=Object(p.b)(a,"saturation"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o});var r}function Qe({v:e,device:t,state:o,prefix:a=""}){o=et(e,o);return r=Object(p.b)(a,"contrast"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o});var r}const et=(e,t)=>"hover"===Object(r.i)({v:e,state:t})?"hover":t;function tt({v:e,device:t,state:o}){return a="iconSpacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function ot({v:e,device:t,state:o}){return a="iconCustomSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function nt({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"reverseColumns",device:t})}function at({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"columnsHeightStyle",device:t})}function rt({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"columnsHeight",device:t})}function it({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"columnsHeightSuffix",device:t})}function lt({v:e,device:t,state:o}){return a="percentage",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function st({v:e,device:t,state:o}){const a=Object(f.e)(Object(n.defaultValueKey)({key:"fontSize",device:t,state:o}),Object(n.defaultValueValue)({v:e,key:"fontSize",device:t,state:o}),Object(n.defaultValueValue)({v:e,key:"fontStyle",device:t,state:o}));return`calc(${a}px - ${(e=>e<=24?20:e>24&&e<=32?40:60)(a)}%)`}function ct({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"spacing",device:t})+"px"}function dt({v:e,device:t,state:o,prefix:n="strokeColor"}){return B({v:e,device:t,state:o,prefix:n})}function ut({v:e,device:t,state:o,prefix:n="fillColor"}){return B({v:e,device:t,state:o,prefix:n})}function pt({v:e}){const{iconPosition:t}=e;return"right"===t?"row-reverse":"row"}function bt({v:e,device:t}){const{iconPosition:o}=e;return"right"===o?(a="iconSpacing",Object(n.defaultValueValue)({v:e,key:a,device:t}))+"px":"auto";var a}function mt({v:e,device:t}){const{iconPosition:o}=e;return"left"===o?(a="iconSpacing",Object(n.defaultValueValue)({v:e,key:a,device:t}))+"px":"auto";var a}function ht({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"gridColumn",device:t})}function gt({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"spacing",device:t})}function vt({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"filterStyle",device:t})}function ft({v:e,device:t,state:o}){const a=Object(n.defaultValueValue)({v:e,key:"ratio",device:t,state:o});return void 0===a?a:{"1:1":"100%","2:1":"50%","2:3":"150%","3:4":"125%","3:2":"66.67%","4:3":"75%","9:16":"177.78%","16:9":"56.25%","21:9":"42.86%"}[a]}function yt({v:e,device:t,state:o}){const a=Object(n.defaultValueValue)({v:e,key:"iconSize",device:t,state:o}),r=Math.round(.35*a);return void 0===a?a:r}function Ot({v:e,device:t,state:o}){const a=Object(n.defaultValueValue)({v:e,key:"ratio",device:t,state:o});return void 0===a?a:"4:3"===a?"#000":"transparent"}function St({v:e,device:t,state:o}){const a=Object(n.defaultValueValue)({v:e,key:"coverImageSrc",device:t,state:o}),r=Object(n.defaultValueValue)({v:e,key:"coverImageExtension",device:t,state:o});return void 0===a?a:""===a?"none":`url(${l=r,"svg"===l?Object(i.f)(a):Object(i.c)(a)})`;var l}function Ct({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"coverPositionX",device:t,state:o})}function xt({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"coverPositionY",device:t,state:o})}function jt({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"coverZoom",device:t,state:o})}function Bt({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"iconSizeWidth",device:t,state:o})}function Pt({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"iconSizeHeight",device:t,state:o})}function wt({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"controlsIconCustomSize",device:t,state:o})}function Tt({v:e,device:t,state:o,prefix:a=""}){return r=Object(p.b)(a,"widthSidebar"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o});var r}function zt({v:e,device:t,state:o,prefix:a=""}){return r=Object(p.b)(a,"widthImage"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o});var r}function Et({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"iconCustomSize",device:t,state:o})}function kt({v:e,device:t,state:o}){const a=Object(n.defaultValueValue)({v:e,key:"tempBorderRadiusType",device:t,state:o}),r=Object(n.defaultValueValue)({v:e,key:"borderRadius",device:t,state:o});return void 0===a||"hover"===o?void 0:"rounded"===a?500:r}function Ht({v:e,device:t,state:o}){const a=Object(n.defaultValueValue)({v:e,key:"iconPosition",device:t,state:o});return void 0===a?void 0:a}function _t({v:e,device:t,state:o}){const n=Ht({v:e,device:t,state:o});return void 0===n?void 0:"left"===n?"row nowrap":"row-reverse nowrap"}function Ft({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"iconCustomSize",device:t,state:o})}function Rt({v:e,device:t,state:o}){const a=Ht({v:e,device:t,state:o}),r=Object(n.defaultValueValue)({v:e,key:"iconSpacing",device:t,state:o});return void 0===a||void 0===r?void 0:r}function Mt({v:e,device:t,state:o}){const a=Object(n.defaultValueValue)({v:e,key:"iconCustomSize",device:t,state:o}),r=Object(n.defaultValueValue)({v:e,key:"iconType",device:t,state:o});return void 0===r||void 0===a?void 0:"outline"===r&&a<=24?1:"outline"===r&&a>24&&a<=32?1.1:"outline"===r&&a>32&&a<=48?1.4:"outline"===r&&a>48&&a<=64?2.3:"outline"===r&&a>64?3:0}function Lt({v:e,device:t,state:o}){return a="width",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Wt({v:e,device:t,state:o}){return a="widthSuffix",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function It({v:e,device:t,state:o}){return"on"===(a="showCloseButton",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}))?"block":"none";var a}function Nt({v:e,device:t,state:o}){return a="closeHorizontalPosition",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function At({v:e,device:t,state:o}){return a="closeHorizontalPositionSuffix",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Dt({v:e,device:t,state:o}){return a="closeVerticalPosition",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Vt({v:e,device:t,state:o}){return a="closeVerticalPositionSuffix",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function $t({v:e,device:t,state:o}){return a="closeCustomSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Gt({v:e,device:t,state:o}){return a="closeBgSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Ut({v:e,device:t,state:o}){return a="closeBorderRadius",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Kt({v:e,device:t,state:o}){return a="closeAlign",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function qt({v:e,device:t,state:o}){return a="closePosition",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Yt({v:e,device:t,state:o}){return a="columnsHeightStyle",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Xt({v:e,device:t,state:o}){return a="columnsHeight",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Zt({v:e,device:t,state:o}){return a="columnsHeightSuffix",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Jt({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"spacing",device:t,state:o})}function Qt({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"showPost",device:t,state:o})}function eo({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"showSeparation",device:t,state:o})}function to({v:e,device:t,state:o,prefix:a=""}){return r=Object(p.b)(a,"columns"),Object(n.defaultValueValue)({v:e,key:r,device:t,state:o});var r}function oo({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"column",device:t,state:o})}function no({v:e,device:t,state:o}){return Object(n.defaultValueValue)({v:e,key:"spacing",device:t,state:o})}function ao({v:e,device:t,state:o}){return a="spacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function ro({v:e,device:t,state:o}){return a="between",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function io({v:e,device:t,state:o}){return a="style",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function lo({v:e,device:t,state:o}){return a="width",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function so({v:e,device:t,state:o}){return a="widthSuffix",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function co({v:e,device:t,state:o}){return a="tabsCount",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function uo({v:e,device:t,state:o}){return a="verticalMode",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function po({v:e,device:t,state:o}){return a="customSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function bo({v:e,device:t,state:o}){return a="iconPadding",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function mo({v:e,device:t,state:o}){return a="enableText",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function ho({v:e,device:t,state:o}){return a="spacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function go({v:e,device:t,state:o}){return a="timelineStyle",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function vo({v:e,device:t,state:o}){return a="verticalMode",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function fo({v:e,device:t,state:o="normal"}){return Object(n.defaultValueValue)({v:e,key:"logoSize",device:t,state:o})}function yo({v:e,device:t,state:o="normal"}){return Object(n.defaultValueValue)({v:e,key:"skin",device:t,state:o})}function Oo({v:e,device:t,state:o}){return a="navStyle2Size",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function So({v:e,device:t,state:o}){return a="spacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Co({v:e,device:t,state:o}){return a="navStyle1Width",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function xo({v:e,device:t,state:o}){return a="openButtonWidth",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function jo({v:e,device:t,state:o}){return a="openButtonHeight",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Bo({v:e,device:t}){return Object(n.defaultValueValue)({v:e,key:"large",device:t})}function Po({v:e,device:t,state:o}){return a="elementType",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function wo({v:e,device:t,state:o}){return a="topSpacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function To({v:e,device:t,state:o}){return a="rightSpacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function zo({v:e,device:t,state:o}){return a="ratingSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Eo({v:e,device:t,state:o}){return a="subtotal",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function ko({v:e,device:t,state:o}){return a="purchases",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Ho({v:e,device:t,state:o}){return a="buttonDirection",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function _o({v:e,device:t,state:o}){return a="buttonSpacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Fo({v:e,device:t,state:o}){return a="cartHorizontalAlign",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Ro({v:e,device:t,state:o}){return a="cartVerticalAlign",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Mo({v:e,device:t,state:o}){return a="sidebarWidth",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Lo({v:e,device:t,state:o}){return a="sidebarWidthSuffix",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Wo({v:e,device:t,state:o}){return a="sidebarHeightStyle",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Io({v:e,device:t,state:o}){return a="sidebarHeight",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function No({v:e,device:t,state:o}){return a="sidebarHeightSuffix",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Ao({v:e,device:t,state:o}){return a="purchasesType",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Do({v:e,device:t,state:o}){return a="iconSpacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Vo({v:e,device:t,state:o}){return a="iconSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function $o({v:e,device:t,state:o}){return a="verticalMode",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Go({v:e,device:t,state:o}){return a="menuSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Uo({v:e,device:t,state:o}){return a="mMenu",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Ko({v:e,device:t,state:o}){return a="mMenuSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function qo({v:e,device:t,state:o}){return a="mMenuIconSpacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Yo({v:e,device:t,state:o}){return a="mMenuIconSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Xo({v:e,device:t,state:o}){const a=a=>Object(n.defaultValueValue)({v:e,key:a,device:t,state:o}),{hex:r}=Object(f.d)(a("mMenuHoverColorHex"),a("mMenuHoverColorPalette"));return Object(v.c)(r,a("mMenuHoverColorOpacity"))}function Zo({v:e,device:t,state:o}){return a="subMenuIconSpacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Jo({v:e,device:t,state:o}){return a="subMenuIconSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function Qo({v:e,device:t,state:o}){return a="megaMenuWidth",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function en({v:e,device:t,state:o}){return a="megaMenuWidthSuffix",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function tn({v:e,device:t,state:o}){return a="megaMenuOffsetTop",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function on({v:e,device:t,state:o}){return a="sectionHeight",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function nn({v:e,device:t,state:o}){return a="sectionHeightStyle",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function an({v:e,device:t,state:o}){return a="sectionHeightSuffix",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function rn({v:e,device:t,state:o}){return a="megaMenuPlacement",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function ln({v:e,device:t,state:o}){return a="width",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function sn({v:e,device:t,state:o}){return a="iconCustomSize",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function cn({v:e,device:t,state:o}){return a="iconPosition",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function dn({v:e,device:t,state:o}){return a="iconSpacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function un({v:e,device:t,state:o}){return a="horizontalAlign",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function pn({v:e,device:t,state:o}){return a="columns",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function bn({v:e,device:t,state:o}){return a="tableAside",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function mn({v:e,device:t,state:o}){return a="asideWidth",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function hn({v:e,device:t,state:o}){return a="animationName",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function gn({v:e,device:t,state:o}){return a="animationDuration",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function vn({v:e,device:t,state:o}){return a="animationDelay",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function fn({v:e,device:t,state:o}){return a="spacing",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}function yn({v:e,device:t,state:o}){return a="betweenThumbnail",Object(n.defaultValueValue)({v:e,key:a,device:t,state:o});var a}},,,function(e,t,o){"use strict";o.d(t,"c",(function(){return a})),o.d(t,"b",(function(){return r})),o.d(t,"a",(function(){return i})),o.d(t,"f",(function(){return l})),o.d(t,"d",(function(){return c})),o.d(t,"e",(function(){return d})),o.d(t,"g",(function(){return u}));var n=o(41);const a="normal",r="hover",i="active",l=()=>[a,r,i],s=e=>{const t=n.a.read(e);if(void 0===t)return;const o="tabNormal"===t?a:"tabHover"===t?r:t;return l().includes(o)?o:void 0},c=a,d=e=>{var t;return null!==(t=s(e))&&void 0!==t?t:c},u=e=>{switch(e){case a:return"tabNormal";case r:return"tabHover";default:return e}}},,function(e,t,o){"use strict";o.d(t,"a",(function(){return ut})),o.d(t,"d",(function(){return c})),o.d(t,"e",(function(){return d})),o.d(t,"h",(function(){return m})),o.d(t,"n",(function(){return y})),o.d(t,"o",(function(){return O})),o.d(t,"bb",(function(){return S})),o.d(t,"Z",(function(){return C})),o.d(t,"ab",(function(){return x})),o.d(t,"b",(function(){return P})),o.d(t,"c",(function(){return w})),o.d(t,"f",(function(){return k})),o.d(t,"g",(function(){return H})),o.d(t,"j",(function(){return _})),o.d(t,"i",(function(){return F})),o.d(t,"k",(function(){return L})),o.d(t,"m",(function(){return W})),o.d(t,"l",(function(){return I})),o.d(t,"gb",(function(){return N})),o.d(t,"hb",(function(){return D})),o.d(t,"ib",(function(){return V})),o.d(t,"jb",(function(){return $})),o.d(t,"kb",(function(){return G})),o.d(t,"lb",(function(){return A})),o.d(t,"nb",(function(){return q})),o.d(t,"ob",(function(){return Y})),o.d(t,"mb",(function(){return te})),o.d(t,"tb",(function(){return oe})),o.d(t,"q",(function(){return ne})),o.d(t,"p",(function(){return ae})),o.d(t,"U",(function(){return ie})),o.d(t,"X",(function(){return le})),o.d(t,"Y",(function(){return se})),o.d(t,"V",(function(){return ce})),o.d(t,"W",(function(){return de})),o.d(t,"r",(function(){return ue})),o.d(t,"v",(function(){return he})),o.d(t,"x",(function(){return pe})),o.d(t,"w",(function(){return be})),o.d(t,"u",(function(){return me})),o.d(t,"t",(function(){return ge})),o.d(t,"s",(function(){return ve})),o.d(t,"D",(function(){return fe})),o.d(t,"N",(function(){return Se})),o.d(t,"P",(function(){return Ce})),o.d(t,"O",(function(){return xe})),o.d(t,"T",(function(){return Be})),o.d(t,"S",(function(){return je})),o.d(t,"E",(function(){return Pe})),o.d(t,"Q",(function(){return we})),o.d(t,"C",(function(){return Te})),o.d(t,"db",(function(){return He})),o.d(t,"fb",(function(){return _e})),o.d(t,"eb",(function(){return Fe})),o.d(t,"cb",(function(){return Re})),o.d(t,"ub",(function(){return Ie})),o.d(t,"wb",(function(){return Ne})),o.d(t,"vb",(function(){return Ae})),o.d(t,"zb",(function(){return De})),o.d(t,"xb",(function(){return Ve})),o.d(t,"yb",(function(){return $e})),o.d(t,"I",(function(){return qe})),o.d(t,"F",(function(){return Ye})),o.d(t,"H",(function(){return Xe})),o.d(t,"G",(function(){return Ze})),o.d(t,"J",(function(){return Je})),o.d(t,"sb",(function(){return Qe})),o.d(t,"rb",(function(){return et})),o.d(t,"qb",(function(){return tt})),o.d(t,"pb",(function(){return ot})),o.d(t,"z",(function(){return nt})),o.d(t,"y",(function(){return at})),o.d(t,"M",(function(){return rt})),o.d(t,"K",(function(){return it})),o.d(t,"L",(function(){return lt})),o.d(t,"B",(function(){return st})),o.d(t,"A",(function(){return ct})),o.d(t,"R",(function(){return dt}));var n=o(2),a=o(1),r=o(3),i=o(13);function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function s(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?l(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function c({v:e,device:t,state:o,states:n,devices:l="all",disabled:c=!1,onChange:d}){const u=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),p=Object(i.c)("image");return{id:(b="bgImage",Object(r.defaultValueKey)({key:b,device:t,state:o})),label:Object(a.a)("Image"),type:"imageSetter",devices:l,states:n,disabled:c,population:{show:p.length>0,choices:p},value:{width:u("bgImageWidth"),height:u("bgImageHeight"),src:u("bgImageSrc"),x:u("bgPositionX"),y:u("bgPositionY"),extension:u("bgImageExtension"),population:u("bgPopulation")},onChange:({width:n,height:a,src:i,x:l,y:c,population:u,extension:p},{isChanged:b})=>{const m=s(s({},{v:e,device:t,state:o,onChange:d}),{width:n,height:a,src:i,x:l,y:c,population:u,extension:p,isChanged:b});return Object(r.saveOnChanges)(m)}};var b}function d({v:e,device:t,devices:o="all",state:n,states:i,disabled:l=!1}){const s=o=>Object(r.defaultValueValue)({v:e,key:o,device:t,state:n});return{id:(c="bgVideo",Object(r.defaultValueKey)({key:c,device:t,state:n})),label:Object(a.a)("URL"),type:"input",inputType:"video",placeholder:Object(a.a)("YouTube or Vimeo"),disabled:l,devices:o,states:i,value:{value:s("bgVideo")},onChange:({value:e})=>({bgVideo:e,bgColorOpacity:""!==e&&1===s("bgColorOpacity")?.8:s("bgColorOpacity"),tempBgColorOpacity:""!==e&&1===s("bgColorOpacity")?.8:s("tempBgColorOpacity")})};var c}var u=o(10);function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function m({v:e,device:t,devices:o="all",state:n,onChangeGrouped:r,onChangeUngrouped:i,prefix:l="",position:s=65}){return{type:"multiPicker",devices:o,position:s,picker:{id:Object(u.b)(l,"borderRadiusType"),label:Object(a.a)("Corner"),type:"radioGroup-dev",choices:[{value:"grouped",icon:"nc-corners-all"},{value:"ungrouped",icon:"nc-corners-individual"}]},choices:b(b({},h({v:e,device:t,state:n,prefix:l,onChange:r})),g({v:e,device:t,state:n,prefix:l,onChange:i}))}}function h({v:e,device:t,state:o,onChange:n,prefix:a=""}){const i=Object(u.b)(a,"borderRadius");return{grouped:[{id:(l=i,Object(r.defaultValueKey)({key:l,device:t,state:o})),type:"slider",slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))(i)},onChange:({value:i},{sliderDragEnd:l})=>{const s=b(b({},{v:e,device:t,state:o,prefix:a,onChange:n}),{value:i,sliderDragEnd:l});return Object(r.saveOnChanges)(s)}}]};var l}function g({v:e,device:t,state:o,onChange:n,prefix:a=""}){const i=e=>Object(r.defaultValueKey)({key:e,device:t,state:o}),l=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),s=Object(u.b)(a,"borderTopLeftRadius"),c=Object(u.b)(a,"borderTopRightRadius"),d=Object(u.b)(a,"borderBottomRightRadius"),p=Object(u.b)(a,"borderBottomLeftRadius");return{ungrouped:[{id:i(s),icon:"nc-corners-top-left",type:"slider",slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:l(s)},onChange:({value:i},{sliderDragEnd:l})=>{const s=b(b({},{v:e,device:t,state:o,prefix:a,onChange:n}),{current:"borderTopLeftRadius",value:i,sliderDragEnd:l});return Object(r.saveOnChanges)(s)}},{id:i(c),icon:"nc-corners-top-right",type:"slider",slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:l(c)},onChange:({value:i},{sliderDragEnd:l})=>{const s=b(b({},{v:e,device:t,state:o,prefix:a,onChange:n}),{current:"borderTopRightRadius",value:i,sliderDragEnd:l});return Object(r.saveOnChanges)(s)}},{id:i(d),icon:"nc-corners-bottom-right",type:"slider",slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:l(d)},onChange:({value:i},{sliderDragEnd:l})=>{const s=b(b({},{v:e,device:t,state:o,prefix:a,onChange:n}),{current:"borderBottomRightRadius",value:i,sliderDragEnd:l});return Object(r.saveOnChanges)(s)}},{id:i(p),icon:"nc-corners-bottom-left",type:"slider",slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:l(p)},onChange:({value:i},{sliderDragEnd:l})=>{const s=b(b({},{v:e,device:t,state:o,prefix:a,onChange:n}),{current:"borderBottomLeftRadius",value:i,sliderDragEnd:l});return Object(r.saveOnChanges)(s)}}]}}function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?v(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):v(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function y({v:e,device:t,state:o,states:n,disabled:a=!1,prefix:l="color",devices:s="all",onChangeHex:c,onChangePalette:d}){const p=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),{hex:b}=Object(i.d)(p(Object(u.b)(l,"hex")),p(Object(u.b)(l,"palette")));return{id:(m=l,Object(r.defaultValueKey)({key:m,device:t,state:o})),type:"colorPicker2",disabled:a,devices:s,states:n,select:{show:!1},value:{hex:b,opacity:p(Object(u.b)(l,"opacity")),palette:p(Object(u.b)(l,"palette"))},onChange:({hex:n,opacity:a,palette:i,isChanged:s,opacityDragEnd:u})=>{const p=f(f({},{v:e,device:t,state:o,prefix:l,onChange:c}),{hex:n,opacity:a,isChanged:s,opacityDragEnd:u}),b=f(f({},{v:e,device:t,state:o,prefix:l,onChange:d}),{opacity:a,palette:i});return"hex"===s||"opacity"===s?Object(r.saveOnChanges)(p):Object(r.saveOnChanges)(b)}};var m}function O({v:e,device:t,state:o,disabled:n=!1,states:a,devices:l="all",prefix:s="color",onChange:c}){const d=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),{hex:p}=Object(i.d)(d(Object(u.b)(s,"hex")),d(Object(u.b)(s,"palette")));return{id:(b=Object(u.b)(s,"field"),Object(r.defaultValueKey)({key:b,device:t,state:o})),type:"colorFields",devices:l,disabled:n,states:a,value:{hex:p,opacity:d(Object(u.b)(s,"opacity"))},onChange:({hex:n})=>{const a=f(f({},{v:e,device:t,state:o,prefix:s,onChange:c}),{hex:n});return Object(r.saveOnChanges)(a)}};var b}function S({v:e,device:t,state:o,states:n,devices:i="all",className:l,disabled:s}){return{id:(c="gradientType",Object(r.defaultValueKey)({key:c,device:t,state:o})),type:"select",devices:i,states:n,disabled:s,className:l,choices:[{title:Object(a.a)("Linear"),value:"linear"},{title:Object(a.a)("Radial"),value:"radial"}],value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))("gradientType")};var c}function C({v:e,device:t,state:o,states:n,devices:a="all",disabled:i}){return{id:(l="gradientLinearDegree",Object(r.defaultValueKey)({key:l,device:t,state:o})),type:"inputNumber",className:"brz-ed-grid__gradient__size",devices:a,states:n,disabled:i,min:0,max:360,value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))("gradientLinearDegree")};var l}function x({v:e,device:t,state:o,states:n,devices:a="all",disabled:i}){return{id:(l="gradientRadialDegree",Object(r.defaultValueKey)({key:l,device:t,state:o})),type:"inputNumber",className:"brz-ed-grid__gradient__degree",devices:a,states:n,disabled:i,min:0,max:1e3,value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))("gradientRadialDegree")};var l}function j(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function B(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?j(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):j(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function P({v:e,device:t,state:o,states:n,devices:l="all",disabled:s=!1,prefix:c="bg",showSelect:d=!0,onChangeType:p,onChangeHex:b,onChangePalette:m,onChangeGradientHex:h,onChangeGradientPalette:g,onChangeGradient:v}){const f=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),y=f(Object(u.b)(c,"colorType")),{hex:O}=Object(i.d)(f(Object(u.b)(c,"colorHex")),f(Object(u.b)(c,"colorPalette"))),{hex:S}=Object(i.d)(f("gradientColorHex"),f("gradientColorPalette")),C=f("gradientActivePointer");return{id:(x=Object(u.b)(c,"color"),Object(r.defaultValueKey)({key:x,device:t,state:o})),type:"colorPicker2",disabled:s,devices:l,states:n,select:{show:d,choices:[{title:Object(a.a)("Solid"),value:"solid"},{title:Object(a.a)("Gradient"),value:"gradient"}]},gradient:{show:"gradient"===y},value:{hex:O,opacity:f(Object(u.b)(c,"colorOpacity")),palette:f(Object(u.b)(c,"colorPalette")),select:y,gradientColorHex:S,gradientColorOpacity:f("gradientColorOpacity"),gradientColorPalette:f("gradientColorPalette"),startPointer:f("gradientStartPointer"),finishPointer:f("gradientFinishPointer"),activePointer:C},onChange:({hex:n,opacity:a,palette:i,select:l,opacityDragEnd:s,startPointer:d,finishPointer:u,activePointer:f,isChanged:O})=>{const S=B(B({},{v:e,device:t,state:o,prefix:c,onChange:p}),{bgColorType:l}),C=B(B({},{v:e,device:t,state:o,prefix:"startPointer"===f||"solid"===y?c:"gradient",onChange:"startPointer"===f||"solid"===y?b:h}),{hex:n,opacity:a,isChanged:O,opacityDragEnd:s}),x=B(B({},{v:e,device:t,state:o,prefix:"startPointer"===f||"solid"===y?c:"gradient",onChange:"startPointer"===f||"solid"===y?m:g}),{opacity:a,palette:i}),j=B(B({},{v:e,device:t,state:o,prefix:c,onChange:v}),{startPointer:d,finishPointer:u,activePointer:f});return"select"===O?Object(r.saveOnChanges)(S):"hex"===O||"opacity"===O?Object(r.saveOnChanges)(C):"palette"===O?Object(r.saveOnChanges)(x):Object(r.saveOnChanges)(j)}};var x}function w({v:e,device:t,state:o,states:n,devices:a="all",prefix:l="bg",className:s="",disabled:c=!1,onChange:d}){const p=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),{hex:b}=Object(i.d)(p(Object(u.b)(l,"colorHex")),p(Object(u.b)(l,"colorPalette")));return{id:(m=Object(u.b)(l,"colorField"),Object(r.defaultValueKey)({key:m,device:t,state:o})),type:"colorFields",devices:a,states:n,disabled:c,className:s,value:{hex:b,opacity:p(Object(u.b)(l,"colorOpacity"))},onChange:({hex:n})=>{const a=B(B({},{v:e,device:t,state:o,prefix:l,onChange:d}),{hex:n});return Object(r.saveOnChanges)(a)}};var m}var T=o(32);function z(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function E(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?z(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):z(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function k({v:e,device:t,state:o,states:n,onChangeStyle:l,onChangeHex:s,onChangePalette:c,devices:d="all",prefix:p="",showSelect:b=!0,choices:m=[{title:Object(a.a)("None"),value:""},{value:"solid",icon:"nc-solid"},{value:"dashed",icon:"nc-dashed"},{value:"dotted",icon:"nc-dotted"}]}){const h=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),g=Object(u.b)(p,"border"),v=Object(u.b)(g,"color"),f=Object(u.b)(g,"colorHex"),y=Object(u.b)(g,"colorOpacity"),O=Object(u.b)(g,"colorPalette"),S=Object(u.b)(g,"style"),{hex:C}=Object(i.d)(h(f),h(O));return{devices:d,id:(x=v,Object(r.defaultValueKey)({key:x,device:t,state:o})),type:"colorPicker2",states:n,select:{show:b,choices:m},value:{hex:C,opacity:h(y),palette:h(O),select:h(S)},onChange:({hex:n,opacity:a,palette:i,select:d,isChanged:u,opacityDragEnd:b})=>{const m=E(E({},{v:e,device:t,state:o,prefix:p,onChange:l}),{borderStyle:d,isChanged:u}),h=E(E({},{v:e,device:t,state:o,prefix:p,onChange:s}),{hex:n,opacity:a,isChanged:u,opacityDragEnd:b}),g=E(E({},{v:e,device:t,state:o,prefix:p,onChange:c}),{opacity:a,palette:i});return"select"===u?Object(r.saveOnChanges)(m):"hex"===u||"opacity"===u?Object(r.saveOnChanges)(h):Object(r.saveOnChanges)(g)}};var x}function H({v:e,device:t,state:o,states:n,onChange:a,devices:l="all",prefix:s=""}){const c=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),d=Object(u.b)(s,"border"),p=Object(u.b)(d,"colorHex"),b=Object(u.b)(d,"colorOpacity"),m=Object(u.b)(d,"colorPalette"),{hex:h}=Object(i.d)(c(p),c(m));return{devices:l,id:(g=Object(u.b)(d,"colorField"),Object(r.defaultValueKey)({key:g,device:t,state:o})),type:"colorFields",states:n,value:{hex:h,opacity:c(b)},onChange:({hex:n})=>{const i=E(E({},{v:e,device:t,state:o,prefix:s,onChange:a}),{hex:n});return Object(r.saveOnChanges)(i)}};var g}function _({v:e,device:t,state:o,onChange:n,devices:i="all",prefix:l=""}){const s=Object(u.b)(l,"border"),c=Object(u.b)(s,"width");return{devices:i,id:(d=c,Object(r.defaultValueKey)({key:d,device:t,state:o})),label:Object(a.a)("Size"),type:"inputNumber",min:0,max:360,value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))(c),onChange:a=>{const i=E(E({},{v:e,device:t,state:o,prefix:l,onChange:n}),{value:a});return Object(r.saveOnChanges)(i)}};var d}function F({v:e,device:t,state:o,states:n,onChangeType:i,onChangeGrouped:l,onChangeUngrouped:s,devices:c="all",prefix:d=""}){const p=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),b=Object(u.b)(d,"border"),m=Object(u.b)(b,"width"),h=Object(u.b)(m,"type"),g=Object(u.b)(b,"topWidth"),v=Object(u.b)(b,"rightWidth"),f=Object(u.b)(b,"bottomWidth"),y=Object(u.b)(b,"leftWidth"),O={grouped:[m],ungrouped:[g,v,f,y]};return{devices:c,id:(S=m,Object(r.defaultValueKey)({key:S,device:t,state:o})),type:"multiInputPicker",states:n,label:"grouped"===p(h)&&Object(a.a)("Size"),value:{type:p(h),grouped:[p(m)],ungrouped:[p(g),p(v),p(f),p(y)]},onChange:n=>{let{type:a,isChanged:c,isChangedIndex:u}=n,p=Object(T.a)(n,["type","isChanged","isChangedIndex"]);const b=E(E({},{v:e,device:t,state:o,prefix:d,onChange:i}),{type:a}),m=E(E({},{v:e,device:t,state:o,prefix:d,onChange:"grouped"===a?l:s}),{current:O[a][u],value:p[a][u]});return"type"===c?Object(r.saveOnChanges)(b):Object(r.saveOnChanges)(m)}};var S}function R(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function M(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?R(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):R(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function L({v:e,device:t,disabled:o=!1,state:n,states:l,onChangeType:s,onChangeHex:c,onChangePalette:d,prefix:p="",devices:b="all",choices:m="all"}){const h=o=>Object(r.defaultValueValue)({v:e,key:o,device:t,state:n}),g=Object(u.b)(p,"boxShadow"),v=Object(u.b)(g,"colorHex"),f=Object(u.b)(g,"colorOpacity"),y=Object(u.b)(g,"colorPalette"),{hex:O}=Object(i.d)(h(v),h(y)),S=[{title:Object(a.a)("None"),value:""},{title:Object(a.a)("Inset"),value:"inset"},{title:Object(a.a)("Outset"),value:"on"}],C=[{title:Object(a.a)("None"),value:""},{title:Object(a.a)("Inset"),value:"inset"}],x=[{title:Object(a.a)("None"),value:""},{title:Object(a.a)("Outset"),value:"on"}];return{devices:b,states:l,disabled:o,id:(j=g,Object(r.defaultValueKey)({key:j,device:t,state:n})),type:"colorPicker2",select:{choices:"all"===m?S:"inset"===m?C:x},value:{hex:O,opacity:h(f),palette:h(y),select:h(g)},onChange:({hex:o,opacity:a,palette:i,select:l,isChanged:u,opacityDragEnd:b})=>{const m=M(M({},{v:e,device:t,state:n,prefix:p,onChange:s}),{boxShadowType:l,isChanged:u}),h=M(M({},{v:e,device:t,state:n,prefix:p,onChange:c}),{hex:o,opacity:a,isChanged:u,opacityDragEnd:b}),g=M(M({},{v:e,device:t,state:n,prefix:p,onChange:d}),{opacity:a,palette:i});return"select"===u?Object(r.saveOnChanges)(m):"hex"===u||"opacity"===u?Object(r.saveOnChanges)(h):Object(r.saveOnChanges)(g)}};var j}function W({v:e,device:t,disabled:o=!1,state:n,states:a,onChange:l,prefix:s="",devices:c="all"}){const d=o=>Object(r.defaultValueValue)({v:e,key:o,device:t,state:n}),p=Object(u.b)(s,"boxShadow"),b=Object(u.b)(p,"field"),m=Object(u.b)(p,"colorHex"),h=Object(u.b)(p,"colorPalette"),g=Object(u.b)(p,"colorOpacity"),{hex:v}=Object(i.d)(d(m),d(h));return{devices:c,disabled:o,id:(f=b,Object(r.defaultValueKey)({key:f,device:t,state:n})),type:"colorFields",states:a,value:{hex:v,opacity:d(g)},onChange:({hex:o})=>{const a=M(M({},{v:e,device:t,state:n,prefix:s,onChange:l}),{hex:o});return Object(r.saveOnChanges)(a)}};var f}function I({v:e,device:t,disabled:o=!1,state:n,states:a,onChange:i,prefix:l="",devices:s="all"}){const c=o=>Object(r.defaultValueValue)({v:e,key:o,device:t,state:n}),d=Object(u.b)(l,"boxShadow"),p=Object(u.b)(d,"fields"),b=Object(u.b)(d,"blur"),m=Object(u.b)(d,"spread"),h=Object(u.b)(d,"vertical"),g=Object(u.b)(d,"horizontal");return{devices:s,disabled:o,states:a,id:(v=p,Object(r.defaultValueKey)({key:v,device:t,state:n})),type:"multiInput",config:{defaultIcon:["nc-shadow"],icons:["nc-blur","nc-size","nc-vertical","nc-horizontal"]},value:[c(b),c(m),c(h),c(g)],onChange:([o,a,s,c])=>{const d=M(M({},{v:e,device:t,state:n,prefix:l,onChange:i}),{boxShadowBlur:o,boxShadowSpread:a,boxShadowVertical:s,boxShadowHorizontal:c});return Object(r.saveOnChanges)(d)}};var v}function N({v:e,device:t,state:o,devices:n="all",disabled:i=!1}){return{id:(l="linkAnchor",Object(r.defaultValueKey)({key:l,device:t,state:o})),label:Object(a.a)("Block"),type:"blockThumbnail",devices:n,disabled:i,value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))("linkAnchor")};var l}function A({v:e,device:t,state:o,disabled:n=!1,devices:i="all"}){return{id:Object(r.defaultValueKey)({key:"linkUpload",device:t,state:o}),label:Object(a.a)("File"),type:"fileUpload",disabled:n,devices:i,value:Object(r.defaultValueValue)({v:e,key:"linkUpload",device:t,state:o})}}function D({v:e,devices:t="all"}){const o=Object(i.c)("link");return{id:"linkExternal",type:"input",devices:t,label:Object(a.a)("Link to"),placeholder:"http://",population:{show:o.length>0,choices:o},value:{value:e.linkExternal,population:e.linkPopulation},onChange:({value:e,population:t},{changed:o})=>({linkExternal:e,linkPopulation:t,linkExternalType:"value"===o||""===t?"linkExternal":"linkPopulation"})}}function V({v:e,device:t,state:o,devices:n="all"}){return{id:(i="linkExternalBlank",Object(r.defaultValueKey)({key:i,device:t,state:o})),type:"switch",label:Object(a.a)("Open In New Tab"),devices:n,value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))("linkExternalBlank")};var i}function $({v:e,device:t,state:o,devices:n="all"}){return{id:(i="linkExternalRel",Object(r.defaultValueKey)({key:i,device:t,state:o})),type:"switch",label:Object(a.a)("Make it Nofollow"),devices:n,value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))("linkExternalRel")};var i}function G({v:e,device:t,state:o,canDelete:n=!0,disabled:i=!1,component:l,devices:s="all"}){const c=e=>Object(r.defaultValueKey)({key:e,device:t,state:o}),d=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o});return{id:c("linkPopup"),type:"promptAddPopup",label:Object(a.a)("Popup"),canDelete:n,disabled:i,popupKey:`${l.getId()}_${d("linkPopup")}`,devices:s,value:{value:d("linkPopup"),popups:d("popups")},onChange:({value:e,popups:t})=>({[c("linkPopup")]:e,[c("popups")]:t})}}function U(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function K(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?U(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):U(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function q({v:e,device:t,state:o,devices:n,position:a,prefix:r="",disabled:i=!1}){return X({v:e,device:t,state:o,devices:n,position:a,prefix:r,disabled:i})}function Y({v:e,device:t,state:o,devices:n,position:a,prefix:r="",disabled:i=!1}){return X({v:e,device:t,state:o,devices:n,position:a,prefix:r,disabled:i,suffixChoices:[{title:"px",value:"px"}]})}function X({v:e,device:t,state:o,prefix:n="",devices:i="all",disabled:l=!1,position:s=50,childs:c=["paddingTop","paddingRight","paddingBottom","paddingLeft"],suffixChoices:d=[{title:"px",value:"px"},{title:"%",value:"%"}]}){const p=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),b=Object(u.b)(n,"padding"),m=Object(u.b)(b,"type");return{id:b,type:"group-dev",devices:i,position:s,disabled:l,options:[{id:m,label:Object(a.a)("Padding"),type:"radioGroup-dev",choices:[{value:"grouped",icon:"nc-styling-all"},{value:"ungrouped",icon:"nc-styling-individual"}]},Z({v:e,device:t,state:o,childs:c,suffixChoices:d,prefix:n,disabled:"grouped"!==p(m),onChange:["onChangePaddingGrouped"]}),...J({v:e,device:t,state:o,childs:c,suffixChoices:d,prefix:n,disabled:"ungrouped"!==p(m),onChange:["onChangePaddingUngrouped"]})]}}function Z({v:e,device:t,state:o,childs:n,suffixChoices:a,onChange:i,disabled:l=!1,prefix:s=""}){const c=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),d=Object(u.b)(s,"padding"),p=Object(u.b)(d,"suffix");return{id:(b=d,Object(r.defaultValueKey)({key:b,device:t,state:o})),type:"slider",disabled:l,slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:a},value:{value:c(d),suffix:c(p)},onChange:({value:a,suffix:l},{sliderDragEnd:c})=>{const d=K(K({},{v:e,device:t,state:o,childs:n,onChange:i,prefix:s}),{value:a,suffix:l,sliderDragEnd:c});return Object(r.saveOnChanges)(d)}};var b}function J({v:e,device:t,state:o,childs:n,suffixChoices:a,onChange:i,disabled:l=!1,prefix:s=""}){const c=e=>Object(r.defaultValueKey)({key:e,device:t,state:o}),d=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),p=Object(u.b)(s,"paddingTop"),b=Object(u.b)(p,"suffix"),m=Object(u.b)(s,"paddingRight"),h=Object(u.b)(m,"suffix"),g=Object(u.b)(s,"paddingBottom"),v=Object(u.b)(g,"suffix"),f=Object(u.b)(s,"paddingLeft"),y=Object(u.b)(f,"suffix");return[{id:c(p),icon:"nc-styling-top",type:"slider",disabled:l,slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:a},value:{value:d(p),suffix:d(b)},onChange:({value:a,suffix:l},{sliderDragEnd:c})=>{const d=K(K({},{v:e,device:t,state:o,childs:n,onChange:i,prefix:s}),{current:"paddingTop",value:a,suffix:l,sliderDragEnd:c});return Object(r.saveOnChanges)(d)}},n.includes("paddingRight")?{id:c(m),icon:"nc-styling-right",type:"slider",disabled:l,slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:a},value:{value:d(m),suffix:d(h)},onChange:({value:a,suffix:l},{sliderDragEnd:c})=>{const d=K(K({},{v:e,device:t,state:o,childs:n,onChange:i,prefix:s}),{current:"paddingRight",value:a,suffix:l,sliderDragEnd:c});return Object(r.saveOnChanges)(d)}}:{},{id:c(g),icon:"nc-styling-bottom",type:"slider",disabled:l,slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:a},value:{value:d(g),suffix:d(v)},onChange:({value:a,suffix:l},{sliderDragEnd:c})=>{const d=K(K({},{v:e,device:t,state:o,childs:n,onChange:i,prefix:s}),{current:"paddingBottom",value:a,suffix:l,sliderDragEnd:c});return Object(r.saveOnChanges)(d)}},n.includes("paddingLeft")?{id:c(f),icon:"nc-styling-left",type:"slider",disabled:l,slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:a},value:{value:d(f),suffix:d(y)},onChange:({value:a,suffix:l},{sliderDragEnd:c})=>{const d=K(K({},{v:e,device:t,state:o,childs:n,onChange:i,prefix:s}),{current:"paddingLeft",value:a,suffix:l,sliderDragEnd:c});return Object(r.saveOnChanges)(d)}}:{}]}function Q(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ee(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Q(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function te({v:e,device:t,state:o,devices:n="all",disabled:i=!1,position:l=60,marginType:s,onChangeGrouped:c,onChangeUngrouped:d}){const u=e=>Object(r.defaultValueKey)({key:e,device:t,state:o}),p=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o});return{id:"margin",type:"group-dev",position:l,devices:n,disabled:i,options:[{id:"marginType",label:Object(a.a)("Margin"),type:"radioGroup-dev",choices:[{value:"grouped",icon:"nc-styling-all"},{value:"ungrouped",icon:"nc-styling-individual"}]},{id:u("margin"),type:"slider",disabled:"grouped"!==p("marginType"),slider:{min:-100,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:p("margin"),suffix:p("marginSuffix")},onChange:({value:n,suffix:a})=>{const i=ee(ee({},{v:e,device:t,state:o,marginType:s,onChange:c}),{value:n,suffix:a});return Object(r.saveOnChanges)(i)}},{id:u("marginTop"),icon:"nc-styling-top",type:"slider",disabled:"ungrouped"!==p("marginType"),slider:{min:-100,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:p("marginTop"),suffix:p("marginTopSuffix")},onChange:({value:n,suffix:a})=>{const i=ee(ee({},{v:e,device:t,state:o,onChange:d}),{current:"marginTop",value:n,suffix:a});return Object(r.saveOnChanges)(i)}},{id:u("marginRight"),icon:"nc-styling-right",type:"slider",disabled:"ungrouped"!==p("marginType"),slider:{min:-100,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:p("marginRight"),suffix:p("marginRightSuffix")},onChange:({value:n,suffix:a})=>{const i=ee(ee({},{v:e,device:t,state:o,onChange:d}),{current:"marginRight",value:n,suffix:a});return Object(r.saveOnChanges)(i)}},{id:u("marginBottom"),icon:"nc-styling-bottom",type:"slider",disabled:"ungrouped"!==p("marginType"),slider:{min:-100,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:p("marginBottom"),suffix:p("marginBottomSuffix")},onChange:({value:n,suffix:a})=>{const i=ee(ee({},{v:e,device:t,state:o,onChange:d}),{current:"marginBottom",value:n,suffix:a});return Object(r.saveOnChanges)(i)}},{id:u("marginLeft"),icon:"nc-styling-left",type:"slider",disabled:"ungrouped"!==p("marginType"),slider:{min:-100,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:p("marginLeft"),suffix:p("marginLeftSuffix")},onChange:({value:n,suffix:a})=>{const i=ee(ee({},{v:e,device:t,state:o,onChange:d}),{current:"marginLeft",value:n,suffix:a});return Object(r.saveOnChanges)(i)}}]}}function oe({v:e,device:t,devices:o="all",position:n=10,closeTooltip:r=!0}){return"tablet"===t?function({v:e,position:t=10,devices:o="all",closeTooltip:n=!0}){return{id:"showOnTablet",type:"toggle",devices:o,position:t,closeTooltip:n,choices:[{icon:"nc-eye-17",title:Object(a.a)("Disable on Tablet"),value:"on"},{icon:"nc-eye-ban-18",title:Object(a.a)("Enable on Tablet"),value:"off"}],value:e.showOnTablet}}({v:e,position:n,devices:o,closeTooltip:r}):"mobile"===t?function({v:e,position:t=10,devices:o="all",closeTooltip:n=!0}){return{id:"showOnMobile",type:"toggle",devices:o,position:t,closeTooltip:n,choices:[{icon:"nc-eye-17",title:Object(a.a)("Disable on Mobile"),value:"on"},{icon:"nc-eye-ban-18",title:Object(a.a)("Enable on Mobile"),value:"off"}],value:e.showOnMobile}}({v:e,position:n,devices:o,closeTooltip:r}):{}}function ne({v:e,position:t=40,device:o,state:n,devices:i="all",population:l}){const s=e=>Object(r.defaultValueKey)({key:e,device:o,state:n}),c=t=>Object(r.defaultValueValue)({v:e,key:t,device:o,state:n});return{id:s("customClassName"),label:Object(a.a)("CSS Class"),position:t,display:"block",type:"input",devices:i,helper:!0,helperContent:"\n<span>Add your custom class without the .dot, example: my-class</span>",population:{show:l.length>0,choices:l},value:{value:c("customClassName"),population:c("cssClassPopulation")},onChange:({value:e,population:t})=>({[s("customClassName")]:e,[s("cssClassPopulation")]:t})}}function ae({v:e,device:t,state:o,devices:n="all",position:i=45}){return{id:(l="customCSS",Object(r.defaultValueKey)({key:l,device:t,state:o})),type:"codeMirror",label:Object(a.a)("Custom CSS"),position:i,display:"block",devices:n,helper:!0,helperContent:'\n<p class="brz-p">You can use the following selectors to create targeted CSS.</p>\n<p class="brz-p">\n <span class="brz-span brz-ed-tooltip__overlay-code">element</span> {...}\n <br class="brz-br">\n <span class="brz-span brz-ed-tooltip__overlay-code">element .child-element</span> {...}\n</p>',placeholder:"element { CSS goes here }",value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))("customCSS")};var l}var re=o(137);function ie({v:e,position:t=60,device:o,state:n,choices:i=Object(re.a)(),devices:l="all"}){const s=e=>Object(r.defaultValueKey)({key:e,device:o,state:n}),c=t=>Object(r.defaultValueValue)({v:e,key:t,device:o,state:n});return{id:"animation",type:"group-dev",position:t,devices:l,options:[{id:s("animationName"),label:Object(a.a)("Entrance Animation"),type:"select",choices:i,value:"initial"===c("animationName")?c("tempAnimationName"):c("animationName"),onChange:e=>({[s("animationName")]:e,[s("tempAnimationName")]:e})},{id:s("animationDuration"),label:Object(a.a)("Duration"),type:"slider",disabled:"none"===c("animationName")&&"initial"!==c("animationName"),slider:{min:0,max:5,step:.1},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"s",value:"s"}]},value:{value:c("animationDuration")/1e3},onChange:({value:e},{sliderDragEnd:t})=>({[s("animationName")]:t?c("tempAnimationName"):"initial",[s("animationDuration")]:1e3*e})},{id:s("animationDelay"),label:Object(a.a)("Delay"),type:"slider",disabled:"none"===c("animationName")&&"initial"!==c("animationName"),slider:{min:0,max:5,step:.1},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"s",value:"s"}]},value:{value:c("animationDelay")/1e3},onChange:({value:e},{sliderDragEnd:t})=>({[s("animationName")]:t?c("tempAnimationName"):"initial",[s("animationDelay")]:1e3*e})}]}}function le({v:e,device:t,prefix:o="",devices:n="all",state:a,states:i}){return{id:Object(r.defaultValueKey)({key:Object(u.b)(o,"hue"),device:t,state:a}),icon:"nc-hue",className:"brz-ed-option__slider--hue",type:"slider",devices:n,states:i,slider:{min:0,max:360},input:{show:!0,min:0,max:360},suffix:{show:!0,choices:[{title:"deg",value:"deg"}]},value:{value:Object(r.defaultValueValue)({v:e,key:Object(u.b)(o,"hue"),device:t,state:a})},onChange:({value:n})=>({[Object(r.defaultValueKey)({v:e,key:Object(u.b)(o,"hue"),device:t,state:a})]:n})}}function se({v:e,device:t,prefix:o="",devices:n="all",state:a,states:i}){return{id:Object(r.defaultValueKey)({key:Object(u.b)(o,"saturation"),device:t,state:a}),icon:"nc-saturation",className:"brz-ed-option__slider--saturation",type:"slider",devices:n,states:i,slider:{min:0,max:200},input:{show:!0,min:0,max:200},suffix:{show:!0,choices:[{title:"%",value:"%"}]},value:{value:Object(r.defaultValueValue)({v:e,key:Object(u.b)(o,"saturation"),device:t,state:a})},onChange:({value:e})=>({[Object(r.defaultValueKey)({key:Object(u.b)(o,"saturation"),device:t,state:a})]:e})}}function ce({v:e,device:t,prefix:o="",devices:n="all",state:a,states:i}){return{id:Object(r.defaultValueKey)({key:Object(u.b)(o,"brightness"),device:t,state:a}),icon:"nc-brightness",className:"brz-ed-option__slider--brightness",type:"slider",devices:n,states:i,slider:{min:10,max:200},input:{show:!0,min:0,max:200},suffix:{show:!0,choices:[{title:"%",value:"%"}]},value:{value:Object(r.defaultValueValue)({v:e,key:Object(u.b)(o,"brightness"),device:t,state:a})},onChange:({value:e})=>({[Object(r.defaultValueKey)({key:Object(u.b)(o,"brightness"),device:t,state:a})]:e})}}function de({v:e,device:t,prefix:o="",devices:n="all",state:a,states:i}){return{id:Object(r.defaultValueKey)({key:Object(u.b)(o,"contrast"),device:t,state:a}),icon:"nc-contrast",className:"brz-ed-option__slider--contrast",type:"slider",devices:n,states:i,slider:{min:0,max:200},input:{show:!0,min:0,max:200},suffix:{show:!0,choices:[{title:"%",value:"%"}]},value:{value:Object(r.defaultValueValue)({v:e,key:Object(u.b)(o,"contrast"),device:t,state:a})},onChange:({value:e})=>({[Object(r.defaultValueKey)({key:Object(u.b)(o,"contrast"),device:t,state:a})]:e})}}function ue({device:e,devices:t="all",state:o}){return{id:Object(r.defaultValueKey)({key:"advancedSettings",device:e,state:o}),type:"advancedSettings",devices:t,disabled:!0}}function pe({devices:e="all"}){return{id:"toolbarSettings",type:"popover-dev",devices:e,disabled:!0}}function be({devices:e="responsive"}){return{id:"showOnTablet",type:"toggle",disabled:!0,devices:e}}function me({devices:e="responsive"}){return{id:"showOnMobile",type:"toggle",disabled:!0,devices:e}}function he({device:e}){let t;return t="tablet"===e?be({}):"mobile"===e?me({}):{},t}function ge({prefix:e="",devices:t="all"}){return{devices:t,id:Object(u.b)(e,"padding"),type:"group-dev",disabled:!0}}function ve({devices:e="all"}){return{devices:e,id:"margin",type:"group-dev",disabled:!0}}function fe({v:e,device:t,devices:o="all",state:n,states:i}){const l=o=>Object(r.defaultValueValue)({v:e,key:o,device:t,state:n});return{id:(s="media",Object(r.defaultValueKey)({key:s,device:t,state:n})),label:Object(a.a)("Type"),type:"radioGroup",devices:o,states:i,choices:[{value:"image",icon:"nc-media-image"},{value:"map",icon:"nc-media-map"}],value:"video"===l("media")?"image":l("media")};var s}function ye(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Oe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ye(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Se({v:e,device:t,state:o,onChange:n}){const a=Object(r.defaultValueValue)({v:e,key:"boxShadowBlur",device:t,state:o}),i=Object(r.defaultValueValue)({v:e,key:"boxShadowVertical",device:t,state:o});return{id:Object(r.defaultValueKey)({key:"boxShadow",device:t,state:o}),type:"multiInput",config:{defaultIcon:["nc-shadow"],icons:["nc-blur","nc-vertical"]},value:[a,i],onChange:([a,i])=>{const l=Oe(Oe({},{v:e,device:t,state:o,onChange:n}),{boxShadowBlur:a,boxShadowVertical:i});return Object(r.saveOnChanges)(l)}}}function Ce({device:e,component:t,state:o,blockType:n,position:i=90,disabled:l=!1,devices:s="all"}){return{devices:s,position:i,blockType:n,id:(c="makeItSaved",Object(r.defaultValueKey)({key:c,device:e,state:o})),type:"savedBlock",icon:"nc-save-section",disabled:l,title:Object(a.a)("Save"),tooltipContent:Object(a.a)("Saved"),value:{blockId:t.getId()}};var c}function xe({device:e,component:t,state:o,blockType:n,devices:i="all"}){return{devices:i,blockType:n,id:(l="makeItGlobal",Object(r.defaultValueKey)({key:l,device:e,state:o})),label:Object(a.a)("Make it Global"),type:"globalBlock",value:{_id:t.getId()}};var l}function je({v:e,device:t,devices:o="all",disabled:n=!1,state:i}){const l=e=>Object(r.defaultValueKey)({key:e,device:t,state:i});return{id:l("iconSize"),label:Object(a.a)("Play"),type:"slider",devices:o,disabled:n,roles:["admin"],slider:{min:50,max:200},input:{show:!0,min:50,max:200},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:(s="iconSize",Object(r.defaultValueValue)({v:e,key:s,device:t,state:i}))},onChange:({value:e})=>({[l("iconSize")]:e,[l("iconSizeWidth")]:e,[l("iconSizeHeight")]:e})};var s}function Be({v:e,device:t,state:o,devices:n="all",disabled:i=!1}){return{id:(l="custom",Object(r.defaultValueKey)({key:l,device:t,state:o})),label:Object(a.a)("File"),type:"fileUpload",acceptedExtensions:["video/*"],devices:n,disabled:i,value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))("custom")};var l}function Pe({v:e,device:t,devices:o="all",disabled:n=!1,state:i}){const l=e=>Object(r.defaultValueKey)({key:e,device:t,state:i}),s=o=>Object(r.defaultValueValue)({v:e,key:o,device:t,state:i});return{id:l("type"),label:Object(a.a)("Style"),type:"radioGroup",disabled:n,devices:o,choices:[{value:"simple",icon:"nc-counter-style-1"},{value:"radial",icon:"nc-counter-style-2"},{value:"empty",icon:"nc-counter-style-3"},{value:"pie",icon:"nc-counter-style-4"}],value:s("type"),onChange:e=>({[l("type")]:e,[l("start")]:"simple"!==s("type")?s("start"):0})}}function we({v:e,device:t,devices:o="all",disabled:n=!1,state:i}){const l=e=>Object(r.defaultValueKey)({key:e,device:t,state:i}),s=o=>Object(r.defaultValueValue)({v:e,key:o,device:t,state:i});return{id:l("style"),label:Object(a.a)("Style"),type:"radioGroup",devices:o,disabled:n,choices:[{value:"basic",icon:"nc-sndcloud-style-1"},{value:"artwork",icon:"nc-sndcloud-style-2"}],value:s("style"),onChange:e=>({[l("style")]:e,[l("showArtwork")]:"basic"===e?"off":"on",[l("height")]:s("basic"===e?"mediumHeight":"artwork"===e?"largeHeight":"height")})}}function Te({v:e,device:t,devices:o="all",state:n,position:i=350}){return{id:Object(r.defaultValueKey)({key:"itemPadding",device:t,state:n}),type:"slider",label:Object(a.a)("Spacing"),roles:["admin"],devices:o,position:i,slider:{min:0,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},disabled:1===e.items.length,value:{value:Object(r.defaultValueValue)({v:e,key:"itemPadding",device:t,state:n})},onChange:({value:e})=>({[Object(r.defaultValueKey)({key:"itemPadding",device:t,state:n})]:e,[Object(r.defaultValueKey)({key:"itemPaddingRight",device:t,state:n})]:e,[Object(r.defaultValueKey)({key:"itemPaddingLeft",device:t,state:n})]:e})}}var ze=o(67);const Ee=1440,ke=960;function He({v:e,inGallery:t,device:o,state:n,devices:l="all"}){const s=t=>Object(r.defaultValueValue)({v:e,key:t,device:o,state:n}),c=Object(i.c)("link");return{id:(d="linkExternal",Object(r.defaultValueKey)({key:d,device:o,state:n})),type:"input",label:Object(a.a)("Link to"),placeholder:"http://",devices:l,population:{show:c.length>0&&!t,choices:c},value:{population:s("linkPopulation"),value:s("linkExternal")},onChange:({value:e,population:t},{changed:o})=>({linkExternal:e,linkPopulation:t,linkExternalType:"value"===o||""===t?"linkExternal":"linkPopulation"})};var d}function _e({devices:e="all",gallery:t,enableTags:o}){const{inGallery:n=!1}=t||{};return{label:"Tags",id:"tags",type:"inputText-dev",helper:{enabled:!0,content:"Enter the tags, separated by a comma (art, sport, nature, etc).",position:"top-end"},placeholder:"art, nature, etc.",devices:e,disabled:!n||!o}}function Fe({v:e,cW:t,device:o,state:n,devices:i="all",disabled:l=!1,showPointer:s=!0,wrapperSizes:c,dynamicContent:d,gallery:u}){const{inGallery:p=!1}=u||{},b=e=>Object(r.defaultValueKey)({key:e,device:o,state:n}),m=t=>Object(r.defaultValueValue)({v:e,key:t,device:o,state:n});return{id:b("image"),label:Object(a.a)("Image"),type:"imageSetter",disabled:l,devices:i,onlyPointer:"desktop"!==o,showPointer:s,population:"desktop"===o&&{show:d.length>0&&!p,choices:d},value:{width:e.imageWidth,height:e.imageHeight,extension:e.imageExtension,src:e.imageSrc,x:m("positionX"),y:m("positionY"),population:e.imagePopulation},onChange:"desktop"===o?({width:o,height:n,src:a,x:r,y:i,population:l,extension:s})=>{if(l)return{imagePopulation:l};const d=o||Ee,u=n||ke,p=Object(ze.b)({imageWidth:d,imageHeight:u,widthSuffix:e.widthSuffix,heightSuffix:e.heightSuffix,width:e.width,height:e.height},t);let b=c.width,m=c.height;if("%"===e.widthSuffix){const t=e.width||100;b=c.width*t/p.width}if("%"===e.heightSuffix){const t=e.height||100;m=c.height*t/p.height}if("svg"===s||"gif"===s){const t=c.width/(d/u);m="px"===e.heightSuffix?t:100}return{imageWidth:d,imageHeight:u,imageSrc:a,imageExtension:s,width:Math.round(b),height:Math.round(m),positionX:r,positionY:i,imagePopulation:""}}:({x:e,y:t})=>({[b("positionX")]:e,[b("positionY")]:t})}}function Re({v:e,device:t,state:o,devices:n="all"}){const i=e=>Object(r.defaultValueKey)({key:e,device:t,state:o}),l=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o});return{type:"multiPicker",devices:n,picker:{id:i("borderRadiusType"),label:Object(a.a)("Corner"),type:"radioGroup",choices:[{value:"square",icon:"nc-corners-square"},{value:"rounded",icon:"nc-corners-round"},{value:"custom",icon:"nc-more"}],value:l("borderRadiusType"),onChange:e=>({[i("borderRadiusType")]:e,borderRadius:"square"===e?l("tempBorderRadius"):"rounded"===e?300:l("borderRadius")})},choices:{custom:[{id:i("borderRadius"),type:"slider",slider:{min:0,max:300},input:{show:!0,max:300},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:l("borderRadius")},onChange:({value:e})=>({[i("borderRadius")]:e,[i("tempBorderRadius")]:e})}]}}}var Me=o(33);function Le(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function We(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Le(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Ie({v:e,prefix:t="",device:o,state:n,disabled:l=!1,devices:s="all",onChange:c}){const d=Object(r.defaultValueKey)({key:Object(u.b)(t,"fontFamily"),device:o,state:n}),p=Object(i.e)("fontFamily",Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontFamily"),device:o,state:n}),Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontStyle"),device:o,state:n}));return{id:d,label:Object(a.a)("Font Family"),type:"fontFamily",devices:s,disabled:l,value:p,onChange:({id:a,weights:i,type:l})=>{const s=We(We({},{v:e,prefix:t,device:o,state:n,onChange:c}),{current:d,value:a,weights:i,type:l});return Object(r.saveOnChanges)(s)}}}function Ne({v:e,prefix:t="",device:o,state:n,disabled:i=!1,devices:l="all"}){const s=Object(r.defaultValueKey)({key:Object(u.b)(t,"fontStyle"),device:o,state:n}),c=Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontStyle"),device:o,state:n});return{id:s,label:Object(a.a)("Typography"),type:"fontStyle",devices:l,disabled:i,className:"brz-ed-popover__font-style",display:"block",value:c,onChange:e=>({[s]:e})}}function Ae({v:e,prefix:t="",device:o,state:n,disabled:l=!1,devices:s="all",onChange:c}){const d=Object(r.defaultValueKey)({key:Object(u.b)(t,"fontSize"),device:o,state:n});let p=Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontSize"),device:o,state:n});return p||(p=Object(i.e)(d,p,Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontStyle"),device:o,state:n}))),{id:d,label:Object(a.a)("Size"),type:"stepper",devices:s,disabled:l,display:"block",min:1,max:100,step:1,value:p,onChange:a=>{const i=We(We({},{v:e,prefix:t,device:o,state:n,onChange:c}),{current:d,value:a});return Object(r.saveOnChanges)(i)}}}function De({v:e,prefix:t="",device:o,state:n,disabled:l=!1,devices:s="all",onChange:c}){const d=Object(r.defaultValueKey)({key:Object(u.b)(t,"lineHeight"),device:o,state:n});let p=Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"lineHeight"),device:o,state:n});return p||(p=Object(i.e)(d,p,Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontStyle"),device:o,state:n}))),{id:d,label:Object(a.a)("Line Hgt."),type:"stepper",devices:s,disabled:l,display:"block",min:1,max:10,step:.1,value:p,onChange:a=>{const i=We(We({},{v:e,prefix:t,device:o,state:n,onChange:c}),{current:d,value:a});return Object(r.saveOnChanges)(i)}}}function Ve({v:e,prefix:t="",device:o,state:n,disabled:l=!1,devices:s="all",onChange:c}){const d=Object(r.defaultValueKey)({key:Object(u.b)(t,"fontWeight"),device:o,state:n}),p=Object(i.e)("fontFamilyType",Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontFamilyType"),device:o,state:n}),Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontStyle"),device:o,state:n})),b=Object(i.e)("fontFamily",Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontFamily"),device:o,state:n}),Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontStyle"),device:o,state:n}));let m=Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontWeight"),device:o,state:n});return m||(m=Object(i.e)(d,m,Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontStyle"),device:o,state:n}))),{id:d,label:Object(a.a)("Weight"),type:"select",devices:s,disabled:l,display:"block",choices:Object(Me.n)({type:p,family:b}),value:m,onChange:a=>{const i=We(We({},{v:e,prefix:t,device:o,state:n,onChange:c}),{current:d,value:a});return Object(r.saveOnChanges)(i)}}}function $e({v:e,prefix:t="",device:o,state:n,disabled:l=!1,devices:s="all",onChange:c}){const d=Object(r.defaultValueKey)({key:Object(u.b)(t,"letterSpacing"),device:o,state:n});let p=Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"letterSpacing"),device:o,state:n});return p||(p=Object(i.e)(d,p,Object(r.defaultValueValue)({v:e,key:Object(u.b)(t,"fontStyle"),device:o,state:n}))),{id:d,label:Object(a.a)("Letter Sp."),type:"stepper",devices:s,disabled:l,display:"block",min:-20,max:20,step:.5,value:p,onChange:a=>{const i=We(We({},{v:e,prefix:t,device:o,state:n,onChange:c}),{current:d,value:a});return Object(r.saveOnChanges)(i)}}}var Ge=o(8);function Ue(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ke(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ue(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function qe({v:e,device:t,state:o,devices:n="all"}){const i=e=>Object(r.defaultValueKey)({key:e,device:t,state:o});return{devices:n,id:i("padding"),type:"slider",label:Object(a.a)("Spacing"),slider:{min:0,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:(l="padding",Object(r.defaultValueValue)({v:e,key:l,device:t,state:o}))},onChange:({value:e})=>({[i("padding")]:e,[i("paddingRight")]:e,[i("paddingBottom")]:e,[i("paddingLeft")]:e})};var l}function Ye({v:e,device:t,state:o,devices:n="all"}){const a=Ge.default.pluck(e.items[0].value.items,"value");return{devices:n,id:(i="apps",Object(r.defaultValueKey)({key:i,device:t,state:o})),type:"formApps",icon:"nc-extensions-2",value:{id:e._id,fields:a}};var i}function Xe({v:e,device:t,state:o,devices:n="all"}){const i=e=>Object(r.defaultValueKey)({key:e,device:t,state:o}),l=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),s={small:l("sizeSmallPadding"),medium:l("sizeMediumPadding"),large:l("sizeLargePadding")};return{devices:n,id:i("size"),label:Object(a.a)("Size"),type:"radioGroup",position:17,choices:[{icon:"nc-small",value:"small"},{icon:"nc-medium",value:"medium"},{icon:"nc-large",value:"large"}],value:l("size"),onChange:e=>({[i("size")]:e,[i("paddingTop")]:s[e],[i("paddingRight")]:s[e]+10,[i("paddingBottom")]:s[e],[i("paddingLeft")]:s[e]+10})}}function Ze({v:e,device:t,state:o,onChange:n,devices:i="all"}){return{devices:i,id:(l="borderRadius",Object(r.defaultValueKey)({key:l,device:t,state:o})),label:Object(a.a)("Corner"),type:"slider",slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))("borderRadius")},onChange:({value:a},{sliderDragEnd:i})=>{const l=Ke(Ke({},{v:e,device:t,state:o,onChange:n}),{value:a,sliderDragEnd:i});return Object(r.saveOnChanges)(l)}};var l}function Je({v:e,device:t,state:o,prefix:n="field",devices:i="all"}){const l=e=>Object(r.defaultValueKey)({key:e,device:t,state:o});return{devices:i,id:l(Object(u.b)(n,"padding")),type:"slider",label:Object(a.a)("Spacing"),slider:{min:0,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:(s=Object(u.b)(n,"padding"),Object(r.defaultValueValue)({v:e,key:s,device:t,state:o}))},onChange:({value:e})=>({[l(Object(u.b)(n,"padding"))]:e,[l(Object(u.b)(n,"paddingRight"))]:e,[l(Object(u.b)(n,"paddingBottom"))]:e,[l(Object(u.b)(n,"paddingLeft"))]:e})};var s}function Qe({v:e,device:t,devices:o="all",state:n}){return{id:(l="shapeTopType",Object(r.defaultValueKey)({key:l,device:t,state:n})),label:Object(a.a)("Type"),type:"select",devices:o,className:"brz-control__select-option--icon",choices:Object(i.f)(),value:(o=>Object(r.defaultValueValue)({v:e,key:o,device:t,state:n}))("shapeTopType")};var l}function et({v:e,device:t,devices:o="all",disabled:n=!1,state:i}){const l=e=>Object(r.defaultValueKey)({key:e,device:t,state:i});return{id:l("shapeTopFlip"),label:Object(a.a)("Flip"),type:"checkGroup",disabled:n,devices:o,choices:[{value:"shapeTopHorizontal",icon:"nc-flip-horizontal"}],value:{shapeTopHorizontal:"on"===(s="shapeTopHorizontal",Object(r.defaultValueValue)({v:e,key:s,device:t,state:i}))},onChange:({shapeTopHorizontal:e})=>({[l("shapeTopHorizontal")]:e?"on":"off"})};var s}function tt({v:e,device:t,devices:o="all",state:n}){return{id:(l="shapeBottomType",Object(r.defaultValueKey)({key:l,device:t,state:n})),label:Object(a.a)("Type"),type:"select",devices:o,className:"brz-control__select-option--icon brz-control__select-option--icon--bottom",choices:Object(i.f)(),value:(o=>Object(r.defaultValueValue)({v:e,key:o,device:t,state:n}))("shapeBottomType")};var l}function ot({v:e,device:t,devices:o="all",disabled:n=!1,state:i}){const l=e=>Object(r.defaultValueKey)({key:e,device:t,state:i});return{id:l("shapeBottomFlip"),label:Object(a.a)("Flip"),type:"checkGroup",devices:o,disabled:n,choices:[{value:"shapeBottomHorizontal",icon:"nc-flip-horizontal"}],value:{shapeBottomHorizontal:"on"===(s="shapeBottomHorizontal",Object(r.defaultValueValue)({v:e,key:s,device:t,state:i}))},onChange:({shapeBottomHorizontal:e})=>({[l("shapeBottomHorizontal")]:e?"on":"off"})};var s}function nt({v:e,device:t,state:o,devices:n="all",disabled:i=!1}){return{id:(l="audio",Object(r.defaultValueKey)({key:l,device:t,state:o})),label:Object(a.a)("File"),type:"fileUpload",acceptedExtensions:[".mp3",".ogg",".wav"],devices:n,disabled:i,value:(n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}))("audio")};var l}function at({v:e,device:t,state:o,devices:n="all",disabled:i=!1}){const l=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),s=e=>Object(r.defaultValueKey)({key:e,device:t,state:o});return{id:s("iconSize"),label:Object(a.a)("Icons"),type:"radioGroup",disabled:i,devices:n,choices:[{value:"small",icon:"nc-16"},{value:"medium",icon:"nc-24"},{value:"large",icon:"nc-32"},{value:"custom",icon:"nc-more"}],value:l("iconSize"),onChange:e=>({[s("iconSize")]:e,iconCustomSize:l("small"===e?"smallIconSize":"medium"===e?"mediumIconSize":"large"===e?"largeIconSize":"iconCustomSize")})}}function rt({v:e,device:t,type:o,devices:n="all",disabled:l=!1,state:s}){const c=e=>Object(r.defaultValueKey)({key:e,device:t,state:s}),d=o=>Object(r.defaultValueValue)({v:e,key:o,device:t,state:s});return{id:c("taxonomy"),label:Object(a.a)("Categories"),className:"brz-ed-option__select-taxonomy",type:"select",disabled:l,devices:n,choices:Object(i.h)(o),value:`${d("taxonomy")}|${d("taxonomyId")}`,onChange:e=>{const[t,o]=e.split("|");return{[c("taxonomy")]:t,[c("taxonomyId")]:o}}}}function it({v:e,device:t,devices:o="all",state:n}){const i="desktop"===t?6:Math.min(e.gridColumn*e.gridRow,6);return{id:Object(r.defaultValueKey)({key:"gridColumn",device:t,state:n}),type:"slider",label:Object(a.a)("Columns"),devices:o,className:"brz-ed-option__slider--skin-dev",slider:{min:1,max:i,step:1},input:{show:!0,min:1,max:i,step:1},value:{value:Object(r.defaultValueValue)({v:e,key:"gridColumn",device:t,state:n}),suffix:null},onChange:({value:o})=>{const a=Object(r.defaultValueKey)({key:"gridColumn",device:t,state:n}),i={[a]:o,[a+"Suffix"]:""};if("desktop"===t){const t=Number(o)*Number(e.gridRow);t<e.tabletGridColumn&&(i.tabletGridColumn=t),t<e.mobileGridColumn&&(i.mobileGridColumn=t)}return i}}}function lt({v:e,device:t,devices:o="all",state:n}){return{id:Object(r.defaultValueKey)({key:"gridRow",device:t,state:n}),type:"slider",label:Object(a.a)("Rows"),devices:o,className:"brz-ed-option__slider--skin-dev",slider:{min:1,max:15,step:1},input:{show:!0,min:1,max:50,step:1},value:{value:Object(r.defaultValueValue)({v:e,key:"gridRow",device:t,state:n}),suffix:null},onChange:({value:o})=>{const a=Object(r.defaultValueKey)({key:"gridRow",device:t,state:n}),i={[a]:o,[a+"Suffix"]:""};if("desktop"===t){const t=Number(o)*Number(e.gridColumn);t<e.tabletGridColumn&&(i.tabletGridColumn=t),t<e.mobileGridColumn&&(i.mobileGridColumn=t)}return i}}}function st({v:e,device:t,state:o,choices:n=[],disabled:i=!1,devices:l="all"}){const s=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),c=e=>Object(r.defaultValueKey)({key:e,device:t,state:o});return{id:c("taxonomy"),label:Object(a.a)("Categories"),disabled:i,devices:l,type:"select",choices:n,value:`${s("taxonomy")}|${s("taxonomyId")}`,onChange:e=>{const[t,o]=e.split("|");return{[c("taxonomy")]:t,[c("taxonomyId")]:o}}}}function ct({v:e,device:t,state:o,disabled:n=!1,devices:i="all"}){const l=n=>Object(r.defaultValueValue)({v:e,key:n,device:t,state:o}),s=e=>Object(r.defaultValueKey)({key:e,device:t,state:o});return{id:"sliderPaddingType",type:"group-dev",disabled:n,devices:i,position:50,options:[{id:"sliderPaddingType",label:Object(a.a)("Padding"),type:"radioGroup-dev",choices:[{value:"grouped",icon:"nc-styling-all"},{value:"ungrouped",icon:"nc-styling-individual"}]},{id:s("sliderPadding"),type:"slider",disabled:"grouped"!==l("sliderPaddingType"),slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:l("sliderPadding"),suffix:l("sliderPaddingSuffix")},onChange:({value:e,suffix:t})=>({[s("sliderPadding")]:e,[s("sliderPaddingSuffix")]:t,[s("sliderPaddingTop")]:e,[s("sliderPaddingRight")]:e,[s("sliderPaddingBottom")]:e,[s("sliderPaddingLeft")]:e})},{id:s("sliderPaddingTop"),icon:"nc-styling-top",type:"slider",disabled:"ungrouped"!==l("sliderPaddingType"),slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:l("sliderPaddingTop"),suffix:l("sliderPaddingTopSuffix")},onChange:({value:e,suffix:t})=>({[s("sliderPaddingTop")]:e,[s("sliderPaddingTopSuffix")]:t,[s("sliderPadding")]:e===l("sliderPaddingRight")&&e===l("sliderPaddingLeft")&&e===l("sliderPaddingBottom")?e:l("sliderPadding")})},{id:s("sliderPaddingRight"),icon:"nc-styling-right",type:"slider",disabled:"ungrouped"!==l("sliderPaddingType"),slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:l("sliderPaddingRight"),suffix:l("sliderPaddingRightSuffix")},onChange:({value:e,suffix:t})=>({[s("sliderPaddingRight")]:e,[s("sliderPaddingRightSuffix")]:t,[s("sliderPadding")]:e===l("sliderPaddingTop")&&e===l("sliderPaddingLeft")&&e===l("sliderPaddingBottom")?e:l("sliderPadding")})},{id:s("sliderPaddingBottom"),icon:"nc-styling-bottom",type:"slider",disabled:"ungrouped"!==l("sliderPaddingType"),slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:l("sliderPaddingBottom"),suffix:l("sliderPaddingBottomSuffix")},onChange:({value:e,suffix:t})=>({[s("sliderPaddingBottom")]:e,[s("sliderPaddingBottomSuffix")]:t,[s("sliderPadding")]:e===l("sliderPaddingRight")&&e===l("sliderPaddingLeft")&&e===l("sliderPaddingTop")?e:l("sliderPadding")})},{id:s("sliderPaddingLeft"),icon:"nc-styling-left",type:"slider",disabled:"ungrouped"!==l("sliderPaddingType"),slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:l("sliderPaddingLeft"),suffix:l("sliderPaddingLeftSuffix")},onChange:({value:e,suffix:t})=>({[s("sliderPaddingLeft")]:e,[s("sliderPaddingLeftSuffix")]:t,[s("sliderPadding")]:e===l("sliderPaddingRight")&&e===l("sliderPaddingTop")&&e===l("sliderPaddingBottom")?e:l("sliderPadding")})}]}}function dt({v:e,device:t,devices:o="all",state:n}){const i=e=>Object(r.defaultValueKey)({key:e,device:t,state:n});return{id:i("twitter"),label:Object(a.a)("Twitter"),type:"select",devices:o,choices:[{title:Object(a.a)("Embed"),value:"embed"},{title:Object(a.a)("Button"),value:"button"}],value:(l="twitter",Object(r.defaultValueValue)({v:e,key:l,device:t,state:n})),onChange:e=>({[i("twitter")]:e,[i("twitterType")]:"embed"===e?"embed":"followButton"})};var l}function ut({title:e}){return{title:e,getItems:()=>[]}}},function(e,t,o){"use strict";o.d(t,"h",(function(){return n})),o.d(t,"f",(function(){return a})),o.d(t,"c",(function(){return r})),o.d(t,"b",(function(){return i})),o.d(t,"a",(function(){return l})),o.d(t,"g",(function(){return s})),o.d(t,"e",(function(){return c})),o.d(t,"d",(function(){return d}));const n=(e,t)=>"string"==typeof e?e:t,a=(e,t)=>n(e)||t,r=e=>e&&e[0].toUpperCase()+e.slice(1),i=(e,t)=>""===e?t:e+r(t),l=e=>e.reduce(i,""),s=(e,...t)=>{let o=0;return e.replace(/%s/g,()=>t[o++])},c=e=>encodeURIComponent(JSON.stringify(e)),d=e=>JSON.parse(decodeURIComponent(e))},function(e,t,o){"use strict";o.r(t),o.d(t,"renderStyles",(function(){return b})),o.d(t,"css",(function(){return g})),o.d(t,"tmpCSSFromCache",(function(){return v})),o.d(t,"cssStyleSizeWidthPercent",(function(){return z})),o.d(t,"cssStyleSizeWidthPx",(function(){return E})),o.d(t,"cssStyleSizeMaxWidthPercent",(function(){return H})),o.d(t,"cssStyleSizeWidthStoryOnly",(function(){return k})),o.d(t,"cssStyleSizeHeightPx",(function(){return _})),o.d(t,"cssStyleSizeMinHeightPx",(function(){return F})),o.d(t,"cssStyleSizeMaxWidthSize",(function(){return R})),o.d(t,"cssStyleSizeSizePercent",(function(){return M})),o.d(t,"cssStyleSizeMaxWidthContainer",(function(){return I})),o.d(t,"cssStyleSizeTextSpacing",(function(){return A})),o.d(t,"cssStyleSizeSpacing",(function(){return N})),o.d(t,"cssStyleSizeHeightPxOnly",(function(){return D})),o.d(t,"cssStyleSizeHeightPercentOnly",(function(){return V})),o.d(t,"cssStyleSizeSize",(function(){return L})),o.d(t,"cssStyleSizeWidth",(function(){return W})),o.d(t,"cssStyleElementLineBorder",(function(){return $})),o.d(t,"cssStyleTypographyElementCountdownLabelFontSize",(function(){return te})),o.d(t,"cssStyleNumberTypography2FontFamily",(function(){return ae})),o.d(t,"cssStyleNumberTypography2FontSize",(function(){return re})),o.d(t,"cssStyleNumberTypography2LetterSpacing",(function(){return se})),o.d(t,"cssStyleNumberTypography2FontWeight",(function(){return le})),o.d(t,"cssStyleNumberTypography2LineHeight",(function(){return ie})),o.d(t,"cssStyleTitleTypography2FontFamily",(function(){return ce})),o.d(t,"cssStyleTitleTypography2FontSize",(function(){return de})),o.d(t,"cssStyleTitleTypography2LetterSpacing",(function(){return be})),o.d(t,"cssStyleTitleTypography2FontWeight",(function(){return pe})),o.d(t,"cssStyleTitleTypography2LineHeight",(function(){return ue})),o.d(t,"cssStyleMessageTypography2FontFamily",(function(){return me})),o.d(t,"cssStyleMessageTypography2FontSize",(function(){return he})),o.d(t,"cssStyleMessageTypography2LetterSpacing",(function(){return fe})),o.d(t,"cssStyleMessageTypography2FontWeight",(function(){return ve})),o.d(t,"cssStyleMessageTypography2LineHeight",(function(){return ge})),o.d(t,"cssStyleElementCountDown2NumberColor",(function(){return ye})),o.d(t,"cssStyleElementCountDown2TitleColor",(function(){return Oe})),o.d(t,"cssStyleElementCountDown2MessageColor",(function(){return Se})),o.d(t,"cssStyleElementCountDown2SpacingLeft",(function(){return oe})),o.d(t,"cssStyleElementCountDown2SpacingRight",(function(){return ne})),o.d(t,"cssStyleElementCountDown2HoverTransitionProperty",(function(){return Ce})),o.d(t,"cssStyleElementCounterChartEnd",(function(){return xe})),o.d(t,"cssStyleElementCounterChartWidth",(function(){return je})),o.d(t,"cssStyleElementCounterFillColor",(function(){return Be})),o.d(t,"cssStyleElementCounterStrokeColor",(function(){return Pe})),o.d(t,"cssStyleElementCounterTransitionHoverProperty",(function(){return we})),o.d(t,"cssStyleElementIconBoxFlexDirection",(function(){return Te})),o.d(t,"cssStyleElementIconBoxMarginRight",(function(){return ze})),o.d(t,"cssStyleElementIconBoxMarginLeft",(function(){return Ee})),o.d(t,"cssStyleBorder",(function(){return ke})),o.d(t,"cssStyleBorderTransparentColor",(function(){return He})),o.d(t,"cssStyleElementImageGallery3FontFamily",(function(){return Ke})),o.d(t,"cssStyleElementImageGallery3FontSize",(function(){return qe})),o.d(t,"cssStyleElementImageGallery3LineHeight",(function(){return Ye})),o.d(t,"cssStyleElementImageGallery3FontWeight",(function(){return Xe})),o.d(t,"cssStyleElementImageGallery3LetterSpacing",(function(){return Ze})),o.d(t,"cssStyleElementImageGalleryWidth",(function(){return Fe})),o.d(t,"cssStyleElementImageGalleryMargin",(function(){return Re})),o.d(t,"cssStyleElementImageGalleryItemWidth",(function(){return Me})),o.d(t,"cssStyleElementImageGalleryItemPadding",(function(){return Le})),o.d(t,"cssStyleElementImageGalleryFilterSpacing",(function(){return We})),o.d(t,"cssStyleElementImageGalleryFilterAfterSpacing",(function(){return Ie})),o.d(t,"cssStyleElementImageGalleryFilterHorizontalAlign",(function(){return Ne})),o.d(t,"cssStyleElementImageGalleryPaddingFourFields",(function(){return Ae})),o.d(t,"cssStyleElementImageGalleryBorderRadius",(function(){return Ue})),o.d(t,"cssStyleElementImageGalleryFilterColor",(function(){return De})),o.d(t,"cssStyleElementImageGalleryFilterBgColor",(function(){return Ve})),o.d(t,"cssStyleElementImageGalleryFilterBoxShadow",(function(){return $e})),o.d(t,"cssStyleElementImageGalleryFilterBorder",(function(){return Ge})),o.d(t,"cssStyleElementImageGalleryFilterActiveColor",(function(){return Je})),o.d(t,"cssStyleElementImageGalleryFilterActiveBgColor",(function(){return Qe})),o.d(t,"cssStyleElementImageGalleryFilterActiveBorder",(function(){return et})),o.d(t,"cssStyleElementImageGalleryFilterActiveShadow",(function(){return tt})),o.d(t,"cssStyleBorderRadius",(function(){return _e})),o.d(t,"cssStyleBgColor",(function(){return ot})),o.d(t,"cssStyleBgColorHex",(function(){return nt})),o.d(t,"cssStyleBg2Color",(function(){return at})),o.d(t,"cssStyleBgGradient",(function(){return rt})),o.d(t,"cssStyleBgImage",(function(){return it})),o.d(t,"cssStyleBgImageHover",(function(){return lt})),o.d(t,"cssStyleBgMediaImage",(function(){return st})),o.d(t,"cssStyleBgImagePosition",(function(){return ct})),o.d(t,"cssStyleBgImageAttachment",(function(){return dt})),o.d(t,"cssStyleBgMediaMap",(function(){return ut})),o.d(t,"cssStyleBgMediaVideo",(function(){return pt})),o.d(t,"cssStyleColor",(function(){return bt})),o.d(t,"cssStyleLabelColor",(function(){return mt})),o.d(t,"cssStyleBoxShadow",(function(){return gt})),o.d(t,"cssStyleBoxShadowSuffixForGlamour",(function(){return ht})),o.d(t,"cssStyleBoxShadowSection",(function(){return vt})),o.d(t,"cssStyleShapeTopType",(function(){return ft})),o.d(t,"cssStyleShapeTopHeight",(function(){return yt})),o.d(t,"cssStyleShapeTopFlip",(function(){return Ot})),o.d(t,"cssStyleShapeTopIndex",(function(){return St})),o.d(t,"cssStyleShapeBottomType",(function(){return Ct})),o.d(t,"cssStyleShapeBottomHeight",(function(){return xt})),o.d(t,"cssStyleShapeBottomFlip",(function(){return jt})),o.d(t,"cssStyleShapeBottomIndex",(function(){return Bt})),o.d(t,"cssStyleHoverTransition",(function(){return Pt})),o.d(t,"cssStylePropertyHoverTransition",(function(){return wt})),o.d(t,"cssStyleTypographyFontFamily",(function(){return Tt})),o.d(t,"cssStyleTypographyFontSize",(function(){return zt})),o.d(t,"cssStyleTypographyLineHeight",(function(){return Et})),o.d(t,"cssStyleTypographyFontWeight",(function(){return kt})),o.d(t,"cssStyleTypographyLetterSpacing",(function(){return Ht})),o.d(t,"cssStyleTypography2FontFamily",(function(){return G})),o.d(t,"cssStyleTypography2FontSize",(function(){return U})),o.d(t,"cssStyleTypography2LineHeight",(function(){return K})),o.d(t,"cssStyleTypography2FontWeight",(function(){return q})),o.d(t,"cssStyleTypography2LetterSpacing",(function(){return Y})),o.d(t,"cssStyleTypography3FontFamily",(function(){return X})),o.d(t,"cssStyleTypography3FontSize",(function(){return Z})),o.d(t,"cssStyleTypography3LineHeight",(function(){return J})),o.d(t,"cssStyleTypography3FontWeight",(function(){return Q})),o.d(t,"cssStyleTypography3LetterSpacing",(function(){return ee})),o.d(t,"cssStyleElementProgressBarPadding",(function(){return _t})),o.d(t,"cssStyleSizeProgressBarMaxWidthPercent",(function(){return Ft})),o.d(t,"cssStyleElementProgressBarPropertyHoverTransition",(function(){return Rt})),o.d(t,"cssStyleElementButtonBorderRadius",(function(){return Mt})),o.d(t,"cssStyleElementButtonIconPosition",(function(){return Lt})),o.d(t,"cssStyleElementButtonIconFontSize",(function(){return Wt})),o.d(t,"cssStyleElementButtonIconMargin",(function(){return It})),o.d(t,"cssStyleElementIconStrokeWidth",(function(){return Nt})),o.d(t,"cssStyleElementButtonPropertyHoverTransition",(function(){return At})),o.d(t,"cssStyleElementButtonPropertyContentAlign",(function(){return Dt})),o.d(t,"cssStyleElementFacebookButtonPropertyHoverTransition",(function(){return Vt})),o.d(t,"cssStyleElementFacebookCommentsPropertyHoverTransition",(function(){return $t})),o.d(t,"cssStyleElementFacebookEmbedPropertyHoverTransition",(function(){return Gt})),o.d(t,"cssStyleElementFacebookGroupPropertyHoverTransition",(function(){return Ut})),o.d(t,"cssStyleElementFacebookPagePropertyHoverTransition",(function(){return Kt})),o.d(t,"cssStyleElementMapPropertyHoverTransition",(function(){return qt})),o.d(t,"cssStyleElementMapPropertyPositionFixed",(function(){return Yt})),o.d(t,"cssStyleElementSoundCloudPropertyHoverTransition",(function(){return Xt})),o.d(t,"cssStyleContainerPopup2ContainerWidth",(function(){return Zt})),o.d(t,"cssStyleContainerPopup2CloseState",(function(){return Jt})),o.d(t,"cssStyleContainerPopup2ClosePosition",(function(){return ao})),o.d(t,"cssStyleContainerPopup2CloseFontSize",(function(){return eo})),o.d(t,"cssStyleContainerPopup2CloseBgSize",(function(){return to})),o.d(t,"cssStyleContainerPopup2CloseBorderRadius",(function(){return oo})),o.d(t,"cssStyleContainerPopup2CloseColor",(function(){return Qt})),o.d(t,"cssStyleContainerPopup2CloseBgColor",(function(){return no})),o.d(t,"cssStyleContainerPopup2RowFlexVerticalAlign",(function(){return ro})),o.d(t,"cssStyleContainerPopup2CustomHeight",(function(){return io})),o.d(t,"cssStyleContainerPopup2CustomHeightOverflow",(function(){return lo})),o.d(t,"cssStyleContainerPopup2Custom2Height100",(function(){return so})),o.d(t,"cssStyleContainerPopup2Custom2MaxHeight100",(function(){return co})),o.d(t,"cssStyleZIndex",(function(){return uo})),o.d(t,"cssStyleZIndexStory",(function(){return po})),o.d(t,"cssStyleFlexVerticalAlign",(function(){return bo})),o.d(t,"cssStyleFlexColumnVerticalAlign",(function(){return vo})),o.d(t,"cssStyleFlexHorizontalAlign",(function(){return mo})),o.d(t,"cssStyleContentAlign",(function(){return ho})),o.d(t,"cssStyleMarginAlign",(function(){return go})),o.d(t,"cssStyleExcerptAlign",(function(){return fo})),o.d(t,"cssStyleFlexColumn",(function(){return yo})),o.d(t,"cssStylePadding",(function(){return Bo})),o.d(t,"cssStylePaddingFourFields",(function(){return Oo})),o.d(t,"cssStylePaddingPreview",(function(){return So})),o.d(t,"cssStylePaddingTopForEditorResizer",(function(){return Co})),o.d(t,"cssStylePaddingBottomForEditorResizer",(function(){return xo})),o.d(t,"cssStylePaddingRightLeftForEditor",(function(){return jo})),o.d(t,"cssStyleItemPadding",(function(){return Po})),o.d(t,"cssStyleMargin",(function(){return wo})),o.d(t,"cssStyleItemMargin",(function(){return To})),o.d(t,"cssStyleDisplayFlex",(function(){return zo})),o.d(t,"cssStyleDisplayInlineFlex",(function(){return Eo})),o.d(t,"cssStyleDisplayBlock",(function(){return ko})),o.d(t,"cssStyleVisible",(function(){return Ho})),o.d(t,"cssStyleVisibleEditorDisplayNoneOrFlex",(function(){return _o})),o.d(t,"cssStyleVisibleEditorDisplayNoneOrBlock",(function(){return Ro})),o.d(t,"cssStyleVisibleEditorDisplayNoneOrInlineFlex",(function(){return Fo})),o.d(t,"cssStyleVisibleMode",(function(){return Mo})),o.d(t,"cssStyleShowMembershipBlock",(function(){return Lo})),o.d(t,"cssStyleFilter",(function(){return Io})),o.d(t,"cssStyleFilterSuffixForGlamour",(function(){return Wo})),o.d(t,"cssStyleElementVideoPaddingRatio",(function(){return No})),o.d(t,"cssStyleElementVideoFilter",(function(){return Ao})),o.d(t,"cssStyleElementVideoBgSize",(function(){return Do})),o.d(t,"cssStyleElementVideoIconFontSize",(function(){return Vo})),o.d(t,"cssStyleElementVideoIconWidth",(function(){return $o})),o.d(t,"cssStyleElementVideoIconHeight",(function(){return Go})),o.d(t,"cssStyleElementVideoControlsIconFontSize",(function(){return Jo})),o.d(t,"cssStyleElementVideoBgColorRatio",(function(){return Uo})),o.d(t,"cssStyleElementVideoCoverSrc",(function(){return Ko})),o.d(t,"cssStyleElementVideoCoverPosition",(function(){return qo})),o.d(t,"cssStyleElementVideoPropertyHoverTransition",(function(){return Yo})),o.d(t,"cssStyleVideoControlsBgColor",(function(){return Xo})),o.d(t,"cssStyleVideoIconControls",(function(){return Zo})),o.d(t,"cssStyleElementVideoPlaylistSubTitleVideoTypography2FontFamily",(function(){return Qo})),o.d(t,"cssStyleElementVideoPlaylistSubTitleVideoTypography2FontSize",(function(){return en})),o.d(t,"cssStyleElementVideoPlaylistSubTitleVideoTypography2LineHeight",(function(){return tn})),o.d(t,"cssStyleElementVideoPlaylistSubTitleVideoTypography2FontWeight",(function(){return on})),o.d(t,"cssStyleElementVideoPlaylistSubTitleVideoTypography2LetterSpacing",(function(){return nn})),o.d(t,"cssStyleElementVideoPlaylistBorderItem",(function(){return ln})),o.d(t,"cssStyleElementVideoPlaylistGridItemWidth",(function(){return cn})),o.d(t,"cssStyleSizeWidthPixel",(function(){return an})),o.d(t,"cssStyleElementVideoPlaylistImageSize",(function(){return rn})),o.d(t,"cssStyleSizeWidthVideoBlock",(function(){return sn})),o.d(t,"cssStyleBgIconCoverColor",(function(){return pn})),o.d(t,"cssStyleCoverIconColor",(function(){return dn})),o.d(t,"cssStyleCoverSubTitleColor",(function(){return un})),o.d(t,"cssStyleElementVideoPlaylistItemActiveBg",(function(){return bn})),o.d(t,"cssStyleElementVideoPlaylistBorderItemActive",(function(){return mn})),o.d(t,"cssStyleElementVideoPlaylistItemActiveColor",(function(){return hn})),o.d(t,"cssStyleElementVideoPlaylistItemSubtitleActiveColor",(function(){return gn})),o.d(t,"cssStyleElementMediaIconFontSize",(function(){return vn})),o.d(t,"cssStyleElementMediaPadding",(function(){return fn})),o.d(t,"cssStyleRowMinHeight",(function(){return yn})),o.d(t,"cssStyleRowReverseColumn",(function(){return On})),o.d(t,"cssStylePosition",(function(){return wn})),o.d(t,"cssStylePositionMode",(function(){return Tn})),o.d(t,"cssStyleCustomPosition",(function(){return zn})),o.d(t,"cssStyleCustomWidth",(function(){return En})),o.d(t,"cssStyleOffset",(function(){return kn})),o.d(t,"cssStyleIconSpacing",(function(){return Hn})),o.d(t,"cssStyleIconSize",(function(){return _n})),o.d(t,"cssStyleSectionMaxWidth",(function(){return Mn})),o.d(t,"cssStyleSectionSliderHeight",(function(){return Ln})),o.d(t,"cssStyleSectionColorDots",(function(){return Wn})),o.d(t,"cssStyleSectionColorArrows",(function(){return In})),o.d(t,"cssStyleSectionPropertyHoverTransition",(function(){return Nn})),o.d(t,"cssStyleSectionToolbarOffset",(function(){return An})),o.d(t,"cssStyleSectionHeightStyle",(function(){return Dn})),o.d(t,"cssStyleSectionPaddingsForEditorResize",(function(){return Vn})),o.d(t,"cssStyleSectionPopupContainerWrap",(function(){return $n})),o.d(t,"cssStyleElementBreadcrumbsArrowSize",(function(){return Gn})),o.d(t,"cssStyleElementBreadcrumbsColorActive",(function(){return Un})),o.d(t,"cssStyleElementBreadcrumbsColorArrows",(function(){return Kn})),o.d(t,"cssStyleElementForm2FlexBasisPercent",(function(){return Yn})),o.d(t,"cssStyleElementForm2SubmitWidth",(function(){return Xn})),o.d(t,"cssStyleElementForm2InputHeight",(function(){return Zn})),o.d(t,"cssStyleElementForm2FieldsLineHeight",(function(){return ta})),o.d(t,"cssStyleElementForm2FieldsLabelFontFamily",(function(){return oa})),o.d(t,"cssStyleElementForm2FieldsLabelFontSize",(function(){return na})),o.d(t,"cssStyleElementForm2FieldsLabelFontWeight",(function(){return ra})),o.d(t,"cssStyleElementForm2FieldsLabelLetterSpacing",(function(){return ia})),o.d(t,"cssStyleElementForm2FieldsLabelAlign",(function(){return Jn})),o.d(t,"cssStyleElementForm2FieldsLabelLineHeight",(function(){return aa})),o.d(t,"cssStyleElementForm2FieldsLabelPadding",(function(){return la})),o.d(t,"cssStyleElementForm2Margin",(function(){return Qn})),o.d(t,"cssStyleElementForm2Padding",(function(){return ea})),o.d(t,"cssStyleElementForm2FieldsBorderRequired",(function(){return ga})),o.d(t,"cssStyleElementForm2FieldsCheckboxColor",(function(){return sa})),o.d(t,"cssStyleElementForm2FieldsCheckboxFontFamily",(function(){return ca})),o.d(t,"cssStyleElementForm2FieldsCheckboxFontSize",(function(){return da})),o.d(t,"cssStyleElementForm2FieldsCheckboxFontWeight",(function(){return ua})),o.d(t,"cssStyleElementForm2FieldsCheckboxLetterSpacing",(function(){return pa})),o.d(t,"cssStyleElementForm2FieldsCheckboxLineHeight",(function(){return ba})),o.d(t,"cssStyleElementForm2FieldsSelectColor",(function(){return ma})),o.d(t,"cssStyleElementForm2FieldsSelectBgColor",(function(){return ha})),o.d(t,"cssStyleElementForm2FieldsSelectChoiceBgColor",(function(){return va})),o.d(t,"cssStyleElementForm2FieldsSelectBorder",(function(){return fa})),o.d(t,"cssStyleElementForm2FieldsSelectBorderRadius",(function(){return ya})),o.d(t,"cssStyleElementForm2FieldsSelectBoxShadow",(function(){return Oa})),o.d(t,"cssStyleElementForm2FieldColumns",(function(){return Sa})),o.d(t,"cssStyleElementForm2StoryButtonHeight",(function(){return Ca})),o.d(t,"cssStyleElementLoginFormMargin",(function(){return xa})),o.d(t,"cssStyleElementLoginFieldPadding",(function(){return ja})),o.d(t,"cssStyleElementLoginLostPasswordColor",(function(){return Ea})),o.d(t,"cssStyleElementLoginLostPasswordAlign",(function(){return ka})),o.d(t,"cssStyleElementLoginLostPasswordTypography2FontFamily",(function(){return Ba})),o.d(t,"cssStyleElementLoginLostPasswordTypography2FontSize",(function(){return Pa})),o.d(t,"cssStyleElementLoginLostPasswordTypography2FontWeight",(function(){return Ta})),o.d(t,"cssStyleElementLoginLostPasswordTypography2LetterSpacing",(function(){return za})),o.d(t,"cssStyleElementLoginLostPasswordTypography2LineHeight",(function(){return wa})),o.d(t,"cssStyleElementLoginAutorizedAlign",(function(){return Ha})),o.d(t,"cssStyleElementLoginTextTypography2FontFamily",(function(){return _a})),o.d(t,"cssStyleElementLoginTextTypography2FontSize",(function(){return Fa})),o.d(t,"cssStyleElementLoginTextTypography2LineHeight",(function(){return Ra})),o.d(t,"cssStyleElementLoginTextTypography2FontWeight",(function(){return Ma})),o.d(t,"cssStyleElementLoginTextTypography2LetterSpacing",(function(){return La})),o.d(t,"cssStyleElementLoginTextColor",(function(){return Wa})),o.d(t,"cssStyleElementLoginLinkColor",(function(){return Ia})),o.d(t,"cssStyleElementPostInfoColorText",(function(){return Aa})),o.d(t,"cssStyleElementPostInfoColorIcons",(function(){return Na})),o.d(t,"cssStyleElementPostInfoSpacing",(function(){return Da})),o.d(t,"cssStyleElementPostNavigation2TitleFontFamily",(function(){return Va})),o.d(t,"cssStyleElementPostNavigation2TitleFontSize",(function(){return $a})),o.d(t,"cssStyleElementPostNavigation2TitleLineHeight",(function(){return Ga})),o.d(t,"cssStyleElementPostNavigation2TitleFontWeight",(function(){return Ua})),o.d(t,"cssStyleElementPostNavigation2TitleLetterSpacing",(function(){return Ka})),o.d(t,"cssStyleElementPostNavigation2PostFontFamily",(function(){return qa})),o.d(t,"cssStyleElementPostNavigation2PostFontSize",(function(){return Ya})),o.d(t,"cssStyleElementPostNavigation2PostLineHeight",(function(){return Xa})),o.d(t,"cssStyleElementPostNavigation2PostFontWeight",(function(){return Za})),o.d(t,"cssStyleElementPostNavigation2PostLetterSpacing",(function(){return Ja})),o.d(t,"cssStyleElementPostNavigationColorTitle",(function(){return Qa})),o.d(t,"cssStyleElementPostNavigationColorPost",(function(){return er})),o.d(t,"cssStyleElementPostNavigationSpacing",(function(){return tr})),o.d(t,"cssStyleElementPostNavigationSeparationHeight",(function(){return or})),o.d(t,"cssStyleElementPostNavigationShowSeparation",(function(){return nr})),o.d(t,"cssStyleElementStarRatingRatingColor",(function(){return ar})),o.d(t,"cssStyleElementStarRatingRatingBackgroundColor",(function(){return rr})),o.d(t,"cssStyleElementStarRatingPropertyHoverTransition",(function(){return sr})),o.d(t,"cssStyleElementStarRatingTextSpacing",(function(){return dr})),o.d(t,"cssStyleElementStarRatingStyle2Background",(function(){return ir})),o.d(t,"cssStyleElementStarRatingStyle2BorderRadius",(function(){return lr})),o.d(t,"cssStyleElementStarRatingDirection",(function(){return cr})),o.d(t,"cssStyleElementTimelineTabContentArrowColor",(function(){return qr})),o.d(t,"cssStyleElementTimelineTabContentArrowCustomColor",(function(){return Yr})),o.d(t,"cssStyleElementTimelineTabContentArrowCustomColor1",(function(){return Xr})),o.d(t,"cssStyleElementTimelineBeforeDisplay",(function(){return kr})),o.d(t,"cssStyleElementTimelineCustomLineOdd",(function(){return Ir})),o.d(t,"cssStyleElementTimelineVerticalTab",(function(){return si})),o.d(t,"cssStyleElementTimelineVerticalLastTab",(function(){return ci})),o.d(t,"cssStyleElementTimelineTabsVerticalContent",(function(){return li})),o.d(t,"cssStyleElementTimelineTabsVerticalNavIcon",(function(){return ii})),o.d(t,"cssStyleElementTimelineTabsHorizontalStyle3",(function(){return ri})),o.d(t,"cssStyleElementTimelineTabHorizontalStyle3Odd",(function(){return ai})),o.d(t,"cssStyleElementTimelineTabCustomStyle",(function(){return ni})),o.d(t,"cssStyleElementTimelineContentBeforeStyle3",(function(){return ei})),o.d(t,"cssStyleElementTimelineVerticalTabBeforeNone",(function(){return di})),o.d(t,"cssStyleElementTimelineVerticalTabBeforeStyle3",(function(){return ui})),o.d(t,"cssStyleElementTimelineNavTitleStyle3",(function(){return oi})),o.d(t,"cssStyleElementTimelineTab",(function(){return Jr})),o.d(t,"cssStyleElementTimelineTabs",(function(){return Zr})),o.d(t,"cssStyleElementTimelineTabContentBefore",(function(){return Qr})),o.d(t,"cssStyleElementTimelineNavTitle",(function(){return ti})),o.d(t,"cssStyleElementTimelineWidth",(function(){return Kr})),o.d(t,"cssStyleElementTimelineIconSize",(function(){return gr})),o.d(t,"cssStyleElementTimelineIconWidth",(function(){return fr})),o.d(t,"cssStyleElementTimelineIconHeight",(function(){return yr})),o.d(t,"cssStyleElementTimelineIconBorderRadius",(function(){return Pr})),o.d(t,"cssStyleElementTimelineNavTitleWidth",(function(){return Or})),o.d(t,"cssStyleElementTimelineLineBgColor",(function(){return Cr})),o.d(t,"cssStyleElementTimelineLineTop",(function(){return xr})),o.d(t,"cssStyleElementTimelineArrowBorder",(function(){return Br})),o.d(t,"cssStyleElementTimelineVerticalCustomTabPositionOdd",(function(){return Vr})),o.d(t,"cssStyleElementTimelineContentSpacing",(function(){return jr})),o.d(t,"cssStyleElementTimelineVerticalCustomContentSpacing",(function(){return Ur})),o.d(t,"cssStyleElementTimelinePaddingForIcon",(function(){return vr})),o.d(t,"cssStyleElementTimelineNavTitleVisible",(function(){return Sr})),o.d(t,"cssStyleElementTimelineVerticalPosition",(function(){return wr})),o.d(t,"cssStyleElementTimelineLineWidthHeightBefore",(function(){return Tr})),o.d(t,"cssStyleElementTimelineLineWidthHeightAfter",(function(){return zr})),o.d(t,"cssStyleElementTimelineVerticalLinePosition",(function(){return Er})),o.d(t,"cssStyleElementTimelineVerticalLineTopPosition",(function(){return Hr})),o.d(t,"cssStyleElementTimelineVerticalLineBottomPosition",(function(){return _r})),o.d(t,"cssStyleElementTimelineCustomTabWidth",(function(){return Fr})),o.d(t,"cssStyleElementTimelineCustomLastTabWidth",(function(){return Rr})),o.d(t,"cssStyleElementTimelineVerticalInvertPosition",(function(){return Mr})),o.d(t,"cssStyleElementTimelineVerticalInvertLinePosition",(function(){return Lr})),o.d(t,"cssStyleElementTimelineCustomLineTop",(function(){return Wr})),o.d(t,"cssStyleElementTimelineCustomContentSpacing",(function(){return Nr})),o.d(t,"cssStyleElementTimelineCustomContentBottomSpacing",(function(){return Ar})),o.d(t,"cssStyleElementTimelineVerticalCustomTabPosition",(function(){return Dr})),o.d(t,"cssStyleElementTimelineVerticalCustomPosition",(function(){return $r})),o.d(t,"cssStyleElementTimelineVerticalStyle3ArrowPosition",(function(){return Gr})),o.d(t,"cssStyleElementSwitcherNavSpacing",(function(){return hi})),o.d(t,"cssStyleElementSwitcherNavBeforeBg",(function(){return mi})),o.d(t,"cssStyleElementSwitcherActiveTextColor",(function(){return gi})),o.d(t,"cssStyleElementSwitcherNav2Width",(function(){return pi})),o.d(t,"cssStyleElementSwitcherNav2Height",(function(){return bi})),o.d(t,"cssStyleElementSwitcherWidth",(function(){return vi})),o.d(t,"cssStyleElementWPPostContentH1Color",(function(){return fi})),o.d(t,"cssStyleElementWPPostContentH2Color",(function(){return yi})),o.d(t,"cssStyleElementWPPostContentH3Color",(function(){return Oi})),o.d(t,"cssStyleElementWPPostContentH4Color",(function(){return Si})),o.d(t,"cssStyleElementWPPostContentH5Color",(function(){return Ci})),o.d(t,"cssStyleElementWPPostContentH6Color",(function(){return xi})),o.d(t,"cssStyleElementWPPostContentParagraphColor",(function(){return ji})),o.d(t,"cssStyleElementWPPostContentTypography2ParagraphFontFamily",(function(){return Bi})),o.d(t,"cssStyleElementWPPostContentTypography2ParagraphFontSize",(function(){return Pi})),o.d(t,"cssStyleElementWPPostContentTypography2ParagraphLineHeight",(function(){return wi})),o.d(t,"cssStyleElementWPPostContentTypography2ParagraphFontWeight",(function(){return Ti})),o.d(t,"cssStyleElementWPPostContentTypography2ParagraphLetterSpacing",(function(){return zi})),o.d(t,"cssStyleElementWPPostContentTypography2H1FontFamily",(function(){return Ei})),o.d(t,"cssStyleElementWPPostContentTypography2H1FontSize",(function(){return ki})),o.d(t,"cssStyleElementWPPostContentTypography2H1LineHeight",(function(){return Hi})),o.d(t,"cssStyleElementWPPostContentTypography2H1FontWeight",(function(){return _i})),o.d(t,"cssStyleElementWPPostContentTypography2H1LetterSpacing",(function(){return Fi})),o.d(t,"cssStyleElementWPPostContentTypography2H2FontFamily",(function(){return Ri})),o.d(t,"cssStyleElementWPPostContentTypography2H2FontSize",(function(){return Mi})),o.d(t,"cssStyleElementWPPostContentTypography2H2LineHeight",(function(){return Li})),o.d(t,"cssStyleElementWPPostContentTypography2H2FontWeight",(function(){return Wi})),o.d(t,"cssStyleElementWPPostContentTypography2H2LetterSpacing",(function(){return Ii})),o.d(t,"cssStyleElementWPPostContentTypography2H3FontFamily",(function(){return Ni})),o.d(t,"cssStyleElementWPPostContentTypography2H3FontSize",(function(){return Ai})),o.d(t,"cssStyleElementWPPostContentTypography2H3LineHeight",(function(){return Di})),o.d(t,"cssStyleElementWPPostContentTypography2H3FontWeight",(function(){return Vi})),o.d(t,"cssStyleElementWPPostContentTypography2H3LetterSpacing",(function(){return $i})),o.d(t,"cssStyleElementWPPostContentTypography2H4FontFamily",(function(){return Gi})),o.d(t,"cssStyleElementWPPostContentTypography2H4FontSize",(function(){return Ui})),o.d(t,"cssStyleElementWPPostContentTypography2H4LineHeight",(function(){return Ki})),o.d(t,"cssStyleElementWPPostContentTypography2H4FontWeight",(function(){return qi})),o.d(t,"cssStyleElementWPPostContentTypography2H4LetterSpacing",(function(){return Yi})),o.d(t,"cssStyleElementWPPostContentTypography2H5FontFamily",(function(){return Xi})),o.d(t,"cssStyleElementWPPostContentTypography2H5FontSize",(function(){return Zi})),o.d(t,"cssStyleElementWPPostContentTypography2H5LineHeight",(function(){return Ji})),o.d(t,"cssStyleElementWPPostContentTypography2H5FontWeight",(function(){return Qi})),o.d(t,"cssStyleElementWPPostContentTypography2H5LetterSpacing",(function(){return el})),o.d(t,"cssStyleElementWPPostContentTypography2H6FontFamily",(function(){return tl})),o.d(t,"cssStyleElementWPPostContentTypography2H6FontSize",(function(){return ol})),o.d(t,"cssStyleElementWPPostContentTypography2H6LineHeight",(function(){return nl})),o.d(t,"cssStyleElementWPPostContentTypography2H6FontWeight",(function(){return al})),o.d(t,"cssStyleElementWPPostContentTypography2H6LetterSpacing",(function(){return rl})),o.d(t,"cssStyleElementWPPostContentFontWeightInherit",(function(){return il})),o.d(t,"cssStyleElementWOOPriceColorSale",(function(){return ll})),o.d(t,"cssStyleElementWOOPriceSaleFontFamily",(function(){return sl})),o.d(t,"cssStyleElementWOOPriceSaleFontSize",(function(){return cl})),o.d(t,"cssStyleElementWOOPriceSaleLineHeight",(function(){return dl})),o.d(t,"cssStyleElementWOOPriceSaleFontWeight",(function(){return ul})),o.d(t,"cssStyleElementWOOPriceSaleLetterSpacing",(function(){return pl})),o.d(t,"cssStyleElementWOOPriceColumn",(function(){return bl})),o.d(t,"cssStyleElementWOOPriceSpacingFirst",(function(){return ml})),o.d(t,"cssStyleElementWOOPriceSpacingLast",(function(){return hl})),o.d(t,"cssStyleElementWOOAttributesAttributesFontFamily",(function(){return gl})),o.d(t,"cssStyleElementWOOAttributesAttributesFontSize",(function(){return vl})),o.d(t,"cssStyleElementWOOAttributesAttributesLineHeight",(function(){return fl})),o.d(t,"cssStyleElementWOOAttributesAttributesFontWeight",(function(){return yl})),o.d(t,"cssStyleElementWOOAttributesAttributesLetterSpacing",(function(){return Ol})),o.d(t,"cssStyleElementWOOAttributesSpacing",(function(){return Sl})),o.d(t,"cssStyleElementWOOAttributesAttributeColor",(function(){return Cl})),o.d(t,"cssStyleElementWOOAttributesBorder",(function(){return xl})),o.d(t,"cssStyleElementWOOAttributesLastElementBorder",(function(){return jl})),o.d(t,"cssStyleElementPostsItemWidth",(function(){return Bl})),o.d(t,"cssStyleElementPostsItemSpacing",(function(){return Pl})),o.d(t,"cssStyleElementPostsPaginationSpacing",(function(){return wl})),o.d(t,"cssStyleElementPostsPaginationLinksOff",(function(){return Tl})),o.d(t,"cssStyleElementPostsPaginationFontFamily",(function(){return zl})),o.d(t,"cssStyleElementPostsPaginationFontSize",(function(){return El})),o.d(t,"cssStyleElementPostsPaginationLineHeight",(function(){return kl})),o.d(t,"cssStyleElementPostsPaginationFontWeight",(function(){return Hl})),o.d(t,"cssStyleElementPostsPaginationLetterSpacing",(function(){return _l})),o.d(t,"cssStyleElementPostsPaginationColor",(function(){return Fl})),o.d(t,"cssStyleElementPostsPaginationBgColor",(function(){return Rl})),o.d(t,"cssStyleElementPostsPaginationBorder",(function(){return Ml})),o.d(t,"cssStyleElementPostsPaginationBorderRadius",(function(){return Ll})),o.d(t,"cssStyleElementPostsFilterDisplay",(function(){return Wl})),o.d(t,"cssStyleElementPostsFilterHorizontalAlign",(function(){return Il})),o.d(t,"cssStyleElementPostsFilterSpacing",(function(){return Nl})),o.d(t,"cssStyleElementPostsFilterAfterSpacing",(function(){return Al})),o.d(t,"cssStyleElementPostsFilterFontFamily",(function(){return Dl})),o.d(t,"cssStyleElementPostsFilterFontSize",(function(){return Vl})),o.d(t,"cssStyleElementPostsFilterLineHeight",(function(){return $l})),o.d(t,"cssStyleElementPostsFilterFontWeight",(function(){return Gl})),o.d(t,"cssStyleElementPostsFilterLetterSpacing",(function(){return Ul})),o.d(t,"cssStyleElementPostsFilterColor",(function(){return Kl})),o.d(t,"cssStyleElementPostsFilterBgColor",(function(){return ql})),o.d(t,"cssStyleElementPostsFilterBorder",(function(){return Yl})),o.d(t,"cssStyleElementPostsFilterBorderRadius",(function(){return Xl})),o.d(t,"cssStyleElementPostsFilterShadow",(function(){return Zl})),o.d(t,"cssStyleElementPostsFilterPaddingFourFields",(function(){return Jl})),o.d(t,"cssStyleElementPostsFilterActiveColor",(function(){return Ql})),o.d(t,"cssStyleElementPostsFilterActiveBgColor",(function(){return es})),o.d(t,"cssStyleElementPostsFilterActiveBorder",(function(){return ts})),o.d(t,"cssStyleElementPostsFilterActiveShadow",(function(){return os})),o.d(t,"cssStyleElementAccordion3FontFamily",(function(){return xs})),o.d(t,"cssStyleElementAccordion3FontSize",(function(){return js})),o.d(t,"cssStyleElementAccordion3LineHeight",(function(){return Bs})),o.d(t,"cssStyleElementAccordion3FontWeight",(function(){return Ps})),o.d(t,"cssStyleElementAccordion3LetterSpacing",(function(){return ws})),o.d(t,"cssStyleElementAccordionFilterColor",(function(){return as})),o.d(t,"cssStyleElementAccordionFilterBgColor",(function(){return cs})),o.d(t,"cssStyleElementAccordionFilterBorder",(function(){return ds})),o.d(t,"cssStyleElementAccordionFilterBorderRadius",(function(){return us})),o.d(t,"cssStyleElementAccordionFilterShadow",(function(){return ps})),o.d(t,"cssStyleElementAccordionMarginTop",(function(){return bs})),o.d(t,"cssStyleElementAccordionSpacing",(function(){return ms})),o.d(t,"cssStyleElementAccordionFilterSpacing",(function(){return hs})),o.d(t,"cssStyleElementAccordionFilterAfterSpacing",(function(){return gs})),o.d(t,"cssStyleElementAccordionNavAlign",(function(){return vs})),o.d(t,"cssStyleElementAccordionNavTextAlign",(function(){return fs})),o.d(t,"cssStyleElementAccordionNavIconSpacing",(function(){return ys})),o.d(t,"cssStyleElementAccordionNavIconSize",(function(){return Os})),o.d(t,"cssStyleElementAccordionFilterHorizontalAlign",(function(){return Ss})),o.d(t,"cssStyleElementAccordionFilterPaddingFourFields",(function(){return Cs})),o.d(t,"cssStyleElementAccordionFilterActiveColor",(function(){return rs})),o.d(t,"cssStyleElementAccordionFilterActiveBgColor",(function(){return is})),o.d(t,"cssStyleElementAccordionFilterActiveBorder",(function(){return ls})),o.d(t,"cssStyleElementAccordionFilterActiveShadow",(function(){return ss})),o.d(t,"cssStyleElementAccordionActiveColor",(function(){return Ts})),o.d(t,"cssStyleElementAccordionActiveBgColor",(function(){return zs})),o.d(t,"cssStyleElementAccordionActiveBorder",(function(){return Es})),o.d(t,"cssStyleElementAccordionActiveShadow",(function(){return ks})),o.d(t,"cssStyleElementAccordionAnimDuration",(function(){return Hs})),o.d(t,"cssStyleElementAccordionPropertyHoverTransition",(function(){return _s})),o.d(t,"cssStyleElementTabsBtnSpacing",(function(){return Fs})),o.d(t,"cssStyleElementTabsBtnIconSize",(function(){return Rs})),o.d(t,"cssStyleElementTabsBtnActiveBorderBottomColor",(function(){return Ms})),o.d(t,"cssStyleElementTabsBtnActiveBorderRightColor",(function(){return Ls})),o.d(t,"cssStyleElementTabsBtnActiveBorderLeftColor",(function(){return Ws})),o.d(t,"cssStyleElementTabsActiveBeforeAfterColor",(function(){return Is})),o.d(t,"cssStyleElementTabsActiveBeforeHeight",(function(){return Ns})),o.d(t,"cssStyleElementTabsActiveBeforeWidth",(function(){return As})),o.d(t,"cssStyleElementTabsBeforeAfterRightWidth",(function(){return Ds})),o.d(t,"cssStyleElementTabsBeforeAfterLeftWidth",(function(){return Vs})),o.d(t,"cssStyleElementTabsBorderMobileWidth",(function(){return $s})),o.d(t,"cssStyleElementTabsEmptyContent",(function(){return Gs})),o.d(t,"cssStyleElementTabsBtnIconPosition",(function(){return Us})),o.d(t,"cssStyleElementTabsBtnIconJustifyContent",(function(){return Ks})),o.d(t,"cssStyleElementTabsBeforeAfterTop",(function(){return qs})),o.d(t,"cssStyleElementTabsBeforeAfterBottom",(function(){return Ys})),o.d(t,"cssStyleElementTabsAfterSpacing",(function(){return Xs})),o.d(t,"cssStyleElementTabsSpacing",(function(){return Js})),o.d(t,"cssStyleElementTabsAfterSpacingVertical",(function(){return Zs})),o.d(t,"cssStyleElementTabsNavAlign",(function(){return Qs})),o.d(t,"cssStyleElementTabsNavBorderBottom",(function(){return tc})),o.d(t,"cssStyleElementTabsNavStyle3Before",(function(){return oc})),o.d(t,"cssStyleElementTabsPadding",(function(){return ec})),o.d(t,"cssStyleElementTabsActiveColor",(function(){return nc})),o.d(t,"cssStyleElementTabsActiveBgColor",(function(){return ac})),o.d(t,"cssStyleElementTabsActiveBorder",(function(){return ic})),o.d(t,"cssStyleElementTabsActiveShadow",(function(){return rc})),o.d(t,"cssStyleElementCommentsNameFontFamily",(function(){return lc})),o.d(t,"cssStyleElementCommentsNameFontSize",(function(){return sc})),o.d(t,"cssStyleElementCommentsNameLineHeight",(function(){return cc})),o.d(t,"cssStyleElementCommentsNameFontWeight",(function(){return dc})),o.d(t,"cssStyleElementCommentsNameLetterSpacing",(function(){return uc})),o.d(t,"cssStyleElementCommentsDateFontFamily",(function(){return vc})),o.d(t,"cssStyleElementCommentsDateFontSize",(function(){return fc})),o.d(t,"cssStyleElementCommentsDateLineHeight",(function(){return yc})),o.d(t,"cssStyleElementCommentsDateFontWeight",(function(){return Oc})),o.d(t,"cssStyleElementCommentsDateLetterSpacing",(function(){return Sc})),o.d(t,"cssStyleElementCommentsCommentFontFamily",(function(){return pc})),o.d(t,"cssStyleElementCommentsCommentFontSize",(function(){return bc})),o.d(t,"cssStyleElementCommentsCommentLineHeight",(function(){return mc})),o.d(t,"cssStyleElementCommentsCommentFontWeight",(function(){return hc})),o.d(t,"cssStyleElementCommentsCommentLetterSpacing",(function(){return gc})),o.d(t,"cssStyleElementCommentsReplyFontFamily",(function(){return Cc})),o.d(t,"cssStyleElementCommentsReplyFontSize",(function(){return xc})),o.d(t,"cssStyleElementCommentsReplyLineHeight",(function(){return jc})),o.d(t,"cssStyleElementCommentsReplyFontWeight",(function(){return Bc})),o.d(t,"cssStyleElementCommentsReplyLetterSpacing",(function(){return Pc})),o.d(t,"cssStyleElementCommentsPostButtonFontFamily",(function(){return wc})),o.d(t,"cssStyleElementCommentsPostButtonFontSize",(function(){return Tc})),o.d(t,"cssStyleElementCommentsPostButtonLineHeight",(function(){return zc})),o.d(t,"cssStyleElementCommentsPostButtonFontWeight",(function(){return Ec})),o.d(t,"cssStyleElementCommentsPostButtonLetterSpacing",(function(){return kc})),o.d(t,"cssStyleElementCommentsLogoSize",(function(){return Hc})),o.d(t,"cssStyleElementCommentsWidthContainer",(function(){return _c})),o.d(t,"cssStyleElementCommentsPostButtonColor",(function(){return Fc})),o.d(t,"cssStyleElementCommentsPostButtonBg",(function(){return Rc})),o.d(t,"cssStyleElementCommentsColorLink",(function(){return Mc})),o.d(t,"cssStyleElementCommentsNameColor",(function(){return Lc})),o.d(t,"cssStyleElementCommentsCommentsColor",(function(){return Wc})),o.d(t,"cssStyleElementCommentsChildMargin",(function(){return Ic})),o.d(t,"cssStyleElementCommentsStarsColor",(function(){return Nc})),o.d(t,"cssStyleElementCommentsStarsBgColor",(function(){return Ac})),o.d(t,"cssStyleElementCommentsStarsSize",(function(){return Dc})),o.d(t,"cssStyleElementSearchAutocompleteColor",(function(){return Vc})),o.d(t,"cssStyleElementSearchMinWidth",(function(){return $c})),o.d(t,"cssStyleElementSearchMinHeight",(function(){return Gc})),o.d(t,"cssStyleElementSearchPropertyHoverTransition",(function(){return Uc})),o.d(t,"cssStyleElementSearchLineHeight",(function(){return Kc})),o.d(t,"cssStyleElementWOOProductMetaType",(function(){return qc})),o.d(t,"cssStyleElementWOOProductMetaCategoryFontFamily",(function(){return Yc})),o.d(t,"cssStyleElementWOOProductMetaCategoryFontSize",(function(){return Xc})),o.d(t,"cssStyleElementWOOProductMetaCategoryLineHeight",(function(){return Zc})),o.d(t,"cssStyleElementWOOProductMetaCategoryFontWeight",(function(){return Jc})),o.d(t,"cssStyleElementWOOProductMetaCategoryLetterSpacing",(function(){return Qc})),o.d(t,"cssStyleElementWOOProductMetaValueFontFamily",(function(){return ed})),o.d(t,"cssStyleElementWOOProductMetaValueFontSize",(function(){return td})),o.d(t,"cssStyleElementWOOProductMetaValueLineHeight",(function(){return od})),o.d(t,"cssStyleElementWOOProductMetaValueFontWeight",(function(){return nd})),o.d(t,"cssStyleElementWOOProductMetaValueLetterSpacing",(function(){return ad})),o.d(t,"cssStyleElementWOOProductMetaTopSpacing",(function(){return rd})),o.d(t,"cssStyleElementWOOProductMetaRightSpacing",(function(){return id})),o.d(t,"cssStyleElementWOOProductMetaRightSpacingInline",(function(){return ld})),o.d(t,"cssStyleElementWOOProductMetaCategoryColor",(function(){return sd})),o.d(t,"cssStyleElementWOOProductMetaValueColor",(function(){return cd})),o.d(t,"cssStyleElementWOOProductMetaDividers",(function(){return dd})),o.d(t,"cssStyleElementWOORatingSize",(function(){return ud})),o.d(t,"cssStyleElementWOORatingTextColor",(function(){return pd})),o.d(t,"cssStyleElementWOORatingSpacing",(function(){return bd})),o.d(t,"cssStyleElementWOORatingBgStarColor",(function(){return md})),o.d(t,"cssStyleElementWOOCartIconColor",(function(){return hd})),o.d(t,"cssStyleElementWOOCartSubtotalDisabled",(function(){return gd})),o.d(t,"cssStyleElementWOOCartPurchasesDisabled",(function(){return vd})),o.d(t,"cssStyleElementWOOCartTransitionProperty",(function(){return fd})),o.d(t,"cssStyleElementWOOCartPurchasesColor",(function(){return yd})),o.d(t,"cssStyleElementWOOCartPurchasesFontFamily",(function(){return Od})),o.d(t,"cssStyleElementWOOCartPurchasesFontSize",(function(){return Sd})),o.d(t,"cssStyleElementWOOCartPurchasesLineHeight",(function(){return Cd})),o.d(t,"cssStyleElementWOOCartPurchasesFontWeight",(function(){return xd})),o.d(t,"cssStyleElementWOOCartPurchasesLetterSpacing",(function(){return jd})),o.d(t,"cssStyleElementWOOCartTitleFontFamily",(function(){return Bd})),o.d(t,"cssStyleElementWOOCartTitleFontSize",(function(){return Pd})),o.d(t,"cssStyleElementWOOCartTitleLineHeight",(function(){return wd})),o.d(t,"cssStyleElementWOOCartTitleFontWeight",(function(){return Td})),o.d(t,"cssStyleElementWOOCartTitleLetterSpacing",(function(){return zd})),o.d(t,"cssStyleElementWOOCartCostFontFamily",(function(){return Ed})),o.d(t,"cssStyleElementWOOCartCostFontSize",(function(){return kd})),o.d(t,"cssStyleElementWOOCartCostLineHeight",(function(){return Hd})),o.d(t,"cssStyleElementWOOCartCostFontWeight",(function(){return _d})),o.d(t,"cssStyleElementWOOCartCostLetterSpacing",(function(){return Fd})),o.d(t,"cssStyleElementWOOCartSubtotalFontFamily",(function(){return Rd})),o.d(t,"cssStyleElementWOOCartSubtotalFontSize",(function(){return Md})),o.d(t,"cssStyleElementWOOCartSubtotalLineHeight",(function(){return Ld})),o.d(t,"cssStyleElementWOOCartSubtotalFontWeight",(function(){return Wd})),o.d(t,"cssStyleElementWOOCartSubtotalLetterSpacing",(function(){return Id})),o.d(t,"cssStyleElementWOOCartButtonFontFamily",(function(){return Nd})),o.d(t,"cssStyleElementWOOCartButtonFontSize",(function(){return Ad})),o.d(t,"cssStyleElementWOOCartButtonLineHeight",(function(){return Dd})),o.d(t,"cssStyleElementWOOCartButtonFontWeight",(function(){return Vd})),o.d(t,"cssStyleElementWOOCartButtonLetterSpacing",(function(){return $d})),o.d(t,"cssStyleElementWOOCartTitleColor",(function(){return Gd})),o.d(t,"cssStyleElementWOOCartCostColor",(function(){return Ud})),o.d(t,"cssStyleElementWOOCartSubtotalColor",(function(){return Kd})),o.d(t,"cssStyleElementWOOCartButtonColor",(function(){return qd})),o.d(t,"cssStyleElementWOOCartButtonBgColor",(function(){return Yd})),o.d(t,"cssStyleElementWOOCartButtonDirection",(function(){return Xd})),o.d(t,"cssStyleElementWOOCartButtonSpacing",(function(){return Zd})),o.d(t,"cssStyleElementWOOCartButtonBorderRadius",(function(){return Jd})),o.d(t,"cssStyleElementWOOCartSidebarHorizontalAlign",(function(){return Qd})),o.d(t,"cssStyleElementWOOCartSidebarVerticalAlign",(function(){return eu})),o.d(t,"cssStyleElementWOOCartSidebarWidth",(function(){return tu})),o.d(t,"cssStyleElementWOOCartSidebarHeight",(function(){return ou})),o.d(t,"cssStyleElementWOOCartBubbleColor",(function(){return nu})),o.d(t,"cssStyleElementWOOCartBubbleBg",(function(){return au})),o.d(t,"cssStyleWrapperCustomHeight",(function(){return iu})),o.d(t,"cssStyleWrapperContainerFlex",(function(){return cu})),o.d(t,"cssStyleWrapperFixedFlex",(function(){return lu})),o.d(t,"cssStyleWrapperBorderFlex",(function(){return su})),o.d(t,"cssStyleWrapperContainerSize",(function(){return du})),o.d(t,"cssStyleElementMenuAlign",(function(){return uu})),o.d(t,"cssStyleElementMenuMode",(function(){return gu})),o.d(t,"cssStyleElementMenuSize",(function(){return vu})),o.d(t,"cssStyleElementMenuDropdown",(function(){return bp})),o.d(t,"cssStyleElementMenuDropdownOpened",(function(){return hp})),o.d(t,"cssStyleElementMenuInnerDropdown",(function(){return mp})),o.d(t,"cssStyleElementMenuDropdownInnerOpened",(function(){return gp})),o.d(t,"cssStyleElementMenuDropdownArrow",(function(){return vp})),o.d(t,"cssStyleElementMenuShow",(function(){return hu})),o.d(t,"cssStyleElementMenuShowIcon",(function(){return mu})),o.d(t,"cssStyleElementMenuIconSpacing",(function(){return pu})),o.d(t,"cssStyleElementMenuIconSize",(function(){return bu})),o.d(t,"cssStyleElementMenuBgColor",(function(){return fu})),o.d(t,"cssStyleElementMenuLinkBgColor",(function(){return yu})),o.d(t,"cssStyleElementMenuPadding",(function(){return Su})),o.d(t,"cssStyleElementMenuActiveColor",(function(){return Cu})),o.d(t,"cssStyleElementMenuActiveBgColor",(function(){return ju})),o.d(t,"cssStyleElementMenuActiveLinkBgColor",(function(){return xu})),o.d(t,"cssStyleElementMenuActiveBorder",(function(){return Bu})),o.d(t,"cssStyleElementMenuCurrentColor",(function(){return Pu})),o.d(t,"cssStyleElementMenuCurrentLinkBgColor",(function(){return Tu})),o.d(t,"cssStyleElementMenuCurrentBgColor",(function(){return wu})),o.d(t,"cssStyleElementMenuCurrentBorder",(function(){return zu})),o.d(t,"cssStyleElementMenuBorder",(function(){return Ou})),o.d(t,"cssStyleElementMMenuFontFamily",(function(){return ku})),o.d(t,"cssStyleElementMMenuFontSize",(function(){return Hu})),o.d(t,"cssStyleElementMMenuLineHeight",(function(){return _u})),o.d(t,"cssStyleElementMMenuFontWeight",(function(){return Fu})),o.d(t,"cssStyleElementMMenuLetterSpacing",(function(){return Ru})),o.d(t,"cssStyleElementMMenuColor",(function(){return Mu})),o.d(t,"cssStyleElementMMenuHoverColor",(function(){return Lu})),o.d(t,"cssStyleElementMMenuActiveColor",(function(){return Wu})),o.d(t,"cssStyleElementMMenuBorderColor",(function(){return Iu})),o.d(t,"cssStyleElementMMenuBackgroundColor",(function(){return Nu})),o.d(t,"cssStyleElementMMenuItemHorizontalAlign",(function(){return Au})),o.d(t,"cssStyleElementMMenuIconColor",(function(){return Du})),o.d(t,"cssStyleElementMMenuSize",(function(){return Eu})),o.d(t,"cssStyleElementMMenuIconSpacing",(function(){return Vu})),o.d(t,"cssStyleElementMMenuIconSize",(function(){return $u})),o.d(t,"cssStyleElementMMenuBtnNext",(function(){return Gu})),o.d(t,"cssStyleElementMMenuListViewMargin",(function(){return Uu})),o.d(t,"cssStyleElementMMenuItemPadding",(function(){return Ku})),o.d(t,"cssStyleElementMMenuItemPaddingTopZero",(function(){return qu})),o.d(t,"cssStyleElementMMenuItemPaddingBottomZero",(function(){return Yu})),o.d(t,"cssStyleElementMMenuPadding",(function(){return Xu})),o.d(t,"cssStyleElementMenuSubMenuFontFamily",(function(){return Zu})),o.d(t,"cssStyleElementMenuSubMenuFontSize",(function(){return Ju})),o.d(t,"cssStyleElementMenuSubMenuLineHeight",(function(){return Qu})),o.d(t,"cssStyleElementMenuSubMenuFontWeight",(function(){return ep})),o.d(t,"cssStyleElementMenuSubMenuLetterSpacing",(function(){return tp})),o.d(t,"cssStyleElementMenuSubMenuColor",(function(){return op})),o.d(t,"cssStyleElementMenuSubMenuHoverColor",(function(){return np})),o.d(t,"cssStyleElementMenuSubMenuIconSpacing",(function(){return ap})),o.d(t,"cssStyleElementMenuSubMenuIconSize",(function(){return rp})),o.d(t,"cssStyleElementMenuSubMenuBgColor",(function(){return ip})),o.d(t,"cssStyleElementMenuSubMenuHoverBgColor",(function(){return lp})),o.d(t,"cssStyleElementMenuSubMenuBorderColor",(function(){return sp})),o.d(t,"cssStyleElementMenuSubMenuBorderBottom",(function(){return cp})),o.d(t,"cssStyleElementMenuSubMenuCurrentColor",(function(){return dp})),o.d(t,"cssStyleElementMenuSubMenuCurrentBgColor",(function(){return up})),o.d(t,"cssStyleElementMenuSubMenuCurrentBoxShadow",(function(){return pp})),o.d(t,"cssStyleMenuDropdownBeforePositionLeft",(function(){return Sp})),o.d(t,"cssStyleMenuDropdownBeforePositionRight",(function(){return Cp})),o.d(t,"cssStyleMenuDropdownPosition",(function(){return fp})),o.d(t,"cssStyleMenuDropdownPositionLeft",(function(){return yp})),o.d(t,"cssStyleMenuDropdownPositionRight",(function(){return Op})),o.d(t,"cssStyleMenuFirstDropdownPosition",(function(){return xp})),o.d(t,"cssStyleMenuFirstDropdownPositionLeft",(function(){return jp})),o.d(t,"cssStyleMenuFirstDropdownPositionRight",(function(){return Bp})),o.d(t,"cssStyleMenuFirstDropdownBeforePositionLeft",(function(){return Pp})),o.d(t,"cssStyleMenuFirstDropdownBeforePositionRight",(function(){return wp})),o.d(t,"cssStyleElementMegaMenuWidth",(function(){return Tp})),o.d(t,"cssStyleElementMegaMenuOffsetTop",(function(){return zp})),o.d(t,"cssStyleElementMegaMenuOpened",(function(){return kp})),o.d(t,"cssStyleElementMegaMenuHeight",(function(){return Ep})),o.d(t,"cssStyleElementTableWidth",(function(){return Hp})),o.d(t,"cssStyleElementTableIconSize",(function(){return _p})),o.d(t,"cssStyleElementTableSpacing",(function(){return Fp})),o.d(t,"cssStyleElementTableBtnIconPosition",(function(){return Rp})),o.d(t,"cssStyleElementTableCustomFlexHorizontalAlign",(function(){return Mp})),o.d(t,"cssStyleElementTableCustomTextHorizontalAlign",(function(){return Lp})),o.d(t,"cssStyleElementTableAsideWidth",(function(){return Wp})),o.d(t,"cssStyleElementTableEvenBgColor",(function(){return Ip})),o.d(t,"cssStyleElementTableEvenColor",(function(){return Np})),o.d(t,"cssStyleTablePadding",(function(){return Ap})),o.d(t,"cssStyleElementMenuSimpleItemPadding",(function(){return Dp})),o.d(t,"cssStyleElementMenuSimpleColorBars",(function(){return Vp})),o.d(t,"cssStyleElementMenuSimpleWidth",(function(){return $p})),o.d(t,"cssStyleElementMenuSimpleActiveColor",(function(){return Gp})),o.d(t,"cssStyleElementImageMaxWidthPreview",(function(){return Kp})),o.d(t,"cssStyleElementImageHeightPreview",(function(){return qp})),o.d(t,"cssStyleElementImageMaxWidthEditor",(function(){return Xp})),o.d(t,"cssStyleElementImageHeightEditor",(function(){return Zp})),o.d(t,"cssStyleElementImageBorderRadius",(function(){return Yp})),o.d(t,"cssStyleElementImageWidthWrapper",(function(){return Jp})),o.d(t,"cssStyleElementImageHeightWrapper",(function(){return Qp})),o.d(t,"cssStyleElementImageMarginLeft",(function(){return eb})),o.d(t,"cssStyleElementImageMarginTop",(function(){return tb})),o.d(t,"cssStyleElementImagePictureSize",(function(){return ob})),o.d(t,"cssStyleElementImageTransitionProperty",(function(){return nb})),o.d(t,"cssStyleElementImageFilter",(function(){return ab})),o.d(t,"cssStyleAnimation",(function(){return rb})),o.d(t,"cssStyleAnimationDuration",(function(){return ib})),o.d(t,"cssStyleAnimationDelay",(function(){return lb})),o.d(t,"cssStyleRotate",(function(){return db})),o.d(t,"cssStyleElementWOOAddToCartSize",(function(){return ub})),o.d(t,"cssStyleElementWOOAddToCartSpacing",(function(){return bb})),o.d(t,"cssStyleElementWOOAddToCartInputSize",(function(){return mb})),o.d(t,"cssStyleElementWOOAddToCartInputPosition",(function(){return hb})),o.d(t,"cssStyleElementWOOAddToCartInputFontFamily",(function(){return vb})),o.d(t,"cssStyleElementWOOAddToCartInputFontSize",(function(){return fb})),o.d(t,"cssStyleElementWOOAddToCartInputLineHeight",(function(){return yb})),o.d(t,"cssStyleElementWOOAddToCartInputFontWeight",(function(){return Ob})),o.d(t,"cssStyleElementWOOAddToCartInputLetterSpacing",(function(){return Sb})),o.d(t,"cssStyleElementWOOAddToCartInputAlign",(function(){return gb})),o.d(t,"cssStyleElementWOOAddToCartInputColor",(function(){return Cb})),o.d(t,"cssStyleElementWOOAddToCartInputBg",(function(){return $b})),o.d(t,"cssStyleElementWOOAddToCartInputBorder",(function(){return Ub})),o.d(t,"cssStyleElementWOOAddToCartInputRadius",(function(){return pb})),o.d(t,"cssStyleElementWOOAddToCartInputBoxShadow",(function(){return Kb})),o.d(t,"cssStyleElementWOOAddToCartButtonColor",(function(){return xb})),o.d(t,"cssStyleElementWOOAddToCartLabelFontFamily",(function(){return jb})),o.d(t,"cssStyleElementWOOAddToCartLabelFontSize",(function(){return Bb})),o.d(t,"cssStyleElementWOOAddToCartLabelLineHeight",(function(){return Pb})),o.d(t,"cssStyleElementWOOAddToCartLabelFontWeight",(function(){return wb})),o.d(t,"cssStyleElementWOOAddToCartLabelLetterSpacing",(function(){return Tb})),o.d(t,"cssStyleElementWOOAddToCartValueFontFamily",(function(){return zb})),o.d(t,"cssStyleElementWOOAddToCartValueFontSize",(function(){return Eb})),o.d(t,"cssStyleElementWOOAddToCartValueLineHeight",(function(){return kb})),o.d(t,"cssStyleElementWOOAddToCartValueFontWeight",(function(){return Hb})),o.d(t,"cssStyleElementWOOAddToCartValueLetterSpacing",(function(){return _b})),o.d(t,"cssStyleElementWOOAddToCartLabelColor",(function(){return Fb})),o.d(t,"cssStyleElementWOOAddToCartValueColor",(function(){return Rb})),o.d(t,"cssStyleElementWOOAddToCartClearFontFamily",(function(){return Mb})),o.d(t,"cssStyleElementWOOAddToCartClearFontSize",(function(){return Lb})),o.d(t,"cssStyleElementWOOAddToCartClearLineHeight",(function(){return Wb})),o.d(t,"cssStyleElementWOOAddToCartClearFontWeight",(function(){return Ib})),o.d(t,"cssStyleElementWOOAddToCartClearLetterSpacing",(function(){return Nb})),o.d(t,"cssStyleElementWOOAddToCartClearColor",(function(){return Ab})),o.d(t,"cssStyleElementWOOAddToCartTableMargin",(function(){return Db})),o.d(t,"cssStyleElementWOOAddToCartTableBorder",(function(){return Vb})),o.d(t,"cssStyleElementWOOAddToCartTableBg",(function(){return Gb})),o.d(t,"cssStyleElementWOOAddToCartTableBoxShadow",(function(){return qb})),o.d(t,"cssStyleElementWOOAddToCartBorder",(function(){return Yb})),o.d(t,"cssStyleElementWOOAddToCartBorderRadius",(function(){return Xb})),o.d(t,"cssStyleElementWOOGalleryBorderRadiusThumbnail",(function(){return Jb})),o.d(t,"cssStyleElementWOOGalleryBorderThumbnail",(function(){return Zb})),o.d(t,"cssStyleElementWOOGalleryBoxShadowThumbnail",(function(){return Qb})),o.d(t,"cssStyleElementWOOGallerySpacing",(function(){return em})),o.d(t,"cssStyleElementWOOGalleryParentSize",(function(){return tm})),o.d(t,"cssStyleElementWOOGalleryBetweenThumbnail",(function(){return om})),o.d(t,"cssStyleElementWOOGalleryThumbnailSize",(function(){return nm})),o.d(t,"cssStyleElementWOOGalleryChildStyle",(function(){return am})),o.d(t,"cssStyleElementWOOGallerySpacingStyleLeftRigth",(function(){return rm})),o.d(t,"cssStyleElementWOOGalleryZoomReposition",(function(){return im}));var n={};o.r(n),o.d(n,"renderStyles",(function(){return b})),o.d(n,"css",(function(){return g})),o.d(n,"tmpCSSFromCache",(function(){return v})),o.d(n,"cssStyleSizeWidthPercent",(function(){return z})),o.d(n,"cssStyleSizeWidthPx",(function(){return E})),o.d(n,"cssStyleSizeMaxWidthPercent",(function(){return H})),o.d(n,"cssStyleSizeWidthStoryOnly",(function(){return k})),o.d(n,"cssStyleSizeHeightPx",(function(){return _})),o.d(n,"cssStyleSizeMinHeightPx",(function(){return F})),o.d(n,"cssStyleSizeMaxWidthSize",(function(){return R})),o.d(n,"cssStyleSizeSizePercent",(function(){return M})),o.d(n,"cssStyleSizeMaxWidthContainer",(function(){return I})),o.d(n,"cssStyleSizeTextSpacing",(function(){return A})),o.d(n,"cssStyleSizeSpacing",(function(){return N})),o.d(n,"cssStyleSizeHeightPxOnly",(function(){return D})),o.d(n,"cssStyleSizeHeightPercentOnly",(function(){return V})),o.d(n,"cssStyleSizeSize",(function(){return L})),o.d(n,"cssStyleSizeWidth",(function(){return W})),o.d(n,"cssStyleElementLineBorder",(function(){return $})),o.d(n,"cssStyleTypographyElementCountdownLabelFontSize",(function(){return te})),o.d(n,"cssStyleNumberTypography2FontFamily",(function(){return ae})),o.d(n,"cssStyleNumberTypography2FontSize",(function(){return re})),o.d(n,"cssStyleNumberTypography2LetterSpacing",(function(){return se})),o.d(n,"cssStyleNumberTypography2FontWeight",(function(){return le})),o.d(n,"cssStyleNumberTypography2LineHeight",(function(){return ie})),o.d(n,"cssStyleTitleTypography2FontFamily",(function(){return ce})),o.d(n,"cssStyleTitleTypography2FontSize",(function(){return de})),o.d(n,"cssStyleTitleTypography2LetterSpacing",(function(){return be})),o.d(n,"cssStyleTitleTypography2FontWeight",(function(){return pe})),o.d(n,"cssStyleTitleTypography2LineHeight",(function(){return ue})),o.d(n,"cssStyleMessageTypography2FontFamily",(function(){return me})),o.d(n,"cssStyleMessageTypography2FontSize",(function(){return he})),o.d(n,"cssStyleMessageTypography2LetterSpacing",(function(){return fe})),o.d(n,"cssStyleMessageTypography2FontWeight",(function(){return ve})),o.d(n,"cssStyleMessageTypography2LineHeight",(function(){return ge})),o.d(n,"cssStyleElementCountDown2NumberColor",(function(){return ye})),o.d(n,"cssStyleElementCountDown2TitleColor",(function(){return Oe})),o.d(n,"cssStyleElementCountDown2MessageColor",(function(){return Se})),o.d(n,"cssStyleElementCountDown2SpacingLeft",(function(){return oe})),o.d(n,"cssStyleElementCountDown2SpacingRight",(function(){return ne})),o.d(n,"cssStyleElementCountDown2HoverTransitionProperty",(function(){return Ce})),o.d(n,"cssStyleElementCounterChartEnd",(function(){return xe})),o.d(n,"cssStyleElementCounterChartWidth",(function(){return je})),o.d(n,"cssStyleElementCounterFillColor",(function(){return Be})),o.d(n,"cssStyleElementCounterStrokeColor",(function(){return Pe})),o.d(n,"cssStyleElementCounterTransitionHoverProperty",(function(){return we})),o.d(n,"cssStyleElementIconBoxFlexDirection",(function(){return Te})),o.d(n,"cssStyleElementIconBoxMarginRight",(function(){return ze})),o.d(n,"cssStyleElementIconBoxMarginLeft",(function(){return Ee})),o.d(n,"cssStyleBorder",(function(){return ke})),o.d(n,"cssStyleBorderTransparentColor",(function(){return He})),o.d(n,"cssStyleElementImageGallery3FontFamily",(function(){return Ke})),o.d(n,"cssStyleElementImageGallery3FontSize",(function(){return qe})),o.d(n,"cssStyleElementImageGallery3LineHeight",(function(){return Ye})),o.d(n,"cssStyleElementImageGallery3FontWeight",(function(){return Xe})),o.d(n,"cssStyleElementImageGallery3LetterSpacing",(function(){return Ze})),o.d(n,"cssStyleElementImageGalleryWidth",(function(){return Fe})),o.d(n,"cssStyleElementImageGalleryMargin",(function(){return Re})),o.d(n,"cssStyleElementImageGalleryItemWidth",(function(){return Me})),o.d(n,"cssStyleElementImageGalleryItemPadding",(function(){return Le})),o.d(n,"cssStyleElementImageGalleryFilterSpacing",(function(){return We})),o.d(n,"cssStyleElementImageGalleryFilterAfterSpacing",(function(){return Ie})),o.d(n,"cssStyleElementImageGalleryFilterHorizontalAlign",(function(){return Ne})),o.d(n,"cssStyleElementImageGalleryPaddingFourFields",(function(){return Ae})),o.d(n,"cssStyleElementImageGalleryBorderRadius",(function(){return Ue})),o.d(n,"cssStyleElementImageGalleryFilterColor",(function(){return De})),o.d(n,"cssStyleElementImageGalleryFilterBgColor",(function(){return Ve})),o.d(n,"cssStyleElementImageGalleryFilterBoxShadow",(function(){return $e})),o.d(n,"cssStyleElementImageGalleryFilterBorder",(function(){return Ge})),o.d(n,"cssStyleElementImageGalleryFilterActiveColor",(function(){return Je})),o.d(n,"cssStyleElementImageGalleryFilterActiveBgColor",(function(){return Qe})),o.d(n,"cssStyleElementImageGalleryFilterActiveBorder",(function(){return et})),o.d(n,"cssStyleElementImageGalleryFilterActiveShadow",(function(){return tt})),o.d(n,"cssStyleBorderRadius",(function(){return _e})),o.d(n,"cssStyleBgColor",(function(){return ot})),o.d(n,"cssStyleBgColorHex",(function(){return nt})),o.d(n,"cssStyleBg2Color",(function(){return at})),o.d(n,"cssStyleBgGradient",(function(){return rt})),o.d(n,"cssStyleBgImage",(function(){return it})),o.d(n,"cssStyleBgImageHover",(function(){return lt})),o.d(n,"cssStyleBgMediaImage",(function(){return st})),o.d(n,"cssStyleBgImagePosition",(function(){return ct})),o.d(n,"cssStyleBgImageAttachment",(function(){return dt})),o.d(n,"cssStyleBgMediaMap",(function(){return ut})),o.d(n,"cssStyleBgMediaVideo",(function(){return pt})),o.d(n,"cssStyleColor",(function(){return bt})),o.d(n,"cssStyleLabelColor",(function(){return mt})),o.d(n,"cssStyleBoxShadow",(function(){return gt})),o.d(n,"cssStyleBoxShadowSuffixForGlamour",(function(){return ht})),o.d(n,"cssStyleBoxShadowSection",(function(){return vt})),o.d(n,"cssStyleShapeTopType",(function(){return ft})),o.d(n,"cssStyleShapeTopHeight",(function(){return yt})),o.d(n,"cssStyleShapeTopFlip",(function(){return Ot})),o.d(n,"cssStyleShapeTopIndex",(function(){return St})),o.d(n,"cssStyleShapeBottomType",(function(){return Ct})),o.d(n,"cssStyleShapeBottomHeight",(function(){return xt})),o.d(n,"cssStyleShapeBottomFlip",(function(){return jt})),o.d(n,"cssStyleShapeBottomIndex",(function(){return Bt})),o.d(n,"cssStyleHoverTransition",(function(){return Pt})),o.d(n,"cssStylePropertyHoverTransition",(function(){return wt})),o.d(n,"cssStyleTypographyFontFamily",(function(){return Tt})),o.d(n,"cssStyleTypographyFontSize",(function(){return zt})),o.d(n,"cssStyleTypographyLineHeight",(function(){return Et})),o.d(n,"cssStyleTypographyFontWeight",(function(){return kt})),o.d(n,"cssStyleTypographyLetterSpacing",(function(){return Ht})),o.d(n,"cssStyleTypography2FontFamily",(function(){return G})),o.d(n,"cssStyleTypography2FontSize",(function(){return U})),o.d(n,"cssStyleTypography2LineHeight",(function(){return K})),o.d(n,"cssStyleTypography2FontWeight",(function(){return q})),o.d(n,"cssStyleTypography2LetterSpacing",(function(){return Y})),o.d(n,"cssStyleTypography3FontFamily",(function(){return X})),o.d(n,"cssStyleTypography3FontSize",(function(){return Z})),o.d(n,"cssStyleTypography3LineHeight",(function(){return J})),o.d(n,"cssStyleTypography3FontWeight",(function(){return Q})),o.d(n,"cssStyleTypography3LetterSpacing",(function(){return ee})),o.d(n,"cssStyleElementProgressBarPadding",(function(){return _t})),o.d(n,"cssStyleSizeProgressBarMaxWidthPercent",(function(){return Ft})),o.d(n,"cssStyleElementProgressBarPropertyHoverTransition",(function(){return Rt})),o.d(n,"cssStyleElementButtonBorderRadius",(function(){return Mt})),o.d(n,"cssStyleElementButtonIconPosition",(function(){return Lt})),o.d(n,"cssStyleElementButtonIconFontSize",(function(){return Wt})),o.d(n,"cssStyleElementButtonIconMargin",(function(){return It})),o.d(n,"cssStyleElementIconStrokeWidth",(function(){return Nt})),o.d(n,"cssStyleElementButtonPropertyHoverTransition",(function(){return At})),o.d(n,"cssStyleElementButtonPropertyContentAlign",(function(){return Dt})),o.d(n,"cssStyleElementFacebookButtonPropertyHoverTransition",(function(){return Vt})),o.d(n,"cssStyleElementFacebookCommentsPropertyHoverTransition",(function(){return $t})),o.d(n,"cssStyleElementFacebookEmbedPropertyHoverTransition",(function(){return Gt})),o.d(n,"cssStyleElementFacebookGroupPropertyHoverTransition",(function(){return Ut})),o.d(n,"cssStyleElementFacebookPagePropertyHoverTransition",(function(){return Kt})),o.d(n,"cssStyleElementMapPropertyHoverTransition",(function(){return qt})),o.d(n,"cssStyleElementMapPropertyPositionFixed",(function(){return Yt})),o.d(n,"cssStyleElementSoundCloudPropertyHoverTransition",(function(){return Xt})),o.d(n,"cssStyleContainerPopup2ContainerWidth",(function(){return Zt})),o.d(n,"cssStyleContainerPopup2CloseState",(function(){return Jt})),o.d(n,"cssStyleContainerPopup2ClosePosition",(function(){return ao})),o.d(n,"cssStyleContainerPopup2CloseFontSize",(function(){return eo})),o.d(n,"cssStyleContainerPopup2CloseBgSize",(function(){return to})),o.d(n,"cssStyleContainerPopup2CloseBorderRadius",(function(){return oo})),o.d(n,"cssStyleContainerPopup2CloseColor",(function(){return Qt})),o.d(n,"cssStyleContainerPopup2CloseBgColor",(function(){return no})),o.d(n,"cssStyleContainerPopup2RowFlexVerticalAlign",(function(){return ro})),o.d(n,"cssStyleContainerPopup2CustomHeight",(function(){return io})),o.d(n,"cssStyleContainerPopup2CustomHeightOverflow",(function(){return lo})),o.d(n,"cssStyleContainerPopup2Custom2Height100",(function(){return so})),o.d(n,"cssStyleContainerPopup2Custom2MaxHeight100",(function(){return co})),o.d(n,"cssStyleZIndex",(function(){return uo})),o.d(n,"cssStyleZIndexStory",(function(){return po})),o.d(n,"cssStyleFlexVerticalAlign",(function(){return bo})),o.d(n,"cssStyleFlexColumnVerticalAlign",(function(){return vo})),o.d(n,"cssStyleFlexHorizontalAlign",(function(){return mo})),o.d(n,"cssStyleContentAlign",(function(){return ho})),o.d(n,"cssStyleMarginAlign",(function(){return go})),o.d(n,"cssStyleExcerptAlign",(function(){return fo})),o.d(n,"cssStyleFlexColumn",(function(){return yo})),o.d(n,"cssStylePadding",(function(){return Bo})),o.d(n,"cssStylePaddingFourFields",(function(){return Oo})),o.d(n,"cssStylePaddingPreview",(function(){return So})),o.d(n,"cssStylePaddingTopForEditorResizer",(function(){return Co})),o.d(n,"cssStylePaddingBottomForEditorResizer",(function(){return xo})),o.d(n,"cssStylePaddingRightLeftForEditor",(function(){return jo})),o.d(n,"cssStyleItemPadding",(function(){return Po})),o.d(n,"cssStyleMargin",(function(){return wo})),o.d(n,"cssStyleItemMargin",(function(){return To})),o.d(n,"cssStyleDisplayFlex",(function(){return zo})),o.d(n,"cssStyleDisplayInlineFlex",(function(){return Eo})),o.d(n,"cssStyleDisplayBlock",(function(){return ko})),o.d(n,"cssStyleVisible",(function(){return Ho})),o.d(n,"cssStyleVisibleEditorDisplayNoneOrFlex",(function(){return _o})),o.d(n,"cssStyleVisibleEditorDisplayNoneOrBlock",(function(){return Ro})),o.d(n,"cssStyleVisibleEditorDisplayNoneOrInlineFlex",(function(){return Fo})),o.d(n,"cssStyleVisibleMode",(function(){return Mo})),o.d(n,"cssStyleShowMembershipBlock",(function(){return Lo})),o.d(n,"cssStyleFilter",(function(){return Io})),o.d(n,"cssStyleFilterSuffixForGlamour",(function(){return Wo})),o.d(n,"cssStyleElementVideoPaddingRatio",(function(){return No})),o.d(n,"cssStyleElementVideoFilter",(function(){return Ao})),o.d(n,"cssStyleElementVideoBgSize",(function(){return Do})),o.d(n,"cssStyleElementVideoIconFontSize",(function(){return Vo})),o.d(n,"cssStyleElementVideoIconWidth",(function(){return $o})),o.d(n,"cssStyleElementVideoIconHeight",(function(){return Go})),o.d(n,"cssStyleElementVideoControlsIconFontSize",(function(){return Jo})),o.d(n,"cssStyleElementVideoBgColorRatio",(function(){return Uo})),o.d(n,"cssStyleElementVideoCoverSrc",(function(){return Ko})),o.d(n,"cssStyleElementVideoCoverPosition",(function(){return qo})),o.d(n,"cssStyleElementVideoPropertyHoverTransition",(function(){return Yo})),o.d(n,"cssStyleVideoControlsBgColor",(function(){return Xo})),o.d(n,"cssStyleVideoIconControls",(function(){return Zo})),o.d(n,"cssStyleElementVideoPlaylistSubTitleVideoTypography2FontFamily",(function(){return Qo})),o.d(n,"cssStyleElementVideoPlaylistSubTitleVideoTypography2FontSize",(function(){return en})),o.d(n,"cssStyleElementVideoPlaylistSubTitleVideoTypography2LineHeight",(function(){return tn})),o.d(n,"cssStyleElementVideoPlaylistSubTitleVideoTypography2FontWeight",(function(){return on})),o.d(n,"cssStyleElementVideoPlaylistSubTitleVideoTypography2LetterSpacing",(function(){return nn})),o.d(n,"cssStyleElementVideoPlaylistBorderItem",(function(){return ln})),o.d(n,"cssStyleElementVideoPlaylistGridItemWidth",(function(){return cn})),o.d(n,"cssStyleSizeWidthPixel",(function(){return an})),o.d(n,"cssStyleElementVideoPlaylistImageSize",(function(){return rn})),o.d(n,"cssStyleSizeWidthVideoBlock",(function(){return sn})),o.d(n,"cssStyleBgIconCoverColor",(function(){return pn})),o.d(n,"cssStyleCoverIconColor",(function(){return dn})),o.d(n,"cssStyleCoverSubTitleColor",(function(){return un})),o.d(n,"cssStyleElementVideoPlaylistItemActiveBg",(function(){return bn})),o.d(n,"cssStyleElementVideoPlaylistBorderItemActive",(function(){return mn})),o.d(n,"cssStyleElementVideoPlaylistItemActiveColor",(function(){return hn})),o.d(n,"cssStyleElementVideoPlaylistItemSubtitleActiveColor",(function(){return gn})),o.d(n,"cssStyleElementMediaIconFontSize",(function(){return vn})),o.d(n,"cssStyleElementMediaPadding",(function(){return fn})),o.d(n,"cssStyleRowMinHeight",(function(){return yn})),o.d(n,"cssStyleRowReverseColumn",(function(){return On})),o.d(n,"cssStylePosition",(function(){return wn})),o.d(n,"cssStylePositionMode",(function(){return Tn})),o.d(n,"cssStyleCustomPosition",(function(){return zn})),o.d(n,"cssStyleCustomWidth",(function(){return En})),o.d(n,"cssStyleOffset",(function(){return kn})),o.d(n,"cssStyleIconSpacing",(function(){return Hn})),o.d(n,"cssStyleIconSize",(function(){return _n})),o.d(n,"cssStyleSectionMaxWidth",(function(){return Mn})),o.d(n,"cssStyleSectionSliderHeight",(function(){return Ln})),o.d(n,"cssStyleSectionColorDots",(function(){return Wn})),o.d(n,"cssStyleSectionColorArrows",(function(){return In})),o.d(n,"cssStyleSectionPropertyHoverTransition",(function(){return Nn})),o.d(n,"cssStyleSectionToolbarOffset",(function(){return An})),o.d(n,"cssStyleSectionHeightStyle",(function(){return Dn})),o.d(n,"cssStyleSectionPaddingsForEditorResize",(function(){return Vn})),o.d(n,"cssStyleSectionPopupContainerWrap",(function(){return $n})),o.d(n,"cssStyleElementBreadcrumbsArrowSize",(function(){return Gn})),o.d(n,"cssStyleElementBreadcrumbsColorActive",(function(){return Un})),o.d(n,"cssStyleElementBreadcrumbsColorArrows",(function(){return Kn})),o.d(n,"cssStyleElementForm2FlexBasisPercent",(function(){return Yn})),o.d(n,"cssStyleElementForm2SubmitWidth",(function(){return Xn})),o.d(n,"cssStyleElementForm2InputHeight",(function(){return Zn})),o.d(n,"cssStyleElementForm2FieldsLineHeight",(function(){return ta})),o.d(n,"cssStyleElementForm2FieldsLabelFontFamily",(function(){return oa})),o.d(n,"cssStyleElementForm2FieldsLabelFontSize",(function(){return na})),o.d(n,"cssStyleElementForm2FieldsLabelFontWeight",(function(){return ra})),o.d(n,"cssStyleElementForm2FieldsLabelLetterSpacing",(function(){return ia})),o.d(n,"cssStyleElementForm2FieldsLabelAlign",(function(){return Jn})),o.d(n,"cssStyleElementForm2FieldsLabelLineHeight",(function(){return aa})),o.d(n,"cssStyleElementForm2FieldsLabelPadding",(function(){return la})),o.d(n,"cssStyleElementForm2Margin",(function(){return Qn})),o.d(n,"cssStyleElementForm2Padding",(function(){return ea})),o.d(n,"cssStyleElementForm2FieldsBorderRequired",(function(){return ga})),o.d(n,"cssStyleElementForm2FieldsCheckboxColor",(function(){return sa})),o.d(n,"cssStyleElementForm2FieldsCheckboxFontFamily",(function(){return ca})),o.d(n,"cssStyleElementForm2FieldsCheckboxFontSize",(function(){return da})),o.d(n,"cssStyleElementForm2FieldsCheckboxFontWeight",(function(){return ua})),o.d(n,"cssStyleElementForm2FieldsCheckboxLetterSpacing",(function(){return pa})),o.d(n,"cssStyleElementForm2FieldsCheckboxLineHeight",(function(){return ba})),o.d(n,"cssStyleElementForm2FieldsSelectColor",(function(){return ma})),o.d(n,"cssStyleElementForm2FieldsSelectBgColor",(function(){return ha})),o.d(n,"cssStyleElementForm2FieldsSelectChoiceBgColor",(function(){return va})),o.d(n,"cssStyleElementForm2FieldsSelectBorder",(function(){return fa})),o.d(n,"cssStyleElementForm2FieldsSelectBorderRadius",(function(){return ya})),o.d(n,"cssStyleElementForm2FieldsSelectBoxShadow",(function(){return Oa})),o.d(n,"cssStyleElementForm2FieldColumns",(function(){return Sa})),o.d(n,"cssStyleElementForm2StoryButtonHeight",(function(){return Ca})),o.d(n,"cssStyleElementLoginFormMargin",(function(){return xa})),o.d(n,"cssStyleElementLoginFieldPadding",(function(){return ja})),o.d(n,"cssStyleElementLoginLostPasswordColor",(function(){return Ea})),o.d(n,"cssStyleElementLoginLostPasswordAlign",(function(){return ka})),o.d(n,"cssStyleElementLoginLostPasswordTypography2FontFamily",(function(){return Ba})),o.d(n,"cssStyleElementLoginLostPasswordTypography2FontSize",(function(){return Pa})),o.d(n,"cssStyleElementLoginLostPasswordTypography2FontWeight",(function(){return Ta})),o.d(n,"cssStyleElementLoginLostPasswordTypography2LetterSpacing",(function(){return za})),o.d(n,"cssStyleElementLoginLostPasswordTypography2LineHeight",(function(){return wa})),o.d(n,"cssStyleElementLoginAutorizedAlign",(function(){return Ha})),o.d(n,"cssStyleElementLoginTextTypography2FontFamily",(function(){return _a})),o.d(n,"cssStyleElementLoginTextTypography2FontSize",(function(){return Fa})),o.d(n,"cssStyleElementLoginTextTypography2LineHeight",(function(){return Ra})),o.d(n,"cssStyleElementLoginTextTypography2FontWeight",(function(){return Ma})),o.d(n,"cssStyleElementLoginTextTypography2LetterSpacing",(function(){return La})),o.d(n,"cssStyleElementLoginTextColor",(function(){return Wa})),o.d(n,"cssStyleElementLoginLinkColor",(function(){return Ia})),o.d(n,"cssStyleElementPostInfoColorText",(function(){return Aa})),o.d(n,"cssStyleElementPostInfoColorIcons",(function(){return Na})),o.d(n,"cssStyleElementPostInfoSpacing",(function(){return Da})),o.d(n,"cssStyleElementPostNavigation2TitleFontFamily",(function(){return Va})),o.d(n,"cssStyleElementPostNavigation2TitleFontSize",(function(){return $a})),o.d(n,"cssStyleElementPostNavigation2TitleLineHeight",(function(){return Ga})),o.d(n,"cssStyleElementPostNavigation2TitleFontWeight",(function(){return Ua})),o.d(n,"cssStyleElementPostNavigation2TitleLetterSpacing",(function(){return Ka})),o.d(n,"cssStyleElementPostNavigation2PostFontFamily",(function(){return qa})),o.d(n,"cssStyleElementPostNavigation2PostFontSize",(function(){return Ya})),o.d(n,"cssStyleElementPostNavigation2PostLineHeight",(function(){return Xa})),o.d(n,"cssStyleElementPostNavigation2PostFontWeight",(function(){return Za})),o.d(n,"cssStyleElementPostNavigation2PostLetterSpacing",(function(){return Ja})),o.d(n,"cssStyleElementPostNavigationColorTitle",(function(){return Qa})),o.d(n,"cssStyleElementPostNavigationColorPost",(function(){return er})),o.d(n,"cssStyleElementPostNavigationSpacing",(function(){return tr})),o.d(n,"cssStyleElementPostNavigationSeparationHeight",(function(){return or})),o.d(n,"cssStyleElementPostNavigationShowSeparation",(function(){return nr})),o.d(n,"cssStyleElementStarRatingRatingColor",(function(){return ar})),o.d(n,"cssStyleElementStarRatingRatingBackgroundColor",(function(){return rr})),o.d(n,"cssStyleElementStarRatingPropertyHoverTransition",(function(){return sr})),o.d(n,"cssStyleElementStarRatingTextSpacing",(function(){return dr})),o.d(n,"cssStyleElementStarRatingStyle2Background",(function(){return ir})),o.d(n,"cssStyleElementStarRatingStyle2BorderRadius",(function(){return lr})),o.d(n,"cssStyleElementStarRatingDirection",(function(){return cr})),o.d(n,"cssStyleElementTimelineTabContentArrowColor",(function(){return qr})),o.d(n,"cssStyleElementTimelineTabContentArrowCustomColor",(function(){return Yr})),o.d(n,"cssStyleElementTimelineTabContentArrowCustomColor1",(function(){return Xr})),o.d(n,"cssStyleElementTimelineBeforeDisplay",(function(){return kr})),o.d(n,"cssStyleElementTimelineCustomLineOdd",(function(){return Ir})),o.d(n,"cssStyleElementTimelineVerticalTab",(function(){return si})),o.d(n,"cssStyleElementTimelineVerticalLastTab",(function(){return ci})),o.d(n,"cssStyleElementTimelineTabsVerticalContent",(function(){return li})),o.d(n,"cssStyleElementTimelineTabsVerticalNavIcon",(function(){return ii})),o.d(n,"cssStyleElementTimelineTabsHorizontalStyle3",(function(){return ri})),o.d(n,"cssStyleElementTimelineTabHorizontalStyle3Odd",(function(){return ai})),o.d(n,"cssStyleElementTimelineTabCustomStyle",(function(){return ni})),o.d(n,"cssStyleElementTimelineContentBeforeStyle3",(function(){return ei})),o.d(n,"cssStyleElementTimelineVerticalTabBeforeNone",(function(){return di})),o.d(n,"cssStyleElementTimelineVerticalTabBeforeStyle3",(function(){return ui})),o.d(n,"cssStyleElementTimelineNavTitleStyle3",(function(){return oi})),o.d(n,"cssStyleElementTimelineTab",(function(){return Jr})),o.d(n,"cssStyleElementTimelineTabs",(function(){return Zr})),o.d(n,"cssStyleElementTimelineTabContentBefore",(function(){return Qr})),o.d(n,"cssStyleElementTimelineNavTitle",(function(){return ti})),o.d(n,"cssStyleElementTimelineWidth",(function(){return Kr})),o.d(n,"cssStyleElementTimelineIconSize",(function(){return gr})),o.d(n,"cssStyleElementTimelineIconWidth",(function(){return fr})),o.d(n,"cssStyleElementTimelineIconHeight",(function(){return yr})),o.d(n,"cssStyleElementTimelineIconBorderRadius",(function(){return Pr})),o.d(n,"cssStyleElementTimelineNavTitleWidth",(function(){return Or})),o.d(n,"cssStyleElementTimelineLineBgColor",(function(){return Cr})),o.d(n,"cssStyleElementTimelineLineTop",(function(){return xr})),o.d(n,"cssStyleElementTimelineArrowBorder",(function(){return Br})),o.d(n,"cssStyleElementTimelineVerticalCustomTabPositionOdd",(function(){return Vr})),o.d(n,"cssStyleElementTimelineContentSpacing",(function(){return jr})),o.d(n,"cssStyleElementTimelineVerticalCustomContentSpacing",(function(){return Ur})),o.d(n,"cssStyleElementTimelinePaddingForIcon",(function(){return vr})),o.d(n,"cssStyleElementTimelineNavTitleVisible",(function(){return Sr})),o.d(n,"cssStyleElementTimelineVerticalPosition",(function(){return wr})),o.d(n,"cssStyleElementTimelineLineWidthHeightBefore",(function(){return Tr})),o.d(n,"cssStyleElementTimelineLineWidthHeightAfter",(function(){return zr})),o.d(n,"cssStyleElementTimelineVerticalLinePosition",(function(){return Er})),o.d(n,"cssStyleElementTimelineVerticalLineTopPosition",(function(){return Hr})),o.d(n,"cssStyleElementTimelineVerticalLineBottomPosition",(function(){return _r})),o.d(n,"cssStyleElementTimelineCustomTabWidth",(function(){return Fr})),o.d(n,"cssStyleElementTimelineCustomLastTabWidth",(function(){return Rr})),o.d(n,"cssStyleElementTimelineVerticalInvertPosition",(function(){return Mr})),o.d(n,"cssStyleElementTimelineVerticalInvertLinePosition",(function(){return Lr})),o.d(n,"cssStyleElementTimelineCustomLineTop",(function(){return Wr})),o.d(n,"cssStyleElementTimelineCustomContentSpacing",(function(){return Nr})),o.d(n,"cssStyleElementTimelineCustomContentBottomSpacing",(function(){return Ar})),o.d(n,"cssStyleElementTimelineVerticalCustomTabPosition",(function(){return Dr})),o.d(n,"cssStyleElementTimelineVerticalCustomPosition",(function(){return $r})),o.d(n,"cssStyleElementTimelineVerticalStyle3ArrowPosition",(function(){return Gr})),o.d(n,"cssStyleElementSwitcherNavSpacing",(function(){return hi})),o.d(n,"cssStyleElementSwitcherNavBeforeBg",(function(){return mi})),o.d(n,"cssStyleElementSwitcherActiveTextColor",(function(){return gi})),o.d(n,"cssStyleElementSwitcherNav2Width",(function(){return pi})),o.d(n,"cssStyleElementSwitcherNav2Height",(function(){return bi})),o.d(n,"cssStyleElementSwitcherWidth",(function(){return vi})),o.d(n,"cssStyleElementWPPostContentH1Color",(function(){return fi})),o.d(n,"cssStyleElementWPPostContentH2Color",(function(){return yi})),o.d(n,"cssStyleElementWPPostContentH3Color",(function(){return Oi})),o.d(n,"cssStyleElementWPPostContentH4Color",(function(){return Si})),o.d(n,"cssStyleElementWPPostContentH5Color",(function(){return Ci})),o.d(n,"cssStyleElementWPPostContentH6Color",(function(){return xi})),o.d(n,"cssStyleElementWPPostContentParagraphColor",(function(){return ji})),o.d(n,"cssStyleElementWPPostContentTypography2ParagraphFontFamily",(function(){return Bi})),o.d(n,"cssStyleElementWPPostContentTypography2ParagraphFontSize",(function(){return Pi})),o.d(n,"cssStyleElementWPPostContentTypography2ParagraphLineHeight",(function(){return wi})),o.d(n,"cssStyleElementWPPostContentTypography2ParagraphFontWeight",(function(){return Ti})),o.d(n,"cssStyleElementWPPostContentTypography2ParagraphLetterSpacing",(function(){return zi})),o.d(n,"cssStyleElementWPPostContentTypography2H1FontFamily",(function(){return Ei})),o.d(n,"cssStyleElementWPPostContentTypography2H1FontSize",(function(){return ki})),o.d(n,"cssStyleElementWPPostContentTypography2H1LineHeight",(function(){return Hi})),o.d(n,"cssStyleElementWPPostContentTypography2H1FontWeight",(function(){return _i})),o.d(n,"cssStyleElementWPPostContentTypography2H1LetterSpacing",(function(){return Fi})),o.d(n,"cssStyleElementWPPostContentTypography2H2FontFamily",(function(){return Ri})),o.d(n,"cssStyleElementWPPostContentTypography2H2FontSize",(function(){return Mi})),o.d(n,"cssStyleElementWPPostContentTypography2H2LineHeight",(function(){return Li})),o.d(n,"cssStyleElementWPPostContentTypography2H2FontWeight",(function(){return Wi})),o.d(n,"cssStyleElementWPPostContentTypography2H2LetterSpacing",(function(){return Ii})),o.d(n,"cssStyleElementWPPostContentTypography2H3FontFamily",(function(){return Ni})),o.d(n,"cssStyleElementWPPostContentTypography2H3FontSize",(function(){return Ai})),o.d(n,"cssStyleElementWPPostContentTypography2H3LineHeight",(function(){return Di})),o.d(n,"cssStyleElementWPPostContentTypography2H3FontWeight",(function(){return Vi})),o.d(n,"cssStyleElementWPPostContentTypography2H3LetterSpacing",(function(){return $i})),o.d(n,"cssStyleElementWPPostContentTypography2H4FontFamily",(function(){return Gi})),o.d(n,"cssStyleElementWPPostContentTypography2H4FontSize",(function(){return Ui})),o.d(n,"cssStyleElementWPPostContentTypography2H4LineHeight",(function(){return Ki})),o.d(n,"cssStyleElementWPPostContentTypography2H4FontWeight",(function(){return qi})),o.d(n,"cssStyleElementWPPostContentTypography2H4LetterSpacing",(function(){return Yi})),o.d(n,"cssStyleElementWPPostContentTypography2H5FontFamily",(function(){return Xi})),o.d(n,"cssStyleElementWPPostContentTypography2H5FontSize",(function(){return Zi})),o.d(n,"cssStyleElementWPPostContentTypography2H5LineHeight",(function(){return Ji})),o.d(n,"cssStyleElementWPPostContentTypography2H5FontWeight",(function(){return Qi})),o.d(n,"cssStyleElementWPPostContentTypography2H5LetterSpacing",(function(){return el})),o.d(n,"cssStyleElementWPPostContentTypography2H6FontFamily",(function(){return tl})),o.d(n,"cssStyleElementWPPostContentTypography2H6FontSize",(function(){return ol})),o.d(n,"cssStyleElementWPPostContentTypography2H6LineHeight",(function(){return nl})),o.d(n,"cssStyleElementWPPostContentTypography2H6FontWeight",(function(){return al})),o.d(n,"cssStyleElementWPPostContentTypography2H6LetterSpacing",(function(){return rl})),o.d(n,"cssStyleElementWPPostContentFontWeightInherit",(function(){return il})),o.d(n,"cssStyleElementWOOPriceColorSale",(function(){return ll})),o.d(n,"cssStyleElementWOOPriceSaleFontFamily",(function(){return sl})),o.d(n,"cssStyleElementWOOPriceSaleFontSize",(function(){return cl})),o.d(n,"cssStyleElementWOOPriceSaleLineHeight",(function(){return dl})),o.d(n,"cssStyleElementWOOPriceSaleFontWeight",(function(){return ul})),o.d(n,"cssStyleElementWOOPriceSaleLetterSpacing",(function(){return pl})),o.d(n,"cssStyleElementWOOPriceColumn",(function(){return bl})),o.d(n,"cssStyleElementWOOPriceSpacingFirst",(function(){return ml})),o.d(n,"cssStyleElementWOOPriceSpacingLast",(function(){return hl})),o.d(n,"cssStyleElementWOOAttributesAttributesFontFamily",(function(){return gl})),o.d(n,"cssStyleElementWOOAttributesAttributesFontSize",(function(){return vl})),o.d(n,"cssStyleElementWOOAttributesAttributesLineHeight",(function(){return fl})),o.d(n,"cssStyleElementWOOAttributesAttributesFontWeight",(function(){return yl})),o.d(n,"cssStyleElementWOOAttributesAttributesLetterSpacing",(function(){return Ol})),o.d(n,"cssStyleElementWOOAttributesSpacing",(function(){return Sl})),o.d(n,"cssStyleElementWOOAttributesAttributeColor",(function(){return Cl})),o.d(n,"cssStyleElementWOOAttributesBorder",(function(){return xl})),o.d(n,"cssStyleElementWOOAttributesLastElementBorder",(function(){return jl})),o.d(n,"cssStyleElementPostsItemWidth",(function(){return Bl})),o.d(n,"cssStyleElementPostsItemSpacing",(function(){return Pl})),o.d(n,"cssStyleElementPostsPaginationSpacing",(function(){return wl})),o.d(n,"cssStyleElementPostsPaginationLinksOff",(function(){return Tl})),o.d(n,"cssStyleElementPostsPaginationFontFamily",(function(){return zl})),o.d(n,"cssStyleElementPostsPaginationFontSize",(function(){return El})),o.d(n,"cssStyleElementPostsPaginationLineHeight",(function(){return kl})),o.d(n,"cssStyleElementPostsPaginationFontWeight",(function(){return Hl})),o.d(n,"cssStyleElementPostsPaginationLetterSpacing",(function(){return _l})),o.d(n,"cssStyleElementPostsPaginationColor",(function(){return Fl})),o.d(n,"cssStyleElementPostsPaginationBgColor",(function(){return Rl})),o.d(n,"cssStyleElementPostsPaginationBorder",(function(){return Ml})),o.d(n,"cssStyleElementPostsPaginationBorderRadius",(function(){return Ll})),o.d(n,"cssStyleElementPostsFilterDisplay",(function(){return Wl})),o.d(n,"cssStyleElementPostsFilterHorizontalAlign",(function(){return Il})),o.d(n,"cssStyleElementPostsFilterSpacing",(function(){return Nl})),o.d(n,"cssStyleElementPostsFilterAfterSpacing",(function(){return Al})),o.d(n,"cssStyleElementPostsFilterFontFamily",(function(){return Dl})),o.d(n,"cssStyleElementPostsFilterFontSize",(function(){return Vl})),o.d(n,"cssStyleElementPostsFilterLineHeight",(function(){return $l})),o.d(n,"cssStyleElementPostsFilterFontWeight",(function(){return Gl})),o.d(n,"cssStyleElementPostsFilterLetterSpacing",(function(){return Ul})),o.d(n,"cssStyleElementPostsFilterColor",(function(){return Kl})),o.d(n,"cssStyleElementPostsFilterBgColor",(function(){return ql})),o.d(n,"cssStyleElementPostsFilterBorder",(function(){return Yl})),o.d(n,"cssStyleElementPostsFilterBorderRadius",(function(){return Xl})),o.d(n,"cssStyleElementPostsFilterShadow",(function(){return Zl})),o.d(n,"cssStyleElementPostsFilterPaddingFourFields",(function(){return Jl})),o.d(n,"cssStyleElementPostsFilterActiveColor",(function(){return Ql})),o.d(n,"cssStyleElementPostsFilterActiveBgColor",(function(){return es})),o.d(n,"cssStyleElementPostsFilterActiveBorder",(function(){return ts})),o.d(n,"cssStyleElementPostsFilterActiveShadow",(function(){return os})),o.d(n,"cssStyleElementAccordion3FontFamily",(function(){return xs})),o.d(n,"cssStyleElementAccordion3FontSize",(function(){return js})),o.d(n,"cssStyleElementAccordion3LineHeight",(function(){return Bs})),o.d(n,"cssStyleElementAccordion3FontWeight",(function(){return Ps})),o.d(n,"cssStyleElementAccordion3LetterSpacing",(function(){return ws})),o.d(n,"cssStyleElementAccordionFilterColor",(function(){return as})),o.d(n,"cssStyleElementAccordionFilterBgColor",(function(){return cs})),o.d(n,"cssStyleElementAccordionFilterBorder",(function(){return ds})),o.d(n,"cssStyleElementAccordionFilterBorderRadius",(function(){return us})),o.d(n,"cssStyleElementAccordionFilterShadow",(function(){return ps})),o.d(n,"cssStyleElementAccordionMarginTop",(function(){return bs})),o.d(n,"cssStyleElementAccordionSpacing",(function(){return ms})),o.d(n,"cssStyleElementAccordionFilterSpacing",(function(){return hs})),o.d(n,"cssStyleElementAccordionFilterAfterSpacing",(function(){return gs})),o.d(n,"cssStyleElementAccordionNavAlign",(function(){return vs})),o.d(n,"cssStyleElementAccordionNavTextAlign",(function(){return fs})),o.d(n,"cssStyleElementAccordionNavIconSpacing",(function(){return ys})),o.d(n,"cssStyleElementAccordionNavIconSize",(function(){return Os})),o.d(n,"cssStyleElementAccordionFilterHorizontalAlign",(function(){return Ss})),o.d(n,"cssStyleElementAccordionFilterPaddingFourFields",(function(){return Cs})),o.d(n,"cssStyleElementAccordionFilterActiveColor",(function(){return rs})),o.d(n,"cssStyleElementAccordionFilterActiveBgColor",(function(){return is})),o.d(n,"cssStyleElementAccordionFilterActiveBorder",(function(){return ls})),o.d(n,"cssStyleElementAccordionFilterActiveShadow",(function(){return ss})),o.d(n,"cssStyleElementAccordionActiveColor",(function(){return Ts})),o.d(n,"cssStyleElementAccordionActiveBgColor",(function(){return zs})),o.d(n,"cssStyleElementAccordionActiveBorder",(function(){return Es})),o.d(n,"cssStyleElementAccordionActiveShadow",(function(){return ks})),o.d(n,"cssStyleElementAccordionAnimDuration",(function(){return Hs})),o.d(n,"cssStyleElementAccordionPropertyHoverTransition",(function(){return _s})),o.d(n,"cssStyleElementTabsBtnSpacing",(function(){return Fs})),o.d(n,"cssStyleElementTabsBtnIconSize",(function(){return Rs})),o.d(n,"cssStyleElementTabsBtnActiveBorderBottomColor",(function(){return Ms})),o.d(n,"cssStyleElementTabsBtnActiveBorderRightColor",(function(){return Ls})),o.d(n,"cssStyleElementTabsBtnActiveBorderLeftColor",(function(){return Ws})),o.d(n,"cssStyleElementTabsActiveBeforeAfterColor",(function(){return Is})),o.d(n,"cssStyleElementTabsActiveBeforeHeight",(function(){return Ns})),o.d(n,"cssStyleElementTabsActiveBeforeWidth",(function(){return As})),o.d(n,"cssStyleElementTabsBeforeAfterRightWidth",(function(){return Ds})),o.d(n,"cssStyleElementTabsBeforeAfterLeftWidth",(function(){return Vs})),o.d(n,"cssStyleElementTabsBorderMobileWidth",(function(){return $s})),o.d(n,"cssStyleElementTabsEmptyContent",(function(){return Gs})),o.d(n,"cssStyleElementTabsBtnIconPosition",(function(){return Us})),o.d(n,"cssStyleElementTabsBtnIconJustifyContent",(function(){return Ks})),o.d(n,"cssStyleElementTabsBeforeAfterTop",(function(){return qs})),o.d(n,"cssStyleElementTabsBeforeAfterBottom",(function(){return Ys})),o.d(n,"cssStyleElementTabsAfterSpacing",(function(){return Xs})),o.d(n,"cssStyleElementTabsSpacing",(function(){return Js})),o.d(n,"cssStyleElementTabsAfterSpacingVertical",(function(){return Zs})),o.d(n,"cssStyleElementTabsNavAlign",(function(){return Qs})),o.d(n,"cssStyleElementTabsNavBorderBottom",(function(){return tc})),o.d(n,"cssStyleElementTabsNavStyle3Before",(function(){return oc})),o.d(n,"cssStyleElementTabsPadding",(function(){return ec})),o.d(n,"cssStyleElementTabsActiveColor",(function(){return nc})),o.d(n,"cssStyleElementTabsActiveBgColor",(function(){return ac})),o.d(n,"cssStyleElementTabsActiveBorder",(function(){return ic})),o.d(n,"cssStyleElementTabsActiveShadow",(function(){return rc})),o.d(n,"cssStyleElementCommentsNameFontFamily",(function(){return lc})),o.d(n,"cssStyleElementCommentsNameFontSize",(function(){return sc})),o.d(n,"cssStyleElementCommentsNameLineHeight",(function(){return cc})),o.d(n,"cssStyleElementCommentsNameFontWeight",(function(){return dc})),o.d(n,"cssStyleElementCommentsNameLetterSpacing",(function(){return uc})),o.d(n,"cssStyleElementCommentsDateFontFamily",(function(){return vc})),o.d(n,"cssStyleElementCommentsDateFontSize",(function(){return fc})),o.d(n,"cssStyleElementCommentsDateLineHeight",(function(){return yc})),o.d(n,"cssStyleElementCommentsDateFontWeight",(function(){return Oc})),o.d(n,"cssStyleElementCommentsDateLetterSpacing",(function(){return Sc})),o.d(n,"cssStyleElementCommentsCommentFontFamily",(function(){return pc})),o.d(n,"cssStyleElementCommentsCommentFontSize",(function(){return bc})),o.d(n,"cssStyleElementCommentsCommentLineHeight",(function(){return mc})),o.d(n,"cssStyleElementCommentsCommentFontWeight",(function(){return hc})),o.d(n,"cssStyleElementCommentsCommentLetterSpacing",(function(){return gc})),o.d(n,"cssStyleElementCommentsReplyFontFamily",(function(){return Cc})),o.d(n,"cssStyleElementCommentsReplyFontSize",(function(){return xc})),o.d(n,"cssStyleElementCommentsReplyLineHeight",(function(){return jc})),o.d(n,"cssStyleElementCommentsReplyFontWeight",(function(){return Bc})),o.d(n,"cssStyleElementCommentsReplyLetterSpacing",(function(){return Pc})),o.d(n,"cssStyleElementCommentsPostButtonFontFamily",(function(){return wc})),o.d(n,"cssStyleElementCommentsPostButtonFontSize",(function(){return Tc})),o.d(n,"cssStyleElementCommentsPostButtonLineHeight",(function(){return zc})),o.d(n,"cssStyleElementCommentsPostButtonFontWeight",(function(){return Ec})),o.d(n,"cssStyleElementCommentsPostButtonLetterSpacing",(function(){return kc})),o.d(n,"cssStyleElementCommentsLogoSize",(function(){return Hc})),o.d(n,"cssStyleElementCommentsWidthContainer",(function(){return _c})),o.d(n,"cssStyleElementCommentsPostButtonColor",(function(){return Fc})),o.d(n,"cssStyleElementCommentsPostButtonBg",(function(){return Rc})),o.d(n,"cssStyleElementCommentsColorLink",(function(){return Mc})),o.d(n,"cssStyleElementCommentsNameColor",(function(){return Lc})),o.d(n,"cssStyleElementCommentsCommentsColor",(function(){return Wc})),o.d(n,"cssStyleElementCommentsChildMargin",(function(){return Ic})),o.d(n,"cssStyleElementCommentsStarsColor",(function(){return Nc})),o.d(n,"cssStyleElementCommentsStarsBgColor",(function(){return Ac})),o.d(n,"cssStyleElementCommentsStarsSize",(function(){return Dc})),o.d(n,"cssStyleElementSearchAutocompleteColor",(function(){return Vc})),o.d(n,"cssStyleElementSearchMinWidth",(function(){return $c})),o.d(n,"cssStyleElementSearchMinHeight",(function(){return Gc})),o.d(n,"cssStyleElementSearchPropertyHoverTransition",(function(){return Uc})),o.d(n,"cssStyleElementSearchLineHeight",(function(){return Kc})),o.d(n,"cssStyleElementWOOProductMetaType",(function(){return qc})),o.d(n,"cssStyleElementWOOProductMetaCategoryFontFamily",(function(){return Yc})),o.d(n,"cssStyleElementWOOProductMetaCategoryFontSize",(function(){return Xc})),o.d(n,"cssStyleElementWOOProductMetaCategoryLineHeight",(function(){return Zc})),o.d(n,"cssStyleElementWOOProductMetaCategoryFontWeight",(function(){return Jc})),o.d(n,"cssStyleElementWOOProductMetaCategoryLetterSpacing",(function(){return Qc})),o.d(n,"cssStyleElementWOOProductMetaValueFontFamily",(function(){return ed})),o.d(n,"cssStyleElementWOOProductMetaValueFontSize",(function(){return td})),o.d(n,"cssStyleElementWOOProductMetaValueLineHeight",(function(){return od})),o.d(n,"cssStyleElementWOOProductMetaValueFontWeight",(function(){return nd})),o.d(n,"cssStyleElementWOOProductMetaValueLetterSpacing",(function(){return ad})),o.d(n,"cssStyleElementWOOProductMetaTopSpacing",(function(){return rd})),o.d(n,"cssStyleElementWOOProductMetaRightSpacing",(function(){return id})),o.d(n,"cssStyleElementWOOProductMetaRightSpacingInline",(function(){return ld})),o.d(n,"cssStyleElementWOOProductMetaCategoryColor",(function(){return sd})),o.d(n,"cssStyleElementWOOProductMetaValueColor",(function(){return cd})),o.d(n,"cssStyleElementWOOProductMetaDividers",(function(){return dd})),o.d(n,"cssStyleElementWOORatingSize",(function(){return ud})),o.d(n,"cssStyleElementWOORatingTextColor",(function(){return pd})),o.d(n,"cssStyleElementWOORatingSpacing",(function(){return bd})),o.d(n,"cssStyleElementWOORatingBgStarColor",(function(){return md})),o.d(n,"cssStyleElementWOOCartIconColor",(function(){return hd})),o.d(n,"cssStyleElementWOOCartSubtotalDisabled",(function(){return gd})),o.d(n,"cssStyleElementWOOCartPurchasesDisabled",(function(){return vd})),o.d(n,"cssStyleElementWOOCartTransitionProperty",(function(){return fd})),o.d(n,"cssStyleElementWOOCartPurchasesColor",(function(){return yd})),o.d(n,"cssStyleElementWOOCartPurchasesFontFamily",(function(){return Od})),o.d(n,"cssStyleElementWOOCartPurchasesFontSize",(function(){return Sd})),o.d(n,"cssStyleElementWOOCartPurchasesLineHeight",(function(){return Cd})),o.d(n,"cssStyleElementWOOCartPurchasesFontWeight",(function(){return xd})),o.d(n,"cssStyleElementWOOCartPurchasesLetterSpacing",(function(){return jd})),o.d(n,"cssStyleElementWOOCartTitleFontFamily",(function(){return Bd})),o.d(n,"cssStyleElementWOOCartTitleFontSize",(function(){return Pd})),o.d(n,"cssStyleElementWOOCartTitleLineHeight",(function(){return wd})),o.d(n,"cssStyleElementWOOCartTitleFontWeight",(function(){return Td})),o.d(n,"cssStyleElementWOOCartTitleLetterSpacing",(function(){return zd})),o.d(n,"cssStyleElementWOOCartCostFontFamily",(function(){return Ed})),o.d(n,"cssStyleElementWOOCartCostFontSize",(function(){return kd})),o.d(n,"cssStyleElementWOOCartCostLineHeight",(function(){return Hd})),o.d(n,"cssStyleElementWOOCartCostFontWeight",(function(){return _d})),o.d(n,"cssStyleElementWOOCartCostLetterSpacing",(function(){return Fd})),o.d(n,"cssStyleElementWOOCartSubtotalFontFamily",(function(){return Rd})),o.d(n,"cssStyleElementWOOCartSubtotalFontSize",(function(){return Md})),o.d(n,"cssStyleElementWOOCartSubtotalLineHeight",(function(){return Ld})),o.d(n,"cssStyleElementWOOCartSubtotalFontWeight",(function(){return Wd})),o.d(n,"cssStyleElementWOOCartSubtotalLetterSpacing",(function(){return Id})),o.d(n,"cssStyleElementWOOCartButtonFontFamily",(function(){return Nd})),o.d(n,"cssStyleElementWOOCartButtonFontSize",(function(){return Ad})),o.d(n,"cssStyleElementWOOCartButtonLineHeight",(function(){return Dd})),o.d(n,"cssStyleElementWOOCartButtonFontWeight",(function(){return Vd})),o.d(n,"cssStyleElementWOOCartButtonLetterSpacing",(function(){return $d})),o.d(n,"cssStyleElementWOOCartTitleColor",(function(){return Gd})),o.d(n,"cssStyleElementWOOCartCostColor",(function(){return Ud})),o.d(n,"cssStyleElementWOOCartSubtotalColor",(function(){return Kd})),o.d(n,"cssStyleElementWOOCartButtonColor",(function(){return qd})),o.d(n,"cssStyleElementWOOCartButtonBgColor",(function(){return Yd})),o.d(n,"cssStyleElementWOOCartButtonDirection",(function(){return Xd})),o.d(n,"cssStyleElementWOOCartButtonSpacing",(function(){return Zd})),o.d(n,"cssStyleElementWOOCartButtonBorderRadius",(function(){return Jd})),o.d(n,"cssStyleElementWOOCartSidebarHorizontalAlign",(function(){return Qd})),o.d(n,"cssStyleElementWOOCartSidebarVerticalAlign",(function(){return eu})),o.d(n,"cssStyleElementWOOCartSidebarWidth",(function(){return tu})),o.d(n,"cssStyleElementWOOCartSidebarHeight",(function(){return ou})),o.d(n,"cssStyleElementWOOCartBubbleColor",(function(){return nu})),o.d(n,"cssStyleElementWOOCartBubbleBg",(function(){return au})),o.d(n,"cssStyleWrapperCustomHeight",(function(){return iu})),o.d(n,"cssStyleWrapperContainerFlex",(function(){return cu})),o.d(n,"cssStyleWrapperFixedFlex",(function(){return lu})),o.d(n,"cssStyleWrapperBorderFlex",(function(){return su})),o.d(n,"cssStyleWrapperContainerSize",(function(){return du})),o.d(n,"cssStyleElementMenuAlign",(function(){return uu})),o.d(n,"cssStyleElementMenuMode",(function(){return gu})),o.d(n,"cssStyleElementMenuSize",(function(){return vu})),o.d(n,"cssStyleElementMenuDropdown",(function(){return bp})),o.d(n,"cssStyleElementMenuDropdownOpened",(function(){return hp})),o.d(n,"cssStyleElementMenuInnerDropdown",(function(){return mp})),o.d(n,"cssStyleElementMenuDropdownInnerOpened",(function(){return gp})),o.d(n,"cssStyleElementMenuDropdownArrow",(function(){return vp})),o.d(n,"cssStyleElementMenuShow",(function(){return hu})),o.d(n,"cssStyleElementMenuShowIcon",(function(){return mu})),o.d(n,"cssStyleElementMenuIconSpacing",(function(){return pu})),o.d(n,"cssStyleElementMenuIconSize",(function(){return bu})),o.d(n,"cssStyleElementMenuBgColor",(function(){return fu})),o.d(n,"cssStyleElementMenuLinkBgColor",(function(){return yu})),o.d(n,"cssStyleElementMenuPadding",(function(){return Su})),o.d(n,"cssStyleElementMenuActiveColor",(function(){return Cu})),o.d(n,"cssStyleElementMenuActiveBgColor",(function(){return ju})),o.d(n,"cssStyleElementMenuActiveLinkBgColor",(function(){return xu})),o.d(n,"cssStyleElementMenuActiveBorder",(function(){return Bu})),o.d(n,"cssStyleElementMenuCurrentColor",(function(){return Pu})),o.d(n,"cssStyleElementMenuCurrentLinkBgColor",(function(){return Tu})),o.d(n,"cssStyleElementMenuCurrentBgColor",(function(){return wu})),o.d(n,"cssStyleElementMenuCurrentBorder",(function(){return zu})),o.d(n,"cssStyleElementMenuBorder",(function(){return Ou})),o.d(n,"cssStyleElementMMenuFontFamily",(function(){return ku})),o.d(n,"cssStyleElementMMenuFontSize",(function(){return Hu})),o.d(n,"cssStyleElementMMenuLineHeight",(function(){return _u})),o.d(n,"cssStyleElementMMenuFontWeight",(function(){return Fu})),o.d(n,"cssStyleElementMMenuLetterSpacing",(function(){return Ru})),o.d(n,"cssStyleElementMMenuColor",(function(){return Mu})),o.d(n,"cssStyleElementMMenuHoverColor",(function(){return Lu})),o.d(n,"cssStyleElementMMenuActiveColor",(function(){return Wu})),o.d(n,"cssStyleElementMMenuBorderColor",(function(){return Iu})),o.d(n,"cssStyleElementMMenuBackgroundColor",(function(){return Nu})),o.d(n,"cssStyleElementMMenuItemHorizontalAlign",(function(){return Au})),o.d(n,"cssStyleElementMMenuIconColor",(function(){return Du})),o.d(n,"cssStyleElementMMenuSize",(function(){return Eu})),o.d(n,"cssStyleElementMMenuIconSpacing",(function(){return Vu})),o.d(n,"cssStyleElementMMenuIconSize",(function(){return $u})),o.d(n,"cssStyleElementMMenuBtnNext",(function(){return Gu})),o.d(n,"cssStyleElementMMenuListViewMargin",(function(){return Uu})),o.d(n,"cssStyleElementMMenuItemPadding",(function(){return Ku})),o.d(n,"cssStyleElementMMenuItemPaddingTopZero",(function(){return qu})),o.d(n,"cssStyleElementMMenuItemPaddingBottomZero",(function(){return Yu})),o.d(n,"cssStyleElementMMenuPadding",(function(){return Xu})),o.d(n,"cssStyleElementMenuSubMenuFontFamily",(function(){return Zu})),o.d(n,"cssStyleElementMenuSubMenuFontSize",(function(){return Ju})),o.d(n,"cssStyleElementMenuSubMenuLineHeight",(function(){return Qu})),o.d(n,"cssStyleElementMenuSubMenuFontWeight",(function(){return ep})),o.d(n,"cssStyleElementMenuSubMenuLetterSpacing",(function(){return tp})),o.d(n,"cssStyleElementMenuSubMenuColor",(function(){return op})),o.d(n,"cssStyleElementMenuSubMenuHoverColor",(function(){return np})),o.d(n,"cssStyleElementMenuSubMenuIconSpacing",(function(){return ap})),o.d(n,"cssStyleElementMenuSubMenuIconSize",(function(){return rp})),o.d(n,"cssStyleElementMenuSubMenuBgColor",(function(){return ip})),o.d(n,"cssStyleElementMenuSubMenuHoverBgColor",(function(){return lp})),o.d(n,"cssStyleElementMenuSubMenuBorderColor",(function(){return sp})),o.d(n,"cssStyleElementMenuSubMenuBorderBottom",(function(){return cp})),o.d(n,"cssStyleElementMenuSubMenuCurrentColor",(function(){return dp})),o.d(n,"cssStyleElementMenuSubMenuCurrentBgColor",(function(){return up})),o.d(n,"cssStyleElementMenuSubMenuCurrentBoxShadow",(function(){return pp})),o.d(n,"cssStyleMenuDropdownBeforePositionLeft",(function(){return Sp})),o.d(n,"cssStyleMenuDropdownBeforePositionRight",(function(){return Cp})),o.d(n,"cssStyleMenuDropdownPosition",(function(){return fp})),o.d(n,"cssStyleMenuDropdownPositionLeft",(function(){return yp})),o.d(n,"cssStyleMenuDropdownPositionRight",(function(){return Op})),o.d(n,"cssStyleMenuFirstDropdownPosition",(function(){return xp})),o.d(n,"cssStyleMenuFirstDropdownPositionLeft",(function(){return jp})),o.d(n,"cssStyleMenuFirstDropdownPositionRight",(function(){return Bp})),o.d(n,"cssStyleMenuFirstDropdownBeforePositionLeft",(function(){return Pp})),o.d(n,"cssStyleMenuFirstDropdownBeforePositionRight",(function(){return wp})),o.d(n,"cssStyleElementMegaMenuWidth",(function(){return Tp})),o.d(n,"cssStyleElementMegaMenuOffsetTop",(function(){return zp})),o.d(n,"cssStyleElementMegaMenuOpened",(function(){return kp})),o.d(n,"cssStyleElementMegaMenuHeight",(function(){return Ep})),o.d(n,"cssStyleElementTableWidth",(function(){return Hp})),o.d(n,"cssStyleElementTableIconSize",(function(){return _p})),o.d(n,"cssStyleElementTableSpacing",(function(){return Fp})),o.d(n,"cssStyleElementTableBtnIconPosition",(function(){return Rp})),o.d(n,"cssStyleElementTableCustomFlexHorizontalAlign",(function(){return Mp})),o.d(n,"cssStyleElementTableCustomTextHorizontalAlign",(function(){return Lp})),o.d(n,"cssStyleElementTableAsideWidth",(function(){return Wp})),o.d(n,"cssStyleElementTableEvenBgColor",(function(){return Ip})),o.d(n,"cssStyleElementTableEvenColor",(function(){return Np})),o.d(n,"cssStyleTablePadding",(function(){return Ap})),o.d(n,"cssStyleElementMenuSimpleItemPadding",(function(){return Dp})),o.d(n,"cssStyleElementMenuSimpleColorBars",(function(){return Vp})),o.d(n,"cssStyleElementMenuSimpleWidth",(function(){return $p})),o.d(n,"cssStyleElementMenuSimpleActiveColor",(function(){return Gp})),o.d(n,"cssStyleElementImageMaxWidthPreview",(function(){return Kp})),o.d(n,"cssStyleElementImageHeightPreview",(function(){return qp})),o.d(n,"cssStyleElementImageMaxWidthEditor",(function(){return Xp})),o.d(n,"cssStyleElementImageHeightEditor",(function(){return Zp})),o.d(n,"cssStyleElementImageBorderRadius",(function(){return Yp})),o.d(n,"cssStyleElementImageWidthWrapper",(function(){return Jp})),o.d(n,"cssStyleElementImageHeightWrapper",(function(){return Qp})),o.d(n,"cssStyleElementImageMarginLeft",(function(){return eb})),o.d(n,"cssStyleElementImageMarginTop",(function(){return tb})),o.d(n,"cssStyleElementImagePictureSize",(function(){return ob})),o.d(n,"cssStyleElementImageTransitionProperty",(function(){return nb})),o.d(n,"cssStyleElementImageFilter",(function(){return ab})),o.d(n,"cssStyleAnimation",(function(){return rb})),o.d(n,"cssStyleAnimationDuration",(function(){return ib})),o.d(n,"cssStyleAnimationDelay",(function(){return lb})),o.d(n,"cssStyleRotate",(function(){return db})),o.d(n,"cssStyleElementWOOAddToCartSize",(function(){return ub})),o.d(n,"cssStyleElementWOOAddToCartSpacing",(function(){return bb})),o.d(n,"cssStyleElementWOOAddToCartInputSize",(function(){return mb})),o.d(n,"cssStyleElementWOOAddToCartInputPosition",(function(){return hb})),o.d(n,"cssStyleElementWOOAddToCartInputFontFamily",(function(){return vb})),o.d(n,"cssStyleElementWOOAddToCartInputFontSize",(function(){return fb})),o.d(n,"cssStyleElementWOOAddToCartInputLineHeight",(function(){return yb})),o.d(n,"cssStyleElementWOOAddToCartInputFontWeight",(function(){return Ob})),o.d(n,"cssStyleElementWOOAddToCartInputLetterSpacing",(function(){return Sb})),o.d(n,"cssStyleElementWOOAddToCartInputAlign",(function(){return gb})),o.d(n,"cssStyleElementWOOAddToCartInputColor",(function(){return Cb})),o.d(n,"cssStyleElementWOOAddToCartInputBg",(function(){return $b})),o.d(n,"cssStyleElementWOOAddToCartInputBorder",(function(){return Ub})),o.d(n,"cssStyleElementWOOAddToCartInputRadius",(function(){return pb})),o.d(n,"cssStyleElementWOOAddToCartInputBoxShadow",(function(){return Kb})),o.d(n,"cssStyleElementWOOAddToCartButtonColor",(function(){return xb})),o.d(n,"cssStyleElementWOOAddToCartLabelFontFamily",(function(){return jb})),o.d(n,"cssStyleElementWOOAddToCartLabelFontSize",(function(){return Bb})),o.d(n,"cssStyleElementWOOAddToCartLabelLineHeight",(function(){return Pb})),o.d(n,"cssStyleElementWOOAddToCartLabelFontWeight",(function(){return wb})),o.d(n,"cssStyleElementWOOAddToCartLabelLetterSpacing",(function(){return Tb})),o.d(n,"cssStyleElementWOOAddToCartValueFontFamily",(function(){return zb})),o.d(n,"cssStyleElementWOOAddToCartValueFontSize",(function(){return Eb})),o.d(n,"cssStyleElementWOOAddToCartValueLineHeight",(function(){return kb})),o.d(n,"cssStyleElementWOOAddToCartValueFontWeight",(function(){return Hb})),o.d(n,"cssStyleElementWOOAddToCartValueLetterSpacing",(function(){return _b})),o.d(n,"cssStyleElementWOOAddToCartLabelColor",(function(){return Fb})),o.d(n,"cssStyleElementWOOAddToCartValueColor",(function(){return Rb})),o.d(n,"cssStyleElementWOOAddToCartClearFontFamily",(function(){return Mb})),o.d(n,"cssStyleElementWOOAddToCartClearFontSize",(function(){return Lb})),o.d(n,"cssStyleElementWOOAddToCartClearLineHeight",(function(){return Wb})),o.d(n,"cssStyleElementWOOAddToCartClearFontWeight",(function(){return Ib})),o.d(n,"cssStyleElementWOOAddToCartClearLetterSpacing",(function(){return Nb})),o.d(n,"cssStyleElementWOOAddToCartClearColor",(function(){return Ab})),o.d(n,"cssStyleElementWOOAddToCartTableMargin",(function(){return Db})),o.d(n,"cssStyleElementWOOAddToCartTableBorder",(function(){return Vb})),o.d(n,"cssStyleElementWOOAddToCartTableBg",(function(){return Gb})),o.d(n,"cssStyleElementWOOAddToCartTableBoxShadow",(function(){return qb})),o.d(n,"cssStyleElementWOOAddToCartBorder",(function(){return Yb})),o.d(n,"cssStyleElementWOOAddToCartBorderRadius",(function(){return Xb})),o.d(n,"cssStyleElementWOOGalleryBorderRadiusThumbnail",(function(){return Jb})),o.d(n,"cssStyleElementWOOGalleryBorderThumbnail",(function(){return Zb})),o.d(n,"cssStyleElementWOOGalleryBoxShadowThumbnail",(function(){return Qb})),o.d(n,"cssStyleElementWOOGallerySpacing",(function(){return em})),o.d(n,"cssStyleElementWOOGalleryParentSize",(function(){return tm})),o.d(n,"cssStyleElementWOOGalleryBetweenThumbnail",(function(){return om})),o.d(n,"cssStyleElementWOOGalleryThumbnailSize",(function(){return nm})),o.d(n,"cssStyleElementWOOGalleryChildStyle",(function(){return am})),o.d(n,"cssStyleElementWOOGallerySpacingStyleLeftRigth",(function(){return rm})),o.d(n,"cssStyleElementWOOGalleryZoomReposition",(function(){return im}));var a=o(57);function r(e){return function(e,t){let o=1540483477,n=t^e.length,a=e.length,r=0;for(;a>=4;){let t=i(e,r);t=s(t,o),t^=t>>>24,t=s(t,o),n=s(n,o),n^=t,r+=4,a-=4}switch(a){case 3:n^=l(e,r),n^=e.charCodeAt(r+2)<<16,n=s(n,o);break;case 2:n^=l(e,r),n=s(n,o);break;case 1:n^=e.charCodeAt(r),n=s(n,o)}return n^=n>>>13,n=s(n,o),n^=n>>>15,n>>>0}(e).toString(36)}function i(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function l(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function s(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}var c=o(14);const d=c.g?{desktop:1500}:{desktop:1500,tablet:991,mobile:767},u=c.g?{normal:"normal"}:{normal:"normal",hover:"hover"};let p={};function b({v:e,vs:t,vd:o,styles:a,props:r}){if(o){const{defaultCSS:i,rulesCSS:l,customCSS:s}=function({v:e,vs:t,vd:o,styles:a,props:r}){let i="",l="",s="",c={},b={},g={},v="";Object.entries(d).forEach((function([d,p]){Object.entries(u).forEach((function([u,p]){"desktop"!==d&&"normal"!==u||Object.entries(a).forEach((function([a,p]){Object.entries(p).forEach((function([p,m]){m.forEach((function(p){const m=p.split("|||");v=2===m.length?m[1]:"";const f=m[0];if(!n[f])throw`The style function ${f} is missing`;i=n[f]({v:e,device:d,state:u,mode:v,props:r}),c=h({legacy:c,out:i,styleKey:a,state:u,currentStyle:p}),l=n[f]({v:t,device:d,state:u,mode:v,props:r}),b=h({legacy:b,out:l,styleKey:a,state:u,currentStyle:p}),s=n[f]({v:o,device:d,state:u,mode:v,props:r}),g=h({legacy:g,out:s,styleKey:a,state:u,currentStyle:p})}))}))}))}))}));const f=m({v:void 0,styles:a,legacy:g});p=g;const y=m({v:t,styles:a,legacy:b});p=b;const O=m({v:e,styles:a,legacy:c});return{defaultCSS:f,rulesCSS:y,customCSS:O}}({v:e,vs:t,vd:o,styles:a,props:r});return[i,l,s]}throw new Error("this should not happen. we must have accidentally omitted some element")}function m({v:e,styles:t,legacy:o}){let n="",a="",r="",i="",l="",s=0,c="",b="";return Object.entries(d).forEach((function([d,m],h,g){Object.entries(u).forEach((function([u,h]){o[u]&&(r="",i="",Object.entries(o[u]).forEach((function([l,c]){let d;n="",a="",Object.entries(c).forEach((function([r,i]){let c=i[s];e&&JSON.stringify(p[u][l][r])===JSON.stringify(o[u][l][r])&&(c=""),n+=t[l].standart&&-1!==t[l].standart.indexOf(r)&&""!==c&&void 0!==c?c:"",a+=t[l].interval&&-1!==t[l].interval.indexOf(r)&&""!==c&&void 0!==c?c:""})),d="normal"===u?l.replace(":hover","")+"{":l+"{",""!==n&&(r+=d+n+"}"),""!==a&&(i+=d+a+"}")}))),""!==r&&(c="desktop"===d&&"hover"===u?`@media(min-width:${g[s+1][1]}px){`:"desktop"===d?"":s===g.length-1?`@media(max-width:${m}px){`:`@media(max-width:${g[s][1]}px) and (min-width:${g[s+1][1]+1}px){`,l+=c+r+(""!==c?"}":"")),""!==i&&(b=g.length>1?0===s?`@media(min-width:${g[s+1][1]}px){`:s===g.length-1?`@media(max-width:${m}px){`:`@media(max-width:${g[s][1]}px) and (min-width:${g[s+1][1]+1}px){`:"",l+=b+i+(""!==b?"}":""))})),s++})),l}function h({legacy:e,out:t,styleKey:o,state:n,currentStyle:a}){return"hover"===n&&e.normal&&e.normal[o]&&e.normal[o][a]&&(t=e.normal[o][a][0]===t?"":t),e[n]?e[n][o]?e[n][o][a]?e[n][o][a].push(t):e[n][o][a]=[t]:e[n][o]={[a]:[t]}:e[n]={[o]:{[a]:[t]}},e}function g(e,t,[o,n,i]){let l,s,c;if(o)if(l=O.get(e),l){const{node:e,className:t,cssText:n}=l,a=f(o,t);a!==n&&(g.isServer||(e.childNodes[0].nodeValue=a),l.cssText=a)}else{const t="brz-css-"+Object(a.a)(5),n=f(o,t);let r;g.isServer||(r=document.createElement("style"),r.appendChild(document.createTextNode("")),r.childNodes[0].nodeValue=n,y("default",r)),l={node:r,className:t,cssText:n},S.default.push(l),O.set(e,l)}if(n){const e=r(n);if(s=O.get(e),!s){const t="brz-css-"+Object(a.a)(5),o=f(n,t);let r;g.isServer||(r=document.createElement("style"),r.appendChild(document.createTextNode("")),r.childNodes[0].nodeValue=o,y("rules",r)),s={node:r,className:t,cssText:o},S.rules.push(s),O.set(e,s)}}if(i)if(c=O.get(t),c){const{node:e,className:t,cssText:o}=c,n=f(i,t);n!==o&&(g.isServer||(e.childNodes[0].nodeValue=n),c.cssText=n)}else{const e="brz-css-"+Object(a.a)(5),o=f(i,e);let n;g.isServer||(n=document.createElement("style"),n.appendChild(document.createTextNode("")),n.childNodes[0].nodeValue=o,y("custom",n)),c={node:n,className:e,cssText:o},S.custom.push(c),O.set(t,c)}return[...l?[l.className]:[],...s?[s.className]:[],...c?[c.className]:[]].join(" ")}function v(){let e="";for(const t of["default","rules","custom"])for(const{cssText:o}of S[t])e+=o,e+="\n";return e}function f(e,t){return e.replace(/&&/gm,"."+t)}function y(e,t){const o=S.default,n=S.rules,a=S.custom;let r;switch(e){case"default":r=o.length>0?o[o.length-1].node:null;break;case"rules":r=n.length>0?n[n.length-1].node:o.length>0?o[o.length-1].node:null;break;case"custom":r=a.length>0?a[a.length-1].node:n.length>0?n[n.length-1].node:o.length>0?o[o.length-1].node:null;break;default:throw new Error("invalid tujur css node type: "+e)}r?r.insertAdjacentElement("afterend",t):document.head.appendChild(t)}const O=new Map,S={default:[],rules:[],custom:[]};var C=o(2),x=o(4),j=o(39),B=o(41),P=o(3);function w(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function T(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?w(Object(o),!0).forEach((function(t){Object(C.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):w(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function z(e){const t=Object(x.Sd)(e);return void 0===t?"":`width:${t}%;`}function E(e){const t=Object(x.Sd)(e);return void 0===t?"":`width:${t}px;`}function k(e){const t=Object(x.Sd)(e);return c.g&&void 0!==t?`width:${t}%;`:""}function H(e){const t=Object(x.Sd)(e);return void 0===t?"":`max-width:${t}%;`}function _(e){var t;return null!==(t=Object(j.b)(e=>`height:${e}px;`,Object(x.Od)(e)))&&void 0!==t?t:""}function F(e){var t;return null!==(t=Object(j.b)(e=>`min-height:${e}px;`,Object(x.Od)(e)))&&void 0!==t?t:""}function R(e){const t=Object(x.Pd)(e),o=B.d(Object(P.defaultValueValue)(T({key:"sizeSuffix"},e)))||"%";return void 0===t?"":`max-width:${t}${o};`}function M(e){const t=Object(x.Pd)(e);return void 0===t?"":`width:${t}%;`}function L(e){const t=Object(x.Pd)(e),o=B.d(Object(P.defaultValueValue)(T({key:"sizeSuffix"},e)));return void 0!==t&&o?`width:${t}${o};`:""}function W(e){const t=Object(x.Sd)(e),o=B.d(Object(P.defaultValueValue)(T({key:"widthSuffix"},e)));return void 0===t?"":`width:${t}${o||"%"};`}function I(e){const t=Object(x.Nd)(e);return"desktop"===e.device?`max-width: ${t}%;`:""}function N(e){var t;return null!==(t=Object(j.b)(e=>`margin-right: ${e}px;`,Object(x.Qd)(e)))&&void 0!==t?t:""}function A(e){var t;return null!==(t=Object(j.b)(e=>`margin-right: ${e}px;`,Object(x.Rd)(e)))&&void 0!==t?t:""}function D(e){var t;const o=B.d(Object(P.defaultValueValue)(T({key:"heightSuffix"},e)));return"px"===o?null!==(t=Object(j.b)(e=>`height:${e}${o};`,Object(x.Od)(e)))&&void 0!==t?t:"":"%"===o?"height: unset;":""}function V(e){var t;const o=B.d(Object(P.defaultValueValue)(T({key:"heightSuffix"},e)));return"%"===o?null!==(t=Object(j.b)(e=>`content: ""; display:block; width: 0; padding-top:${e}${o};`,Object(x.Od)(e)))&&void 0!==t?t:"":"px"===o?"height: unset;":""}function $({v:e,device:t,state:o}){const n=Object(x.u)({v:e,device:t,state:o,current:"top"}),a=Object(x.r)({v:e,device:t,state:o}),r=Object(x.n)({v:e,device:t,state:o});return void 0===n?"":`border-top:${n}px ${a} ${r};`}function G({v:e,device:t,prefix:o=""}){return`font-family:${Object(x.Td)({v:e,device:t,prefix:o})};`}function U({v:e,device:t,prefix:o=""}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:o})}px;`}function K({v:e,device:t,prefix:o=""}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:o})};`}function q({v:e,device:t,prefix:o=""}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:o})};`}function Y({v:e,device:t,prefix:o=""}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:o})}px;`}function X({v:e,device:t}){return G({v:e,device:t,prefix:"typography"})}function Z({v:e,device:t}){return U({v:e,device:t,prefix:"typography"})}function J({v:e,device:t}){return K({v:e,device:t,prefix:"typography"})}function Q({v:e,device:t}){return q({v:e,device:t,prefix:"typography"})}function ee({v:e,device:t}){return Y({v:e,device:t,prefix:"typography"})}function te({v:e,device:t}){return`font-size:${Object(x.Yd)({v:e,device:t})};`}function oe({v:e,device:t}){return`margin-left:${Object(x.bb)({v:e,device:t})};`}function ne({v:e,device:t}){return`margin-right:${Object(x.bb)({v:e,device:t})};`}function ae({v:e,device:t}){return G({v:e,device:t,prefix:"number"})}function re({v:e,device:t}){return U({v:e,device:t,prefix:"number"})}function ie({v:e,device:t}){return K({v:e,device:t,prefix:"number"})}function le({v:e,device:t}){return q({v:e,device:t,prefix:"number"})}function se({v:e,device:t}){return Y({v:e,device:t,prefix:"number"})}function ce({v:e,device:t}){return G({v:e,device:t,prefix:"title"})}function de({v:e,device:t}){return U({v:e,device:t,prefix:"title"})}function ue({v:e,device:t}){return K({v:e,device:t,prefix:"title"})}function pe({v:e,device:t}){return q({v:e,device:t,prefix:"title"})}function be({v:e,device:t}){return Y({v:e,device:t,prefix:"title"})}function me({v:e,device:t}){return G({v:e,device:t,prefix:"message"})}function he({v:e,device:t}){return U({v:e,device:t,prefix:"message"})}function ge({v:e,device:t}){return K({v:e,device:t,prefix:"message"})}function ve({v:e,device:t}){return q({v:e,device:t,prefix:"message"})}function fe({v:e,device:t}){return Y({v:e,device:t,prefix:"message"})}function ye({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"numberColor"})}function Oe({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"titleColor"})}function Se({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"messageColor"})}function Ce(){return"transition-property: color, background-color, border, box-shadow;"}function xe({v:e}){return`stroke-dasharray: calc(${e.end} + 0.5) 100;`}function je({v:e}){return`stroke-width: ${e.strokeWidth} !important;`}function Be({v:e,device:t,state:o,prefix:n="fillColor"}){const a=Object(x.cb)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`fill:${a};`}function Pe({v:e,device:t,state:o,prefix:n="strokeColor"}){const a=Object(x.db)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`stroke:${a};`}function we(){return"transition-property: color, fill, stroke"}function Te({v:e,device:t,state:o}){return`flex-direction:${Object(x.fb)({v:e,device:t,state:o})};`}function ze({v:e,device:t,state:o}){return`margin-right:${Object(x.hb)({v:e,device:t,state:o})};`}function Ee({v:e,device:t,state:o}){return`margin-left:${Object(x.gb)({v:e,device:t,state:o})};`}function ke({v:e,device:t,state:o,prefix:n="",borderColor:a="color"}){let r="",i=0,l=0,s=0,c=0,d=Object(x.t)({v:e,device:t,state:o,prefix:n}),u="",p=0,b=0,m=0,h=0,g=!1,v="",f="";const y=Object(x.r)({v:e,device:t,state:o,prefix:n});if(a="transparent"===a?"transparent":Object(x.n)({v:e,device:t,state:o,prefix:n}),"grouped"===d){const a=Object(x.s)({v:e,device:t,state:o,prefix:n});i=a,l=a,s=a,c=a}else i=Object(x.u)({v:e,device:t,state:o,prefix:n,current:"top"}),l=Object(x.u)({v:e,device:t,state:o,prefix:n,current:"right"}),s=Object(x.u)({v:e,device:t,state:o,prefix:n,current:"bottom"}),c=Object(x.u)({v:e,device:t,state:o,prefix:n,current:"left"});if("normal"===o){if(v=Object(x.r)({v:e,device:t,prefix:n,state:"hover"}),f="transparent"===a?"transparent":Object(x.n)({v:e,device:t,prefix:n,state:"hover"}),u=Object(x.t)({v:e,device:t,prefix:n,state:"hover"}),"grouped"===u){const o=Object(x.s)({v:e,device:t,state:"hover"});p=o,b=o,m=o,h=o}else p=Object(x.u)({v:e,device:t,prefix:n,state:"hover",current:"top"}),b=Object(x.u)({v:e,device:t,prefix:n,state:"hover",current:"right"}),m=Object(x.u)({v:e,device:t,prefix:n,state:"hover",current:"bottom"}),h=Object(x.u)({v:e,device:t,prefix:n,state:"hover",current:"left"});g=(p>0||b>0||m>0||h>0)&&""!==v}return r=void 0===i||void 0===l||void 0===s||void 0===c||void 0===y||void 0===a?"":i===l&&i===s&&i===c&&i>0&&""!==y?`border:${i}px ${y} ${a};`:(i>0||l>0||s>0||c>0)&&""!==y?`border-width:${i}px ${l}px ${s}px ${c}px;border-style:${y};border-color:${a};`:(i===l&&i===s&&i===c&&0===i||""===y)&&g?`border:0px ${v} ${f};`:`border:0px solid ${a};`,r}function He({v:e,device:t,state:o,prefix:n="",borderColor:a="transparent"}){return ke({v:e,device:t,state:o,prefix:n,borderColor:a})}function _e({v:e,device:t,state:o,prefix:n=""}){let a=0,r=0,i=0,l=0;if("grouped"===Object(x.p)({v:e,device:t,state:o,prefix:n})){const s=Object(x.o)({v:e,device:t,state:o,prefix:n});a=s,r=s,i=s,l=s}else a=Object(x.q)({v:e,device:t,state:o,prefix:n,current:"topLeft"}),r=Object(x.q)({v:e,device:t,state:o,prefix:n,current:"topRight"}),i=Object(x.q)({v:e,device:t,state:o,prefix:n,current:"bottomLeft"}),l=Object(x.q)({v:e,device:t,state:o,prefix:n,current:"bottomRight"});return void 0===a?"":a===r&&a===i&&a===l&&a>0?`border-radius: ${a}px;`:a>0||r>0||i>0||l>0?`border-radius:${a}px ${r}px ${l}px ${i}px;`:"border-radius:0;"}function Fe({v:e,device:t,state:o}){return`width:calc(100% + ${Object(x.lb)({v:e,device:t,state:o})}px);`}function Re({v:e,device:t,state:o}){return`margin:-${Object(x.lb)({v:e,device:t,state:o})/2}px;`}function Me({v:e,device:t,state:o}){const n=Object(x.kb)({v:e,device:t,state:o});return`width:${n>1?100/n:100}%;`}function Le({v:e,device:t,state:o}){return`padding:${Object(x.lb)({v:e,device:t,state:o})/2}px;`}function We({v:e,device:t,state:o}){const n=(a="filterSpacing",Object(P.defaultValueValue)({v:e,key:a,device:t,state:o}));var a;return`margin: 1px ${n}px 0 ${n}px;`}function Ie({v:e,device:t,state:o}){var n;return`margin-bottom:${n="afterFilterSpacing",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o})}px;`}function Ne({v:e,device:t,state:o}){const n=Object(x.jb)({v:e,device:t,state:o}),a=Object(x.c)({v:e,device:t,state:o,prefix:"filter"});switch(n){case"style-2":return"center"===a?"":"left"===a?"margin-right: auto;":"margin-left: auto;";default:{const e={left:"flex-start",center:"center",right:"flex-end"};return`justify-content:${void 0===a?a:e[a]};`}}}function Ae({v:e,device:t,state:o}){return Oo({v:e,device:t,state:o,prefix:"filter"})}function De({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"filterColor"})}function Ve({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"filterBg"})}function $e({v:e,device:t,state:o}){return gt({v:e,device:t,state:o,prefix:"filter"})}function Ge({v:e,device:t,state:o}){return ke({v:e,device:t,state:o,prefix:"filter"})}function Ue({v:e,device:t,state:o}){return _e({v:e,device:t,state:o,prefix:"filter"})}function Ke({v:e,device:t}){return G({v:e,device:t,prefix:"filter"})}function qe({v:e,device:t}){return U({v:e,device:t,prefix:"filter"})}function Ye({v:e,device:t}){return K({v:e,device:t,prefix:"filter"})}function Xe({v:e,device:t}){return q({v:e,device:t,prefix:"filter"})}function Ze({v:e,device:t}){return Y({v:e,device:t,prefix:"filter"})}function Je({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"activeFilterColor"})}function Qe({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"activeFilterBg"})}function et({v:e,device:t,state:o}){return ke({v:e,device:t,state:o,prefix:"activeFilter"})}function tt({v:e,device:t,state:o}){return gt({v:e,device:t,state:o,prefix:"activeFilter"})}function ot({v:e,device:t,state:o,prefix:n="bg"}){const a=Object(x.h)({v:e,device:t,state:o,prefix:n}),r=Object(x.j)({v:e,device:t,state:o});return void 0===a||"none"!==r?"background-color:transparent;":`background-color:${a};`}function nt({v:e,device:t,state:o,prefix:n="bg"}){const a=Object(x.i)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`background-color:${a};`}function at({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"bg2"})}function rt({v:e,device:t,state:o}){return`background-image:${Object(x.j)({v:e,device:t,state:o})};`}function it({v:e,device:t,state:o}){return`background-image:${Object(x.k)({v:e,device:t,state:o})};`}function lt({v:e,device:t}){const o=Object(x.k)({v:e,device:t,state:"hover"});return o?`content: "";background-image:${o};`:""}function st({v:e,device:t}){return"image"===Object(x.pd)({v:e,device:t})?"display: block;":"display: none;"}function ct({v:e,device:t,state:o}){const n=Object(x.k)({v:e,device:t,state:o}),a=Object(x.l)({v:e,device:t,state:o}),r=Object(x.m)({v:e,device:t,state:o});return"none"===n?"":`background-position:${a} ${r};`}function dt({v:e,device:t,props:o}){const{isSlider:n}=o.meta.section,a=Object(x.g)({v:e,isSlider:n});return"desktop"!==t||void 0===a?"":`background-attachment:${a};`}function ut({v:e,device:t}){return`display: ${"map"===Object(x.pd)({v:e,device:t})?"block":"none"};`}function pt({v:e,device:t}){return`display: ${"video"===Object(x.pd)({v:e,device:t})?"block":"none"};`}function bt({v:e,device:t,state:o,prefix:n}){const a=Object(x.B)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`color:${a};`}function mt({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,state:o,prefix:"labelColor"});return void 0===n?"":`color:${n};`}function ht({v:e,device:t,state:o,prefix:n=""}){const a=Object(x.z)({v:e,device:t,state:o,prefix:n}),r=Object(x.w)({v:e,device:t,state:o,prefix:n}),i=Object(x.v)({v:e,device:t,state:o,prefix:n}),l=Object(x.y)({v:e,device:t,state:o,prefix:n}),s="inset"===a?-1*Object(x.x)({v:e,device:t,state:o,prefix:n}):Object(x.x)({v:e,device:t,state:o,prefix:n}),c="inset"===a?-1*Object(x.A)({v:e,device:t,state:o,prefix:n}):Object(x.A)({v:e,device:t,state:o,prefix:n});if(""===a||"off"===a||0===s&&0===c&&0===i&&0===l)return"";return`${"inset"===a?"inset ":""}${s}px ${c}px ${i}px ${l}px ${r};`}function gt({v:e,device:t,state:o,prefix:n=""}){const a=ht({v:e,device:t,state:o,prefix:n});return""===a?"":`box-shadow:${a};`}function vt({v:e,device:t,state:o,prefix:n=""}){const a=Object(x.z)({v:e,device:t,state:o,prefix:n}),r=Object(x.A)({v:e,device:t,state:o,prefix:n}),i=Object(x.v)({v:e,device:t,state:o,prefix:n}),l=Object(x.w)({v:e,device:t,state:o,prefix:n}),s=r<0?-i:i;return""===a||"off"===a||0===r&&0===i?"":0===r?`box-shadow:inset 0 ${r+s}px ${i}px -${i}px ${l}, inset 0 -${r+s}px ${i}px -${i}px ${l};display: block;`:`box-shadow:inset 0 ${r+s}px ${i}px -${i}px ${l}, inset 0 0 0 0 ${l};display: block;`}function ft({v:e,device:t,state:o}){const n=Object(x.Jd)({v:e,device:t,state:o}),a=Object(x.Id)({v:e,device:t,state:o});return void 0===n?"":"none"===n?"background-image: none;":`background-image: url(${a});`}function yt({v:e,device:t,state:o}){const n=Object(x.Fd)({v:e,device:t,state:o}),a=Object(x.Gd)({v:e,device:t,state:o});return`background-size: 100% ${n}${a}; height: ${n}${a};`}function Ot({v:e,device:t,state:o}){return`transform: ${"on"===Object(x.Ed)({v:e,device:t,state:o})?"rotateX(0deg) rotateY(-180deg)":"rotateX(0deg) rotateY(0deg)"};`}function St({v:e,device:t,state:o}){return`z-index: ${Object(x.Hd)({v:e,device:t,state:o})};`}function Ct({v:e,device:t,state:o}){const n=Object(x.Dd)({v:e,device:t,state:o}),a=Object(x.Cd)({v:e,device:t,state:o});return void 0===n?"":"none"===n?"background-image: none;":`background-image: url(${a});`}function xt({v:e,device:t,state:o}){const n=Object(x.zd)({v:e,device:t,state:o}),a=Object(x.Ad)({v:e,device:t,state:o});return`background-size: 100% ${n}${a}; height: ${n}${a};`}function jt({v:e,device:t,state:o}){return`transform: ${"on"===Object(x.yd)({v:e,device:t,state:o})?"rotateX(-180deg) rotateY(0deg)":"rotateX(-180deg) rotateY(-180deg)"};`}function Bt({v:e,device:t,state:o}){return`z-index: ${Object(x.Bd)({v:e,device:t,state:o})};`}function Pt({v:e,device:t,state:o}){const n=Object(x.Zc)({v:e,device:t,state:o});return void 0===n?"":`transition-duration:0.${n}s;`}function wt(){return"transition-property: filter, box-shadow, background, border-radius, border-color;"}function Tt({v:e,device:t,state:o}){const n=Object(x.Zd)({v:e,device:t,state:o});return void 0===n?"":`font-family:${n};`}function zt({v:e,device:t,state:o}){const n=Object(x.ae)({v:e,device:t,state:o});return void 0===n?"":`font-size:${n}px;`}function Et({v:e,device:t,state:o}){const n=Object(x.de)({v:e,device:t,state:o});return void 0===n?"":`line-height:${n};`}function kt({v:e,device:t,state:o}){const n=Object(x.be)({v:e,device:t,state:o});return void 0===n?"":`font-weight:${n};`}function Ht({v:e,device:t,state:o}){const n=Object(x.ce)({v:e,device:t,state:o});return void 0===n?"":`letter-spacing:${n}px;`}function _t({v:e,device:t,state:o}){const n=Object(x.td)({v:e,device:t,state:o,current:"paddingTop"}),a=Object(x.td)({v:e,device:t,state:o,current:"paddingRight"});return void 0===n&&void 0===a?"":`padding:${n}px ${a}px;`}function Ft({v:e,device:t,state:o}){const n=Object(x.Ib)({v:e,device:t,state:o});return void 0===n?"":`max-width:${n}%;`}function Rt(){return"transition-property: color, box-shadow, background, border;"}function Mt({v:e,device:t,state:o}){const n=Object(x.R)({v:e,device:t,state:o});return void 0===n?"":`border-radius:${n}px;`}function Lt({v:e,device:t,state:o}){const n=Object(x.V)({v:e,device:t,state:o});return void 0===n?"":`flex-flow:${n};`}function Wt({v:e,device:t,state:o}){const n=Object(x.S)({v:e,device:t,state:o});return void 0===n?"":`font-size:${n}px;`}function It({v:e,device:t,state:o}){const n=Object(x.U)({v:e,device:t,state:o}),a=Object(x.T)({v:e,device:t,state:o});return void 0===n||void 0===a?"":"left"===n?`margin-right:${a}px;margin-left:0;`:`margin-left:${a}px;margin-right:0;`}function Nt({v:e,device:t,state:o}){const n=Object(x.ib)({v:e,device:t,state:o});return void 0===n?"":`stroke-width:${n};`}function At(){return"transition-property: color, box-shadow, background, border-color;"}function Dt(){return"align-items: center; justify-content: center;"}function Vt(){return"transition-property:box-shadow;"}function $t(){return"transition-property:color,border,box-shadow;"}function Gt(){return"transition-property:border, box-shadow;"}function Ut(){return"transition-property:box-shadow;"}function Kt(){return"transition-property:box-shadow;"}function qt(){return"transition-property:filter, box-shadow, border-radius, border;"}function Yt({v:e,device:t,state:o}){return["fixed","absolute"].includes(Object(P.defaultValueValue)({v:e,key:"elementPosition",device:t,state:o}))?"height: unset":""}function Xt(){return"transition-property: box-shadow, border, border-radius;"}function Zt({v:e,device:t,state:o}){const n=Object(x.O)({v:e,device:t,state:o}),a=Object(x.P)({v:e,device:t,state:o});return void 0===n?"":`width:${n}${a};`}function Jt({v:e,device:t,state:o}){const n=Object(x.J)({v:e,device:t,state:o});return void 0===n?"":`display:${n};`}function Qt({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,state:o,prefix:"closeColor"});return void 0===n?"":`color:${n};`}function eo({v:e,device:t,state:o}){const n=Object(x.F)({v:e,device:t,state:o}),a=Object(x.D)({v:e,device:t,state:o});return void 0===n||void 0===a?"":`font-size:${n+2*a}px;`}function to({v:e,device:t,state:o}){const n=Object(x.D)({v:e,device:t,state:o});return void 0===n?"":`padding:${n}px;`}function oo({v:e,device:t,state:o}){const n=Object(x.E)({v:e,device:t,state:o});return void 0===n?"":`border-radius:${n}px;`}function no({v:e,device:t,state:o}){const n=Object(x.h)({v:e,device:t,prefix:"closeBg",state:o});return void 0===n?"":`background-color:${n};`}function ao({v:e,device:t,state:o}){const n=Object(x.C)({v:e,device:t,state:o}),a=Object(x.G)({v:e,device:t,state:o}),r=Object(x.H)({v:e,device:t,state:o}),i=Object(x.K)({v:e,device:t,state:o}),l=Object(x.L)({v:e,device:t,state:o}),s=Object(x.F)({v:e,device:t,state:o}),c=Object(x.D)({v:e,device:t,state:o}),d=Object(x.I)({v:e,device:t,state:o}),u=`${"outside"===d?-i-s-2*c:i}${l}`,p=`${"outside"===d?-a-s-2*c:a}${r}`;switch(n){case"topLeft":return`top:${u};left:${p};right:auto;bottom:auto;`;case"topRight":return`top:${u};right:${p};left:auto;bottom:auto;`;case"bottomLeft":return`bottom:${u};left:${p};right:auto;top:auto;`;case"bottomRight":return`bottom:${u};right:${p};left:auto;top:auto;`}}function ro({v:e,device:t,state:o}){const n=Object(x.b)({v:e,device:t,state:o,prefix:"popupRow"});return void 0===n?"":`align-items:${n};`}function io({v:e,device:t,state:o}){const n=Object(x.Q)({v:e,device:t,state:o}),a=Object(x.M)({v:e,device:t,state:o}),r=Object(x.N)({v:e,device:t,state:o});return"custom2"===n?`height: ${a}${r};`:""}function lo({v:e,device:t,state:o}){return"custom2"===Object(x.Q)({v:e,device:t,state:o})?"max-height: 100%; overflow-x: hidden; overflow-y: auto;":""}function so({v:e,device:t,state:o}){return"custom2"===Object(x.Q)({v:e,device:t,state:o})?"height: 100%;":""}function co({v:e,device:t,state:o}){return"custom2"===Object(x.Q)({v:e,device:t,state:o})?"max-height: 100%;":""}function uo({v:e,device:t,state:o}){const n=Object(x.ee)({v:e,device:t,state:o}),a="relative"===(r="elementPosition",Object(P.defaultValueValue)({v:e,key:r,device:t,state:o}));var r;return 0===n&&a?"z-index: auto;":`z-index: ${n+(a?0:11)};`}function po({v:e,device:t,state:o}){return`z-index: ${Object(x.ee)({v:e,device:t,state:o})+1};`}function bo({v:e,device:t,state:o}){const n=Object(x.b)({v:e,device:t,state:o});return void 0===n?"":`align-items:${n};`}function mo({v:e,device:t,state:o}){const n=Object(x.a)({v:e,device:t,state:o});return void 0===n?"":`justify-content:${n};`}function ho({v:e,device:t,state:o}){const n=Object(x.c)({v:e,device:t,state:o,prefix:"content"});return void 0===n?"":`text-align:${n};`}function go({v:e,device:t,state:o,prefix:n=""}){const a=Object(x.c)({v:e,device:t,state:o,prefix:n});return void 0===a?"":{left:"margin-right: auto; margin-left: 0;",center:"margin-left: auto; margin-right: auto;",right:"margin-left: auto; margin-right: 0;"}[a]}function vo({v:e,device:t,state:o}){const n=Object(x.b)({v:e,device:t,state:o});return void 0===n?"":`justify-content:${n};`}function fo({v:e,device:t,state:o}){const n=Object(x.c)({v:e,device:t,state:o,prefix:"excerpt"});return void 0===n?"":`text-align:${n};`}function yo({v:e,device:t,state:o}){const n=Object(x.Sd)({v:e,device:t,state:o});return n>0?`flex:1 1 ${n}%;`:""}function Oo({v:e,device:t,state:o,prefix:n=""}){const a=Bo({v:e,device:t,state:o,prefix:n}),r=a.paddingTop===a.paddingRight&&a.paddingTop===a.paddingBottom&&a.paddingTop===a.paddingLeft&&a.paddingTop>0;return 0===a.paddingTop&&0===a.paddingRight&&0===a.paddingBottom&&0===a.paddingLeft?"padding:0;":r?`padding:${a.paddingTop}${a.paddingTopSuffix};`:`padding:${a.paddingTop}${a.paddingTopSuffix} ${a.paddingRight}${a.paddingRightSuffix} ${a.paddingBottom}${a.paddingBottomSuffix} ${a.paddingLeft}${a.paddingLeftSuffix};`}function So({v:e,device:t,state:o}){0}function Co({v:e,device:t,state:o}){{let n="";const a=Bo({v:e,device:t,state:o});return n=`height:${a.paddingTop}${a.paddingTopSuffix};`,n}}function xo({v:e,device:t,state:o}){{let n="";const a=Bo({v:e,device:t,state:o});return n=`height:${a.paddingBottom}${a.paddingBottomSuffix};`,n}}function jo({v:e,device:t,state:o}){{let n="";const a=Bo({v:e,device:t,state:o});return n=`padding-right:${a.paddingRight}${a.paddingRightSuffix};padding-left:${a.paddingLeft}${a.paddingLeftSuffix};`,n}}function Bo({v:e,device:t,state:o,prefix:n=""}){let a=0,r=0,i=0,l=0,s="px",c="px",d="px",u="px";if("grouped"===Object(x.sd)({v:e,device:t,state:o,prefix:n})){const p=Object(x.qd)({v:e,device:t,state:o,prefix:n}),b=Object(x.rd)({v:e,device:t,state:o,prefix:n});a=p,r=p,i=p,l=p,s=b,c=b,d=b,u=b}else a=Object(x.td)({v:e,device:t,state:o,prefix:n,current:"paddingTop"}),r=Object(x.td)({v:e,device:t,state:o,prefix:n,current:"paddingRight"}),i=Object(x.td)({v:e,device:t,state:o,prefix:n,current:"paddingBottom"}),l=Object(x.td)({v:e,device:t,state:o,prefix:n,current:"paddingLeft"}),s=Object(x.ud)({v:e,device:t,state:o,prefix:n,current:"paddingTopSuffix"}),c=Object(x.ud)({v:e,device:t,state:o,prefix:n,current:"paddingRightSuffix"}),d=Object(x.ud)({v:e,device:t,state:o,prefix:n,current:"paddingBottomSuffix"}),u=Object(x.ud)({v:e,device:t,state:o,prefix:n,current:"paddingLeftSuffix"});return{paddingTop:a,paddingRight:r,paddingBottom:i,paddingLeft:l,paddingTopSuffix:s,paddingRightSuffix:c,paddingBottomSuffix:d,paddingLeftSuffix:u}}function Po({v:e,device:t,state:o}){return`padding:${Object(x.jd)({v:e,device:t,state:o})} ${Object(x.id)({v:e,device:t,state:o})} ${Object(x.gd)({v:e,device:t,state:o})} ${Object(x.hd)({v:e,device:t,state:o})};`}function wo({v:e,device:t,state:o}){let n="",a="",r=0,i=0,l=0,s=0,c="",d="",u="",p="";a=Object(x.md)({v:e,device:t,state:o}),"grouped"===a?(s=Object(x.nd)({v:e,device:t,state:o,current:"marginLeft"}),"auto"===s?(r=l=Object(x.kd)({v:e,device:t,state:o}),s=i="auto",c=u=Object(x.ld)({v:e,device:t,state:o})):(r=i=l=s=Object(x.kd)({v:e,device:t,state:o}),c=d=u=p=Object(x.ld)({v:e,device:t,state:o}))):(r=Object(x.nd)({v:e,device:t,state:o,current:"marginTop"}),i=Object(x.nd)({v:e,device:t,state:o,current:"marginRight"}),l=Object(x.nd)({v:e,device:t,state:o,current:"marginBottom"}),s=Object(x.nd)({v:e,device:t,state:o,current:"marginLeft"}),c=Object(x.od)({v:e,device:t,state:o,current:"marginTopSuffix"}),d=Object(x.od)({v:e,device:t,state:o,current:"marginRightSuffix"}),u=Object(x.od)({v:e,device:t,state:o,current:"marginBottomSuffix"}),p=Object(x.od)({v:e,device:t,state:o,current:"marginLeftSuffix"}));return n=void 0===r?"":r===i&&r===l&&r===s&&0!==r?`margin:${r}${c};`:0!==r||0!==i||0!==l||0!==s?`margin:${r}${c} ${i}${d} ${l}${u} ${s}${p};`:"margin:0;",n}function To({v:e,device:t,state:o}){return`margin:${Object(x.fd)({v:e,device:t,state:o})} ${Object(x.ed)({v:e,device:t,state:o})} ${Object(x.cd)({v:e,device:t,state:o})} ${Object(x.dd)({v:e,device:t,state:o})};`}function zo(){return"display:flex;"}function Eo(){return"display:inline-flex;"}function ko(){return"display:block;"}function Ho({v:e,device:t,state:o}){let n="";{const a=Object(x.Kd)({v:e,device:t,state:o}),r=Object(x.Ld)({v:e,device:t,state:o});n=""!==a?`filter:${a};opacity:${r};`:""}return n}function _o({v:e,device:t,state:o,mode:n="editor"}){const a=Object(x.Kd)({v:e,device:t,state:o});return"editor"===n&&""!==a?"display:var(--elements-visibility, flex);":""}function Fo({v:e,device:t,state:o,mode:n="editor"}){const a=Object(x.Kd)({v:e,device:t,state:o});return"editor"===n&&""!==a?"display:var(--elements-visibility, inline-flex);":""}function Ro({v:e,device:t,state:o,mode:n="editor"}){const a=Object(x.Kd)({v:e,device:t,state:o});return"editor"===n&&""!==a?"display:var(--elements-visibility, block);":""}function Mo({v:e,device:t,state:o,mode:n="editor"}){const a=Ho({v:e,device:t,state:o});return"editor"===n?a:""}function Lo({v:e}){const{membership:t,membershipRoles:o}=e,n=JSON.parse(o||"[]");if("off"===t||0===n.length)return"";return`display: var(--role-default ${n.map(e=>", var(--role-"+e).join("")}, none${")".repeat(n.length+1)};`}function Wo({v:e,device:t,state:o,prefix:n=""}){const a=Object(x.Vc)({v:e,device:t,state:o,prefix:n}),r=Object(x.Xc)({v:e,device:t,state:o,prefix:n}),i=Object(x.Yc)({v:e,device:t,state:o,prefix:n}),l=Object(x.Wc)({v:e,device:t,state:o,prefix:n});return 100===a&&0===r&&100===i&&100===l?"":`brightness(${a}%) hue-rotate(${r}deg) saturate(${i}%) contrast(${l}%)`}function Io({v:e,device:t,state:o,prefix:n=""}){const a=Wo({v:e,device:t,state:o,prefix:n});return""===a?"":`filter:${a};`}function No({v:e,device:t,state:o}){const n=Object(x.wc)({v:e,device:t,state:o});return void 0===n?"":`padding-top:${n};`}function Ao({v:e,device:t,state:o}){const n=Object(x.Vc)({v:e,device:t,state:o}),a=Object(x.Xc)({v:e,device:t,state:o}),r=Object(x.Yc)({v:e,device:t,state:o}),i=Object(x.Wc)({v:e,device:t,state:o});return void 0===n&&void 0===a&&void 0===r&&void 0===i?"":`filter:brightness(${n}%) hue-rotate(${a}deg) saturate(${r}%) contrast(${i}%);`}function Do({v:e,device:t,state:o}){const n=Object(x.qc)({v:e,device:t,state:o});return void 0===n?"":`background-size:${n}%;`}function Vo({v:e,device:t,state:o}){const n=Object(x.sc)({v:e,device:t,state:o});return void 0===n?"":`font-size:${n}px;`}function $o({v:e,device:t,state:o}){const n=Object(x.uc)({v:e,device:t,state:o});return void 0===n?"":`width:${n}px;`}function Go({v:e,device:t,state:o}){const n=Object(x.tc)({v:e,device:t,state:o});return void 0===n?"":`height:${n}px;`}function Uo({v:e,device:t,state:o}){const n=Object(x.mc)({v:e,device:t,state:o});return void 0===n?"":`background-color:${n};`}function Ko({v:e,device:t,state:o}){const n=Object(x.pc)({v:e,device:t,state:o});return void 0===n?"":`background-image:${n};`}function qo({v:e,device:t,state:o}){const n=Object(x.nc)({v:e,device:t,state:o}),a=Object(x.oc)({v:e,device:t,state:o});return void 0===n&&void 0===a?"":`background-position:${n}% ${a}%;`}function Yo(){return"transition-property: box-shadow, border, border-radius, background-color, color, transform;"}function Xo({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"controlsBg"})}function Zo({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"iconControlsColor"})}function Jo({v:e,device:t,state:o}){const n=Object(x.rc)({v:e,device:t,state:o});return void 0===n?"":`font-size:${n}px;`}function Qo({v:e,device:t}){return G({v:e,device:t,prefix:"subTitle"})}function en({v:e,device:t}){return U({v:e,device:t,prefix:"subTitle"})}function tn({v:e,device:t}){return K({v:e,device:t,prefix:"subTitle"})}function on({v:e,device:t}){return q({v:e,device:t,prefix:"subTitle"})}function nn({v:e,device:t}){return Y({v:e,device:t,prefix:"subTitle"})}function an({v:e,device:t,state:o}){const n=Object(x.Md)({v:e,device:t,state:o});return void 0===n?"":`width:${n}px;`}function rn({v:e,device:t,state:o}){const n=Object(x.vc)({v:e,device:t,state:o});return void 0===n?"":`max-width:${n}px; flex: 1 1 ${n}px;`}function ln({v:e,device:t,state:o}){return ke({v:e,device:t,state:o,prefix:"item"})}function sn({v:e,device:t,state:o}){const n=Object(x.Md)({v:e,device:t,state:o});return void 0===n?"":`width: calc(100% - ${n}px);`}function cn({v:e,device:t}){const o=Object(P.defaultValueValue)({v:e,key:"gridColumn",device:t}),n=o>1?100/o:100;return`max-width:${n}%; flex: 0 0 ${n}%;`}function dn({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"iconColor"})}function un({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"subTitleColor"})}function pn({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"iconBg"})}function bn({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"activeBg"})}function mn({v:e,device:t,state:o}){return ke({v:e,device:t,state:o,prefix:"activeItem"})}function hn({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"activeColor"})}function gn({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"activeSubTitleColor"})}function vn({v:e,device:t,state:o}){const n=Object(x.rb)({v:e,device:t,state:o});return void 0===n?"":`font-size:${n}px;`}function fn({v:e,device:t,state:o}){const n=Object(x.td)({v:e,device:t,state:o,current:"paddingTop"}),a=Object(x.td)({v:e,device:t,state:o,current:"paddingRight"});return void 0===n&&void 0===a?"":`padding:${n}px ${a}px;`}function yn({v:e,device:t}){const o=Object(x.Y)({v:e,device:t});return`min-height: ${"custom"===o?`${Object(x.W)({v:e,device:t})}${Object(x.X)({v:e,device:t})}`:"fullHeight"===o?"100vh":"auto"};`}function On({v:e,device:t,state:o}){const n="on"===Object(x.wd)({v:e,device:t,state:o})?"row-reverse":"row",a="on"===Object(x.xd)({v:e,device:t})?"wrap-reverse":"wrap",r="on"===Object(x.vd)({v:e,device:t})?"flex-end":"flex-start";return"desktop"!==t?`flex-direction:${n};flex-wrap:${a};justify-content:${r};`:""}var Sn=o(48),Cn=o(132),xn=o(214),jn=o(215);function Bn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Pn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(o),!0).forEach((function(t){Object(C.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Bn(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function wn(e){return Object(x.ee)(e)?"position:relative;":"position:static;"}function Tn(){return"position:relative;"}function zn(e){const t=Cn.a((o="elementPosition",Object(P.defaultValueValue)(Pn({key:o},e))));var o;return void 0===t?"":`position:${t};`}function En(e){const t=t=>Object(P.defaultValueValue)(Pn({key:t},e)),o=t("elementPosition"),n=Sn.b(t("width")),a=B.d(t("widthSuffix"));return void 0!==n&&a&&"relative"!==o?`width:${n}${a};`:""}function kn(e){var t,o;const n=t=>Object(P.defaultValueValue)(Pn({key:t},e)),a=Cn.a(n("elementPosition"));if(!a||"relative"===a)return"";const r=xn.a(n("offsetYAlignment")),i=Sn.b(n("offsetY")),l=null!==(t=B.d(n("offsetYSuffix")))&&void 0!==t?t:"px",s=jn.a(n("offsetXAlignment")),c=Sn.b(n("offsetX")),d=null!==(o=B.d(n("offsetXSuffix")))&&void 0!==o?o:"px",u=r?{top:"unset",bottom:"unset",[r]:`${i}${l}`}:{},p=s?{right:"unset",left:"unset",[s]:`${c}${d}`}:{};return Object.entries(Pn(Pn({},u),p)).map(([e,t])=>t?`${e}: ${t};`:"").join("")}function Hn({v:e,device:t,state:o}){return`margin-right: ${Object(x.bd)({v:e,device:t,state:o})}px;`}function _n({v:e,device:t,state:o}){const n=Object(x.ad)({v:e,device:t,state:o});return void 0===n?"":`font-size:${n}px;`}var Fn=o(30);const Rn=e=>void 0!==e;function Mn({v:e,device:t,state:o}){const n=Object(x.Mb)({v:e,device:t,state:o}),a=Object(x.Lb)({v:e,device:t,state:o});let r=`calc(${a/100} * var(--brz-section-container-max-width, 1170px));`;return t!==Fn.c&&t!==Fn.b||(r=a+"%"),"boxed"===n?"max-width: "+r:"max-width: 100%;"}function Ln({v:e}){const t="on"===Object(x.Qb)({v:e})?"height":"min-height",o="on"===Object(x.Nb)({v:e})?"100vh":"100%";return Rn(o)?`${t}: ${o};`:""}function Wn({v:e,device:t,state:o,prefix:n="sliderDotsColor"}){const a=Object(x.B)({v:e,device:t,state:o,prefix:n});return Rn(a)?`color: ${a};`:""}function In({v:e,device:t,state:o,prefix:n="sliderArrowsColor"}){const a=Object(x.B)({v:e,device:t,state:o,prefix:n});return Rn(a)?`color: ${a};`:""}function Nn(){return"transition-property: filter, background, border, border-radius;"}function An({v:e,device:t,state:o}){let n,a;if("grouped"===Object(x.md)({v:e,device:t,state:o})?(n=Object(x.kd)({v:e,device:t,state:o}),a=Object(x.ld)({v:e,device:t,state:o})):(n=Object(x.nd)({v:e,device:t,state:o,current:"marginTop"}),a=Object(x.od)({v:e,device:t,state:o,current:"marginTopSuffix"})),!Rn(n))return"";if(n<0){let t=42-n;if("%"===a){const o=document.querySelector(`[data-uid="${e._id}"]`);if(o){t=42+o.getBoundingClientRect().width/100*-n}}return`grid-template-rows: minmax(calc(100% - 42px), ${t}px) 42px;`}return"grid-template-rows: minmax(calc(100% - 42px), 42px) 42px;"}function Dn({v:e,device:t}){const o=Object(x.Nb)({v:e,device:t});return`min-height: ${"custom"===o?`${Object(x.Ob)({v:e,device:t})}${Object(x.Pb)({v:e,device:t})}`:"on"===o?"100vh":"auto"};`}function Vn({v:e,device:t,state:o}){{const{paddingLeft:n,paddingLeftSuffix:a,paddingRight:r,paddingRightSuffix:i}=Bo({v:e,device:t,state:o}),l=`${n}${a}`,s=`${r}${i}`;return`margin-left: -${l}; margin-right: -${s}; width: calc(100% + ${s} + ${l});`}}function $n(){return"max-width: 1170px; height: 100%;"}function Gn({v:e,device:t,state:o}){return`font-size: ${Object(x.Ud)({v:e,device:t,state:o})/2}px;`}function Un({v:e,device:t,state:o,prefix:n="activeColor"}){return`color: ${Object(x.B)({v:e,device:t,state:o,prefix:n})};`}function Kn({v:e,device:t,state:o,prefix:n="arrowsColor"}){return`color: ${Object(x.B)({v:e,device:t,state:o,prefix:n})};`}var qn=o(18);function Yn({v:e,device:t,state:o}){const n=Object(x.Sd)({v:e,device:t,state:o});return void 0===n?"":`flex-basis:${n}%;`}function Xn({v:e,device:t,state:o}){const n=Object(x.Sd)({v:e,device:t,state:o,prefix:"submit"});return void 0===n?"":`max-width:${n}%;flex-basis:${n}%;`}function Zn({v:e,device:t,state:o}){const n=(a="type",Object(P.defaultValueValue)({v:e,key:a,device:t,state:o}));var a;const r=Object(x.Od)({v:e,device:t,state:o});return void 0===r||void 0===n?"":"Paragraph"===n?`height:${r}px!important;`:"height:auto;"}function Jn({v:e,device:t,state:o}){const n=Object(x.c)({v:e,device:t,state:o,prefix:"label"});return void 0===n?"":`text-align:${n};`}function Qn({v:e,device:t,state:o}){const{paddingTop:n,paddingRight:a,paddingBottom:r,paddingLeft:i}=Bo({v:e,device:t,state:o});return void 0===n||void 0===a||void 0===r||void 0===i||c.g?"":`margin:-${n}px -${a/2}px\n -${r}px -${i/2}px;`}function ea({v:e,device:t,state:o}){const{paddingTop:n,paddingRight:a,paddingBottom:r,paddingLeft:i,paddingTopSuffix:l,paddingRightSuffix:s,paddingBottomSuffix:d,paddingLeftSuffix:u}=Bo({v:e,device:t,state:o});return void 0===n||void 0===a||void 0===r||void 0===i?"":c.g?`padding:0 0 ${r}${d} 0;`:`padding:${n}${l}\n ${a/2}${s}\n ${r}${d}\n ${i/2}${u};`}function ta({v:e,device:t,state:o}){const n=Object(x.Xd)({v:e,device:t}),a=Object(x.Ud)({v:e,device:t}),{paddingTop:r,paddingBottom:i}=Bo({v:e,device:t,state:o}),l=function({v:e,device:t,state:o,prefix:n=""}){let a=0,r=0;if("grouped"===Object(x.t)({v:e,device:t,state:o,prefix:n})){const i=Object(x.s)({v:e,device:t,state:o,prefix:n});a=i,r=i}else a=Object(x.u)({v:e,device:t,state:o,prefix:n,current:"top"}),r=Object(x.u)({v:e,device:t,state:o,prefix:n,current:"bottom"});return a+r}({v:e,device:t,state:o});return`min-height:${Math.round(a*n*10)/10+r+i+l}px;`}function oa({v:e,device:t}){return G({v:e,device:t,prefix:"label"})}function na({v:e,device:t}){return U({v:e,device:t,prefix:"label"})}function aa({v:e,device:t}){return K({v:e,device:t,prefix:"label"})}function ra({v:e,device:t}){return q({v:e,device:t,prefix:"label"})}function ia({v:e,device:t}){return Y({v:e,device:t,prefix:"label"})}function la({v:e,device:t,state:o}){return Oo({v:e,device:t,state:o,prefix:"label"})}function sa({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"checkboxColor"})}function ca({v:e,device:t}){return G({v:e,device:t,prefix:"checkbox"})}function da({v:e,device:t}){return U({v:e,device:t,prefix:"checkbox"})}function ua({v:e,device:t}){return K({v:e,device:t,prefix:"checkbox"})}function pa({v:e,device:t}){return q({v:e,device:t,prefix:"checkbox"})}function ba({v:e,device:t}){return Y({v:e,device:t,prefix:"checkbox"})}function ma({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"selectColor"})}function ha({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"selectBg"})}function ga({v:e,device:t,state:o}){const n=Object(x.s)({v:e,device:t,state:o});return void 0===n||0===n?"border: 2px solid #f00":"border-color: #f00"}function va({v:e,device:t,state:o}){const n=Object(x.i)({v:e,device:t,state:o,prefix:"selectBg"});return void 0===n?"":`background-color:${Object(qn.c)(n,.2)};`}function fa({v:e,device:t,state:o}){const n=Object(x.u)({v:e,device:t,state:o,prefix:"select",current:"top"}),a=Object(x.r)({v:e,device:t,state:o,prefix:"select"}),r=Object(x.n)({v:e,device:t,state:o,prefix:"select"});return void 0===n?"":`border-bottom:${n}px ${a} ${r};`}function ya({v:e,device:t,state:o}){return _e({v:e,device:t,state:o,prefix:"select"})}function Oa({v:e,device:t,state:o}){return gt({v:e,device:t,state:o,prefix:"select"})}function Sa({v:e,device:t,state:o}){const n=Object(x.eb)({v:e,device:t,state:o});return void 0===n?"":`flex-basis:${100/n}%;`}function Ca({v:e}){return`content: ""; padding-top: ${e.submitHeight}%;`}function xa({v:e,device:t,state:o}){const{paddingTop:n,paddingRight:a,paddingBottom:r,paddingLeft:i}=Bo({v:e,device:t,state:o,prefix:"field"});return void 0===n||void 0===a||void 0===r||void 0===i?"":`margin:-${n}px -${a/2}px\n -${r}px -${i/2}px;`}function ja({v:e,device:t,state:o}){const{paddingTop:n,paddingRight:a,paddingBottom:r,paddingLeft:i,paddingTopSuffix:l,paddingRightSuffix:s,paddingBottomSuffix:c,paddingLeftSuffix:d}=Bo({v:e,device:t,state:o,prefix:"field"});return void 0===n||void 0===a||void 0===r||void 0===i?"":`padding:${n}${l}\n ${a/2}${s}\n ${r}${c}\n ${i/2}${d};`}function Ba({v:e,device:t}){return G({v:e,device:t,prefix:"lost"})}function Pa({v:e,device:t}){return U({v:e,device:t,prefix:"lost"})}function wa({v:e,device:t}){return K({v:e,device:t,prefix:"lost"})}function Ta({v:e,device:t}){return q({v:e,device:t,prefix:"lost"})}function za({v:e,device:t}){return Y({v:e,device:t,prefix:"lost"})}function Ea({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"lostColor"})}function ka({v:e,device:t,state:o}){const n=Object(x.c)({v:e,device:t,state:o,prefix:"lost"});return void 0===n?"":`text-align:${n};`}function Ha({v:e,device:t,state:o}){const n=Object(x.c)({v:e,device:t,state:o,prefix:"autorized"});return void 0===n?"":`text-align:${n};`}function _a({v:e,device:t}){return G({v:e,device:t,prefix:"text"})}function Fa({v:e,device:t}){return U({v:e,device:t,prefix:"text"})}function Ra({v:e,device:t}){return K({v:e,device:t,prefix:"text"})}function Ma({v:e,device:t}){return q({v:e,device:t,prefix:"text"})}function La({v:e,device:t}){return Y({v:e,device:t,prefix:"text"})}function Wa({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"textColor"})}function Ia({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"linkColor"})}function Na({v:e,device:t,state:o,prefix:n="iconsColor"}){return`color: ${Object(x.B)({v:e,device:t,state:o,prefix:n})};`}function Aa({v:e,device:t,state:o,prefix:n="textColor"}){return`color: ${Object(x.B)({v:e,device:t,state:o,prefix:n})};`}function Da({v:e,device:t,state:o}){return"inline"===Object(x.Uc)({v:e,device:t})?`margin-right: ${Object(x.Rd)({v:e,device:t,state:o})}px;`:`margin-top: ${Object(x.Rd)({v:e,device:t,state:o})}px;`}function Va({v:e,device:t}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:"titleTypography"})};`:""}function $a({v:e,device:t}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:"titleTypography"})}px;`}function Ga({v:e,device:t}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:"titleTypography"})};`}function Ua({v:e,device:t}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:"titleTypography"})};`}function Ka({v:e,device:t}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:"titleTypography"})}px;`}function qa({v:e,device:t}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:"postTypography"})};`:""}function Ya({v:e,device:t}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:"postTypography"})}px;`}function Xa({v:e,device:t}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:"postTypography"})};`}function Za({v:e,device:t}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:"postTypography"})};`}function Ja({v:e,device:t}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:"postTypography"})}px;`}function Qa({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,prefix:"titleColor",state:o});return void 0===n?"":`color:${n};`}function er({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,prefix:"postColor",state:o});return void 0===n?"":`color:${n};`}function tr({v:e,device:t,state:o}){const n=Object(x.Hb)({v:e,device:t,state:o}),a=Object(x.Fb)({v:e,device:t,state:o});return void 0===n?"":"off"===a?"margin-bottom: 0;":`margin-bottom:${n}px`}function or({v:e,device:t,state:o}){const n=Object(x.Od)({v:e,device:t,state:o});return void 0===n?"":`height:${n}%;`}function nr({v:e,device:t,state:o}){const n=Object(x.Gb)({v:e,device:t,state:o});return void 0===n||"off"!==n?"":"content: none;"}function ar({v:e,device:t,state:o,prefix:n="ratingColor"}){return`color: ${Object(x.B)({v:e,device:t,state:o,prefix:n})};`}function rr({v:e,device:t,state:o,prefix:n="ratingBackgroundColor"}){return`color: ${Object(x.B)({v:e,device:t,state:o,prefix:n})};`}function ir({v:e,device:t,state:o,prefix:n="bgColor"}){return`background-color: ${Object(x.B)({v:e,device:t,state:o,prefix:n})};`}function lr({v:e,device:t}){return`border-radius: ${o="borderRadius",Object(P.defaultValueValue)({v:e,key:o,device:t})}px;`;var o}function sr(){return"transition-property: color;"}function cr({v:e,device:t}){var o;return"on"===(o="label",Object(P.defaultValueValue)({key:o,v:e,device:t}))?"display: flex; flex-direction: row;":"display: flex; flex-direction: row-reverse;"}function dr({v:e,device:t}){const o=o=>Object(P.defaultValueValue)({key:o,v:e,device:t}),n=o("spacing"),a=o("label"),r=o("ratingStyle");switch(a){case"on":return`margin-right: ${n}px;`;case"on-right":return"style-2"===r?`margin-right: ${n}px; margin-left: 0;`:`margin-left: ${n}px; margin-right: 0;`;case"off":return"margin: 0;"}}function ur({v:e,device:t,prefix:o}){const n=Object(x.s)({v:e,device:t,prefix:o});return Object(x.dc)({v:e,device:t,prefix:o})+2*Object(x.ec)({v:e,device:t,prefix:o})+2*n}function pr({v:e,device:t,state:o,prefix:n}){return ur({v:e,device:t,state:o,prefix:n})/2}function br({v:e,device:t,prefix:o}){return"on"===Object(x.cc)({v:e,device:t,prefix:o})}function mr({v:e,device:t,prefix:o}){const n=Object(x.Ud)({v:e,device:t,prefix:"typography"}),a=Object(x.Xd)({v:e,device:t,prefix:"typography"});return br({v:e,device:t,prefix:o})?n*a:0}function hr({v:e,device:t,prefix:o}){return br({v:e,device:t,prefix:o})?116:0}function gr({v:e,device:t,prefix:o}){return`font-size: ${Object(x.dc)({v:e,device:t,prefix:o})}px;`}function vr({v:e,device:t,prefix:o}){return`padding: ${Object(x.ec)({v:e,device:t,prefix:o})}px;`}function fr({v:e,prefix:t}){return`width: ${ur({v:e,prefix:t})}px;`}function yr({v:e,prefix:t}){return`height: ${ur({v:e,prefix:t})}px;`}function Or({v:e,prefix:t}){return`width: ${ur({v:e,prefix:t})+60}px;`}function Sr({v:e}){return br({v:e})?"display: block;":"display: none;"}function Cr({v:e,device:t,state:o}){const n=Object(x.n)({v:e,device:t,prefix:"line"}),a=Object(x.fc)({v:e,device:t,state:o}),r=o=>Object(P.defaultValueValue)({v:e,key:o,device:t}),i=r("lineBorderStyle"),l=r("lineBorderWidth");return"off"===a?`border-top: ${n} ${l}px ${i};`:`border-left: ${n} ${l}px ${i};border-top:0;`}function xr({v:e,device:t,state:o}){const n=Object(x.hc)({v:e,device:t,state:o}),a=Object(x.fc)({v:e,device:t,state:o}),r=Object(x.s)({v:e,prefix:"line"}),i=pr({v:e}),l=mr({v:e,device:t}),s=pr({v:e}),c=Object(x.s)({v:e,device:t}),d=Object(x.dc)({v:e,device:t})+2*Object(x.ec)({v:e,device:t})+2*c+20,u=i+l-r/2;if("off"===a)switch(n){case"style-1":return`top: ${u}px; bottom:auto; left: ${d}px;`;case"style-2":return`bottom: ${u}px; top:auto; left: ${d}px;`;case"style-3":return`top: ${u}px; bottom:auto; left: ${d}px;`}else if("on"===a)switch(n){case"style-1":case"style-2":case"style-3":return`top: calc( ${s}px + 50%);`}}function jr({v:e,device:t,prefix:o}){const n=Object(x.gc)({v:e,device:t,prefix:o}),a=Object(x.fc)({v:e,device:t}),r=Object(x.hc)({v:e,device:t});if("off"===a)switch(r){case"style-1":return`margin: ${n}px 10px 0 10px;`;case"style-2":return`margin: 0 10px ${n}px 10px;`;case"style-3":return`margin: ${n}px 10px 0 10px;`}else if("on"===a)switch(r){case"style-1":return`margin: 0 0 0 ${n}px;`;case"style-2":return`margin: 0 ${n}px 0 0;`;case"style-3":return`margin: 0 0 0 ${n}px;`}}function Br({v:e,device:t,prefix:o}){return`border: ${Object(x.s)({v:e,device:t,prefix:o})}px solid ${Object(x.n)({v:e,device:t,prefix:o})};`}function Pr({v:e,device:t,state:o,prefix:n}){return`border-radius: ${Object(x.o)({v:e,device:t,state:o,prefix:n})}px;`}function wr({v:e,device:t,state:o,prefix:n}){const a=pr({v:e,prefix:n}),r=hr({v:e})+a,i=Object(x.fc)({v:e,device:t,state:o}),l=Object(x.hc)({v:e,device:t,state:o});if("on"===i)switch(l){case"style-1":return`left: calc(50% - ${r}px); right: auto;`;case"style-2":return`right: calc(50% - ${r}px); left: auto;`}else if("off"===i)return"left: auto; right: auto;"}function Tr({v:e,device:t,state:o,prefix:n}){const a=pr({v:e,prefix:n}),r=ur({v:e,prefix:n}),i=Object(x.s)({v:e,device:t,prefix:"line"}),l=Object(x.fc)({v:e,device:t,state:o});return"on"===l?`height: calc(50% - ${a}px); width: ${i}px;`:"off"===l?`width: calc(100% - ${r}px); height: ${i}px;`:void 0}function zr({v:e,device:t,state:o,prefix:n}){const a=pr({v:e,prefix:n}),r=ur({v:e,prefix:n}),i=Object(x.s)({v:e,device:t,prefix:"line"}),l=Object(x.fc)({v:e,device:t,state:o}),s=(c="lineBorderStyle",Object(P.defaultValueValue)({v:e,key:c,device:t}));var c;return"on"===l?`height: calc(${"dashed"===s||"dotted"===s?100-i:100}px + (50% - ${a}px)); width: ${i}px;`:"off"===l?`width: calc(100% - ${r}px); height: ${i}px;`:void 0}function Er({v:e,device:t,state:o,prefix:n}){const a=Object(x.s)({v:e,device:t,prefix:"line"}),r=pr({v:e,prefix:n}),i=hr({v:e})+r-a/2,l=Object(x.fc)({v:e,device:t,state:o}),s=Object(x.hc)({v:e,device:t,state:o});if("on"===l)switch(s){case"style-1":return`left: ${i}px; bottom: calc( ${r}px + 50%);`;case"style-2":return`right: ${i}px; bottom: calc( ${r}px + 50%);`;case"style-3":return`left: ${i}px; bottom: calc( ${r}px + 50%);`}}function kr({v:e,device:t,state:o}){const n=Object(x.fc)({v:e,device:t,state:o});return"on"===n?"display: block;":"off"===n?"display: none;":void 0}function Hr({v:e,device:t,state:o,prefix:n}){const a=pr({v:e,prefix:n});if("on"===Object(x.fc)({v:e,device:t,state:o}))return`top: calc( ${a}px + 50%);`}function _r({v:e,device:t,state:o,prefix:n}){const a=pr({v:e,prefix:n}),r=Object(x.fc)({v:e,device:t,state:o}),i=Object(x.hc)({v:e,device:t,state:o});if("on"===r&&("style-1"===i||"style-2"===i||"style-3"===i))return`bottom: calc( ${a}px + 50%);`}function Fr({v:e,device:t,prefix:o}){const n=Object(x.ic)({v:e,device:t,prefix:o});if("off"===Object(x.fc)({v:e,device:t,prefix:o})){const e=100/n;return`width: ${e}%; min-width: ${e}%;`}return"width: auto; min-width: auto;"}function Rr({v:e,device:t,prefix:o}){const n=100/Object(x.ic)({v:e,device:t,prefix:o});return`width: calc(${n}% - 30px); min-width: calc(${n}% - 30px);`}function Mr({v:e,device:t,state:o,prefix:n}){const a=pr({v:e,prefix:n}),r=hr({v:e})+a,i=Object(x.fc)({v:e,device:t,state:o}),l=Object(x.hc)({v:e,device:t,state:o});if("on"===i&&"style-2"===l)return`right: calc(50% - ${r}px);`}function Lr({v:e,device:t,state:o,prefix:n}){const a=Object(x.s)({v:e,device:t,prefix:"line"}),r=pr({v:e,prefix:n}),i=hr({v:e})+r-a/2,l=Object(x.fc)({v:e,device:t,state:o}),s=Object(x.hc)({v:e,device:t,state:o});if("on"===l&&"style-2"===s)return`right: ${i}px;`}function Wr({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t}),a=Object(x.s)({v:e,prefix:"line"}),r=pr({v:e}),i=mr({v:e,device:t}),l=Object(x.s)({v:e,device:t}),s=Object(x.dc)({v:e,device:t}),c=Object(x.ec)({v:e,device:t}),d=pr({v:e}),u=hr({v:e})+d-a/2,p=s+2*c+2*l+20,b=r+i-a/2;if("off"===o)switch(n){case"style-1":return`bottom:auto; right: auto; left: ${p}px;`;case"style-2":return`bottom: ${b}px; top:auto; right: auto; left: ${p}px;`;case"style-3":return`bottom: ${r}px; top: unset; right: auto; left: ${p}px;`}else if("on"===o)switch(n){case"style-1":return`left: ${u}px;`;case"style-2":return`right: ${u}px; left: auto;`;case"style-3":return`left: ${u}px;`}}function Ir({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t}),a=Object(x.s)({v:e,prefix:"line"}),r=pr({v:e}),i=mr({v:e,device:t}),l=pr({v:e}),s=Object(x.s)({v:e,device:t}),c=Object(x.dc)({v:e,device:t}),d=Object(x.ec)({v:e,device:t}),u=hr({v:e})+l-a/2,p=c+2*d+2*s+20,b=r+i-a/2;if("off"===o)switch(n){case"style-1":return`top: ${b}px; bottom:auto; right: auto; left: ${p}px;`;case"style-2":return`bottom: ${b}px; top:auto; right: auto; left: ${p}px;`;case"style-3":return`top: ${r}px; bottom: unset; right: auto; left: ${p}px;`}else if("on"===o)switch(n){case"style-1":return`top: calc( ${l}px + 50%); left: ${u}px;`;case"style-2":return`top: calc( ${l}px + 50%); right: ${u}px; left: auto;`;case"style-3":return`top: calc( ${l}px + 50%); left: ${u}px;`}}function Nr({v:e,device:t,prefix:o}){const n=Object(x.gc)({v:e,device:t,prefix:o}),a=Object(x.fc)({v:e,device:t}),r=Object(x.hc)({v:e,device:t});if("off"===a){switch(r){case"style-1":return`margin: ${n}px 10px 0 10px;`;case"style-2":case"style-3":return`margin: 0 10px ${n}px 10px;`}return`margin: 0 10px ${n}px 10px;`}if("on"===a)switch(r){case"style-1":return`margin: 0 0 0 ${n}px;`;case"style-2":case"style-3":return`margin: 0 ${n}px 0 0;`}}function Ar({v:e,device:t,prefix:o}){const n=Object(x.gc)({v:e,device:t,prefix:o}),a=Object(x.fc)({v:e,device:t}),r=Object(x.hc)({v:e,device:t});if("off"===a&&"style-3"===r)return`margin: ${n}px 10px 0 10px;`}function Dr({v:e,device:t,prefix:o}){const n=pr({v:e,prefix:o}),a=hr({v:e})+n,r=Object(x.fc)({v:e,device:t}),i=Object(x.hc)({v:e,device:t});if("on"===r)switch(i){case"style-1":return`left: calc(50% - ${a}px);`;case"style-2":case"style-3":return`right: calc(50% - ${a}px); left: auto;`}else if("off"===r)switch(i){case"style-1":case"style-2":case"style-3":return"right: auto; left: auto;"}}function Vr({v:e,device:t,prefix:o}){const n=pr({v:e,prefix:o}),a=hr({v:e})+n,r=Object(x.fc)({v:e,device:t}),i=Object(x.hc)({v:e,device:t});if("on"===r)switch(i){case"style-1":return`left: calc(50% - ${a}px);`;case"style-2":return"left:auto;";case"style-3":return`left: calc(50% - ${a}px);`}else if("off"===r)switch(i){case"style-1":return"left: auto;";case"style-2":return"left:auto;";case"style-3":return"left: auto;"}}function $r({v:e,device:t,prefix:o}){const n=Object(x.s)({v:e,device:t,prefix:"line"}),a=pr({v:e,prefix:o}),r=hr({v:e})+a-n/2,i=Object(x.fc)({v:e,device:t}),l=Object(x.hc)({v:e,device:t});if("off"===i)switch(l){case"style-1":case"style-2":case"style-3":return""}else if("on"===i)switch(l){case"style-1":return`right: auto; left: ${r}px;`;case"style-2":return"";case"style-3":return`right: ${r}px; left: unset;`}}function Gr({v:e,device:t,prefix:o}){const n=Object(x.gc)({v:e,device:t,prefix:o}),a=ur({v:e,prefix:o}),r=hr({v:e}),i=r+a+n-7,l=Object(x.fc)({v:e,device:t}),s=Object(x.hc)({v:e,device:t}),c=pr({v:e,device:t}),d=r+a+n-7;if("off"===l)switch(s){case"style-1":return`bottom: auto; top: 0; left: ${c}px;`;case"style-2":case"style-3":return`bottom: -15px; top: unset;left: ${c}px;`}else if("on"===l)switch(s){case"style-1":return`bottom: auto; left: ${d}px; top: 50%;`;case"style-2":case"style-3":return`right: ${i}px; left: unset; top: 50%;`}}function Ur({v:e,device:t,prefix:o}){const n=Object(x.gc)({v:e,device:t,prefix:o}),a=Object(x.fc)({v:e,device:t}),r=Object(x.hc)({v:e,device:t});if("on"===a&&"style-3"===r)return`margin: 0 ${n}px 0 0;`}function Kr({v:e,device:t,state:o}){const n=Object(x.kc)({v:e,device:t,state:o}),a=Object(x.lc)({v:e,device:t,state:o});return void 0===n?"":`min-width:${n}${a}; width:${n}${a};`}function qr({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t});if("off"===o)switch(n){case"style-1":return"border-right: transparent ; border-bottom: transparent ; border-left: inherit ; border-top: inherit ;";case"style-2":return"border-left: transparent ; border-top: transparent ; border-right: inherit ; border-bottom: inherit ;"}else if("on"===o)switch(n){case"style-1":return"border-top: transparent ; border-right: transparent ; border-left: inherit ; border-bottom: inherit ;";case"style-2":return"border-left: transparent ; border-bottom: transparent ; border-right: inherit ; border-top: inherit ;"}}function Yr({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t});return"off"===o&&"style-3"===n?"border-left: transparent ; border-top: transparent ; border-right: inherit ; border-bottom: inherit;":"on"===o&&"style-3"===n?"border-left: transparent; border-bottom: transparent; border-right: inherit; border-top: inherit;":void 0}function Xr({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t});if("on"===o&&"style-3"===n)return"border-right: transparent; border-top: transparent; border-left: inherit; border-bottom: inherit;"}function Zr({v:e,device:t}){const o=Object(x.fc)({v:e,device:t});return"off"===o?"flex: 1 1 auto; flex-direction: row; width: 100%; display: flex; overflow-x: auto; overflow-y: hidden; padding-bottom: 30px;":"on"===o?"display: flex; flex-direction: column; max-width: 100%; overflow-x: unset; overflow-y: unset; padding-bottom: unset; align-items: normal;":void 0}function Jr({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t});if("off"===o)switch(n){case"style-1":return"display: flex; align-items: normal; flex-direction: column;";case"style-2":return"display: flex; align-items: normal; flex-direction: column-reverse;";case"style-3":return"display: flex; align-items: normal; flex-direction: column;"}else if("on"===o)switch(n){case"style-1":return"display: flex; align-items: center; flex-direction: row;";case"style-2":return"display: flex; align-items: center; flex-direction: row-reverse;";case"style-3":return"display: flex; align-items: center; flex-direction: row;"}}function Qr({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t}),a=Object(x.gc)({v:e,device:t}),r=hr({v:e,device:t}),i=ur({v:e,device:t}),l=pr({v:e,device:t}),s=r+i+a-7;if("off"===o)switch(n){case"style-1":return`bottom: auto; top: 0; left: ${l}px;`;case"style-2":return`bottom: -15px; top: unset;left: ${l}px;`;case"style-3":return`bottom: -15px; top: unset; left: ${l}px;`}else if("on"===o)switch(n){case"style-1":return`bottom: auto; left: ${s}px; top: 50%;`;case"style-2":return`bottom: -15px; right: ${s}px; left: unset; top: 50%;`;case"style-3":return`bottom: -15px; left: ${s}px; top: 50%;`}}function ei({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t});return"off"===o&&"style-3"===n?"bottom: unset;":"off"===o&&"style-2"===n?"bottom: -15px;":void 0}function ti({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t});return"off"===o&&"style-3"===n?"position: absolute; top: 0; transform: translateY(-100%);":"on"===o?"position: relative; left: -10px; transform: none;":"position: relative; transform: none;"}function oi({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t});if("off"===o)switch(n){case"style-1":case"style-2":return"position: relative; transform: none;";case"style-3":return"position: absolute; bottom: 0; top: auto; transform: translateY(100%);"}else if("on"===o)switch(n){case"style-1":case"style-2":case"style-3":return"position: relative; left: -10px; transform: none;"}}function ni({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t});if("off"===o)switch(n){case"style-1":return"flex-direction: column;";case"style-2":case"style-3":return"flex-direction: column-reverse;"}else if("on"===o)switch(n){case"style-1":return"flex-direction: row;";case"style-2":case"style-3":return"flex-direction: row-reverse;"}}function ai({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t});if("on"===o)switch(n){case"style-1":return"flex-direction: row;";case"style-2":return"flex-direction: row-reverse;";case"style-3":return"flex-direction: row;"}else if("off"===o)switch(n){case"style-1":return"flex-direction: column;";case"style-2":return"flex-direction: column-reverse;";case"style-3":return"flex-direction: column;"}}function ri({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t});if("off"===o&&"style-3"===n)return"align-items: baseline;"}function ii({v:e,device:t}){const o=Object(x.fc)({v:e,device:t});return"on"===o?" margin-left: 0; line-height: 0; z-index: 1;":"off"===o?"margin-left: 20px":void 0}function li({v:e,device:t}){const o=Object(x.fc)({v:e,device:t});return"on"===o?"position: static;":"off"===o?"position: relative;":void 0}function si({v:e,device:t}){const o=Object(x.fc)({v:e,device:t});return"on"===o?"margin-bottom: 100px;":"off"===o?"margin-bottom: 0;":void 0}function ci({v:e,device:t}){if("on"===Object(x.fc)({v:e,device:t}))return"margin-bottom: 0;"}function di({v:e,device:t}){if("on"===Object(x.fc)({v:e,device:t}))return"display: none;"}function ui({v:e,device:t}){const o=Object(x.fc)({v:e,device:t}),n=Object(x.hc)({v:e,device:t});if("on"===o&&"style-3"===n)return"display: none;"}function pi({v:e,device:t,state:o}){return`width: ${2*Object(x.Rb)({v:e,device:t,state:o})}px;`}function bi({v:e,device:t,state:o}){return`height: ${Object(x.Rb)({v:e,device:t,state:o})}px;`}function mi({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"activeBg"})}function hi({v:e,device:t,state:o}){return`margin-bottom:${Object(x.Sb)({v:e,device:t,state:o})}px;`}function gi({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"activeColor"})}function vi({v:e,device:t,state:o}){return`width: ${Object(x.Tb)({v:e,device:t,state:o})}px`}function fi({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,prefix:"h1Color",state:o});return void 0===n?"":`color:${n};`}function yi({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,prefix:"h2Color",state:o});return void 0===n?"":`color:${n};`}function Oi({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,prefix:"h3Color",state:o});return void 0===n?"":`color:${n};`}function Si({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,prefix:"h4Color",state:o});return void 0===n?"":`color:${n};`}function Ci({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,prefix:"h5Color",state:o});return void 0===n?"":`color:${n};`}function xi({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,prefix:"h6Color",state:o});return void 0===n?"":`color:${n};`}function ji({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,prefix:"paragraphColor",state:o});return void 0===n?"":`color:${n};`}function Bi({v:e,device:t}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:"paragraph"})};`:""}function Pi({v:e,device:t}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:"paragraph"})}px;`}function wi({v:e,device:t}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:"paragraph"})};`}function Ti({v:e,device:t}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:"paragraph"})};`}function zi({v:e,device:t}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:"paragraph"})}px;`}function Ei({v:e,device:t}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:"h1"})};`:""}function ki({v:e,device:t}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:"h1"})}px;`}function Hi({v:e,device:t}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:"h1"})};`}function _i({v:e,device:t}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:"h1"})};`}function Fi({v:e,device:t}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:"h1"})}px;`}function Ri({v:e,device:t}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:"h2"})};`:""}function Mi({v:e,device:t}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:"h2"})}px;`}function Li({v:e,device:t}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:"h2"})};`}function Wi({v:e,device:t}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:"h2"})};`}function Ii({v:e,device:t}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:"h2"})}px;`}function Ni({v:e,device:t}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:"h3"})};`:""}function Ai({v:e,device:t}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:"h3"})}px;`}function Di({v:e,device:t}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:"h3"})};`}function Vi({v:e,device:t}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:"h3"})};`}function $i({v:e,device:t}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:"h3"})}px;`}function Gi({v:e,device:t}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:"h4"})};`:""}function Ui({v:e,device:t}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:"h4"})}px;`}function Ki({v:e,device:t}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:"h4"})};`}function qi({v:e,device:t}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:"h4"})};`}function Yi({v:e,device:t}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:"h4"})}px;`}function Xi({v:e,device:t}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:"h5"})};`:""}function Zi({v:e,device:t}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:"h5"})}px;`}function Ji({v:e,device:t}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:"h5"})};`}function Qi({v:e,device:t}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:"h5"})};`}function el({v:e,device:t}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:"h5"})}px;`}function tl({v:e,device:t}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:"h6"})};`:""}function ol({v:e,device:t}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:"h6"})}px;`}function nl({v:e,device:t}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:"h6"})};`}function al({v:e,device:t}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:"h6"})};`}function rl({v:e,device:t}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:"h6"})}px;`}function il(){return"font-weight: inherit;"}function ll({v:e,device:t,state:o,prefix:n="saleColor"}){const a=Object(x.B)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`color:${a};`}function sl({v:e,device:t,prefix:o="sale"}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:o})};`:""}function cl({v:e,device:t,prefix:o="sale"}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:o})}px;`}function dl({v:e,device:t,prefix:o="sale"}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:o})};`}function ul({v:e,device:t,prefix:o="sale"}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:o})};`}function pl({v:e,device:t,prefix:o="sale"}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:o})}px;`}function bl({v:e,device:t,state:o}){const n="on"===Object(x.Oc)({v:e,device:t,state:o})?"column":"row";return void 0===n?"":`flex-direction: ${n};`}function ml({v:e,device:t,state:o}){const n=Object(x.Oc)({v:e,device:t,state:o}),a=Object(x.Pc)({v:e,device:t,state:o})/2;return void 0===a?"":"on"===n?`margin: 0 0 ${a}px 0;`:`margin: 0 ${a}px 0 0;`}function hl({v:e,device:t,state:o}){const n=Object(x.Oc)({v:e,device:t,state:o}),a=Object(x.Pc)({v:e,device:t,state:o})/2;return void 0===a?"":"on"===n?`margin: ${a}px 0 0 0;`:`margin: 0 0 0 ${a}px;`}function gl({v:e,device:t,prefix:o="attributes"}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:o})};`:""}function vl({v:e,device:t,prefix:o="attributes"}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:o})}px;`}function fl({v:e,device:t,prefix:o="attributes"}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:o})};`}function yl({v:e,device:t,prefix:o="attributes"}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:o})};`}function Ol({v:e,device:t,prefix:o="attributes"}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:o})}px;`}function Sl({v:e,device:t,state:o}){const n=Object(x.yc)({v:e,device:t,state:o}),a=Object(x.xc)({v:e,device:t,state:o});return null==n||null==a?"":`padding: ${a}px ${n}px;`}function Cl({v:e,device:t,prefix:o="attributeColor",state:n}){const a=Object(x.B)({v:e,device:t,prefix:o,state:n});return void 0===a?"":`color:${a};`}function xl({v:e,device:t,state:o}){const n=Object(x.u)({v:e,device:t,state:o,current:"top"}),a=Object(x.r)({v:e,device:t,state:o}),r=Object(x.n)({v:e,device:t,state:o}),i=Object(x.zc)({v:e,device:t,state:o}),l=(e,t)=>"table"===e?t:0;return void 0===n?"":`border-top: ${l(i,n)}px; border-right: ${l(i,n)}px; border-bottom: ${n}px; border-left: ${l(i,n)}px; border-style: ${a}; border-color: ${r};`}function jl({v:e,device:t,state:o}){return"table"===Object(x.zc)({v:e,device:t,state:o})?"":"border-bottom-width: 0;"}function Bl({v:e,device:t,state:o}){const n=Object(P.defaultValueValue)({v:e,key:"gridColumn",device:t,state:o});return`width:${n>1?100/n:100}%;`}function Pl({v:e,device:t}){return`padding: ${o="padding",Object(P.defaultValueValue)({v:e,key:o,device:t})}px;`;var o}function wl({v:e,device:t,state:o}){return`margin-top: ${Object(P.defaultValueValue)({v:e,key:"paginationSpacing",device:t,state:o})}px;`}function Tl(){return"pointer-events: none; cursor: default;"}function zl({v:e,device:t,state:o}){return G({v:e,device:t,state:o,prefix:"pagination"})}function El({v:e,device:t,state:o}){return U({v:e,device:t,state:o,prefix:"pagination"})}function kl({v:e,device:t,state:o}){return K({v:e,device:t,state:o,prefix:"pagination"})}function Hl({v:e,device:t,state:o}){return q({v:e,device:t,state:o,prefix:"pagination"})}function _l({v:e,device:t,state:o}){return Y({v:e,device:t,state:o,prefix:"pagination"})}function Fl({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"paginationColor"})}function Rl({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"paginationBg"})}function Ml({v:e,device:t,state:o}){return ke({v:e,device:t,state:o,prefix:"pagination"})}function Ll({v:e,device:t,state:o}){return _e({v:e,device:t,state:o,prefix:"pagination"})}function Wl({v:e,device:t,state:o}){return"off"===Object(P.defaultValueValue)({v:e,key:"filter",device:t,state:o})?"display:none;":"display: flex;"}function Il({v:e,device:t,state:o}){const n=Object(x.c)({v:e,device:t,state:o,prefix:"filter"});return`justify-content:${void 0===n?n:{left:"flex-start",center:"center",right:"flex-end"}[n]};`}function Nl({v:e,device:t,state:o}){const n=Object(P.defaultValueValue)({v:e,key:"filterSpacing",device:t,state:o});return`margin: 1px ${n}px 0 ${n}px;`}function Al({v:e,device:t,state:o}){return`margin-bottom: ${Object(P.defaultValueValue)({v:e,key:"afterFilterSpacing",device:t,state:o})}px;`}function Dl({v:e,device:t,state:o}){return G({v:e,device:t,state:o,prefix:"filter"})}function Vl({v:e,device:t,state:o}){return U({v:e,device:t,state:o,prefix:"filter"})}function $l({v:e,device:t,state:o}){return K({v:e,device:t,state:o,prefix:"filter"})}function Gl({v:e,device:t,state:o}){return q({v:e,device:t,state:o,prefix:"filter"})}function Ul({v:e,device:t,state:o}){return Y({v:e,device:t,state:o,prefix:"filter"})}function Kl({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"filterColor"})}function ql({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"filterBg"})}function Yl({v:e,device:t,state:o}){return ke({v:e,device:t,state:o,prefix:"filter"})}function Xl({v:e,device:t,state:o}){return _e({v:e,device:t,state:o,prefix:"filter"})}function Zl({v:e,device:t,state:o}){return gt({v:e,device:t,state:o,prefix:"filter"})}function Jl({v:e,device:t,state:o}){return Oo({v:e,device:t,state:o,prefix:"filter"})}function Ql({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"activeFilterColor"})}function es({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"activeFilterBg"})}function ts({v:e,device:t,state:o}){return ke({v:e,device:t,state:o,prefix:"activeFilter"})}function os({v:e,device:t,state:o}){return gt({v:e,device:t,state:o,prefix:"activeFilter"})}function ns({v:e,device:t,state:o}){return n="horizontalAlign",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o});var n}function as({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"filterColor"})}function rs({v:e,device:t}){return bt({v:e,device:t,state:"active",prefix:"filterColor"})}function is({v:e,device:t}){return ot({v:e,device:t,state:"active",prefix:"filterBg"})}function ls({v:e,device:t}){return ke({v:e,device:t,state:"active",prefix:"filter"})}function ss({v:e,device:t}){return gt({v:e,device:t,state:"active",prefix:"filter"})}function cs({v:e,device:t,state:o}){return ot({v:e,device:t,state:o,prefix:"filterBg"})}function ds({v:e,device:t,state:o}){return ke({v:e,device:t,state:o,prefix:"filter"})}function us({v:e,device:t,state:o}){return _e({v:e,device:t,state:o,prefix:"filter"})}function ps({v:e,device:t,state:o}){return gt({v:e,device:t,state:o,prefix:"filter"})}function bs({v:e,device:t,state:o}){return`margin-top: -${Object(x.u)({v:e,device:t,state:o})}px `}function ms({v:e,device:t,state:o}){return`margin-bottom: ${function({v:e,device:t,state:o}){return n="spacing",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o});var n}({v:e,device:t,state:o})}px `}function hs({v:e,device:t,state:o}){const n=function({v:e,device:t,state:o}){return n="filterSpacing",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o});var n}({v:e,device:t,state:o});return`margin: 1px ${n}px 0 ${n}px;`}function gs({v:e,device:t,state:o}){return`margin-bottom:${function({v:e,device:t,state:o}){return n="afterFilterSpacing",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o});var n}({v:e,device:t,state:o})}px;`}function vs({v:e,device:t,state:o}){if("right"===ns({v:e,device:t,state:o}))return"flex-direction: row-reverse;"}function fs({v:e,device:t,state:o}){if("center"===ns({v:e,device:t,state:o}))return"margin-left: auto; margin-right: auto;"}function ys({v:e,device:t,state:o}){return"center"===ns({v:e,device:t,state:o})?"margin-left: 10px;":""}function Os({v:e,device:t}){return`font-size: ${.75*Object(x.Ud)({v:e,device:t})}px;`}function Ss({v:e,device:t,state:o}){const n=Object(x.c)({v:e,device:t,state:o,prefix:"filter"});return`justify-content:${void 0===n?n:{left:"flex-start",center:"center",right:"flex-end"}[n]};`}function Cs({v:e,device:t,state:o}){return Oo({v:e,device:t,state:o,prefix:"filter"})}function xs({v:e,device:t}){return G({v:e,device:t,prefix:"filter"})}function js({v:e,device:t}){return U({v:e,device:t,prefix:"filter"})}function Bs({v:e,device:t}){return K({v:e,device:t,prefix:"filter"})}function Ps({v:e,device:t}){return q({v:e,device:t,prefix:"filter"})}function ws({v:e,device:t}){return Y({v:e,device:t,prefix:"filter"})}function Ts({v:e,device:t}){return bt({v:e,device:t,state:"active",prefix:"color"})}function zs({v:e,device:t}){return ot({v:e,device:t,state:"active",prefix:"bg"})}function Es({v:e,device:t}){return ke({v:e,device:t,state:"active"})}function ks({v:e,device:t}){return gt({v:e,device:t,state:"active"})}function Hs({v:e}){return`transition: height ${e.animDuration}s ease-out;`}function _s(){return"transition-property: color, box-shadow, background, border;"}function Fs({v:e,device:t,state:o}){const n=n=>Object(P.defaultValueValue)({v:e,key:n,device:t,state:o}),a=n("iconPosition"),r=n("iconSpacing");switch(a){case"left":return`margin: 0 ${r}px 0 0;`;case"right":return`margin: 0 0 0 ${r}px;`;case"top":return`margin: 0 0 ${r}px 0;`;case"bottom":return`margin: ${r}px 0 0 0;`}}function Rs({v:e,device:t,state:o}){var n;return`font-size: ${n="iconCustomSize",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o})}px;`}function Ms({v:e}){var t;return`border-bottom-color: ${t="bgColorHex",Object(P.defaultValueValue)({v:e,key:t})};`}function Ls({v:e}){var t;return`border-right-color: ${t="bgColorHex",Object(P.defaultValueValue)({v:e,key:t})};`}function Ws({v:e}){var t;return`border-left-color: ${t="bgColorHex",Object(P.defaultValueValue)({v:e,key:t})};`}function Is({v:e,state:t}){return`background-color: ${Object(x.n)({v:e,state:t})}; z-index: 1;`}function Ns({v:e,device:t,state:o}){return`height: ${Object(x.s)({v:e,device:t,state:o})}px;`}function As({v:e,device:t,state:o}){return`width: ${Object(x.s)({v:e,device:t,state:o})}px;`}function Ds({v:e,device:t,state:o}){return`right: calc(-100vw + ${Object(x.s)({v:e,device:t,state:o})}px);`}function Vs({v:e,device:t,state:o}){return`left: calc(-100vw + ${Object(x.s)({v:e,device:t,state:o})}px);`}function $s({v:e,device:t,state:o}){return`border-width: 0 0 ${Object(x.s)({v:e,device:t,state:o})}px 0;`}function Gs({v:e}){return 0===e.items.length?"border-top: 1px solid transparent; margin-top: -1px;":""}function Us({v:e,device:t,state:o}){var n;switch(n="iconPosition",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o})){case"left":return"flex-direction: row;";case"right":return"flex-direction: row-reverse;";case"top":return"flex-direction: column;";case"bottom":return"flex-direction: column-reverse;"}}function Ks({v:e,device:t,state:o}){var n;return`justify-content: ${"left"===(n="iconPosition",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o}))?"flex-start":"flex-end"};`}function qs({v:e,device:t,state:o}){var n;return`top: calc(100% - ${n="borderWidth",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o})}px);`}function Ys({v:e,device:t,state:o}){var n;return`bottom: calc(100% - ${n="borderWidth",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o})}px);`}function Xs({v:e,device:t,state:o}){var n;return`margin-bottom: ${n="spacingAfter",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o})}px;`}function Zs({v:e,device:t,state:o}){const n=n=>Object(P.defaultValueValue)({v:e,key:n,device:t,state:o}),a=n("spacingAfter");return"left"===n("verticalAlign")?`margin: 0 ${a}px 0 0;`:`margin: 0 0 0 ${a}px;`}function Js({v:e,device:t,state:o}){const n=n=>Object(P.defaultValueValue)({v:e,key:n,device:t,state:o}),a=n("spacing");return"off"===n("verticalMode")?`margin: 0 ${a}px 0 0;`:`margin: 0 0 ${a}px 0;`}function Qs({v:e,device:t,state:o}){const n=(a="horizontalAlign",Object(P.defaultValueValue)({v:e,key:a,device:t,state:o}));var a;return"justify"===n?"flex-grow: 1;":`justify-content:${{left:"flex-start",center:"center",right:"flex-end"}[n]};`}function ec({v:e,device:t,state:o}){var n;return"style-3"!==(n="navStyle",Object(P.defaultValueValue)({v:e,key:n,device:t,state:o}))?Oo({v:e,device:t,state:o}):""}function tc({v:e,device:t,state:o}){const n=n=>Object(P.defaultValueValue)({v:e,key:n,device:t,state:o}),a=n("verticalMode"),r=n("verticalAlign"),i=Object(x.n)({v:e,device:t,state:o});let l=Object(x.s)({v:e,device:t,state:o});if("off"===a)return 0===l&&(l=1),`content: ""; width: 100vw; height: ${l}px; background-color: ${i}; position: absolute; top: auto; bottom: 0; z-index: 1;`;if("on"===a){if("left"===r)return`content: ""; width: ${l}px; height: 100vh; background-color: ${i}; top: auto; left: auto; right: 0; `;if("right"===r)return`content: ""; width: ${l}px; height: 100vh; background-color: ${i}; top: auto; left: 0; right: auto; `}}function oc({v:e,device:t,state:o}){const n=n=>Object(P.defaultValueValue)({v:e,key:n,device:t,state:o}),a=n("verticalMode"),r=n("verticalAlign"),i=Object(x.n)({v:e,device:t,state:"active"}),l=Object(x.s)({v:e,device:t,state:"active"});if("off"===a)return`content: ""; width: 100%; height: ${l}px; background-color: ${i}; position: absolute; bottom: 0; left: 0; z-index: 2;`;if("on"===a){if("left"===r)return`content: ""; width: ${l}px; height: 100%; background-color: ${i}; position: absolute; right: 0; left: auto; z-index: 2;`;if("right"===r)return`content: ""; width: ${l}px; height: 100%; background-color: ${i}; position: absolute; right: auto; left: 0; z-index: 2;`}}function nc({v:e}){return bt({v:e,state:"active",prefix:"color"})}function ac({v:e}){return ot({v:e,state:"active",prefix:"bg"})}function rc({v:e}){return gt({v:e,state:"active"})}function ic({v:e}){return`border: ${Object(x.s)({v:e,state:"normal"})}px ${Object(x.r)({v:e,state:"normal"})} ${Object(x.n)({v:e,state:"active"})};`}function lc({v:e,device:t,prefix:o="name"}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:o})};`:""}function sc({v:e,device:t,prefix:o="name"}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:o})}px;`}function cc({v:e,device:t,prefix:o="name"}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:o})};`}function dc({v:e,device:t,prefix:o="name"}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:o})};`}function uc({v:e,device:t,prefix:o="name"}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:o})}px;`}function pc({v:e,device:t,prefix:o="comment"}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:o})};`:""}function bc({v:e,device:t,prefix:o="comment"}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:o})}px;`}function mc({v:e,device:t,prefix:o="comment"}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:o})};`}function hc({v:e,device:t,prefix:o="comment"}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:o})};`}function gc({v:e,device:t,prefix:o="comment"}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:o})}px;`}function vc({v:e,device:t,prefix:o="date"}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:o})};`:""}function fc({v:e,device:t,prefix:o="date"}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:o})}px;`}function yc({v:e,device:t,prefix:o="date"}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:o})};`}function Oc({v:e,device:t,prefix:o="date"}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:o})};`}function Sc({v:e,device:t,prefix:o="date"}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:o})}px;`}function Cc({v:e,device:t,prefix:o="reply"}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:o})} !important;`:""}function xc({v:e,device:t,prefix:o="reply"}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:o})}px !important;`}function jc({v:e,device:t,prefix:o="reply"}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:o})} !important;`}function Bc({v:e,device:t,prefix:o="reply"}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:o})} !important;`}function Pc({v:e,device:t,prefix:o="reply"}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:o})}px !important;`}function wc({v:e,device:t,prefix:o="postButton"}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:o})} !important;`:""}function Tc({v:e,device:t,prefix:o="postButton"}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:o})}px !important;`}function zc({v:e,device:t,prefix:o="postButton"}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:o})} !important;`}function Ec({v:e,device:t,prefix:o="postButton"}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:o})} !important;`}function kc({v:e,device:t,prefix:o="postButton"}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:o})}px !important;`}function Hc({v:e,device:t,state:o="normal"}){const n=Object(x.Z)({v:e,device:t,state:o});return`width: ${n}px !important; height: ${n}px;`}function _c({v:e,device:t,state:o="normal"}){return`width: calc(100% - ${Object(x.Z)({v:e,device:t,state:o})+("skin3"===Object(x.ab)({v:e,device:t,state:o})?25:10)}px);`}function Fc({v:e,device:t,state:o,prefix:n="postButtonColor"}){const a=Object(x.B)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`color:${a};`}function Rc({v:e,device:t,state:o,prefix:n="postButtonBg"}){return ot({v:e,device:t,state:o,prefix:n})}function Mc({v:e,device:t,state:o="normal",prefix:n="postButtonBg"}){const a=Object(x.h)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`color:${a} !important;`}function Lc({v:e,device:t,state:o,prefix:n="nameColor"}){const a=Object(x.B)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`color:${a};`}function Wc({v:e,device:t,state:o,prefix:n="commentsColor"}){const a=Object(x.B)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`color:${a};`}function Ic({v:e,device:t,state:o="normal"}){return`margin-left:${Object(x.Z)({v:e,device:t,state:o})+("skin3"===Object(x.ab)({v:e,device:t,state:o})?25:10)}px;`}function Nc({v:e,device:t,state:o,prefix:n="starsColor"}){const a=Object(x.B)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`color:${a};`}function Ac({v:e,device:t,state:o,prefix:n="starsBgColor"}){const a=Object(x.B)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`color:${a};`}function Dc({v:e,device:t,state:o}){const n=n=>Object(P.defaultValueValue)({v:e,key:n,device:t,state:o});return`font-size:${n("starsSize")}${n("starsSizeSuffix")};`}function Vc({v:e,device:t,state:o,prefix:n}){const a=Object(x.B)({v:e,device:t,state:o,prefix:n});return void 0===a?"":`-webkit-text-fill-color:${a};`}function $c({v:e,device:t,state:o}){const n=Object(x.Kb)({v:e,device:t,state:o});return void 0===n?"":`min-width: ${n}px;`}function Gc({v:e,device:t,state:o}){const n=Object(x.Jb)({v:e,device:t,state:o});return void 0===n?"":`min-height: ${n}px;`}function Uc(){return"transition-property:background-color,color,border,box-shadow;"}function Kc({v:e,device:t}){const o=Object(x.Ud)({v:e,device:t,prefix:"typography"}),n=Object(x.Xd)({v:e,device:t,prefix:"typography"});return void 0===o||void 0===n?"":`height: ${o*n}px;`}function qc({v:e,device:t,state:o}){let n="column"===Object(x.Sc)({v:e,device:t,state:o})?"column":"row";return void 0===n?"":`flex-direction: ${n};`}function Yc({v:e,device:t,prefix:o="category"}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:o})};`:""}function Xc({v:e,device:t,prefix:o="category"}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:o})}px;`}function Zc({v:e,device:t,prefix:o="category"}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:o})};`}function Jc({v:e,device:t,prefix:o="category"}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:o})};`}function Qc({v:e,device:t,prefix:o="category"}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:o})}px;`}function ed({v:e,device:t,prefix:o="value"}){return"desktop"===t?`font-family:${Object(x.Td)({v:e,device:t,prefix:o})};`:""}function td({v:e,device:t,prefix:o="value"}){return`font-size:${Object(x.Ud)({v:e,device:t,prefix:o})}px;`}function od({v:e,device:t,prefix:o="value"}){return`line-height:${Object(x.Xd)({v:e,device:t,prefix:o})};`}function nd({v:e,device:t,prefix:o="value"}){return`font-weight:${Object(x.Vd)({v:e,device:t,prefix:o})};`}function ad({v:e,device:t,prefix:o="value"}){return`letter-spacing:${Object(x.Wd)({v:e,device:t,prefix:o})}px;`}function rd({v:e,device:t,state:o}){const n=Object(x.Rc)({v:e,device:t,state:o}),a=Object(x.Sc)({v:e,device:t,state:o});return void 0===n?"":"inline"===a?"padding-top: 0px;":`padding-top: ${n/2}px; padding-bottom: ${n/2}px;`}function id({v:e,device:t,state:o}){const n=Object(x.Qc)({v:e,device:t,state:o}),a=Object(x.Sc)({v:e,device:t,state:o});return void 0===n?"":"inline"===a?"padding-left: 10px;":`padding-left: ${n}px;`}function ld({v:e,device:t,state:o}){const n=Object(x.Qc)({v:e,device:t,state:o}),a=Object(x.Sc)({v:e,device:t,state:o});return void 0===n?"":"inline"===a?`margin-right: ${n}px;`:"margin-right: 0;"}function sd({v:e,device:t,prefix:o="categoryColor",state:n}){const a=Object(x.B)({v:e,device:t,prefix:o,state:n});return void 0===a?"":`color:${a};`}function cd({v:e,device:t,prefix:o="valueColor",state:n}){const a=Object(x.B)({v:e,device:t,prefix:o,state:n});return void 0===a?"":`color:${a};`}function dd({v:e,device:t,state:o}){const n=Object(x.Sc)({v:e,device:t,state:o}),a=Object(x.B)({v:e,device:t,state:o,prefix:"dividersColor"});return void 0===a?"":"inline"===n?"border-top: 0;":`border-top: 1px solid ${a};`}function ud({v:e,device:t,state:o}){return`font-size: ${Object(x.Tc)({v:e,device:t,state:o})}px;`}function pd({v:e,device:t,state:o,prefix:n="textColor"}){return`color: ${Object(x.B)({v:e,device:t,state:o,prefix:n})};`}function bd({v:e,device:t,state:o}){return`margin-left: ${Object(x.Qd)({v:e,device:t,state:o})}px;`}function md({v:e,device:t,state:o,prefix:n="bgStarColor"}){return`color: ${Object(x.B)({v:e,device:t,state:o,prefix:n})};`}function hd({v:e,device:t,state:o,prefix:n="iconColor"}){return bt({v:e,device:t,state:o,prefix:n})}function gd({v:e,device:t,state:o}){const n=Object(x.Lc)({v:e,device:t,state:o});return void 0===n||"on"===n?"":"display: none;"}function vd({v:e,device:t,state:o}){const n=Object(x.Cc)({v:e,device:t,state:o});return void 0===n||"off"===n?"":"content: attr(data-counter);"}function fd(){return"transition-property: background-color,color,border;"}function yd({v:e,device:t,state:o,prefix:n="purchasesColor"}){return bt({v:e,device:t,state:o,prefix:n})}function Od({v:e,device:t,prefix:o="purchases"}){return G({v:e,device:t,prefix:o})}function Sd({v:e,device:t,prefix:o="purchases"}){return U({v:e,device:t,prefix:o})}function Cd({v:e,device:t,prefix:o="purchases"}){return K({v:e,device:t,prefix:o})}function xd({v:e,device:t,prefix:o="purchases"}){return q({v:e,device:t,prefix:o})}function jd({v:e,device:t,prefix:o="purchases"}){return Y({v:e,device:t,prefix:o})}function Bd({v:e,device:t,prefix:o="title"}){return G({v:e,device:t,prefix:o})}function Pd({v:e,device:t,prefix:o="title"}){return U({v:e,device:t,prefix:o})}function wd({v:e,device:t,prefix:o="title"}){return K({v:e,device:t,prefix:o})}function Td({v:e,device:t,prefix:o="title"}){return q({v:e,device:t,prefix:o})}function zd({v:e,device:t,prefix:o="title"}){return Y({v:e,device:t,prefix:o})}function Ed({v:e,device:t,prefix:o="cost"}){return G({v:e,device:t,prefix:o})}function kd({v:e,device:t,prefix:o="cost"}){return U({v:e,device:t,prefix:o})}function Hd({v:e,device:t,prefix:o="cost"}){return K({v:e,device:t,prefix:o})}function _d({v:e,device:t,prefix:o="cost"}){return q({v:e,device:t,prefix:o})}function Fd({v:e,device:t,prefix:o="cost"}){return Y({v:e,device:t,prefix:o})}function Rd({v:e,device:t,prefix:o="subtotal"}){return G({v:e,device:t,prefix:o})}function Md({v:e,device:t,prefix:o="subtotal"}){return U({v:e,device:t,prefix:o})}function Ld({v:e,device:t,prefix:o="subtotal"}){return K({v:e,device:t,prefix:o})}function Wd({v:e,device:t,prefix:o="subtotal"}){return q({v:e,device:t,prefix:o})}function Id({v:e,device:t,prefix:o="subtotal"}){return Y({v:e,device:t,prefix:o})}function Nd({v:e,device:t,prefix:o="button"}){return G({v:e,device:t,prefix:o})}function Ad({v:e,device:t,prefix:o="button"}){return U({v:e,device:t,prefix:o})}function Dd({v:e,device:t,prefix:o="button"}){return K({v:e,device:t,prefix:o})}function Vd({v:e,device:t,prefix:o="button"}){return q({v:e,device:t,prefix:o})}function $d({v:e,device:t,prefix:o="button"}){return Y({v:e,device:t,prefix:o})}function Gd({v:e,device:t,state:o,prefix:n="titleColor"}){return bt({v:e,device:t,state:o,prefix:n})}function Ud({v:e,device:t,state:o,prefix:n="costColor"}){return bt({v:e,device:t,state:o,prefix:n})}function Kd({v:e,device:t,state:o,prefix:n="subtotalColor"}){return bt({v:e,device:t,state:o,prefix:n})}function qd({v:e,device:t,state:o,prefix:n="buttonColor"}){return bt({v:e,device:t,state:o,prefix:n})}function Yd({v:e,device:t,state:o,prefix:n="buttonBg"}){return ot({v:e,device:t,state:o,prefix:n})}function Xd({v:e,device:t,state:o}){const n="inline"===Object(x.Ac)({v:e,device:t,state:o})?"row":"column";return void 0===n?"":`flex-direction: ${n};`}function Zd({v:e,device:t,state:o}){const n=Object(x.Ac)({v:e,device:t,state:o}),a=Object(x.Bc)({v:e,device:t,state:o});return void 0===a?"":"inline"===n?`width: calc(50% - ${a/2}px);`:`width: 100%; margin-bottom: ${a}px;`}function Jd({v:e,device:t,state:o}){return _e({v:e,device:t,state:o,prefix:"button"})}function Qd({v:e,device:t,state:o}){const n=Object(x.Hc)({v:e,device:t,state:o});return null==n?"":{left:"left: 0; margin-right: auto; margin-left: 0;",center:"left: 0; right: 0; margin-left: auto; margin-right: auto;",right:"right: 0; margin-right: 0; margin-left: auto;"}[n]}function eu({v:e,device:t,state:o}){const n={top:"top: 0; margin-top: 0; margin-bottom: auto;",center:"auto"===Object(x.Fc)({v:e,device:t,state:o})?"top: 50%; margin-top: auto; margin-bottom: auto; transform: translate(0, -50%);":"top: 0; bottom: 0; margin-top: auto; margin-bottom: auto;",bottom:"top: auto; bottom: 0; margin-top: auto; margin-bottom: 0;"},a=Object(x.Ic)({v:e,device:t,state:o});return null==a?"":n[a]}function tu({v:e,device:t,state:o}){const n=Object(x.Jc)({v:e,device:t,state:o}),a=Object(x.Kc)({v:e,device:t,state:o});return null==n&&null==a?"":`width: ${n}${a};`}function ou({v:e,device:t,state:o}){const n=Object(x.Fc)({v:e,device:t,state:o}),a=Object(x.Ec)({v:e,device:t,state:o}),r=Object(x.Gc)({v:e,device:t,state:o});return null==a&&null==r?"":`height:${{auto:"auto",custom:`${a}${r}`,fullHeight:"100vh"}[n]};`}function nu({v:e,device:t,state:o,prefix:n="bubbleColor"}){return bt({v:e,device:t,state:o,prefix:n})}function au({v:e,device:t,state:o,prefix:n="bubbleBg"}){return"bubble"!==Object(x.Dc)({v:e,device:t,state:o})?"background-color: transparent;":nt({v:e,device:t,state:o,prefix:n})}var ru=o(31);function iu({v:e,device:t,state:o}){var n;const a=n=>Object(P.defaultValueValue)({v:e,key:n,device:t,state:o});if("relative"===(null!==(n=a("elementPosition"))&&void 0!==n?n:"relative"))return"";const r=Object(ru.g)(Sn.a.read(a("height"))),i=a("heightSuffix");return r&&i?`content: ""; width: 0; padding-top:${r}${i} !important;`:""}function lu({v:e,device:t,state:o}){var n;var a;return"relative"===(null!==(a="elementPosition",n=Object(P.defaultValueValue)({v:e,key:a,device:t,state:o}))&&void 0!==n?n:"relative")?"":"align-items: stretch;"}function su({v:e,device:t,state:o,mode:n}){var a;if("editor"!==n)return"";var r;return"relative"===(null!==(a=Cn.a((r="elementPosition",Object(P.defaultValueValue)({v:e,key:r,device:t,state:o}))))&&void 0!==a?a:"relative")?"":"display: flex; flex: 1 1 auto;"}const cu=({v:e,device:t,state:o})=>{var n;var a;return"relative"===(null!==(n=Cn.a((a="elementPosition",Object(P.defaultValueValue)({v:e,key:a,device:t,state:o}))))&&void 0!==n?n:"relative")?"":"display: flex; width: 100%"},du=({v:e,device:t,state:o})=>{var n;var a;return"relative"===(null!==(n=Cn.a((a="elementPosition",Object(P.defaultValueValue)({v:e,key:a,device:t,state:o}))))&&void 0!==n?n:"relative")?"":"width: 100%"};function uu({v:e,device:t,state:o}){const n=Object(x.Bb)({v:e,device:t,state:o}),a=Object(x.mb)({v:e,device:t,state:o});if("horizontal"===n||"on"===a)return mo({v:e,device:t,state:o});return`text-align: ${Object(x.c)({v:e,device:t,state:o})};`}function pu({v:e,device:t,state:o}){return`margin-right: ${Object(x.Ab)({v:e,device:t,state:o})}px;`}function bu({v:e,device:t,state:o}){return`font-size: ${Object(x.zb)({v:e,device:t,state:o})}px;`}function mu({v:e,device:t,state:o}){return`display: ${"on"===Object(x.mb)({v:e,device:t,state:o})?"flex":"none"};`}function hu({v:e,device:t,state:o}){return`display: ${"on"===Object(x.mb)({v:e,device:t,state:o})?"none":"flex"};`}function gu({v:e,device:t,state:o}){return"horizontal"===Object(x.Bb)({v:e,device:t,state:o})?"display: flex; flex-wrap: wrap; justify-content: inherit; align-items: center;":"display: inline-block;"}function vu({v:e,device:t,state:o}){if("vertical"===Object(x.Bb)({v:e,device:t,state:o})){return`max-width: ${Object(x.Cb)({v:e,device:t,state:o})}%; width: 100%;`}return"max-width: none;"}function fu({v:e,device:t,state:o}){return"vertical"===Object(x.Bb)({v:e,device:t,state:o})?ot({v:e,device:t,state:o,prefix:"menuBg"}):"background-color: transparent;"}function yu({v:e,device:t,state:o}){return"horizontal"===Object(x.Bb)({v:e,device:t,state:o})?ot({v:e,device:t,state:o,prefix:"menuBg"}):"background-color: transparent;"}function Ou({v:e,device:t,state:o}){return ke({v:e,device:t,state:o,prefix:"menu"})}function Su({v:e,device:t,state:o}){return Oo({v:e,device:t,state:o,prefix:"menu"})}function Cu({v:e,device:t}){return bt({v:e,device:t,state:"hover"})}function xu({v:e,device:t,state:o}){return"horizontal"===Object(x.Bb)({v:e,device:t,state:o})?ot({v:e,device:t,state:"hover",prefix:"menuBg"}):"background-color: transparent;"}function ju({v:e,device:t}){return ot({v:e,device:t,state:"hover",prefix:"menuBg"})}function Bu({v:e,device:t}){return ke({v:e,device:t,state:"hover",prefix:"menu"})}function Pu({v:e,device:t}){return bt({v:e,device:t,state:"active"})}function wu({v:e,device:t}){return ot({v:e,device:t,prefix:"activeMenuBg"})}function Tu({v:e,device:t,state:o}){return"horizontal"===Object(x.Bb)({v:e,device:t,state:o})?ot({v:e,device:t,prefix:"activeMenuBg"}):"background-color: transparent;"}function zu({v:e,device:t}){return ke({v:e,device:t,prefix:"activeMenu"})}function Eu({v:e,device:t,state:o}){return`font-size: ${Object(x.qb)({v:e,device:t,state:o})}px;`}function ku({v:e,device:t}){return G({v:e,device:t,prefix:"mMenu"})}function Hu({v:e,device:t}){return U({v:e,device:t,prefix:"mMenu"})}function _u({v:e,device:t}){return K({v:e,device:t,prefix:"mMenu"})}function Fu({v:e,device:t}){return q({v:e,device:t,prefix:"mMenu"})}function Ru({v:e,device:t}){return Y({v:e,device:t,prefix:"mMenu"})}function Mu({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"mMenuColor"})}function Lu({v:e,device:t}){return`color: ${Object(x.nb)({v:e,device:t})};`}function Wu({v:e,device:t}){return bt({v:e,device:t,state:"active",prefix:"mMenuColor"})}function Iu({v:e,device:t,state:o}){return`border-color: ${Object(x.n)({v:e,device:t,state:o,prefix:"mMenu"})};`}function Nu({v:e,device:t,state:o}){return`background-color: ${Object(x.h)({v:e,device:t,state:o,prefix:"mMenuBg"})};`}function Au({v:e,device:t,state:o}){return`justify-content: ${{left:"flex-start",center:"center",right:"flex-end"}[Object(x.c)({v:e,device:t,state:o,prefix:"mMenuItem"})]};`}function Du({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"mMenuIconColor"})}function Vu({v:e,device:t,state:o}){return`margin-right: ${Object(x.pb)({v:e,device:t,state:o})}px;`}function $u({v:e,device:t,state:o}){return`font-size: ${Object(x.ob)({v:e,device:t,state:o})}px;`}function Gu({v:e,device:t}){const o=Object(x.Xd)({v:e,device:t,prefix:"mMenu"}),n=Object(x.Ud)({v:e,device:t,prefix:"mMenu"}),{paddingTop:a,paddingTopSuffix:r,paddingBottom:i,paddingBottomSuffix:l,paddingRight:s,paddingRightSuffix:c}=Bo({v:e,device:t,prefix:"mMenu"});return`${`height: calc(${Math.round(o*n*10)/10}px + ${`${a}${r}`} + ${`${i}${l}`})`}; padding-right: ${s}${c};`}function Uu({v:e,device:t}){if("vertical"===Object(x.Bb)({v:e,device:t}))return"margin: 0;";return`margin: ${Object(x.fd)({v:e,device:t})} ${Object(x.ed)({v:e,device:t})} ${Object(x.cd)({v:e,device:t})} ${Object(x.dd)({v:e,device:t})};`}function Ku({v:e,device:t,state:o}){const n=Object(x.Bb)({v:e,device:t,state:o}),a=Object(x.jd)({v:e,device:t}),r=Object(x.id)({v:e,device:t}),i=Object(x.gd)({v:e,device:t}),l=Object(x.hd)({v:e,device:t});return"horizontal"===n?`padding-top:${a}; padding-bottom:${i}; margin-right:${r}; margin-left:${l};`:`margin-top:${r}; margin-bottom:${l}; margin-right:0; margin-left:0;`}function qu({v:e,device:t,state:o}){return"horizontal"===Object(x.Bb)({v:e,device:t,state:o})?"":"margin-top: 0;"}function Yu({v:e,device:t,state:o}){return"horizontal"===Object(x.Bb)({v:e,device:t,state:o})?"":"margin-bottom: 0;"}function Xu({v:e,device:t,state:o}){return Oo({v:e,device:t,state:o,prefix:"mMenu"})}function Zu({v:e,device:t}){return G({v:e,device:t,prefix:"subMenu"})}function Ju({v:e,device:t}){return U({v:e,device:t,prefix:"subMenu"})}function Qu({v:e,device:t}){return K({v:e,device:t,prefix:"subMenu"})}function ep({v:e,device:t}){return q({v:e,device:t,prefix:"subMenu"})}function tp({v:e,device:t}){return Y({v:e,device:t,prefix:"subMenu"})}function op({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"subMenuColor"})}function np({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"subMenuHoverColor"})}function ap({v:e,device:t}){return`margin-right: ${Object(x.Eb)({v:e,device:t})}px;`}function rp({v:e,device:t,state:o}){return`font-size: ${Object(x.Db)({v:e,device:t,state:o})}px;`}function ip({v:e,device:t,state:o}){return`background-color: ${Object(x.h)({v:e,device:t,state:o,prefix:"subMenuBg"})};`}function lp({v:e,device:t,state:o}){return`background-color: ${Object(x.h)({v:e,device:t,state:o,prefix:"subMenuHoverBg"})};`}function sp({v:e,device:t,state:o}){return`border-color: ${Object(x.B)({v:e,device:t,state:o,prefix:"subMenuColor"})};`}function cp({v:e,device:t,state:o}){const n=Object(x.n)({v:e,device:t,state:o,prefix:"subMenu"}),a=Object(x.r)({v:e,device:t,state:o,prefix:"subMenu"});return`border-bottom: ${Object(x.s)({v:e,device:t,state:o,prefix:"subMenu"})}px ${a} ${n};`}function dp({v:e,device:t}){return bt({v:e,device:t,prefix:"activeSubMenuColor"})}function up({v:e,device:t}){return`background-color: ${Object(x.h)({v:e,device:t,prefix:"activeSubMenuBg"})};`}function pp({v:e,device:t}){return gt({v:e,device:t,state:"active"})}function bp({v:e,device:t,state:o}){if("vertical"===Object(x.Bb)({v:e,device:t,state:o})&&(t===Fn.c||t===Fn.b))return"position: relative;top: auto; left: auto; transform: translate(0, 0); height: 0; overflow: hidden;"}function mp({v:e,device:t,state:o}){if("horizontal"===Object(x.Bb)({v:e,device:t,state:o})&&(t===Fn.c||t===Fn.b))return"position: relative;top: auto; left: auto; transform: translate(0, 0); height: 0; overflow: hidden;"}function hp({v:e,device:t,state:o}){if("vertical"===Object(x.Bb)({v:e,device:t,state:o})&&(t===Fn.c||t===Fn.b))return"height: auto; width: 100%; left: auto; right: auto;"}function gp({v:e,device:t,state:o}){if("horizontal"===Object(x.Bb)({v:e,device:t,state:o})&&(t===Fn.c||t===Fn.b))return"height: auto; width: 100%; left: auto; right: auto;"}function vp({device:e}){if(e===Fn.c||e===Fn.b)return"border-right-style: solid; border-left-style: none;"}function fp(){return"position: absolute; top: 0; width: 305px;"}function yp({device:e}){return e!==Fn.a?"":"left: calc(100% + 5px);"}function Op({device:e}){return e!==Fn.a?"":"right: calc(100% + 5px);"}function Sp({device:e}){return e!==Fn.a?"":"left: -5px;"}function Cp({device:e}){return e!==Fn.a?"":"right: -5px;"}function xp({v:e,device:t,state:o}){return"horizontal"===Object(x.Bb)({v:e,device:t,state:o})?"top: calc(100% + 5px); width: 300px;":"top: 0; width: 300px;"}function jp({v:e,device:t,state:o}){return"horizontal"===Object(x.Bb)({v:e,device:t,state:o})?"left: 0;":"left: calc(100% + 5px);"}function Bp({v:e,device:t,state:o}){return"horizontal"===Object(x.Bb)({v:e,device:t,state:o})?"right: 0;":"right: calc(100% + 5px);"}function Pp({v:e,device:t,state:o}){return"horizontal"===Object(x.Bb)({v:e,device:t,state:o})?"top: -5px; left: 0;":"top: 0; left: -5px;"}function wp({v:e,device:t,state:o}){return"horizontal"===Object(x.Bb)({v:e,device:t,state:o})?"top: -5px; right: 0;":"top: 0; right: -5px;"}function Tp({v:e,device:t,state:o}){if("vertical"===Object(x.Bb)({v:e,device:t,state:o})||t===Fn.b){return`max-width: ${Object(x.xb)({v:e,device:t,state:o})}${Object(x.yb)({v:e,device:t,state:o})};`}return"max-width: 100%;"}function zp({v:e,device:t,state:o}){return`padding: ${Object(x.vb)({v:e,device:t,state:o})}px;`}function Ep({v:e,device:t,state:o}){if("custom"===Object(x.tb)({v:e,device:t,state:o})){return`min-height: ${Object(x.sb)({v:e,device:t,state:o})}${Object(x.ub)({v:e,device:t,state:o})};`}return"min-height: auto;"}function kp({v:e,device:t,state:o}){return"vertical"===Object(x.Bb)({v:e,device:t,state:o})||t===Fn.b?"display: block":"display: none;"}function Hp({v:e,device:t,state:o}){return`width: ${Object(x.bc)({v:e,device:t,state:o})}%;`}function _p({v:e,device:t,state:o}){return`font-size: ${Object(x.Zb)({v:e,device:t,state:o})}px;`}function Fp({v:e,device:t,state:o}){const n=Object(x.Yb)({v:e,device:t,state:o}),a=Object(x.ac)({v:e,device:t,state:o});return"left"===n?`margin: auto ${a}px auto 0;`:`margin: auto 0 auto ${a}px;`}function Rp({v:e,device:t,state:o}){return`flex-direction: ${"left"===Object(x.Yb)({v:e,device:t,state:o})?"row":"row-reverse"};`}function Mp({v:e,device:t,state:o}){const n=Object(x.Xb)({v:e,device:t,state:o});return"left"===Object(x.Yb)({v:e,device:t,state:o})||"center"===n?`justify-content: ${{left:"flex-start",center:"center",right:"flex-end"}[n]};`:"left"===n?"justify-content: flex-end;":"right"===n?"justify-content: flex-start;":void 0}function Lp({v:e,device:t,state:o}){return`text-align: ${Object(x.Xb)({v:e,device:t,state:o})};`}function Wp({v:e,device:t,state:o}){if("on"===Object(x.Ub)({v:e,device:t,state:o})){return`width: ${Object(x.Vb)({v:e,device:t,state:o})}px;`}return`width: calc(100% / ${Object(x.Wb)({v:e,device:t,state:o})});`}function Ip({v:e,device:t,state:o}){return`background-color: ${Object(x.h)({v:e,device:t,state:o,prefix:"activeBg"})};`}function Np({v:e,device:t,state:o}){return`color: ${Object(x.B)({v:e,device:t,state:o,prefix:"activeColor"})};`}function Ap({v:e,device:t,state:o,prefix:n="table"}){return Oo({v:e,device:t,state:o,prefix:n})}function Dp({v:e,device:t}){return`margin-right: ${o="itemPadding",Object(P.defaultValueValue)({v:e,key:o,device:t})}px;`;var o}function Vp({v:e,device:t,state:o}){const n=Object(x.B)({v:e,device:t,state:o});return`color: ${n}; background-color: ${n};`}function $p({v:e}){return e.menuName?"width: auto":"width: 100%"}function Gp({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"activeColor"})}const Up=e=>"absolute"===e.elementPosition||"fixed"===e.elementPosition;function Kp({v:e,device:t,props:o={}}){const n=o=>Object(P.defaultValueValue)({v:e,key:o,device:t}),{width:a}=o.wrapperSizes[t],r=o.props.meta[t+"W"];return null==a&&null==r?"":"%"===n("widthSuffix")?`${Up(e)?"width":"max-width"}: ${Math.round(Math.abs(100*a/r))}%;`:`max-width: ${n("width")}px;`}function qp({device:e,props:t={}}){const{height:o}=t.wrapperSizes[e];return null==o?"":"height: auto;"}function Yp({v:e,device:t,props:o={}}){const{borderRadius:n}=e,{width:a,height:r}=o.wrapperSizes?o.wrapperSizes[t]:o[t],i=Math.round(Math.min(a,r)/2);return null==a&&null==r?"":`border-radius: ${Math.min(n,i)}px;`}function Xp({v:e,device:t,props:o={}}){const{width:n}=o[t];return null==n?"":`${Up(e)?"width":"max-width"}: ${n}px;`}function Zp({device:e,props:t={}}){const{height:o}=t[e];return null==o?"":`height: ${o}px;`}function Jp({device:e,props:t={}}){const{width:o}=t[e];return null==o?"":`width: ${o}px;`}function Qp({device:e,props:t={}}){const{height:o}=t[e];return null==o?"":`height: ${o}px;`}function eb({device:e,props:t={}}){const{marginLeft:o}=t[e];return null==o?"":`margin-left: ${o}px;`}function tb({device:e,props:t={}}){const{marginTop:o}=t[e];return null==o?"":`margin-top: ${o}px;`}function ob({device:e,props:t}){const{width:o,height:n}=t[e],a=Object(ru.d)(n/o*100,4);return null==o&&null==n?"":`padding-top: ${a}%;`}function nb(){return"transition-property: border, box-shadow, filter;"}function ab({v:e,device:t,state:o,prefix:n="image"}){return Io({v:e,device:t,state:o,prefix:n})}function rb({v:e,device:t,state:o}){const n=Object(x.f)({v:e,device:t,state:o});return void 0===n?"":`animation-name:${n};`}function ib({v:e,device:t,state:o}){const n=Object(x.e)({v:e,device:t,state:o});return void 0===n?"":`animation-duration:${n}ms;`}function lb({v:e,device:t,state:o}){const n=Object(x.d)({v:e,device:t,state:o});return void 0===n?"":`animation-delay:${n}ms;`}const sb=Object(j.c)(e=>Object(ru.b)(-359,359,e)?e:void 0,Sn.a.read);function cb(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}const db=e=>{var t;const o=sb(Object(P.defaultValueValue)(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?cb(Object(o),!0).forEach((function(t){Object(C.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):cb(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({key:"rotate"},e)));return null!==(t=Object(j.b)(e=>(e=>Object.entries(e).reduce((e,[t,o])=>e+`${t}(${o})`,"transform: ")+";")({rotate:e+"deg"}),o))&&void 0!==t?t:""};function ub({v:e,device:t}){const o=Object(x.Sd)({v:e,device:t}),n=Object(x.Od)({v:e,device:t});return void 0===o||void 0===n?"":`padding: ${n}px ${o}px;`}function pb({v:e,device:t}){return _e({v:e,device:t,prefix:"input"})}function bb({v:e,device:t}){const o=o=>Object(P.defaultValueValue)({v:e,key:o,device:t}),n=o("inputPosition"),a=o("spacing");return void 0===a||void 0===n?"":{left:`margin: 0 ${a}px 0 0;`,right:`margin: 0 0 0 ${a}px;`,top:`margin: 0 0 ${a}px 0;`,bottom:`margin: ${a}px 0 0 0;`}[n]}function mb({v:e,device:t}){const o=o=>Object(P.defaultValueValue)({v:e,key:o,device:t}),n=o("inputPosition"),a=o("inputWidth"),r="left"===n||"right"===n?"px":o("inputWidthSuffix"),i=o("inputHeight");return void 0===a||void 0===i?"":`width: ${a}${r}; height: ${i}px;`}function hb({v:e,device:t}){var o;return`flex-direction: ${{left:"row",right:"row-reverse",top:"column",bottom:"column-reverse"}[(o="inputPosition",Object(P.defaultValueValue)({v:e,key:o,device:t}))]};`}function gb({v:e,device:t}){const o=o=>Object(P.defaultValueValue)({v:e,key:o,device:t}),n=o("inputPosition"),a=o("inputVerticalAlign"),r=o("inputHorizontalAlign");return`align-items: ${{top:"flex-start",right:"flex-end",center:"center",bottom:"flex-end",left:"flex-start"}["left"===n||"right"===n?a:r]};`}function vb({v:e,device:t}){return G({v:e,device:t,prefix:"input"})}function fb({v:e,device:t}){return U({v:e,device:t,prefix:"input"})}function yb({v:e,device:t}){return K({v:e,device:t,prefix:"input"})}function Ob({v:e,device:t}){return q({v:e,device:t,prefix:"input"})}function Sb({v:e,device:t}){return Y({v:e,device:t,prefix:"input"})}function Cb({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"inputColor"})}function xb({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"buttonColor"})}function jb({v:e,device:t}){return G({v:e,device:t,prefix:"label"})}function Bb({v:e,device:t}){return U({v:e,device:t,prefix:"label"})}function Pb({v:e,device:t}){return K({v:e,device:t,prefix:"label"})}function wb({v:e,device:t}){return q({v:e,device:t,prefix:"label"})}function Tb({v:e,device:t}){return Y({v:e,device:t,prefix:"label"})}function zb({v:e,device:t}){return G({v:e,device:t,prefix:"value"})}function Eb({v:e,device:t}){return U({v:e,device:t,prefix:"value"})}function kb({v:e,device:t}){return K({v:e,device:t,prefix:"value"})}function Hb({v:e,device:t}){return q({v:e,device:t,prefix:"value"})}function _b({v:e,device:t}){return Y({v:e,device:t,prefix:"value"})}function Fb({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"labelColor"})}function Rb({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"valueColor"})}function Mb({v:e,device:t}){return G({v:e,device:t,prefix:"clear"})}function Lb({v:e,device:t}){return U({v:e,device:t,prefix:"clear"})}function Wb({v:e,device:t}){return K({v:e,device:t,prefix:"clear"})}function Ib({v:e,device:t}){return q({v:e,device:t,prefix:"clear"})}function Nb({v:e,device:t}){return Y({v:e,device:t,prefix:"clear"})}function Ab({v:e,device:t,state:o}){return bt({v:e,device:t,state:o,prefix:"clearColor"})}function Db({v:e}){return`margin-bottom: ${e.tableSpacing}px;`}function Vb({v:e}){const t=Object(x.s)({v:e,prefix:"table"}),o=Object(x.r)({v:e,prefix:"table"}),n=Object(x.n)({v:e,prefix:"table"});return void 0===t?"":`border:${t}px ${o} ${n};`}function $b({v:e,device:t,state:o}){return`background-color: ${Object(x.B)({v:e,device:t,state:o,prefix:"inputBgColor"})};`}function Gb({v:e,device:t,state:o}){return`background-color: ${Object(x.B)({v:e,device:t,state:o,prefix:"tableBgColor"})};`}function Ub({v:e,device:t,state:o}){return ke({v:e,device:t,prefix:"input",state:o})}function Kb({v:e,device:t,state:o}){return gt({v:e,device:t,prefix:"input",state:o})}function qb({v:e,device:t,state:o}){return gt({v:e,device:t,prefix:"table",state:o})}function Yb({v:e,device:t}){return ke({v:e,device:t,prefix:"button"})}function Xb({v:e,device:t}){return _e({v:e,device:t,prefix:"button"})}function Zb({v:e,device:t,state:o}){const n=Object(x.s)({v:e,device:t,state:o,prefix:"thumbnail"}),a=Object(x.r)({v:e,device:t,state:o,prefix:"thumbnail"}),r=Object(x.n)({v:e,device:t,state:o,prefix:"thumbnail"});return void 0===n?"":`border:${n}px ${a} ${r};`}function Jb({v:e,device:t,state:o}){return _e({v:e,device:t,state:o,prefix:"thumbnail"})}function Qb({v:e,device:t,state:o}){return gt({v:e,device:t,prefix:"thumbnail",state:o})}function em({v:e,device:t,state:o}){const n=Object(x.Nc)({v:e,device:t,state:o});return void 0!==n||null!==n?"bottom"===e.thumbStyle?`margin-top: ${n}px;`:"margin-top: 0;":""}function tm({v:e,device:t,state:o}){const n=Object(x.Mc)({v:e,device:t,state:o}),a=Object(x.Nc)({v:e,device:t,state:o});return void 0!==n||null!==n?"bottom"===e.thumbStyle?`margin-bottom: -${n}px;`:"top"===e.thumbStyle?`margin-bottom: ${-1*(n-a)}px;`:"margin-bottom: 0;":""}function om({v:e,device:t,state:o}){const n=Object(x.Mc)({v:e,device:t,state:o});return void 0!==n||null!==n?("left"===e.thumbStyle||e.thumbStyle,`margin: 0 ${n}px ${n}px 0;`):""}function nm({v:e,device:t,state:o}){const n=Object(x.Mc)({v:e,device:t,state:o}),a="left"===e.thumbStyle||"right"===e.thumbStyle?e.thumbPerRowRL:e.thumbPerRowTB;return(void 0!==n||null!==n)&&`width: calc(${100/a}% - ${n*(a-1)/a}px);`}function am({v:e,device:t,state:o}){const n=n=>Object(P.defaultValueValue)({v:e,key:n,device:t,state:o});return"left"===e.thumbStyle||"right"===e.thumbStyle?`min-width: ${n("thumbWidth")}${n("thumbWidthSuffix")}; width: ${n("thumbWidth")}${n("thumbWidthSuffix")};`:""}function rm({v:e,device:t,state:o}){const n=Object(x.Nc)({v:e,device:t,state:o});return"left"===e.thumbStyle?`margin-right: ${n}px;`:"right"===e.thumbStyle?`margin-left: ${n}px;`:"margin-right:0; margin-left:0;"}function im({v:e}){return"right"===e.thumbStyle?"left: 1rem; right: auto;":"top"===e.thumbStyle?"bottom: 1rem; top: auto;":""}},,function(e,t,o){"use strict";o.d(t,"d",(function(){return a})),o.d(t,"e",(function(){return i})),o.d(t,"a",(function(){return l.a})),o.d(t,"c",(function(){return p})),o.d(t,"b",(function(){return b})),o.d(t,"f",(function(){return m})),o.d(t,"g",(function(){return h})),o.d(t,"h",(function(){return g})),o.d(t,"i",(function(){return v})),o.d(t,"j",(function(){return f}));var n=o(18);function a(e,t){if(t){e=Object(n.a)(t).hex}return{hex:e}}var r=o(33);function i(e,t,o){if(o){const t=Object(r.e)(o);if(t)return t[e]}return t}var l=o(137),s=o(8),c=o(17),d=o(1);function u(e){switch(e){case"richText":return Object(d.a)("Custom text");case"image":return Object(d.a)("Custom image");case"link":return Object(d.a)("Custom link");default:return Object(d.a)("Custom")}}const p=(e,t=!1,o)=>{const n=c.a.get("dynamicContent");if(!n)return[];const a=s.default.flatten(s.default.values(n[e]),!0).map(({label:e,placeholder:t})=>({title:e,value:t}));return a.length>0?t?[{title:null!=o?o:u(e),value:""},...a]:a:[]},b=(e,t)=>{const o=c.a.get("dynamicContent");if(o&&o[e])return s.default.flatten(s.default.values(o[e]),!0).find(e=>e.placeholder===t)},m=()=>[{title:"None",value:"none"},{icon:{className:"brz-ed-shape--1"},value:"1"},{icon:{className:"brz-ed-shape--2"},value:"2"},{icon:{className:"brz-ed-shape--3"},value:"3"},{icon:{className:"brz-ed-shape--4"},value:"4"},{icon:{className:"brz-ed-shape--5"},value:"5"},{icon:{className:"brz-ed-shape--6"},value:"6"},{icon:{className:"brz-ed-shape--7"},value:"7"},{icon:{className:"brz-ed-shape--8"},value:"8"},{icon:{className:"brz-ed-shape--9"},value:"9"},{icon:{className:"brz-ed-shape--10"},value:"10"},{icon:{className:"brz-ed-shape--11"},value:"11"},{icon:{className:"brz-ed-shape--12"},value:"12"},{icon:{className:"brz-ed-shape--13"},value:"13"},{icon:{className:"brz-ed-shape--14"},value:"14"},{icon:{className:"brz-ed-shape--15"},value:"15"},{icon:{className:"brz-ed-shape--16"},value:"16"},{icon:{className:"brz-ed-shape--17"},value:"17"},{icon:{className:"brz-ed-shape--18"},value:"18"},{icon:{className:"brz-ed-shape--19"},value:"19"},{icon:{className:"brz-ed-shape--20"},value:"20"},{icon:{className:"brz-ed-shape--21"},value:"21"},{icon:{className:"brz-ed-shape--22"},value:"22"},{icon:{className:"brz-ed-shape--23"},value:"23"},{icon:{className:"brz-ed-shape--24"},value:"24"},{icon:{className:"brz-ed-shape--25"},value:"25"},{icon:{className:"brz-ed-shape--26"},value:"26"},{icon:{className:"brz-ed-shape--27"},value:"27"},{icon:{className:"brz-ed-shape--28"},value:"28"},{icon:{className:"brz-ed-shape--29"},value:"29"},{icon:{className:"brz-ed-shape--30"},value:"30"},{icon:{className:"brz-ed-shape--31"},value:"31"},{icon:{className:"brz-ed-shape--32"},value:"32"},{icon:{className:"brz-ed-shape--33"},value:"33"},{icon:{className:"brz-ed-shape--34"},value:"34"},{icon:{className:"brz-ed-shape--35"},value:"35"},{icon:{className:"brz-ed-shape--36"},value:"36"},{icon:{className:"brz-ed-shape--37"},value:"37"},{icon:{className:"brz-ed-shape--38"},value:"38"},{icon:{className:"brz-ed-shape--39"},value:"39"},{icon:{className:"brz-ed-shape--40"},value:"40"},{icon:{className:"brz-ed-shape--41"},value:"41"},{icon:{className:"brz-ed-shape--42"},value:"42"}],h=(e=c.a.get("taxonomies"))=>e?e.map(e=>{const{id:t="",label:o="",name:n="",terms:a=[]}=e;return t||o||n?a&&a.length?{title:o,optgroup:a.map(e=>({title:e.name,value:`${n}|${e.id}`}))}:{title:o,value:`${n}|${t}`}:{title:"-",value:""}}):[{title:"-",value:""}],g=(e="")=>{const t=c.a.get("taxonomies").filter(t=>{const{name:o}=t;return"products"===e?o.indexOf("product")>-1:"posts"===e?o.indexOf("product")<0:t});return h(t)},v=()=>{const e=c.a.get("postTypesTaxs");return e?e.map(e=>({value:e.name,title:e.label})):[{title:"-",value:""}]},f=e=>{const t=c.a.get("postTypesTaxs");return e&&t?t.filter(t=>t.taxonomies&&t.taxonomies.length&&t.name===e).reduce((e,t)=>{if(t.taxonomies){const o=t.taxonomies.map(e=>({value:e.id,title:e.name}));return e.concat(o)}return e},[]):[{title:"-",value:""}]}},function(e,t,o){"use strict";o.d(t,"q",(function(){return l})),o.d(t,"s",(function(){return h})),o.d(t,"l",(function(){return p})),o.d(t,"k",(function(){return m})),o.d(t,"m",(function(){return b})),o.d(t,"t",(function(){return v.a})),o.d(t,"n",(function(){return O})),o.d(t,"j",(function(){return y})),o.d(t,"r",(function(){return P})),o.d(t,"p",(function(){return w})),o.d(t,"i",(function(){return S.j})),o.d(t,"f",(function(){return S.f})),o.d(t,"h",(function(){return S.i})),o.d(t,"d",(function(){return S.d})),o.d(t,"a",(function(){return S.a})),o.d(t,"c",(function(){return S.c})),o.d(t,"g",(function(){return S.h})),o.d(t,"e",(function(){return S.e})),o.d(t,"b",(function(){return S.b})),o.d(t,"o",(function(){return S.k}));var n=o(53),a=o(66),r=o(57);const i=(e,t,o,n)=>{if("type"===e&&null!=a.a.getComponent(t)){if(o.value=o.value||{},void 0!==o.value._id&&n.keepExistingIds)return;if("GlobalBlock"===o.type)return;o.value._id=Object(r.a)()}};function l(e,t={}){const o=JSON.parse(JSON.stringify(e));return Object(n.f)(o,i,t),o}var s=o(2),c=o(24);function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?d(Object(o),!0).forEach((function(t){Object(s.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function p(e,t,o){let n=e.findIndex(e=>e===t),a="increase"===o?++n:--n;return a===e.length?a=0:a<0&&(a=e.length-1),e[a]}function b(e,t,o){return m(e,t,e=>{if(e.type){const{defaultValue:t}=a.a.getComponent(e.type)||{};return!(!t||!t.style)&&t.style[o]}})}function m(e,t,o){const n=[...e];let a=[];for(let r=0;r<=e.length;r++){const e=Object(c.getIn)(t,n),r=o(e);if(r||null===r)return{value:e,path:n};a.unshift(n.pop())}return{value:null,path:null}}function h(e,t=0,o=0){const n=function(e){const{defaultValue:t}=a.a.getComponent(e.type);return t.style}(e);let r=Object(c.setIn)(e,["value"],g(e.value,n));if(o++,e.value.items&&o<=t){const n=e.value.items.map((e,n)=>{let a={};return r.value&&r.value.items&&r.value.items[n]&&(a=r.value.items[n]),h(u(u({},e),{},{value:u(u({},a.value),e.value)}),t,o)});r=Object(c.setIn)(r,["value","items"],n)}return r}const g=(e,t={})=>Object.entries(t).reduce((o,[n,a])=>(o[n]=n in e?e[n]:a,o[n]="items"===n?e.items.map((e,o)=>u(u({},e),{},{value:u(u({},g(e.value,t.items[o].value)),e.value)})):n in e?e[n]:a,o),{});var v=o(172),f=o(150);const y=(e,t,o=t+1)=>{if(!e[t])throw new Error("Can't clone invalid item at index "+t);return Object(f.a)(e,o,e[t])},O=(e,t,o)=>o.reduce((e,o,n)=>{const a=l(Object(v.a)(o));return Object(c.insert)(e,t+n,a)},e);var S=o(68),C=o(37),x=o(48),j=o(23),B=o(19);function P(e,t=5){const o=e.value.items[0].value,n=o._styles;let{offsetX:a=0,offsetY:r=0}=o;const i=Object(B.B)(Object(j.b)().getState());if(!(x.a.read(a)&&x.a.read(r))&&n&&i){const e=n.reduce((e,t)=>i[t]?Object.assign(e,i[t]):e,{offsetX:0,offsetY:0});a=e.offsetX,r=e.offsetY}return Object(C.a)(e,e=>{e.value.items[0].value.offsetX=a+t,e.value.items[0].value.offsetY=r+t})}const w=(e,t)=>{return o=t,Object(n.b)(["type","value"],o)?Object(n.c)(w.bind(null,e),e(t)):Object(n.c)(w.bind(null,e),t);var o}},function(e,t,o){"use strict";o.d(t,"a",(function(){return d}));var n=o(0),a=o.n(n),r=o(8),i=o(5),l=o.n(i),s=o(129);const c=(e,t)=>{const{className:o="",icon:n="nc-circle-add",style:i={},onClick:c=r.default.noop}=e,d=l()("brz-icon-svg brz-ed-icon-svg",o);return a.a.createElement("svg",{ref:t,className:d,onClick:c,style:i},a.a.createElement("use",{xlinkHref:Object(s.a)(n)}))},d=a.a.forwardRef(c);t.b=d},function(e,t,o){"use strict";o.d(t,"a",(function(){return I})),o.d(t,"b",(function(){return b})),o.d(t,"d",(function(){return N})),o.d(t,"e",(function(){return A}));var n=o(12),a=o(2),r=o(0),i=o.n(r),l=o(35),s=o.n(l),c=o(82),d=o(50),u=o(8);const p=i.a.createContext(void 0),b=({children:e,position:t,onEscape:o})=>{const n=Object(r.useContext)(p),a=Object(r.useMemo)(()=>u.default.defaults({position:t,onEscape:o},n),[t,o,n]);return i.a.createElement(p.Provider,{value:a},e)};var m=o(64),h=o(179);const g=({data:e,toolbar:t})=>i.a.createElement("div",{className:"brz-ed-toolbar__item"},i.a.createElement(h.a,{className:"brz-ed-toolbar__option",data:e,toolbar:t,location:"toolbar"}));function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?v(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):v(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class y extends i.a.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{itemsRenderer:void 0}),Object(a.a)(this,"containerRef",i.a.createRef()),Object(a.a)(this,"arrowRef",i.a.createRef()),Object(a.a)(this,"setItemsRenderer",e=>{this.setState({itemsRenderer:e},this.props.onContentChange)}),Object(a.a)(this,"resetItemsRenderer",()=>{this.setState({itemsRenderer:void 0},this.props.onContentChange)}),Object(a.a)(this,"renderItems",e=>{const{position:t,containerRef:o}=this.props,n=e.map((n,a)=>i.a.createElement(g,{key:n.id,data:n,toolbar:f(f({},this),{},{toolbarRef:null!=o?o:this.containerRef,toolbarCSSPosition:t,toolbarItemIndex:a+1,toolbarItemsLength:e.length})}));return i.a.createElement("div",{className:"brz-ed-toolbar__items brz-d-xs-flex brz-align-items-center"},n)})}render(){const{containerRef:e,arrowRef:t,arrow:o,items:n,onClick:a,onMouseEnter:r,onMouseLeave:l}=this.props,{itemsRenderer:s}=this.state,c=Object(m.b)(n);return c.length?i.a.createElement("div",{ref:null!=e?e:this.containerRef,className:"brz-ed-toolbar",onClick:a,onMouseEnter:r,onMouseLeave:l},void 0!==s?s(c):this.renderItems(c),o&&i.a.createElement("div",{ref:null!=t?t:this.arrowRef,className:"brz-ed-arrow brz-ed-arrow--top-center brz-ed-toolbar__arrow"})):null}}Object(a.a)(y,"defaultProps",{arrow:!0,items:[]});var O=o(31),S=o(153);class C extends i.a.Component{constructor(...e){super(...e),Object(a.a)(this,"toolbarItemsContainerRef",i.a.createRef()),Object(a.a)(this,"toolbarItemsArrowRef",i.a.createRef()),Object(a.a)(this,"reposition",()=>{const{node:e,offsetTop:t,offsetBottom:o,offsetLeft:n,position:a}=this.props,r=this.toolbarItemsContainerRef.current,i=this.toolbarItemsArrowRef.current,l=e.ownerDocument.defaultView,s=document.documentElement.clientWidth;if(!r)return;const c=r.getBoundingClientRect(),d=e.getBoundingClientRect();let u,p;const b="fixed"===a?0:l.scrollY;b+d.top-(c.height+300)>=l.scrollY?(u=!1,p=b+d.top-c.height-Number(t),Object(S.b)("above")):(u=!0,p=b+d.top+d.height+Number(o),Object(S.b)("below"));const m=d.left+d.width/2-c.width/2+Number(n),h=e.ownerDocument.defaultView===l.parent?58:0,g=s-c.width,v=Object(O.a)(m,h,g),f=m-v;r.style.top=p+"px",r.style.left=v+"px","fixed"===a&&(r.style.position="fixed"),r.classList.add("brz-ed-animated","brz-ed-animated--fadeInDown"),u?r.classList.add("brz-ed-toolbar--bottom"):r.classList.remove("brz-ed-toolbar--bottom"),i&&(c.width/2-Math.abs(f)<23?i.classList.add("brz-hidden"):i.classList.remove("brz-hidden"),u?(i.classList.remove("brz-ed-arrow--top-center"),i.classList.add("brz-ed-arrow--bottom-center")):(i.classList.remove("brz-ed-arrow--bottom-center"),i.classList.add("brz-ed-arrow--top-center")),i.style.left=`calc(50% + ${f}px)`)})}componentDidMount(){this.reposition()}componentDidUpdate(){this.props.repositionOnUpdates&&this.reposition()}render(){return i.a.createElement(y,Object(n.a)({},this.props,{containerRef:this.toolbarItemsContainerRef,arrowRef:this.toolbarItemsArrowRef,arrow:!0,onContentChange:this.reposition}))}}Object(a.a)(C,"defaultProps",{offsetTop:14,offsetBottom:14,offsetLeft:0});var x=o(159);const j=({getItems:e,getTitle:t})=>e?(Object(r.useEffect)(()=>{x.b&&x.b.setItems(e,t)}),Object(r.useEffect)(()=>()=>{x.b&&x.b.clearItems()},[]),null):null;let B=null,P=null;const w={getActive:()=>P,setActive(e){this.unsetActive(),P=e},unsetIfActive(e){e===P&&(B=e,P=null,B.handleMonitorDeactivationRequest())},unsetActive(){null!==P&&(B=P,P=null,B.handleMonitorDeactivationRequest())},activateLastActive(){B&&B.handleMonitorActivationRequest()}};var T=o(59);function z(e,t,o){let n=o.target;for(;n&&n!==e;){if(n.matches(t))return n;n=n.parentElement}return n}function E(e,t,o){if(e.matches(t)&&Object(T.g)(o.clientX,o.clientY,e.getBoundingClientRect()))return e;const n=e.querySelectorAll(t);for(let e=0;e<n.length;e++){const t=n[e];if(t&&Object(T.g)(o.clientX,o.clientY,t.getBoundingClientRect()))return t}return null}function k(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function H(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?k(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const _=new Map;class F extends i.a.Component{constructor(...e){super(...e),Object(a.a)(this,"context",void 0),Object(a.a)(this,"state",{opened:!1}),Object(a.a)(this,"node",null),Object(a.a)(this,"selectorNode",null),Object(a.a)(this,"handleClick",e=>{e.stopPropagation();const{onClick:t}=this.props;t&&t(e)}),Object(a.a)(this,"handleMouseEnter",e=>{e.stopPropagation();const{onMouseEnter:t}=this.props;if(t&&t(e),null!==this.node){const e=new CustomEvent("brz.toolbar.mouseenter",{bubbles:!0});this.node.dispatchEvent(e)}}),Object(a.a)(this,"handleMouseLeave",e=>{e.stopPropagation();const{onMouseLeave:t}=this.props;if(void 0!==t&&t(e),this.node){const e=new CustomEvent("brz.toolbar.mouseleave",{bubbles:!0});this.node.dispatchEvent(e)}}),Object(a.a)(this,"handleEscape",()=>{const e=this.props,t=H(H({},this.context),e);t.onEscape?t.onEscape():this.hide()}),Object(a.a)(this,"handleClickOutside",()=>{w.unsetActive()}),Object(a.a)(this,"clickOutsideException",e=>{try{const t=s.a.findDOMNode(this);return null!==t&&t.contains(e)}catch(e){return!1}}),Object(a.a)(this,"getOutSideExceptions",()=>[".brz-ed-sidebar__right",".brz-ed-tooltip__content-portal",".brz-ed-fixed",".brz-ed-box__resizer--point",".media-modal",".media-modal-backdrop",this.clickOutsideException])}componentDidMount(){if(this.node=s.a.findDOMNode(this),null!==this.node&&null!==this.node.ownerDocument){if(!_.get(this.node.ownerDocument)){const e=this.node.ownerDocument.createElement("div");e.id="brz-toolbar-portal",this.node.ownerDocument.body.appendChild(e),_.set(this.node.ownerDocument,e)}this.props.manualControl||this.node.addEventListener("click",e=>{if(null!==this.node&&!e.brzToolbarHandled)if(void 0===this.props.selector){if(w.getActive()===this)return;e.brzToolbarHandled=!0,this.show()}else{const t=("dom-tree"===this.props.selectorSearchStrategy?z:E)(this.node,this.props.selector,e);t?(e.brzToolbarHandled=!0,!1===this.state.opened?(this.selectorNode=t,this.show()):t!==this.selectorNode&&this.hide(()=>{this.selectorNode=t,this.show()})):this.hide()}},!1)}}componentWillUnmount(){w.unsetIfActive(this),this.node=null,this.selectorNode=null}handleMonitorActivationRequest(){this.show()}handleMonitorDeactivationRequest(){this.hide()}show(){if(!this.state.opened){const{onBeforeOpen:e,onOpen:t}=this.props;w.setActive(this),e&&e(),this.setState({opened:!0},()=>{if(t&&t(),null!==this.node){const e=new CustomEvent("brz.toolbar.open",{bubbles:!0});this.node.dispatchEvent(e)}})}}hide(e){if(this.state.opened){const{onBeforeClose:t,onClose:o}=this.props;t&&t(),this.setState({opened:!1},()=>{if(o&&o(),null!==this.node){const e=new CustomEvent("brz.toolbar.close",{bubbles:!0});this.node.dispatchEvent(e)}null==e||e()})}}renderToolbar(){var e;if(null===this.node)return;if(null===this.node.ownerDocument)return;const t=this.props.getItems();if(!t||0===t.length)return;const o=this.props,a=this.context,r=this.node.ownerDocument,l=_.get(r);return l&&s.a.createPortal(i.a.createElement(i.a.Fragment,null,i.a.createElement(c.a,{exceptions:this.getOutSideExceptions(),onClickOutside:this.handleClickOutside},i.a.createElement(C,Object(n.a)({},a,o,{items:t,node:null!==(e=this.selectorNode)&&void 0!==e?e:this.node,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave}))),o.getSidebarItems&&i.a.createElement(j,{getItems:o.getSidebarItems,getTitle:o.getSidebarTitle}),i.a.createElement(d.a,{id:"key-helper-toolbar-escape",keyNames:["esc"],onKeyUp:this.handleEscape})),l)}render(){const{children:e}=this.props,{opened:t}=this.state;return i.a.createElement(i.a.Fragment,null,e,t&&this.renderToolbar())}}Object(a.a)(F,"contextType",p),Object(a.a)(F,"defaultProps",{manualControl:!1});var R=o(5),M=o.n(R),L=o(100),W=o(15);class I extends i.a.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{opened:!1}),Object(a.a)(this,"onClickOutside",()=>{this.close()}),Object(a.a)(this,"handleClick",()=>{!this.state.opened?this.open():this.close()}),Object(a.a)(this,"handleEscape",()=>{this.close()})}componentWillUnmount(){w.unsetIfActive(this)}getClickOutSideExceptions(){return[".brz-ed-collapsible__toolbar",".brz-ed-sidebar__right",".brz-ed-tooltip__content-portal",".brz-ed-popup-integrations",".brz-ed-popup-authorization",".media-modal",".media-modal-backdrop"]}handleMonitorActivationRequest(){this.open()}handleMonitorDeactivationRequest(){this.close()}open(){if(this.state.opened)return;Object(S.b)("below");const{onBeforeOpen:e,onOpen:t}=this.props;w.setActive(this),e&&e(),this.setState({opened:!0},()=>{t&&t()})}close(){if(!this.state.opened)return;const{onBeforeClose:e,onClose:t}=this.props;w.unsetIfActive(this),e&&e(),this.setState({opened:!1},()=>{t&&t()})}renderBadge(){const{membership:e,global:t}=this.props;return e||t?i.a.createElement(L.CSSTransition,{key:"badge",timeout:0},i.a.createElement("div",{className:"brz-ed-collapsible__badge"},t&&i.a.createElement(W.b,{icon:"nc-global"}),e&&i.a.createElement(W.b,{icon:"nc-user"}))):null}renderIcon(){return i.a.createElement(L.CSSTransition,{key:"icon",classNames:"fadeCollapsibleIcon",timeout:200},i.a.createElement("div",{className:"brz-ed-collapsible__icon",onClick:this.handleClick},i.a.createElement(W.b,{icon:"nc-settings"})))}renderToolbar(){const{getItems:e,animation:t}=this.props,o="leftToRight"===t?"animation-left-right":"animation-right-left",n=e();return i.a.createElement(L.CSSTransition,{key:"toolbar",classNames:o,timeout:200},i.a.createElement("div",{className:"brz-ed-collapsible__toolbar"},i.a.createElement(y,{items:n,arrow:!1})))}render(){const{className:e,getSidebarItems:t,getSidebarTitle:o}=this.props,{opened:n}=this.state,a=M()("brz-ed-collapsible",{"brz-ed-collapsible--opened":n},e);return i.a.createElement(i.a.Fragment,null,i.a.createElement(c.a,{onClickOutside:this.onClickOutside,exceptions:this.getClickOutSideExceptions()},i.a.createElement(L.TransitionGroup,{className:a},this.renderBadge(),n?this.renderToolbar():this.renderIcon())),n&&t&&i.a.createElement(j,{getItems:t,getTitle:o}),n&&i.a.createElement(d.a,{keyNames:["esc"],id:"key-helper-toolbar-escape",onKeyUp:this.handleEscape}))}}Object(a.a)(I,"defaultProps",{animation:"leftToRight",global:!1,membership:!1});t.c=F;const N=()=>w.unsetActive(),A=()=>w.activateLastActive()},function(e,t,o){"use strict";var n=o(97);let a={};t.a={load(e){a=Object(n.a)(a,e)},get:e=>a[e],getAll:()=>a}},function(e,t,o){"use strict";o.d(t,"d",(function(){return c})),o.d(t,"c",(function(){return d})),o.d(t,"b",(function(){return i})),o.d(t,"a",(function(){return l})),o.d(t,"e",(function(){return s}));var n=o(91),a=o(23),r=o(19);function i(){return Object(r.g)(Object(a.b)().getState()).colorPalette}function l(e){return i().find(t=>t.id===e)}const s=(e,{getClassName:t=(e=>e)}={})=>e.map(({id:e,hex:o})=>{const n=t(".brz-cp-"+e.toLowerCase());return`.brz ${n}, .brz ${n}{color: ${o};}`}).join("");const c=n.a;function d(e,t){if(c(e)){e=e.replace("#",""),t=isNaN(t)?1:t;return`rgba(${parseInt(e.substring(0,2),16)}, ${parseInt(e.substring(2,4),16)}, ${parseInt(e.substring(4,6),16)}, ${t})`}}},function(e,t,o){"use strict";o.d(t,"C",(function(){return m})),o.d(t,"o",(function(){return h})),o.d(t,"d",(function(){return g})),o.d(t,"a",(function(){return v})),o.d(t,"c",(function(){return f})),o.d(t,"z",(function(){return y})),o.d(t,"E",(function(){return O})),o.d(t,"H",(function(){return S})),o.d(t,"g",(function(){return C})),o.d(t,"j",(function(){return x})),o.d(t,"I",(function(){return j})),o.d(t,"i",(function(){return B})),o.d(t,"G",(function(){return w})),o.d(t,"F",(function(){return T})),o.d(t,"A",(function(){return z})),o.d(t,"h",(function(){return E})),o.d(t,"D",(function(){return k})),o.d(t,"f",(function(){return H})),o.d(t,"b",(function(){return _})),o.d(t,"n",(function(){return R})),o.d(t,"l",(function(){return M})),o.d(t,"k",(function(){return L})),o.d(t,"m",(function(){return W})),o.d(t,"B",(function(){return I})),o.d(t,"e",(function(){return N})),o.d(t,"v",(function(){return A})),o.d(t,"u",(function(){return D})),o.d(t,"y",(function(){return V})),o.d(t,"w",(function(){return $})),o.d(t,"x",(function(){return G})),o.d(t,"t",(function(){return U})),o.d(t,"p",(function(){return K})),o.d(t,"q",(function(){return q})),o.d(t,"s",(function(){return Y})),o.d(t,"r",(function(){return X}));var n=o(2),a=o(75),r=o(37),i={"wrapper--iconText":{showToolbar:"on"},"wrapper--form2":{showToolbar:"on"},"wrapper--login":{showToolbar:"on"},"wrapper--tabs":{showToolbar:"on"},"wrapper--timeline":{showToolbar:"on"},"wrapper--table":{showToolbar:"on"},"wrapper--accordion":{showToolbar:"on"},"wrapper--imageGallery":{showToolbar:"on"},"wrapper--menu":{showToolbar:"on"},"wrapper--video-playlist":{showToolbar:"on"},"wrapper--switcher":{showToolbar:"on"},"wrapper--spacer":{marginTop:0,marginBottom:0,tabletMarginTop:0,tabletMarginBottom:0,mobileMarginTop:0,mobileMarginBottom:0},"wrapper--carousel":{showToolbar:"on"},"wrapper--posts":{showToolbar:"on",paddingType:"ungrouped",paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},"column--carousel":{width:100},"richText--carousel":{text:"<p class='brz-tp-paragraph brz-text-lg-center'><span class='brz-cp-color7'>No matter if you've used a visual page builder before, with Brizy you'll be a pro the second you start using it.</span></p>"},"hide-row-borders":{showToolbar:"off"},"padding-0":{padding:0},submit:{type:"submit"},search:{type:"search"},"posts--column":{width:100},"posts--archives":{type:"archives",taxonomy:"template",taxonomyId:"main_query",pagination:"on"},"posts--archives-product":{type:"archives-product",taxonomy:"template",taxonomyId:"main_query",pagination:"on"},"image--dynamic":{imagePopulation:"{{brizy_dc_img_featured_image}}"},"button--dynamic":{linkExternalType:"linkPopulation",linkPopulation:"{{brizy_dc_url_post}}",text:"READ MORE",borderRadius:2,borderWidth:2,fontSize:11,paddingBottom:11,paddingLeft:26,paddingRL:26,paddingRight:26,paddingTB:11,paddingTop:11,size:"small",tempPaddingBottom:11,tempPaddingLeft:26,tempPaddingRL:26,tempPaddingRight:26,tempPaddingTB:11,tempPaddingTop:11,mobileBorderRadius:2,mobilePaddingBottom:11,mobilePaddingLeft:26,mobilePaddingRight:26,mobilePaddingTop:11,mobileSize:"small"},"richText-title--dynamic":{text:"<p class='brz-text-lg-center brz-tp-heading4'><span class='brz-cp-color2'><span class='text-population' data-population='brizy_dc_post_title'>#Post Title</span> </span></p>"},"richText-desc--dynamic":{text:"<p class='brz-text-lg-center brz-tp-paragraph'><span class='brz-cp-color7'><span class='text-population' data-population='brizy_dc_post_excerpt'>#Post Excerpt</span></span></p>"},"wrapper--facebookComments":{showToolbar:"on"},"story-map":{size:90,height:70,heightSuffix:"%",elementPosition:"fixed",offsetX:5,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:31,offsetYSuffix:"%",offsetYAlignment:"top"},"story-progressBar":{width:90,elementPosition:"fixed",offsetX:5,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:48,offsetYSuffix:"%",offsetYAlignment:"top"},"story-line":{width:90,elementPosition:"fixed",offsetX:5,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:49,offsetYSuffix:"%",offsetYAlignment:"top"},"story-countdown2":{width:90,height:10,heightSuffix:"%",elementPosition:"fixed",offsetX:5,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:45,offsetYSuffix:"%",offsetYAlignment:"top"},"story-counter":{width:50,elementPosition:"fixed",offsetX:39,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:45,offsetYSuffix:"%",offsetYAlignment:"top"},"story-embedCode":{width:90,elementPosition:"fixed",offsetX:5,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:33,offsetYSuffix:"%",offsetYAlignment:"top"},"story-image":{width:90,height:70,elementPosition:"fixed",offsetX:5,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:36,offsetYSuffix:"%",offsetYAlignment:"top"},"story-starRating":{elementPosition:"fixed",offsetX:33,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:49,offsetYSuffix:"%",offsetYAlignment:"top"},"story-icon":{elementPosition:"fixed",customSize:20,offsetX:40,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:44,offsetYSuffix:"%",offsetYAlignment:"top",customSizeSuffix:"%",hoverColorHex:null,hoverColorOpacity:null,hoverColorPalette:null,tempHoverColorOpacity:null,tempHoverColorPalette:null,hoverGradientActivePointer:null,hoverGradientStartPointer:null,hoverGradientFinishPointer:null,hoverGradientType:null,hoverGradientLinearDegree:null,hoverGradientRadialDegree:null,hoverBgColorType:null,hoverBgColorHex:null,hoverBgColorOpacity:null,hoverBgColorPalette:null,tempHoverBgColorOpacity:null,tempHoverBgColorPalette:null,hoverGradientColorHex:null,hoverGradientColorOpacity:null,hoverGradientColorPalette:null,tempHoverGradientColorOpacity:null,tempHoverGradientColorPalette:null,hoverBorderColorHex:null,hoverBorderColorOpacity:null,hoverBorderColorPalette:null,tempHoverBorderColorOpacity:null,tempHoverBorderColorPalette:null},"story-video":{size:90,elementPosition:"fixed",offsetX:5,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:34,offsetYSuffix:"%",offsetYAlignment:"top"},"story-richText":{width:90,elementPosition:"fixed",offsetX:5,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:46,offsetYSuffix:"%",offsetYAlignment:"top"},"story-button":{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,elementPosition:"fixed",offsetX:30,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:46,offsetYSuffix:"%",offsetYAlignment:"top",width:40,widthSuffix:"%",height:30,heightSuffix:"%"},"wrapper--story-form2":{showToolbar:"on"},"story-form2":{width:80,widthSuffix:"%",elementPosition:"fixed",offsetX:10,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:20,offsetYSuffix:"%",offsetYAlignment:"top"}},l=o(53),s=o(14),c=o(51),d=o(107),u=o(44);function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const m=e=>e.screenshots||{},h=e=>e.globalBlocks||{},g=e=>e.changedGBIds||{},v=e=>e.blocksData||{},f=e=>e.blocksOrder||[],y=e=>e.project||{},O=e=>e.styles||[],S=e=>e.ui||{},C=e=>e.currentStyle,x=e=>e.error,j=Object(a.createSelector)(u.c,e=>Object.entries(e).reduce((e,t)=>{const[o,{data:n=[]}]=t;return b(b({},e),{},{[""+o]:{data:n.filter(e=>!0!==e.deleted)}})},{})),B=Object(a.createSelector)(y,e=>e.data.disabledElements||[]),P=Object(a.createSelector)(u.d,e=>e.data||{}),w=(Object(a.createSelector)(u.d,e=>e.slug),Object(a.createSelector)(P,e=>e.triggers||[])),T=Object(a.createSelector)(P,e=>e.triggers?e.triggers.length:null),z=Object(a.createSelector)(P,e=>Number.isInteger(e.rulesAmount)?e.rulesAmount:null),E=Object(a.createSelector)(S,e=>e.deviceMode),k=Object(a.createSelector)(S,e=>e.showHiddenElements),H=Object(a.createSelector)(S,e=>e.currentRole),_=Object(a.createSelector)(f,h,(e,t)=>{const o=Object.keys(t),{top:n,bottom:a}=Object(d.g)(e,o);return e.filter(e=>!n.includes(e)&&!a.includes(e))}),F=Object(a.createSelector)(h,v,(e,t)=>Object.entries(e).reduce((e,[o,n])=>{if(!t[o])return e;return"SectionPopup"===t[o].type||"SectionPopup2"===t[o].type||(e[o]=n),e},{})),R=Object(a.createSelector)(u.d,h,f,F,(e,t,o,n)=>{const a=Number(e.id),r=o.filter(e=>!t[e]||Object(c.c)(t[e],a));return Object(d.f)(r,n)}),M=Object(a.createSelector)(h,v,m,(e,t,o)=>Object(l.e)(Object.entries(e).map(e=>{const[n,a]=e,i=t[n],s=o[n];return[n,Object(r.a)(a,e=>{e.data=b(b({},e.data),i),s&&(Object.assign(e.data.value,s),Object.assign(e.meta,s)),Object(l.g)(e.data.value,e=>{e.type&&"GlobalBlock"!==e.type&&e.value&&e.value._id&&o[e.value._id]&&(e.meta=e.meta||{},Object.assign(e.value,o[e.value._id]),Object.assign(e.meta,o[e.value._id]))})})]}))),L=Object(a.createSelector)(h,v,(e,t)=>Object(l.e)(Object.entries(e).map(e=>{const[o,n]=e,a=t[o];if(!a)return e;return[o,Object(r.a)(n,e=>{e.data=a})]}))),W=Object(a.createSelector)(u.d,f,h,(e,t,o)=>{const n=Number(e.id);return t.reduce((e,t)=>(o[t]&&Object(c.c)(o[t],n)&&(e[t]=o[t]),e),{})}),I=Object(a.createSelector)(C,u.b,(e,t)=>{const{colorPalette:o,fontStyles:n}=e,a=n.concat(t),r=o.reduce((e,t)=>b(b({},e),{},{[t.id+"__color"]:{colorHex:t.hex},[t.id+"__hoverColor"]:{hoverColorHex:t.hex},[t.id+"__bg"]:{bgColorHex:t.hex},[t.id+"__hoverBg"]:{hoverBgColorHex:t.hex},[t.id+"__gradient"]:{gradientColorHex:t.hex},[t.id+"__hoverGradient"]:{hoverGradientColorHex:t.hex},[t.id+"__bg2"]:{bg2ColorHex:t.hex},[t.id+"__border"]:{borderColorHex:t.hex},[t.id+"__hoverBorder"]:{hoverBorderColorHex:t.hex},[t.id+"__arrowsColor"]:{sliderArrowsColorHex:t.hex},[t.id+"__dotsColor"]:{sliderDotsColorHex:t.hex},[t.id+"__boxShadow"]:{boxShadowColorHex:t.hex},[t.id+"__shapeTopColor"]:{shapeTopColorHex:t.hex},[t.id+"__shapeBottomColor"]:{shapeBottomColorHex:t.hex},[t.id+"__paginationColor"]:{paginationColorHex:t.hex},[t.id+"__tabletBg"]:{tabletBgColorHex:t.hex},[t.id+"__tabletBorder"]:{tabletBorderColorHex:t.hex},[t.id+"__mobileBg"]:{mobileBgColorHex:t.hex},[t.id+"__mobileBorder"]:{mobileBorderColorHex:t.hex},[t.id+"__subMenuColor"]:{subMenuColorHex:t.hex},[t.id+"__subMenuHoverColor"]:{subMenuHoverColorHex:t.hex},[t.id+"__subMenuBgColor"]:{subMenuBgColorHex:t.hex},[t.id+"__subMenuHoverBgColor"]:{subMenuHoverBgColorHex:t.hex},[t.id+"__subMenuBorderColor"]:{subMenuBorderColorHex:t.hex},[t.id+"__mMenuColor"]:{mMenuColorHex:t.hex},[t.id+"__mMenuHoverColor"]:{mMenuHoverColorHex:t.hex},[t.id+"__mMenuBgColor"]:{mMenuBgColorHex:t.hex},[t.id+"__mMenuBorderColor"]:{mMenuBorderColorHex:t.hex},[t.id+"__mMenuIconColor"]:{mMenuIconColorHex:t.hex},[t.id+"__tabletMMenuIconColor"]:{tabletMMenuIconColorHex:t.hex},[t.id+"__mobileMMenuIconColor"]:{mobileMMenuIconColorHex:t.hex},[t.id+"__labelColor"]:{labelColorHex:t.hex},[t.id+"__checkboxColor"]:{checkboxColorHex:t.hex},[t.id+"__selectColor"]:{selectColorHex:t.hex},[t.id+"__hoverSelectColor"]:{hoverSelectColorHex:t.hex},[t.id+"__selectBg"]:{selectBgColorHex:t.hex},[t.id+"__hoverSelectBg"]:{hoverSelectBgColorHex:t.hex},[t.id+"__selectBorderColor"]:{selectBorderColorHex:t.hex},[t.id+"__hoverSelectBorderColor"]:{hoverSelectBorderColorHex:t.hex},[t.id+"__selectBoxShadow"]:{selectBoxShadowColorHex:t.hex},[t.id+"__hoverSelectBoxShadow"]:{hoverSelectBoxShadowColorHex:t.hex}}),{}),l=a.reduce((e,t)=>b(b({},e),{},{[t.id+"__fsDesktop"]:{fontFamily:t.fontFamily,fontFamilyType:t.fontFamilyType,fontSize:t.fontSize,fontWeight:t.fontWeight,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing},[t.id+"__fsTablet"]:{tabletFontSize:t.tabletFontSize,tabletFontWeight:t.tabletFontWeight,tabletLineHeight:t.tabletLineHeight,tabletLetterSpacing:t.tabletLetterSpacing},[t.id+"__fsMobile"]:{mobileFontSize:t.mobileFontSize,mobileFontWeight:t.mobileFontWeight,mobileLineHeight:t.mobileLineHeight,mobileLetterSpacing:t.mobileLetterSpacing},[t.id+"__subMenuFsDesktop"]:{subMenuFontFamily:t.fontFamily,subMenuFontFamilyType:t.fontFamilyType,subMenuFontSize:t.fontSize,subMenuFontWeight:t.fontWeight,subMenuLineHeight:t.lineHeight,subMenuLetterSpacing:t.letterSpacing},[t.id+"__subMenuFsTablet"]:{tabletSubMenuFontSize:t.tabletFontSize,tabletSubMenuFontWeight:t.tabletFontWeight,tabletSubMenuLineHeight:t.tabletLineHeight,tabletSubMenuLetterSpacing:t.tabletLetterSpacing},[t.id+"__subMenuFsMobile"]:{mobileSubMenuFontSize:t.mobileFontSize,mobileSubMenuFontWeight:t.mobileFontWeight,mobileSubMenuLineHeight:t.mobileLineHeight,mobileSubMenuLetterSpacing:t.mobileLetterSpacing},[t.id+"__mMenuFsDesktop"]:{mMenuFontFamily:t.fontFamily,mMenuFontFamilyType:t.fontFamilyType,mMenuFontSize:t.fontSize,mMenuFontWeight:t.fontWeight,mMenuLineHeight:t.lineHeight,mMenuLetterSpacing:t.letterSpacing},[t.id+"__mMenuFsTablet"]:{tabletMMenuFontSize:t.tabletFontSize,tabletMMenuFontWeight:t.tabletFontWeight,tabletMMenuLineHeight:t.tabletLineHeight,tabletMMenuLetterSpacing:t.tabletLetterSpacing},[t.id+"__mMenuFsMobile"]:{mobileMMenuFontSize:t.mobileFontSize,mobileMMenuFontWeight:t.mobileFontWeight,mobileMMenuLineHeight:t.mobileLineHeight,mobileMMenuLetterSpacing:t.mobileLetterSpacing}}),{});return b(b(b({},i),r),l)}),N=Object(a.createSelector)(e=>e.copiedElement,L,(e,t)=>Object(r.a)(e,e=>{Object(l.g)(e,e=>{if(e.type&&"GlobalBlock"===e.type&&e.value){const{_id:o}=e.value;t[o]&&Object.assign(e,t[o].data)}})})),A=Object(a.createSelector)(f,h,v,(e,t,o)=>{const n=Object.keys(t);return e.map(e=>n.includes(e)?{type:"GlobalBlock",value:{_id:e}}:o[e])}),D=Object(a.createSelector)(_,h,v,(e,t,o)=>{const n=Object.keys(t);return e.map(e=>n.includes(e)?{type:"GlobalBlock",value:{_id:e}}:o[e])}),V=Object(a.createSelector)(y,u.c,O,e=>e.currentStyleId,C,u.b,(e,t,o,n,a,i)=>Object(r.a)(e,e=>{e.data.fonts=t,e.data.styles=o,e.data.selectedStyle=n,e.data.extraFontStyles=i;for(let t=0;t<e.data.styles.length;t++)e.data.styles[t].id===a.id&&(e.data.styles[t]=a)})),$=Object(a.createSelector)(P,A,(e,t)=>Object(r.a)(e,e=>{e.items=t})),G=Object(a.createSelector)($,L,(e,t)=>{return o=e,Object(s.p)(e=>{if("GlobalBlock"===e.type){var o;const{_id:n}=e.value;return null===(o=t[n])||void 0===o?void 0:o.data}return e},o);var o}),U=Object(a.createSelector)(G,e=>e.items||[]),K=(Object(a.createSelector)(U,e=>{const t=[];return Object(l.g)(e,e=>{e.popups&&t.push(...e.popups)}),t}),Object(a.createSelector)(u.d,D,m,(e,t,o)=>Object(r.a)(e,e=>{e.data.items=t,Object.keys(o).length>0&&Object(l.g)(e,e=>{e.type&&"GlobalBlock"!==e.type&&e.value&&e.value._id&&o[e.value._id]&&Object.assign(e.value,o[e.value._id])})}))),q=Object(a.createSelector)(u.d,A,m,(e,t,o)=>Object(r.a)(e,e=>{e.data.items=t,Object.keys(o).length>0&&Object(l.g)(e,e=>{e.type&&"GlobalBlock"!==e.type&&e.value&&e.value._id&&o[e.value._id]&&Object.assign(e.value,o[e.value._id])})})),Y=Object(a.createSelector)(A,m,(e,t)=>Object(r.a)(e,e=>{Object.keys(t).length>0&&Object(l.g)(e,e=>{e.type&&"GlobalBlock"!==e.type&&e.value&&e.value._id&&t[e.value._id]&&Object.assign(e.value,t[e.value._id])})})),X=Object(a.createSelector)(u.d,A,h,m,(e,t,o,n)=>{const a=Number(e.id),i=t.filter(e=>{if("GlobalBlock"===e.type){const{_id:t}=e.value;return Object(c.c)(o[t],a)}return!0});return Object(r.a)(i,e=>{Object.keys(n).length>0&&Object(l.g)(e,e=>{e.type&&"GlobalBlock"!==e.type&&e.value&&e.value._id&&n[e.value._id]&&Object.assign(e.value,n[e.value._id])})})})},function(e,t,o){"use strict";(function(e){var n=o(32),a=o(2),r=o(0),i=o.n(r),l=o(8),s=o(5),c=o.n(s),d=o(104),u=o(57),p=o(23),b=o(19),m=o(105),h=o(53),g=o(138),v=o(25),f=o(7),y=o(30),O=o(113),S=o(155),C=o(551),x=o(438),j=o(41),B=o(94),P=o(439);function w(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function T(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?w(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):w(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const z=["currentStyleId","currentStyle","extraFontStyles","fonts","copiedElement"];class E extends i.a.Component{constructor(...e){super(...e),Object(a.a)(this,"_defaultValueProcessedCache",void 0),Object(a.a)(this,"_dynamicContentPending",void 0),Object(a.a)(this,"childToolbarExtend",void 0),Object(a.a)(this,"bindPatchValue",e=>this.patchValue(e)),Object(a.a)(this,"makeWrapperProps",e=>{var t;const o=null!==(t=this.props.wrapperExtend)&&void 0!==t?t:{},n=c()(o.className,e.className),a=T(T({},o.attributes||{}),e.attributes||{});return T(T(T(T({},o),e),{},{className:n,attributes:a,id:this.getId(),meta:this.props.meta,componentId:this.constructor.componentId},this.getValue2()),{},{onChange:this.bindPatchValue,ref:t=>{Object(B.a)(t,o.ref||null),Object(B.a)(t,e.ref||null)}})})}static get componentId(){throw new Error(this.name+" must implement `static get componentId()`")}getComponentId(){return this.constructor.componentId}optionalSCU(e){const t=this.props;if(t.dbValue!==e.dbValue)return!0;const o=this.props.meta,n=e.meta;if((null==o?void 0:o.mobileW)!==(null==n?void 0:n.mobileW)||(null==o?void 0:o.tabletW)!==(null==n?void 0:n.tabletW)||(null==o?void 0:o.desktopW)!==(null==n?void 0:n.desktopW))return!0;for(const o of z)if(t.reduxState[o]!==e.reduxState[o])return!0;const a=t.path||[],r=e.path||[];if(a.length!==r.length)return!0;for(let e=0,t=a.length;e<t;e++)if(a[e]!==r[e])return!0;return!1}getId(){return this.props._id||j.c(this.getDBValue()._id)||(()=>{throw new Error("This should never happen. An initialized component must have a preset id")})()}getPath(){return this.props.path||[]}getReduxState(){return this.props.reduxState}getReduxDispatch(){return this.props.reduxDispatch}getDefaultValue(){const e=Object(h.d)(this.constructor.defaultValue);return this.props.defaultValue?T(T({},e),this.props.defaultValue):e}getDefaultValueProcessed(){if(this._defaultValueProcessedCache)return this._defaultValueProcessedCache;const e=this.getDefaultValue();return this._defaultValueProcessedCache={defaultValue:e,dynamicContentKeys:Object.keys(e).reduce((e,t)=>(t.endsWith("Population")&&e.push([t.replace("Population",""),t]),e),[])},this._defaultValueProcessedCache}getDBValue(){return this.props.dbValue}getStylesValue(){const{_styles:e}=this.getDBValue()||{},t=Object(b.B)(this.getReduxState());return e&&t?e.reduce((e,o)=>t[o]?Object.assign(e,t[o]):e,{}):null}getDCValue(e){const t=this.getDefaultValueProcessed().dynamicContentKeys;let o=!1;const n={};for(let a=0;a<t.length;a++){const[r,i]=t[a],l=j.d(e[i]);l&&(o=!0,n[r]=l)}if(o){const e=Object(x.a)(n);var a;return"incomplete"===e.type?(null===(a=this._dynamicContentPending)||void 0===a||a.abortGetComplete(),this._dynamicContentPending=e,this._dynamicContentPending.getComplete().then(()=>{this._dynamicContentPending=void 0,this.forceUpdate()}).catch(()=>{}),e.partial):e.obj}return{}}getValue(){return this.getValue2().v}getValue2(){const e=this.getDefaultValue(),t=this.getStylesValue(),o=this.getDBValue(),n=T(T(T({},e),t),o);return{v:this.constructor.experimentalDynamicContent?Object.assign(n,this.getDCValue(n)):n,vs:T(T({},e),t),vd:e}}patchValue(e,t={}){const o=T(T({},this.getDBValue()),e);this.handleValueChange(o,T(T({},t),{},{patch:e}))}validateValue(e){const t=this.getDefaultValue(),o=Object.keys(e).filter(e=>{const o=e in t,n="_"===e[0]||["tabsState"].includes(e),a=["tabsCurrentElement"].includes(e);return!o&&!n&&!a});o.length&&console.error(`${this.constructor.componentId} element\n\nKeys not in defaultValue:\n${JSON.stringify(o,null,2)}\n \nTried to update with:\n${JSON.stringify(e,(e,t)=>Array.isArray(t)?"[...]":t,2)}`)}handleValueChange(e,t){this.props.onChange(e,t)}selfDestruct(){this.props.onChange(null,{intent:"remove_all"})}makeSubcomponentProps(e){let{bindWithKey:t}=e,o=Object(n.a)(e,["bindWithKey"]);const a=this.getDefaultValue(),r=this.getDBValue();return T(T({},o),{},{_id:`${this.getId()}-${t}`,path:[...this.getPath(),t],defaultValue:a&&a[t],dbValue:r&&r[t],reduxState:this.getReduxState(),reduxDispatch:this.getReduxDispatch(),onChange:(e,o)=>this.patchValue({[t]:e},o)})}makeContextMenuProps(e,t={}){const o=this.getComponentId(),n=this.getValue();return T({id:Object(u.a)(3),componentId:o,items:e.getItems(n,this)},t)}makeToolbarPropsFromConfig(t,o,n={}){const{onToolbarOpen:a,onToolbarClose:r,onToolbarEnter:i,onToolbarLeave:l}=this.props,{allowExtendFromParent:s,parentItemsFilter:c,allowExtendFromChild:u,allowExtendFromThirdParty:h,thirdPartyExtendId:g=this.getComponentId(),allowSidebarExtendFromParent:v,allowSidebarExtendFromChild:y,allowSidebarExtendFromThirdParty:S,sidebarThirdPartyExtendId:C=g}=Object(O.c)(n);return{getItems:(e=Object(b.h)(Object(p.b)().getState()))=>{var o;const n="getItemsFor"+(([e,...t],o=!1)=>e.toUpperCase()+(o?t.join("").toLowerCase():t.join("")))(e,!0);const a=t[n],r=this.getValue(),i=f.e(r.tabsState);let l=this.bindToolbarItems(r,e,i,null!==(o=null==a?void 0:a(r,this))&&void 0!==o?o:[]);if(s&&this.props.toolbarExtend){const{getItems:t}=this.props.toolbarExtend;let o=t(e);"function"==typeof c&&(o=c(o)),l=Object(d.b)(l,o)}if(u&&this.childToolbarExtend){const{getItems:t}=this.childToolbarExtend,o=t(e);l=Object(d.b)(o,l)}if(h){const t=Object(m.b)("toolbarItemsExtend_"+g,null);if(null==t?void 0:t[n]){const o=this.bindToolbarItems(r,e,i,t[n](r,this));l=Object(d.b)(l,o)}}return l},getSidebarItems:(e=Object(b.h)(Object(p.b)().getState()))=>{var t,n;const a=this.getValue(),r=f.e(a.tabsState);let i=this.bindToolbarItems(a,e,r,(null==o||null===(t=o.getItems)||void 0===t?void 0:t.call(o,{v:a,component:this,device:e,state:r}))||[]);if(v&&(null===(n=this.props.toolbarExtend)||void 0===n?void 0:n.getSidebarItems)){const{getSidebarItems:t}=this.props.toolbarExtend,o=t(e);i=Object(d.b)(i,o)}if(y&&this.childToolbarExtend){const{getSidebarItems:t}=this.childToolbarExtend,o=t(e);i=Object(d.b)(o,i)}if(S){const t=Object(m.b)("sidebarItemsExtend_"+C,null);if(null==t?void 0:t.getItems){const o=this.bindToolbarItems(a,e,r,t.getItems({v:a,component:this,device:e,state:r}));i=Object(d.b)(i,o)}}return i},getSidebarTitle:()=>{let e=null==o?void 0:o.title;if("function"==typeof e){e=e({v:this.getValue()})}if(v&&this.props.toolbarExtend){const{getSidebarTitle:t}=this.props.toolbarExtend;e=t()||e}if(y&&this.childToolbarExtend){const{getSidebarTitle:t}=this.childToolbarExtend;e=t()||e}return e||""},onBeforeOpen:()=>{e.Brizy.activeEditorComponent=this},onBeforeClose:()=>{e.Brizy.activeEditorComponent=null},onOpen:a,onClose:r,onMouseEnter:i,onMouseLeave:l}}bindToolbarItems(e,t,o,n){return Object(d.c)(n=>{const{id:a,type:r,onChange:i}=n,s=e=>this.patchValue({tabsState:e});y.d===t&&(n=Object(g.a)(P.a,o,s,n));const c=Object(O.b)(r),d=n.dependencies||l.default.identity;return c&&(n.value=Object(S.b)(r)(n=>Object(v.b)({v:e,key:Object(O.a)(a,n),device:t,state:o}))),n.onChange=(e,a)=>{const r=c?Object(v.a)({key:n.id,device:Object(O.d)(t,n),state:Object(O.e)(o,n)}):n.id,l=c?d(Object(O.f)(r,e)):i?i(e,a):((e,t)=>void 0!==t?{[e]:t}:null)(r,e);l&&this.patchValue(l)},n},Object(d.c)(C.a,n))}makeToolbarPropsFromConfig2(t,o,n={}){const{onToolbarOpen:a,onToolbarClose:r,onToolbarEnter:i,onToolbarLeave:l}=this.props,{allowExtendFromParent:s,parentItemsFilter:c,parentExtendProp:u="toolbarExtend",allowExtendFromChild:h,allowExtendFromThirdParty:g,thirdPartyExtendId:v=this.getComponentId(),allowSidebarExtendFromParent:y,allowSidebarExtendFromChild:S,allowSidebarExtendFromThirdParty:C,sidebarThirdPartyExtendId:x=v}=Object(O.c)(n);return{getItems:(e=Object(b.h)(Object(p.b)().getState()))=>{var o;const n=this.getValue(),a=f.e(n.tabsState);let r=this.bindToolbarItems(n,e,a,null!==(o=null==t?void 0:t.getItems({v:n,component:this,device:e,state:a}))&&void 0!==o?o:[]);if(s&&this.props[u]){const{getItems:t}=this.props[u];let o=t(e);"function"==typeof c&&(o=c(o)),r=Object(d.b)(r,o)}if(h&&this.childToolbarExtend){const{getItems:t}=this.childToolbarExtend,o=t(e);r=Object(d.b)(o,r)}if(g){const t=Object(m.b)("toolbarItemsExtend_"+v,null);if(null==t?void 0:t.getItems){const o=this.bindToolbarItems(n,e,a,t.getItems({v:n,component:this,device:e,state:a}));r=Object(d.b)(r,o)}}return r},getSidebarItems:(e=Object(b.h)(Object(p.b)().getState()))=>{var t,n;const a=this.getValue(),r=f.e(a.tabsState);let i=this.bindToolbarItems(a,e,r,(null==o||null===(t=o.getItems)||void 0===t?void 0:t.call(o,{v:a,component:this,device:e,state:r}))||[]);if(y&&(null===(n=this.props[u])||void 0===n?void 0:n.getSidebarItems)){const{getSidebarItems:t}=this.props[u],o=t(e);i=Object(d.b)(i,o)}if(S&&this.childToolbarExtend){const{getSidebarItems:t}=this.childToolbarExtend,o=t(e);i=Object(d.b)(o,i)}if(C){const t=Object(m.b)("sidebarItemsExtend_"+x,null);if(null==t?void 0:t.getItems){const o=this.bindToolbarItems(a,e,r,t.getItems({v:a,component:this,device:e,state:r}));i=Object(d.b)(i,o)}}return i},getSidebarTitle:()=>{let e=null==o?void 0:o.title;if("function"==typeof e){e=e({v:this.getValue()})}if(y&&this.props.toolbarExtend){const{getSidebarTitle:t}=this.props.toolbarExtend;e=t()||e}if(S&&this.childToolbarExtend){const{getSidebarTitle:t}=this.childToolbarExtend;e=t()||e}return e||""},onBeforeOpen:()=>{e.Brizy.activeEditorComponent=this},onBeforeClose:()=>{e.Brizy.activeEditorComponent=null},onOpen:a,onClose:r,onMouseEnter:i,onMouseLeave:l}}render(){const{v:e,vs:t,vd:o}=this.getValue2();return this.renderForEdit(e,t,o)}renderForEdit(e,t,o){throw"renderForEdit: Not Implemented"}renderForView(e,t,o){return this.renderForEdit(e,t,o)}applyRulesToValue(e,t){const o=t.filter(Boolean);if(0===o.length)return e;const n=this.getRulesValue(o);return l.default.defaults(n,e)}getRulesValue(e){const t=Object(b.B)(this.getReduxState());if(t)return e.reduce((e,o)=>{let n;switch(typeof o){case"object":{const{rule:e,mapper:a}=o;n=t[e]&&a(t[e]);break}case"string":n=t[o];break;default:throw new Error("Invalid rule type")}return n?Object.assign(e,n):e},{})}}Object(a.a)(E,"defaultProps",{onToolbarOpen:l.default.noop,onToolbarClose:l.default.noop,onToolbarEnter:l.default.noop,onToolbarLeave:l.default.noop}),Object(a.a)(E,"defaultValue",{}),Object(a.a)(E,"experimentalDynamicContent",!1),t.a=E}).call(this,o(86))},function(e,t,o){"use strict";o.d(t,"I",(function(){return H})),o.d(t,"F",(function(){return _})),o.d(t,"w",(function(){return F})),o.d(t,"X",(function(){return R})),o.d(t,"a",(function(){return M})),o.d(t,"H",(function(){return L})),o.d(t,"u",(function(){return W})),o.d(t,"V",(function(){return I})),o.d(t,"W",(function(){return N})),o.d(t,"x",(function(){return A})),o.d(t,"q",(function(){return D})),o.d(t,"e",(function(){return V})),o.d(t,"R",(function(){return $})),o.d(t,"S",(function(){return G})),o.d(t,"T",(function(){return U})),o.d(t,"k",(function(){return K})),o.d(t,"r",(function(){return q})),o.d(t,"P",(function(){return Y})),o.d(t,"Q",(function(){return X})),o.d(t,"G",(function(){return Z})),o.d(t,"C",(function(){return J})),o.d(t,"L",(function(){return Q})),o.d(t,"t",(function(){return ee})),o.d(t,"D",(function(){return te})),o.d(t,"E",(function(){return oe})),o.d(t,"l",(function(){return ne})),o.d(t,"v",(function(){return ae})),o.d(t,"m",(function(){return re})),o.d(t,"K",(function(){return ie})),o.d(t,"J",(function(){return le})),o.d(t,"n",(function(){return se})),o.d(t,"b",(function(){return ce})),o.d(t,"M",(function(){return de})),o.d(t,"z",(function(){return ue})),o.d(t,"y",(function(){return pe})),o.d(t,"g",(function(){return be})),o.d(t,"i",(function(){return me})),o.d(t,"B",(function(){return he})),o.d(t,"A",(function(){return ge})),o.d(t,"h",(function(){return ve})),o.d(t,"j",(function(){return fe}));var n=o(32),a=o(2),r=o(40),i=o.n(r),l=o(218),s=o.n(l),c=o(17),d=o(14),u=o(70);function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const m=e=>{let t;if(!e.data)throw new u.h("Project data should exist");try{t=JSON.parse(e.data)}catch(t){throw new u.h("Failed to parse project data "+e.data)}return b(b({},e),{},{data:t})},h=e=>{let t;if(e.data)try{t=JSON.parse(e.data)}catch(t){throw new u.g("Failed to parse page "+e.data)}else t={};return b(b({},e),{},{id:e.id,data:t})},g=e=>{let t=JSON.stringify(e.data);return b(b({},e),{},{data:t})},v=e=>{let t,o,n,a,r;if(!e.data)throw new u.b("globalBlock data should exist");try{t=JSON.parse(e.data)}catch(t){throw new u.b("Failed to parse globalBlock data "+e.data)}if(e.meta)try{o=JSON.parse(e.meta)}catch(e){o={}}else o={};if(e.rules)try{n=d.i?e.rules:JSON.parse(e.rules)}catch(e){throw new u.b("globalBlock rules are wrong")}else n=[];if(e.position)try{a=d.i?e.position:JSON.parse(e.position)}catch(e){throw new u.b("globalBlock position are wrong")}else a={};return r=e.status?e.status:"publish",b(b({},e),{},{data:t,meta:o,position:a,status:r,rules:n})},f=e=>{const t=JSON.stringify(e.data),o=JSON.stringify(e.meta),n=JSON.stringify(e.rules);return b(b({},e),{},{data:t,meta:o,rules:n})};var y=o(87),O=o(114);const S=({models:e,globalBlocks:t})=>{const o=new Set;return Object(y.d)(e,{Component({type:e,value:t}){const n=Object(O.a)(e).content||{};Object.entries(n.images||{}).forEach(([e,n])=>{const a=t[e]||n;a&&o.add(a)})},GlobalBlock({value:{_id:e}}){const n=t&&t[e];n&&S({models:n}).forEach(e=>{o.add(e)})}}),[...o]};function C(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function x(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?C(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):C(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const j=e=>{const t=JSON.stringify(e.data),o=JSON.stringify(e.meta);return x(x({},e),{},{data:t,meta:o})},B=e=>{let t;if(e.meta)try{t=JSON.parse(e.meta)}catch(e){t={}}else t={};return x(x({},e),{},{meta:t})},P=e=>{const{data:t,meta:o}=e,{extraFontStyles:n}=o,a=Object(y.b)({models:t}),r=S({models:t}),i=Object(y.c)(n),l=new Set;return[...a,...i].forEach(({family:e,type:t})=>{"upload"===t&&l.add(e)}),JSON.stringify({images:r,fonts:[...l]})};function w(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function T(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?w(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):w(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const z=c.a.get("wp").api.url;function E(e,t){const{hash:o,url:n}=c.a.get("wp").api,a=c.a.get("editorVersion"),r=T(T({},t),{},{action:e,hash:o,version:a});return new s.a((e,t)=>i.a.post(n,r).done(e).fail(e=>t(e.responseText)))}function k(e){const{hash:t,url:o}=c.a.get("wp").api,a=c.a.get("editorVersion"),{data:r}=e,l=Object(n.a)(e,["data"]);return new s.a((e,n)=>{i.a.ajax(T(T({url:o},l),{},{data:"object"==typeof r&&null!==r?T(T({},r),{},{hash:t,version:a}):r,onbeforeunload:()=>"You have unsaved data.",failedAttempts:0,success(t){this.failedAttempts=0,window.onbeforeunload=null,e(t)},error(e){const{status:t,responseJSON:o}=e;0===t?(this.failedAttempts++,window.onbeforeunload=this.onbeforeunload,this.failedAttempts<=5&&setTimeout(()=>i.a.ajax(this),5e3*this.failedAttempts)):n(o)}}))})}function H(e,t={}){return fetch(e,t)}function _(e=650){return new s.a(t=>{setTimeout(()=>{t(!0)},e)})}function F(){const{getProject:e}=c.a.get("wp").api;return k({type:"POST",dataType:"json",data:{action:e}}).then(({data:e})=>e).then(m)}function R(e,t={}){const{setProject:o}=c.a.get("wp").api,{is_autosave:n=1}=t,{data:a,dataVersion:r}=(e=>{let t=JSON.stringify(e.data);return b(b({},e),{},{data:t})})(e);return k({type:"POST",dataType:"json",data:{data:a,dataVersion:r,is_autosave:n,action:o}})}function M(){const{url:e,hash:t,lockProject:o}=c.a.get("wp").api,n=c.a.get("editorVersion");return H(e,{method:"POST",body:new URLSearchParams({version:n,hash:t,action:o})}).then(e=>e.json()).then(e=>{if(e.success)return e.data;throw e})}function L(){const{removeLock:e}=c.a.get("wp").api,t=c.a.get("editorVersion"),o=new URL(z);return o.searchParams.append("action",e),o.searchParams.append("version",t),navigator.sendBeacon(""+o)}function W(){const e=c.a.get("wp").api;return k({type:"POST",dataType:"json",data:{id:c.a.get("wp").page,action:e.getPage}}).then(({data:e})=>e.map(h))}function I(e,t={}){const{updatePage:o}=c.a.get("wp").api,{is_autosave:n=1}=t;return k({type:"POST",dataType:"json",data:T(T({action:o},g(e)),{},{is_autosave:n})})}function N(e){const{api:{updateRules:t,hash:o,url:n},page:a}=c.a.get("wp"),{rules:r,dataVersion:i}=e;return H(`${n}?action=${t}&hash=${o}&post=${a}&version=${c.a.get("editorVersion")}&dataVersion=${i}`,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})}function A(){const{api:{getRuleList:e,hash:t,url:o},page:n}=c.a.get("wp"),a=c.a.get("editorVersion");return H(o,{method:"POST",body:new URLSearchParams({action:e,post:n,version:a,hash:t})}).then(e=>e.json()).then(({data:e})=>e)}function D(){const{getGlobalBlockList:e}=c.a.get("wp").api;return k({type:"POST",dataType:"json",data:{action:e}}).then(({data:e})=>e.map(v).reduce((e,{uid:t,data:o,status:n,dataVersion:a,rules:r,position:i,meta:l})=>("draft"===n||(e[t]={data:o,status:n,dataVersion:a,meta:l,rules:r,position:i,id:t}),e),{}))}function V(e){const{createGlobalBlock:t}=c.a.get("wp").api,o=e.data.value._id,{data:n,rules:a,dataVersion:r,meta:i}=f(e);return k({type:"POST",dataType:"json",data:{uid:o,status:"draft",data:n,dataVersion:r,rules:a,meta:i,media:P(e),action:t}})}function $(e,t,o={}){const{updateGlobalBlock:n}=c.a.get("wp").api,{is_autosave:a=1}=o,{data:r,rules:i,dataVersion:l,meta:s,status:d}=f(t);return k({type:"POST",dataType:"json",data:{uid:e,status:d,data:r,dataVersion:l,rules:i,is_autosave:a,meta:s,action:n}})}function G(e,t={}){const{updateGlobalBlocks:o}=c.a.get("wp").api,{is_autosave:n=1}=t,a=Object.entries(e).reduce((e,[t,o])=>{const{data:n,position:a,rules:r,dataVersion:i,meta:l,status:s}=f(o);return e.uid.push(t),e.status.push(s),e.data.push(n),e.position.push(JSON.stringify(a)),e.dataVersion.push(i),e.rules.push(r),e.meta.push(l),e},{uid:[],status:[],data:[],position:[],dataVersion:[],rules:[],meta:[]});return k({type:"POST",dataType:"json",data:{uid:a.uid,status:a.status,data:a.data,position:a.position,dataVersion:a.dataVersion,rules:a.rules,is_autosave:n,meta:a.meta,action:o}})}function U(e,t={}){const{updateBlockPositions:o,hash:n,url:a}=c.a.get("wp").api,r=c.a.get("editorVersion"),{is_autosave:i=1}=t;return k({type:"POST",url:`${a}?action=${o}&hash=${n}&is_autosave=${i}&version=${r}`,dataType:"json",contentType:"application/json",data:JSON.stringify(e)})}function K(e){const{api:t,page:o}=c.a.get("wp"),n={post_id:o,media:e};return E(t.downloadMedia,n).then(({data:e})=>e)}function q(e){const{api:t,page:o}=c.a.get("wp"),n={post_id:o,attachment_id:e};return E(t.getMediaUid,n).then(({data:e})=>e)}function Y(e,t){return E(c.a.get("wp").api.setFeaturedImage,{post:e,attachmentId:t})}function X(e,t,o,n){return E(c.a.get("wp").api.setFeaturedImageFocalPoint,{post:e,attachmentId:t,pointX:o,pointY:n})}function Z(e){return E(c.a.get("wp").api.removeFeaturedImage,{post:e})}function J(){return E(c.a.get("wp").api.getSidebars,{}).then(({data:e})=>e)}function Q(e){return E(c.a.get("wp").api.shortcodeContent,{shortcode:e}).then(({data:e})=>e)}function ee(){return E(c.a.get("wp").api.getMenus,{}).then(({data:e})=>e)}function te(e){return E(c.a.get("wp").api.getTerms,{taxonomy:e}).then(({data:e})=>e)}function oe(){return E(c.a.get("wp").api.getFonts,{}).then(({data:e})=>e)}function ne(e){const t={attachment_id:e};return E(c.a.get("wp").api.getAttachmentUid,t).then(({data:e})=>e)}function ae(e){return E(c.a.get("wp").api.getPostObjects,{postType:e}).then(({data:e})=>e)}function re(){return E(c.a.get("wp").api.getRuleGroupList,{context:"popup-rules"}).then(({data:e})=>e)}function ie(){const{url:e,hash:t,heartBeat:o}=c.a.get("wp").api,n=c.a.get("editorVersion");return H(e,{method:"POST",body:new URLSearchParams({action:o,version:n,hash:t})}).then(e=>e.json()).then(e=>{if(e.success)return e.data;throw e})}function le(){const{url:e,hash:t,takeOver:o}=c.a.get("wp").api,n=c.a.get("editorVersion");return H(e,{method:"POST",body:new URLSearchParams({action:o,version:n,hash:t})}).then(e=>e.json()).then(e=>{if(e.success)return e.data;throw e})}const se=({placeholders:e,signal:t,postId:o})=>{const{page:n,api:{url:a,hash:r,placeholderContent:i}}=c.a.get("wp"),l=c.a.get("editorVersion"),s=new URLSearchParams({action:i,post_id:o||n,version:l,hash:r});for(const t of e)s.append("placeholders[]",t);return H(a,{method:"POST",body:s,signal:t}).then(e=>{if(!e.ok)throw new Error("fetch dynamic content error");return e.json()}).then(e=>{if(e.success)return e.data.placeholders;throw new Error("fetch dynamic content error")})},ce=({base64:e,blockType:t})=>{const{page:o,api:{url:n,hash:a,createBlockScreenshot:r}}=c.a.get("wp"),i=c.a.get("editorVersion"),l=e.replace(/data:image\/.+;base64,/,"");return H(n,{method:"POST",body:new URLSearchParams({action:r,post:o,version:i,hash:a,block_type:t,ibsf:l})}).then(e=>e.json()).then(e=>{if(e.success)return e.data;throw e})},de=({id:e,base64:t,blockType:o})=>{const{page:n,api:{url:a,hash:r,updateBlockScreenshot:i}}=c.a.get("wp"),l=c.a.get("editorVersion"),s=t.replace(/data:image\/.+;base64,/,"");return H(a,{method:"POST",body:new URLSearchParams({action:i,post:n,version:l,hash:r,block_type:o,id:e,ibsf:s})}).then(e=>e.json()).then(e=>{if(e.success)return e.data;throw e})},ue=()=>{const{getSavedBlockList:e}=c.a.get("wp").api;return k({type:"POST",dataType:"json",data:{action:e,fields:["uid","meta","synchronized","synchronizable"]}}).then(({data:e})=>e.map(B))},pe=e=>{const{getSavedBlockByUid:t}=c.a.get("wp").api;return k({type:"POST",dataType:"json",data:{uid:e,action:t}}).then(({data:e})=>(e=>{let t,o;if(!e.data)throw new u.i("savedBlock data should exist");try{t=JSON.parse(e.data)}catch(t){throw new u.i("Failed to parse savedBlock data "+e.data)}if(e.meta)try{o=JSON.parse(e.meta)}catch(e){o={}}else o={};return x(x({},e),{},{data:t,meta:o})})(e))},be=e=>{const{createSavedBlock:t}=c.a.get("wp").api,{uid:o,data:n,dataVersion:a,meta:r}=j(e);return k({type:"POST",dataType:"json",data:{uid:o,data:n,meta:r,media:P(e),dataVersion:a,action:t}})},me=e=>{const{deleteSavedBlock:t}=c.a.get("wp").api;return k({type:"POST",dataType:"json",data:{uid:e,action:t}})},he=()=>{const{getLayoutList:e}=c.a.get("wp").api;return k({type:"POST",dataType:"json",data:{action:e,fields:["uid","meta","synchronized","synchronizable"]}}).then(({data:e})=>e.map(B))},ge=e=>{const{getLayoutByUid:t}=c.a.get("wp").api;return k({type:"POST",dataType:"json",data:{uid:e,action:t}}).then(({data:e})=>(e=>{let t,o;if(!e.data)throw new u.j("savedLayout data should exist");try{t=JSON.parse(e.data)}catch(t){throw new u.j("Failed to parse savedLayout data "+e.data)}if(e.meta)try{o=JSON.parse(e.meta)}catch(e){o={}}else o={};return x(x({},e),{},{data:t,meta:o})})(e))},ve=e=>{const{createLayout:t}=c.a.get("wp").api,{data:o,dataVersion:n,uid:a,meta:r}=j(e);return k({type:"POST",dataType:"json",data:{uid:a,data:o,meta:r,media:P(e),dataVersion:n,action:t}})},fe=e=>{const{deleteLayout:t}=c.a.get("wp").api;return k({type:"POST",dataType:"json",data:{uid:e,action:t}})}},function(e,t,o){"use strict";o.d(t,"a",(function(){return u}));var n=o(32),a=o(2),r=o(0),i=o.n(r),l=o(35),s=o.n(l);let c={};function d(e){return Object.entries(e).reduce((e,[t,o])=>e+=o.replace(/element/g,`[data-custom-id=${t}]`),"")}class u extends i.a.Component{componentWillUnmount(){const{selectorName:e}=this.props;delete c[e]}componentDidMount(){this.updateCSS()}updateCSS(){const{selectorName:e,css:t}=this.props,o=s.a.findDOMNode(this);if(c[e]===t)return;t?(o.setAttribute("data-custom-id",e),c[e]=t):(o.removeAttribute("data-custom-id",e),delete c[e]);let n=document.getElementById("custom-css");n?n.innerHTML=d(c):(n=document.createElement("style"),n.id="custom-css",n.innerHTML=d(c),document.head.appendChild(n))}componentDidUpdate(){this.updateCSS()}renderForEdit(){const e=this.props,{selectorName:t,css:o,children:a}=e,r=Object(n.a)(e,["selectorName","css","children"]);return i.a.cloneElement(i.a.Children.only(a),r)}renderForView(){const{selectorName:e,css:t,children:o}=this.props;return i.a.createElement("div",{"data-custom-id":e,"data-custom-css":d({[e]:t})},i.a.Children.only(o))}render(){return this.renderForEdit()}}Object(a.a)(u,"defaultProps",{selectorName:"",css:""})},function(e,t,o){"use strict";o.d(t,"a",(function(){return L})),o.d(t,"b",(function(){return W}));var n=o(180),a=o(423),r=o(2),i=o(37),l=o(19),s=o(53),c=o(70),d=o(93);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function p(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach((function(t){Object(r.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function b(e,t){return p(p({},e),{},{history:{currSnapshot:t.getCurrentSnapshot(),prevSnapshot:t.getPreviousSnapshot(),canUndo:t.canUndo(),canRedo:t.canRedo()}})}var m=o(14);var h=o(24),g=o(51);function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?v(Object(o),!0).forEach((function(t){Object(r.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):v(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var y=o(8),O=o(44);function S(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function C(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?S(Object(o),!0).forEach((function(t){Object(r.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}Object(i.c)(!1);var x=o(26),j=o(27);function B(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function P(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?B(Object(o),!0).forEach((function(t){Object(r.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):B(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const w={deviceMode:"desktop",leftSidebar:{isOpen:!1,drawerContentType:void 0},rightSidebar:{isOpen:!1,lock:void 0,alignment:"right"},showHiddenElements:!1,currentRole:"default"};function T(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function z(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?T(Object(o),!0).forEach((function(t){Object(r.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):T(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const E={value:{},path:[]};const k=e=>e.type&&e.value&&e.value._id&&e.value._thumbnailSrc;function H(e){const t={};return Object(s.g)(e,e=>{if(k(e)){const o=e.value;t[e.value._id]={_thumbnailSrc:o._thumbnailSrc,_thumbnailWidth:o._thumbnailWidth,_thumbnailHeight:o._thumbnailHeight,_thumbnailTime:o._thumbnailTime}}}),t}var _,F,R=function(e,t){const o=new d.a;return function(n,a){switch(a.type){case d.c:case d.b:{const e=a.type===d.c?o.canUndo():o.canRedo(),t=a.type===d.c?o.undo:o.redo;return e?(t.call(o),b(p(p({},n),o.getCurrentSnapshot()),o)):"object"==typeof(i=n).history&&null!==i.history&&Object(s.b)(["currSnapshot","prevSnapshot","canUndo","canRedo"],i.history)?n:b(p(p({},n),o.getCurrentSnapshot()),o)}default:{const i=e(n,a);if(!a.type.includes("@@redux/INIT")){var r;t.onBeforeUpdate&&t.onBeforeUpdate(n,a,o);const e=function(e,t){return t.reduce((t,o)=>(t[o]=e[o],t),{})}(i,t.keysToTrack);o.update(e,{replacePresent:Boolean(null==a||null===(r=a.meta)||void 0===r?void 0:r.historyReplacePresent)})}return b(i,o)}}var i}}((_={authorized:(e,t)=>{switch(t.type){case"HYDRATE":{const{authorized:e}=t.payload;return e}case"UPDATE_AUTHORIZATION":return t.payload;default:return e}},syncAllowed:(e,t)=>{switch(t.type){case"HYDRATE":{const{syncAllowed:e}=t.payload;return e}case"UPDATE_SYNC_ALLOWED":return t.payload;default:return e}},blocksData:(e={},t,o)=>{switch(t.type){case"HYDRATE":{var n;const{page:e,globalBlocks:o}=t.payload,a=(null===(n=e.data)||void 0===n?void 0:n.items)||[];if(m.g&&0===a.length)return{ecupxjcqmrpxjdimoebbkbnotrlufkfokjvr:{type:"Story",value:{_styles:["story"],items:[{type:"StoryItem",value:{_styles:["story-item"],items:[],_id:"dfmwxzkwbiaezltvsxhdinhplvimzenkiqto"}},{type:"StoryItem",value:{_styles:["story-item"],items:[],_id:"dfmwxzkwbieezltvsxhdinhplvimzenkiq1"}}],_id:"ecupxjcqmrpxjdimoebbkbnotrlufkfokjvr"},blockId:"StoryDefault"}};const r=a.reduce((e,t)=>{const{_id:o,globalBlockId:n}=t.value;return e[n||o]=t,e},{}),l=Object.entries(o).reduce((e,[t,o])=>(e[t]=Object(i.a)(o.data,e=>{e.value._id=t}),e),{});return Object(i.a)(f(f({},r),l),e=>{Object(s.g)(e,e=>{if(e.type&&"GlobalBlock"===e.type){const{globalBlockId:t}=e.value;t&&(e.value._id=t,delete e.value.globalBlockId)}})})}case"IMPORT_STORY":{const{blocks:n}=t.payload,{insertIndex:a}=t.meta,r=Object(l.c)(o)[0],i=Object(m.n)(e[r].value.items,a,n);return Object(h.setIn)(e,[r,"value","items"],i)}case"ADD_BLOCK":{const{block:o}=t.payload;return f(f({},e),{},{[o.value._id]:o})}case"MAKE_POPUP_TO_GLOBAL_BLOCK":{const{data:o}=t.payload,n=Object(m.p)(e=>e.value._id===o.value._id?{blockId:e.blockId,type:"GlobalBlock",value:{_id:o.value._id}}:e,e);return Object(i.a)(n,e=>{e[o.value._id]=o})}case"MAKE_GLOBAL_BLOCK_TO_POPUP":{const{block:o,fromBlockId:n}=t.payload;return m.c?f(f({},e),{},{[o.value._id]:o}):Object(m.p)(e=>e.value._id===n?o:e,e)}case"MAKE_GLOBAL_TO_NORMAL_BLOCK":{const{block:o}=t.payload;return f(f({},e),{},{[o.value._id]:o})}case"REMOVE_BLOCK":{const{index:n}=t.payload,a=Object(l.o)(o),r=Object.keys(a),s=Object(l.c)(o)[n];return r.includes(s)?e:Object(i.a)(e,e=>{delete e[s]})}case"REMOVE_BLOCKS":{const t=Object(l.c)(o),n=Object(l.o)(o),a=Object.keys(n),r=t.filter(e=>!a.includes(e));return Object(i.a)(e,e=>{r.forEach(t=>{delete e[t]})})}case"UPDATE_GLOBAL_BLOCK":{const{id:o,data:n}=t.payload;return null===n.value?e:f(f({},e),{},{[o]:n})}case"IMPORT_TEMPLATE":case"UPDATE_BLOCKS":{const{blocks:o}=t.payload,n=o.reduce((e,t)=>("GlobalBlock"===t.type||(e[t.value._id]=t),e),{});return f(f({},e),n)}default:return e}},blocksThumbnailSizes:function(e={},t){switch(t.type){case x.h:return t.payload.blocksThumbnailSizes;default:return e}},copiedElement:function(e=E,t){switch(t.type){case x.d:return z(z({},e),t.value);default:return e}},currentStyle:function(e={},t,o){switch(t.type){case x.h:{const{project:e}=t.payload;return e.data.styles.find(t=>t.id===e.data.selectedStyle)}case x.t:return t.payload;case x.u:{const e=t.payload;return o.styles.find(({id:t})=>t===e)}case j.b:case x.j:{const{currentStyleId:o,styles:n}=t.payload;return o?n.find(e=>e.id===o):e}default:return e}},currentStyleId:function(e="",t){switch(t.type){case x.h:{const{project:e}=t.payload;return e.data.selectedStyle}case x.u:return t.payload;case j.b:case x.j:{const{currentStyleId:o}=t.payload;return o||e}default:return e}},error:function(e=null,t){switch(t.type){case x.h:{const{projectStatus:o}=t.payload;return o.locked?{code:c.f,data:o}:e}case x.w:return t.payload;default:return e}},extraFontStyles:(e=[],t)=>{switch(t.type){case"HYDRATE":{const{project:e}=t.payload;return e.data.extraFontStyles}case"UPDATE_EXTRA_FONT_STYLES":return t.payload;case"IMPORT_TEMPLATE":case"ADD_BLOCK":case"ADD_GLOBAL_BLOCK":{const{extraFontStyles:o}=t.payload;return o&&0!==o.length?[...e,...o]:e}default:return e}},fonts:function(e={},t){switch(t.type){case x.h:{const{fonts:e}=t.payload;return e}case x.b:case x.e:{const o=t.payload;return z(z({},e),o)}case j.b:case x.j:case x.i:case x.a:case x.c:{const{fonts:o}=t.payload;return o&&0!==o.length?Object(i.a)(e,e=>{o.forEach(({type:t,fonts:o})=>{e[t]=e[t]||{data:[]},e[t].data.push(...o)})}):e}default:return e}},globalBlocks:(e={},t,o)=>{const n=Number(Object(O.d)(o).id);switch(t.type){case"HYDRATE":{const{globalBlocks:e,page:{data:{items:o=[]}}}=t.payload,n=o.filter(e=>{var t;return null==e||null===(t=e.value)||void 0===t?void 0:t.globalBlockId}).map(e=>{var t;return null==e||null===(t=e.value)||void 0===t?void 0:t.globalBlockId});return Object.entries(e).reduce((e,[o,a])=>(n.includes(o)&&!Object(g.k)(a.data)?e[o]=Object(i.a)(a,e=>{e.rules=Object(g.d)(a,!0,Number(t.payload.page.id)).rules,e.data.value._id=o}):e[o]=a,e),{})}case"ADD_BLOCK":return e;case"ADD_GLOBAL_BLOCK":{const{_id:o}=t.payload.block.value;return Object(g.k)(e[o].data)?e:C(C({},e),{},{[o]:Object(g.d)(e[o],!0,n)})}case"MAKE_POPUP_TO_GLOBAL_BLOCK":case"MAKE_NORMAL_TO_GLOBAL_BLOCK":{const{data:o,status:n,meta:a,rules:r,position:l}=t.payload;return Object(i.a)(e,e=>{e[o.value._id]={meta:a,data:o,status:n,rules:r,position:l,dataVersion:1}})}case"UPDATE_GLOBAL_BLOCK":{const{id:o,data:a}=t.payload;if(null===a.value&&!Object(g.k)(e[o].data)){const t=Object(g.d)(e[o],!1,n);return C(C({},e),{},{[o]:t})}return e}case"REMOVE_BLOCK":{const{index:a}=t.payload,r=Object(l.c)(o),i=Object.keys(e),s=r[a];if(i.includes(r[a])&&!Object(g.k)(e[s].data)){const t=Object(g.d)(e[s],!1,n);return C(C({},e),{},{[s]:t})}return e}case"MAKE_GLOBAL_TO_NORMAL_BLOCK":{const{fromBlockId:o}=t.payload,a=Object(g.d)(e[o],!1,n);return C(C({},e),{},{[o]:a})}case"REORDER_BLOCKS":{const{oldIndex:a,newIndex:r}=t.payload,i=Object(l.c)(o),s=Object.keys(e);if(s.includes(i[a])){const t=i[a],c=Object(h.insert)(Object(h.removeAt)(i,a),r,t),d=i[a],u=Object(g.g)(i,a,s),p=Object(g.g)(c,r,s);if("center"===u&&("top"===p||"bottom"===p)&&!Object(g.f)(Object(l.b)(o),e,n).includes(d)){const t=Object(g.d)(e[d],!0,n);return C(C({},e),{},{[d]:t})}}return e}case"REMOVE_BLOCKS":{const t=Object(l.c)(o),a=Object(l.b)(o),r=y.default.difference(t,a);return Object(i.a)(e,e=>{r.forEach(t=>{Object(g.k)(e[t].data)||(e[t]=Object(g.d)(e[t],!1,n))})})}case"UPDATE_BLOCKS":{const{blocks:a}=t.payload,r=Object(l.c)(o),s=a.map(e=>e.value._id),c=y.default.difference(r,s);return Object(i.a)(e,e=>{c.forEach(t=>{e[t]&&!Object(g.k)(e[t].data)&&(e[t]=Object(g.d)(e[t],!1,n))})})}case"UPDATE_GB_RULES":{const{id:o,rules:n}=t.payload;return Object(i.a)(e,e=>{e[o].rules=n,e[o].dataVersion=e[o].dataVersion+1})}case"DELETE_GLOBAL_BLOCK":{const{id:o}=t.payload;return Object(i.a)(e,e=>{e[o].data.deleted=!0,e[o].dataVersion=e[o].dataVersion+1})}case"PUBLISH":{const e=Object(l.l)(o),t=Object(l.m)(o),n=Object(l.n)(o);return Object.entries(e).reduce((e,[o,a])=>(e[o]=Object(i.a)(a,e=>{e.position=n[o]||null,e.dataVersion=e.dataVersion+1;const r="SectionPopup"===a.data.type||"SectionPopup2"===a.data.type;(t[o]||r)&&(e.status="publish")}),e),{})}default:return e}},changedGBIds:(e=[],t,o)=>{switch(t.type){case x.c:{const{_id:o}=t.payload.block.value;return[...e,o]}case x.n:case x.m:{const{_id:o}=t.payload.data.value;return[...e,o]}case x.k:case x.l:{const{fromBlockId:o}=t.payload;return e.includes(o)?e:[...e,o]}case x.o:{const{index:n}=t.payload,a=Object(l.c)(o)[n];return e.filter(e=>e!==a)}case x.p:{const t=Object(l.m)(o),n=Object.keys(t);return e.filter(e=>!n.includes(e))}case x.y:{const{id:o}=t.payload;return e.includes(o)?e:[...e,o]}case j.a:return[];default:return e}},page:(e,t,o)=>{switch(t.type){case"HYDRATE":{const{page:e}=t.payload;return e}case"PUBLISH":{const{status:e}=t.payload,n=m.c?Object(l.q)(o):Object(l.p)(o);return Object(i.a)(n,t=>{t.status=e,t.dataVersion=t.dataVersion+1})}case"UPDATE_TRIGGERS":{const{data:o}=t.payload;return Object(i.a)(e,e=>{e.data.triggers=o,e.dataVersion=e.dataVersion+1})}case"UPDATE_POPUP_RULES":return Object(i.a)(e,e=>{e.data.rulesAmount=t.payload.length,e.dataVersion=e.dataVersion+1});default:return e}},blocksOrder:(e=[],t)=>{switch(t.type){case"HYDRATE":{var o;const e=Number(t.payload.page.id),n=(null===(o=t.payload.page.data)||void 0===o?void 0:o.items)||[];if(m.g&&0===n.length)return["ecupxjcqmrpxjdimoebbkbnotrlufkfokjvr"];const a=n.map(e=>e.value.globalBlockId||e.value._id);return Object(g.e)(a,t.payload.globalBlocks,e)}case"ADD_GLOBAL_BLOCK":case"ADD_BLOCK":{const{block:o}=t.payload,{insertIndex:n}=t.meta,{_id:a}=o.value;return e.includes(a)?e:Object(h.insert)(e,n,o.value._id)}case"REMOVE_BLOCK":{const{index:o}=t.payload;return Object(h.removeAt)(e,o)}case"REMOVE_BLOCKS":return[];case"MAKE_GLOBAL_BLOCK_TO_POPUP":if(m.c){const{block:o,fromBlockId:n}=t.payload;return Object(h.replaceAt)(e,e.findIndex(e=>e===n),o.value._id)}return e;case"MAKE_GLOBAL_TO_NORMAL_BLOCK":{const{block:o,fromBlockId:n}=t.payload;return Object(h.replaceAt)(e,e.findIndex(e=>e===n),o.value._id)}case"REORDER_BLOCKS":{const{oldIndex:o,newIndex:n}=t.payload,a=e[o];return Object(h.insert)(Object(h.removeAt)(e,o),n,a)}case"IMPORT_TEMPLATE":{const{blocks:o}=t.payload,{insertIndex:n}=t.meta,a=o.map(e=>e.value._id);return Object(h.insert)(e,n,a)}case"UPDATE_BLOCKS":{const{blocks:e}=t.payload;return e.map(e=>e.value._id)}case"UPDATE_GLOBAL_BLOCK":{const{id:o,data:n}=t.payload;return null===n.value?e.filter(e=>e!==o):e}default:return e}},project:function(e={},t,o){switch(t.type){case x.h:{const{project:e}=t.payload;return e}case j.c:return Object(i.a)(Object(l.y)(o),e=>{e.dataVersion=e.dataVersion+1});case x.v:{const o=t.payload;return Object(i.a)(e,e=>{e.data.disabledElements=o,e.dataVersion=e.dataVersion+1})}case x.i:{const{selectedKit:o}=t.payload;return Object(i.a)(e,e=>{e.data.selectedKit=o,e.dataVersion=e.dataVersion+1})}case x.s:{const o=t.payload;return Object(i.a)(e,e=>{e.data.selectedKit=o,e.dataVersion=e.dataVersion+1})}case j.b:case x.j:case x.b:case x.e:return Object(i.a)(e,e=>{e.dataVersion=e.dataVersion+1});default:return e}},styles:function(e=[],t){switch(t.type){case x.h:{const{project:e}=t.payload;return e.data.styles}case j.b:case x.j:case x.i:{const{styles:o}=t.payload;return o?[...e,...o]:e}default:return e}},ui:function(e=w,t){switch(t.type){case"UPDATE_UI":{const{key:o,value:n}=t,a=P(P({},e),{},{[o]:n});return"deviceMode"===o&&"manual"!==a.rightSidebar.lock&&("desktop"!==n?a.rightSidebar=P(P({},a.rightSidebar),{},{isOpen:!0,lock:"auto"}):a.rightSidebar.isOpen&&(a.rightSidebar=P(P({},a.rightSidebar),{},{isOpen:!1,lock:void 0}))),a}default:return e}}},F={screenshots:function(e={},t,o,n){switch(t.type){case x.h:case j.c:{const e=H(n.page.data),t={};for(const[e,o]of Object.entries(n.globalBlocks)){const n=o.data;if(k(n)){const o=n.value;t[e]={_thumbnailSrc:o._thumbnailSrc,_thumbnailWidth:o._thumbnailWidth,_thumbnailHeight:o._thumbnailHeight,_thumbnailTime:o._thumbnailTime}}Object.assign(t,H(n.value))}return z(z(z({},e),t),{},{_published:z(z({},e),t)})}case x.A:{const{payload:{blockId:o,data:n}}=t;return Object(i.a)(e,e=>{e[o]=n})}case x.m:{const{data:{value:{_id:o}},meta:n}=t.payload,a={_thumbnailSrc:n._thumbnailSrc,_thumbnailWidth:n._thumbnailWidth,_thumbnailHeight:n._thumbnailHeight,_thumbnailTime:n._thumbnailTime};return Object(i.a)(e,e=>{e[o]=a,e._published[o]=a})}default:return e}}},(e={},t)=>{const o={};return Object.entries(_).reduce((o,[n,a])=>(o[n]=a(e[n],t,e),o),o),Object.entries(F).reduce((o,[n,a])=>(o[n]=a(e[n],t,e,o),o),o),o}),{keysToTrack:["blocksOrder","blocksData","currentStyleId","currentStyle","extraFontStyles","globalBlocksUpdates"],onBeforeUpdate:(e,t,o)=>{if(t.type===x.x||t.type===x.o||t.type===x.p){const n=Object(l.c)(e),a=Object(l.o)(e);(t.type===x.p?n:[t.payload.id]).forEach(e=>{if(n.includes(e)&&a[e]){const t=o.getSnapshots();o.replaceSnapshots(t.map(t=>((null==t?void 0:t.blocksOrder)&&(t.blocksOrder=t.blocksOrder.filter(t=>t!==e)),t)))}})}}});let M;function L({middleware:e=[]}={}){if(M)throw new Error("store is already created");return M=Object(n.d)(R,Object(n.c)(a.reduxBatch,Object(n.a)(...e))),M}function W(){if(!M)throw new Error("store is not yet created");return M}},,function(e,t,o){"use strict";o.d(t,"g",(function(){return p})),o.d(t,"f",(function(){return b})),o.d(t,"d",(function(){return m})),o.d(t,"a",(function(){return h})),o.d(t,"b",(function(){return v})),o.d(t,"c",(function(){return y})),o.d(t,"h",(function(){return O})),o.d(t,"e",(function(){return S}));var n=o(2),a=o(39),r=o(8),i=o(10),l=o(30),s=o(7);function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function u(e,t,o){const n=e+(String(o).charAt(0).toUpperCase()+String(o).substr(1));return Object(a.e)(t[o],t[n])}function p(e,t){return u("tablet",e,t)}function b(e,t){return u("mobile",e,t)}function m(e,t){return Object(a.e)(e,t)}function h({key:e,device:t="desktop",state:o="normal"}){const n="temp"===e.substr(0,4)?"temp":"",a=n.length>0?e.substr(4):e;return Object(i.a)([n,g({key:a,device:t,state:o})])}function g({key:e,device:t,state:o}){const n=s.e(o),a=l.g(t),r=n===s.d?"":n,c=a===l.d?"":a;return Object(i.a)([r,c,e])}function v({v:e,key:t,device:o="desktop",state:n="normal"}){const r=h({key:t,device:o,state:n}),i=h({key:t,device:l.d,state:n}),c=h({key:t,device:l.d,state:s.d});return Object(a.e)(e[c],Object(a.e)(e[i],e[r]))}const f=Object(r.memoize)(()=>l.h.reduce((e,t)=>{const o=s.f().reduce((e,o)=>(e.push({device:t,state:o}),e),[]);return e.concat(o)},[]));function y(e,t){return f().reduce((o,n)=>o||v(d({v:e,key:t},n)),"")}function O(e,t,o){return f().some(n=>{const a=v(d({v:e,key:t},n));return a&&a!==o})}function S(e,t){return f().map(e=>h(d({key:t},e)))}},function(e,t,o){"use strict";o.d(t,"h",(function(){return s})),o.d(t,"g",(function(){return c})),o.d(t,"r",(function(){return d})),o.d(t,"o",(function(){return u})),o.d(t,"p",(function(){return p})),o.d(t,"q",(function(){return b})),o.d(t,"m",(function(){return m})),o.d(t,"n",(function(){return h})),o.d(t,"k",(function(){return g})),o.d(t,"y",(function(){return v})),o.d(t,"f",(function(){return f})),o.d(t,"z",(function(){return y})),o.d(t,"C",(function(){return O})),o.d(t,"d",(function(){return S})),o.d(t,"j",(function(){return C})),o.d(t,"i",(function(){return x})),o.d(t,"s",(function(){return j})),o.d(t,"u",(function(){return B})),o.d(t,"t",(function(){return P})),o.d(t,"b",(function(){return w})),o.d(t,"e",(function(){return T})),o.d(t,"A",(function(){return z})),o.d(t,"v",(function(){return E})),o.d(t,"x",(function(){return k})),o.d(t,"B",(function(){return H})),o.d(t,"c",(function(){return _})),o.d(t,"l",(function(){return F})),o.d(t,"a",(function(){return R})),o.d(t,"w",(function(){return M})),o.d(t,"F",(function(){return L})),o.d(t,"E",(function(){return W})),o.d(t,"K",(function(){return I})),o.d(t,"J",(function(){return N})),o.d(t,"I",(function(){return A})),o.d(t,"D",(function(){return D})),o.d(t,"N",(function(){return V})),o.d(t,"G",(function(){return $})),o.d(t,"H",(function(){return G})),o.d(t,"L",(function(){return U})),o.d(t,"P",(function(){return K})),o.d(t,"O",(function(){return q})),o.d(t,"M",(function(){return Y}));var n=o(2),a=o(24),r=o(44);function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function l(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const s="HYDRATE",c="EDITOR_RENDERED",d="UPDATE_BLOCKS",u="REMOVE_BLOCK",p="REMOVE_BLOCKS",b="REORDER_BLOCKS",m="MAKE_NORMAL_TO_GLOBAL_BLOCK",h="MAKE_POPUP_TO_GLOBAL_BLOCK",g="MAKE_GLOBAL_BLOCK_TO_POPUP",v="UPDATE_GLOBAL_BLOCK",f="DELETE_GLOBAL_BLOCK",y="UPDATE_POPUP_RULES",O="UPDATE_UI",S="COPY_ELEMENT",C="IMPORT_TEMPLATE",x="IMPORT_KIT",j="UPDATE_CURRENT_KIT_ID",B="UPDATE_CURRENT_STYLE_ID",P="UPDATE_CURRENT_STYLE",w="ADD_FONTS",T="DELETE_FONTS",z="UPDATE_SCREENSHOT",E="UPDATE_DISABLED_ELEMENTS",k="UPDATE_GB_RULES",H="UPDATE_TRIGGERS",_="ADD_GLOBAL_BLOCK",F="MAKE_GLOBAL_TO_NORMAL_BLOCK",R="ADD_BLOCK",M="UPDATE_ERROR";function L({project:e,projectStatus:t,fonts:o,page:n,globalBlocks:a,blocksThumbnailSizes:r,authorized:i,syncAllowed:l}){return{type:s,payload:{project:e,projectStatus:t,fonts:o,page:n,globalBlocks:a,blocksThumbnailSizes:r,authorized:i,syncAllowed:l}}}function W(){return{type:c}}function I(e){return{type:B,payload:e}}function N(e){return{type:P,payload:e}}function A(e){return{type:j,payload:e}}function D({type:e,fonts:t}){return(o,n)=>{const i=Object(r.c)(n()),s=i[e]&&i[e].data||[],c={[""+e]:{data:s.map(e=>t.some(({brizyId:t})=>t===e.brizyId)?l(l({},e),{},{deleted:!0}):e)}};return o({type:T,payload:Object(a.mergeDeep)(i,c)})}}function V({data:e,meta:t}){return{type:y,payload:e,meta:t}}function $(e){return{type:x,payload:e}}function G(e){return{type:S,value:e}}function U(e){return{type:E,payload:e}}function K(e,t){return{type:H,payload:{data:e},meta:t}}function q({blockId:e,data:t,meta:o}){return{type:z,payload:{blockId:e,data:t},meta:o}}function Y(e){return{type:M,payload:e}}},function(e,t,o){"use strict";o.d(t,"b",(function(){return p})),o.d(t,"c",(function(){return b})),o.d(t,"a",(function(){return m})),o.d(t,"d",(function(){return h})),o.d(t,"u",(function(){return s})),o.d(t,"p",(function(){return c})),o.d(t,"n",(function(){return g})),o.d(t,"m",(function(){return v})),o.d(t,"o",(function(){return f})),o.d(t,"l",(function(){return y})),o.d(t,"z",(function(){return O})),o.d(t,"f",(function(){return S})),o.d(t,"x",(function(){return C})),o.d(t,"C",(function(){return x})),o.d(t,"w",(function(){return j})),o.d(t,"i",(function(){return B})),o.d(t,"A",(function(){return P})),o.d(t,"e",(function(){return w})),o.d(t,"g",(function(){return T})),o.d(t,"h",(function(){return z})),o.d(t,"y",(function(){return E})),o.d(t,"q",(function(){return k})),o.d(t,"r",(function(){return H})),o.d(t,"s",(function(){return _})),o.d(t,"j",(function(){return F})),o.d(t,"k",(function(){return R})),o.d(t,"t",(function(){return M})),o.d(t,"v",(function(){return L})),o.d(t,"B",(function(){return W}));var n=o(2),a=o(8),r=o(24),i=o(57),l=o(44);function s(){return{type:"UNDO"}}function c(){return{type:"REDO"}}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?d(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const p="IMPORT_STORY",b="PUBLISH",m="FETCH_PAGE_SUCCESS",h="UPDATE_EXTRA_FONT_STYLES";function g(e){return{type:"MAKE_NORMAL_TO_GLOBAL_BLOCK",payload:e}}function v({fromBlockId:e,block:t}){return{type:"MAKE_GLOBAL_TO_NORMAL_BLOCK",payload:{fromBlockId:e,block:t}}}function f(e){return{type:"MAKE_POPUP_TO_GLOBAL_BLOCK",payload:e}}function y({fromBlockId:e,block:t}){return{type:"MAKE_GLOBAL_BLOCK_TO_POPUP",payload:{fromBlockId:e,block:t}}}function O({id:e,data:t,meta:o}){return{type:"UPDATE_GLOBAL_BLOCK",payload:{id:e,data:t},meta:u({is_autosave:1},o)}}const S=e=>(t,o)=>{const n=Object(l.c)(o()),s=e.reduce((e,t)=>{var o;const{type:r,fonts:l}=t,s=(null===(o=n[r])||void 0===o?void 0:o.data)||[],[c,d]=a.default.partition(l,e=>Object.prototype.hasOwnProperty.call(e,"deleted")),p=d.map(e=>u(u({},e),{},{brizyId:Object(i.a)()}));return u(u({},e),{},{[r]:{data:s.map(e=>c.find(({brizyId:t})=>e.brizyId===t)||e).concat(p)}})},{});return t({type:"ADD_FONTS",payload:Object(r.mergeDeep)(n,s)})},C=e=>({type:"UPDATE_EXTRA_FONT_STYLES",payload:e});function x(e,t){return{type:"UPDATE_UI",key:e,value:t}}function j({blocks:e,meta:t={}}){return{type:"UPDATE_BLOCKS",payload:{blocks:e},meta:u({is_autosave:1},t)}}const B=()=>({type:m}),P=e=>t=>new Promise((o,n)=>{t({type:"PUBLISH",payload:{status:e},meta:{onSuccess:o,onError:n}})});function w(e,t={insertIndex:0}){return{type:"ADD_BLOCK",payload:e,meta:t}}function T(e,t={insertIndex:0}){return{type:"ADD_GLOBAL_BLOCK",payload:e,meta:t}}function z({id:e}){return{type:"DELETE_GLOBAL_BLOCK",payload:{id:e}}}function E({data:e,meta:t}){return{type:"UPDATE_GB_RULES",payload:e,meta:t}}function k({index:e,id:t}){return{type:"REMOVE_BLOCK",payload:{index:e,id:t}}}function H(){return{type:"REMOVE_BLOCKS"}}function _(e){return{type:"REORDER_BLOCKS",payload:e}}function F(e,t={insertIndex:0}){return{type:p,payload:e,meta:t}}function R(e,t={insertIndex:0}){return{meta:t,type:"IMPORT_TEMPLATE",payload:e}}function M(e){return x("deviceMode",e)}function L(e){return{type:"UPDATE_AUTHORIZATION",payload:e}}function W(e){return{type:"UPDATE_SYNC_ALLOWED",payload:e}}},,function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return j}));var n=o(12),a=o(2),r=o(0),i=o.n(r),l=o(97),s=o(24),c=o(37),d=o(66),u=o(17),p=o(23),b=o(19),m=o(14),h=o(26),g=o(20),v=o(440),f=o(126);function y(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function O(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?y(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const S=u.a.get("menuData"),C=(e,t)=>Object(l.a)((e=>Array.isArray(e)?[]:{})(e),e,t);function x(e,t,o){const n=e.slice();return t.forEach((function(t,a){if(void 0===n[a]){const e=!1!==o.clone&&o.isMergeableObject(t);n[a]=e?C(t,o):t}else o.isMergeableObject(t)?n[a]=Object(l.a)(e[a],t,o):-1===e.indexOf(t)&&n.push(t)})),n}class j extends g.a{constructor(...e){super(...e),Object(a.a)(this,"handleKeyDown",(e,{keyName:t,id:o})=>{e.preventDefault();const n=this.getValue(),a=n.findIndex(({value:{_id:e}})=>e===o);switch(t){case"alt+N":case"ctrl+N":case"cmd+N":case"right_cmd+N":return void this.addColumn(a+1);case"alt+D":case"ctrl+D":case"cmd+D":case"right_cmd+D":return void("StoryWrapper"===n[a].type?this.insertItem(a+1,Object(m.r)(n[a])):this.cloneItem(a));case"alt+C":case"ctrl+C":case"cmd+C":case"right_cmd+C":return void this.copy(a);case"alt+V":case"ctrl+V":case"cmd+V":case"right_cmd+V":return void("StoryWrapper"===n[a].type?this.paste(a,e=>{const{offsetX:t=0,offsetY:o=0}=n[a].value.items[0].value;let r=Object(s.setIn)(e,["value","items",0,"value","offsetX"],t);return r=Object(s.setIn)(r,["value","items",0,"value","offsetY"],o),Object(m.r)(r)}):this.paste(a));case"alt+shift+V":case"ctrl+shift+V":case"cmd+shift+V":case"right_cmd+shift+V":case"shift+alt+V":case"shift+ctrl+V":case"shift+cmd+V":case"shift+right_cmd+V":return void this.pasteStyles(a);case"ctrl+right":case"cmd+right":case"right_cmd+right":return void this.changeHorizontalAlign(a,"increase");case"ctrl+left":case"cmd+left":case"right_cmd+left":return void this.changeHorizontalAlign(a,"decrease");case"ctrl+up":case"cmd+up":case"right_cmd+up":case"alt+up":return void this.changeVerticalAlign(a,"decrease");case"ctrl+down":case"cmd+down":case"right_cmd+down":case"alt+down":return void this.changeVerticalAlign(a,"increase");case"alt+del":case"del":case"cmd+backspace":case"cmd+del":case"right_cmd+backspace":case"right_cmd+del":return void this.removeItem(a)}}),Object(a.a)(this,"renderItem",(e,t,o)=>{const{sliceStartIndex:n,sliceEndIndex:a}=j.defaultProps,{sliceStartIndex:r=n,sliceEndIndex:i=a}=this.props;if(t>=r&&t<i){const n=e.value._id,a=this.renderItemData(e,n,t,o);return this.renderItemWrapper(a,n,t,e,o)}return null}),Object(a.a)(this,"getCurrentCopiedElement",()=>{const{path:e,value:t}=Object(b.e)(Object(p.b)().getState());return t?Object(s.getIn)(B(t),e):null})}insertItem(e,t){const o=Object(m.t)(t),n=Object(m.q)(o),a=this.getDBValue()||[],r=Object(s.insert)(a,e,n);this.handleValueChange(r,{arrayOperation:"insert"})}insertItemsBatch(e,t){const o=this.getDBValue()||[],n=t.reduce((t,o,n)=>{const a=Object(m.t)(o),r=Object(m.q)(a);return Object(s.insert)(t,e+n,r)},o);this.handleValueChange(n,{arrayOperation:"insert_bulk"})}updateItem(e,t,o={}){const n=this.getDBValue(),a=Object(s.setIn)(n,[e,"value"],t);this.handleValueChange(a,Object.assign(o,{arrayOperation:"itemChange"}))}removeItem(e){const t=this.getDBValue()||[],o=Object(s.removeAt)(t,e);this.handleValueChange(o,{arrayOperation:"remove"})}replaceItem(e,t,o){const n=Object(m.t)(t,{exclude:["_id"]}),a=Object(m.q)(n,o.idOptions),r=this.getDBValue()||[],i=Object(s.replaceAt)(r,e,a);this.handleValueChange(i,{arrayOperation:"replace",itemIndex:e,oldValue:r})}cloneItem(e,t=e+1){const o=this.getDBValue()||[];if(!o[e])throw new Error("Can't clone invalid item at index "+e);this.insertItem(t,o[e])}getDefaultValue(){return this.props.defaultValue||[]}getValue(){return this.getDBValue()||this.getDefaultValue()}getValue2(){const e=this.getDefaultValue();return{v:this.getDBValue()||e}}validateValue(){}getItemProps(e,t,o){const{itemProps:n}=j.defaultProps,{itemProps:a=n}=this.props;return"function"==typeof a?a(e,t,o):a}renderItemData(e,t,o,a){const{type:r,value:l}=e,s=d.a.getComponent(r),c=this.getDefaultValue(),u=this.getItemProps(e,o,a),p=[...this.getPath(),o,"value"],b=c[o]&&c[o].value,m=l,h=(e,t={})=>{const{intent:n}=t;switch(n){case"replace_all":this.replaceItem(o,e,t);break;case"remove_all":this.removeItem(o,t);break;default:this.updateItem(o,e,t)}};if(s)return i.a.createElement(v.a,{key:t,onRemove:()=>this.removeItem(o)},i.a.createElement(s,Object(n.a)({},u,{path:p,defaultValue:b,dbValue:m,reduxState:this.getReduxState(),reduxDispatch:this.getReduxDispatch(),onChange:h})));{const e=d.a.getNotFoundComponent();return i.a.createElement(e,Object(n.a)({},u,{key:t,path:p,defaultValue:b,dbValue:m,reduxState:this.getReduxState(),reduxDispatch:this.getReduxDispatch(),onChange:h,componentId:r}))}}renderItemWrapper(e,t,o,n,a){return e}renderItemsContainer(e){return e}renderForEdit(e){const t=e.map(this.renderItem);return this.renderItemsContainer(t,e)}changeVerticalAlign(t,o){const n=this.getValue(),a=Object(b.x)(Object(p.b)().getState()),r=e.Brizy.activeEditorComponent.getPath(),{path:i,value:{type:l,value:c}}=Object(m.m)(r,a,"verticalAlign");if(c){const e=["top","center","bottom"],{defaultValue:{style:{verticalAlign:a}}}=d.a.getComponent(l),r=c.verticalAlign||a||"top",u=Object(m.l)(e,r,o),p=this.getPath(),b=i.reduce((e,t,o)=>(void 0===p[o]&&e.push(i[o]),e),[]),h=Object(s.setIn)(n,[...b,"value"],O(O({},c),{},{verticalAlign:u}));this.updateItem(t,h[t].value)}}changeHorizontalAlign(t,o){const n=this.getValue(),a=e.Brizy.activeEditorComponent.getPath(),r=Object(p.b)().getState(),i=Object(b.x)(r),{deviceMode:l}=r.ui,c="desktop"===l?"horizontalAlign":l+"HorizontalAlign",{path:u,value:{type:h,value:g}}=Object(m.m)(a,i,c);if(g){const e=["left","center","right"],{defaultValue:{style:a}}=d.a.getComponent(h),r=g[c]||a[c]||"left",i=Object(m.l)(e,r,o),l=this.getPath(),p=u.reduce((e,t,o)=>(void 0===l[o]&&e.push(u[o]),e),[]),b=Object(s.setIn)(n,[...p,"value"],O(O({},g),{},{[c]:i}));this.updateItem(t,b[t].value)}}copy(e){const t=this.getReduxDispatch(),o=[...this.getPath(),e],n=B(Object(b.w)(this.getReduxState()));t(Object(h.H)({value:n,path:o}))}paste(e,t=(e=>e)){const o=this.getValue()[e],{path:n,value:a}=Object(b.e)(Object(p.b)().getState());if(!a)return;const{value:r}=Object(m.k)(n,B(a),"Cloneable"===o.type||"Wrapper"===o.type?({type:e})=>"Cloneable"===e||"Wrapper"===e:({type:e})=>e===o.type);r&&this.insertItem(e+1,t(r))}pasteStyles(e){const{path:t,value:o}=Object(b.e)(Object(p.b)().getState());if(!o)return;const n=this.getValue()[e],a=this.getCurrentCopiedElement();let r=0;if(a&&("Wrapper"===a.type&&"Wrapper"===n.type||"StoryWrapper"===a.type&&"StoryWrapper"===n.type)){if(a.value.items[0].type!==n.value.items[0].type)return;r=1,"Form"===a.value.items[0].type||"IconText"===a.value.items[0].type?r=3:"ImageGallery"===a.value.items[0].type&&(r=2)}const{value:i}=Object(m.k)(t,B(o),({type:e})=>e===n.type);if(i){const t=Object(m.s)(i,r),o=Object(l.a)(n,t,{arrayMerge:x});this.updateItem(e,o.value)}}}function B(e){return Object(m.p)(e=>{const{type:t,value:o}=e;if("Menu"===t){const{menuSelected:t,symbols:n={}}=o,a=t||S[0].id,r=S.find(e=>e.id===a)||{};return Object(c.b)(e,e=>{e.value.items=Object(f.d)(r.items||[],n)})}return e},e)}Object(a.a)(j,"defaultProps",{itemProps:{},sliceStartIndex:0,sliceEndIndex:1/0})}).call(this,o(86))},function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"c",(function(){return a})),o.d(t,"b",(function(){return r})),o.d(t,"h",(function(){return i})),o.d(t,"d",(function(){return s})),o.d(t,"g",(function(){return c})),o.d(t,"f",(function(){return d})),o.d(t,"e",(function(){return u}));const n="desktop",a="tablet",r="mobile",i=["desktop","tablet","mobile"],l=e=>i.includes(e)?e:void 0,s="desktop",c=e=>{var t;return null!==(t=l(e))&&void 0!==t?t:s},d=e=>[a,r].includes(e),u=e=>[n].includes(e)},function(e,t,o){"use strict";function n(e,t,o){return e<t?t:e>o?o:e}function a(e,t){return+(Math.round(Number(e+"e+"+t))+"e-"+t)}o.d(t,"a",(function(){return n})),o.d(t,"d",(function(){return a})),o.d(t,"c",(function(){return r})),o.d(t,"f",(function(){return i})),o.d(t,"e",(function(){return l})),o.d(t,"g",(function(){return s})),o.d(t,"b",(function(){return c}));const r=e=>"number"==typeof e,i=(e,t)=>"number"==typeof e?e:t,l=(e,t)=>"number"==typeof e&&e>=0?e:t,s=(e,t)=>"number"==typeof e&&e>0?e:t,c=(e,t,o)=>o>=e&&o<=t},,function(e,t,o){"use strict";o.d(t,"d",(function(){return l})),o.d(t,"i",(function(){return s})),o.d(t,"c",(function(){return c})),o.d(t,"k",(function(){return u})),o.d(t,"l",(function(){return d})),o.d(t,"f",(function(){return p})),o.d(t,"e",(function(){return b})),o.d(t,"w",(function(){return v})),o.d(t,"m",(function(){return y})),o.d(t,"n",(function(){return f})),o.d(t,"s",(function(){return C})),o.d(t,"t",(function(){return x})),o.d(t,"p",(function(){return B})),o.d(t,"r",(function(){return P})),o.d(t,"q",(function(){return z})),o.d(t,"h",(function(){return k})),o.d(t,"b",(function(){return V})),o.d(t,"g",(function(){return A})),o.d(t,"j",(function(){return D})),o.d(t,"a",(function(){return I})),o.d(t,"v",(function(){return N})),o.d(t,"u",(function(){return $})),o.d(t,"o",(function(){return G}));var n=o(8),a=o(23),r=o(19),i=o(44);const l=({type:e,family:t})=>{const o=N(Object(r.I)(Object(a.b)().getState())),n=I(o[e],t,e);if(n)return V[e](n);const i=c();return V[i.group](i.font)},s=(e,t)=>Object.entries(e).reduce((e,o)=>{const[n,{data:a=[]}]=o,r=a.find(e=>t===V[n](e).id);return r?{group:n,font:r}:e},null),c=n.default.memoize(()=>{const e=Object(a.b)().getState(),{font:t}=Object(r.z)(e).data,{config:o}=Object(i.c)(e);return{group:"config",font:I(o.data,t)}});function d(){const{config:e={},blocks:t={},google:o={},upload:n={}}=Object(r.I)(Object(a.b)().getState());return{config:e.data||[],blocks:t.data||[],google:o.data||[],upload:n.data||[]}}function u(){return Object.values(d()).reduce((e,t)=>[...e,...t],[])}function p({includeDeleted:e=!1}={}){const t=Object(a.b)().getState(),{fontStyles:o}=Object(r.g)(t),n=[...o,...Object(i.b)(t)];return e?n:n.filter(e=>!0!==e.deleted)}function b(e){return p({includeDeleted:!0}).find(t=>t.id===e)}var m=o(88),h=o(1);const g=e=>{switch(e){case m.i:return Object(h.a)("Thin");case m.d:return Object(h.a)("Extra Light");case m.e:return Object(h.a)("Light");case m.g:return Object(h.a)("Normal");case m.f:return Object(h.a)("Medium");case m.h:return Object(h.a)("Semi Bold");case m.b:return Object(h.a)("Bold");case m.c:return Object(h.a)("Extra Bold");case m.a:return Object(h.a)("Black");default:String(e)}},v=m.l.reduce((e,t)=>(e[t]=g(t),e),{});function f({type:e,family:t}){if(e&&t){const{weights:o}=l({type:e,family:t});return o.map(e=>({title:g(e),value:e}))}return[{title:g(m.j),value:m.j}]}function y(e,t){return t.includes(Number(e))?e:m.j}var O=o(17),S=o(108);const C=e=>`https://fonts.googleapis.com/css?family=${e.reduce((e,t)=>{const o=t.family.replace(/\s/g,"+"),n=t.variants.join();return""===e?`${o}:${n}`:`${e}|${o}:${n}`},"")}&subset=arabic,bengali,cyrillic,cyrillic-ext,devanagari,greek,greek-ext,gujarati,hebrew,khmer,korean,latin-ext,tamil,telugu,thai,vietnamese`,x=e=>{var t;const o=O.a.get("urls").editorFonts,n=null!==(t=O.a.get("prefix"))&&void 0!==t?t:"brizy",a=Object(S.a)({[n+"-font"]:e.reduce((e,{id:t,weights:o})=>{const n=o.join();return""===e?`${t}:${n}`:`${e}|${t}:${n}`},"")});return Object(S.b)(o)?`${o}&${a}`:`${o}?${a}`},j=({id:e,family:t})=>`.brz .brz-ff-${e}{font-family:${t}!important;}`,B=e=>e.map(e=>{const{id:t,family:o,deleted:n=!1}=A(e)||{};return t&&o?j(n?{id:t,family:A(c().font).family}:{id:t,family:o}):(console.warn("There isn't family: "+JSON.stringify(e)),"")}).join(""),P=e=>e.map(e=>{const{id:t,family:o,deleted:n=!1}=D(e)||{};return t&&o?j(n?{id:t,family:A(c().font).family}:{id:t,family:o}):(console.warn("There isn't family: "+JSON.stringify(e)),"")}).join("");var w=o(32);const T=({fontFamily:e,fontFamilyType:t,fontSize:o,fontWeight:n,letterSpacing:a,lineHeight:r,tabletFontSize:i,tabletFontWeight:s,tabletLetterSpacing:c,tabletLineHeight:d,mobileFontSize:u,mobileFontWeight:p,mobileLetterSpacing:b,mobileLineHeight:m})=>{const{family:h}=l({family:e,type:t});return{desktop:[`font-family: ${h};`,`font-size: ${o}px;`,`font-weight: ${n};`,`letter-spacing: ${a}px;`,`line-height: ${r}em;`].join(""),tablet:[`font-size: ${i}px;`,`font-weight: ${s};`,`letter-spacing: ${c}px;`,`line-height: ${d}em;`].join(""),mobile:[`font-size: ${u}px;`,`font-weight: ${p};`,`letter-spacing: ${b}px;`,`line-height: ${m}em;`].join("")}},z=(e,{getClassName:t=(e=>e)}={})=>e.map(e=>{const{id:o}=e,n=Object(w.a)(e,["id"]),{desktop:a,tablet:r,mobile:i}=T(n),l=t(".brz-tp-"+o.toLowerCase());return[`.brz-ed--desktop ${l}, ${l} { ${a} }`,`.brz-ed--tablet ${l} { ${r} }`,`.brz-ed--mobile ${l} { ${i} }`].join("\n")}).join("\n");var E=o(47);const k=async()=>await(async e=>{const t=await fetch(e),{items:o}=await t.json();return o})(Object(E.a)("googleFonts.json"));var H=o(2),_=o(57),F=o(21);function R(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function M(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?R(Object(o),!0).forEach((function(t){Object(H.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):R(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const L=e=>e.reduce((e,t)=>{const o=parseInt(t);return isNaN(o)||e.includes(o)?e:[...e,o]},[400]),W=e=>e.toLowerCase().replace(/\s+/g,"_"),I=(e=[],t="",o="google")=>"upload"===o?e.find(({id:e})=>e===t):e.find(({family:e})=>W(e)===t),N=e=>Object.entries(e).reduce((e,t)=>{const[o,{data:n}]=t;return M(M({},e),{},"upload"===o?{upload:n}:{google:[...e.google||[],...n]})},{}),A=e=>{const{family:t,category:o,variants:n,brizyId:a,deleted:r}=e;return M(M({id:W(t),title:t,family:`${t}, ${o}`,weights:L(n)},a&&{brizyId:a}),r&&{deleted:r})},D=e=>{const{id:t,family:o,weights:n,brizyId:a,deleted:r}=e;return M(M({id:t,title:o,family:`'${t}'`,weights:L(n)},a&&{brizyId:a}),r&&{deleted:r})},V={config:A,google:A,blocks:A,upload:D},$=async e=>{if(0===e.length)return[];const t=new Map,o=e=>M({brizyId:Object(_.a)()},e),[n,a]=await Promise.all([k(),Object(F.E)()]);return e.forEach(({type:e,family:r})=>{if("google"===e){const e=I(n,r);if(e){const n=t.get("blocks")||[];t.set("blocks",[...n,o(e)])}}if("upload"===e){const e=I(a,r,"upload");if(e){const n=t.get("upload")||[];t.set("upload",[...n,o(e)])}}if("unknowns"===e){const e=I(a,r,"upload");if(e){const n=t.get("upload")||[];t.set("upload",[...n,o(e)])}else{const e=I(n,r);if(e){const n=t.get("blocks")||[];t.set("blocks",[...n,o(e)])}}}}),Object.values([...t]).reduce((e,t)=>{const[o,n]=t;return[...e,{type:o,fonts:n}]},[])};function G({group:e,font:t}){const o=V[e],{family:n}=o(t);return`.brz .brz-root__container,.brz .brz-popup2,.brz .brz-popup {font-family:${n}!important;}`}},function(e,t,o){"use strict";var n=o(2),a=o(0),r=o.n(a),i=o(6),l=o.n(i),s=o(8),c=o(5),d=o.n(c);class u extends r.a.Component{getClassName(){return d()("brz-control__select-option",{active:this.props.active,disabled:this.props.disabled})}render(){const{title:e,disabled:t,onClick:o,value:n,children:a}=this.props,i=t?()=>{}:o;return r.a.createElement("div",{className:this.getClassName(),title:e,"data-value":n,onClick:i},a)}}Object(n.a)(u,"propTypes",{active:l.a.bool,title:l.a.string,disabled:l.a.bool,value:l.a.oneOfType([l.a.string,l.a.number]),onClick:l.a.func}),Object(n.a)(u,"defaultProps",{active:!1,title:"",disabled:!1,value:"",onClick:s.default.noop}),t.a=u},,function(e,t,o){"use strict";o.d(t,"a",(function(){return B}));var n=o(2),a=o(0),r=o.n(a),i=o(8),l=o(5),s=o.n(l),c=o(78),d=o(154),u=o(16),p=o(3),b=o(63),m=o(7),h=o(19),g=o(23),v=o(11);var f=o(57),y=o(94),O=o(109);function S(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function C(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?S(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):S(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const x=Object(f.a)(7);function j({children:e,className:t,component:o,attributes:n={},animationClass:a,renderContent:l=i.identity,v:f,vs:S,vd:j,componentId:B,id:P,onChange:w,meta:{sectionPopup:T,sectionPopup2:z}},E){const k="absolute"===f.elementPosition||"fixed"===f.elementPosition,H=s()(t,null==n?void 0:n.className,k&&Object(v.css)(`${B}-${P}-${x}`,`${P}-${x}`,function(e,t,o){return Object(v.renderStyles)({v:e,vs:t,vd:o,styles:{".brz &&:hover":{interval:["cssStyleOffset"]}}})}(f,S,j)));if(k){var _,F,R,M;const t=m.e(f.tabsState),i=Object(h.h)(Object(g.b)().getState()),v=e=>Object(p.defaultValueValue)({v:f,key:e,device:i,state:t}),S=({x:e,y:t})=>{const o=m.e(f.tabsState),n=Object(h.h)(Object(g.b)().getState()),a=(e,t)=>({[Object(p.defaultValueKey)({key:e,device:n,state:o})]:t});w(b.h(a,e,b.i(a,t,{})))},x=()=>({width:O.b,height:O.a});return r.a.createElement(d.a,{hAlign:null!==(_=b.a(v))&&void 0!==_?_:"left",vAlign:null!==(F=b.e(v))&&void 0!==F?F:"top",xSuffix:null!==(R=b.c(v))&&void 0!==R?R:"px",ySuffix:null!==(M=b.g(v))&&void 0!==M?M:"px",getValue:()=>{var e,t;return{x:null!==(e=b.b(v))&&void 0!==e?e:0,y:null!==(t=b.f(v))&&void 0!==t?t:0}},getContainerSizes:x,onStart:u.d,onChange:S},(t,i)=>r.a.createElement(c.a,{component:null!=o?o:"div",componentProps:C(C({},n),{},{className:s()(H,i)}),animationClass:a,ref:e=>{Object(y.a)(e,t),Object(y.a)(e,E)}},l(e)))}return r.a.createElement(c.a,{iterationCount:null===!1&&(T||z?1/0:1),component:null!=o?o:"div",componentProps:C(C({},n),{},{className:H}),animationClass:a,ref:E},l(e))}const B=Object(a.forwardRef)(j)},,,function(e,t,o){"use strict";o.d(t,"f",(function(){return a})),o.d(t,"a",(function(){return r})),o.d(t,"e",(function(){return i})),o.d(t,"d",(function(){return l})),o.d(t,"b",(function(){return s})),o.d(t,"c",(function(){return c}));var n=o(8);function a(e,t){return void 0===e?t:e}const r=e=>null==e||"number"==typeof e&&Number.isNaN(e);function i(e,t){return r(t)?e:t}function l(e,t,o){return r(t)||t===e?o:t}function s(e,t){if(!r(t))return e(t)}function c(...e){return t=>Object(n.foldr)(e,(e,t)=>r(e)?void 0:t(e),t)}},function(e,t){e.exports=jQuery},function(e,t,o){"use strict";o.d(t,"d",(function(){return a})),o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return l})),o.d(t,"a",(function(){return s}));var n=o(39);const a=e=>{switch(typeof e){case"string":return e;case"number":return e.toString();default:return}};r=a;var r;const i="",l=e=>{var t;return null!==(t=a(e))&&void 0!==t?t:""},s={read:a,empty:i,append:(e,t)=>e+t,concat:e=>e.join(""),eq:function(e,t){return e===t}}},function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return a})),o.d(t,"f",(function(){return r})),o.d(t,"e",(function(){return i})),o.d(t,"a",(function(){return l})),o.d(t,"d",(function(){return s}));const n=1170,a=1920,r=768,i=430,l=60,s=440},function(e,t,o){"use strict";var n=o(12),a=o(2),r=o(0),i=o.n(r),l=o(8),s=o(5),c=o.n(s),d=o(83),u=o(15),p=(o(45),o(82)),b=o(90);function m(e,t,o,n){const a=t*o,r=t*n,i=e*t;return Math.max(a,Math.min(r,i))}class h extends i.a.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{isOpen:!1,currentValue:this.props.defaultValue,position:"bottom-left"}),Object(a.a)(this,"onClickOutside",()=>{this.state.isOpen&&this.setState({isOpen:!1})}),Object(a.a)(this,"handleItemClick",e=>{this.setState({isOpen:!1,currentValue:e}),this.props.onChange(e)}),Object(a.a)(this,"handleContentRef",e=>{this.content=e}),Object(a.a)(this,"handleDropdownNode",e=>{this.dropdown=e}),Object(a.a)(this,"handleLabelClick",()=>{this.setState({isOpen:!this.state.isOpen})})}componentDidMount(){this.props.inPortal||this.reposition()}componentWillReceiveProps(e){this.state.defaultValue!==e.defaultValue&&this.setState({currentValue:e.defaultValue})}getScrollPaneStyle(){const{children:e}=this.props,t=i.a.Children.count(e);let o=0;i.a.Children.forEach(e,e=>{const{items:t}=e.props;t&&t.length&&(o+=t.length)});return{height:m(t+o,this.props.itemHeight,this.props.minItems,this.props.maxItems)}}reposition(){const{bottom:e,width:t,x:o}=this.dropdown.getBoundingClientRect();let{position:n}=this.state;const[a,r]=n.split("-");e>=window.innerHeight&&(n="top-"+r),t+o>=window.innerWidth&&(n=a+"-right"),this.isRepositioning=!0,this.setState({position:n},()=>{this.isRepositioning=!1})}renderLabel(){const{labelType:e}=this.props;switch(e){case"icon":return this.renderLabelIcon();case"input":return this.renderLabelInput();default:throw new Error("Invalid label type "+e)}}renderLabelIcon(){return i.a.createElement(u.b,{icon:this.props.labelIcon})}renderLabelInput(){const{children:e}=this.props,{currentValue:t}=this.state;let o;i.a.Children.forEach(e,e=>{const{items:n}=e.props;if(!o)if(n&&n.length){const n=i.a.Children.toArray(e.props.items);o=n.find(e=>e.props.value===t)}else e.props.value===t&&(o=e)});const n=i.a.createElement(u.b,{icon:"nc-stre-down",className:"brz-control__select--arrow"});return i.a.createElement(i.a.Fragment,null,o||this.findFirstItem(),n)}renderItems(e=this.props.children){const{currentValue:t}=this.state;return i.a.Children.map(e,(e,o)=>{const{value:n,disabled:a,items:r}=e.props;return r&&r.length?i.a.cloneElement(e,{key:o,items:this.renderItems(r)}):i.a.cloneElement(e,{key:o,active:n===t,onClick:a?null:()=>this.handleItemClick(n)})})}renderDropDown(){const{inPortal:e,className:t}=this.props;if(!e)return i.a.createElement("div",{className:"brz-control__select-options",ref:this.handleDropdownNode},i.a.createElement(d.a,{className:"brz-ed-scroll-pane",style:this.getScrollPaneStyle()},this.renderItems()));if(this.state.isOpen&&e){const{top:e,left:o,height:n,width:a}=this.content.getBoundingClientRect(),{scrollLeft:r}=this.content.ownerDocument.documentElement,l=c()("brz-control__portal-select brz-control__select",t),s={top:e+n+3,left:o+r,width:a};return i.a.createElement(b.a,{node:this.content.ownerDocument.body,className:l},i.a.createElement("div",{className:"brz-control__select-options",style:s},i.a.createElement(d.a,{className:"brz-ed-scroll-pane",style:this.getScrollPaneStyle()},this.renderItems())))}}render(){const{className:e,labelType:t,currentValue:o,inputAttributes:a,clickOutsideExceptions:r}=this.props,{position:l,isOpen:s}=this.state,d=c()("brz-control__select","brz-control__select--"+l,e,{opened:s}),u=[...r,".brz-control__portal-select"];return i.a.createElement(p.a,{exceptions:u,onClickOutside:this.onClickOutside},i.a.createElement("div",{className:d,ref:this.handleContentRef},i.a.createElement("div",{className:"brz-control__select-current brz-control__select-current__"+t,onClick:this.handleLabelClick},this.renderLabel()),this.renderDropDown(),i.a.createElement("input",Object(n.a)({type:"hidden",value:o},a))))}findFirstItem(e=this.props.children){let t;return i.a.Children.forEach(e,e=>{const{items:o}=e.props;t||(t=o&&o.length?this.findFirstItem(o):e)}),t}}Object(a.a)(h,"defaultProps",{defaultValue:"",inputAttributes:{},labelType:"input",labelIcon:"nc-menu",minItems:1,maxItems:5,itemHeight:38,arrowIcon:"nc-arrow-down",inPortal:!1,clickOutsideExceptions:[],onChange:l.default.noop}),t.a=h},function(e,t,o){"use strict";o.d(t,"d",(function(){return n})),o.d(t,"a",(function(){return a})),o.d(t,"e",(function(){return r})),o.d(t,"c",(function(){return i})),o.d(t,"b",(function(){return l}));const n=e=>e.page||{},a=e=>e.authorized,r=e=>e.syncAllowed,i=e=>e.fonts||{},l=e=>e.extraFontStyles},function(e,t,o){"use strict";o.d(t,"a",(function(){return u}));var n=o(12),a=o(2),r=o(0),i=o.n(r),l=o(5),s=o.n(l),c=o(129),d=o(431);class u extends i.a.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{icon:null}),Object(a.a)(this,"isUnmounted",!1)}componentDidMount(){const{name:e,type:t}=this.props;this.getSvg(t,e)}componentWillReceiveProps({name:e,type:t}){const{name:o,type:n}=this.props;o===e&&n===t||this.getSvg(t,e)}shouldComponentUpdate({name:e,type:t,className:o},{icon:n}){const{name:a,type:r,className:i}=this.props,{icon:l}=this.state;return l!==n||a!==e||r!==t||i!==o}componentWillUnmount(){this.isUnmounted=!0}fetchIcon(e,t){const o=Object(c.c)(e,t),n=new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"});return fetch(o,{headers:n,method:"GET"}).then(e=>e.text())}async getSvg(e,t){const o=await this.fetchIcon(e,t);this.isUnmounted||this.setState({icon:Object(d.responseToSvg)(o)})}getSvgContent(e){if(e){const t=(new DOMParser).parseFromString(e,"text/html").body.firstChild||{innerHTML:null,attributes:{}},o=t.attributes,n=t.innerHTML;let a={};const r={"xmlns:xlink":"xmlnsXlink","xml:space":"xmlSpace"};for(let e=0;e<o.length;e++){let{name:t,value:n}=o[e];r[t]&&(t=r[t]),a[t]=n}return{attr:a,innerHtml:n}}return{innerHtml:null,attr:{}}}renderForEdit(){const{className:e}=this.props,t=s()("brz-icon-svg",e),{innerHtml:o,attr:a}=this.getSvgContent(this.state.icon);return o&&i.a.createElement("svg",Object(n.a)({},a,{className:t,dangerouslySetInnerHTML:{__html:o}}))}renderForView(){const{className:e,type:t,name:o}=this.props,n=s()("brz-icon-svg",e);return i.a.createElement("svg",{className:n,"data-type":t,"data-name":o})}render(){return this.renderForEdit()}}Object(a.a)(u,"defaultProps",{className:"",name:"",type:""})},function(e,t,o){"use strict";function n(e){return new Promise((function(t,o){const n=new Image;n.onload=function(){t(this)},n.onabort=function(){o(`preloadImage("${e}") onabort`)},n.onerror=function(){o(`preloadImage("${e}") onerror`)},n.src=e}))}o.d(t,"e",(function(){return n})),o.d(t,"g",(function(){return l})),o.d(t,"c",(function(){return g})),o.d(t,"f",(function(){return v})),o.d(t,"b",(function(){return y})),o.d(t,"d",(function(){return f})),o.d(t,"a",(function(){return O}));var a=o(8),r=o(21);const i={acceptedExtensions:["jpeg","jpg","png","gif"],onBase64:e=>{},onUpload:e=>{},onError:e=>console.log("uploadImage default onError",e)};function l(e,t){const{acceptedExtensions:o,onBase64:n,onUpload:l,onError:c}=a.default.extend({},i,t);Promise.resolve(e).then(e=>{const t=e.name.split(".").pop();if(!(t&&a.default.some(o,e=>e===t.toLowerCase())))throw{status:406,message:"Extension is not accepted"};return e}).then(s).then(e=>{n(e);const t=e.replace(/data:image\/.+;base64,/,"");return Object(r.uploadImage)({base64:t})}).then(l).catch(c)}function s(e){return new Promise((function(t,o){const n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(){o("Error read file.")},n.onabort=function(){o("Abort read file.")},n.readAsDataURL(e)}))}var c=o(17),d=o(108);const u=e=>{const t=a.default.mapObject(e,e=>"number"===e?Math.round(e):e);return Object(d.a)(t)};var p=o(156);const b=c.a.get("urls").site,m=b.includes("?")?b+"&":b+"/?",h={};function g(e,t={iW:5e3,iH:"any"}){if(!e)return null;{const n=u(t);if(p.a.has(e)||0===e.indexOf("wp-")){var o;const t=null!==(o=c.a.get("prefix"))&&void 0!==o?o:"brizy",a=Object(d.a)({[t+"_media"]:e,[t+"_crop"]:n,[t+"_post"]:c.a.get("wp").page});return m+a}return h[e]||(h[e]=!0,Object(r.k)(e).then(()=>{h[e]=!1,p.a.add(e)})),function(e,t={iW:5e3,iH:"any"}){if(e){const o=u(t);return[c.a.get("urls").image,o,e].join("/")}return null}(e,t)}}function v(e){if(!e)return null;if(!(p.a.has(e)||0===e.indexOf("wp-"))&&!h[e])return h[e]=!0,Object(r.k)(e).then(()=>{h[e]=!1,p.a.add(e)}),function(e){return e?[c.a.get("urls").image,"original",e].join("/"):null}(e);const{customFile:t}=c.a.get("urls");return`${t}${e}`}function f(e,t,o){const n=e>t?e/o:t/o;return{width:Math.round(e/n),height:Math.round(t/n)}}function y(e,t={cW:5e3,cH:0}){const{cW:o,cH:n}=t;if(!e||"number"!=typeof o||"number"!=typeof n)throw new Error("Invalid arguments");return`{{${e.replace(/{{|}}/g,"")} cW='${o}' cH='${n}'}}`}function O(e=""){return e.split(".").pop().toLowerCase()}},function(e,t,o){"use strict";o.d(t,"a",(function(){return a}));var n=o(17);function a(e){return n.a.get("urls").assets+"/"+e}},function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return a}));const n=e=>{if(""===e||"number"!=typeof e&&"string"!=typeof e)return;const t=Number(e);return isNaN(t)?void 0:t},a={read:n}},function(e,t,o){"use strict";o.d(t,"a",(function(){return s})),o.d(t,"c",(function(){return d})),o.d(t,"b",(function(){return l}));var n=o(2),a=o(0),r=o.n(a),i=o(17);const l=()=>i.a.get("user").role;class s extends a.Component{render(){const{allow:e,children:t,component:o,render:n,fallbackComponent:a,fallbackRender:i}=this.props;if(e.includes(l())){if(t)return t;if(o)return r.a.createElement(o,null);if(n)return n()}else{if(a)return r.a.createElement(a,null);if(i)return i()}return null}}Object(n.a)(s,"defaultProps",{allow:[]});var c=o(12);const d=({component:e,fallbackComponent:t,allow:o=[],render:n,fallbackRender:a})=>{function i(i,s){if(o.includes(l())){if(e)return r.a.createElement(e,Object(c.a)({},i,{ref:s}));if(n)return n(i)}else{if(t)return r.a.createElement(t,Object(c.a)({},i,{ref:s}));if(a)return a(i)}return null}return i.displayName=`RolesHOC(${e.displayName||e.name})`,r.a.forwardRef(i)}},function(e,t,o){"use strict";(function(e){var n=o(32),a=o(2),r=o(0),i=o.n(r),l=o(24),s=o(37),c=o(17),d=o(23),u=o(49),p=o(14),b=o(19),m=o(550),h=o(126);function g(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}const v=c.a.get("menuData"),f={duplicate:["ctrl+D","cmd+D","right_cmd+D"],copy:["ctrl+C","cmd+C","right_cmd+C"],paste:["ctrl+V","cmd+V","right_cmd+V"],pasteStyles:["ctrl+shift+V","shift+ctrl+V","cmd+shift+V","shift+cmd+V","right_cmd+shift+V","shift+right_cmd+V"],delete:["del","cmd+backspace","cmd+del","right_cmd+backspace","right_cmd+del"],horizontalAlign:["ctrl+right","ctrl+left","cmd+right","cmd+left","right_cmd+right","right_cmd+left"],verticalAlign:["ctrl+up","ctrl+down","cmd+up","cmd+down","right_cmd+up","right_cmd+down"]},y=i.a.createContext({});class O extends i.a.Component{constructor(...e){super(...e),Object(a.a)(this,"contextValue",{getParentContextMenuItems:this.getItems}),Object(a.a)(this,"getItems",()=>{let e=this.props,{children:t,shortcutsTypes:o=[],keyNames:r=[]}=e,i=Object(n.a)(e,["children","shortcutsTypes","keyNames"]);const{getParentContextMenuItems:l}=this.context;let s=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?g(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):g(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({onKeyUp:()=>{},onKeyDown:()=>{},keyNames:[...(c=o,c.reduce((e,t)=>(f[t]&&(e=[...e,...f[t]]),e),[])),...r]},i);var c;return s=l?[s,...l()]:[s],s})}handleFilterItems(t){if(t.length&&t[0].id.startsWith("key-helper")){const e=t.find(e=>"key-helper-toolbar-escape"===e.id);return e?[e]:t}const o=e.Brizy.activeEditorComponent;if(!o)return[];const n=o.getPath(),a=Object(d.b)().getState(),r=Object(b.x)(a),i=Object(b.e)(a),s=[...n],c=S(r);if(f.paste.includes(t[0].keyName)){const{value:e}=Object(p.k)(n,c,({type:e})=>"Wrapper"===e||"Cloneable"===e);if(e&&i.value){const{value:o}=Object(p.k)(i.path,S(i.value),({type:e})=>"Wrapper"===e||"Cloneable"===e);if(o&&("Cloneable"===o.type||"Cloneable"===e.type)&&o.value.items[0].type!==e.value.items[0].type){const o=t.find(({id:t})=>t===e.value._id);return o?[o]:[]}}}let u=[];for(let e=0;e<=n.length;e++){const e=Object(l.getIn)(c,s);if(e){const o=t.find(({id:t})=>t===e._id);if(o)return[o]}u.unshift(s.pop())}return[]}shouldShortCutHandle(e,{keyName:t}){const o=f.delete.includes(t),n=f.paste.includes(t),a=f.copy.includes(t),r=o||n||a,i=e.target.closest("[contenteditable=true]")||e.target.closest("input")||e.target.closest("textarea");return!(e.target.closest([".brz-ed-sidebar__right","#brz-toolbar-portal",".brz-ed-tooltip__content-portal",".brz-ed-popup-integrations"].join(","))||i&&r)}render(){const{children:e,id:t}=this.props,o=this.getItems();return i.a.createElement(y.Provider,{value:this.contextValue},e,i.a.createElement(m.a,{items:o,id:t,shouldKeyDownHandle:this.shouldShortCutHandle,shouldKeyUpHandle:this.shouldShortCutHandle,filterItems:this.handleFilterItems}))}}function S(e){return Object(p.p)(e=>{const{type:t,value:o}=e;if("Menu"===t){const{menuSelected:t,symbols:n={}}=o,a=t||v[0].id,r=v.find(e=>e.id===a)||{};return Object(s.b)(e,e=>{e.value.items=Object(h.d)(r.items||[],n)})}return e},e)}Object(a.a)(O,"contextType",y),t.a=Object(u.c)({allow:["admin"],component:O,fallbackComponent:({children:e})=>e||null})}).call(this,o(86))},function(e,t,o){"use strict";o.d(t,"a",(function(){return i})),o.d(t,"b",(function(){return h})),o.d(t,"e",(function(){return x})),o.d(t,"i",(function(){return j})),o.d(t,"f",(function(){return f.b})),o.d(t,"c",(function(){return f.a})),o.d(t,"k",(function(){return B.a})),o.d(t,"g",(function(){return P.d})),o.d(t,"j",(function(){return P.e})),o.d(t,"d",(function(){return P.c})),o.d(t,"h",(function(){return w}));var n=o(17),a=o(47);function r(){return Object(a.a)("editor/img/block-placeholder.jpg")}function i(e){if(!e)return r();const t=n.a.get("urls").blockThumbnails;return t?`${t}/${e.id}.jpg`:Object(a.a)(`thumbs/${e.id}.jpg`)}var l=o(2),s=o(8),c=o(37),d=o(23),u=o(108),p=o(19);function b(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function m(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?b(Object(o),!0).forEach((function(t){Object(l.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const h=(e,t={})=>{const o=function(e,t){"GlobalBlock"===e.type&&(e=Object(p.l)(Object(d.b)().getState())[e.value._id].data);if(!0===t.searchScreenshotInStoreFirst){const t=Object(p.C)(Object(d.b)().getState());t[e.value._id]&&(e=Object(c.a)(e,o=>{o.meta=m(m({},o.meta),t[e.value._id])}))}const{_thumbnailSrc:o,_thumbnailWidth:n,_thumbnailHeight:a}=g(e);if(o&&n&&a){return{url:s.default.compose(v,g)(e),width:n,height:a}}return null}(e,t);let i;if(o)i=o;else{const{blocksThumbnailSizes:t}=Object(d.b)().getState(),o=t[e.blockId];if(o){const t=n.a.get("urls").blockThumbnails;i={url:t?`${t}/${e.blockId}.jpg`:Object(a.a)(`thumbs/${e.blockId}.jpg`),width:o[0],height:o[1]}}else i={url:r(),width:500,height:200}}return i},g=e=>e.meta||e.value||{};function v({_thumbnailSrc:e,_thumbnailTime:t}){var o;const a=n.a.get("urls").site,r=n.a.get("wp").page,i=null!==(o=n.a.get("prefix"))&&void 0!==o?o:"brizy",l=Object(u.a)({[i+"_post"]:r,[i+"_block_screenshot"]:e,t:t||Date.now()});return Object(u.b)(a)?`${a}&${l}`:`${a}?${l}`}var f=o(115),y=o(14);function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function S(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?O(Object(o),!0).forEach((function(t){Object(l.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):O(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const C=(e,t,o)=>e.filter(e=>{var n,a;return(null===(n=t[e])||void 0===n||null===(a=n.position)||void 0===a?void 0:a.align)===o&&"publish"===t[e].status}).sort((e,n)=>t[e].position[o]-t[n].position[o]),x=(e,t,o)=>{if(y.c||y.g)return e;const n=Object(f.b)(e,t,o),a=C(n,t,"top"),r=C(n,t,"bottom");return[...a,...e,...r]};function j(e,t){var o;const n=Number(e.id),a=((null===(o=e.data)||void 0===o?void 0:o.items)||[]).reduce((e,t)=>("GlobalBlock"!==t.type&&(e[t.value._id]={data:t}),e),{}),r=Object.keys(a),i=x(r,t,n),l=S(S({},a),t);return i.map(e=>l[e].data)}var B=o(205),P=o(107);const w=(e,t)=>{const o=n.a.get("urls").assetsExternal;switch(e){case"popups":return`${o}/popups/resolves/${t}.json`;case"stories":return`${o}/stories/resolves/${t}.json`;case"templates":return`${o}/templates/resolves/${t}.json`;default:return`${o}/kits/resolves/${t}.json`}}},function(e,t,o){"use strict";o.d(t,"a",(function(){return w}));var n=o(2),a=o(0),r=o.n(a),i=o(35),l=o.n(i),s=o(6),c=o.n(s),d=o(140),u=o(49),p=o(12);class b extends r.a.Component{render(){const{helperText:e,title:t,onChange:o,inactive:n,meta:a}=this.props;return r.a.createElement(d.Item,{onClick:o,disabled:n},r.a.createElement("span",{className:"react-contexify__item--title"},t),r.a.createElement("span",{className:"react-contexify__item--placeholder"},e(a)))}}Object(n.a)(b,"defaultProps",{title:"",helperText:()=>"",inactive:!1,onChange:()=>{}});var m=o(15);function h(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function g(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?h(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class v extends r.a.Component{render(){const{title:e,icon:t,items:o,meta:n}=this.props,a=g(g({},n),{},{depth:n.depth+1});return 0===n.depth&&0===n.index?r.a.createElement(r.a.Fragment,null,r.a.createElement(d.Item,{key:"title",className:"react-contexify--title"},t&&r.a.createElement(m.b,{icon:t})," ",e),r.a.createElement(B,{data:o,meta:g(g({},a),{},{isInSubMenu:!1})})):r.a.createElement(d.Submenu,{className:"react-contexify__item__submenu",label:e,hoverDelay:0,arrow:""},r.a.createElement(B,{data:o,meta:g(g({},a),{},{isInSubMenu:!0})}))}}Object(n.a)(v,"defaultProps",{title:"",icon:"",items:[]});var f={button:b,group:v};function y(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function O(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?y(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function S(e,t){const o=[...e];for(var n=0;n<t.length;n++){let r=!1;for(var a=0;a<e.length;a++)t[n].id===e[a].id&&t[n].type===e[a].type&&t[n].items&&e[a].items&&(r=!0,o[a]=O(O(O({},t[n]),e[a]),{},{items:S(e[a].items,t[n].items)}));r||o.push(t[n])}return o}function C(e,t){return e.filter((e,o)=>"function"==typeof e.disabled?!e.disabled(e,O(O({},t),{},{isInSubMenu:!(0===t.depth&&0===o)})):!e.disabled)}function x(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function j(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?x(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):x(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class B extends r.a.Component{render(){const{data:e,meta:t}=this.props;return C(e,t).map((e,o)=>{const n=f[e.type],a=o,i=j(j({},t),{},{index:o});return r.a.createElement(n,Object(p.a)({},e,{key:a,meta:i}))})}}Object(n.a)(B,"defaultProps",{meta:{}});class P extends r.a.Component{constructor(...e){super(...e),Object(n.a)(this,"getItems",()=>this.props.items)}getChildContext(){return{getParentContextMenuExtendItems:this.getItems}}render(){const{children:e}=this.props;return e}}Object(n.a)(P,"childContextTypes",{getParentContextMenuExtendItems:c.a.func});var w=Object(u.c)({allow:["admin"],component:P,fallbackComponent:({children:e})=>e});class T extends a.Component{constructor(...e){super(...e),Object(n.a)(this,"handleContextMenu",e=>{e.nativeEvent=e,this.props.onContextMenu(e)})}componentDidMount(){l.a.findDOMNode(this).addEventListener("contextmenu",this.handleContextMenu)}componentWillUnmount(){l.a.findDOMNode(this).removeEventListener("contextmenu",this.handleContextMenu)}render(){return this.props.children}}class z extends a.Component{constructor(...e){super(...e),Object(n.a)(this,"getItems",()=>{let{componentId:e,items:t}=this.props;const{getParentContextMenuExtendItems:o,getParentContextMenuItems:n}=this.context;return t=[e,o?S(t,o()):t],t=n?[t,...n()]:[t],t}),Object(n.a)(this,"renderProvider",e=>r.a.createElement(T,e,this.props.children))}getChildContext(){return{getParentContextMenuItems:this.getItems}}squashItems(e){return e.reduce((e,[t,o])=>{var n,a;return e.componentIdMap[t]||(e.componentIdMap[t]=!0,e.items=(n=e.items,a=o,[...n,...a])),e},{componentIdMap:{},items:[]}).items}render(){const{id:e,children:t}=this.props,o=this.squashItems(this.getItems()),n={depth:0};return 0===C(o,n).length?t:r.a.createElement(r.a.Fragment,null,r.a.createElement(d.ContextMenuProvider,{id:e,render:this.renderProvider},t),l.a.createPortal(r.a.createElement(d.ContextMenu,{id:e},r.a.createElement(B,{data:o,meta:n})),document.body))}}Object(n.a)(z,"defaultProps",{id:"",items:[]}),Object(n.a)(z,"contextTypes",{getParentContextMenuExtendItems:c.a.func,getParentContextMenuItems:c.a.func}),Object(n.a)(z,"childContextTypes",{getParentContextMenuItems:c.a.func});t.b=Object(u.c)({allow:["admin"],component:z,fallbackComponent:({children:e})=>e})},function(e,t,o){"use strict";o.d(t,"a",(function(){return a})),o.d(t,"f",(function(){return r})),o.d(t,"g",(function(){return i})),o.d(t,"d",(function(){return l})),o.d(t,"e",(function(){return s})),o.d(t,"c",(function(){return c})),o.d(t,"b",(function(){return d})),o.d(t,"h",(function(){return u}));var n=o(8);const a=(e,t,o=[])=>{if(t(e))return{obj:e,path:o};for(let n in e)if(e.hasOwnProperty(n)&&"object"==typeof e[n]&&null!==e[n]){const{obj:r,path:i}=a(e[n],t,[...o,n]);if(r)return{obj:r,path:i}}return{obj:null,path:null}},r=(e,t,...o)=>{for(let n in e)e.hasOwnProperty(n)&&(e[n]&&"object"==typeof e[n]&&r(e[n],t,...o),t(n,e[n],e,...o))},i=(e,t)=>{for(let o in e)e.hasOwnProperty(o)&&e[o]&&"object"==typeof e[o]&&i(e[o],t);t(e)},l=e=>{const t={};for(let o in e)Array.isArray(e[o])||"object"!=typeof e[o]||null===e[o]?t[o]=e[o]:Object.assign(t,l(e[o]));return t};function s(e){return e.reduce((e,[t,o])=>(e[t]=o,e),{})}const c=(e,t)=>Array.isArray(t)?t.map(e):t&&"object"==typeof t?n.default.mapObject(t,e):t,d=(e,t)=>!(!t||!e.every(e=>t.hasOwnProperty(e))),u=e=>null!==e&&"object"==typeof e?e:{}},,,function(e,t,o){"use strict";o.d(t,"a",(function(){return g}));var n=o(2),a=o(0),r=o.n(a),i=o(8),l=o(5),s=o.n(l),c=o(1);const d=13,u=66,p=73,b=85,m=89,h=90;class g extends a.Component{constructor(...e){super(...e),Object(n.a)(this,"contentRef",r.a.createRef()),Object(n.a)(this,"unmounted",!1),Object(n.a)(this,"lastNotifiedValue",void 0),Object(n.a)(this,"handleClick",e=>{e.preventDefault();const t=this.contentRef.current;null==t||t.classList.add("brz-ed-dd-cancel")}),Object(n.a)(this,"handleKeyDown",e=>{const t=e.which,o=e.metaKey||e.ctrlKey;t!==d&&(!o||t!==u&&t!==p&&t!==b)&&(!o||t!==h&&t!==m)||e.preventDefault()}),Object(n.a)(this,"handleInput",e=>{this.notifyChange(e.currentTarget.textContent||"")}),Object(n.a)(this,"notifyChange",i.default.debounce(e=>{this.unmounted||(this.lastNotifiedValue=e,this.props.onChange(e))},1e3)),Object(n.a)(this,"handleBlur",()=>{var e;null===(e=this.contentRef.current)||void 0===e||e.classList.remove("brz-ed-dd-cancel")}),Object(n.a)(this,"handlePaste",e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");document.execCommand("insertHTML",!1,t)})}shouldComponentUpdate(e){return void 0!==this.lastNotifiedValue&&this.lastNotifiedValue!==e.value}componentDidUpdate(){this.lastNotifiedValue=this.props.value;const e=this.contentRef.current;var t;e&&e.textContent!==this.lastNotifiedValue&&(e.textContent=null!==(t=this.lastNotifiedValue)&&void 0!==t?t:"")}componentWillUnmount(){this.unmounted=!0}render(){const{tagName:e,value:t,className:o}=this.props,n=s()(o,"brz-"+e,"brz-text__editor");return r.a.createElement(e,{ref:this.contentRef,className:n,contentEditable:!0,dangerouslySetInnerHTML:{__html:t},onClick:this.handleClick,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,onInput:this.handleInput,onBlur:this.handleBlur})}}Object(n.a)(g,"defaultProps",{value:Object(c.a)("Editable Text"),tagName:"span",className:""})},function(e,t,o){"use strict";o.d(t,"a",(function(){return r}));var n=o(422),a=o.n(n);const r=(e=36)=>a()("abcdefghijklmnopqrstuvwxyz",e)},function(e,t,o){"use strict";o.d(t,"c",(function(){return S})),o.d(t,"a",(function(){return y})),o.d(t,"b",(function(){return C}));var n=o(2),a=o(0),r=o.n(a),i=o(8),l=o(5),s=o.n(l),c=o(212),d=o(780),u=o(90),p=o(82),b=o(779),m=o(153),h=o(31);function g(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function v(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?g(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):g(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class f extends r.a.Component{constructor(e){super(e);const{placement:t,arrowPlacement:o}=e;this.state={placement:t,arrowPlacement:o},this.isRepositioning=!1,this.contentRef=r.a.createRef()}componentDidMount(){const{isOpen:e,toolbar:t}=this.props;e&&t&&this.repositionByToolbar(t)}repositionByToolbar(e){const t=document.documentElement.clientWidth,o=document.documentElement.clientHeight,n=document.documentElement.scrollTop,a=document.documentElement.classList.contains("brz-ow-hidden"),{toolbarRef:r,toolbarCSSPosition:i,toolbarItemIndex:l}=e,s=Object(m.a)(),c=r.current,d=c.getBoundingClientRect(),u=c.querySelector(`.brz-ed-toolbar__items > .brz-ed-toolbar__item:nth-child(${l})`).getBoundingClientRect(),p=this.contentRef.current.getBoundingClientRect(),b=(a?0:n)+d.bottom+14+Math.max(p.height,300)<=(a?o:Math.max(o,document.body.clientHeight)),g=(a?0:n)+d.top-14-p.height>=0,v="fixed"===i?0:n;let f;const y=()=>{const e=`calc(100% - ${v}px - ${d.top}px + 14px)`;f={position:i,top:"unset",bottom:e,left:S()}},O=()=>{const e=v+d.top+d.height+14;f={position:i,top:e,left:S()}},S=()=>{const e=t-p.width-2,o=u.left+u.width/2-p.width/2;return Object(h.a)(o,2,e)};let C;"above"===s&&(g?(C="above",y()):(C="below",O())),"below"===s&&(b?(C="below",O()):(C="above",y()));const x="above"===C?"top":"bottom";let j={left:u.left+u.width/2-f.left};this.isRepositioning=!0,this.setState({placementStyle:f,arrowPlacement:x,arrowPlacementStyle:j},()=>this.isRepositioning=!1)}renderInToolbar(){const{className:e,isOpen:t,size:o,arrow:n,children:a}=this.props,{placementStyle:i,arrowPlacement:l,arrowPlacementStyle:c}=this.state,d=s()("brz-ed-animated brz-ed-animated--fadeInUp","brz-ed-tooltip__overlay",{["brz-ed-tooltip--"+o]:o},{"brz-invisible":!t},e),u=s()("brz-ed-arrow","brz-ed-arrow--"+l);return r.a.createElement("div",{ref:this.contentRef,className:d,style:i},n&&r.a.createElement("div",{className:u,style:c}),a)}renderSimple(){const{className:e,size:t,arrow:o,node:n,placement:a,offset:i,children:l}=this.props,c=s()("brz-ed-animated brz-ed-animated--fadeInUp","brz-ed-tooltip__overlay",{["brz-ed-tooltip--"+t]:t},e);return r.a.createElement(b.a,{referenceElement:n,placement:a,eventsEnabled:!1,modifiers:{offset:{offset:`0, ${i}px`},computeStyle:{gpuAcceleration:!1}}},({ref:e,style:t,arrowProps:n,placement:a})=>r.a.createElement("div",{ref:e,className:c,style:t},o&&r.a.createElement("div",{className:"brz-ed-arrow brz-ed-arrow--"+a,ref:n.ref,style:v(v({},n.style),{},{margin:"0"})}),l))}render(){return this.props.toolbar?this.renderInToolbar():this.renderSimple()}}Object(n.a)(f,"defaultProps",{className:"",isOpen:!1,placement:"top-center",placementStyle:{},arrow:!0,arrowPlacement:"top-center",arrowPlacementStyle:{},size:"",offset:15,toolbar:null,inPortal:!1,node:null});const y=e=>{const{className:t,children:o,onClick:n}=e,a=s()("brz-ed-tooltip__item",t);return r.a.createElement("div",{className:a,onClick:n},o)};let O=[],S=()=>O[O.length-1];class C extends r.a.Component{constructor(...e){super(...e),Object(n.a)(this,"state",{isOpen:!1,isHidden:!1}),Object(n.a)(this,"contentRef",r.a.createRef()),Object(n.a)(this,"handleClickOutside",()=>{const{isOpen:e}=this.state;e&&this.close()}),Object(n.a)(this,"handleContentClick",()=>{const{isOpen:e,isHidden:t}=this.state;e?t?this.show():this.close():this.open()}),Object(n.a)(this,"handleMouseEnter",()=>{this.setState({needClose:!1}),this.open()}),Object(n.a)(this,"handleMouseLeave",()=>{this.setState({needClose:!0}),this.timeout=setTimeout(()=>{this.state.needClose&&this.close()},this.props.closeDelay)})}componentWillUnmount(){const e=O.indexOf(this);-1!==e&&O.splice(e),clearTimeout(this.timeout)}open(){const{isOpen:e}=this.state;e||this.setState({isOpen:!0},()=>{O.push(this),this.props.onOpen()})}close(){const{isOpen:e}=this.state;e&&this.setState({isOpen:!1},()=>{O.pop(),this.props.onClose()})}show(){const{isHidden:e}=this.state;e&&this.setState({isHidden:!1})}hide(){const{isHidden:e}=this.state;e||this.setState({isHidden:!0})}reposition(){this.forceUpdate()}renderOverlay(){const{isOpen:e,isHidden:t}=this.state;if(!e)return null;const{overlayClassName:o,nodeRef:n,overlay:a,arrow:i,placement:l,size:c,offset:d,toolbar:p,inPortal:b,portalNode:m}=this.props,h=n&&n.current||this.contentRef.current,g=m||h.ownerDocument.body,v=r.a.createElement(f,{className:o,node:h,arrow:i,placement:l,size:c,offset:d,isOpen:e,toolbar:p,inPortal:b},a);return b||p?r.a.createElement(u.a,{node:g,className:s()("brz-reset-all","brz-ed-tooltip__content-portal",{"brz-invisible":t})},v):v}renderInToolbar(){const{title:e,children:t,openOnClick:o}=this.props;return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{title:e,ref:this.contentRef,className:"brz-ed-tooltip__content",onClick:o?this.handleContentClick:i.default.noop},t),this.renderOverlay())}renderSimple(){const{title:e,children:t,openOnClick:o}=this.props;return r.a.createElement(c.c,null,r.a.createElement(d.a,null,()=>r.a.createElement("div",{title:e,ref:this.contentRef,className:"brz-ed-tooltip__content",onClick:o?this.handleContentClick:i.default.noop},t)),this.renderOverlay())}render(){const{toolbar:e,openOnClick:t,className:o,clickOutsideExceptions:n}=this.props,a=s()("brz-ed-tooltip",{"brz-ed-tooltip__static":!e},{"brz-ed-tooltip--opened":this.state.isOpen},o),l=[...n,".brz-ed-tooltip__content-portal"];return r.a.createElement(p.a,{onClickOutside:this.handleClickOutside,exceptions:l},r.a.createElement("div",{className:a,onMouseEnter:t?i.default.noop:this.handleMouseEnter,onMouseLeave:t?i.default.noop:this.handleMouseLeave},e?this.renderInToolbar():this.renderSimple()))}}Object(n.a)(C,"defaultProps",{className:"",overlayClassName:"",arrow:!0,placement:"top-center",openOnClick:!0,closeDelay:0,overlay:"",size:"",title:"",offset:15,toolbar:null,inPortal:!1,portalNode:null,clickOutsideExceptions:[],nodeRef:null,onOpen:()=>{},onClose:()=>{}})},function(e,t,o){"use strict";o.d(t,"f",(function(){return n})),o.d(t,"c",(function(){return a})),o.d(t,"d",(function(){return r})),o.d(t,"e",(function(){return i})),o.d(t,"a",(function(){return l})),o.d(t,"k",(function(){return s})),o.d(t,"h",(function(){return c})),o.d(t,"i",(function(){return d})),o.d(t,"g",(function(){return u})),o.d(t,"j",(function(){return p})),o.d(t,"b",(function(){return b}));const n={start:["mousedown"],move:["mousemove"],end:["mouseup"]};function a(e,t){let o=e;for(;o;){if(t(o))return o;o=o.parentElement}}function r(e){let t=e,o=0;for(;t=t.parentElement;)o++;return o}function i(e){const t=e.parentElement;return t?Array.from(t.children).indexOf(e):-1}function l(e,...t){t.filter(String).forEach(t=>e.classList.add(t))}function s(e,...t){t.forEach(t=>e.classList.remove(t))}function c(e,t,o,n){const a=o-e,r=n-t;return Math.sqrt(a*a+r*r)}function d(e,t,o,n){const a=t<n,r=e<o;return{isAbove:a,isBelow:!a,isLeft:r,isRight:!r}}function u(e,t,o){return e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom}function p(e){return{x:e.left+.5*(e.right-e.left),y:e.top+.5*(e.bottom-e.top)}}function b(e,t,o){return e<t?t:e>o?o:e}},,function(e,t,o){"use strict";function n({v:e}){const{tabsState:t}=e;return"tabHover"===t?"hover":"normal"}o.d(t,"i",(function(){return n})),o.d(t,"d",(function(){return r})),o.d(t,"e",(function(){return i})),o.d(t,"f",(function(){return c})),o.d(t,"a",(function(){return d})),o.d(t,"b",(function(){return u})),o.d(t,"c",(function(){return p})),o.d(t,"g",(function(){return b})),o.d(t,"h",(function(){return m}));var a=o(3);o(46);function r({v:e,device:t,state:o}){const r=n({v:e,state:o}),i=Object(a.defaultValueValue)({v:e,key:"borderStyle",device:t,state:o});return"hover"===r&&void 0!==e.hoverBorderStyle&&null!==e.hoverBorderStyle?""===e.hoverBorderStyle?"none":e.hoverBorderStyle:""===i?"none":i}function i({v:e,device:t,state:o,current:r}){const i=n({v:e,state:o}),l=Object(a.defaultValueValue)({v:e,key:"borderWidthType",device:t,state:o}),s=Object(a.defaultValueValue)({v:e,key:"borderWidthType",device:t,state:"hover"}),c=Object(a.defaultValueValue)({v:e,key:"borderWidth",device:t,state:o}),d=Object(a.defaultValueValue)({v:e,key:"borderWidth",device:t,state:"hover"}),u=Object(a.defaultValueValue)({v:e,key:r,device:t,state:o}),p=Object(a.defaultValueValue)({v:e,key:r,device:t,state:"hover"});return"hover"===i&&"grouped"===s?d+"px":"hover"===i&&"ungrouped"===s?p+"px":"grouped"===l?c+"px":u+"px"}var l=o(18),s=o(13);function c({v:e,device:t,state:o,prefix:r="color"}){const i=n({v:e,state:o}),{hex:c}=Object(s.d)(Object(a.defaultValueValue)({v:e,key:r+"Hex",device:t,state:o}),Object(a.defaultValueValue)({v:e,key:r+"Palette",device:t,state:o})),d=Object(a.defaultValueValue)({v:e,key:r+"Opacity",device:t,state:o}),{hex:u}=Object(s.d)(Object(a.defaultValueValue)({v:e,key:r+"Hex",device:t,state:"hover"}),Object(a.defaultValueValue)({v:e,key:r+"Palette",device:t,state:"hover"})),p=Object(a.defaultValueValue)({v:e,device:t,key:r+"Opacity",state:"hover"});return"hover"===i?Object(l.c)(u,p):Object(l.c)(c,d)}function d({v:e,device:t,state:o,prefix:r="bg"}){const i=n({v:e,state:o}),c=Object(a.defaultValueValue)({v:e,key:r+"ColorType",device:t,state:o}),{hex:d}=Object(s.d)(Object(a.defaultValueValue)({v:e,key:r+"ColorHex",device:t,state:o}),Object(a.defaultValueValue)({v:e,key:r+"ColorPalette",device:t,state:o})),u=Object(a.defaultValueValue)({v:e,key:r+"ColorOpacity",device:t,state:o}),p=Object(a.defaultValueValue)({v:e,key:r+"ColorType",device:t,state:"hover"}),{hex:b}=Object(s.d)(Object(a.defaultValueValue)({v:e,key:r+"ColorHex",device:t,state:"hover"}),Object(a.defaultValueValue)({v:e,key:r+"ColorPalette",device:t,state:"hover"})),m=Object(a.defaultValueValue)({v:e,key:r+"ColorOpacity",device:t,state:"hover"});return"hover"===i&&"solid"===p?Object(l.c)(b,m):"solid"===c?Object(l.c)(d,u):"transparent"}function u({v:e,device:t,state:o}){const r=n({v:e,state:o}),i=Object(a.defaultValueValue)({v:e,key:"bgColorType",device:t,state:o}),c=Object(a.defaultValueValue)({v:e,key:"gradientType",device:t,state:o}),d=Object(a.defaultValueValue)({v:e,key:"gradientLinearDegree",device:t,state:o}),{hex:u}=Object(s.d)(Object(a.defaultValueValue)({v:e,key:"bgColorHex",device:t,state:o}),Object(a.defaultValueValue)({v:e,key:"bgColorPalette",device:t,state:o})),p=Object(a.defaultValueValue)({v:e,key:"bgColorOpacity",device:t,state:o}),b=Object(a.defaultValueValue)({v:e,key:"gradientStartPointer",device:t,state:o}),{hex:m}=Object(s.d)(Object(a.defaultValueValue)({v:e,key:"gradientColorHex",device:t,state:o}),Object(a.defaultValueValue)({v:e,key:"gradientColorPalette",device:t,state:o})),h=Object(a.defaultValueValue)({v:e,key:"gradientColorOpacity",device:t,state:o}),g=Object(a.defaultValueValue)({v:e,key:"gradientFinishPointer",device:t,state:o}),v=Object(a.defaultValueValue)({v:e,key:"gradientRadialDegree",device:t,state:o}),f=Object(a.defaultValueValue)({v:e,key:"bgColorType",device:t,state:"hover"}),y=Object(a.defaultValueValue)({v:e,key:"gradientType",device:t,state:"hover"}),O=Object(a.defaultValueValue)({v:e,key:"gradientLinearDegree",device:t,state:"hover"}),{hex:S}=Object(s.d)(Object(a.defaultValueValue)({v:e,key:"bgColorHex",device:t,state:"hover"}),Object(a.defaultValueValue)({v:e,key:"bgColorPalette",device:t,state:"hover"})),C=Object(a.defaultValueValue)({v:e,key:"bgColorOpacity",device:t,state:"hover"}),x=Object(a.defaultValueValue)({v:e,key:"gradientStartPointer",device:t,state:"hover"}),{hex:j}=Object(s.d)(Object(a.defaultValueValue)({v:e,key:"gradientColorHex",device:t,state:"hover"}),Object(a.defaultValueValue)({v:e,key:"gradientColorPalette",device:t,state:"hover"})),B=Object(a.defaultValueValue)({v:e,key:"gradientColorOpacity",device:t,state:"hover"}),P=Object(a.defaultValueValue)({v:e,key:"gradientFinishPointer",device:t,state:"hover"}),w=Object(a.defaultValueValue)({v:e,key:"gradientRadialDegree",device:t,state:"hover"});return"hover"===r&&"gradient"===f?"linear"===y?`linear-gradient(${O}deg, ${Object(l.c)(S,C)} ${x}%, ${Object(l.c)(j,B)} ${P}%)`:`radial-gradient(circle ${w}px,${Object(l.c)(S,C)} ${x}%, ${Object(l.c)(j,B)} ${P}%)`:"hover"===r&&"solid"===f?"none":"gradient"===i?"linear"===c?`linear-gradient(${d}deg, ${Object(l.c)(u,p)} ${b}%, ${Object(l.c)(m,h)} ${g}%)`:`radial-gradient(circle ${v}px, ${Object(l.c)(u,p)} ${b}%, ${Object(l.c)(m,h)} ${g}%)`:"none"}function p({v:e,device:t,state:o}){const r=n({v:e,state:o}),{hex:i}=Object(s.d)(Object(a.defaultValueValue)({v:e,key:"borderColorHex",device:t,state:o}),Object(a.defaultValueValue)({v:e,key:"borderColorPalette",device:t,state:o})),c=Object(a.defaultValueValue)({v:e,key:"borderColorOpacity",device:t,state:o}),{hex:d}=Object(s.d)(Object(a.defaultValueValue)({v:e,key:"borderColorHex",device:t,state:"hover"}),Object(a.defaultValueValue)({v:e,key:"borderColorPalette",device:t,state:"hover"})),u=Object(a.defaultValueValue)({v:e,key:"borderColorOpacity",device:t,state:"hover"});return"hover"===r?Object(l.c)(d,u):Object(l.c)(i,c)}function b({v:e}){const{hoverTransition:t}=e;return`all 0.${t}s ease-in-out`}function m(){return"background, border-radius, color, border-color, box-shadow"}o(129)},function(e,t,o){"use strict";var n={};o.r(n),o.d(n,"facebook",(function(){return Ht}));var a={};o.r(a),o.d(a,"email",(function(){return ga})),o.d(a,"wordpress",(function(){return fa})),o.d(a,"mailchimp",(function(){return Oa})),o.d(a,"sendinblue",(function(){return Ca})),o.d(a,"zapier",(function(){return ja})),o.d(a,"campaignmonitor",(function(){return Pa})),o.d(a,"convertkit",(function(){return Ta})),o.d(a,"activecampaign",(function(){return Ea})),o.d(a,"getresponse",(function(){return Ha})),o.d(a,"mailjet",(function(){return Fa})),o.d(a,"egoi",(function(){return Ma})),o.d(a,"hubspot",(function(){return Wa})),o.d(a,"mailerlite",(function(){return Na})),o.d(a,"drip",(function(){return Da})),o.d(a,"smtp",(function(){return $a})),o.d(a,"gmail_smtp",(function(){return Ua})),o.d(a,"mailgun",(function(){return qa})),o.d(a,"madmimi",(function(){return Xa})),o.d(a,"constantcontact",(function(){return Ja})),o.d(a,"aweber",(function(){return er})),o.d(a,"salesforce",(function(){return or})),o.d(a,"sendgrid",(function(){return ar})),o.d(a,"recaptcha",(function(){return ir}));var r={};o.r(r),o.d(r,"google",(function(){return Ir})),o.d(r,"uploader",(function(){return ti}));var i=o(2),l=o(0),s=o.n(l),c=o(37),d=o(210);const u={};class p extends d.EventEmitter{addChangeListener(e,t){this.on(e,t)}removeChangeListener(e,t){this.removeListener(e,t)}get(e){return u[e]}set(e,t){u[e]=t,this.emit(e,t)}}const b=new p;b.setMaxListeners(1/0);var m=b,h=o(5),g=o.n(h),v=o(8),f=o(17),y=o(111),O=o(43),S=o(34),C=o(32),x=o(12),j=o(552),B=o(60),P=o.n(B);function w(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function T(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?w(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):w(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const z=({onScroll:e,forwardedRef:t,style:o,children:n})=>{const a=Object(l.useCallback)(e=>{t(e?e.view:null)},[]);return s.a.createElement(P.a,{ref:a,style:T(T({},o),{},{overflow:"hidden"}),onScroll:e},n)},E=Object(l.forwardRef)((e,t)=>s.a.createElement(z,Object(x.a)({},e,{forwardedRef:t})));E.displayName="CustomScrollbarsVirtualList";const k=e=>{const t=Object(l.forwardRef)((t,o)=>{let{style:n}=t,a=Object(C.a)(t,["style"]);return s.a.createElement("div",Object(x.a)({ref:o,style:T(T({},n),{},{paddingLeft:e,paddingTop:e,marginBottom:e})},a))});return t.displayName="InnerElement",t};var H=e=>{const{height:t,width:o,columnCount:n,columnWidth:a,rowCount:r,rowHeight:i,initialScrollTop:l,renderItem:c,style:d={},gutter:u=0}=e;return s.a.createElement(j.a,{height:t,width:o,columnCount:n,columnWidth:a+u,rowCount:r,rowHeight:i+u,style:d,initialScrollTop:l,outerElementType:E,innerElementType:k(u)},c)},_=o(15);function F(e,t){switch(t.type){case"wait":if("delay"===e.status)return{status:"waiting"};break;case"resolve":if("delay"===e.status||"waiting"===e.status)return{status:"resolved",value:t.value};break;case"reject":if("delay"===e.status||"waiting"===e.status)return{status:"rejected",reason:t.reason}}return e}function R({getPromise:e,renderResolved:t,renderRejected:o,renderWaiting:n,delayMs:a=0}){const r=a&&a>0,[i,s]=Object(l.useReducer)(F,{status:r?"delay":"waiting"});return Object(l.useEffect)(()=>{let t,o=!1;return r&&(t=window.setTimeout(()=>{o||s({type:"wait"})},a)),e().then(e=>{o||(clearTimeout(t),s({type:"resolve",value:e}))}).catch(e=>{o||(clearTimeout(t),s({type:"reject",reason:e}))}),()=>{o=!0}},[]),"waiting"===i.status&&n?n():"resolved"===i.status?t(i.value):"rejected"===i.status&&o?o(i.reason):null}var M=o(442);const L=[{id:1,title:"Animals/Nature"},{id:2,title:"Arrows"},{id:3,title:"Business/Finance"},{id:4,title:"Clothes/Accessories"},{id:5,title:"Design/Development"},{id:6,title:"Emoticons"},{id:7,title:"Energy/Environment"},{id:8,title:"Files/Folders"},{id:10,title:"Food"},{id:11,title:"Home/Buildings"},{id:12,title:"Healthcare/Medical"},{id:13,title:"Holidays"},{id:14,title:"Loaders"},{id:15,title:"Maps/Location"},{id:16,title:"Multimedia"},{id:18,title:"School/Education"},{id:19,title:"Shopping"},{id:20,title:"Social Media"},{id:21,title:"Sport"},{id:22,title:"Technology"},{id:23,title:"Text Editing"},{id:24,title:"Touch Gestures"},{id:25,title:"Transportation"},{id:26,title:"Travel"},{id:27,title:"User Interface"},{id:28,title:"Users"},{id:29,title:"Weather"}],W=[{title:"Accessibility",id:1},{title:"Alert",id:2},{title:"Animals",id:3},{title:"Arrows",id:4},{title:"Audio & Video",id:5},{title:"Automotive",id:6},{title:"Autumn",id:7},{title:"Beverage",id:8},{title:"Buildings",id:9},{title:"Business",id:10},{title:"Camping",id:11},{title:"Charity",id:12},{title:"Chat",id:13},{title:"Chess",id:14},{title:"Childhood",id:15},{title:"Clothing",id:16},{title:"Code",id:17},{title:"Communication",id:18},{title:"Computers",id:19},{title:"Construction",id:20},{title:"Currency",id:21},{title:"Date & Time",id:22},{title:"Design",id:23},{title:"Editors",id:24},{title:"Education",id:25},{title:"Emoji",id:26},{title:"Energy",id:27},{title:"Files",id:28},{title:"Finance",id:29},{title:"Fitness",id:30},{title:"Food",id:31},{title:"Fruits & Vegetables",id:32},{title:"Games",id:33},{title:"Tabletop Gaming",id:34},{title:"Genders",id:35},{title:"Halloween",id:36},{title:"Hands",id:37},{title:"Health",id:38},{title:"Holiday",id:39},{title:"Hotel",id:40},{title:"Household",id:41},{title:"Images",id:42},{title:"Interfaces",id:43},{title:"Logistics",id:44},{title:"Maps",id:45},{title:"Maritime",id:46},{title:"Marketing",id:47},{title:"Mathematics",id:48},{title:"Medical",id:49},{title:"Moving",id:50},{title:"Music",id:51},{title:"Objects",id:52},{title:"Payments & Shopping",id:53},{title:"Pharmacy",id:54},{title:"Political",id:55},{title:"Religion",id:56},{title:"Science",id:57},{title:"Science Fiction",id:58},{title:"Security",id:59},{title:"Shapes",id:60},{title:"Shopping",id:61},{title:"Social",id:62},{title:"Spinners",id:63},{title:"Sports",id:64},{title:"Spring",id:65},{title:"Status",id:66},{title:"Summer",id:67},{title:"Toggle",id:68},{title:"Travel",id:69},{title:"Users & People",id:70},{title:"Vehicles",id:71},{title:"Weather",id:72},{title:"Winter",id:73},{title:"Writing",id:74}],I=[{id:2,name:"fa",title:"FA",icon:"nc-full-cube"}],N=[{id:0,name:"outline",title:"Outline",icon:"nc-cube"},{id:1,name:"glyph",title:"Glyph",icon:"nc-full-cube"}];var A=o(68),D=o(84),V=o(39),$=o(48);const G=Object(V.c)(e=>e>=0&&e<=2?e:void 0,Math.round,$.b);var U=o(41);const K=e=>{if(null===e||"object"!=typeof e)return;const t=U.d(e.title),o=U.d(e.name),n=G(e.type);if(void 0===t||void 0===o||void 0===n)return;const a=U.d(e.family);return{title:t,name:o,type:n,cat:Object(D.g)(e.cat).map($.b).filter(Boolean),family:a}},q=e=>Object(D.g)(null==e?void 0:e.default).map(K).filter(Boolean),Y=e=>{switch(e){case 0:return o.e(4).then(o.t.bind(null,781,3)).then(q);case 1:return o.e(3).then(o.t.bind(null,782,3)).then(q);case 2:return o.e(2).then(o.t.bind(null,783,3)).then(q)}},X=()=>A.j?A.g?[...N,...I]:I:N,Z=e=>{var t;switch(e.type){case 0:case 1:{const t=X()[e.type].name;return`nc-${t} nc-${t}-${e.name}`}case 2:return`${null!==(t=e.family)&&void 0!==t?t:"fa"} fa-${e.name}`}},J=e=>{switch(e){case 0:case 1:return L;case 2:return W}};function Q(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ee(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Q(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const te=X(),oe=te.reduce((e,{id:t,name:o})=>(e[t]=o,e),{});class ne extends l.Component{constructor(...e){var t;super(...e),Object(i.a)(this,"state",{typeId:(null!==(t=te.find(e=>e.name===this.props.type))&&void 0!==t?t:te[0]).id,categoryId:"*",search:""}),Object(i.a)(this,"containerRef",s.a.createRef()),Object(i.a)(this,"onIconClick",e=>{this.props.onClose(),setTimeout(()=>{this.props.onChange(e)},0)})}componentDidUpdate(){if(this.containerRef.current){const{templateFonts:e}=f.a.get("urls");Object(M.a)(this.containerRef.current,e)}}renderTabs(){const e=te.map(e=>s.a.createElement("div",{key:e.id,className:g()("brz-ed-popup-tab-item",{active:e.id===this.state.typeId}),onClick:()=>this.setState({typeId:e.id})},s.a.createElement("div",{className:"brz-ed-popup-tab-icon"},s.a.createElement(_.b,{icon:e.icon})),s.a.createElement("div",{className:"brz-ed-popup-tab-name"},e.title)));return s.a.createElement("div",{className:"brz-ed-popup-header"},s.a.createElement("div",{className:"brz-ed-popup-header__tabs"},e),s.a.createElement("div",{className:"brz-ed-popup-btn-close",onClick:this.props.onClose}))}renderFilters(){const{categoryId:e,search:t,typeId:o}=this.state,n=[{id:"*",name:"all",title:"All Categories"},...J(o)];return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"brz-ed-popup__categories"},s.a.createElement(O.a,{className:"brz-ed-popup__select brz-ed-popup__select--block-categories brz-ed-popup-control__select--light",defaultValue:e,maxItems:10,itemHeight:30,onChange:e=>this.setState({categoryId:e})},n.map(({id:e,title:t})=>s.a.createElement(S.a,{key:e,value:e},t)))),s.a.createElement("div",{className:"brz-ed-popup__search"},s.a.createElement("input",{type:"text",className:"brz-input brz-ed-popup__input",placeholder:"Enter Search Keyword",onChange:e=>this.setState({search:e.target.value}),value:t}),s.a.createElement("div",{className:g()("brz-ed-popup__search--icon",{active:t.length>0})},s.a.createElement(_.b,{icon:"nc-search"}))))}filterIcons(e){const{typeId:t,categoryId:o,search:n}=this.state,a=new RegExp(n,"i");return e.filter(({type:e,cat:r,title:i})=>t===e&&("*"===o||r.includes(o))&&(""===n||a.test(i)))}render(){const{name:e,type:t,opened:o,onClose:n}=this.props;return s.a.createElement(y.a,{opened:o,onClose:n},s.a.createElement("div",{ref:this.containerRef,className:"brz-ed-popup-wrapper"},this.renderTabs(),s.a.createElement("div",{className:"brz-ed-popup-content brz-ed-popup-pane brz-ed-popup-icons"},s.a.createElement("div",{className:"brz-ed-popup-body"},s.a.createElement("div",{className:"brz-ed-popup__head--search brz-d-xs-flex brz-align-items-center brz-justify-content-xs-center"},this.renderFilters()),s.a.createElement("div",{className:"brz brz-ed-popup-icons__grid"},s.a.createElement(R,{getPromise:()=>{return e=X().map(e=>e.id),Promise.all(e.map(Y)).then(D.a);var e},renderResolved:o=>{const n=this.filterIcons(o);return s.a.createElement(ae,{icons:n,value:{name:e,type:t},onChange:this.onIconClick})},renderWaiting:()=>s.a.createElement(re,null),delayMs:1e3}))))))}}function ae({icons:e,value:t,onChange:o}){const[n,a]=Object(l.useState)(null),r=Object(l.useRef)(null),i=e.findIndex(e=>e.name===t.name),c=Math.floor(e.length/8)+1,d=Math.floor(i/8),u=0===d?0:d-1;if(Object(l.useEffect)(()=>{if(r.current){const{width:e,height:t}=r.current.getBoundingClientRect();a({width:e,height:t})}},[]),!n)return s.a.createElement("div",{style:{height:"100%"},ref:r},s.a.createElement(re,null));const{width:p,height:b}=n,m=74*u;return s.a.createElement(H,{width:p,height:b,columnCount:8,columnWidth:68,rowCount:c,rowHeight:68,gutter:6,initialScrollTop:m,renderItem:({rowIndex:n,columnIndex:a,style:r})=>{const i=e[8*n+a];if(!i)return null;const{type:l,name:c}={type:oe[i.type],name:i.name},d=g()("brz-ed-popup-icons__grid__item",{active:l===t.type&&c===t.name});return s.a.createElement("div",{style:ee(ee({},r),{},{left:r.left+6,top:r.top+6,width:r.width-6,height:r.height-6}),className:d,onClick:()=>{o({type:l,name:c})}},s.a.createElement("i",{className:g()(["brz-font-icon",Z(i)])}))}})}function re(){return s.a.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#828b92",fontSize:"35px"}},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))}Object(i.a)(ne,"defaultProps",{name:"nc-star",type:"outline",onChange:v.default.noop});var ie=o(1);function le(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function se(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?le(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):le(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class ce extends l.Component{constructor(e){super(e),Object(i.a)(this,"handleLoading",e=>{this.setState({loading:e})});const{currentTab:t,tabs:o}=this.props;this.state={loading:!0,currentTab:t,tabs:o}}handleTabChange(e){this.state.loading&&this.props.blockTabsWhenLoading||this.setState({currentTab:e})}handleTabUpdate(e,t){const{tabs:o}=this.state,n=o.map(o=>o.id===e?se(se({},o),t):o);this.setState({tabs:n})}renderHeader(){const{currentTab:e,tabs:t}=this.state,{onClose:o}=this.props,n=t.map(t=>{const{id:o,icon:n,img:a,title:r}=t,i=g()("brz-ed-popup-tab-item",{active:o===e});return s.a.createElement("div",{key:o,className:i,onClick:()=>this.handleTabChange(o)},n&&s.a.createElement("div",{className:"brz-ed-popup-tab-icon"},s.a.createElement(_.b,{icon:n})),a?s.a.createElement("div",{className:"brz-ed-popup-tab-image"},s.a.createElement("img",{className:"brz-img",src:a,alt:r})):s.a.createElement("div",{className:"brz-ed-popup-tab-name"},r))});return s.a.createElement("div",{className:"brz-ed-popup-header"},s.a.createElement("div",{className:"brz-ed-popup-header__tabs"},n),s.a.createElement("div",{className:"brz-ed-popup-btn-close",onClick:o}))}renderCurrentTab(){const{tabs:e,loading:t,currentTab:o}=this.state;return e.reduce((e,{id:n,component:a})=>n===o?[s.a.createElement(a,Object(x.a)({},this.props,{key:n,loading:t,onLoading:this.handleLoading,onTabUpdate:e=>{this.handleTabUpdate(n,e)}}))]:e,[])}renderTabs(){const{tabs:e,loading:t,currentTab:o}=this.state;return e.map(({id:e,component:n})=>{const a=g()("brz-ed-popup-integration-"+e,{"brz-hidden":e!==o});return s.a.createElement(n,Object(x.a)({},this.props,{key:e,loading:t,className:a,onTabUpdate:t=>{this.handleTabUpdate(e,t)}}))})}render(){const{opened:e,onClose:t}=this.props;return s.a.createElement(y.a,{className:"brz-ed-popup-integrations",opened:e,onClose:t},s.a.createElement("div",{className:"brz-ed-popup-wrapper"},this.renderHeader(),s.a.createElement("div",{className:"brz-ed-popup-content"},this.state.loading?this.renderCurrentTab():this.renderTabs())))}}Object(i.a)(ce,"defaultProps",{value:{},opened:!1,tabs:[],currentTab:"",blockTabsWhenLoading:!0,onClose:v.noop});var de=ce,ue=o(47),pe=o(21);const be=s.a.createContext({app:{},connectedApps:[],stages:[],stage:"",oldStage:"",onChange:(e,t)=>{},onChangeNext:v.noop,onChangePrev:v.noop,onConnectApp:v.noop,onDisconnectApp:v.noop,onChangeProgress:v.noop,onError:v.noop});class me extends l.Component{render(){const{stage:e,apps:t,children:o,onClose:n}=this.props;return s.a.Children.map(o,o=>e===o.props.num&&s.a.cloneElement(o,{apps:t,onClose:n}))}}Object(i.a)(me,"defaultProps",{stage:"",apps:[]});var he=e=>{const{stage:t,children:o}=e;return s.a.createElement("div",{className:"brz-ed-popup-integrations__progress"},s.a.Children.map(o,e=>e&&s.a.cloneElement(e,{stage:t})))};class ge extends l.Component{render(){const{stage:e,apps:t,children:o}=this.props;return s.a.Children.map(o,o=>o&&s.a.cloneElement(o,{stage:e,apps:t}))}}Object(i.a)(ge,"defaultProps",{stage:"",apps:[]}),Object(i.a)(ge,"Steps",me),Object(i.a)(ge,"Step",e=>{let{render:t}=e;return t(Object(C.a)(e,["render"]))}),Object(i.a)(ge,"Progress",he),Object(i.a)(ge,"Stage",({stage:e,num:t,text:o,img:n})=>{const a=g()("brz-ed-popup-integrations__progress-stage",{"brz-ed-popup-integrations__progress-stage--active":t===e});return s.a.createElement("div",{className:a},s.a.createElement("span",{className:"brz-span"},n&&s.a.createElement("img",{className:"brz-img",src:n,alt:"Logo"}),o))});var ve=ge;class fe extends l.Component{render(){const{apps:e,render:t}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations__apps brz-d-xs-flex brz-flex-xs-wrap"},e.map((e,o)=>t(e,o)))}}Object(i.a)(fe,"defaultProps",{apps:[],render:v.default.noop});var ye=o(58);const Oe=f.a.get("pro"),Se=f.a.get("urls");class Ce extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{tooltipOpen:!1}),Object(i.a)(this,"iconRef",s.a.createRef()),Object(i.a)(this,"handleTooltipOpen",()=>{this.setState({tooltipOpen:!0})}),Object(i.a)(this,"handleTooltipClose",()=>{this.setState({tooltipOpen:!1})})}renderProInfo(){return s.a.createElement("div",{className:"brz-ed-tooltip-content__pro"},s.a.createElement("p",{className:"brz-p brz-ed-tooltip-content__pro-title"},Object(ie.a)("You’ll need Brizy PRO to use this integration")),s.a.createElement("p",{className:"brz-p brz-ed-tooltip-content__pro-body"},s.a.createElement("a",{className:"brz-a",href:Se.upgradeToPro,rel:"noopener noreferrer",target:"_blank"},s.a.createElement(_.b,{icon:"nc-lock"}),Object(ie.a)("Get Brizy PRO"))))}renderPro(){const{img:e,title:t}=this.props,o=g()("brz-ed-popup-integrations__app-logo",this.state.tooltipOpen&&"brz-ed-popup-integrations__app-logo--open");return s.a.createElement("div",{className:"brz-ed-popup-integrations__app brz-ed-popup-integrations__app--pro"},s.a.createElement(ye.b,{overlayClassName:"brz-ed-tooltip--delay-2",size:"small",offset:"5",openOnClick:!1,nodeRef:this.iconRef,overlay:this.renderProInfo(),onOpen:this.handleTooltipOpen,onClose:this.handleTooltipClose},s.a.createElement("div",{className:o},s.a.createElement("img",{className:"brz-img",src:e,alt:t}),s.a.createElement("span",{ref:this.iconRef,className:"brz-span brz-ed-popup-integrations__app-icon brz-ed-popup-integrations__app-icon--pro"},s.a.createElement(_.b,{icon:"nc-lock"})),s.a.createElement("p",{className:"brz-p brz-ed-badge brz-ed-badge--pro"},"pro")),s.a.createElement("div",{className:"brz-ed-popup-integrations__app-title"},t)))}renderFree(){const{img:e,title:t,loading:o,active:n,onClick:a}=this.props,r=g()("brz-ed-popup-integrations__app",n&&"brz-ed-popup-integrations__app--connected",o&&"brz-ed-popup-integrations__app--loading");return s.a.createElement("div",{className:r,onClick:a},s.a.createElement("div",{className:"brz-ed-popup-integrations__app-logo"},s.a.createElement("img",{className:"brz-img",src:e,alt:t}),n&&!o&&s.a.createElement("span",{className:"brz-span brz-ed-popup-integrations__app-icon"},s.a.createElement(_.b,{icon:"nc-check-small"})),o&&s.a.createElement("span",{className:"brz-span brz-ed-popup-integrations__app-icon"},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))),s.a.createElement("div",{className:"brz-ed-popup-integrations__app-title"},t))}render(){return!Oe&&this.props.pro?this.renderPro():this.renderFree()}}Object(i.a)(Ce,"defaultProps",{img:"",pro:!1,shortTitle:"",loading:!1,active:!1,onClick:v.default.noop});const xe=f.a.get("urls");class je extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{loadingApp:"",onConnectApp:v.default.noop})}componentDidUpdate(e){this.props.error!==e.error&&this.state.loadingApp&&this.setState({loadingApp:""})}handleChangeApp(e){const{onConnectApp:t}=this.context;t(e),this.setState({loadingApp:e.id})}renderError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},this.props.error))}renderProException(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-pro brz-mb-lg-0"},s.a.createElement("span",{className:"brz-span"},Object(ie.a)("Some integrations are available only in PRO")),s.a.createElement("a",{className:"brz-ed-btn brz-ed-btn-width-2 brz-ed-btn-sm brz-ed-btn-icon brz-ed-btn-icon--left brz-ed-btn-rounded brz-ed-btn-pro",rel:"noopener noreferrer",href:xe.upgradeToPro,target:"_blank"},s.a.createElement(_.b,{icon:"nc-lock"}),Object(ie.a)("Get Brizy PRO")))}render(){const{apps:e,height:t,proExceptions:o,error:n}=this.props,{connectedApps:a}=this.context,{loadingApp:r}=this.state;return s.a.createElement(P.a,{style:{height:t}},n&&this.renderError(),o&&this.renderProException(),s.a.createElement(fe,{apps:e,render:e=>s.a.createElement(Ce,Object(x.a)({},e,{key:e.id,loading:r===e.id,active:a.includes(e.id),onClick:()=>{this.handleChangeApp(e)}}))}))}}Object(i.a)(je,"contextType",be),Object(i.a)(je,"defaultProps",{apps:[],height:"100%",proExceptions:!1,error:null});var Be=je;class Pe extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{loading:!0,showProgress:!0,connectedApp:"",connectedApps:[],stage:this.props.stage,stages:this.props.stages,oldStage:"",data:{},error:null,appError:null}),Object(i.a)(this,"appsData",[]),Object(i.a)(this,"appsComponent",{}),Object(i.a)(this,"proExceptions",!1),Object(i.a)(this,"handleConnectApp",async e=>{const{id:t,stages:o}=e;this.setState(Object(c.a)(n=>{n.stages=o,n.connectedApp=t,n.data[t]=e}),()=>{this.handleNext()})}),Object(i.a)(this,"handleDisconnectApp",e=>{const{stage:t,stages:o}=this.props;this.setState(Object(c.a)(n=>{const a=n.connectedApps;n.stage=t,n.stages=o,n.connectedApps=a.filter(t=>t!==e)}))}),Object(i.a)(this,"handleProgress",e=>{this.setState(e)}),Object(i.a)(this,"handleChange",(e,t)=>{this.setState(Object(c.a)(o=>{o.data[e].data=t}))}),Object(i.a)(this,"handleNext",async e=>{const{stages:t,stage:o}=this.state,n=t.findIndex(({type:e})=>e===o)+1,a=e||t[n].type,r=this.getComponent(a);let i=!1;if(r&&"function"==typeof r.onBeforeLoad){const e=t[n+1].type,o={onChangeNext:t=>{const o=t||e;i=!0,this.handleNext(o)}};await r.onBeforeLoad(this.getContextValue(),o)}i||this.setState({stage:a,oldStage:o})}),Object(i.a)(this,"handlePrev",e=>{this.setState(Object(c.a)(t=>{if("appList"===e){const{stage:e,stages:o}=this.props;t.stage=e,t.stages=o,t.connectedApp=""}else{var o;const{stage:n,stages:a}=t,r=a.findIndex(({type:e})=>e===n)-1;t.stage=e||(null===(o=a[r])||void 0===o?void 0:o.type)||"",t.oldStage=n,t.connectedApp=-1===r?"":t.connectedApp}}))}),Object(i.a)(this,"handleError",e=>{this.setState({error:e})})}getContextValue(){const{connectedApp:e,connectedApps:t,data:o,stages:n,stage:a,oldStage:r}=this.state;return{app:o[e]||{},connectedApps:t,stages:n,stage:a,oldStage:r,onChange:this.handleChange,onChangeNext:this.handleNext,onChangePrev:this.handlePrev,onConnectApp:this.handleConnectApp,onDisconnectApp:this.handleDisconnectApp,onChangeProgress:this.handleProgress,onError:this.handleError}}getConnectedApps(e){const{connectedApps:t}=this.state;return Array.isArray(e)?e.reduce((e,t)=>t.completed?[...e,t.id]:e,t):t}getComponent(e){return this.appsComponent[this.state.connectedApp][e]}renderLoading(){return s.a.createElement("div",{className:"brz-ed-popup-content--loading"},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))}renderError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},this.state.error))}renderApps(){const{error:e,appError:t}=this.state;return s.a.createElement(s.a.Fragment,null,e&&this.renderError(),s.a.createElement(Be,{apps:this.appsData,proExceptions:this.proExceptions,error:t}))}renderSteps(){var e;const{showProgress:t,stage:o,stages:n,connectedApp:a,data:r}=this.state,i=t&&!(null===(e=n.find(e=>e.type===o))||void 0===e?void 0:e.hideProgress),l=n.reduce((e,t,o,n)=>{const i={num:t.type};return o===n.findIndex(e=>e.title)?i.img=r[a].img:i.text=t.title,t.title?[...e,s.a.createElement(ve.Stage,Object(x.a)({key:o},i))]:e},[]);return s.a.createElement(be.Provider,{value:this.getContextValue()},s.a.createElement(ve,{stage:o},i&&l.length>0&&s.a.createElement(ve.Progress,null,l),s.a.createElement(ve.Steps,{onClose:this.props.onClose},n.map((e,t)=>{const o=this.getComponent(e.type);return s.a.createElement(ve.Step,{key:t,num:e.type,render:e=>o&&s.a.createElement(o,Object(x.a)({},e,{apps:this.appsData}))})}))))}renderContent(){const{stage:e,stages:t}=this.state;return s.a.createElement(be.Provider,{value:this.getContextValue()},""!==e&&t.length?this.renderSteps():this.renderApps())}render(){const e=g()("brz-ed-popup-integration",this.props.className);return s.a.createElement("div",{className:e},this.state.loading?this.renderLoading():this.renderContent())}}Object(i.a)(Pe,"defaultProps",{className:"",tab:{},stage:"",stages:[],onLoading:v.default.noop,onTabUpdate:v.default.noop,onClose:v.default.noop});var we=Pe;function Te(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ze(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Te(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Ee=(e,t={})=>{let o=new URL(e);return Object.entries(t).forEach(([e,t])=>{o.searchParams.append(e,t)}),o},ke=e=>e.json().then(t=>ze(ze({},t),{},{status:e.status,ok:e.ok,data:t.data||null})).then(He).catch(()=>{throw{status:500,data:"Server Error"}}),He=e=>{if(e.success)return e;{const{data:t}=e;return ze(ze({},e),{},{status:t.code||e.status})}},_e=(e,t,o,n)=>{let a=e&&JSON.parse(e)||[];const r=t&&t.length||0;let i=t.filter(e=>e.required).length;!a.some(({target:e})=>"email"===e)&&o.some(({type:e})=>e&&"email"===e.toLowerCase())&&(a=((e,t)=>{const o=t.find(({type:e})=>e&&"email"===e.toLowerCase());return e.push({sourceId:o._id,sourceTitle:o.label,target:"email"}),e})(a,o),i--);let l=0,s=0;return o.map(({_id:e,label:o})=>{const c=a.find(({sourceId:t})=>t===e);let d=null;return c&&c.target&&"_auto_generate"!==c.target?d=c.target:(Fe(r+s,n)||s<i?(d=Re(t,a,l),l++):d="_auto_generate",s++),{sourceId:e,sourceTitle:o,target:d}})},Fe=(e,t)=>t&&e>=t.maxFields,Re=(e,t,o)=>{const n=v.default.pluck(e,"slug"),a=v.default.pluck(t,"target");return v.default.difference(n,a)[o]},Me=(e,t,o="select")=>{if("select"===o){const o=v.default.pluck(e.filter(e=>e.required),"slug"),n=v.default.pluck(t,"target");return!v.default.difference(o,n).length}if("input"===o)return 0===t.filter(e=>""===e.target).length},Le=e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase());function We(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}const Ie=e=>{const{api:t}=f.a.get("wp"),o=f.a.get("editorVersion"),n=Ee(t.url,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?We(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):We(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({action:t.getAccounts,hash:t.hash,version:o},e||{}));return Object(pe.I)(n,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(ke).then(e=>e)},Ne=e=>{const{api:t}=f.a.get("wp"),o=f.a.get("editorVersion"),n=Ee(t.url,{action:t.deleteAccount,hash:t.hash,version:o,id:e});return Object(pe.I)(n,{method:"DELETE",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(ke).then(e=>e)};var Ae=o(127),De=o(152);class Ve extends l.Component{render(){const{className:e,size:t,color:o,rightIcon:n,leftIcon:a,loading:r,disabled:i,children:l,onClick:c}=this.props,d=g()("brz-button brz-ed-btn","brz-ed-btn-sm brz-ed-btn-rounded",e,r?"brz-ed-btn--loading":"brz-ed-btn-icon","brz-ed-btn-width-"+t,"brz-ed-btn-"+o,{"brz-ed-btn-icon--left":a},{"brz-ed-btn-icon--right":n},{"brz-ed-btn--disabled":i});return s.a.createElement("button",{className:d,onClick:c},r?s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}):s.a.createElement(s.a.Fragment,null,a&&s.a.createElement(_.b,{icon:a}),l,n&&s.a.createElement(_.b,{icon:n})))}}Object(i.a)(Ve,"defaultProps",{className:"",type:"",color:"gray",size:1,rightIcon:"",leftIcon:"",loading:!1,disabled:!1,onClick:v.default.noop});var $e=Ve;class Ge extends l.Component{renderOptions(){const{active:e,data:{accounts:t,usedAccount:o,completed:n},disconnectLoading:a,onActive:r,onDisconnect:i}=this.props,l=t.map(({name:e,id:t})=>s.a.createElement(De.a,{value:t,key:t},e||"Account "+t,t===o&&n&&s.a.createElement("div",{title:"Disconnect",className:"brz-ed-popup-integrations--delete",onClick:i},s.a.createElement(_.b,{icon:a?"nc-circle-02":"nc-connection",className:a?"brz-ed-animated--spin":""}))));return s.a.createElement(P.a,{autoHeight:!0,autoHeightMax:"100%",style:{height:"auto"}},s.a.createElement(Ae.b,{className:"brz-ed-popup-integrations-option__radio",name:"list",defaultValue:e,onChange:r},l))}renderError(){const{error:e,data:{accounts:t}}=this.props;return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},0===t.length&&Object(ie.a)("Accounts are empty. Please connect a new account and try again."),e))}render(){const{data:{accounts:e},error:t,nextLoading:o,prevLoading:n,connectLoading:a,onConnect:r,onPrev:i,onNext:l}=this.props,c=e.length>0;return s.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__account"},s.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},s.a.createElement("p",{className:"brz-p"},s.a.createElement("strong",{className:"brz-strong"},Object(ie.a)("SELECT ACCOUNT")))),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},(!c||t)&&this.renderError(),c&&this.renderOptions(),s.a.createElement("div",{className:"brz-ed-popup-integrations-new__option",onClick:r},s.a.createElement(_.b,{icon:a?"nc-circle-02":"nc-add",className:a?"brz-ed-animated--spin":""}),Object(ie.a)("Connect a new account")),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},s.a.createElement($e,{size:3,leftIcon:"nc-arrow-left",loading:n,onClick:i},Object(ie.a)("Back")),s.a.createElement($e,{color:"teal",rightIcon:"nc-arrow-right",loading:o,onClick:l},Object(ie.a)("Continue")))))}}Object(i.a)(Ge,"defaultProps",{id:"",title:"",shortTitle:"",description:"",img:"",form:{},data:{},active:"",nextLoading:!1,prevLoading:!1,connectLoading:!1,disconnectLoading:!1,onActive:v.default.noop,onPrev:v.default.noop,onNext:v.default.noop,onConnect:v.default.noop,onDisconnect:v.default.noop});var Ue=Ge;var Ke=e=>{const{title:t="",value:o="",icon:n="",type:a="text",required:r=!1,loading:i=!1,onChange:l=v.noop,onKeyDown:c=v.noop,onClickIcon:d=v.noop}=e;return s.a.createElement("div",{className:"brz-input__placeholder"},s.a.createElement("label",{className:"brz-label"},s.a.createElement("input",{required:!0,className:"brz-input",name:t,type:a,value:o,onChange:l,onKeyDown:c}),s.a.createElement("p",{className:"brz-p"},s.a.createElement("strong",{className:"brz-strong"},t,r&&s.a.createElement("span",{className:"brz-span"},"(",Object(ie.a)("required"),")")))),n&&s.a.createElement("div",{className:"brz-input__placeholder-icon"},i?s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}):s.a.createElement(_.b,{icon:n,onClick:d})))};class qe extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"handleKeyDown",e=>{13===e.which&&this.props.onNext()})}renderError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},this.props.error))}renderInputs(){const{data:e,onChange:t}=this.props;return e.map((e,o)=>{const{title:n,name:a,value:r}=e;return s.a.createElement(Ke,{key:o,title:n,name:a,required:!0,value:r,onChange:({target:e})=>{t(e.value,a)},onKeyDonw:this.handleKeyDown})})}render(){const{img:e,title:t,descriptions:o,error:n,nextLoading:a,prevLoading:r,onNext:i,onPrev:l}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations__connect"},s.a.createElement("div",{className:"brz-ed-popup-integrations__connect-head"},s.a.createElement("img",{className:"brz-img",src:e,title:t,alt:t}),s.a.createElement("p",{className:"brz-p"},o),s.a.createElement("p",{className:"brz-p brz-ed-popup-integrations__connect-info"},s.a.createElement("a",{className:"brz-a",href:"#",target:"_blank"},Object(ie.a)("Need help"),"?"))),s.a.createElement("div",{className:"brz-ed-popup-integrations__connect-body"},n&&this.renderError(),this.renderInputs(),null!==a&&s.a.createElement($e,{color:"teal",loading:a,onClick:i},Object(ie.a)("Connect")),null!==r&&s.a.createElement($e,{color:"default",loading:r,onClick:l},Object(ie.a)("Cancel"))))}}Object(i.a)(qe,"defaultProps",{img:"",title:"",descriptions:"",data:[{title:"",name:"",value:""}],nextLoading:null,prevLoading:null,error:null,onNext:v.default.noop,onPrev:v.default.noop});var Ye=qe;class Xe extends l.Component{renderError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},this.props.error))}render(){const{title:e,img:t,descriptions:o,error:n,nextLoading:a,prevLoading:r,onNext:i,onPrev:l}=this.props,c=null!==a&&null!==r;return s.a.createElement("div",{className:"brz-ed-popup-integrations__connect"},s.a.createElement("div",{className:"brz-ed-popup-integrations__connect-head"},s.a.createElement("img",{className:"brz-img",src:t,alt:e}),s.a.createElement("p",{className:"brz-p"},o)),s.a.createElement("div",{className:"brz-ed-popup-integrations__connect-body"},n&&this.renderError(),c&&s.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==a&&s.a.createElement($e,{color:"red",loading:a,onClick:i},Object(ie.a)("Disconnect")),null!==r&&s.a.createElement($e,{color:"default",loading:r,onClick:l},Object(ie.a)("Cancel")))))}}Object(i.a)(Xe,"defaultProps",{title:"",descriptions:"",nextLoading:null,prevLoading:null,error:null,onNext:v.default.noop,onPrev:v.default.noop});var Ze=Xe,Je=o(123),Qe=o(24),et=o(217),tt=o(216),ot=o(780),nt=o(779),at=o(212),rt=o(90),it=o(83);function lt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function st(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):lt(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const ct=(e,t,o,n)=>{const a=t*o,r=t*n,i=e*t;return Math.max(a,Math.min(r,i))};class dt extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{inputValue:""}),Object(i.a)(this,"selectRef",s.a.createRef()),Object(i.a)(this,"inputRef",s.a.createRef()),Object(i.a)(this,"handleChange",(e,t)=>{const{multiple:o,value:n,onChange:a}=this.props;if(o){if(t.isOpen||this.setState({inputValue:""}),e.hasOwnProperty("value")){const t=Array.isArray(n)?n:[];a(Object(Qe.addLast)(t,e.value))}}else e&&(this.setState({inputValue:e.value}),a(e))}),Object(i.a)(this,"handleInputChange",e=>{this.setState({inputValue:e.target.value})}),Object(i.a)(this,"handleRemoveTag",e=>{const{value:t,onChange:o}=this.props;o(Object(Qe.removeAt)(t,e))}),Object(i.a)(this,"handleInputKeyDown",e=>{const{value:t,multiple:o,onChange:n}=this.props;o&&8===e.keyCode&&!this.state.inputValue&&n(Object(Qe.removeLast)(t))})}itemToString(e){return e?e.label:""}renderTags(e){return Array.isArray(e)?e.map((e,t)=>s.a.createElement("div",{key:t,className:"brz-control__select2-tag"},e,s.a.createElement(_.b,{icon:"nc-trash",onClick:()=>{this.handleRemoveTag(t)}}))):null}renderInput(e){const{multiple:t,selectedItem:o,isOpen:n,toggleMenu:a,inputProps:r}=e,i=t?"brz-control__select2-value-container-tag":"brz-control__select2-value-container";return s.a.createElement(ot.a,null,({ref:e})=>s.a.createElement("div",{ref:e,className:i,onClick:()=>{a(),!n&&this.inputRef.current.focus()}},t&&this.renderTags(o),s.a.createElement("input",Object(x.a)({},r,{className:"brz-input brz-control__select2-value"}))))}renderDropdown(e){const{className:t,options:o,value:n,multiple:a,placement:r,fixed:i,itemHeight:l,minItems:c,maxItems:d,isOpen:u,inputValue:p,highlightedIndex:b,selectedItem:m,getItemProps:h,getMenuProps:v}=e;if(!u)return;const f=Array.isArray(n)&&a?o.filter(e=>n.every(t=>t!==e.value)):o,y=this.selectRef.current,O=y.getBoundingClientRect().width,S=y.ownerDocument.body,C=g()("brz-ed-select2-portal",t),j=new tt.a(f,["value"]);return s.a.createElement(rt.a,{node:S,className:C},s.a.createElement(nt.a,{placement:r,positionFixed:i},({ref:e,style:t,placement:o})=>{const n=j.search(p).map((e,t)=>s.a.createElement("li",Object(x.a)({key:e.value},h({index:t,item:e}),{className:g()("brz-li brz-control__select2-option",{"brz-control__select2-option--active":m===e||b===t})}),e.value));return s.a.createElement("div",{ref:e,style:st(st({},t),{},{width:O}),className:"brz-control__select2-menu","data-placement":o},s.a.createElement(it.a,{style:{height:ct(n.length,l,c,d)},className:"brz-control__select2-scroll-pane brz-ed-scroll--small"},s.a.createElement("ul",Object(x.a)({},v(),{className:"brz-ul"}),n.length>0?n:s.a.createElement("li",{className:"brz-li brz-control__select2-option"},Object(ie.a)("Nothing Found")))))}))}render(){const{className:e,placeholder:t,multiple:o,value:n}=this.props,{inputValue:a}=this.state,r=g()("brz-control__select2-container",e);return s.a.createElement("div",{ref:this.selectRef,className:r},s.a.createElement(at.c,null,s.a.createElement(et.a,{initialSelectedItem:n,selectedItem:n,onChange:this.handleChange,itemToString:this.itemToString},({getInputProps:e,getItemProps:n,getMenuProps:r,isOpen:i,highlightedIndex:l,selectedItem:c,toggleMenu:d})=>s.a.createElement("div",{className:"brz-control__select2"},this.renderInput({inputProps:e({ref:this.inputRef,placeholder:t,value:a,onKeyDown:this.handleInputKeyDown,onChange:this.handleInputChange}),multiple:o,selectedItem:c,isOpen:i,toggleMenu:d}),this.renderDropdown(st(st({},this.props),{},{inputValue:a,isOpen:i,highlightedIndex:l,selectedItem:c,getMenuProps:r,getItemProps:n}))))))}}Object(i.a)(dt,"defaultProps",{className:"",value:null,options:[{label:"Test",value:"test"}],placement:"bottom",placeholder:"",fixed:!1,minItems:1,maxItems:5,itemHeight:30,multiple:!1,onChange:v.default.noop});var ut=dt;class pt extends l.Component{renderHead(){const{headTitle:e,headDescription:t}=this.props;if(e&&t)return s.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},e&&s.a.createElement("p",{className:"brz-p"},s.a.createElement("strong",{className:"brz-strong"},e)),t&&s.a.createElement("p",{className:"brz-p"},s.a.createElement("strong",{className:"brz-strong"},t)))}renderSelect({name:e,value:t,choices:o}){const n=o.map(({title:e,name:t})=>s.a.createElement(S.a,{key:t,value:t},e));return s.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-select"},s.a.createElement(O.a,{className:"brz-control__select--white",maxItems:"6",itemHeight:"30",inPortal:!0,defaultValue:t,onChange:t=>{this.props.onActive(e,t)}},n))}renderInput({name:e,value:t}){return s.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-input"},s.a.createElement("input",{className:"brz-input",required:!0,type:"password"===e?"password":"text",value:t,onChange:t=>{this.props.onActive(e,t.target.value)}}))}renderSwitch({name:e,value:t}){return s.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-input"},s.a.createElement(Je.a,{className:"brz-ed-control__switch--light",defaultValue:t,onChange:t=>{this.props.onActive(e,t)}}))}renderSearch({name:e,multiple:t,value:o,choices:n}){const a=Boolean(o)&&t?o.split(","):o;return s.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-select"},s.a.createElement(ut,{className:"brz-control__select2--light",multiple:t,value:a,options:n,onChange:o=>{this.props.onActive(e,t?o.join(","):o.value)}}))}renderOptions(){const e=this.props.data.map((e,t)=>{const{title:o,required:n,type:a,helper:r}=e;return s.a.createElement("div",{key:t,className:"brz-ed-popup-integrations-step__fields-option"},s.a.createElement("div",{className:"brz-d-xs-flex brz-align-items-xs-center"},s.a.createElement("p",{className:"brz-p"},o,n&&s.a.createElement("strong",{className:"brz-strong brz--required"},"*")),r&&s.a.createElement(ye.b,{className:"brz-ed-popup-integrations-fields__tooltip",openOnClick:!1,inPortal:!0,overlay:s.a.createElement("div",{className:"brz-ed-popup-integrations-fields__info",dangerouslySetInnerHTML:{__html:r}})},s.a.createElement(_.b,{icon:"nc-alert-circle-que"}))),!a&&this.renderInput(e),"select"===a&&this.renderSelect(e),"switch"===a&&this.renderSwitch(e),"search"===a&&this.renderSearch(e))});return s.a.createElement(P.a,{autoHeight:!0,autoHeightMax:"100%",style:{height:"auto"}},e)}renderError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},this.props.error))}render(){const{description:e,error:t,prevLoading:o,nextLoading:n,onPrev:a,onNext:r}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__fields"},this.renderHead(),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},t&&this.renderError(),this.renderOptions(),e&&s.a.createElement("p",{className:"brz-p brz-ed-popup-integrations__description"},e),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==o&&s.a.createElement($e,{size:3,leftIcon:"nc-arrow-left",loading:o,onClick:a},Object(ie.a)("Back")),null!==n&&s.a.createElement($e,{color:"teal",rightIcon:"nc-arrow-right",loading:n,onClick:r},Object(ie.a)("Continue")))))}}Object(i.a)(pt,"defaultProps",{id:"",headTitle:"",headDescription:"",description:"",data:[{title:"",value:"",name:"",helper:null}],nextLoading:null,prevLoading:null,onPrev:v.default.noop,onNext:v.default.noop,onActive:v.default.noop});var bt=pt;class mt extends l.Component{renderSelect(e,t){const{formFields:o,fields:n,restrictions:a,onActive:r}=this.props,i=v.default.pluck(o,"target");let l=n.filter(e=>-1===i.indexOf(e.slug)||e.slug===t);const c=n.length+(o.length-v.default.without(i,"_auto_generate").length);(!Fe(c,a)||t&&"_auto_generate"===t)&&l.unshift({name:"Auto Generate",required:!1,slug:"_auto_generate"});const d=l.map(({required:e,name:t,slug:o})=>s.a.createElement(S.a,{key:o,value:o},s.a.createElement("span",{className:"brz-span"},t),e&&s.a.createElement("strong",{className:"brz-strong brz--required"},"*")));return s.a.createElement(O.a,{defaultValue:t,className:"brz-control__select--white",maxItems:"6",itemHeight:"30",inPortal:!0,onChange:t=>{r(e,t)}},d)}renderOptions(){const e=this.props.formFields.map(({sourceTitle:e,target:t,sourceId:o})=>s.a.createElement("div",{key:o,className:"brz-ed-popup-integrations-step__fields-option"},s.a.createElement("p",{className:"brz-p"},e),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-select"},this.renderSelect(o,t))));return s.a.createElement(P.a,{autoHeight:!0,autoHeightMax:"100%",style:{height:"auto"}},e)}renderError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},this.props.error))}renderErrorEmpty(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},Object(ie.a)("Fields are empty. Please add fields and try again.")))}render(){const{title:e,error:t,formFields:o,prevLoading:n,nextLoading:a,onPrev:r,onNext:i}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__fields"},s.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},s.a.createElement("p",{className:"brz-p"},s.a.createElement("strong",{className:"brz-strong"},Object(ie.a)("FORM FIELDS"))),s.a.createElement("p",{className:"brz-p"},s.a.createElement("strong",{className:"brz-strong"},e," ",Object(ie.a)("FIELDS")))),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},t&&this.renderError(),o.length?this.renderOptions():this.renderErrorEmpty(),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==n&&s.a.createElement($e,{size:3,leftIcon:"nc-arrow-left",loading:n,onClick:r},Object(ie.a)("Back")),null!==a&&s.a.createElement($e,{color:"teal",rightIcon:"nc-arrow-right",loading:a,onClick:i},Object(ie.a)("Continue")))))}}Object(i.a)(mt,"defaultProps",{id:"",title:"",shortTitle:"",description:"",img:"",fields:[],formFields:[],restrictions:{},error:null,nextLoading:null,prevLoading:null,onActive:v.default.noop,onPrev:v.default.noop,onNext:v.default.noop});var ht=mt;class gt extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"handleConfirmation",e=>{this.props.onConfirm("true"===e)})}renderError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},this.props.error))}renderList(){const{active:e,lists:t,onActive:o}=this.props,n=t.map(({name:e,id:t})=>s.a.createElement(De.a,{value:t,key:t},e||"List "+t));return s.a.createElement(P.a,{autoHeight:!0,autoHeightMax:"100%",style:{height:"auto"}},s.a.createElement(Ae.b,{className:"brz-ed-popup-integrations-option__radio",name:"list",defaultValue:e,onChange:o},n))}renderConfirmation(){const{confirmationNeeded:e}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations__confirmation"},s.a.createElement("p",{className:"brz-p"},Object(ie.a)("Email confirmation to join the list")),s.a.createElement(O.a,{defaultValue:e?"true":"false",className:"brz-control__select--white",maxItems:"6",itemHeight:"30",onChange:this.handleConfirmation},s.a.createElement(S.a,{value:"false"},Object(ie.a)("Not Required")),s.a.createElement(S.a,{value:"true"},Object(ie.a)("Required"))))}renderCreateList(){const{createLoading:e,onCreateList:t}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations-new__option",onClick:t},s.a.createElement(_.b,{icon:e?"nc-circle-02":"nc-add",className:e?"brz-ed-animated--spin":""}),Object(ie.a)("Create a new list"))}renderProList(){return s.a.createElement(Ae.b,{className:"brz-ed-popup-integrations-option__radio",name:"proList",defaultValue:"none"},s.a.createElement(De.a,{value:"none"},Object(ie.a)("None")))}render(){const{listPro:e,lists:t,listsCreate:o,hasConfirmation:n,error:a,nextLoading:r,prevLoading:i,onPrev:l,onNext:c}=this.props,d=t.length>0,u=o&&o.length>0;return s.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__lists"},s.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},s.a.createElement("p",{className:"brz-p"},s.a.createElement("strong",{className:"brz-strong"},Object(ie.a)("SELECT LIST")))),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},a&&this.renderError(),d&&this.renderList(),e&&this.renderProList(),u&&this.renderCreateList(),n&&this.renderConfirmation(),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==i&&s.a.createElement($e,{size:3,leftIcon:"nc-arrow-left",loading:i,onClick:l},Object(ie.a)("Back")),null!==r&&s.a.createElement($e,{size:d||e?1:3,color:d||e?"teal":"gray",rightIcon:"nc-arrow-right",loading:r,onClick:d||e?c:null},Object(ie.a)("Continue")))))}}Object(i.a)(gt,"defaultProps",{id:"",title:"",shortTitle:"",description:"",img:"",active:"",listPro:!1,lists:[],listsCreate:[],apiKeyValue:{},hasConfirmation:!1,createLoading:!1,confirmationNeeded:!1,nextLoading:null,prevLoading:null,error:null,onActive:v.default.noop,onConfirm:v.default.noop,onCreateList:v.default.noop,onPrev:v.default.noop,onNext:v.default.noop});var vt=gt;class ft extends l.Component{render(){const{title:e,onNext:t}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__done"},s.a.createElement("div",{className:"brz-ed-popup-integrations-step__done-icon"},s.a.createElement(_.b,{icon:"nc-check-light"})),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__done-content"},s.a.createElement("p",{className:"brz-p"},Object(ie.a)("You have successfully connect the form with")," ",e)),s.a.createElement($e,{color:"teal",onClick:t},Object(ie.a)("Done")))}}Object(i.a)(ft,"defaultProps",{title:"",onNext:v.default.noop});var yt=ft;async function Ot(e){try{return await(t=e,fetch("https://graph.facebook.com/"+t).then(({status:e})=>200===e))}catch(e){return!1}var t}function St(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ct(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?St(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):St(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const xt=[{name:"appid",title:"App ID"}];class jt extends l.Component{constructor(e,t){super(e),Object(i.a)(this,"handleChange",(e,t)=>{this.setState(({apiKeyValue:o})=>({apiKeyValue:Ct(Ct({},o),{},{[""+t]:e.trim()})}))}),Object(i.a)(this,"handleConnect",async()=>{const{app:e,onChangeNext:t}=this.context,{apiKeyValue:o}=this.state,n=Object.values(o);if(this.setState({nextLoading:!0,error:null}),n.some(e=>!e))await Object(pe.F)(),this.setState({error:"Fields are empty",nextLoading:!1});else{const{data:a,group:r,id:i}=e,[l]=n;if(!await Ot(l))return void this.setState({isValidate:!1,error:"Your AppId is no valid, re check and try again",nextLoading:!1});if(a&&a.id){const{status:e}=await Ne(a.id);200!==e&&this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")})}const{status:s}=await(e=>{const{api:t}=f.a.get("wp"),o=f.a.get("editorVersion"),n=Ee(t.url,{action:t.addAccount,hash:t.hash,version:o});return Object(pe.I)(n,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(e)}).then(ke).then(e=>e)})(Ct({service:i,group:r},o));200!==s?this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")}):t()}}),Object(i.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(pe.F)(),this.context.onChangePrev()});const{app:{data:o}}=t;this.state={apiKeyValue:o||this.getDefaultValue(),nextLoading:!1,prevLoading:!1,error:null}}static async onBeforeLoad(e,t){e.app.data&&t.onChangeNext("disconnect")}getDefaultValue(){return xt.reduce((e,{name:t})=>Ct(Ct({},e),{},{[""+t]:""}),{})}render(){const{app:e}=this.context,{apiKeyValue:t,nextLoading:o,prevLoading:n,error:a}=this.state,r=xt.map(({title:e,name:o})=>({title:e,name:o,value:t[o]}));return s.a.createElement(Ye,Object(x.a)({},e,{data:r,nextLoading:o,prevLoading:n,error:a,onChange:this.handleChange,onNext:this.handleConnect,onPrev:this.handlePrev}))}}Object(i.a)(jt,"contextType",be);var Bt=jt;class Pt extends l.Component{constructor(e){super(e),Object(i.a)(this,"handleNext",async()=>{const{app:e,onChange:t,onDisconnectApp:o}=this.context;this.setState({nextLoading:!0,error:null});const{status:n}=await Ne(e.data.id);200===n?(o(e.id),t(e.id,null)):this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")})}),Object(i.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0,error:null}),await Object(pe.F)(),this.context.onChangePrev("appList")}),this.state={nextLoading:!1,prevLoading:!1,error:null}}render(){const{nextLoading:e,prevLoading:t,error:o}=this.state;return s.a.createElement(Ze,Object(x.a)({},this.context.app,{descriptions:Object(ie.a)("Are you want to delete account")+" ?",nextLoading:e,prevLoading:t,error:o,onPrev:this.handlePrev,onNext:this.handleNext}))}}Object(i.a)(Pt,"contextType",be);var wt=Pt;class Tt extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"handleClose",()=>{this.props.onClose()})}render(){const{app:e}=this.context;return s.a.createElement(yt,Object(x.a)({},e,{onNext:this.handleClose}))}}Object(i.a)(Tt,"contextType",be);var zt=Tt;class Et{}Object(i.a)(Et,"connect",void 0),Object(i.a)(Et,"account",void 0),Object(i.a)(Et,"fields",void 0),Object(i.a)(Et,"list",void 0),Object(i.a)(Et,"done",void 0);class kt extends Et{}Object(i.a)(kt,"connect",Bt),Object(i.a)(kt,"disconnect",wt),Object(i.a)(kt,"done",zt);var Ht=kt;var _t=class extends we{constructor(...e){super(...e),Object(i.a)(this,"appsData",[]),Object(i.a)(this,"appsComponent",n),Object(i.a)(this,"handleConnectApp",async e=>{const t=e.id,{stages:o}=this.appsData[0];await Object(pe.F)(),this.setState(Object(c.a)(n=>{n.stages=o,n.connectedApp=t,Object.assign(n.data[t],e)}),()=>{this.handleNext()})})}async componentDidMount(){const e=Object(ue.a)("integrations.json"),t=await fetch(e),o=await t.json();this.appsData=o.facebook,await this.getData()}async getData(){const{group:e,service:t}=this.props,{status:o,data:n}=await Ie({group:e,services:t});if(n&&n.length>0&&200===o){const e=n[0],{services:t}=e;this.setState(Object(c.a)(o=>{o.data[t]={data:e},o.loading=!1,o.connectedApps=[t]}))}else this.setState({loading:!1})}};const Ft=[{id:"app",title:Object(ie.a)("APPS"),icon:"nc-extensions-2",component:_t}];class Rt extends l.Component{render(){const{service:e,group:t,opened:o,onClose:n}=this.props;return s.a.createElement(de,{currentTab:"app",service:e,group:t,opened:o,tabs:Ft,onClose:n})}}Object(i.a)(Rt,"defaultProps",{service:"facebook",group:"social",opened:!1,onClose:v.noop});var Mt=Rt,Lt=o(35),Wt=o.n(Lt),It=o(139),Nt=o(10);function At(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Dt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?At(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):At(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Vt extends s.a.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{currentFilter:this.props.defaultFilter}),Object(i.a)(this,"setFilter",e=>{this.setState(t=>({currentFilter:Dt(Dt({},t.currentFilter),e)}))})}render(){const{filterFn:e,data:t,children:o}=this.props,{currentFilter:n}=this.state;return o(t.filter(t=>e(t,n)),n,this.setFilter)}}function $t(e){const{className:t="",title:o="",separator:n=!1,children:a}=e,r=g()("brz-ed-popup-two-sidebar",t);return s.a.createElement("div",{className:r},o&&s.a.createElement("div",{className:"brz-ed-popup-two-sidebar-title"},o),n&&s.a.createElement("div",{className:"brz-ed-popup-two-sidebar-separator"},o),a)}function Gt(e){const{lists:t=[],counters:o={},value:n="",onChange:a=(()=>{})}=e;return t.map(({id:e,title:t,icon:r})=>null!=o[e]&&s.a.createElement("div",{key:e,title:Object(ie.a)(t),className:g()("brz-ed-popup-two-sidebar-list",{"brz-ed-popup-two-sidebar-list-active":e===n}),onClick:()=>a(e)},r&&s.a.createElement("span",{className:"brz-span brz-ed-popup-two-sidebar-list__span-icon"},s.a.createElement(_.b,{icon:r})),s.a.createElement("span",{className:"brz-span brz-ed-popup-two-sidebar-list__span-text"},t),s.a.createElement("span",{className:"brz-span brz-ed-popup-two-sidebar-list__span-new"},"new"),s.a.createElement("span",{className:"brz-span brz-ed-popup-two-sidebar-list__span-quantity"},o[e])))}function Ut(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Kt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ut(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function qt(e){const{className:t,children:o}=e,n=g()("brz-ed-popup-two-body__sidebar",t),a=e=>{let{style:t}=e,o=Object(C.a)(e,["style"]);return s.a.createElement("div",Object(x.a)({},o,{style:Kt(Kt({},t),{},{borderRadius:"inherit",backgroundColor:"rgba(129, 138, 145, 0.5)"})}))};return s.a.createElement("div",{className:n},s.a.createElement(P.a,{renderThumbHorizontal:a,renderThumbVertical:a},s.a.createElement("div",{className:"brz-ed-popup-two-sidebar-body"},o)))}class Yt extends s.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleInputChange",e=>{this.props.onChange(e.target.value)})}render(){const{className:e,value:t}=this.props,o=g()("brz-ed-popup-two-search",e);return s.a.createElement("div",{className:o},s.a.createElement("input",{type:"text",className:"brz-input brz-ed-popup-two__input",placeholder:Object(ie.a)("Type to search"),value:t,onChange:this.handleInputChange}),s.a.createElement("div",{className:"brz-ed-popup-two-search-icon"},s.a.createElement(_.b,{icon:"nc-search"})))}}Object(i.a)(Yt,"defaultProps",{className:"",value:"",onChange:v.default.noop});var Xt=o(6),Zt=o.n(Xt),Jt=o(38),Qt=o(46);let eo=new Map,to=null;class oo extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{imageFetched:!1,showSpinner:!1}),Object(i.a)(this,"content",s.a.createRef()),Object(i.a)(this,"handleIntersection",e=>{e.forEach(({isIntersecting:e,target:t})=>{if(e){const e=eo.get(t);if(!e)return;const o=e.props.src;Object(Qt.e)(o).then(()=>{to&&to.unobserve(t),e.mounted&&e.setState({imageFetched:!0,showSpinner:!1},e.props.onImageLoaded())})}})})}componentDidMount(){const e=this.content.current;if(this.mounted=!0,null===to){const{observerRootSelector:t,observerRootMargin:o,observerThreshold:n}=this.props,a={root:e.ownerDocument.querySelector(t),rootMargin:o,threshold:n};to=new e.ownerDocument.defaultView.IntersectionObserver(this.handleIntersection,a),to.POLL_INTERVAL=200}to.observe(e),eo.set(e,this),setTimeout(()=>{this.mounted&&!this.state.imageFetched&&this.setState({showSpinner:!0})},this.props.spinnerDelay)}componentWillUnmount(){const e=this.content.current;this.mounted=!1,to.unobserve(e),eo.delete(e),0===eo.size&&(to.disconnect(),to=null)}render(){const{width:e,height:t,src:o,style:n}=this.props,{imageFetched:a,showSpinner:r}=this.state,i=Math.round(t/e*100*10)/10;return s.a.createElement("div",{ref:this.content,className:"brz-observer__image",style:{paddingTop:i+"%"}},r&&s.a.createElement("div",{className:"brz-ed-option__block-thumbnail-loading"},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"})),a&&s.a.createElement("img",{className:"brz-img",style:n,src:o,alt:"lazyLoad Image"}))}}Object(i.a)(oo,"defaultProps",{width:100,height:100,src:"",observerRootSelector:null,observerRootMargin:"0px",observerThreshold:[0],spinnerDelay:250,style:{},onImageLoaded:v.default.noop});var no=o(44),ao=o(14);const ro={animationName:"fadeIn",animationFillMode:"both",animationDelay:"200ms",animationDuration:"200ms"},io=f.a.get("pro"),lo=f.a.get("urls");class so extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{tooltipOpen:!1}),Object(i.a)(this,"iconRef",s.a.createRef()),Object(i.a)(this,"handleTooltipOpen",()=>{this.setState({tooltipOpen:!0})}),Object(i.a)(this,"handleTooltipClose",()=>{this.setState({tooltipOpen:!1})}),Object(i.a)(this,"handleClick",()=>{const{data:e,onAdd:t}=this.props;e.loading||e.inactive||t(e)}),Object(i.a)(this,"handleRemove",()=>{const{data:e,onRemove:t}=this.props;t(e)}),Object(i.a)(this,"handleSync",()=>{const{data:e,onSync:t}=this.props;t(e)})}renderProInfo(){return s.a.createElement("div",{className:"brz-ed-tooltip-content__pro"},s.a.createElement("p",{className:"brz-p brz-ed-tooltip-content__pro-title"},Object(ie.a)("You’ll need Brizy PRO to use this block")),s.a.createElement("p",{className:"brz-p brz-ed-tooltip-content__pro-body"},s.a.createElement("a",{className:"brz-a",href:lo.upgradeToPro,target:"_blank",rel:"noopener noreferrer"},s.a.createElement(_.b,{icon:"nc-lock"}),Object(ie.a)("Get Brizy PRO"))))}renderBlank(){var e,t;const{data:{pro:o}}=this.props,n=!io&&o,a=null!==(e=null===(t=this.props.data)||void 0===t?void 0:t.blankTitle)&&void 0!==e?e:Object(ie.a)("Create your own"),r=g()("brz-ed-popup-two-block-item","brz-ed-popup-two-block__blank","brz-ed-popup-two-block__blank-first",{"brz-ed-popup-two-block__blank--pro":n});return n?s.a.createElement(ye.b,{overlayClassName:"brz-ed-tooltip--delay-1",size:"small",offset:"5",openOnClick:!1,nodeRef:this.iconRef,overlay:this.renderProInfo(),onOpen:this.handleTooltipOpen,onClose:this.handleTooltipClose},s.a.createElement("div",{className:r},s.a.createElement("p",{ref:this.iconRef,className:"brz-p brz-d-xs-flex brz-align-items-xs-center"},s.a.createElement(_.b,{icon:"nc-lock"})," ",a),s.a.createElement("p",{className:"brz-p brz-ed-badge brz-ed-badge--pro"},"pro"))):s.a.createElement("div",{onClick:this.handleClick,className:r},s.a.createElement("div",{className:"brz-ed-container-trigger brz-ed-container-trigger--small"}),s.a.createElement("p",{className:"brz-p"},a))}renderPro(){const{animation:e,isLayout:t,data:{thumbnailSrc:o,thumbnailWidth:n,thumbnailHeight:a},onImageLoaded:r}=this.props,{width:i,height:l}=Object(Qt.d)(n,a,292),c=g()("brz-figure brz-ed-popup-two-block-item",this.state.tooltipOpen&&"brz-ed-popup-two-block-item--active"),d=s.a.createElement(s.a.Fragment,null,s.a.createElement(oo,{observerRootSelector:".brz-ed-popup-two-blocks-body",style:e?ro:{},src:o,width:i,height:l,onImageLoaded:r}),s.a.createElement("p",{className:"brz-p brz-ed-badge brz-ed-badge--pro"},"pro"));return t?s.a.createElement("figure",{className:c,onClick:this.handleClick},d):s.a.createElement(ye.b,{overlayClassName:"brz-ed-tooltip--delay-1",size:"small",offset:"5",openOnClick:!1,nodeRef:this.iconRef,overlay:this.renderProInfo(),onOpen:this.handleTooltipOpen,onClose:this.handleTooltipClose},s.a.createElement("figure",{className:c},d,s.a.createElement("span",{ref:this.iconRef,className:"brz-ed-popup-two-block__span-lock"},s.a.createElement(_.b,{icon:"nc-lock"}))))}renderFree(){const{animation:e,data:{thumbnailSrc:t,thumbnailWidth:o,thumbnailHeight:n},onImageLoaded:a}=this.props,{width:r,height:i}=Object(Qt.d)(o,n,292);return s.a.createElement("figure",{className:"brz-figure brz-ed-popup-two-block-item",onClick:this.handleClick},s.a.createElement(oo,{observerRootSelector:".brz-ed-popup-two-blocks-body",style:e?ro:{},src:t,width:r,height:i,onImageLoaded:a}))}renderRemoveIcon(){return s.a.createElement("div",{className:"brz-ed-badge__delete brz-ed-popup-two-block-remove",onClick:this.handleRemove},s.a.createElement(_.b,{icon:"nc-trash"}))}renderSyncIcon(){const{isAuthorized:e,data:{synchronizable:t,synchronized:o}}=this.props;if(t&&e){const e=g()("brz-ed-popup-two-block-sync",{"brz-ed-popup-two-block-sync--uploaded":o});return s.a.createElement("div",{className:e,onClick:this.handleSync},s.a.createElement(_.b,{icon:o?"nc-check-circle-on":"nc-reverse-glyph"}))}}renderLoading(){return s.a.createElement("div",{className:"brz-ed-popup-two-block--loading"},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))}render(){const{isLayout:e,showSync:t,data:{blank:o,showRemoveIcon:n,pro:a,loading:r,inactive:i,renderWrapper:l}}=this.props,c=!io&&a,d=o&&"blank"===o,u=g()("brz-ed-popup-two-block",ao.g&&"brz-ed-popup-two-block-stories",c&&"brz-ed-popup-two-block--pro",e&&"brz-ed-popup-two-block--layout",i&&"inactive");let p;return d?p=this.renderBlank():(p=c?this.renderPro():this.renderFree(),l&&(p=l(p))),s.a.createElement("div",{className:u},p,n&&this.renderRemoveIcon(),r&&this.renderLoading(),t&&this.renderSyncIcon())}}Object(i.a)(so,"defaultProps",{showRemoveIcon:!1,data:{},animation:!1,isLayout:!1,isAuthorized:!1,showSync:!1,onAdd:v.default.noop,onRemove:v.default.noop,onImageLoaded:v.default.noop,onSync:v.default.noop}),Object(i.a)(so,"propTypes",{showRemoveIcon:Zt.a.bool,blockData:Zt.a.object,animation:Zt.a.bool,isLayout:Zt.a.bool,isAuthorized:Zt.a.bool,showSync:Zt.a.bool,onAdd:Zt.a.func,onRemove:Zt.a.func,onImageLoaded:Zt.a.func,onSync:Zt.a.func});class co extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{thumbnailLoaded:!1}),Object(i.a)(this,"handleLoaded",()=>{this.setState({thumbnailLoaded:!0})})}render(){const e=this.props,{data:{name:t,pages:o,color:n}}=e,a=Object(C.a)(e,["data"]),{thumbnailLoaded:r}=this.state,i=g()("brz-ed-popup-two-block-info",ao.g&&"brz-ed-popup-two-block-info-stories");return s.a.createElement("div",{className:i,style:r?ro:{}},s.a.createElement(so,Object(x.a)({},a,{data:this.props.data,isLayout:!0,onImageLoaded:this.handleLoaded})),r&&o.length>1&&s.a.createElement("span",{className:"brz-ed-popup-two-block-info-color",style:{backgroundColor:n}},s.a.createElement("span",{className:"brz-ed-popup-two-block-info-color-opacity",style:{backgroundColor:n}})),s.a.createElement("div",{className:"brz-ed-popup-two-block-info-downline"},s.a.createElement("div",{className:"brz-ed-popup-two-block-info-title"},t),s.a.createElement("div",{className:"brz-ed-popup-two-block-info-title"},o.length," ",o.length>1?ao.g?Object(ie.a)("stories"):Object(ie.a)("layouts"):ao.g?Object(ie.a)("story"):Object(ie.a)("layout"))))}}const uo=e=>({isAuthorized:"connected"===Object(no.a)(e)}),po=Object(Jt.b)(uo)(co);var bo=Object(Jt.b)(uo)(so);class mo extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{currentColumns:this.props.columns}),Object(i.a)(this,"handleResize",()=>{const e=window.innerWidth,{responsive:t,columns:o}=this.props;if(t&&t.length){const n=t.reduce((t,o)=>o.breakpoint>e&&(void 0===t.breakpoint||t.breakpoint>o.breakpoint)?o:t,{});this.setState({currentColumns:n.settings&&n.settings.columns||o})}})}componentDidMount(){this.handleResize(),window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}render(){const{data:e,showSync:t,onThumbnailAdd:o,onThumbnailRemove:n,onThumbnailSync:a,ThumbnailComponent:r}=this.props,{currentColumns:i}=this.state;let l=[];for(let e=0;e<i;e++)l.push([]);const c=g()("brz-ed-popup-two-blocks__grid__column",ao.g&&"brz-ed-popup-two-blocks__grid__column-stories"),d=e.reduce((e,l,c)=>{const d=s.a.createElement(r,{key:l.uid||c,animation:!0,showSync:t,data:l,onAdd:o,onRemove:n,onSync:a});return e[c%i].push(d),e},l).map((e,t)=>s.a.createElement("div",{key:t,className:c,style:{width:100/i+"%",flexBasis:100/i+"%"}},e));return s.a.createElement("div",{className:"brz-ed-popup-two-blocks__grid"},d)}}function ho(e){const t=f.a.get("urls").templateThumbnails;return t?`${t}/${e.id}.jpg`:Object(ue.a)(`thumbs/${e.id}.jpg`)}Object(i.a)(mo,"defaultProps",{columns:ao.g?5:4,showSync:!1,responsive:[{breakpoint:1460,settings:{columns:ao.g?4:3}},{breakpoint:1200,settings:{columns:3}}],ThumbnailComponent:bo});var go=o(19);class vo extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{imageFetched:!1,showSpinner:!1}),Object(i.a)(this,"mounted",!1)}componentDidMount(){const{src:e,spinnerDelay:t}=this.props;this.mounted=!0,Object(Qt.e)(e).then(()=>{this.setState({imageFetched:!0,showSpinner:!1})}),setTimeout(()=>{this.mounted&&!this.state.imageFetched&&this.setState({showSpinner:!0})},t)}render(){const{imageFetched:e,showSpinner:t}=this.state,{className:o,src:n,style:a}=this.props,r=g()("brz-img",o);return s.a.createElement(l.Fragment,null,e&&s.a.createElement("img",{className:r,src:n,style:a}),t&&s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))}}Object(i.a)(vo,"defaultProps",{className:"",src:"",style:{},spinnerDelay:250});var fo=o(87),yo=o(33),Oo=o(51);function So(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Co(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?So(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):So(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const xo=f.a.get("pro"),jo=f.a.get("urls"),Bo={animationName:"fadeIn",animationFillMode:"both",animationDelay:"200ms",animationDuration:"200ms"};class Po extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{active:this.props.data.pages[0].id,thumbnailHeight:0,transition:0,previewPointer:"none",importStyles:!1}),Object(i.a)(this,"thumbnailDetails",s.a.createRef()),Object(i.a)(this,"getType",()=>ao.g?"stories":"templates"),Object(i.a)(this,"handleUpdateThumbnail",()=>{this.setState({thumbnailHeight:this.thumbnailDetails.current.clientHeight})}),Object(i.a)(this,"handleBack",()=>{this.props.onBack()}),Object(i.a)(this,"handleThumbnailAdd",async()=>{const{data:{name:e},projectFonts:t,onAddBlocks:o,onClose:n}=this.props,{active:a,importStyles:r}=this.state,i=this.getType(),l=await fetch(Object(Oo.h)(i,a)),{blocks:s}=await l.json();let c,d=Object(fo.b)({models:s});if(!this.hasStyleInProject()){const t=await fetch(Object(ue.a)(i+"/meta.json"));c=(await t.json())[i].find(({name:t})=>t===e).styles;const o=Object(D.b)(c,({fontStyles:e})=>e),n=Object(fo.c)(o);d.push(...n)}o({blocks:s,styles:c,fonts:await Object(yo.u)(Object(fo.a)(d,t)),currentStyleId:r&&c&&c[0].id}),n()})}hasStyleInProject(){const{projectStyles:e,data:{styles:t}}=this.props;return e.find(({id:e})=>t.some(({id:t})=>t===e))}componentDidMount(){this.handleUpdateThumbnail(),window.addEventListener("resize",this.handleUpdateThumbnail),setTimeout(()=>{this.setState({previewPointer:"auto"})},200)}componentWillUnmount(){window.removeEventListener("resize",this.handleUpdateThumbnail)}render(){const{HeaderSlotLeft:e,data:{name:t,pages:o,styles:n,pro:a}}=this.props,{active:r,thumbnailHeight:i,previewPointer:c,importStyles:d}=this.state,u=this.hasStyleInProject(),p=o.find(({id:e})=>e===r),b=ho(p),m=o.map((e,t)=>{const o=g()("brz-ed-popup-two-details-page-select",ao.g&&"brz-ed-popup-two-details-page-select-stories",{"brz-ed-popup-two-details-page-select-active-block":e.id===r}),n=ho(e);return s.a.createElement("div",{key:t,className:o,onClick:()=>{this.setState({active:e.id})}},s.a.createElement(vo,{src:n,style:Bo}),s.a.createElement("div",{className:"brz-ed-popup-two-details-page-select-active"},e.title))}),h=p.thumbnailHeight/500,v=!xo&&a,f=g()("brz-ed-popup-two-details-preview",ao.g&&"brz-ed-popup-two-details-preview-stories"),y=g()("brz-ed-popup-two-details-right",ao.g&&"brz-ed-popup-two-details-right-stories"),O=g()("brz-ed-popup-two-body__content brz-ed-popup-two-blocks__grid brz-ed-popup-two-details",ao.g&&"brz-ed-popup-two-details-stories");return s.a.createElement(l.Fragment,null,s.a.createElement(e,null,s.a.createElement("div",{className:"brz-ed-popup-two-header__search brz-ed-popup-two-header__search--hidden"})),s.a.createElement("div",{className:O},s.a.createElement("div",{className:"brz-ed-popup-two-details-left"},s.a.createElement("div",{className:"brz-ed-popup-two-details-back",onClick:this.handleBack},s.a.createElement(_.b,{icon:"nc-arrow-left",className:"brz-ed-popup-two-details-back-icon"}),ao.g?Object(ie.a)("Back to Stories"):Object(ie.a)("Back to Layouts")),s.a.createElement("div",{ref:this.thumbnailDetails,className:f,style:{"--thumbnailHeight":i+"px","--previewPointer":""+c}},ao.g?s.a.createElement(vo,{className:"brz-ed-popup-two-details-preview-img brz-ed-popup-two-details-preview-img-stories",src:b}):s.a.createElement(vo,{className:"brz-ed-popup-two-details-preview-img",src:b,style:Co(Co({},Bo),{},{"--transitionPreview":`transform ${h}s linear`})}))),s.a.createElement("div",{className:y},s.a.createElement("div",{className:"brz-ed-popup-two-details-title"},s.a.createElement("h2",{className:"brz-ed-popup-two-details-title-name"},t),s.a.createElement("div",{className:"brz-ed-popup-two-details-title-count"},o.length," ",o.length>1?ao.g?Object(ie.a)("stories"):Object(ie.a)("layouts"):ao.g?Object(ie.a)("story"):Object(ie.a)("layout"))),s.a.createElement("div",{className:"brz-ed-popup-two-details-page"},s.a.createElement(P.a,null,m))),s.a.createElement("div",{className:"brz-ed-popup-two-details-footer"},s.a.createElement("div",{className:"brz-ed-popup-two-details-footer-grid"},s.a.createElement("div",{className:"brz-ed-popup-two-details-footer-render"},s.a.createElement("div",{className:"brz-ed-popup-two-details-footer-radio"},v?s.a.createElement("div",{className:"brz-ed-popup-two-details-footer-radio-button brz-ed-popup-two-details-footer-radio-button--pro"},ao.g?Object(ie.a)("Upgrade to PRO to use this story"):Object(ie.a)("Upgrade to PRO to use this layout")):n.length>0&&!u&&s.a.createElement("div",{className:"brz-ed-popup-two-details-footer-radio-button",onClick:()=>{this.setState({importStyles:!d})}},s.a.createElement(_.b,{icon:d?"nc-check":"nc-uncheck",className:"brz-ed-popup-two-details-footer-radio-icon"}),Object(ie.a)("Replace global styling"))),v?s.a.createElement("a",{className:"brz-ed-btn brz-ed-btn-width-2 brz-ed-btn-sm brz-ed-btn-icon brz-ed-btn-icon--left brz-ed-btn-rounded brz-ed-btn-pro",href:jo.upgradeToPro,rel:"noopener noreferrer",target:"_blank"},s.a.createElement(_.b,{icon:"nc-lock"}),Object(ie.a)("Get Brizy PRO")):s.a.createElement("div",{className:"brz-ed-popup-two-details-footer-render-button",onClick:this.handleThumbnailAdd},ao.g?Object(ie.a)("Import This Story"):Object(ie.a)("Import This Layout")))))))}}Object(i.a)(Po,"defaultProps",{data:{pages:[]},onClose:v.default.noop,onAddBlocks:v.default.noop,onBack:v.default.noop});var wo=Object(Jt.b)(e=>({projectStyles:Object(go.E)(e),projectFonts:Object(no.c)(e)}),e=>({dispatch:e}))(Po);function To(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function zo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?To(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):To(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Eo extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{data:null,thumbnailData:null}),Object(i.a)(this,"getType",()=>ao.g?"stories":"templates"),Object(i.a)(this,"handleThumbnailAdd",e=>{this.setState({thumbnailData:e})}),Object(i.a)(this,"handleBlankThumbnailAdd",async e=>{const{onAddBlocks:t,onClose:o}=this.props;t({blocks:[zo(zo({},await this.getBlockResolve(e.id)),{},{blockId:e.id})],fonts:[]}),o()}),Object(i.a)(this,"renderThumbnail",e=>{let{data:t}=e,o=Object(C.a)(e,["data"]);return ao.g&&t.blank?s.a.createElement(bo,Object(x.a)({},o,{data:t.pages[0],onAdd:this.handleBlankThumbnailAdd})):s.a.createElement(po,Object(x.a)({data:t},o))})}async componentDidMount(){const e=await this.getData();this.setState({data:e})}async getData(){const e=this.getType(),t=Object(ue.a)(e+"/meta.json"),o=await fetch(t);return await o.json()}async getBlockResolve(e){const t=this.getType(),o=Object(Oo.h)(t,e),n=await fetch(o);return await n.json()}renderLoading(){const{showSidebar:e,showSearch:t,HeaderSlotLeft:o}=this.props;return s.a.createElement(l.Fragment,null,t&&s.a.createElement(o,null,s.a.createElement(Yt,{className:"brz-ed-popup-two-header__search"})),e&&s.a.createElement("div",{className:"brz-ed-popup-two-body__sidebar"},s.a.createElement("div",{className:"brz-ed-popup-two-sidebar-body"})),s.a.createElement("div",{className:"brz-ed-popup-two-body__content brz-ed-popup-two-body__content--loading"},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"})))}renderList(){const{data:e}=this.state,{showSidebar:t,showSearch:o,HeaderSlotLeft:n}=this.props,a=e[this.getType()],r=a.map(e=>zo(zo(zo({},e),e.pages[0]),{},{thumbnailSrc:ho(e.pages[0])})),i=a,c={};for(let e=0;e<i.length;e++){const t=i[e].cat;for(let e=0;e<t.length;e++){const o=t[e];c["*"]=i.length,void 0===c[o]?c[o]=1:c[o]++}}const d=[{id:"*",title:Object(ie.a)("All Categories")}].concat(e.categories).filter(({hidden:e})=>!0!==e);return s.a.createElement(Vt,{data:r,filterFn:(e,t)=>{const o="*"===t.category||e.cat.includes(Number(t.category)),n=""===t.search||new RegExp(t.search.replace(/[.*+?^${}()|[\]\\]/g,""),"i").test(e.keywords);return o&&n},defaultFilter:{category:"*",search:""}},(e,a,r)=>s.a.createElement(l.Fragment,null,o&&s.a.createElement(n,null,s.a.createElement(Yt,{className:"brz-ed-popup-two-header__search",value:a.search,onChange:e=>r({search:e})})),t&&s.a.createElement(qt,null,s.a.createElement($t,{title:"CATEGORIES"},s.a.createElement(Gt,{lists:d,value:a.category,counters:c,onChange:e=>r({category:e})}))),s.a.createElement("div",{className:"brz-ed-popup-two-body__content brz-ed-popup-two-blocks-body-layouts"},s.a.createElement(P.a,null,e.length>0?s.a.createElement(mo,{data:e,ThumbnailComponent:this.renderThumbnail,onThumbnailAdd:this.handleThumbnailAdd,onThumbnailRemove:this.handleThumbnailRemove}):s.a.createElement("div",{className:"brz-ed-popup-two-blocks__grid brz-ed-popup-two-blocks__grid-clear"},s.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},Object(ie.a)("Nothing here, please refine your search.")))))))}renderDetails(){return s.a.createElement(wo,Object(x.a)({},this.props,{data:this.state.thumbnailData,onBack:()=>{this.setState({thumbnailData:null})}}))}render(){const{data:e,thumbnailData:t}=this.state;return e?t?this.renderDetails():this.renderList():this.renderLoading()}}Object(i.a)(Eo,"defaultProps",{showSidebar:!0,showSearch:!0,onAddBlocks:v.default.noop,onClose:v.default.noop,onNext:v.default.noop});var ko=o(26);let Ho={type:0,category:"*",search:""};class _o extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"filterData",(e,t)=>{const o=t.type===e.type,n="*"===t.category||e.cat.includes(Number(t.category)),a=""===t.search||new RegExp(t.search.replace(/[.*+?^${}()|[\]\\]/g,""),"i").test(e.keywords);return o&&n&&a})}getTypesCounters(){const{blocks:e,types:t}=this.props,o=t.reduce((e,{id:t})=>Object.assign(e,{[t]:0}),{});return e.forEach(({type:e})=>{o[e]++}),o}getCategoriesCounter(e){let{blocks:t,types:o,showType:n}=this.props,a=t.length;return n&&o.length&&(t=t.filter(t=>t.type===e),a=t.length),t.reduce((e,{cat:t})=>(t.forEach(t=>{e[t]?Object.assign(e,{[t]:++e[t]}):Object.assign(e,{[t]:1})}),e),{"*":a})}renderLoading(){const{showSidebar:e,showSearch:t,HeaderSlotLeft:o}=this.props;return s.a.createElement(s.a.Fragment,null,t&&s.a.createElement(o,null,s.a.createElement(Yt,{className:"brz-ed-popup-two-header__search"})),e&&s.a.createElement("div",{className:"brz-ed-popup-two-body__sidebar"},s.a.createElement("div",{className:"brz-ed-popup-two-sidebar-body"})),s.a.createElement("div",{className:"brz-ed-popup-two-body__content brz-ed-popup-two-body__content--loading"},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"})))}render(){const{loading:e,kits:t,blocks:o,types:n,categories:a,selectedKit:r,showSearch:i,showSidebar:l,HeaderSlotLeft:c,onChangeKit:d,onChange:u}=this.props;if(e)return this.renderLoading();const p=t.filter(({id:e})=>e!==r).length>0,b=n.length>0,m=a.length>0;return s.a.createElement(Vt,{data:o,filterFn:this.filterData,defaultFilter:Ho},(e,o,h)=>(Ho.type=o.type,s.a.createElement(s.a.Fragment,null,i&&s.a.createElement(c,null,s.a.createElement(Yt,{className:"brz-ed-popup-two-header__search",value:o.search,onChange:e=>h({search:e})})),l&&s.a.createElement(qt,null,p&&s.a.createElement($t,{title:"BLOCKS"},s.a.createElement(O.a,{defaultValue:r,className:"brz-control__select--dark brz-control__select--full-width",maxItems:"6",itemHeight:"30",onChange:d},t.map(({id:e,name:t},o)=>s.a.createElement(S.a,{key:o,value:e},t)))),b&&s.a.createElement($t,{title:"STYLES"},s.a.createElement(Gt,{lists:n,counters:this.getTypesCounters(),value:o.type,onChange:e=>h({type:e})})),m&&s.a.createElement($t,{title:"CATEGORIES"},s.a.createElement(Gt,{lists:a,counters:this.getCategoriesCounter(o.type),value:o.category,onChange:e=>h({category:e})}))),s.a.createElement("div",{className:"brz-ed-popup-two-body__content"},s.a.createElement(P.a,null,e.length>0?s.a.createElement(mo,{data:e,onThumbnailAdd:u}):s.a.createElement("div",{className:"brz-ed-popup-two-blocks__grid brz-ed-popup-two-blocks__grid-clear"},s.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},Object(ie.a)("Nothing here, please refine your search."))))))))}}Object(i.a)(_o,"defaultProps",{showSidebar:!0,showSearch:!0,loading:!1,kits:[],styles:[],types:[],categories:[],blocks:[],HeaderSlotLeft:v.default.noop,onAddBlocks:v.default.noop,onClose:v.default.noop,onChange:v.default.noop,onChangeKit:v.default.noop});var Fo=_o;function Ro(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Mo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ro(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Lo extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{kits:[],loading:!0,styles:[],types:[],categories:[],blocks:[]}),Object(i.a)(this,"mounted",!1),Object(i.a)(this,"handleThumbnailAdd",async e=>{const{projectFonts:t,onAddBlocks:o,onClose:n}=this.props,a=Mo(Mo({},await this.getBlockResolve(e.id)),{},{blockId:e.id}),r=Object(fo.a)(Object(fo.b)({models:a}),t);o({block:a,fonts:await Object(yo.u)(r)}),n()}),Object(i.a)(this,"handleImportKit",async e=>{const{selectedKit:t,projectFonts:o,projectStyles:n,dispatch:a}=this.props,{kits:r}=this.state;if(t===e)return;const i=this.getKitData(r,e),{styles:l}=i;if(this.setState(i),l.some(({id:e})=>!n.some(({id:t})=>t===e))){const t=l.reduce((e,{fontStyles:t})=>e.concat(Object(fo.c)(t)),[]),n=await Object(yo.u)(Object(fo.a)(t,o));a(Object(ko.G)({selectedKit:e,styles:l,fonts:n}))}else a(Object(ko.I)(e))})}async getMeta(){const{type:e}=this.props;if("popup"===e){const e=await fetch(Object(ue.a)("popups/meta.json"));return await e.json()}{const e=await fetch(Object(ue.a)("kits/meta.json"));return await e.json()}}async getBlockResolve(e){const{type:t}=this.props;if("popup"===t){const t=await fetch(Object(Oo.h)("popups",e));return await t.json()}{const t=await fetch(Object(Oo.h)("kits",e));return await t.json()}}getKitData(e,t=this.props.selectedKit){const o=e.find(({id:e})=>e===t),{categories:n,blocks:a,styles:r,types:i}=o,l=[{id:"*",title:Object(ie.a)("All Categories")},...n],s=a.map(e=>Mo(Mo({},e),{},{thumbnailSrc:Object(Oo.a)(e)}));return{kits:e,styles:r,types:i,categories:l.filter(({hidden:e})=>!0!==e),blocks:s}}getPopupData({blocks:e,categories:t=[],types:o=[]}){const n=[{id:"*",title:Object(ie.a)("All Categories")},...t];return{types:o,blocks:e.map(e=>Mo(Mo({},e),{},{pro:(!ao.a||"blank"!==e.blank)&&e.pro,thumbnailSrc:Object(Oo.a)(e)})),categories:n.filter(({hidden:e})=>!0!==e)}}async componentDidMount(){this.mounted=!0;const e=await this.getMeta();if(this.mounted){const t="normal"===this.props.type?this.getKitData(e):this.getPopupData(e);this.setState(Mo(Mo({},t),{},{loading:!1}))}}componentWillUnmount(){this.mounted=!1}render(){const{kits:e,types:t,blocks:o,categories:n,loading:a}=this.state,{showSearch:r,showSidebar:i,selectedKit:l,HeaderSlotLeft:c}=this.props;return s.a.createElement(Fo,{loading:a,selectedKit:l,kits:e,blocks:o,categories:n,types:t,showSearch:r,showSidebar:i,HeaderSlotLeft:c,onChangeKit:this.handleImportKit,onChange:this.handleThumbnailAdd})}}Object(i.a)(Lo,"defaultProps",{showSidebar:!0,showSearch:!0,showType:!0,showCategories:!0,type:"normal",HeaderSlotLeft:v.default.noop(),onAddBlocks:v.default.noop,onClose:v.default.noop});var Wo=Object(Jt.b)(e=>({selectedKit:Object(go.z)(e).data.selectedKit,projectFonts:Object(no.c)(e),projectStyles:Object(go.E)(e)}),e=>({dispatch:e}))(Lo),Io=o(27);class No extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{search:""}),Object(i.a)(this,"handleThumbnailAdd",async e=>{const{globalBlocks:t,projectFonts:o,onAddBlocks:n,onClose:a}=this.props,{resolve:r}=e,i=Object(fo.a)(Object(fo.b)({models:r,globalBlocks:t}),o);n({block:r,fonts:await Object(yo.u)(i)}),a()}),Object(i.a)(this,"handleThumbnailRemove",e=>{const{dispatch:t}=this.props,{id:o}=e;t(Object(Io.h)({id:o}))})}getBlocks(){const{type:e,globalBlocks:t}=this.props;return Object.values(t).filter(({data:t,meta:o={}})=>!t.deleted&&o.type===e)}renderThumbnails(e){const{HeaderSlotLeft:t,showSearch:o}=this.props;return s.a.createElement(l.Fragment,null,o&&s.a.createElement(t,null,s.a.createElement(Yt,{className:"brz-ed-popup-two-header__search",value:this.state.search,onChange:e=>this.setState({search:e})})),s.a.createElement("div",{className:"brz-ed-popup-two-body__content"},s.a.createElement(P.a,null,s.a.createElement(mo,{data:e,onThumbnailAdd:this.handleThumbnailAdd,onThumbnailRemove:this.handleThumbnailRemove}))))}renderEmpty(){const{HeaderSlotLeft:e,showSearch:t,type:o}=this.props;let n,a=Object(ie.a)("Nothing here yet, make a global block first.");switch(o){case"popup":n=ao.c?"editor/img/global_condition_popups_toolbar.gif":"editor/img/global_popups_toolbar.gif",a=Object(ie.a)("Nothing here yet, make a global popup first.");break;default:n="editor/img/global_toolbar.gif"}return s.a.createElement(l.Fragment,null,t&&s.a.createElement(e,null,s.a.createElement(Yt,{className:"brz-ed-popup-two-header__search",value:this.state.search,onChange:e=>this.setState({search:e})})),s.a.createElement("div",{className:"brz-ed-popup-two-body__content"},s.a.createElement("div",{className:"brz-ed-popup-two-blocks__grid brz-ed-popup-two-blocks__grid-clear"},""!==this.state.search?s.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},Object(ie.a)("Nothing here, please refine your search.")):s.a.createElement(l.Fragment,null,s.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},a),s.a.createElement("img",{src:`${Object(ue.a)(n)}?${Math.random()}`,className:"brz-ed-popup-two-blocks__grid-clear-image-global",alt:"Global"})))))}renderProInfo(){return s.a.createElement("div",{className:"brz-ed-tooltip-content__pro"},s.a.createElement("p",{className:"brz-p brz-ed-tooltip-content__pro-title"},Object(ie.a)("You can't add it again")))}renderThumbnailTooltip(e){return s.a.createElement(ye.b,{className:"brz-ed-global-tooltip",overlayClassName:"brz-ed-tooltip--delay-1",size:"small",offset:"5",openOnClick:!1,overlay:this.renderProInfo()},e)}render(){const{globalBlocks:e,globalBlocksInPage:t}=this.props,o=this.getBlocks();if(0===o.length)return this.renderEmpty();const n=o.map(o=>{const{url:n,width:a,height:r}=Object(Oo.b)(o.data),{_id:i}=o.data.value,{data:l}=e[i],s=!ao.c&&"SectionPopup"!==l.type&&"SectionPopup2"!==l.type&&t[i];return{id:i,thumbnailSrc:n,thumbnailWidth:a,thumbnailHeight:r,showRemoveIcon:!0,renderWrapper:e=>s?this.renderThumbnailTooltip(e):e,inactive:s,resolve:{type:"GlobalBlock",value:{_id:i}}}},[]);return this.renderThumbnails(n)}}Object(i.a)(No,"defaultProps",{type:"normal",showSearch:!0,onAddBlocks:v.default.noop,onClose:v.default.noop,HeaderSlotLeft:v.default.noop}),Object(i.a)(No,"propTypes",{type:Zt.a.oneOf(["normal","popup"]),showSearch:Zt.a.bool,showSidebar:Zt.a.bool,onAddBlocks:Zt.a.func,onClose:Zt.a.func,HeaderSlotLeft:Zt.a.func});var Ao=Object(Jt.b)(e=>({globalBlocks:Object(go.l)(e),globalBlocksInPage:Object(go.m)(e),projectFonts:Object(no.c)(e)}),e=>({dispatch:e}))(No),Do=o(79);const Vo=()=>{const{hash:e,url:t,cloudSync:o}=f.a.get("wp").api,n=f.a.get("editorVersion"),a=Ee(t,{hash:e,version:n,action:o});return new Promise((e,t)=>{Object(pe.I)(a,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(ke).then(o=>{const{status:n,data:a}=o;if(!n||n>=400)throw o;{const{synchronized:n}=a;0===n?e(o):Vo().then(e).catch(t)}}).catch(t)})},$o=()=>{const{hash:e,url:t,cloudSyncAllowed:o}=f.a.get("wp").api,n=f.a.get("editorVersion"),a=Ee(t,{hash:e,version:n,action:o});return Object(pe.I)(a,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(ke).then(e=>e)},Go=()=>{const[e,t]=Object(l.useState)(!1),[o,n]=Object(l.useState)(!1),[a,r]=Object(l.useState)(void 0);return Object(l.useEffect)(()=>{o&&(()=>{const{hash:e,url:t,cloudSignOut:o}=f.a.get("wp").api,n=f.a.get("editorVersion"),a=Ee(t,{hash:e,version:n,action:o});return Object(pe.I)(a,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(ke).then(e=>e)})().then(e=>{!e.status||e.status>=400?(r(e),Do.a.error(Object(ie.a)("Something went wrong"),{toastContainer:window.parent.document.body})):(n(!1),t(!0))}).catch(e=>{n(!1),r(e),Do.a.error(Object(ie.a)("Something went wrong"),{toastContainer:window.parent.document.body})})},[o]),Object(l.useEffect)(()=>{e&&t(!1)},[e]),{isDisconnect:e,error:a,loading:o,setDisconnect:()=>{n(!0)}}};var Uo=o(128);const Ko={updateAuthorization:Io.v};var qo=Object(Jt.b)(e=>({isAuthorized:"connected"===Object(no.a)(e),syncAllowed:Object(no.e)(e)}),Ko)(e=>{const{isAuthorized:t,syncAllowed:o,onSuccessSync:n,updateAuthorization:a}=e,{isSync:r,setSync:i,loading:c}=(()=>{const[e,t]=Object(l.useState)(!1),[o,n]=Object(l.useState)(!1),[a,r]=Object(l.useState)(void 0);return Object(l.useEffect)(()=>{o&&Vo().then(e=>{!e.status||e.status>=400?(r(e),Do.a.error(Object(ie.a)("Unsuccessful sync"),{toastContainer:window.parent.document.body})):(n(!1),t(!0),Do.a.success(Object(ie.a)("Done, your library was synced"),{toastContainer:window.parent.document.body}))}).catch(e=>{n(!1),r(e),Do.a.error(Object(ie.a)("Unsuccessful sync"),{toastContainer:window.parent.document.body})})},[o]),{isSync:e,error:a,loading:o,setSync:()=>{n(!0)}}})(),{isDisconnect:d,setDisconnect:u,loading:p}=Go();return Object(l.useEffect)(()=>{r&&n&&n()},[r]),Object(l.useEffect)(()=>{d&&(a("disconnect"),Object(Uo.b)("disconnect"))},[d]),s.a.createElement("div",{className:"brz-ed-popup-two__cloud"},s.a.createElement("p",{className:"brz-p"},t?Object(ie.a)("Saved Library is syncing to your Brizy Account"):Object(ie.a)("Access your Library in any WP install by connecting your Brizy Account")),s.a.createElement("div",{className:"brz-ed-popup-two__cloud-icon"},s.a.createElement("div",{className:"brz-d-inline-block brz-p-relative"},s.a.createElement(_.b,{icon:"nc-upload"}),t&&s.a.createElement("div",{className:"brz-ed-popup-two__cloud-icon--connect"},s.a.createElement(_.b,{icon:"nc-check-circle-white"})))),s.a.createElement($e,{className:"brz-ed-popup-two__cloud-button",size:4,color:t?"gray":"teal",loading:p,onClick:()=>{t?u():Sl.open({mode:"stack",prompt:"authorization",props:{}})}},t?Object(ie.a)("Disconnect"):Object(ie.a)("Connect")),t&&o&&s.a.createElement($e,{className:"brz-ed-popup-two__cloud-button-sync",size:4,color:"teal",loading:c,onClick:()=>{i()}},Object(ie.a)("Sync Now")),!o&&s.a.createElement("p",{className:"brz-p"},Object(ie.a)("Your Plugin version is incompatible with Brizy Account version, please update plugin")),s.a.createElement("div",{className:"brz-ed-popup-two__cloud-info"},s.a.createElement(_.b,{icon:"nc-alert-circle-que"}),s.a.createElement("a",{href:"#",target:"_blank",className:"brz-a"},Object(ie.a)("What’s this"),"?")))});function Yo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Xo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Yo(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Zo=Boolean(f.a.get("wp"));class Jo extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"currentType",null),Object(i.a)(this,"getDefaultFilter",v.default.memoize(e=>({type:e.length?e[0].id:"",search:""}))),Object(i.a)(this,"getTypesCounters",()=>{const{items:e,types:t}=this.props,o=t.reduce((e,{id:t})=>Xo(Xo({},e),{},{[t]:0}),{});return e.forEach(({type:e})=>{o[e]++}),o}),Object(i.a)(this,"filterData",(e,t)=>{const o=t.type===e.type,n=""===t.search||new RegExp(t.search.replace(/[.*+?^${}()|[\]\\]/g,""),"i").test(e.keywords||"");return o&&n})}getActiveType(e){return this.currentType||e[0].id}renderLoading(){return s.a.createElement("div",{className:"brz-ed-popup-two-body__content brz-ed-popup-two-body__content--loading"},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))}renderEmpty(){const{type:e,types:t,search:o}=this.props,n=this.getActiveType(t),a={width:"LAYOUT"===n?"524px":"322px"};let r="editor/img/save_toolbar.gif",i=Object(ie.a)("Nothing here yet, save a block first.");return"popup"===e&&(r="editor/img/save_popups_toolbar.gif",i=Object(ie.a)("Nothing here yet, save a popup first.")),"LAYOUT"===n&&(i=Object(ie.a)("Nothing here yet, save a layout first."),r="editor/img/save_layout.gif"),s.a.createElement("div",{className:"brz-ed-popup-two-body__content"},s.a.createElement("div",{className:"brz-ed-popup-two-blocks__grid brz-ed-popup-two-blocks__grid-clear"},""!==o?s.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},Object(ie.a)("Nothing here, please refine your search.")):s.a.createElement(s.a.Fragment,null,s.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},i),s.a.createElement("img",{key:n,style:a,src:Object(ue.a)(r),className:"brz-ed-popup-two-blocks__grid-clear-image-saved",alt:"Saved"}))))}renderItems(e){const{onChange:t,onDelete:o,onSync:n}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-two-body__content"},s.a.createElement(P.a,null,s.a.createElement(mo,{showSync:Zo,data:e,onThumbnailAdd:t,onThumbnailRemove:o,onThumbnailSync:n})))}render(){const{loading:e,items:t,types:o,showSearch:n,showSync:a,HeaderSlotLeft:r,onSuccessSync:i}=this.props;return s.a.createElement(Vt,{data:t,filterFn:this.filterData,defaultFilter:this.getDefaultFilter(o)},(t,l,c)=>s.a.createElement(s.a.Fragment,null,n&&s.a.createElement(r,null,s.a.createElement(Yt,{className:"brz-ed-popup-two-header__search",value:l.search,onChange:e=>{c({search:e})}})),s.a.createElement(qt,null,s.a.createElement($t,{title:"LIBRARY"},s.a.createElement(Gt,{lists:o,counters:this.getTypesCounters(),value:l.type,onChange:e=>{c({type:e}),this.currentType=e}})),a&&s.a.createElement($t,{separator:!0},s.a.createElement(qo,{onSuccessSync:i}))),e?this.renderLoading():0===t.length?this.renderEmpty():this.renderItems(t)))}}Object(i.a)(Jo,"defaultProps",{type:"normal",showSearch:!0,showSync:!0,search:"",loading:!1,items:[],types:[],HeaderSlotLeft:l.Component,onChange:v.default.noop,onDelete:v.default.noop,onSync:v.default.noop,onSuccessSync:v.default.noop});var Qo=Jo,en=o(211);function tn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function on(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tn(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class nn extends l.Component{constructor(...e){var t;super(...e),Object(i.a)(this,"state",{search:"",blocks:[],loading:!0,types:(t=this.props.type,"normal"===t?[{id:"BLOCK",title:Object(ie.a)("Blocks"),icon:"nc-blocks"},{id:"LAYOUT",title:Object(ie.a)("Layouts"),icon:"nc-pages"}]:[{id:"POPUP",title:Object(ie.a)("Popups"),icon:"nc-blocks"}])}),Object(i.a)(this,"updateBlocks",async()=>{const e="normal"===this.props.type?await this.getBlocks():await this.getPopups();this.setState({blocks:e})}),Object(i.a)(this,"handleAddItems",({type:e,uid:t})=>{switch(this.handleLoadingBlock(t,!0),e){case"BLOCK":this.handleAddBlock(t).catch(()=>{var e;this.handleLoadingBlock(t,!1);const{getParentNode:o}=this.props,n=null===(e=(o&&o()||document).ownerDocument)||void 0===e?void 0:e.body;Do.a.error(Object(ie.a)("Unable to insert block. Please try again or contact support"),{toastContainer:n})});break;case"POPUP":this.handleAddPopup(t).catch(()=>{var e;this.handleLoadingBlock(t,!1);const{getParentNode:o}=this.props,n=null===(e=(o&&o()||document).ownerDocument)||void 0===e?void 0:e.body;Do.a.error(Object(ie.a)("Unable to insert popup. Please try again or contact support"),{toastContainer:n})});break;case"LAYOUT":this.handleAddLayout(t).catch(()=>{var e;this.handleLoadingBlock(t,!1);const{getParentNode:o}=this.props,n=null===(e=(o&&o()||document).ownerDocument)||void 0===e?void 0:e.body;Do.a.error(Object(ie.a)("Unable to insert layout. Please try again or contact support"),{toastContainer:n})})}}),Object(i.a)(this,"handleDeleteItem",({type:e,uid:t})=>{switch(e){case"BLOCK":case"POPUP":Object(pe.i)(t);break;case"LAYOUT":Object(pe.j)(t)}this.setState(({blocks:e})=>({blocks:e.filter(e=>e.uid!==t)}))})}async componentDidMount(){const e="normal"===this.props.type?await this.getBlocks():await this.getPopups();this.setState({blocks:e,loading:!1})}async componentDidUpdate(e){e.isAuthorized!==this.props.isAuthorized&&this.updateBlocks()}async getBlocks(){const e=(await Object(pe.z)()).filter(({meta:e})=>"normal"===(null==e?void 0:e.type)),t=await Object(pe.B)();return[...e.map(e=>on(on({},this.makeThumbsData(e)),{},{uid:e.uid,type:"BLOCK",synchronized:e.synchronized||!1,synchronizable:e.synchronizable||!1})),...t.map(e=>on(on({},this.makeThumbsData(e)),{},{uid:e.uid,type:"LAYOUT",synchronized:e.synchronized||!1,synchronizable:e.synchronizable||!1}))]}async getAssets(e){const{projectFonts:t,projectExtraFontStyles:o}=this.props,{extraFontStyles:n=[]}=e.meta||{},a=Object(fo.b)({models:e}),r=Object(fo.c)(n);return{fonts:await Object(yo.u)(Object(fo.a)([...a,...r],t)),extraFontStyles:n.filter(({id:e})=>!o.some(t=>t.id===e))}}async getPopups(){return(await Object(pe.z)()).filter(({meta:e})=>"popup"===(null==e?void 0:e.type)).map(e=>on(on({},this.makeThumbsData(e)),{},{uid:e.uid,type:"POPUP",synchronized:e.synchronized||!1,synchronizable:e.synchronizable||!1}))}async handleAddLayout(e){const{onAddBlocks:t,onClose:o}=this.props,{data:n,meta:a}=await Object(pe.A)(e),{fonts:r,extraFontStyles:i}=await this.getAssets({data:n,meta:a});t({fonts:r,extraFontStyles:i,blocks:n.items}),o()}async handleAddBlock(e){const{onAddBlocks:t,onClose:o}=this.props,{data:n,meta:a}=await Object(pe.y)(e),{fonts:r,extraFontStyles:i}=await this.getAssets({data:n,meta:a});t({fonts:r,extraFontStyles:i,blocks:[n]}),o()}async handleAddPopup(e){const{onAddBlocks:t,onClose:o}=this.props,{data:n,meta:a}=await Object(pe.y)(e),{fonts:r,extraFontStyles:i}=await this.getAssets({data:n,meta:a});t({fonts:r,extraFontStyles:i,blocks:[n]}),o()}handleLoadingBlock(e,t){this.setState(Object(c.a)(o=>{o.blocks.forEach((n,a)=>{n.uid==e&&(o.blocks[a].loading=t)})}))}makeThumbsData(e){const{url:t,width:o,height:n}=Object(Oo.b)(e);return{thumbnailSrc:t,thumbnailWidth:o,thumbnailHeight:n,showRemoveIcon:!0!==e.isCloudEntity,loading:!1}}render(){const{loading:e,blocks:t,types:o,search:n}=this.state,{type:a,HeaderSlotLeft:r,showSearch:i}=this.props,l=Object(en.a)();return s.a.createElement(Qo,{type:a,loading:e,items:t,types:o,showSearch:i,showSync:!l,search:n,HeaderSlotLeft:r,onSuccessSync:this.updateBlocks,onChange:this.handleAddItems,onDelete:this.handleDeleteItem})}}Object(i.a)(nn,"defaultProps",{type:"normal",showSearch:!0,projectFonts:{},projectExtraFontStyles:[],isAuthorized:!1,onAddBlocks:v.default.noop,onClose:v.default.noop,HeaderSlotLeft:l.Component,getParentNode:()=>null});var an=Object(Jt.b)(e=>({projectFonts:Object(no.c)(e),projectExtraFontStyles:Object(no.b)(e),isAuthorized:"connected"===Object(no.a)(e)}))(nn);const rn=[{id:"template",title:ao.g?Object(ie.a)("Stories"):Object(ie.a)("Layouts"),icon:"nc-pages",renderTab:e=>s.a.createElement(Eo,e)},{id:"blocks",title:ao.c?Object(ie.a)("Popups"):Object(ie.a)("Blocks"),icon:"nc-blocks",renderTab:e=>s.a.createElement(Wo,e)},{id:"saved",title:ao.c?Object(ie.a)("Saved Popups"):Object(ie.a)("Saved"),icon:"nc-save-section",renderTab:e=>s.a.createElement(an,e)},{id:"global",title:ao.c?Object(ie.a)("Global Popups"):Object(ie.a)("Global Blocks"),icon:"nc-global",renderTab:e=>s.a.createElement(Ao,e)}];class ln extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{currentTab:this.props.activeTab||"blocks"}),Object(i.a)(this,"wrapper",s.a.createRef()),Object(i.a)(this,"mounted",!1),Object(i.a)(this,"getWrapper",()=>this.wrapper.current),Object(i.a)(this,"handleChange",e=>{const{currentTab:t}=this.state,{onChangeBlocks:o,onChangeGlobal:n,onChangeSaved:a,onChangeTemplate:r}=this.props;switch(t){case"blocks":o&&o(e);break;case"template":r&&r(e);break;case"saved":a&&a(e);break;case"global":n&&n(e)}}),Object(i.a)(this,"handleClose",()=>{this.mounted&&this.props.onClose&&this.props.onClose()})}componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}hasSearch(e){return!!Object(It.a)(e+"Search",this.props)}hasSidebar(e){return!!Object(It.a)(e+"Sidebar",this.props)}handleTabChange(e){this.setState({currentTab:e})}renderTabs(){const{currentTab:e}=this.state,t=rn.filter(({id:e})=>{const t="show"+Object(Nt.c)(e);return!!Object(It.a)(t,this.props)}).map(t=>{const o=g()("brz-ed-popup-two-tab-item",{"brz-ed-popup-two-tab-item-active":t.id===e});return s.a.createElement("div",{key:t.id,className:o,onClick:()=>{this.handleTabChange(t.id)}},s.a.createElement("div",{className:"brz-ed-popup-two-tab-icon"},s.a.createElement(_.b,{icon:t.icon})),s.a.createElement("div",{className:"brz-ed-popup-two-tab-name"},t.title))});return s.a.createElement("div",{className:"brz-ed-popup-two-header"},s.a.createElement("div",{id:"brz-ed-popup-header-left-slot"}),s.a.createElement("div",{className:"brz-ed-popup-two-header__tabs"},t),s.a.createElement("div",{id:"brz-ed-popup-header-right-slot"}),s.a.createElement("div",{className:"brz-ed-popup-two-btn-close",onClick:this.props.onClose}))}renderContent(){const{currentTab:e}=this.state,{renderTab:t}=rn.find(({id:t})=>t===e)||rn[0];return t({HeaderSlotLeft:e=>s.a.createElement(sn,Object(x.a)({},e,{slot:"left"})),type:this.props.type,onClose:this.handleClose,showSearch:this.hasSearch(e),showSidebar:this.hasSidebar(e),onAddBlocks:this.handleChange,getParentNode:this.getWrapper})}render(){return s.a.createElement(y.a,{opened:this.props.opened,onClose:this.handleClose},s.a.createElement("div",{ref:this.wrapper,className:"brz-ed-popup-two-wrapper brz-ed-popup-two-blocks"},this.renderTabs(),s.a.createElement("div",{className:"brz-ed-popup-two-body"},this.renderContent())))}}Object(i.a)(ln,"defaultProps",{activeTab:"blocks",type:"normal",opened:!1,showTemplate:!0,showBlocks:!0,showSaved:!0,showGlobal:!0,templateSidebar:!0,blocksSidebar:!0,savedSidebar:!0,globalSidebar:!0,templateSearch:!0,blocksSearch:!0,savedSearch:!0,globalSearch:!0,onChangeBlocks:v.default.noop,onChangeTemplate:v.default.noop,onChangeSaved:v.default.noop,onChangeGlobal:v.default.noop,onClose:v.default.noop});class sn extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{isMounted:!1}),Object(i.a)(this,"headerSlotNode",null)}componentDidMount(){this.headerSlotNode=window.parent.document.querySelector(`#brz-ed-popup-header-${this.props.slot}-slot`),this.setState({isMounted:!0})}render(){return this.state.isMounted&&this.headerSlotNode&&Wt.a.createPortal(this.props.children,this.headerSlotNode)}}Object(i.a)(sn,"defaultProps",{slot:"left"});var cn=ln;const dn=({formId:e})=>{const{api:t}=f.a.get("wp"),o=f.a.get("editorVersion"),n=Ee(t.url,{formId:e,action:t.getForm,hash:t.hash,version:o});return Object(pe.I)(n,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(ke).then(e=>e)},un=({formId:e})=>{const{api:t}=f.a.get("wp"),o=f.a.get("editorVersion"),n=Ee(t.url,{action:t.createForm,hash:t.hash,version:o});return Object(pe.I)(n,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({id:e})}).then(ke).then(e=>e)},pn=({formId:e,id:t})=>{const{api:o}=f.a.get("wp"),n=f.a.get("editorVersion"),a=Ee(o.url,{action:o.getIntegration,hash:o.hash,version:n,formId:e,integration:t});return Object(pe.I)(a,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(ke).then(e=>e)},bn=({formId:e,id:t})=>{const{api:o}=f.a.get("wp"),n=f.a.get("editorVersion"),a=Ee(o.url,{action:o.createIntegration,hash:o.hash,version:n,formId:e});return Object(pe.I)(a,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({id:t})}).then(ke).then(e=>e)},mn=e=>{let{formId:t}=e,o=Object(C.a)(e,["formId"]);const{api:n}=f.a.get("wp"),a=f.a.get("editorVersion"),r=Ee(n.url,{action:n.updateIntegration,hash:n.hash,version:a,formId:t}),i=v.default.pick(o,["id","usedAccount","fieldsMap","usedList","confirmationNeeded","usedFolder","completed"]);return Object(pe.I)(r,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(i)}).then(ke).then(e=>e)};function hn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function gn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):hn(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const vn=(e,t)=>{const o=t.map(e=>e.title).join(" & ");switch(e.code){case 401:return`${Object(ie.a)("Incorrect")} ${o}`;case 400:return Object(ie.a)("Duplicate Account");default:return Object(ie.a)("Something went wrong")}};class fn extends l.Component{constructor(e,t){super(e),Object(i.a)(this,"handleChange",(e,t)=>{this.setState(o=>({apiKeyValue:gn(gn({},o.apiKeyValue),{},{[""+t]:e.trim()})}))}),Object(i.a)(this,"handleConnect",async()=>{const{app:{id:e,data:t},formId:o,onChange:n,onChangeProgress:a,onChangeNext:r}=this.context,{apiKeyValue:i}=this.state,l=Object.values(i);if(this.setState({nextLoading:!0,error:null}),l.some(e=>!e))await Object(pe.F)(),this.setState({error:Object(ie.a)("Fields are empty"),nextLoading:!1});else{const{status:l,data:s}=await(({formId:e,id:t,data:o})=>{const{api:n}=f.a.get("wp"),a=f.a.get("editorVersion"),r=Ee(n.url,{action:n.authenticateIntegration,hash:n.hash,version:a,formId:e,integration:t});return Object(pe.I)(r,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(o)}).then(ke).then(e=>e)})(gn(gn({},t),{},{formId:o,data:i}));if(200!==l)this.setState({nextLoading:!1,error:vn(s,t.accountApiKeys)});else{const o=t.accounts||[];n(e,gn(gn({},t),{},{accounts:[...o,s]})),a({showProgress:!0}),r()}}}),Object(i.a)(this,"handlePrev",async()=>{const{oldStage:e,onChangeNext:t,onChangePrev:o,onChangeProgress:n}=this.context;this.setState({error:null,prevLoading:!0}),await Object(pe.F)(),n({showProgress:!0}),"account"===e?t("account"):o()});const{data:{accountApiKeys:o}}=t.app,n=o.reduce((e,{name:t})=>gn(gn({},e),{},{[""+t]:""}),{});this.state={apiKeyValue:n,nextLoading:!1,prevLoading:!1,error:null}}static async onBeforeLoad(e,t){const{formId:o,app:{id:n,data:a},onChange:r,onChangeProgress:i,onError:l}=e;let{status:s,data:c}=await(({formId:e,id:t})=>{const{api:o}=f.a.get("wp"),n=f.a.get("editorVersion"),a=Ee(o.url,{action:o.getAccountProperties,hash:o.hash,version:n,formId:e,integration:t});return Object(pe.I)(a,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(ke).then(e=>e)})({id:n,formId:o});(!s||s>=400)&&(c=[],l("Something went wrong")),r(n,gn(gn({},a),{},{accountApiKeys:c})),a.usedAccount||a.accounts&&a.accounts.length?t.onChangeNext():i({showProgress:!1})}render(){const{app:e}=this.context,{apiKeyValue:t,error:o,nextLoading:n,prevLoading:a}=this.state,r=e.data.accountApiKeys.map(({title:e,name:o})=>({title:e,name:o,value:t[o]}));return s.a.createElement(Ye,Object(x.a)({},e,{data:r,error:o,nextLoading:n,prevLoading:a,onPrev:this.handlePrev,onNext:this.handleConnect,onChange:this.handleChange}))}}Object(i.a)(fn,"contextType",be);var yn=fn;function On(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Sn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?On(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):On(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Cn extends l.Component{constructor(e,t){super(e),Object(i.a)(this,"handleActive",e=>{this.setState({active:e})}),Object(i.a)(this,"handleConnect",async()=>{const{onChangeProgress:e,onChangePrev:t}=this.context;this.setState({connectLoading:!0}),await Object(pe.F)(),e({showProgress:!1}),t("connect")}),Object(i.a)(this,"handleDisconnect",async()=>{const{app:{id:e,data:t},formId:o,onChange:n,onDisconnectApp:a,onChangeProgress:r}=this.context;this.setState({nextLoading:!0,error:null});const{status:i,data:l}=await mn(Sn(Sn({},t),{},{formId:o,usedAccount:null}));200!==i?this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")}):(this.setState({mode:"account",nextLoading:!1}),n(e,Sn(Sn({},t),l)),r({showProgress:!0}),a(e))}),Object(i.a)(this,"handleAccountMode",async()=>{this.setState({prevLoading:!0,error:null}),await Object(pe.F)(),this.context.onChangeProgress({showProgress:!0}),this.setState({mode:"account",prevLoading:!1})}),Object(i.a)(this,"handleDisconnectMode",async()=>{this.setState({disconnectLoading:!0,error:null}),await Object(pe.F)(),this.context.onChangeProgress({showProgress:!1}),this.setState({mode:"disconnect",disconnectLoading:!1})}),Object(i.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,onChange:n,onChangeNext:a}=this.context,{active:r}=this.state;if(this.setState({nextLoading:!0,error:null}),r!==t.usedAccount){const{status:i,data:l}=await mn(Sn(Sn({},t),{},{formId:o,usedAccount:r}));200!==i?this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")}):(n(e,Sn(Sn({},t),l)),a())}else await Object(pe.F)(),a()}),Object(i.a)(this,"handlePrev",async()=>{const{onChangePrev:e}=this.context;this.setState({prevLoading:!0}),await Object(pe.F)(),e("appList")}),this.state={active:this.getActiveAccount(t.app.data),mode:"account",nextLoading:!1,prevLoading:!1,connectLoading:!1,disconnectLoading:!1}}getActiveAccount(e){const t=e.accounts.length?e.accounts[0].id:"";return e.usedAccount||t}render(){const{app:e}=this.context;return"account"===this.state.mode?s.a.createElement(Ue,Object(x.a)({},e,this.state,{onActive:this.handleActive,onConnect:this.handleConnect,onDisconnect:this.handleDisconnectMode,onConfirm:this.handleConfirm,onPrev:this.handlePrev,onNext:this.handleNext})):s.a.createElement(Ze,Object(x.a)({},e,this.state,{descriptions:`Subscribers are automatically synced to your ${e.title} list`,onPrev:this.handleAccountMode,onNext:this.handleDisconnect}))}}Object(i.a)(Cn,"contextType",be);var xn=Cn;function jn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Bn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):jn(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Pn extends l.Component{constructor(e,t){super(e),Object(i.a)(this,"handleActive",e=>{this.setState({active:e})}),Object(i.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,onChange:n,onChangeNext:a}=this.context,{active:r}=this.state;if(this.setState({nextLoading:!0,error:null}),r!==t.usedFolder){const{status:i,data:l}=await mn(Bn(Bn({},t),{},{formId:o,usedFolder:r}));200!==i?this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")}):(n(e,Bn(Bn({},t),l)),a())}else await Object(pe.F)(),a()}),Object(i.a)(this,"handlePrev",async e=>{this.setState({prevLoading:!0,error:null}),await Object(pe.F)(),e&&"string"==typeof e?this.context.onChangePrev(e):this.context.onChangePrev()}),this.state={active:this.getActiveClient(t.app.data),nextLoading:!1,prevLoading:!1}}getActiveClient(e){const{usedFolder:t,folders:o}=e,n=o.length?o[0].id:"";return t||n}render(){const{app:e}=this.context,{folders:t,accountPro:o}=e.data;return s.a.createElement(vt,Object(x.a)({},this.state,{listPro:o,lists:t,onActive:this.handleActive,onPrev:this.handlePrev,onNext:this.handleNext}))}}Object(i.a)(Pn,"contextType",be);var wn=Pn;function Tn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function zn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Tn(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class En extends l.Component{constructor(e,t){super(e),Object(i.a)(this,"handleActive",(e,t)=>{const{formFields:o}=this.state,n=o.findIndex(({sourceId:t})=>t===e);this.setState({formFields:Object(Qe.replaceAt)(o,n,zn(zn({},o[n]),{},{target:t}))})}),Object(i.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0,error:null}),await Object(pe.F)(),this.context.onChangePrev()}),Object(i.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,onChange:n,onChangeNext:a}=this.context,{formFields:r}=this.state;if(this.setState({nextLoading:!0,error:null}),Me(t.fields,r,"select")){const{status:i,data:l}=await mn(zn(zn({},t),{},{formId:o,fieldsMap:JSON.stringify(r),completed:!0}));200!==i?this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")}):(n(e,zn(zn({},t),l)),a())}else await Object(pe.F)(),this.setState({error:Object(ie.a)("All fields marked with an asterisk ( * ) must be mapped."),nextLoading:!1})});const{app:{data:{fieldsMap:o,fields:n},restrictions:a},formFields:r}=t;this.state={formFields:_e(o,n,r,a),prevLoading:!1,nextLoading:!1,error:null}}render(){const{app:e}=this.context,{formFields:t,error:o,nextLoading:n,prevLoading:a}=this.state;return s.a.createElement(ht,Object(x.a)({},e,e.data,{formFields:t,error:o,nextLoading:n,prevLoading:a,onActive:this.handleActive,onPrev:this.handlePrev,onNext:this.handleNext}))}}Object(i.a)(En,"contextType",be);var kn=En;function Hn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function _n(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Hn(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Fn extends l.Component{constructor(e,t){super(e),Object(i.a)(this,"handleActive",(e,t)=>{const{formFields:o}=this.state,n=o.findIndex(({sourceId:t})=>t===e);this.setState({formFields:Object(Qe.replaceAt)(o,n,_n(_n({},o[n]),{},{target:t}))})}),Object(i.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0,error:null}),await Object(pe.F)(),this.context.onChangePrev()}),Object(i.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,onChange:n,onChangeNext:a}=this.context,{formFields:r}=this.state;if(this.setState({error:null,nextLoading:!0}),Me(t.fields,r,"input")){const{status:i,data:l}=await mn(_n(_n({},t),{},{formId:o,fieldsMap:JSON.stringify(r),completed:!0}));200!==i?this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")}):(n(e,_n(_n({},t),l)),a())}else await Object(pe.F)(),this.setState({error:Object(ie.a)("All fields cannot be empty"),nextLoading:!1})});const{app:{data:o,restrictions:n},formFields:a}=t,{fieldsMap:r,fields:l}=o||{};this.state={formFields:_e(r,l,a,n),prevLoading:!1,nextLoading:!1}}static async onBeforeLoad(e){const{app:{id:t,data:o},onChange:n}=e;n(t,_n(_n({},o),{},{fields:[]}))}render(){const{app:{title:e}}=this.context,{formFields:t,error:o,nextLoading:n,prevLoading:a}=this.state,r=t.map(({sourceTitle:e,sourceId:t,target:o})=>({title:e,name:t,value:"_auto_generate"===o?e:o}));return s.a.createElement(bt,{headTitle:Object(ie.a)("FORM FIELDS"),headDescription:`${e} ${Object(ie.a)("FIELDS")}`,data:r,error:o,nextLoading:n,prevLoading:a,onActive:this.handleActive,onPrev:this.handlePrev,onNext:this.handleNext})}}Object(i.a)(Fn,"contextType",be);var Rn=Fn;function Mn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ln(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Mn(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Wn extends l.Component{constructor(e){super(e),Object(i.a)(this,"handleChange",(e,t)=>{this.setState(({apiKeyValue:o})=>({apiKeyValue:Ln(Ln({},o),{},{[""+e]:t})}))}),Object(i.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,apiKeys:n,onChange:a,onChangeNext:r}=this.props,{apiKeyValue:i}=this.state;if(this.setState({nextLoading:!0,error:null}),n.find(({required:e,name:t})=>e&&!i[t]))await Object(pe.F)(),this.setState({error:Object(ie.a)("All fields marked with an asterisk ( * ) must be completed."),nextLoading:!1});else{const{status:n,data:l}=await(e=>{let{formId:t}=e,o=Object(C.a)(e,["formId"]);const{api:n}=f.a.get("wp"),a=f.a.get("editorVersion"),r=Ee(n.url,{action:n.updateIntegration,hash:n.hash,version:a,formId:t});return Object(pe.I)(r,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(o)}).then(ke).then(e=>e)})(Ln(Ln(Ln({},t),i),{},{formId:o,completed:!0}));200!==n?this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")}):(a(e,Ln(Ln({},t),l)),r())}}),Object(i.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(pe.F)(),this.props.onChangePrev()}),this.state={apiKeyValue:this.getDefaultValue(),prevLoading:!1,nextLoading:!1,error:null}}getDefaultValue(){const{app:{data:e},apiKeys:t}=this.props;return t.reduce((t,{name:o})=>Ln(Ln({},t),{},{[""+o]:e[o]||""}),{})}render(){const{app:e,apiKeys:t}=this.props,{apiKeyValue:o,error:n,prevLoading:a,nextLoading:r}=this.state,i=t.map(e=>Ln(Ln({},e),{},{value:o[e.name]}));return s.a.createElement(bt,Object(x.a)({},e,{data:i,error:n,prevLoading:a,nextLoading:r,onActive:this.handleChange,onPrev:this.handlePrev,onNext:this.handleNext}))}}var In=Wn;const Nn=[{name:"emailTo",title:Object(ie.a)("Email To"),required:!0,helper:'<p class="brz-p">If you need to have multiple emails you can separate them by commas:</p>\n <p class="brz-p"><span class="brz-span">me@email.com,</span> <span class="brz-span">hi@email.com</span></p>'},{name:"subject",title:Object(ie.a)("Subject")},{name:"fromEmail",title:Object(ie.a)("From Email")},{name:"fromName",title:Object(ie.a)("From Name")},{name:"replayTo",title:Object(ie.a)("Reply-To")},{name:"cc",title:Object(ie.a)("Cc")},{name:"bcc",title:Object(ie.a)("Bcc")},{name:"metaData",title:Object(ie.a)("Meta Data"),type:"search",multiple:!0,choices:[{label:"Time",value:"time"},{label:"Page URL",value:"pageUrl"},{label:"User Agent",value:"userAgent"},{label:"Remote IP",value:"remoteIp"},{label:"Credit",value:"credit"}]}];class An extends l.Component{render(){return s.a.createElement(In,Object(x.a)({},this.context,{apiKeys:Nn,onClose:this.props.onClose}))}}Object(i.a)(An,"contextType",be);var Dn=An;class Vn extends l.Component{renderError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},this.props.error))}renderInput({name:e}){const{apiKeyValue:t,onChange:o}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-input"},s.a.createElement("input",{className:"brz-input",value:t[e],onChange:t=>{o(e,t.target.value)}}))}renderSelect({name:e,choices:t}){const{apiKeyValue:o,onChange:n}=this.props,a=o[e],r=(a?t:[{id:"",name:"Please Select Folder"},...t]).map((e,t)=>{const{id:o,name:n}=e;return s.a.createElement(S.a,{key:t,value:o},n)});return s.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-select"},s.a.createElement(O.a,{defaultValue:a,className:"brz-control__select--white",maxItems:"6",itemHeight:"30",inPortal:!0,onChange:t=>{n(e,t)}},r))}renderTextarea({name:e}){const{apiKeyValue:t,onChange:o}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-input"},s.a.createElement("textarea",{className:"brz-textarea",value:t[e],onChange:t=>{o(e,t.target.value)}}))}renderApiKeys(){const e=this.props.listsCreate.map((e,t)=>{const{title:o,type:n}=e;return s.a.createElement("div",{key:t,className:"brz-ed-popup-integrations-step__fields-option"},s.a.createElement("p",{className:"brz-p"},o),this["render"+Object(Nt.c)(n)](e))});return s.a.createElement(it.a,{style:{maxHeight:255},className:"brz-ed-scroll-pane brz-ed-popup-integrations__scroll-pane"},e)}render(){const{listsCreate:e,nextLoading:t,prevLoading:o,error:n,onPrev:a,onNext:r}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__lists-create"},n&&this.renderError(),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},s.a.createElement("p",{className:"brz-p"},s.a.createElement("strong",{className:"brz-strong"},Object(ie.a)("CREATE LIST")))),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},e.length>0&&this.renderApiKeys(),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},s.a.createElement($e,{size:3,leftIcon:"nc-arrow-left",loading:o,onClick:a},Object(ie.a)("Back")),s.a.createElement($e,{color:"teal",loading:t,onClick:r},Object(ie.a)("Create")))))}}function $n(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Gn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):$n(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}Object(i.a)(Vn,"defaultProps",{id:"",title:"",shortTitle:"",description:"",img:"",form:{},listsCreate:[],apiKeyValue:{},nextLoading:!1,prevLoading:!1,onPrev:v.default.noop,onNext:v.default.noop,onChange:v.default.noop});const Un=(e,t)=>{if("server"===e)return Object(ie.a)("List are not created please connect the support");const{data:{accountPro:o,lists:n},title:a}=t;return o?`Please upgrade your ${a} account to access your lists`:0===n.length?Object(ie.a)("Lists are empty. Please add a new list and try again."):void 0};class Kn extends l.Component{constructor(e,t){super(e),Object(i.a)(this,"handleActive",e=>{this.setState({active:e})}),Object(i.a)(this,"handleKeysChange",(e,t)=>{this.setState(o=>({apiKeyValue:Gn(Gn({},o.apiKeyValue),{},{[""+e]:t})}))}),Object(i.a)(this,"handleConfirm",async e=>{const{app:{id:t,data:o},formId:n,onChange:a}=this.context,{status:r,data:i}=await mn(Gn(Gn({},o),{},{formId:n,confirmationNeeded:e}));200!==r?this.setState({error:Object(ie.a)("Something went wrong")}):a(t,Gn(Gn({},o),i))}),Object(i.a)(this,"handleCreateMode",async()=>{this.setState({createLoading:!0}),await Object(pe.F)(),this.setState({mode:"create",createLoading:!1,error:null})}),Object(i.a)(this,"handleViewMode",async()=>{this.setState({prevLoading:!0,error:null}),await Object(pe.F)(),this.setState({prevLoading:!1,mode:"view"})}),Object(i.a)(this,"handleCreateList",async()=>{const{app:{id:e,data:t},formId:o,onChange:n}=this.context,{apiKeyValue:a}=this.state,r=Object.values(a);if(this.setState({nextLoading:!0,error:null}),r.some(e=>!e))await Object(pe.F)(),this.setState({nextLoading:!1,error:Object(ie.a)("All fields cannot be empty")});else{const{status:r,data:i}=await(({formId:e,id:t,data:o})=>{const{api:n}=f.a.get("wp"),a=f.a.get("editorVersion"),r=Ee(n.url,{action:n.createIntegrationGroup,hash:n.hash,version:a,formId:e,integration:t});return Object(pe.I)(r,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(o)}).then(ke).then(e=>e)})({formId:o,id:t.id,data:a,usedAccount:t.usedAccount});200!==r?this.setState({nextLoading:!1,error:Un("server")}):(n(e,Gn(Gn({},t),{},{lists:[...t.lists,i]})),this.setState({active:i.id,apiKeyValue:this.getApiKeyValue(t),mode:"view",nextLoading:!1,error:null}))}}),Object(i.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,onChange:n,onChangeNext:a}=this.context,{active:r}=this.state;if(this.setState({nextLoading:!0,error:null}),r!==t.usedList){const{status:i,data:l}=await mn(Gn(Gn({},t),{},{formId:o,usedList:r}));200!==i?this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")}):(n(e,Gn(Gn({},t),l)),a())}else await Object(pe.F)(),a()}),Object(i.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0,error:null}),await Object(pe.F)(),this.context.onChangePrev()});const{data:o}=t.app;this.state={active:this.getActiveList(o),apiKeyValue:this.getApiKeyValue(o),mode:"view",error:Un("application",t.app),createLoading:!1,prevLoading:!1,nextLoading:!1}}static async onBeforeLoad(e){const{app:{id:t,data:o},onChange:n}=e;n(t,Gn(Gn({},o),{},{accountPro:!Array.isArray(o.lists)}))}getActiveList(e){const t=e.lists.find(({id:t})=>t===e.usedList)||{},o=e.lists.length?e.lists[0].id:"";return t.id||o}getApiKeyValue({listProperties:e}){return Array.isArray(e)?e.reduce((e,{name:t})=>Gn(Gn({},e),{},{[""+t]:""}),{}):[]}render(){const{app:e}=this.context,{lists:t,listProperties:o,hasConfirmation:n,accountPro:a,confirmationNeeded:r}=e.data;return"view"===this.state.mode?s.a.createElement(vt,Object(x.a)({},this.state,{lists:t,listsCreate:o,listPro:a,hasConfirmation:n,confirmationNeeded:r,onActive:this.handleActive,onConfirm:this.handleConfirm,onCreateList:this.handleCreateMode,onPrev:this.handlePrev,onNext:this.handleNext})):s.a.createElement(Vn,Object(x.a)({},this.state,{listsCreate:o,onChange:this.handleKeysChange,onPrev:this.handleViewMode,onNext:this.handleCreateList}))}}Object(i.a)(Kn,"contextType",be);var qn=Kn;class Yn extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"handleClose",()=>{this.props.onClose()})}render(){const{app:e}=this.context;return s.a.createElement(yt,Object(x.a)({},e,{onNext:this.handleClose}))}}Object(i.a)(Yn,"contextType",be);var Xn=Yn;const Zn=[{name:"emailTo",title:Object(ie.a)("Email To"),required:!0,helper:'<p class="brz-p">If you need to have multiple emails you can separate them by commas:</p>\n <p class="brz-p"><span class="brz-span">me@email.com,</span> <span class="brz-span">hi@email.com</span></p>'},{name:"subject",title:Object(ie.a)("Subject")},{name:"fromEmail",title:Object(ie.a)("From Email")},{name:"fromName",title:Object(ie.a)("From Name")},{name:"replayTo",title:Object(ie.a)("Reply-To")},{name:"cc",title:Object(ie.a)("Cc")},{name:"bcc",title:Object(ie.a)("Bcc")},{name:"metaData",title:Object(ie.a)("Meta Data"),type:"search",multiple:!0,choices:[{title:"Time",value:"time"},{title:"Page URL",value:"pageUrl"},{title:"User Agent",value:"userAgent"},{title:"Remote IP",value:"remoteIp"},{title:"Credit",value:"credit"}]},{name:"host",title:Object(ie.a)("Host"),required:!0},{name:"port",title:Object(ie.a)("Port"),required:!0},{name:"authentication",title:Object(ie.a)("Authentication"),type:"switch"},{name:"username",title:Object(ie.a)("Username"),required:!0},{name:"password",title:Object(ie.a)("Password"),required:!0},{name:"encryption",title:Object(ie.a)("Encryption"),type:"select",choices:[{title:"SSL",name:"ssl"},{title:"TLS",name:"tls"}]}];class Jn extends l.Component{render(){return s.a.createElement(In,Object(x.a)({},this.props,this.context,{apiKeys:Zn}))}}Object(i.a)(Jn,"contextType",be);var Qn=Jn;const ea=[{name:"emailTo",title:Object(ie.a)("Email To"),required:!0,helper:'<p class="brz-p">If you need to have multiple emails you can separate them by commas:</p>\n <p class="brz-p"><span class="brz-span">me@email.com,</span> <span class="brz-span">hi@email.com</span></p>'},{name:"subject",title:Object(ie.a)("Subject")},{name:"fromEmail",title:Object(ie.a)("From Email")},{name:"fromName",title:Object(ie.a)("From Name")},{name:"replayTo",title:Object(ie.a)("Reply-To")},{name:"cc",title:Object(ie.a)("Cc")},{name:"bcc",title:Object(ie.a)("Bcc")},{name:"metaData",title:Object(ie.a)("Meta Data"),type:"search",multiple:!0,choices:[{title:"TIME",value:"time"},{title:"Page URL",value:"pageUrl"},{title:"User Agent",value:"userAgent"},{title:"Remote IP",value:"remoteIp"},{title:"Credit",value:"credit"}]},{name:"username",title:Object(ie.a)("Username"),required:!0},{name:"password",title:Object(ie.a)("Password"),required:!0}];class ta extends l.Component{render(){return s.a.createElement(In,Object(x.a)({},this.props,this.context,{apiKeys:ea}))}}Object(i.a)(ta,"contextType",be);var oa=ta;class na extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"handleConfirmation",e=>{this.props.onChangeConfirmation(e.target.checked)}),Object(i.a)(this,"handleKeyDown",e=>{const{confirmed:t,onNext:o}=this.props;13===e.which&&t&&o()})}renderError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},this.props.error)}renderValidationError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error brz-ed-popup-recaptcha-validation-error"},s.a.createElement("p",{className:"brz-p"},Object(ie.a)("Verification process failed, please make sure you have done the following three things and try again in a few minutes.")),s.a.createElement("p",{className:"brz-p"},"1. ",Object(ie.a)("Inputted a valid site key"),". "),s.a.createElement("p",{className:"brz-p"},"2.",Object(ie.a)("Deselected the “Verify the origin of reCAPTCHA solutions” checkbox within your Google account.")),s.a.createElement("p",{className:"brz-p"},"3. ",Object(ie.a)("Established a stable internet connection"),"."))}renderItems(){const{data:e,onChange:t}=this.props;return e.map((e,o)=>{const{title:n,name:a,value:r}=e;return s.a.createElement(Ke,{key:o,title:n,value:r,required:!0,onChange:e=>{t(e.target.value,a)}})})}renderDescriptions(){return s.a.createElement("div",{className:"brz-ed-popup-recaptcha__confirmation"},s.a.createElement("label",{className:"brz-label"},s.a.createElement("input",{className:"brz-input",type:"checkbox",value:this.props.confirmed,onChange:this.handleConfirmation}),'I have deselected "Verify the origins of reCAPTCHA solu-',s.a.createElement("br",{className:"brz-br"}),'tions and clicked "Save Changes" under "Key Settings >',s.a.createElement("br",{className:"brz-br"}),'Advanced Settings" in my Google reCAPTCHA page'))}render(){const{title:e,img:t,validated:o,confirmed:n,error:a,nextLoading:r,prevLoading:i,onRetry:l,onNext:c,onPrev:d}=this.props;return s.a.createElement(it.a,{className:"brz-ed-popup-integrations-apps__scroll-pane",style:{height:"100%"}},s.a.createElement("div",{className:"brz-ed-popup-recaptcha__connect"},s.a.createElement("div",{className:"brz-ed-popup-recaptcha__container"},s.a.createElement("div",{className:"brz-ed-popup-integrations__connect-head"},s.a.createElement("img",{className:"brz-img",src:t,alt:e}),o?this.renderDescriptions():this.renderValidationError(),a&&this.renderError()),s.a.createElement("div",{className:"brz-ed-popup-integrations__connect-body"},this.renderItems(),o?s.a.createElement($e,{color:"teal",loading:r,disabled:!n,onClick:c},Object(ie.a)("Connect")):s.a.createElement($e,{color:"teal",loading:r,onClick:l},Object(ie.a)("Try Again")),s.a.createElement($e,{color:"default",loading:i,onClick:d},Object(ie.a)("Cancel"))))))}}Object(i.a)(na,"defaultProps",{id:"",title:"",img:"",confirmed:!1,error:!1,nextLoading:!1,prevLoading:!1,onChange:v.default.noop,onChangeConfirmation:v.default.noop,onNext:v.default.noop,onPrev:v.default.noop});var aa=na;function ra(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ia(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ra(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ra(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}async function la(e){try{return await function(e){const t=window.parent,o=function(e){const t=e.document.body,o=document.createElement("div");return o.setAttribute("class","brz-ed-recaptcha brz-hidden"),t.append(o),o}(t),n=function(e){const t=e.document.body,o=document.createElement("script");return o.setAttribute("src","https://www.google.com/recaptcha/api.js?onload=onloadRecaptchaCallback&render=explicit"),o.setAttribute("async","async"),o.setAttribute("defer","defer"),t.append(o),o}(t);return new Promise((a,r)=>{n.onload=()=>{const i=t.parent.grecaptcha;t.onloadRecaptchaCallback=()=>{const t=i.render(o,{sitekey:e.sitekey,size:"invisible",callback:async t=>{const{status:r}=await(({group:e,service:t,secretkey:o,sitekey:n,response:a})=>{const{api:r}=f.a.get("wp"),i=f.a.get("editorVersion"),l=Ee(r.url,{action:r.addAccount,hash:r.hash,version:i,secretkey:o,response:a});return Object(pe.I)(l,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({group:e,service:t,sitekey:n,secretkey:o})}).then(ke).then(e=>e)})(ia(ia({group:"recaptcha",service:"recaptcha"},e),{},{response:t}));o.remove(),n.remove(),a(200===r)},"error-callback":()=>{o.remove(),n.remove(),r(!1)}});i.reset(t),i.execute(t)}}})}(e)}catch(e){return e}}function sa(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ca(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):sa(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const da=[{name:"sitekey",title:"Site Key"},{name:"secretkey",title:"Secret Key"}];class ua extends l.Component{constructor(e,t){super(e),Object(i.a)(this,"handleChange",(e,t)=>{this.setState(({apiKeyValue:o})=>({apiKeyValue:ca(ca({},o),{},{[""+t]:e.trim()})}))}),Object(i.a)(this,"handleConfirmation",e=>{this.setState({confirmed:e})}),Object(i.a)(this,"handleNext",async()=>{const{app:e,onChangeNext:t}=this.context,{apiKeyValue:o}=this.state,n=Object.values(o);if(this.setState({nextLoading:!0,error:null}),n.some(e=>!e))await Object(pe.F)(),this.setState({error:"Fields are empty",nextLoading:!1});else{const{data:n}=e;if(n){const{status:e}=await Ne(n.id);200!==e&&this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")})}await la(o)?t():this.setState({nextLoading:!1,validated:!1})}}),Object(i.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(pe.F)(),this.context.onChangePrev()});const{app:{data:o}}=t;this.state={apiKeyValue:o||this.getDefaultValue(),validated:!0,confirmed:!1,prevLoading:!1,nextLoading:!1,error:null}}static async onBeforeLoad(e,t){e.app.data&&t.onChangeNext("disconnect")}getDefaultValue(){return da.reduce((e,{name:t})=>ca(ca({},e),{},{[""+t]:""}),{})}render(){const{apiKeyValue:e,nextLoading:t,prevLoading:o,confirmed:n,error:a,validated:r}=this.state,i=da.map(({title:t,name:o})=>({title:t,name:o,value:e[o]}));return s.a.createElement(aa,Object(x.a)({},this.context.app,{data:i,validated:r,confirmed:n,nextLoading:t,prevLoading:o,error:a,onChange:this.handleChange,onChangeConfirmation:this.handleConfirmation,onNext:this.handleNext,onRetry:this.handleNext,onPrev:this.handlePrev}))}}Object(i.a)(ua,"contextType",be);var pa=ua;class ba extends l.Component{constructor(e){super(e),Object(i.a)(this,"handleNext",async()=>{const{app:e,onChange:t,onDisconnectApp:o}=this.context;this.setState({nextLoading:!0,error:null});const{status:n}=await Ne(e.data.id);n<400?(o(e.id),t(e.id,null)):this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")})}),Object(i.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0,error:null}),await Object(pe.F)(),this.context.onChangePrev("appList")}),this.state={nextLoading:!1,prevLoading:!1,error:null}}render(){const{nextLoading:e,prevLoading:t,error:o}=this.state;return s.a.createElement(Ze,Object(x.a)({},this.context.app,{descriptions:Object(ie.a)("Are you want to delete account")+" ?",nextLoading:e,prevLoading:t,error:o,onPrev:this.handlePrev,onNext:this.handleNext}))}}Object(i.a)(ba,"contextType",be);var ma=ba;class ha extends Et{}Object(i.a)(ha,"fields",Dn),Object(i.a)(ha,"done",Xn);var ga=ha;class va extends Et{}Object(i.a)(va,"fields",Dn),Object(i.a)(va,"done",Xn);var fa=va;class ya extends Et{}Object(i.a)(ya,"connect",yn),Object(i.a)(ya,"account",xn),Object(i.a)(ya,"fields",kn),Object(i.a)(ya,"list",qn),Object(i.a)(ya,"done",Xn);var Oa=ya;class Sa extends Et{}Object(i.a)(Sa,"connect",yn),Object(i.a)(Sa,"account",xn),Object(i.a)(Sa,"client",wn),Object(i.a)(Sa,"fields",kn),Object(i.a)(Sa,"list",qn),Object(i.a)(Sa,"done",Xn);var Ca=Sa;class xa extends Et{}Object(i.a)(xa,"connect",yn),Object(i.a)(xa,"account",xn),Object(i.a)(xa,"fields",Rn),Object(i.a)(xa,"done",Xn);var ja=xa;class Ba extends Et{}Object(i.a)(Ba,"connect",yn),Object(i.a)(Ba,"account",xn),Object(i.a)(Ba,"client",wn),Object(i.a)(Ba,"fields",kn),Object(i.a)(Ba,"list",qn),Object(i.a)(Ba,"done",Xn);var Pa=Ba;class wa extends Et{}Object(i.a)(wa,"connect",yn),Object(i.a)(wa,"account",xn),Object(i.a)(wa,"fields",kn),Object(i.a)(wa,"list",qn),Object(i.a)(wa,"done",Xn);var Ta=wa;class za extends Et{}Object(i.a)(za,"connect",yn),Object(i.a)(za,"account",xn),Object(i.a)(za,"fields",kn),Object(i.a)(za,"list",qn),Object(i.a)(za,"done",Xn);var Ea=za;class ka extends Et{}Object(i.a)(ka,"connect",yn),Object(i.a)(ka,"account",xn),Object(i.a)(ka,"fields",kn),Object(i.a)(ka,"list",qn),Object(i.a)(ka,"done",Xn);var Ha=ka;class _a extends Et{}Object(i.a)(_a,"connect",yn),Object(i.a)(_a,"account",xn),Object(i.a)(_a,"fields",kn),Object(i.a)(_a,"list",qn),Object(i.a)(_a,"done",Xn);var Fa=_a;class Ra extends Et{}Object(i.a)(Ra,"connect",yn),Object(i.a)(Ra,"account",xn),Object(i.a)(Ra,"fields",kn),Object(i.a)(Ra,"list",qn),Object(i.a)(Ra,"done",Xn);var Ma=Ra;class La extends Et{}Object(i.a)(La,"connect",yn),Object(i.a)(La,"account",xn),Object(i.a)(La,"list",qn),Object(i.a)(La,"fields",kn),Object(i.a)(La,"done",Xn);var Wa=La;class Ia extends Et{}Object(i.a)(Ia,"connect",yn),Object(i.a)(Ia,"account",xn),Object(i.a)(Ia,"fields",kn),Object(i.a)(Ia,"list",qn),Object(i.a)(Ia,"done",Xn);var Na=Ia;class Aa extends Et{}Object(i.a)(Aa,"connect",yn),Object(i.a)(Aa,"account",xn),Object(i.a)(Aa,"fields",kn),Object(i.a)(Aa,"done",Xn);var Da=Aa;class Va extends Et{}Object(i.a)(Va,"fields",Qn),Object(i.a)(Va,"done",Xn);var $a=Va;class Ga extends Et{}Object(i.a)(Ga,"fields",oa),Object(i.a)(Ga,"done",Xn);var Ua=Ga;class Ka extends Et{}Object(i.a)(Ka,"connect",yn),Object(i.a)(Ka,"account",xn),Object(i.a)(Ka,"fields",kn),Object(i.a)(Ka,"list",qn),Object(i.a)(Ka,"done",Xn);var qa=Ka;class Ya extends Et{}Object(i.a)(Ya,"connect",yn),Object(i.a)(Ya,"account",xn),Object(i.a)(Ya,"list",qn),Object(i.a)(Ya,"fields",kn),Object(i.a)(Ya,"done",Xn);var Xa=Ya;class Za extends Et{}Object(i.a)(Za,"connect",yn),Object(i.a)(Za,"account",xn),Object(i.a)(Za,"fields",kn),Object(i.a)(Za,"list",qn),Object(i.a)(Za,"done",Xn);var Ja=Za;class Qa extends Et{}Object(i.a)(Qa,"connect",yn),Object(i.a)(Qa,"account",xn),Object(i.a)(Qa,"fields",kn),Object(i.a)(Qa,"list",qn),Object(i.a)(Qa,"done",Xn);var er=Qa;class tr extends Et{}Object(i.a)(tr,"connect",yn),Object(i.a)(tr,"account",xn),Object(i.a)(tr,"fields",kn),Object(i.a)(tr,"list",qn),Object(i.a)(tr,"done",Xn);var or=tr;class nr extends Et{}Object(i.a)(nr,"connect",yn),Object(i.a)(nr,"account",xn),Object(i.a)(nr,"fields",kn),Object(i.a)(nr,"list",qn),Object(i.a)(nr,"done",Xn);var ar=nr;class rr extends Et{}Object(i.a)(rr,"connect",pa),Object(i.a)(rr,"done",Xn),Object(i.a)(rr,"disconnect",ma);var ir=rr;function lr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function sr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):lr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const cr=f.a.get("pro");var dr=class extends we{constructor(...e){super(...e),Object(i.a)(this,"appsData",[]),Object(i.a)(this,"appsComponent",a),Object(i.a)(this,"proExceptions",!cr),Object(i.a)(this,"handleConnectApp",async e=>{const{id:t,stages:o}=e,{formId:n}=this.props;let{status:a,data:r}=await pn({formId:n,id:t});if(200!==a){if(404!==a)return void this.setState({appError:Object(ie.a)("The integration is not responding, please try again or verify the account credentials")});if(({status:a,data:r}=await bn({formId:n,id:t})),200!==a)return void this.setState({appError:Object(ie.a)("The integration is not responding, please try again or verify the account credentials")})}this.setState(Object(c.a)(n=>{n.appError=null,n.stages=o,n.connectedApp=t,n.data[t]=e,n.data[t].data=r}),()=>{this.handleNext()})})}async componentDidMount(){const e=Object(ue.a)("integrations.json"),t=await fetch(e),{services:o}=await t.json();this.appsData=o,await this.getData()}async getData(){const{formId:e}=this.props,{status:t,data:o}=await dn({formId:e});if(200!==t)if(404===t){const{status:t}=await un({formId:e});t>=400?this.setState({error:Object(ie.a)("Something went wrong")}):this.setState({loading:!1})}else this.setState({error:Object(ie.a)("Something went wrong")});else o&&this.setState({connectedApps:this.getConnectedApps(o.integrations),loading:!1})}getContextValue(){const{formId:e,formFields:t}=this.props;return sr(sr({},super.getContextValue()),{},{formId:e,formFields:t})}},ur=o(213);function pr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function br(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):pr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const mr=f.a.get("pro"),hr=f.a.get("wp");var gr=class extends we{constructor(...e){super(...e),Object(i.a)(this,"state",{loading:!0,showProgress:!0,connectedApp:"",connectedApps:[],stage:this.props.stage,stages:this.props.stages,oldStage:"",data:{},error:null,appError:null,emailTemplate:"",hasEmailTemplate:!1,textCopied:""}),Object(i.a)(this,"appsData",[]),Object(i.a)(this,"appsComponent",a),Object(i.a)(this,"proExceptions",!mr),Object(i.a)(this,"updateForm",v.default.debounce(()=>{(({formId:e,hasEmailTemplate:t,emailTemplate:o})=>{const{api:n}=f.a.get("wp"),a=f.a.get("editorVersion"),r=Ee(n.url,{formId:e,action:n.updateForm,hash:n.hash,version:a});Object(pe.I)(r,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({hasEmailTemplate:t,emailTemplate:o})}).then(ke).then(e=>e)})({formId:this.props.formId,hasEmailTemplate:this.state.hasEmailTemplate,emailTemplate:this.state.emailTemplate})},1e3)),Object(i.a)(this,"handleConnectApp",async e=>{const t=e.id,{formId:o}=this.props,{stages:n=[]}=this.appsData.find(e=>e.id===t)||{};let{status:a,data:r}=await((...e)=>pn(...e))({formId:o,id:t});if(200!==a){if(404!==a)return void this.setState({error:Object(ie.a)("Something went wrong")});{const{status:e,data:n}=await((...e)=>bn(...e))({formId:o,id:t});if(200!==e)return void this.setState({error:Object(ie.a)("Something went wrong")});r=n}}this.setState(Object(c.a)(o=>{o.stages=n,o.connectedApp=t,o.data[t]=Object.assign(e,{data:r})}),()=>{this.handleNext()})}),Object(i.a)(this,"handleHtmlChange",e=>{this.setState({emailTemplate:e},this.updateForm)}),Object(i.a)(this,"handleEnableHtml",e=>{this.setState({hasEmailTemplate:e}),!1===e&&this.state.emailTemplate&&this.setState({emailTemplate:""},this.updateForm)})}async componentDidMount(){const e=Object(ue.a)("integrations.json"),t=await fetch(e),o=await t.json();this.appsData=hr?o.wpEmail:o.cloudEmail,await this.getData()}async getData(){const{formId:e,onLoading:t}=this.props,{status:o,data:n}=await dn({formId:e});if(200!==o)if(404===o){const{status:t,data:o}=await un({formId:e});t>=400||!o?this.setState({error:Object(ie.a)("Something went wrong")}):this.setState({connectedApps:this.getConnectedApps(o.integrations),loading:!1})}else this.setState({error:Object(ie.a)("Something went wrong")});else n&&this.setState({connectedApps:this.getConnectedApps(n.integrations),emailTemplate:n.emailTemplate||"",hasEmailTemplate:n.hasEmailTemplate,loading:!1});t(!1)}getContextValue(){const{formId:e,formFields:t}=this.props;return br(br({},super.getContextValue()),{},{formId:e,formFields:t})}handleCopyToClipboard(e){(e=>{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(t)})(`{{${e}}}`),this.setState({textCopied:e},()=>{setTimeout(()=>{this.setState({textCopied:void 0})},800)})}renderFormInfo(){return s.a.createElement("div",{className:"brz-ed-popup-integration-email__info"},this.props.formFields.map((e,t)=>s.a.createElement("p",{key:t,title:"Click to copy",className:"brz-p",onClick:()=>{this.handleCopyToClipboard(e.label)}},s.a.createElement("span",{className:"brz-span brz-"},`{{${e.label}}}`),s.a.createElement(_.b,{icon:"nc-duplicate"}),this.state.textCopied===e.label&&s.a.createElement("span",{className:"brz-span brz-ed-animated brz-ed-animated--fadeIn"},"Copied"))))}renderApps(){const{error:e,emailTemplate:t,hasEmailTemplate:o}=this.state,n=g()("brz-ed-popup-integration-email__template",{"brz-ed-popup-integration-email__template--open":o});return s.a.createElement(s.a.Fragment,null,e&&super.renderError(),s.a.createElement(Be,{apps:this.appsData,proExceptions:this.proExceptions}),!this.proExceptions&&s.a.createElement("div",{className:n},s.a.createElement("div",{className:"brz-ed-popup-integration-email__template-head"},s.a.createElement("p",{className:"brz-p"},s.a.createElement("strong",{className:"brz-strong"},Object(ie.a)("USE CUSTOM TEMPLATE"))),s.a.createElement(Je.a,{className:"brz-ed-control__switch--light",defaultValue:o,onChange:this.handleEnableHtml})),s.a.createElement("div",{className:"brz-ed-popup-integration-email__template-body"},s.a.createElement(ur.a,{className:"brz-ed-popup-integration-email__codemirror",value:t,onChange:this.handleHtmlChange,language:"xml",theme:"idea"}),s.a.createElement("div",{className:"brz-d-xs-flex brz-align-items-xs-center"},s.a.createElement("p",{className:"brz-p"},Object(ie.a)("Tip: Use these shortcodes to populate your template")),s.a.createElement(ye.b,{className:"brz-ed-popup-integration-email__tooltip",size:"small",openOnClick:!1,closeDelay:600,overlay:this.renderFormInfo()},s.a.createElement(_.b,{icon:"nc-alert-circle-que"}))))))}};function vr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function fr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):vr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var yr=class extends we{constructor(...e){super(...e),Object(i.a)(this,"appsData",[]),Object(i.a)(this,"appsComponent",a),Object(i.a)(this,"handleConnectApp",async e=>{const t=e.id;await Object(pe.F)(),this.setState(Object(c.a)(o=>{const n=o.data[t]||{};o.connectedApp=t,o.stages=e.stages,o.data[t]=fr(fr({},n),e)}),()=>{this.handleNext()})})}async componentDidMount(){const e=Object(ue.a)("integrations.json"),t=await fetch(e),{recaptcha:o}=await t.json(),{status:n,data:a}=await Ie({group:"recaptcha",services:"recaptcha"});this.appsData=o,200===n&&a&&a.length>0?this.setState(Object(c.a)(e=>{e.data={recaptcha:{data:a[0]}},e.connectedApps=this.getConnectedApps(a),e.loading=!1})):this.setState({loading:!1})}getConnectedApps(e){return e.reduce((e,t)=>this.appsData.find(({id:e})=>e===t.group)?[...e,t.group]:e,[...this.state.connectedApps])}};const Or=[{id:"email",title:Object(ie.a)("Email"),icon:"nc-email",component:gr},{id:"service",title:Object(ie.a)("APPS"),icon:"nc-extensions-2",component:dr},{id:"recaptcha",title:Object(ie.a)("ReCAPTCHA"),icon:"nc-captcha",component:yr}];class Sr extends l.Component{render(){const{formId:e,formFields:t,opened:o,onClose:n}=this.props;return s.a.createElement(de,{currentTab:"email",formId:e,formFields:t,opened:o,tabs:Or,onClose:n})}}Object(i.a)(Sr,"defaultProps",{formId:"",formFields:[],opened:!1,onClose:v.default.noop});var Cr=Sr,xr=o(74);class jr extends l.Component{render(){const{opened:e,onClose:t}=this.props,o="MacOS"===Object(xr.a)(),n=o?`${Object(ue.a)("editor/img/mac-keyboard1x.png")} 1x , ${Object(ue.a)("editor/img/mac-keyboard2x.png")} 2x`:`${Object(ue.a)("editor/img/pc-keyboard1x.png")} 1x , ${Object(ue.a)("editor/img/pc-keyboard2x.png")} 2x`;return s.a.createElement(y.a,{id:"key-helper",className:"brz-ed-hotkeys-overlay",opened:e,onClose:t},s.a.createElement("div",{className:"brz-ed-hotkeys-wrapper"},s.a.createElement(_.b,{icon:"nc-close-popup",className:"brz-ed-hotkeys-btn-close",onClick:t}),s.a.createElement("div",{className:"brz-ed-hotkeys-label"},Object(ie.a)("Keyboard Shortcuts")),s.a.createElement("div",{className:"brz-ed-hotkeys-image-container"},s.a.createElement("picture",null,s.a.createElement("img",{className:"brz-ed-hotkeys-image",srcSet:n}))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container"},s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column"},s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + C":"Ctrl + C"),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Copy"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + V":"Ctrl + V"),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Paste"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + shift + V":"Ctrl + Shift + V"),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Paste Style"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + D":"Ctrl + D"),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Duplicate"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + delete":"Delete"),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Delete"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd +":"Ctrl +",s.a.createElement(_.b,{className:"brz-ed-hotkeys-icons",icon:"nc-arrow"}),s.a.createElement("span",{className:"divider"}," / "),s.a.createElement(_.b,{className:"brz-ed-hotkeys-icons brz-ed-deg180",icon:"nc-arrow"})),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Horizontal Align"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd +":"Ctrl +",s.a.createElement(_.b,{className:"brz-ed-hotkeys-icons brz-ed-deg90",icon:"nc-arrow"}),s.a.createElement("span",{className:"divider"}," / "),s.a.createElement(_.b,{className:"brz-ed-hotkeys-icons brz-ed-deg270",icon:"nc-arrow"})),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Vertical Align")))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column"},s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + Z":"Ctrl + Z"),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Undo"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + shift + Z":"Ctrl + Shift + Z"),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Redo"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + S":"Ctrl + S"),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Save Draft / Update Page"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd +":"Ctrl +",s.a.createElement(_.b,{className:"brz-ed-hotkeys-icons",icon:"nc-plus2"}),s.a.createElement("span",{className:"divider"}," / "),s.a.createElement(_.b,{className:"brz-ed-hotkeys-icons",icon:"nc-minus"})),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Responsive Zoom In / Out"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd +":"Ctrl +",s.a.createElement(_.b,{className:"brz-ed-hotkeys-icons",icon:"nc-alert-circle-que"})),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Shortcuts"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + shift + A":"Ctrl + Shift + A"),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Add New Block / Layout"))),s.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"esc":"Esc"),s.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ie.a)("Select Parent Element")))))))}}Object(i.a)(jr,"defaultProps",{opened:!1,onClose:v.noop});function Br(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Pr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Br(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Br(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const wr=(e,t)=>{const o=e.family.toUpperCase(),n=t.family.toUpperCase();return o<n?-1:o>n?1:0};class Tr extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{loadingApp:""})}async handleDeleteFont(e,t){this.setState({loadingApp:t.brizyId}),"upload"===e?await(e=>{const{api:t}=f.a.get("wp"),o=f.a.get("editorVersion"),n=Ee(t.url,{action:t.deleteFont,hash:t.hash,version:o,id:e});return Object(pe.I)(n,{method:"POST"}).then(ke).then(e=>e)})(t.id):await Object(pe.F)(),this.setState({loadingApp:""}),this.props.deleteFont({type:e,fonts:[t]})}getSortedFonts(e){return Object.entries(e).map(([e,{data:t}])=>t.map(t=>Pr(Pr({},t),{},{fontGroupType:e}))).reduce((e,t)=>e.concat(t),[]).sort(wr)}render(){const{defaultFont:e,fonts:t}=this.props,{loadingApp:o}=this.state;return s.a.createElement(P.a,null,s.a.createElement("div",{className:"brz-ed-popup-fonts__lists brz-d-xs-flex brz-flex-xs-wrap"},this.getSortedFonts(t).map(t=>{let{fontGroupType:n}=t,a=Object(C.a)(t,["fontGroupType"]);const{id:r,brizyId:i,title:l,family:c}=yo.b[n](a),d=e===r,u=o===i;return s.a.createElement("div",{key:i,className:"brz-ed-popup-fonts__item"},s.a.createElement("div",{className:"brz-ed-popup-fonts__item-logo",style:{fontFamily:c}},"Aa",!d&&!u&&s.a.createElement("div",{className:"brz-ed-badge__delete brz-ed-popup-fonts__delete",onClick:()=>{this.handleDeleteFont(n,a)}},s.a.createElement(_.b,{icon:"nc-trash"}))),s.a.createElement("div",{className:"brz-ed-popup-fonts__item-title"},l),u&&s.a.createElement("span",{className:"brz-span brz-ed-popup-integrations__app-icon"},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"})))})))}}Object(i.a)(Tr,"defaultProps",{fonts:{},defaultFont:"",deleteFont:v.default.noop,onClose:v.default.noop});const zr={deleteFont:ko.D};var Er=Object(Jt.b)(e=>({fonts:Object(go.I)(e),defaultFont:Object(go.z)(e).data.font}),zr)(Tr);function kr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Hr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):kr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class _r extends l.Component{constructor(e){super(e),Object(i.a)(this,"handleAddNewFont",(e,t)=>{this.setState({selectedFont:t})}),Object(i.a)(this,"handleNext",async()=>{const{selectedFont:e}=this.state,{app:{data:{fonts:t}},onChangeNext:o}=this.context,n=t.find(({family:t})=>t===e);if(this.setState({nextLoading:!0,error:null}),await Object(pe.F)(),n){const e=Object(yo.i)(this.props.fonts,Object(yo.g)(n).id);e?this.props.addFonts([{type:e.group,fonts:[Hr(Hr({},e.font),{},{deleted:!1})]}]):this.props.addFonts([{type:"google",fonts:[n]}]),o()}else this.setState({error:`Font ${e} not found, please try again`,nextLoading:!1})}),Object(i.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(pe.F)(),this.context.onChangePrev()});const{config:t,blocks:o={},google:n={}}=this.props.fonts;this.usedFonts=[...t.data||[],...n.data||[],...o.data||[]],this.state={selectedFont:"",nextLoading:!1,prevLoading:!1,error:null}}static async onBeforeLoad(e){const{app:{id:t,data:o},onChange:n}=e,a=await Object(yo.h)();n(t,Hr(Hr({},o),{},{fonts:a}))}render(){const{app:e}=this.context,{selectedFont:t,prevLoading:o,nextLoading:n,error:a}=this.state,r=e.data.fonts.filter(e=>{const{id:t}=Object(yo.g)(e);return!this.usedFonts.some(e=>{const{id:o,deleted:n}=Object(yo.g)(e);return!0!==n&&o===t})}).map(e=>({value:e.family,label:e.family})),i=[{title:Object(ie.a)("Font name"),type:"search",choices:r,value:t}],c=s.a.createElement(l.Fragment,null,Object(ie.a)("Tip: You can browse the Google font library")," ",s.a.createElement("a",{className:"brz-a",href:"https://fonts.google.com",target:"_blank",rel:"noopener noreferrer"},Object(ie.a)("here")),".");return s.a.createElement(bt,Object(x.a)({},e,{data:i,headTitle:Object(ie.a)("ADD GOOGLE FONT"),description:c,prevLoading:o,nextLoading:n,error:a,onActive:this.handleAddNewFont,onPrev:this.handlePrev,onNext:this.handleNext}))}}Object(i.a)(_r,"contextType",be);const Fr={addFonts:Io.f};var Rr=Object(Jt.b)(e=>({fonts:Object(no.c)(e)}),Fr)(_r);class Mr extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"handleClose",()=>{this.props.onClose()})}render(){const{app:e}=this.context;return s.a.createElement(yt,Object(x.a)({},e,{onNext:this.handleClose}))}}Object(i.a)(Mr,"contextType",be);var Lr=Mr;class Wr extends Et{}Object(i.a)(Wr,"connect",Rr),Object(i.a)(Wr,"done",Lr);var Ir=Wr;function Nr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ar(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Nr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Dr extends l.Component{constructor(e){super(e),Object(i.a)(this,"handleChange",(e,t)=>{t.length<=17&&this.setState({fontName:t})}),Object(i.a)(this,"handleNext",async()=>{const{fontName:e}=this.state,{app:{id:t,data:o={}},onChange:n,onChangeNext:a}=this.context;this.setState({nextLoading:!0}),await Object(pe.F)(),e.trim()?(n(t,Ar(Ar({},o),{},{fontName:e})),a()):this.setState({nextLoading:!1,error:Object(ie.a)("Font Name is Required")})}),Object(i.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(pe.F)(),this.context.onChangePrev()}),this.state={fontName:"",nextLoading:!1,prevLoading:!1,error:null}}render(){const{app:e}=this.context,{fontName:t,prevLoading:o,nextLoading:n,error:a}=this.state,r=[{title:Object(ie.a)("Font name"),value:t}];return s.a.createElement(bt,Object(x.a)({},e,{headTitle:Object(ie.a)("UPLOAD FONT"),data:r,error:a,prevLoading:o,nextLoading:n,onActive:this.handleChange,onNext:this.handleNext,onPrev:this.handlePrev}))}}Object(i.a)(Dr,"contextType",be);var Vr=Dr,$r=o(57);class Gr extends l.Component{renderError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},this.props.error))}renderSelect({name:e,value:t,choices:o}){const n=o.map(({title:e,name:t})=>s.a.createElement(S.a,{key:t,value:t},e));return s.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-select"},s.a.createElement(O.a,{className:"brz-control__select--white",maxItems:"6",itemHeight:"30",inPortal:!0,defaultValue:t,onChange:t=>{this.props.onActive(e,t)}},n))}renderUpload({name:e,value:t,accept:o}){return s.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-upload"},t?s.a.createElement(l.Fragment,null,s.a.createElement("span",{className:"brz-span"},t.name),s.a.createElement("button",{className:"brz-button brz-ed-btn brz-ed-btn-xs brz-ed-btn-gray brz-ed-btn-red--hover brz-ed-btn-rounded brz-fw-700",onClick:()=>{this.props.onActive(e,"")}}," ",Object(ie.a)("DELETE")," ")):s.a.createElement("label",{className:"brz-label brz-ed-btn brz-ed-btn-xs brz-ed-btn-gray brz-ed-btn-teal--hover brz-ed-btn-rounded brz-fw-700",htmlFor:e},s.a.createElement("input",{id:e,className:"brz-input brz-hidden",type:"file",accept:o,onChange:({target:t})=>{this.props.onActive(e,t.files[0])}}),Object(ie.a)("UPLOAD")))}renderOptions(){const e=this.props.data.map((e,t)=>{const{title:o,type:n,helper:a}=e;return s.a.createElement("div",{key:t,className:"brz-ed-popup-integrations-step__fields-option"},s.a.createElement("div",{className:"brz-d-xs-flex brz-align-items-xs-center"},s.a.createElement("p",{className:"brz-p"},o),a&&s.a.createElement(ye.b,{className:"brz-ed-popup-integrations-fields__tooltip",openOnClick:!1,inPortal:!0,overlay:s.a.createElement("div",{className:"brz-ed-popup-integrations-fields__info",dangerouslySetInnerHTML:{__html:a}})},s.a.createElement(_.b,{icon:"nc-alert-circle-que"}))),"select"===n&&this.renderSelect(e),"upload"===n&&this.renderUpload(e))});return s.a.createElement(it.a,{style:{maxHeight:255},className:"brz-ed-popup-integrations__scroll-pane"},e)}render(){const{error:e,prevLoading:t,nextLoading:o,onPrev:n,onNext:a}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__fields"},e&&this.renderError(),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},s.a.createElement("p",{className:"brz-p"},s.a.createElement("strong",{className:"brz-strong"},Object(ie.a)("ADD FONT VARIATION")))),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},this.renderOptions(),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==t&&s.a.createElement($e,{size:3,leftIcon:"nc-arrow-left",loading:t,onClick:n},Object(ie.a)("Back")),null!==o&&s.a.createElement($e,{color:"teal",loading:o,onClick:a},Object(ie.a)("Add Font")))))}}Object(i.a)(Gr,"defaultProps",{data:[{title:"",value:"",name:"",helper:null}],nextLoading:null,prevLoading:null,onPrev:v.default.noop,onNext:v.default.noop,onActive:v.default.noop});var Ur=Gr;class Kr extends l.Component{renderError(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},s.a.createElement("span",{className:"brz-span"},this.props.error))}renderOptions(){const{data:e,onActive:t}=this.props,o=e.map((e,o)=>{const{id:n,title:a,type:r}=e;return s.a.createElement("div",{key:o,className:"brz-ed-popup-integrations-step__fields-option brz-ed-popup-integrations-step__fields-option--big"},s.a.createElement("p",{className:"brz-p brz-ed-popup-integration__font-name"},a),s.a.createElement("p",{className:"brz-p",style:{fontWeight:n,flexBasis:"60%"}},r),s.a.createElement("div",{title:"Disconnect",className:"brz-ed-popup-integrations--delete",onClick:()=>{t(n)}},s.a.createElement(_.b,{icon:"nc-trash"})))});return s.a.createElement(it.a,{style:{maxHeight:255},className:"brz-ed-popup-integrations__scroll-pane"},o)}render(){const{error:e,prevLoading:t,nextLoading:o,createLoading:n,onPrev:a,onNext:r,onCreate:i}=this.props;return s.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__fields"},e&&this.renderError(),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},s.a.createElement("p",{className:"brz-p"},s.a.createElement("strong",{className:"brz-strong"},Object(ie.a)("FONT VARIATION")))),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},this.renderOptions(),s.a.createElement("div",{className:"brz-ed-popup-integrations-new__option",onClick:i},s.a.createElement(_.b,{icon:n?"nc-circle-02":"nc-add",className:n?"brz-ed-animated--spin":""}),Object(ie.a)("Add new font variation")),s.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==t&&s.a.createElement($e,{size:3,leftIcon:"nc-arrow-left",loading:t,onClick:a},Object(ie.a)("Back")),null!==o&&s.a.createElement($e,{color:"teal",loading:o,onClick:r},Object(ie.a)("Continue")))))}}Object(i.a)(Kr,"defaultProps",{data:[{title:"",value:"",name:""}],nextLoading:null,prevLoading:null,createLoading:!1,onPrev:v.default.noop,onNext:v.default.noop,onActive:v.default.noop,onCreate:v.default.noop});var qr=Kr;function Yr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Xr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Yr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Zr=v.default.memoize(e=>Object.entries(e).map(([e,t])=>({title:t,name:e})));class Jr extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{mode:"add",keyValue:this.getDefaultData(),nextLoading:!1,prevLoading:!1,addLoading:!1,error:null}),Object(i.a)(this,"handleChangeAddMode",async()=>{this.setState({addLoading:!0}),await Object(pe.F)(),this.setState({mode:"add",addLoading:!1})}),Object(i.a)(this,"handleUploadFonts",(e,t)=>{this.setState(({keyValue:o})=>({error:null,keyValue:Xr(Xr({},o),{},{[""+e]:t})}))}),Object(i.a)(this,"handleAddFonts",async()=>{const{app:{id:e,data:t},onChange:o}=this.context,n=this.state.keyValue,{weight:a}=n,r=Object(C.a)(n,["weight"]);if(this.setState({nextLoading:!0,error:null}),await Object(pe.F)(),!Object.values(r).some(e=>Boolean(e)))return void this.setState({nextLoading:!1,error:Object(ie.a)("You must be have one font added")});let i=new Set([...t.weights||[],Number(a)]);o(e,Object.assign({},t,{weights:[...i],files:Xr(Xr({},t.files||[]),{},{[a]:r})})),this.setState({mode:"edit",keyValue:this.getDefaultData(),nextLoading:!1})}),Object(i.a)(this,"handleRemoveFonts",e=>{const{app:{id:t,data:o},onChange:n}=this.context;n(t,Object.assign({},o,{weights:v.default.without(o.weights,e),files:v.default.omit(o.files,e)}))}),Object(i.a)(this,"handleNext",async()=>{const{app:{data:{files:e,fontName:t}},onChangeNext:o}=this.context;this.setState({nextLoading:!0});const{status:n,data:a}=await(({id:e,name:t,files:o})=>{const{api:n}=f.a.get("wp"),a=f.a.get("editorVersion"),r=Ee(n.url,{action:n.createFont,hash:n.hash,version:a}),i=new FormData;return i.append("id",e),i.append("family",t),Object.entries(o).forEach(([e,t])=>{Object.entries(t).forEach(([t,o])=>{o&&i.append(`fonts[${e}][${t}]`,o,o.name)})}),Object(pe.I)(r,{method:"POST",body:i}).then(ke).then(e=>e)})({id:Object($r.a)(),name:t,files:e});200!==n?this.setState({nextLoading:!1,error:Object(ie.a)("Something went wrong")}):(this.props.dispatch(Object(Io.f)([{type:"upload",fonts:[a]}])),o())}),Object(i.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(pe.F)(),this.context.onChangePrev()})}getDefaultData(){return{weight:"400",ttf:"",eot:"",woff:"",woff2:""}}getAddData(){const{weight:e,ttf:t,eot:o,woff:n,woff2:a}=this.state.keyValue;return[{title:Object(ie.a)("Font weight"),name:"weight",type:"select",value:e,choices:Zr(yo.w)},{title:Object(ie.a)("TTF File"),name:"ttf",value:t,type:"upload",accept:".ttf",helper:"The Web Open Font Format (TTF) is a format used in web pages by modern browsers."},{title:Object(ie.a)("EOT File"),name:"eot",value:o,type:"upload",accept:".eot",helper:"The Web Open Font Format (EOT) is a format used in web pages by modern browsers."},{title:Object(ie.a)("WOFF File"),name:"woff",value:n,type:"upload",accept:".woff",helper:"The Web Open Font Format (WOFF) is a format used in web pages by modern browsers."},{title:Object(ie.a)("WOFF2 File"),name:"woff2",value:a,type:"upload",accept:".woff2",helper:"The Web Open Font Format (WOFF2) is a format used in web pages by modern browsers."}]}getEditData(){const{data:{fontName:e,weights:t}}=this.context.app;return t.map(t=>({id:t,title:e,type:yo.w[t]}))}render(){const{mode:e,nextLoading:t,prevLoading:o,addLoading:n,error:a}=this.state;return"add"===e?s.a.createElement(Ur,{data:this.getAddData(),error:a,nextLoading:t,prevLoading:o,onNext:this.handleAddFonts,onPrev:this.handlePrev,onActive:this.handleUploadFonts}):s.a.createElement(qr,{data:this.getEditData(),error:a,nextLoading:t,prevLoading:o,createLoading:n,onNext:this.handleNext,onPrev:this.handlePrev,onCreate:this.handleChangeAddMode,onActive:this.handleRemoveFonts})}}Object(i.a)(Jr,"contextType",be);var Qr=Object(Jt.b)()(Jr);class ei extends Et{}Object(i.a)(ei,"upload",Vr),Object(i.a)(ei,"variation",Qr),Object(i.a)(ei,"done",Lr);var ti=ei;const oi=f.a.get("pro");var ni=class extends we{constructor(...e){super(...e),Object(i.a)(this,"appsData",[]),Object(i.a)(this,"appsComponent",r),Object(i.a)(this,"proExceptions",!oi),Object(i.a)(this,"handleConnectApp",async e=>{const t=e.id,{stages:o=[]}=this.appsData.find(e=>e.id===t)||{};await Object(pe.F)(),this.setState(Object(c.a)(n=>{n.stages=o,n.connectedApp=t,n.data[t]=e}),()=>{this.handleNext()})})}async componentDidMount(){const e=Object(ue.a)("integrations.json"),t=await fetch(e),{fonts:o}=await t.json();this.appsData=o,this.setState({loading:!1})}};const ai=[{id:"upload",title:Object(ie.a)("Add New"),icon:"nc-add",component:ni},{id:"fonts",title:Object(ie.a)("Fonts"),icon:"nc-font",component:Er}];class ri extends l.Component{render(){const{opened:e,onClose:t}=this.props;return s.a.createElement(de,{opened:e,tabs:ai,currentTab:"upload",blockTabsWhenLoading:!1,onClose:t})}}Object(i.a)(ri,"defaultProps",{opened:!1,onClose:v.noop});var ii=ri;var li=e=>s.a.createElement("div",{className:"brz-ed-popup-conditions__buttons"},s.a.createElement("button",{className:"brz-button brz-button__cancel",onClick:e.onClose},Object(ie.a)("Cancel")),s.a.createElement("button",{className:"brz-button brz-button__save",onClick:e.onChange},e.loading?s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}):Object(ie.a)("Save")));function si({showTypeButton:e=!0,active:t,children:o,onChange:n,onRemove:a}){const r=t?"include":"exclude",i=t?s.a.createElement(_.b,{icon:"nc-include"}):s.a.createElement(_.b,{icon:"nc-none"}),l=g()("brz-ed-popup-conditions__type","brz-ed-popup-conditions__type-"+r);return s.a.createElement("div",{className:"brz-ed-popup-conditions__condition brz-d-xs-flex"},e&&s.a.createElement("div",{className:l,onClick:()=>n({active:!t})},s.a.createElement("span",{className:"brz-ed-popup-conditions__type-text"},i,Object(Nt.c)(r))),s.a.createElement("div",{className:"brz-ed-popup-conditions__select brz-d-xs-flex"},o),s.a.createElement("div",{className:"brz-ed-popup-conditions__remove",onClick:a},s.a.createElement(_.b,{icon:"nc-trash"})))}var ci=o(125);const di=1,ui=2,pi=16;function bi(e,{appliedFor:t,entityType:o}){return e.findIndex(({groupValue:e,value:n})=>e===t&&n===o)}function mi(e,t){if(!t.length)return t;let o=t;return e.forEach(e=>{const n=bi(t,e);if(e.appliedFor!==di&&e.appliedFor!==ui)o=Object(Qe.setIn)(o,[n,"disabled"],!0);else{const{items:t}=o[n];if(t&&e.entityValues.length){const a=t.findIndex(({value:{_id:t}})=>e.entityValues.includes(t));-1!==a&&(o=Object(Qe.setIn)(o,[n,"items",a,"disabled"],!0))}}}),o}function hi(e){return e.filter((function(t,o){return e.findIndex(({appliedFor:e,entityType:o,entityValues:n})=>e===t.appliedFor&&o===t.entityType&&v.default.isEqual(n,t.entityValues))>=o})).map(e=>{let{id:t}=e;return Object(C.a)(e,["id"])})}class gi extends s.a.Component{renderGroupOptions(e){return[{title:"All",groupValue:"",value:""},...e].map(({title:e,value:t,groupValue:o,disabled:n})=>s.a.createElement(S.a,{key:"key-"+t,value:`${o}|${t}`,disabled:n},e))}renderTypeOptions(e){return[{title:"All",value:""},...e].map((e,o)=>e.items?s.a.createElement(ci.a,{key:o,title:e.title,items:e.items.map(t)},s.a.createElement("span",{className:"brz-span"},e.title)):t(e));function t({title:e,value:t}){return s.a.createElement(S.a,{key:t,value:t},e)}}render(){const{rulesList:e,rule:t,onGroupChange:o,onTypeChange:n}=this.props,a=e[bi(e,t)];return s.a.createElement("div",{className:"brz-ed-popup-conditions__select brz-d-xs-flex"},s.a.createElement(O.a,{className:"brz-control__select--light",maxItems:6,itemHeight:30,defaultValue:`${t.appliedFor}|${t.entityType}`,onChange:o},this.renderGroupOptions(e)),a&&a.items&&s.a.createElement(O.a,{defaultValue:t.entityValues[0],className:"brz-control__select--light",maxItems:6,itemHeight:30,onChange:n},this.renderTypeOptions(a.items)))}}Object(i.a)(gi,"defaultProps",{rulesList:[],rule:{},onGroupChange:v.default.noop,onTypeChange:v.default.noop});var vi=gi;function fi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function yi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):fi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Oi extends s.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleRemove",e=>{this.props.onChange(Object(Qe.removeAt)(this.props.rules,e))}),Object(i.a)(this,"handleVisibilityTypeChange",(e,t)=>{t=t?1:2;const o=Object(Qe.setIn)(this.props.rules,[e,"type"],Number(t));this.props.onChange(o)}),Object(i.a)(this,"handleGroupChange",(e,t)=>{const{rules:o}=this.props;let[n,a]=e.split("|");const r=yi(yi({},o[t]),{},{entityType:a,appliedFor:""===n||null===n?null:Number(n),entityValues:[]});this.props.onChange(Object(Qe.setIn)(o,[t],r))}),Object(i.a)(this,"handleTypeChange",(e,t)=>{const{rules:o}=this.props,n=e?[e]:[];this.props.onChange(Object(Qe.setIn)(o,[t,"entityValues"],n))})}render(){const{rules:e,rulesList:t}=this.props;return e.map((e,o)=>{let{type:n}=e,a=Object(C.a)(e,["type"]);const r=1===n;return s.a.createElement(si,{key:o,active:r,index:o,onChange:()=>this.handleVisibilityTypeChange(o,!r),onRemove:()=>this.handleRemove(o)},s.a.createElement(vi,{rule:a,rulesList:t,onGroupChange:e=>this.handleGroupChange(e,o),onTypeChange:e=>this.handleTypeChange(e,o)}))})}}Object(i.a)(Oi,"defaultProps",{rules:[],rulesList:[],onChange:v.default.noop});var Si=Oi;function Ci(e){const{className:t,type:o="text",placeholder:n="",value:a="",onChange:r=(()=>{})}=e,i=g()("brz-input",t);return s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:i,type:o,placeholder:n,value:a,onChange:({target:{value:e}})=>r(e)}))}function xi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ji(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):xi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Bi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Pi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Bi(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Bi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function wi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ti(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?wi(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):wi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const zi={search_engines:"Any Search Engine",bing:"Bing",yandex:"Yandex",yahoo:"Yahoo",baidu:"Baidu","so.com":"So.com","360.cn":"360.cn",aol:"AOL",duckduckgo:"DuckDuckGo","ask.com":"Ask.com","mail.ru":"Mail.ru",sogou:"Sogou"},Ei={social_networks:"Any Social Networks",facebook:"Facebook",pinterest:"Pinterest",twitter:"Twitter",linkedin:"LinkedIn"},ki={external:"External Links",internal:"Internal Links"};function Hi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function _i(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Hi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Fi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ri(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Fi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Mi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Li(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Mi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Wi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ii(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Wi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Ni(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ai(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ni(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Di(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Vi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Di(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function $i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Gi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):$i(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Ui={android:"Android",bada:"Bada",blackberry:"BlackBerry OS",chromeOs:"Chrome OS",firefoxOs:"Firefox OS",ios:"IOS",linux:"Linux",mac:"Mac OS",windows:"Windows"};function Ki(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function qi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ki(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ki(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Yi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Xi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Yi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Zi=[{id:"pageLoad",title:"On Page Load",type:"number",placeholder:"After (sec)",Component:Ci},{id:"scrolling",title:"On Scroll",defaultValue:{value:"down",within:"",toElement:""},duplicatesAmount:1/0,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:e=>o(ji(ji({},t),{},{value:e}))},s.a.createElement(S.a,{key:"down",value:"down"},"Down"),s.a.createElement(S.a,{key:"up",value:"up"},"Up"),s.a.createElement(S.a,{key:"toElement",value:"toElement"},"To element")),"down"===t.value&&s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:"brz-input",type:"number",placeholder:"% of page height",value:t.within,onChange:({target:{value:e}})=>o(ji(ji({},t),{},{within:e}))})),"toElement"===t.value&&s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:"brz-input",type:"text",placeholder:".my-class",value:t.toElement||"",onChange:({target:{value:e}})=>o(ji(ji({},t),{},{toElement:e}))})))}},{id:"click",title:"On Click",type:"number",placeholder:"clicks",Component:Ci},{id:"inactivity",title:"After Inactivity",type:"number",placeholder:"After (sec)",Component:Ci},{id:"exitIntent",title:"On Page Exit Intent",defaultValue:!0},{id:"showing",title:"Show After X",defaultValue:{value:"views",type:"equals",views:5,sessions:3},duplicatesAmount:2,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:e=>o(Pi(Pi({},t),{},{value:e}))},s.a.createElement(S.a,{key:"views",value:"views"},"viewed pages"),s.a.createElement(S.a,{key:"sessions",value:"sessions"},"Sessions")),s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Pi(Pi({},t),{},{type:e}))},s.a.createElement(S.a,{key:"is fewer",value:"is fewer"},"is fewer than"),s.a.createElement(S.a,{key:"equals",value:"equals"},"equals"),s.a.createElement(S.a,{key:"is more",value:"is more"},"is more than")),s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:"brz-input",type:"number",placeholder:"Number of",value:t[t.value],onChange:({target:{value:e}})=>o(Pi(Pi({},t),{},{[t.value]:e}))})))}},{id:"referrer",title:"Arriving From",defaultValue:{type:"is",value:"show",url:"",source:"search_engines"},duplicatesAmount:1/0,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:e=>o(Ti(Ti({},t),{},{value:e}))},s.a.createElement(S.a,{key:"show",value:"show"},"Show"),s.a.createElement(S.a,{key:"hide",value:"hide"},"Hide"),s.a.createElement(S.a,{key:"regex",value:"regex"},"Regex"),s.a.createElement(S.a,{key:"source",value:"source"},"Source")),"source"===t.value?[s.a.createElement(O.a,{key:"type",className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Ti(Ti({},t),{},{type:e}))},s.a.createElement(S.a,{key:"is",value:"is"},"is"),s.a.createElement(S.a,{key:"is not",value:"is not"},"is not")),s.a.createElement(O.a,{className:"brz-control__select--light",key:"source",itemHeight:30,defaultValue:t.source,onChange:e=>o(Ti(Ti({},t),{},{source:e}))},s.a.createElement(ci.a,{key:"Organic",title:"Organic",items:n(zi)},s.a.createElement("span",{className:"brz-span"},"Organic")),s.a.createElement(ci.a,{key:"Social Networks",title:"Social Networks",items:n(Ei)},s.a.createElement("span",{className:"brz-span"},"Networks")),s.a.createElement(ci.a,{key:"Other",title:"Other",items:n(ki)},s.a.createElement("span",{className:"brz-span"},"Other")))]:s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:"brz-input",type:"text",placeholder:"URL",value:t.url,onChange:({target:{value:e}})=>o(Ti(Ti({},t),{},{url:e}))})));function n(e){return Object.entries(e).map(([e,t])=>s.a.createElement(S.a,{key:e,value:e},t))}}},{id:"loggedIn",title:"Hide for logged in users",defaultValue:{value:"all",user:void 0},duplicatesAmount:1/0,Component:function(e){const{value:t={},onChange:o=(()=>{})}=e,{availableRoles:n}=f.a.get("wp");let a=null;return"custom"===t.value&&(a=Array.isArray(n)&&n.length?s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.user,onChange:e=>o(_i(_i({},t),{},{user:e}))},n.map(({role:e,name:t})=>s.a.createElement(S.a,{key:e,value:e},t))):s.a.createElement("span",null,"There are no available users. Add user first")),s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:function(e){var t;const a="all"===e?{value:e}:{value:e,user:null==n||null===(t=n[0])||void 0===t?void 0:t.role};o(a)}},s.a.createElement(S.a,{key:"all",value:"all"},"All users"),s.a.createElement(S.a,{key:"custom",value:"custom"},"Custom")),a)}},{id:"devices",title:"Show on devices",defaultValue:"desktop",duplicatesAmount:3,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t,onChange:e=>o(e)},s.a.createElement(S.a,{key:"desktop",value:"desktop"},"Desktop"),s.a.createElement(S.a,{key:"tablet",value:"tablet"},"Tablet"),s.a.createElement(S.a,{key:"mobile",value:"mobile"},"Mobile")))}},{id:"currentUrl",title:"Current Page URL",defaultValue:{type:"matches",value:""},duplicatesAmount:1/0,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Ri(Ri({},t),{},{type:e}))},s.a.createElement(S.a,{key:"matches",value:"matches"},"matches"),s.a.createElement(S.a,{key:"contains",value:"contains"},"contains"),s.a.createElement(S.a,{key:"does not contain",value:"does not contain"},"does not contain"),s.a.createElement(S.a,{key:"does not match",value:"does not match"},"does not match")),s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:"brz-input",type:"text",placeholder:"URL",value:t.value,onChange:({target:{value:e}})=>o(Ri(Ri({},t),{},{value:e}))})))}},{id:"currentDate",title:"Current Date",defaultValue:{type:"matches",value:""},duplicatesAmount:1/0,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e,n=(new Date).toJSON().slice(0,10).split("-").reverse().join("/");return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Li(Li({},t),{},{type:e}))},s.a.createElement(S.a,{key:"before",value:"before"},"is before"),s.a.createElement(S.a,{key:"matches",value:"matches"},"matches"),s.a.createElement(S.a,{key:"after",value:"after"},"is after")),s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:"brz-input",type:"text",placeholder:n,value:t.value,onChange:({target:{value:e}})=>o(Li(Li({},t),{},{value:e}))})))}},{id:"lastVisitDate",title:"Last Visit Date",defaultValue:{type:"matches",value:""},duplicatesAmount:1/0,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e,n=(new Date).toJSON().slice(0,10).split("-").reverse().join("/");return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Ii(Ii({},t),{},{type:e}))},s.a.createElement(S.a,{key:"before",value:"before"},"is before"),s.a.createElement(S.a,{key:"matches",value:"matches"},"matches"),s.a.createElement(S.a,{key:"after",value:"after"},"is after")),s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:"brz-input",type:"text",placeholder:n,value:t.value,onChange:({target:{value:e}})=>o(Ii(Ii({},t),{},{value:e}))})))}},{id:"timeFrom",title:"Time From",defaultValue:{type:"greater",visit:"first",time:"days",value:""},duplicatesAmount:1/0,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.visit,onChange:e=>o(Ai(Ai({},t),{},{visit:e}))},s.a.createElement(S.a,{key:"first",value:"first"},"the first visit"),s.a.createElement(S.a,{key:"last",value:"last"},"the last visit")),s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Ai(Ai({},t),{},{type:e}))},s.a.createElement(S.a,{key:"greater",value:"greater"},"is greater than"),s.a.createElement(S.a,{key:"less",value:"less"},"is less than")),s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:"brz-input",type:"number",placeholder:"Number of",value:t.value,onChange:({target:{value:e}})=>o(Ai(Ai({},t),{},{value:e}))})),s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.time,onChange:e=>o(Ai(Ai({},t),{},{time:e}))},s.a.createElement(S.a,{key:"days",value:"days"},"days"),s.a.createElement(S.a,{key:"hours",value:"hours"},"hours")))}},{id:"cookie",title:"Cookie",defaultValue:{type:"matches",param:"",value:""},duplicatesAmount:1/0,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:"brz-input",type:"text",placeholder:"param",value:t.param,onChange:({target:{value:e}})=>o(Vi(Vi({},t),{},{param:e}))})),s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Vi(Vi({},t),{},{type:e}))},s.a.createElement(S.a,{key:"matches",value:"matches"},"matches"),s.a.createElement(S.a,{key:"contains",value:"contains"},"contains"),s.a.createElement(S.a,{key:"does not contain",value:"does not contain"},"does not contain"),s.a.createElement(S.a,{key:"does not match",value:"does not match"},"does not match")),s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:"brz-input",type:"text",placeholder:"value",value:t.value,onChange:({target:{value:e}})=>o(Vi(Vi({},t),{},{value:e}))})))}},{id:"os",title:"Operating System",defaultValue:{type:"is",value:"windows"},duplicatesAmount:1/0,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Gi(Gi({},t),{},{type:e}))},s.a.createElement(S.a,{key:"is",value:"is"},"is"),s.a.createElement(S.a,{key:"is not",value:"is not"},"is not")),s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:e=>o(Gi(Gi({},t),{},{value:e}))},(n=Ui,Object.entries(n).map(([e,t])=>s.a.createElement(S.a,{key:e,value:e},t)))));var n}},{id:"otherPopups",title:"No other popup",defaultValue:{type:"was",value:"page"},duplicatesAmount:1,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(qi(qi({},t),{},{type:e}))},s.a.createElement(S.a,{key:"was",value:"was"},"was shown"),s.a.createElement(S.a,{key:"was not",value:"was not"},"was not shown")),s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:e=>o(qi(qi({},t),{},{value:e}))},s.a.createElement(S.a,{key:"page",value:"page"},"on the same page"),s.a.createElement(S.a,{key:"session",value:"session"},"during the session")))}},{id:"specificPopup",title:"Other specific popup",defaultValue:{type:"was",value:""},duplicatesAmount:1/0,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Xi(Xi({},t),{},{type:e}))},s.a.createElement(S.a,{key:"was",value:"was"},"was shown"),s.a.createElement(S.a,{key:"was not",value:"was not"},"was not shown")),s.a.createElement("div",{className:"brz-control__select"},s.a.createElement("input",{className:"brz-input",type:"text",placeholder:"#popup-id",value:t.value,onChange:({target:{value:e}})=>o(Xi(Xi({},t),{},{value:e}))})))}}];function Ji(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Qi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ji(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ji(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class el extends s.a.Component{constructor(e){super(e),Object(i.a)(this,"handleChange",()=>{if(A.g){const{values:e,triggerOnce:t}=this.state,o={id:"triggerOnce",active:!0,value:t};this.setState({loading:!0},()=>{const t={syncSuccess:()=>this.setState({loading:!1}),syncFail:()=>this.setState({loading:!1})};this.props.dispatch(Object(ko.P)([...e,o],t))})}}),Object(i.a)(this,"handleTriggerOnceChange",e=>{A.g&&this.setState({triggerOnce:e})}),Object(i.a)(this,"handleWrapperTriggerChange",(e,t)=>{A.g&&this.setState({values:Object(Qe.setIn)(this.state.values,[e],Qi(Qi({},this.state.values[e]),t))})}),Object(i.a)(this,"handleWrapperTriggerRemove",e=>{A.g&&this.setState({values:Object(Qe.removeAt)(this.state.values,e)})}),Object(i.a)(this,"handleValueChange",(e,t)=>{A.g&&this.setState({values:Object(Qe.setIn)(this.state.values,[e,"value"],t)})}),Object(i.a)(this,"handleAdd",()=>{if(A.g){const{values:e}=this.state,t=this.getAvailableItems();t[0]&&this.setState({values:[...e,{id:t[0].id,active:!0,value:t[0].defaultValue}]})}});const t=e.values.find(({id:e})=>"triggerOnce"===e)||{},o=Object(Qe.removeAt)(e.values,e.values.indexOf(t));this.state={triggerOnce:t.value||!1,values:o,loading:!1}}handleTriggerChange(e,t){const{values:o}=this.state,{defaultValue:n}=Zi.find(({id:e})=>e===t),a=Object(Qe.setIn)(o,[e],Qi(Qi({},o[e]),{},{id:t,value:n}));this.setState({values:a})}getAvailableItems(e){const{values:t}=this.state;let o=t.reduce((e,{id:t})=>(e[t]?e[t]++:e[t]=1,e),{});return Zi.filter(({id:n,duplicatesAmount:a=1})=>{const r=t.find(e=>e.id===n),i=o[n]&&a>o[n];return e===n||i||!r}).sort(({id:e,duplicatesAmount:o=0},{id:n,duplicatesAmount:a=0})=>{const r=t.find(t=>t.id===e),i=t.find(e=>e.id===n);return r?1:i?-1:o>a?1:o<a?-1:0})}renderTriggers(e){const{values:t}=this.state,o=t[e].id,n=this.getAvailableItems(o).map(({id:e,title:t},o)=>s.a.createElement(S.a,{key:o,value:e},t));return s.a.createElement(O.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:o,onChange:t=>this.handleTriggerChange(e,t)},n)}render(){const{values:e,triggerOnce:t}=this.state,o=e.map((e,t)=>{const o=Zi.find(({id:t})=>t===e.id)||{},{Component:n}=o,a=Object(C.a)(o,["Component"]),r=n?s.a.createElement(n,Object(x.a)({},a,e,{onChange:e=>this.handleValueChange(t,e)})):null;return s.a.createElement(si,{showTypeButton:!1,key:t,active:e.active,onChange:e=>this.handleWrapperTriggerChange(t,e),onRemove:()=>this.handleWrapperTriggerRemove(t)},this.renderTriggers(t),r)});return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"brz-ed-popup-conditions__trigger-once"},s.a.createElement("div",null,Object(ie.a)("Trigger Popup Only Once")),s.a.createElement(Je.a,{defaultValue:t,onChange:this.handleTriggerOnceChange})),s.a.createElement(it.a,{style:{overflow:"hidden",height:"350px"},className:"brz-ed-scroll--medium brz-ed-scroll--new-dark"},o,s.a.createElement("div",{className:"brz-ed-popup-conditions__add-condition",onClick:this.handleAdd},s.a.createElement(_.b,{icon:"nc-add"})," ",Object(ie.a)("Add new trigger condition"))),s.a.createElement(li,{loading:this.state.loading,onChange:this.handleChange,onClose:this.props.onClose}))}}var tl={rules:function({value:e=[],asyncGetValue:t,onClose:o=(()=>{}),onChange:n=(()=>{})}){const[a,r]=Object(l.useState)(e),[i,c]=Object(l.useState)(!1),[d,u]=Object(l.useState)(null),[p,b]=function(e){const[t,o]=Object(l.useState)([]),[n,a]=Object(l.useState)(!0);return Object(l.useEffect)(()=>{!async function(){a(!0);const e=(await Object(pe.m)()||[]).map(({items:e})=>e).flat();a(!1),o(e)}()},[]),Object(l.useEffect)(()=>{t.length&&async function(){const n=function(e){return e.reduce((e,t)=>(e.find(({appliedFor:e,entityType:o})=>e===t.appliedFor&&o===t.entityType)||e.push(t),e),[])}(e);let a=t;n.forEach(async e=>{const n=bi(t,e),r=e.appliedFor,i=t[n]&&t[n].items;if([di,ui,pi].includes(r)&&!i){let t=[];switch(r){case di:case pi:{const{posts:o}=await Object(pe.v)(e.entityType);t=o.map(({ID:e,title:t})=>({title:t,value:e}));break}case ui:t=(await Object(pe.D)(e.entityType)).map(({name:e,term_id:t})=>({title:e,value:t}));break}a=Object(Qe.setIn)(a,[n,"items"],t),o(a)}})}()},[e,t]),[n,mi(e,t)]}(a);return Object(l.useEffect)(()=>{t&&async function(){const e=await t()||[];r(e)}()},[]),s.a.createElement(s.a.Fragment,null,p?s.a.createElement("div",{className:"brz-ed-popup-conditions__spin"},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"})):s.a.createElement(it.a,{style:{overflow:"hidden",height:"350px"},className:"brz-ed-scroll--medium brz-ed-scroll--new-dark"},s.a.createElement(Si,{rules:a,rulesList:b,onChange:function(e){A.g&&r(e)}}),s.a.createElement("div",{className:"brz-ed-popup-conditions__add-condition",onClick:function(){A.g&&r([...a,{type:1,appliedFor:di,entityType:"page",entityValues:[]}])}},s.a.createElement(_.b,{icon:"nc-add"})," ",Object(ie.a)("Add new display condition"))),d&&s.a.createElement("div",{className:"error"},d),s.a.createElement(li,{loading:i,onChange:function(){A.g&&(c(!0),u(null),n({data:{rules:hi(a)},meta:{syncSuccess:()=>c(!1),syncFail:e=>{c(!1),u(e.responseJSON.data.message)}}}))},onClose:o}))},triggers:Object(Jt.b)(e=>({values:Object(go.G)(e)}),e=>({dispatch:e}))(el)};const ol=f.a.get("urls");class nl extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{activeTab:this.props.options[0].type}),Object(i.a)(this,"handleTabChange",e=>this.setState({activeTab:e}))}renderIcons(){const{options:e}=this.props,{activeTab:t}=this.state;return e.map(e=>{const o=g()("brz-ed-popup-tab-item","brz-ed-popup-tab-item-conditions",{active:t===e.type});return s.a.createElement("div",{key:e.type,className:o,onClick:()=>this.handleTabChange(e.type)},s.a.createElement("div",{className:"brz-ed-popup-tab-icon"},s.a.createElement(_.b,{icon:e.icon})),s.a.createElement("div",{className:"brz-ed-popup-tab-name"},e.label))})}renderProException(){return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-pro brz-mb-lg-0"},s.a.createElement("span",{className:"brz-span"},Object(ie.a)("Block conditions are available only in PRO")),s.a.createElement("a",{className:"brz-ed-btn brz-ed-btn-width-2 brz-ed-btn-sm brz-ed-btn-icon brz-ed-btn-icon--left brz-ed-btn-rounded brz-ed-btn-pro",rel:"noopener noreferrer",href:ol.upgradeToPro,target:"_blank"},s.a.createElement(_.b,{icon:"nc-lock"}),Object(ie.a)("Get Brizy PRO")))}render(){const{options:e,opened:t,onClose:o}=this.props,{activeTab:n}=this.state,a=tl[n],r=e.find(({type:e})=>e===n),{type:i,icon:l,label:c,title:d}=r,u=Object(C.a)(r,["type","icon","label","title"]);return s.a.createElement(y.a,{opened:t,onClose:o},s.a.createElement("div",{className:"brz-ed-popup-wrapper"},s.a.createElement("div",{className:"brz-ed-popup-header"},s.a.createElement("div",{className:"brz-ed-popup-header__tabs"},this.renderIcons()),s.a.createElement("div",{className:"brz-ed-popup-btn-close",onClick:o})),s.a.createElement("div",{className:"brz-ed-popup-content brz-ed-popup-pane brz-ed-popup-icons"},s.a.createElement("div",{className:"brz-ed-popup-body"},!A.g&&this.renderProException(),s.a.createElement("div",{className:g()("brz-ed-popup-conditions",{"brz-ed-popup-conditions__free":!A.g})},s.a.createElement("div",{className:"brz-ed-popup-conditions__head"},s.a.createElement("h3",null,d)),s.a.createElement("div",{className:"brz-ed-popup-conditions__body"},s.a.createElement(a,Object(x.a)({},u,{onClose:o}))))))))}}Object(i.a)(nl,"defaultProps",{options:[],onChange:()=>{},onClose:()=>{}});const al={updateAuthorization:Io.v,updateSyncAllowed:Io.B},rl=Object(Jt.b)(null,al),il=Boolean(f.a.get("wp")),ll=[{title:"username",name:"username",required:!0},{title:"password",name:"password",type:"password",required:!0}];class sl extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{data:null,loading:!0,nextLoading:!1,prevLoading:!1,recoverLoading:!1,notice:null,formData:{username:"",password:"",recoverEmail:""}}),Object(i.a)(this,"handleChange",(e,t)=>{void 0!==this.state.formData[e]&&this.setState(Object(c.a)(o=>{o.formData[e]=t}))}),Object(i.a)(this,"handleConnect",()=>{const{username:e,password:t}=this.state.formData,{onSuccess:o,onClose:n,updateAuthorization:a,updateSyncAllowed:r}=this.props;this.setState({notice:null,nextLoading:!0}),e&&e.trim()&&t&&t.trim()?(e=>{const{hash:t,url:o,cloudSignIn:n}=f.a.get("wp").api,a=f.a.get("editorVersion"),r=Ee(o,{hash:t,version:a,action:n});return Object(pe.I)(r,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(e)}).then(ke).then(e=>e)})({password:t,email:e}).then(e=>{if(!e.status||e.status>=400)throw e;a("connected"),Object(Uo.b)("connected"),il&&$o().then(e=>{const{status:t,data:o}=e||{};!t||t>=400?console.warn("Something went wrong",e):(null==o?void 0:o.isSyncAllowed)&&r(!0)}),o&&o(),n&&n()}).catch(e=>{this.setState({nextLoading:!1,notice:{message:Object(ie.a)("Incorrect username or password"),type:"error"}})}):this.setState({nextLoading:!1,notice:{message:Object(ie.a)("Incorrect username or password"),type:"error"}})}),Object(i.a)(this,"handleSkip",async()=>{const{onSkip:e,onClose:t,updateAuthorization:o}=this.props;this.setState({prevLoading:!0}),await Object(pe.F)(),this.setState({prevLoading:!1}),o("pending"),Object(Uo.b)("pending"),e&&e(),t&&t()}),Object(i.a)(this,"handleRecover",async()=>{const{recoverEmail:e}=this.state.formData;this.setState({notice:null,recoverLoading:!0}),Le(e)?e&&e.trim()?(e=>{const{hash:t,url:o,cloudResetPassword:n}=f.a.get("wp").api,a=f.a.get("editorVersion"),r=Ee(o,{hash:t,version:a,action:n});return Object(pe.I)(r,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({email:e})}).then(ke).then(e=>e)})(e).then(e=>{if(!e.status||e.status>=400)throw e;this.setState({recoverLoading:!1,notice:{message:Object(ie.a)("Check your email address"),type:"success"}})}).catch(e=>{this.setState({recoverLoading:!1,notice:{message:Object(ie.a)("Failed to reset password"),type:"error"}})}):(await Object(pe.F)(),this.setState({recoverLoading:!1,notice:{message:Object(ie.a)("Email to recover password cannot be empty"),type:"error"}})):this.setState({recoverLoading:!1,notice:{message:Object(ie.a)("The email address format is not valid"),type:"error"}})})}async componentDidMount(){const e=Object(ue.a)("integrations.json"),t=await fetch(e),{cloudAuthorization:o}=await t.json(),{onLoading:n}=this.props;this.setState({data:o,loading:!1}),n&&n(!1)}renderLoading(){return s.a.createElement("div",{className:"brz-ed-popup-content--loading"},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))}renderNotice(){const{notice:e}=this.state;if(null!==e){const{message:t,type:o}=e;return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-"+o},s.a.createElement("span",{className:"brz-span"},t))}}renderContent(){if(this.state.data){const{data:{img:e,signInDescription:t},formData:{recoverEmail:o},notice:n,nextLoading:a,prevLoading:r,recoverLoading:i}=this.state;return s.a.createElement(P.a,{className:"brz-text-lg-center"},s.a.createElement("div",{className:"brz-ed-popup-integrations__connect-head"},s.a.createElement("img",{className:"brz-img",src:e,alt:"Brizy"}),s.a.createElement("p",{className:"brz-p"},t)),s.a.createElement("div",{className:"brz-ed-popup-integrations__connect-body"},n&&this.renderNotice(),ll.map(({title:e,name:t,required:o,type:n="text"},a)=>s.a.createElement(Ke,{key:a,title:e,type:n,value:this.state.formData[t]||"",required:o,onChange:({target:e})=>{this.handleChange(t,e.value)}})),s.a.createElement("div",{className:"brz-ed-popup-authorization__buttons"},s.a.createElement($e,{color:"teal",loading:a,onClick:this.handleConnect},Object(ie.a)("Connect")),s.a.createElement($e,{color:"default",loading:r,onClick:this.handleSkip},Object(ie.a)("Skip"))),s.a.createElement(Ke,{title:"Email to recover password",icon:"nc-right-arrow-tail",loading:i,value:o||"",onChange:({target:e})=>{this.handleChange("recoverEmail",e.value)},onClickIcon:this.handleRecover})))}}render(){const e=g()("brz-ed-popup-authorization",this.props.className);return s.a.createElement("div",{className:e},this.state.loading?this.renderLoading():this.renderContent())}}Object(i.a)(sl,"defaultProps",{className:"",onSuccess:v.noop,onSkip:v.noop,onClose:v.noop,onLoading:v.noop});var cl=rl(sl);const dl=Boolean(f.a.get("wp")),ul=[{title:"email",name:"email",required:!0},{title:"password",name:"password",type:"password",required:!0},{title:"Confirm Password",name:"confirmPassword",type:"password",required:!0}],pl={updateAuthorization:Io.v,updateSyncAllowed:Io.B},bl=Object(Jt.b)(null,pl);class ml extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{data:null,notice:null,nextLoading:!1,loading:!0,formData:{email:"",password:"",confirmPassword:""}}),Object(i.a)(this,"handleChange",(e,t)=>{void 0!==this.state.formData[e]&&this.setState(Object(c.a)(o=>{o.formData[e]=t}))}),Object(i.a)(this,"handleConnect",async()=>{const{onSuccess:e,onClose:t,updateAuthorization:o,updateSyncAllowed:n}=this.props,{email:a,password:r,confirmPassword:i}=this.state.formData;Le(a)?r===i?(this.setState({notice:null,nextLoading:!0}),(null==a?void 0:a.trim())&&(null==r?void 0:r.trim())&&(null==i?void 0:i.trim())?(e=>{const{hash:t,url:o,cloudSignUp:n}=f.a.get("wp").api,a=f.a.get("editorVersion"),r=Ee(o,{hash:t,version:a,action:n});return Object(pe.I)(r,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(e)}).then(ke).then(e=>e)})({email:a,password:r,confirmPassword:i}).then(a=>{if(!a.status||a.status>=400)throw a;o("connected"),Object(Uo.b)("connected"),dl&&$o().then(e=>{const{status:t,data:o}=e||{};!t||t>=400?console.warn("Something went wrong",e):(null==o?void 0:o.isSyncAllowed)&&n(!0)}),e&&e(),t&&t()}).catch(e=>{this.setState({nextLoading:!1,notice:{message:Object(ie.a)("Incorrect username or password"),type:"error"}})}):this.setState({nextLoading:!1,notice:{message:Object(ie.a)("All fields cannot be empty"),type:"error"}})):this.setState({nextLoading:!1,notice:{message:Object(ie.a)("Password and confirm password is not the same"),type:"error"}}):this.setState({nextLoading:!1,notice:{message:Object(ie.a)("The email address format is not valid"),type:"error"}})})}async componentDidMount(){const e=Object(ue.a)("integrations.json"),t=await fetch(e),{cloudAuthorization:o}=await t.json(),{onLoading:n}=this.props;this.setState({data:o,loading:!1}),n&&n(!1)}renderLoading(){return s.a.createElement("div",{className:"brz-ed-popup-content--loading"},s.a.createElement(_.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))}renderNotice(){const{notice:e}=this.state;if(e){const{message:t,type:o}=e;return s.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-"+o},s.a.createElement("span",{className:"brz-span"},t))}}renderContent(){if(this.state.data){const{data:{img:e,signUpDescription:t},nextLoading:o}=this.state;return s.a.createElement(P.a,{className:"brz-text-lg-center"},s.a.createElement("div",{className:"brz-ed-popup-integrations__connect-head"},s.a.createElement("img",{className:"brz-img",src:e,alt:"Brizy"}),s.a.createElement("p",{className:"brz-p"},t)),s.a.createElement("div",{className:"brz-ed-popup-integrations__connect-body"},this.renderNotice(),ul.map(({title:e,name:t,required:o,type:n="text"},a)=>s.a.createElement(Ke,{key:a,title:e,type:n,value:this.state.formData[t]||"",required:o,onChange:({target:e})=>{this.handleChange(t,e.value)}})),s.a.createElement("div",{className:"brz-ed-popup-authorization__buttons"},s.a.createElement($e,{color:"teal",loading:o,onClick:this.handleConnect},Object(ie.a)("Create Account & Connect")))))}}render(){const e=g()("brz-ed-popup-authorization",this.props.className);return s.a.createElement("div",{className:e},this.state.loading?this.renderLoading():this.renderContent())}}Object(i.a)(ml,"defaultProps",{className:"",onSuccess:v.noop,onSkip:v.noop,onClose:v.noop,onLoading:v.noop});var hl=bl(ml);const gl=[{id:"signIn",title:Object(ie.a)("Cloud"),icon:"nc-upload",component:cl},{id:"signUp",title:Object(ie.a)("SignUp"),icon:"nc-add",component:hl}];function vl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function fl(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):vl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const yl={icon:ne,apps:Mt,blocks:cn,form:Cr,keyHelper:jr,fonts:ii,conditions:nl,authorization:({opened:e,onClose:t})=>s.a.createElement(de,{opened:e,tabs:gl,currentTab:"signIn",onClose:t})};class Ol extends l.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{prompts:[]}),Object(i.a)(this,"onUIStateChange",e=>{this.open(e)})}static open(e){m.set("prompt",e)}componentDidMount(){m.addChangeListener("prompt",this.onUIStateChange)}componentWillUnmount(){m.removeChangeListener("prompt",this.onUIStateChange)}close(e){this.setState(Object(c.a)(t=>{t.prompts[e].opened=!1}),()=>{this.setState(Object(c.a)(t=>{t.prompts.splice(e,1)}))})}open(e){const{mode:t="single"}=e,{prompts:o}=this.state,n=o.findIndex(({prompt:t})=>t==e.prompt);-1===n?this.setState(Object(c.a)(t=>{t.prompts.push(e)}),()=>{this.setState(Object(c.a)(e=>{const t=e.prompts.length;e.prompts[t-1].opened=!0}))}):"stack"===t?this.setState(Object(c.a)(t=>{t.prompts[n]=fl(fl({},e),{},{opened:!0})})):this.setState(Object(c.a)(t=>{t.prompts.forEach((e,o)=>{t.prompts[o].opened=!1}),t.prompts[n]=fl(fl({},e),{},{opened:!0})}))}getComponent(e,t){const o=yl[e];return s.a.createElement(o,t)}render(){const{prompts:e}=this.state;return e.length?e.map(({opened:e,prompt:t,props:o={}},n)=>this.getComponent(t,fl(fl({},o),{},{opened:e,key:n,onClose:()=>{this.close(n),o.onClose&&o.onClose()}}))):null}}var Sl=t.a=Ol},function(e,t,o){"use strict";o.d(t,"d",(function(){return b})),o.d(t,"a",(function(){return m})),o.d(t,"e",(function(){return h})),o.d(t,"b",(function(){return g})),o.d(t,"h",(function(){return v})),o.d(t,"c",(function(){return f})),o.d(t,"f",(function(){return y})),o.d(t,"i",(function(){return O})),o.d(t,"g",(function(){return S}));var n=o(2),a=o(48),r=o(41),i=o(39),l=o(132),s=o(215),c=o(214);function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function u(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?d(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const p=Object(i.c)(e=>e&&"px"===e||"%"===e?e:void 0,r.a.read),b=e=>l.a(e("elementPosition")),m=e=>s.a(e("offsetXAlignment")),h=e=>c.a(e("offsetYAlignment")),g=e=>a.a.read(e("offsetX")),v=(e,t,o)=>u(u({},o),e("offsetX",t)),f=e=>p(e("offsetXSuffix")),y=e=>a.a.read(e("offsetY")),O=(e,t,o)=>u(u({},o),e("offsetY",t)),S=e=>p(e("offsetYSuffix"))},function(e,t,o){"use strict";o.d(t,"b",(function(){return b}));var n=o(2),a=o(0),r=o.n(a),i=o(6),l=o.n(i),s=o(49),c=o(23),d=o(19),u=o(155),p=o(179);const b=e=>e.filter(e=>{const{type:t,disabled:o,devices:n,roles:a}=e;if(!t)return!1;if(!0===o)return!1;if(n&&"all"!==n){const e=Object(d.h)(Object(c.b)().getState());if("desktop"===n&&"desktop"!==e)return!1;if("responsive"===n&&"desktop"===e)return!1}if(Array.isArray(a)&&!a.includes(Object(s.b)()))return!1;const r=u.a[t];return!r||"function"!=typeof r.shouldOptionBeFiltered||!u.a[t].shouldOptionBeFiltered(e)});class m extends r.a.Component{render(){const{data:e,className:t,optionClassName:o,toolbar:n,location:a,wrapOptions:i}=this.props,l=b(e).map((e,t)=>r.a.createElement(p.a,{key:e.id||t,className:o,toolbar:n,data:e,location:a}));return i?r.a.createElement("div",{className:t},l):l}}Object(n.a)(m,"propTypes",{wrapOptions:l.a.bool}),Object(n.a)(m,"defaultProps",{className:"",optionClassName:"",location:"",data:null,toolbar:null,wrapOptions:!0}),t.a=m},,function(e,t,o){"use strict";var n=o(105);let a,r={},i={};const l={registerComponent(e){r[e.componentId]=e},getComponents:()=>r,getComponent:e=>r[e]||null,registerNotFoundComponent(e){a=e},getNotFoundComponent(){if(!a)throw new Error("NotFoundComponent not registered");return a},registerShortcode(e){i=e},getShortcodes:()=>Object(n.b)("getShortcodes",i)};t.a=l},function(e,t,o){"use strict";o.d(t,"b",(function(){return a})),o.d(t,"a",(function(){return r})),o.d(t,"d",(function(){return i})),o.d(t,"c",(function(){return l}));var n=o(31);const a=(e,t)=>{const o=t/(e.imageWidth/e.imageHeight);let a=Object(n.a)(e.width||t,0,t),r=e.height||o;if("%"===e.widthSuffix&&(a=e.width*t/100),"%"===e.heightSuffix){const t=a/(e.imageWidth/e.imageHeight);r=e.height*t/100}return{width:Object(n.d)(a,2),height:Object(n.d)(r,2)}},r=(e,t,o=!1)=>{const r=a(e,t);let i=1,l=1;e.imageWidth/r.width<e.imageHeight/r.height?l=Object(n.d)(r.width/e.imageWidth,8):i=Object(n.d)(r.height/e.imageHeight,8);const s=Object(n.d)(e.imageWidth*(e.zoom/100)*l*i,2),c=Object(n.d)(e.imageHeight*(e.zoom/100)*l*i,2),d={imgWidth:s,imgHeight:c,imgMarginWidth:s-Object(n.d)(r.width*(e.zoom/100),2),imgMarginHeight:c-Object(n.d)(r.height*(e.zoom/100),2),wrapperWidth:r.width,wrapperHeight:r.height,positionX:e.positionX,positionY:e.positionY},u=((e,t)=>{let o,n;const a=e.positionX,r=e.positionY,i=e.imgWidth-e.wrapperWidth,l=e.imgHeight-e.wrapperHeight,s=a*e.imgWidth/100,c=r*e.imgHeight/100;return o=s-e.wrapperWidth/2,n=c-e.wrapperHeight/2,e.imgWidth>e.wrapperWidth?(o<0&&(o=0),o>i&&(o=i)):o=t?0:i/2,e.imgHeight>e.wrapperHeight?(n<0&&(n=0),n>l&&(n=l)):n=t?0:l/2,{left:-o,top:-n}})(d,o);return{width:Object(n.d)(d.imgWidth,2),height:Object(n.d)(d.imgHeight,2),marginLeft:Object(n.d)(u.left,2),marginTop:Object(n.d)(u.top,2)}},i=e=>"svg"===e,l=e=>"gif"===e},function(e,t,o){"use strict";o.d(t,"e",(function(){return r})),o.d(t,"b",(function(){return i})),o.d(t,"h",(function(){return l})),o.d(t,"f",(function(){return s})),o.d(t,"i",(function(){return c})),o.d(t,"d",(function(){return d})),o.d(t,"a",(function(){return u})),o.d(t,"c",(function(){return p})),o.d(t,"g",(function(){return b})),o.d(t,"j",(function(){return m})),o.d(t,"k",(function(){return h}));var n=o(17);const a=()=>n.a.get("mode")||"page",r="internal_story"===a(),i="external_story"===a(),l=r||i,s="page"===a(),c="template"===a(),d="internal_popup"===a(),u="external_popup"===a(),p=d||u,b=!!n.a.get("pro"),m=!!n.a.get("wp"),h=e=>"internal_popup"===e||"external_popup"===e},,function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"h",(function(){return a})),o.d(t,"g",(function(){return r})),o.d(t,"i",(function(){return i})),o.d(t,"b",(function(){return l})),o.d(t,"j",(function(){return s})),o.d(t,"c",(function(){return c})),o.d(t,"f",(function(){return d})),o.d(t,"e",(function(){return u})),o.d(t,"d",(function(){return p}));class n{constructor(e){this.name="CustomError",this.message=e,this.date=new Date}getName(){return this.name}getMessage(){return this.message}}class a extends n{constructor(e){super(e),this.name="Project"}}class r extends n{constructor(e){super(e),this.name="Page"}}class i extends n{constructor(e){super(e),this.name="SavedBlocks"}}class l extends n{constructor(e){super(e),this.name="GlobalBlocks"}}class s extends n{constructor(e){super(e),this.name="SavedLayout"}}const c=1,d=2,u=3,p=[c,u]},,,,function(e,t,o){"use strict";function n(){let e="Unknown OS";{const{appVersion:t}=navigator;-1!==t.indexOf("Win")&&(e="Windows"),-1!==t.indexOf("Mac")&&(e="MacOS"),-1!==t.indexOf("Linux")&&(e="Linux")}return e}o.d(t,"a",(function(){return n}))},,,,function(e,t,o){"use strict";var n=o(12),a=o(32),r=o(2),i=o(0),l=o.n(i),s=o(5),c=o.n(s),d=o(39);let u;const p=new Map,b=(e,t)=>{e.filter(({isIntersecting:e})=>e).map(e=>Object(d.b)(o=>o(e,t),p.get(e.target)))},m=()=>{var e;return null!==(e=u)&&void 0!==e?e:u=new IntersectionObserver(b)},h=(e,t)=>{if(!p.has(e)){const o=m();p.set(e,t),o.observe(e)}return m()},g=e=>{p.delete(e),u&&(u.unobserve(e),0===p.size&&(u.disconnect(),u=void 0))};function v(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?v(Object(o),!0).forEach((function(t){Object(r.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):v(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class y extends l.a.Component{constructor(...e){super(...e),Object(r.a)(this,"state",{isVisible:!1}),Object(r.a)(this,"handleIntersection",({isIntersecting:e,target:t})=>{e&&(g(t),this.setState({isVisible:!0}))}),Object(r.a)(this,"ref",l.a.createRef()),Object(r.a)(this,"updateRef",()=>{this.props.forwardedRef&&("function"==typeof this.props.forwardedRef?this.props.forwardedRef(this.ref.current):this.props.forwardedRef.current=this.ref.current)}),Object(r.a)(this,"hasAnimation",()=>!!this.props.animationClass)}componentDidMount(){this.updateRef(),this.props.animationClass&&Object(d.b)(e=>h(e,this.handleIntersection),this.ref.current)}componentDidUpdate(e){this.updateRef(),e.animationClass!==this.props.animationClass&&(this.props.animationClass?Object(d.b)(e=>h(e,this.handleIntersection),this.ref.current):Object(d.b)(g,this.ref.current))}componentWillUnmount(){Object(d.b)(g,this.ref.current)}renderForEdit(){const e=this.props,{component:t,animationClass:o="",forwardedRef:n,children:r,className:l,componentProps:{className:s}}=e,d=Object(a.a)(e.componentProps,["className"]),{isVisible:u}=this.state,p=this.hasAnimation(),b=u&&p,m=c()(l,s,{"brz-observer__animation":p,"brz-animated":p,[o]:b,"brz-animate":b,"brz-animate-opacity":b}),h=f(f({},d),{},{className:m,ref:this.ref});return Object(i.createElement)(t,h,r)}renderForView(){const e=this.props,{component:t,animationClass:o="",iterationCount:n=1,children:r,className:l,forwardedRef:s,componentProps:{className:d}}=e,u=Object(a.a)(e.componentProps,["className"]),p=this.hasAnimation(),b=f(f(f({},u),p?{"data-iteration-count":n}:{}),{},{className:c()(l,d,{"brz-animated":p,[o]:p}),ref:this.ref});return Object(i.createElement)(t,b,r)}render(){return this.renderForEdit()}}function O(e,t){return l.a.createElement(y,Object(n.a)({},e,{forwardedRef:t}))}const S=Object(i.forwardRef)(O);t.a=S},function(e,t,o){"use strict";o.d(t,"a",(function(){return y}));var n=o(0),a=o.n(n),r=o(38),i=o(100),l=o(17),s=o(26),c=o(19),d=o(70),u=o(1),p=o(21),b=o(2),m=o(157),h=o(15);function g(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function v(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?g(Object(o),!0).forEach((function(t){Object(b.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):g(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const f=e=>{let t=null;return e&&(t=document.createElement("div"),t.id="ct-container",e.append(t)),t},y={error:(e,t={})=>{m.a.error(e,v(v({renderIcon:()=>a.a.createElement(h.b,{icon:"nc-info"}),bar:{size:"2px",style:"solid",color:"currentColor"}},t),{},{toastContainer:f(t.toastContainer)}))},success:(e,t={})=>{m.a.success(e,v(v({renderIcon:()=>a.a.createElement(h.b,{icon:"nc-info"}),bar:{size:"2px",style:"solid",color:"currentColor"}},t),{},{toastContainer:f(t.toastContainer)}))},info:(e,t={})=>{m.a.info(e,v(v({renderIcon:()=>a.a.createElement(h.b,{icon:"nc-info"}),bar:{size:"2px",style:"solid",color:"currentColor"}},t),{},{toastContainer:f(t.toastContainer)}))},warn:(e,t={})=>{m.a.warn(e,v(v({renderIcon:()=>a.a.createElement(h.b,{icon:"nc-info"}),bar:{size:"2px",style:"solid",color:"currentColor"}},t),{},{toastContainer:f(t.toastContainer)}))}},O=e=>e.lockedBy.user_email,S=({children:e})=>a.a.createElement("div",{className:"brz-ed-notification"},a.a.createElement("div",{className:"brz-ed-notification__body brz-d-xs-flex brz-flex-xs-column brz-align-items-xs-center brz-text-lg-center"},e)),C=({children:e})=>a.a.createElement("div",{className:"brz-ed-notification__head"},e),x=({children:e})=>a.a.createElement("div",{className:"brz-ed-notification__content"},e),j=({children:e})=>a.a.createElement("div",{className:"brz-ed-notification__footer brz-d-xs-flex brz-align-items-xs-center"},e);t.b=Object(r.b)(e=>({error:Object(c.j)(e)}))(({error:e,dispatch:t})=>{const{code:o,data:n}=e||{};let r;switch(o){case d.c:r=a.a.createElement(S,null,a.a.createElement(C,null,a.a.createElement(h.b,{icon:"nc-warning",className:"brz-ed-notification__warning"})),a.a.createElement(x,null,n.lockedBy?`${O(n)} ${Object(u.a)("is already editing project")}`:n.statusText||Object(u.a)("Something went wrong")),a.a.createElement(j,null,a.a.createElement("button",{className:"brz-button brz-ed-btn brz-ed-btn-blue brz-ed-btn-round brz-ed-btn-xs-2",onClick:()=>{window.parent.location.reload()}},Object(u.a)("Refresh"))));break;case d.f:{const e=l.a.get("urls");r=a.a.createElement(S,null,a.a.createElement(C,null,a.a.createElement(h.b,{icon:"nc-warning",className:"brz-ed-notification__warning"})),a.a.createElement(x,null,n.lockedBy?`${Object(u.a)("You can’t make changes")}.\n ${O(n)} ${Object(u.a)("is currently working on this page. Do you want to take over")} ?`:n),a.a.createElement(j,null,a.a.createElement("a",{className:"brz-a brz-d-xs-flex brz-align-items-xs-center brz-ed-notification__to-dashboard",href:e.backToDashboard},Object(u.a)("To Dashboard")),a.a.createElement("button",{className:"brz-button brz-ed-notification__take-over brz-ed-btn brz-ed-btn-blue brz-ed-btn-round brz-ed-btn-xs-2",onClick:()=>{t(Object(s.M)(null)),Object(p.J)().catch(()=>{y.error(Object(u.a)("Take over failed please refresh the page"))})}},Object(u.a)("Take over"))));break}case d.e:r=a.a.createElement(S,null,a.a.createElement(C,null,a.a.createElement(h.b,{icon:"nc-warning",className:"brz-ed-notification__warning"})),a.a.createElement(x,null,n),a.a.createElement(j,null,a.a.createElement("button",{className:"brz-button brz-ed-btn brz-ed-btn-blue brz-ed-btn-round brz-ed-btn-xs-2",onClick:()=>{window.parent.location.reload()}},Object(u.a)("Refresh"))));break;default:r=null}return a.a.createElement(i.CSSTransition,{in:Boolean(r),timeout:300,classNames:"brz-ed-fade",unmountOnExit:!0},r||a.a.createElement("span",null))})},,,function(e,t,o){"use strict";o.d(t,"a",(function(){return u}));var n=o(2),a=o(0),r=o.n(a),i=o(35),l=o.n(i),s=o(40),c=o.n(s);let d=[];class u extends r.a.Component{constructor(...e){super(...e),Object(n.a)(this,"handleAll",e=>{d.forEach(t=>{const{exceptions:o,onClickOutside:n}=t.props;let a=0;if(o.length>0){const{functionExceptions:t,stringExceptions:n}=o.reduce((e,t)=>{switch(typeof t){case"function":e.functionExceptions.push(t);break;case"string":e.stringExceptions.push(t)}return e},{functionExceptions:[],stringExceptions:[]});t.length>0&&(a+=t.filter(t=>!0===t(e.target)).length),0===a&&n.length>0&&(a+=c()(e.target).closest(n.join(",")).length)}if(0===a){const o=l.a.findDOMNode(t);o&&!o.contains(e.target)&&n(e)}})})}componentDidMount(){0===d.length&&(document.addEventListener("mousedown",this.handleAll,!0),window.parent.document.addEventListener("mousedown",this.handleAll,!0)),d.push(this)}componentWillUnmount(){d.splice(d.indexOf(this),1),0===d.length&&(document.removeEventListener("mousedown",this.handleAll,!0),window.parent.document.removeEventListener("mousedown",this.handleAll,!0))}render(){return r.a.Children.only(this.props.children)}}Object(n.a)(u,"defaultProps",{exceptions:[]})},function(e,t,o){"use strict";o.d(t,"a",(function(){return h}));var n=o(2),a=o(0),r=o.n(a),i=o(35),l=o.n(i),s=o(5),c=o.n(s),d=o(8);class u extends a.Component{constructor(...e){super(...e),Object(n.a)(this,"content",r.a.createRef()),Object(n.a)(this,"updateDOM",()=>{setTimeout(()=>{if(this.unmounted)return;const e=this.content.current;e&&this.props.onUpdateDOM(this.math,e)},0)})}componentDidMount(){this.updateDOM()}componentDidUpdate(){this.updateDOM()}componentWillUnmount(){this.unmounted=!0}math(e,t,o,n,a){const r=Math.max(o,e),i=r-e,l=e/r*a,s=a-l;return{client:e,offset:t,position:n,track:a,overflow:i,thumb:l,piece:s,shift:0===i?0:n/i*s,scroll:r}}render(){return r.a.createElement("div",{ref:this.content,className:this.props.className,style:this.props.style,onScroll:this.updateDOM},this.props.children)}}u.defaultProps={onUpdateDOM:d.default.noop};var p=o(40),b=o.n(p);class m extends a.Component{constructor(e){super(e),this.state={startTop:!1,startLeft:!1},this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this)}componentDidMount(){const e=l.a.findDOMNode(this);this.document=b()(e.style?e.ownerDocument:e.document||e),this.window=b()(this.document[0].defaultView||this.document[0].parentWindow)}handleMouseDown(e,t,o){if(b()(o.target).hasClass("brz-ed-sidebar-block-remove"))return e(o),void t(o);e(o),this.window.on("mousemove",this.handleMouseMove),this.window.on("mouseup",this.handleMouseUp),this.setState({startLeft:o.clientX,startTop:o.clientY}),this.props.onDragStart(this),t(o)}handleMouseMove(e){var t={top:e.clientY-this.state.startTop,left:e.clientX-this.state.startLeft};this.props.onDragMove(t,this),e.preventDefault()}handleMouseUp(){this.window.off("mousemove",this.handleMouseMove),this.window.off("mouseup",this.handleMouseUp),this.props.onDragEnd(this)}render(){const e=r.a.Children.only(this.props.children);return r.a.cloneElement(e,{onMouseDown:t=>{this.handleMouseDown(e.props.onMouseDown||d.default.noop,this.props.onMouseDown||d.default.noop,t)}})}}m.defaultProps={currentWindow:{},onDragEnd:d.default.noop,onDragStart:d.default.noop,onDragMove:d.default.noop};class h extends a.Component{constructor(e){super(e),Object(n.a)(this,"captureStart",()=>{this._start=!1}),Object(n.a)(this,"handleChange",({left:e=null,top:t=null})=>{const o=l.a.findDOMNode(this.scrollable);this.props.onChange({left:e||o.scrollLeft,top:t||o.scrollTop})}),Object(n.a)(this,"handleMouseDown",e=>{const t=l.a.findDOMNode(this.wideTrack),o=t.getBoundingClientRect(),n=(e.clientX-o.left-this._wide.thumb/2)/this._wide.piece*this._wide.overflow;e.target===t&&(l.a.findDOMNode(this.scrollable).scrollLeft=n)}),Object(n.a)(this,"handleMouseDown2",e=>{const t=l.a.findDOMNode(this.tallTrack),o=t.getBoundingClientRect(),n=(e.clientY-o.top-this._tall.thumb/2)/this._tall.piece*this._tall.overflow;e.target===t&&(l.a.findDOMNode(this.scrollable).scrollTop=n,this.handleChange({top:n}))}),Object(n.a)(this,"handleMove",e=>{!1===this._start&&(this._start=parseInt(this.wideThumb.style.left));const t=(e.left+this._start)/this._wide.piece*this._wide.overflow;l.a.findDOMNode(this.scrollable).scrollLeft=t,this.handleChange({left:t})}),Object(n.a)(this,"handleMove2",e=>{!1===this._start&&(this._start=parseInt(this.tallThumb.style.top));const t=(e.top+this._start)/this._tall.piece*this._tall.overflow;l.a.findDOMNode(this.scrollable).scrollTop=t,this.handleChange({top:Math.min(this._tall.overflow,Math.max(0,t))})}),Object(n.a)(this,"handleResize",()=>{this.forceUpdate()}),Object(n.a)(this,"handleUpdateDOM",(e,t)=>{let o,n,a=l.a.findDOMNode(this.wideTrack),r=this.wideThumb,i=l.a.findDOMNode(this.tallTrack),s=this.tallThumb,c={overflow:Math.max(0,t.scrollWidth-t.clientWidth)},d={overflow:Math.max(t.scrollHeight-t.clientHeight)};a.style.position="absolute",i.style.position="absolute",r.style.position="relative",s.style.position="relative",a.style.display="block",o=a.offsetHeight,i.style.display="block",n=i.offsetWidth,t.style.overflow="hidden",t.style.borderBottomWidth=o+"px",t.style.borderBottomStyle=c.overflow?"solid":"none",t.style.borderRightWidth=n+"px",t.style.borderRightStyle=d.overflow?"solid":"none",c.overflow=Math.max(0,t.scrollWidth-t.clientWidth),d.overflow=Math.max(0,t.scrollHeight-t.clientHeight),a.style.display=c.overflow?"block":"none",a.style.width=t.clientWidth+"px",a.style.left=0,a.style.top=t.offsetHeight-o+"px",i.style.display=d.overflow?"block":"none",i.style.height=t.clientHeight+"px",i.style.top=0,this._wide=c=e(t.clientWidth,t.offsetWidth,t.scrollWidth,t.scrollLeft,a.clientWidth),this._tall=d=e(t.clientHeight,t.offsetHeight,t.scrollHeight,t.scrollTop,i.clientHeight),r.style.left=c.shift+"px",r.style.width=c.thumb+"px",s.style.top=d.shift+"px",s.style.height=d.thumb+"px"}),Object(n.a)(this,"handleWheel",e=>{e.stopPropagation();let t=l.a.findDOMNode(this.scrollable);const o=t.scrollTop,n=t.scrollLeft,a=navigator.userAgent.toLowerCase();let r=1;/firefox/.test(a)&&(r=20),/chrome/.test(a)&&(r=.8),this.props.onlyWide?t.scrollLeft=n+(e.deltaX?e.deltaX:e.deltaY*r):(e.preventDefault(),t.scrollTop=o+e.deltaY*r,t.scrollLeft=n+e.deltaX),(t.scrollTop!=o||t.scrollLeft!=n||this.props.onlyWide)&&e.preventDefault(),this.handleChange({left:t.scrollLeft,top:t.scrollTop})}),this.handleRef=r.a.createRef(),this._start=0,this._wide={},this._tall={}}componentDidMount(){this.handleRef.current.addEventListener("wheel",this.handleWheel,{passive:!1}),window.addEventListener("resize",this.handleResize,{passive:!0})}componentWillUnmount(){window.removeEventListener("resize",this.handleResize),this.handleRef.current.removeEventListener("wheel",this.handleWheel)}handleSetPositionWide(e){this.handleMove({top:0,left:e})}render(){const e=c()("brz-ed-scroll-pane",this.props.className);return r.a.createElement("div",{ref:this.handleRef,className:e,style:{position:"relative",width:this.props.style.width,height:this.props.style.height}},r.a.createElement(u,{ref:e=>{this.scrollable=e},className:"brz-ed-scroll-inner",style:this.props.style,onUpdateDOM:this.handleUpdateDOM},this.props.children),r.a.createElement(m,{ref:e=>{this.wideTrack=e},onDragStart:this.captureStart,onDragMove:this.handleMove},r.a.createElement("div",{className:"brz-ed-wide-track",onMouseDown:this.handleMouseDown},r.a.createElement("div",{ref:e=>{this.wideThumb=e},className:"brz-ed-wide-thumb"}))),r.a.createElement(m,{ref:e=>{this.tallTrack=e},onDragStart:this.captureStart,onDragMove:this.handleMove2},r.a.createElement("div",{className:"brz-ed-tall-track",onMouseDown:this.handleMouseDown2},r.a.createElement("div",{ref:e=>{this.tallThumb=e},className:"brz-ed-tall-thumb"}))))}}Object(n.a)(h,"defaultProps",{className:"",style:{},window:null,onlyWide:!1,wrapScrollable:e=>e,onChange:()=>{}})},function(e,t,o){"use strict";o.d(t,"b",(function(){return a})),o.d(t,"a",(function(){return i})),o.d(t,"g",(function(){return l})),o.d(t,"e",(function(){return s})),o.d(t,"d",(function(){return d})),o.d(t,"c",(function(){return u})),o.d(t,"f",(function(){return p}));o(8);var n=o(39);const a=(e,t)=>e.reduce((e,o)=>e.concat(t(o)),[]),r=(e,t)=>[...e,...t],i=e=>e.reduce(r,[]);function l(e){return Array.isArray(e)?e:[]}function s(e,t){return l(t).length>0?t:e}const c=(e,t)=>void 0!==t[e]?e:void 0,d=(e,t)=>Object(n.b)(e=>(e+1)%t.length,c(e,t));function u(e,t){const o=t.indexOf(e);return o<0?void 0:o}const p=(e,t)=>{if(!Array.isArray(t))return;const o=[];for(let n=0;n<t.length;n++){const a=e(t[n]);if(void 0===a)return;o.push(a)}return o}},function(e,t,o){"use strict";var n=o(8),a=o(210);const r=n.default.extend({},a.EventEmitter.prototype,{off(e,t){this.removeListener(e,t)}});r.setMaxListeners(1/0),t.a=r},,function(e,t,o){"use strict";o.d(t,"d",(function(){return n})),o.d(t,"e",(function(){return a})),o.d(t,"b",(function(){return l})),o.d(t,"c",(function(){return s})),o.d(t,"a",(function(){return c}));const n=(e,t)=>{for(let o in e){if(!e.hasOwnProperty(o))continue;e[o]&&"object"==typeof e[o]&&n(e[o],t);const a=t[e.type]||t.Component;"function"==typeof a&&e.type&&e.value&&a(e)}},a=(e,t)=>{for(let o in e)e.hasOwnProperty(o)&&"function"==typeof t[o]&&t[o](e[o])};var r=o(33),i=o(114);const l=({models:e={},globalBlocks:t={}})=>{const o=new Set;return n(e,{Component({type:e,value:t}){const n=Object(i.a)(e).style||{};Object.entries(n.families||{}).forEach(e=>{const[a,r]=e,l={type:t[a+"Type"]||n[a+"Type"],family:t[a]||r};l.type&&l.family&&o.add(Object(i.b)(l))})},RichText({type:e,value:t}){const n=Object(i.a)(e).content||{},a=/class="(.+?)">/g,r=/.*?brz-(f(?:[f|t]))-(\w+)+.*?/g;let l;const s=t.text||n.text;for(;l=a.exec(s);){let e,[t,n]=l,a={};for(;e=r.exec(n);){const[t,o,n]=e;"ft"===o&&(a.type=n),"ff"===o&&(a.family=n)}a.family&&(a.type?o.add(Object(i.b)(a)):o.add(Object(i.b)({family:a.family,type:"unknowns"})))}},GlobalBlock({value:{_id:e}}){const n=t[e];if(n){l({models:n,globalBlocks:t}).forEach(e=>{o.add(Object(i.b)(e))})}}}),[...o].map(i.c)},s=e=>{const t=new Set;return e.forEach(e=>{a(e,{fontFamily(o){t.add(Object(i.b)({type:e.fontFamilyType,family:o}))}})}),[...t].map(i.c)},c=(e,t)=>{const o=e.reduce((e,t)=>e.some(({family:e})=>e===t.family)?e:[...e,t],[]),n=Object(r.v)(t);return o.reduce((e,t)=>{const{type:o,family:a}=t;return"unknowns"===o?Object.entries(n).find(([e,t])=>Object(r.a)(t,a,e))?e:[...e,t]:Object(r.a)(n[o],a,o)?e:[...e,t]},[])}},function(e,t,o){"use strict";o.d(t,"i",(function(){return n})),o.d(t,"d",(function(){return a})),o.d(t,"e",(function(){return r})),o.d(t,"g",(function(){return i})),o.d(t,"f",(function(){return l})),o.d(t,"h",(function(){return s})),o.d(t,"b",(function(){return c})),o.d(t,"c",(function(){return d})),o.d(t,"a",(function(){return u})),o.d(t,"l",(function(){return p})),o.d(t,"j",(function(){return b})),o.d(t,"k",(function(){return m}));const n=100,a=200,r=300,i=400,l=500,s=600,c=700,d=800,u=900,p=[n,a,r,i,l,s,c,d,u],b=i,m=(e,t)=>p.includes(e)?e:t},,function(e,t,o){"use strict";var n=o(2),a=o(0),r=o.n(a),i=o(35),l=o.n(i),s=o(6),c=o.n(s);class d extends r.a.Component{constructor(e){super(e);const{node:t,className:o}=this.props,n=t.ownerDocument;this.el=n.createElement("div"),o&&(this.el.className=o),t.appendChild(this.el)}componentWillReceiveProps(e){e.className!==this.props.className&&(this.el.className=e.className)}componentWillUnmount(){this.props.node.removeChild(this.el)}render(){return l.a.createPortal(this.props.children,this.el)}}Object(n.a)(d,"propTypes",{className:c.a.string,node:c.a.object.isRequired}),t.a=d},function(e,t,o){"use strict";o.d(t,"a",(function(){return i})),o.d(t,"c",(function(){return l})),o.d(t,"b",(function(){return s}));var n=o(39),a=o(41);const r=/^#(?:[A-Fa-f0-9]{3}){1,2}$/;function i(e){return r.test(e)}const l=(e,t)=>i(t)?t:e,s=Object(n.c)(e=>i(e)?e:void 0,a.a.read)},,function(e,t,o){"use strict";o.d(t,"c",(function(){return a})),o.d(t,"b",(function(){return r})),o.d(t,"a",(function(){return i}));var n=o(2);const a="UNDO",r="REDO";class i{constructor(e){Object(n.a)(this,"snapshots",[]),Object(n.a)(this,"config",{maxSize:10,collapseFrequency:2e3}),Object(n.a)(this,"currentIndex",-1),Object(n.a)(this,"previousIndex",-1),Object(n.a)(this,"lastSnapshotTimestamp",0),Object(n.a)(this,"canUndo_",!1),Object(n.a)(this,"canRedo_",!1),e&&(this.config=e),this.snapshots=new Array(this.config.maxSize).fill(null)}getSnapshots(){return this.snapshots}getCurrentSnapshot(){var e;return null!==(e=this.snapshots[this.currentIndex])&&void 0!==e?e:null}getPreviousSnapshot(){var e;return null!==(e=this.snapshots[this.previousIndex])&&void 0!==e?e:null}getSnapshot(e){if(e>0){var t;const o=e-1;return null!==(t=this.snapshots[o])&&void 0!==t?t:null}{var o;const t=this.snapshots.filter(e=>null!==e).length+e;return null!==(o=this.snapshots[t])&&void 0!==o?o:null}}update(e,t){if(Object.keys(e).some(t=>{var o;return e[t]!==(null===(o=this.snapshots[this.currentIndex])||void 0===o?void 0:o[t])})){const o=e,n=Date.now();if(null==t?void 0:t.replacePresent)this.snapshots[this.currentIndex]=o;else{if(this.snapshots[this.currentIndex+1]&&null!==this.snapshots[this.currentIndex+1]){this.previousIndex=this.currentIndex,this.currentIndex++,this.snapshots[this.currentIndex]=o;for(let e=this.currentIndex+1;e<=this.snapshots.length-1;e++)this.snapshots[e]=null}else{if(n-this.lastSnapshotTimestamp>this.config.collapseFrequency){if(this.currentIndex===this.snapshots.length-1){for(let e=0;e<=this.snapshots.length-2;e++)this.snapshots[e]=this.snapshots[e+1];this.snapshots[this.snapshots.length-1]=o}else this.previousIndex=this.currentIndex,this.currentIndex++,this.snapshots[this.currentIndex]=o}else this.snapshots[this.currentIndex]=o}this.updateFlags(),this.lastSnapshotTimestamp=n}}}replaceSnapshots(e){if(e.length!==this.snapshots.length)throw new Error("History. snapshots must be of same lengths");for(let t=0;t<this.snapshots.length;t++)if(null===this.snapshots[t]&&null!==e[t]||null!==this.snapshots[t]&&null===e[t])throw new Error("History. only patch snapshots supported for now");this.snapshots=e}canUndo(){return this.canUndo_}undo(){this.canUndo()&&(this.previousIndex=this.currentIndex,this.currentIndex--,this.updateFlags())}canRedo(){return this.canRedo_}redo(){this.canRedo()&&(this.previousIndex=this.currentIndex,this.currentIndex++,this.updateFlags())}updateFlags(){this.canUndo_=this.currentIndex>0,this.canRedo_=Boolean(this.snapshots[this.currentIndex+1]&&null!==this.snapshots[this.currentIndex+1])}}},function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return a}));const n=e=>e.target.value;function a(e,t){"function"==typeof t?t(e):t&&e&&(t.current=e)}},,,,function(e,t,o){"use strict";(function(e){o.d(t,"b",(function(){return d}));var n=o(17),a=o(57),r=o(108),i=o(426),l=o(277);o.d(t,"a",(function(){return l.a}));const s={},c=new Worker(e,{});async function d(e){if(!e)return Promise.reject("Could not find node");const t=getComputedStyle(e);if("none"===t.display||"0"===t.opacity)return Promise.reject(`Could not make screenshot for node ${e} because it's hidden`);let o;try{o=await Object(i.a)(e)}catch(e){console.error("cloneinline",e)}const r=function(e){let{width:t,height:o}=e.getBoundingClientRect();return{width:t,height:o}}(e),l=new Blob([o.outerHTML],{type:"text/plain"}),d=URL.createObjectURL(l);return new Promise((e,t)=>{const o=Object(a.a)(3),{assets:i,site:l}=n.a.get("urls");s[o]=[e,t,r,d],c.postMessage({id:o,url:d,assetUrl:i,siteUrl:l,options:r,proxyUrl:u()})})}function u(){{var e;const t=n.a.get("urls").site,o=null!==(e=n.a.get("prefix"))&&void 0!==e?e:"brizy";return Object(r.b)(t)?`${t}&${o}_file=`:`${t}?${o}_file=`}}c.onmessage=async e=>{const{id:t,url:o}=e.data,n=await fetch(o),a=await n.text(),[r,i,l,c]=s[t];URL.revokeObjectURL(c),URL.revokeObjectURL(o);const d=document.createElement("img");d.onload=async()=>{let e=d.width,t=d.height;e>600&&(t=Math.floor(600*t/e),e=600);const o=document.createElement("canvas");o.width=e,o.height=t,o.getContext("2d").drawImage(d,0,0,e,t);const n=o.toDataURL("image/jpeg",1);r({src:n,width:e,height:t})},d.onerror=i,d.crossOrigin="anonymous",d.src=a,delete s[t]}}).call(this,o(600))},function(e,t,o){"use strict";o.d(t,"b",(function(){return s})),o.d(t,"f",(function(){return c})),o.d(t,"a",(function(){return d})),o.d(t,"e",(function(){return u})),o.d(t,"c",(function(){return p})),o.d(t,"d",(function(){return b}));var n,a=o(17);const r=a.a.get("template_type"),i=a.a.get("mode"),l=e=>r===e||""===r,s="post"===(null===(n=a.a.get("wp"))||void 0===n?void 0:n.post_type),c=l("single"),d=l("archive"),u=l("product"),p=l("product_archive"),b="product"===i},,,,,function(e,t,o){"use strict";o.d(t,"b",(function(){return a})),o.d(t,"a",(function(){return l})),o.d(t,"c",(function(){return s}));var n=o(8);function a(e,t){let o=!1;for(let n=0;n<t.length;n++){for(let l=0;l<e.length;l++){if(a=e[l],i=t[n],a.type===i.type&&a.id&&i.id&&a.id===i.id){e[l]=r(e[l],t[n]),o=!0;break}o=!1}o||e.push(t[n])}var a,i;return function e(t){if(!t||"function"!=typeof t[Symbol.iterator])return t;for(let o of t){let t="options";o.columns&&(t="columns"),o.tabs&&(t="tabs"),o[t]&&(o[t]=e(o[t]))}return n.default.sortBy(t,"position")}(e)}function r(e,t){for(const o of Object.keys(t))"columns"===o||"options"===o||"tabs"===o?e[o]=a(e[o]||[],t[o]||[]):"disabled"===o&&!0===t[o]&&(e[o]=t[o]);return e}var i=o(53);const l=e=>Object(i.b)(["id","type"],e),s=(e,t)=>l(t)?Object(i.c)(s.bind(null,e),e(t)):Object(i.c)(s.bind(null,e),t)},function(e,t,o){"use strict";o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return r}));const n={};function a(e,t,o=10){void 0===n[e]&&(n[e]=[]);const a={cb:t,priority:o},r=n[e].findIndex(({priority:e})=>a.priority<e);-1!==r?n[e].splice(r,0,a):n[e].push(a)}function r(e,t,...o){return void 0===n[e]?t:n[e].reduce((e,{cb:t})=>t(e,...o),t)}},,function(e,t,o){"use strict";o.d(t,"a",(function(){return u})),o.d(t,"b",(function(){return p})),o.d(t,"f",(function(){return h})),o.d(t,"g",(function(){return g})),o.d(t,"e",(function(){return v})),o.d(t,"d",(function(){return f})),o.d(t,"c",(function(){return y}));var n=o(2),a=o(17),r=o(23),i=o(44),l=o(115),s=o(14);function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const u=16,p="brizy_template";function b(e,t){var o;if(!e.length&&(null===(o=t[""])||void 0===o?void 0:o.after))return t[""].after;e.length&&t[""]&&(t[e[0].globalBlockId]=t[""],delete t[""]);return e.reduce((e,o)=>{var n,a;const r=o.globalBlockId;return(null===(n=t[r])||void 0===n?void 0:n.before)&&e.push(...t[r].before),e.push(o),(null===(a=t[r])||void 0===a?void 0:a.after)&&e.push(...t[r].after),e},[])}function m(e,t,o){const n=[...t];return e.reduce((e,a)=>{if(t.includes(a.globalBlockId)){const t=n.shift();t&&e.push({globalBlockId:t,align:o.includes(t)?"top":"bottom"})}else e.push(a);return e},[])}function h(e,t){const o=Object.keys(t),n=Object.entries(t).reduce((e,[t,o])=>(o.position&&(e[t]=o.position),e),{}),a=function(e){const{top:t,bottom:o}=Object.entries(e).reduce((e,[t,o])=>(e.top.push(d(d({},o),{},{globalBlockId:t,align:o.align||"top"})),e.bottom.push(d(d({},o),{},{globalBlockId:t,align:o.align||"top"})),e),{top:[],bottom:[]});return{top:n(t,"top"),bottom:n(o,"bottom")};function n(e,t){return e.sort((e,o)=>e[t]-o[t]).map(({globalBlockId:e,align:t})=>({globalBlockId:e,align:t}))}}(n),{top:r}=g(e,o),i=function(e,t){return e.filter(e=>t[e])}(e,t),l=i.filter(e=>n[e]),s=function(e,t,o){const n={};let a=[],r="";return e.forEach((e,i,l)=>{const s=t.includes(e);s&&(n[e]=d(d({},n[e]),{},{before:a}),r=e,a=[]),s||a.push({globalBlockId:e,align:o.includes(e)?"top":"bottom"}),i===l.length-1&&a.length&&(n[r]=d(d({},n[r]),{},{after:a}))}),n}(i,l,r);return function(e,t){const o={};return n(e,"top",o),n(t,"bottom",o),o;function n(e,t,o){return e.reduce((e,{globalBlockId:o,align:n},a)=>(e[o]=d(d({},e[o]),{},{align:n,[t]:a}),e),o)}}(b(m(a.top,l,r),s),b(m(a.bottom,l,r),s))}const g=(e,t)=>{const o={top:[],bottom:[]};if(e.length>0){let n=0;for(;n<=e.length-1;){const a=e[n];if(!t.includes(a))break;o.top.push(a),n++}for(n=0;n<=e.length-1;){const a=e[e.length-1-n];if(!t.includes(a))break;o.bottom.push(a),n++}}return o};const v=(e=Number(Object(i.d)(Object(r.b)().getState()).id))=>{let t=1,o="page";if(s.i){const{ruleMatches:e}=a.a.get("wp");s.h?(t=u,o=p):e&&"post"===e[0].entityType&&(t=1,o="post")}return{group:t,type:o,id:e}},f=(e,t,o)=>{const n=e[t-1],a=e[t+1],{top:r,bottom:i}=((e,t)=>{const o={top:[],bottom:[]};if(e.length>0){let n=0;for(;n<=e.length-1;){const a=e[n];if(!t.includes(a))break;o.top.push(a),n++}for(n=0;n<=e.length-1;){const a=e[e.length-1-n];if(!t.includes(a))break;o.bottom.push(a),n++}}return o})(e,o);let l="center";return!n||o.includes(n)&&r.includes(n)?l="top":(!a||o.includes(a)&&i.includes(a))&&(l="bottom"),l},y=(e,t,o)=>{const n=v(o),{level2:a,level3:r}=Object(l.d)(e.rules,o);let i=d(d({},e),{},{rules:e.rules.filter(({entityValues:e})=>!e.includes(n.id))}),c=!0;if(!s.h){const e=a&&Object(l.c)(a),o=r&&Object(l.c)(r),n=e||o,i=!t&&!n;(t&&n||i)&&(c=!1)}return c&&(i=d(d({},i),{},{rules:[...i.rules,{type:t?1:2,appliedFor:n.group,entityType:n.type,entityValues:[n.id]}]})),i}},function(e,t,o){"use strict";o.d(t,"a",(function(){return n.a})),o.d(t,"b",(function(){return a}));var n=o(204);const a=e=>e.includes("?")},function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"d",(function(){return a})),o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){return i}));const n=436,a=436,r=436,i=726},,function(e,t,o){"use strict";var n=o(0),a=o.n(n),r=o(8),i=o(100),l=o(5),s=o.n(l),c=o(50),d=o(90);const u=e=>{const{className:t,opened:o,children:n,onClose:r}=e,l=s()("brz-ed-fixed",t);return a.a.createElement(d.a,{node:window.parent.document.body},a.a.createElement(i.CSSTransition,{in:o,classNames:"brz-ed-fade",timeout:150},o?a.a.createElement("div",{className:l},a.a.createElement(c.a,{keyNames:["esc"],id:"key-helper-prompt-esc",onKeyUp:r}),a.a.createElement("div",{className:"brz-ed-fixed-overlay",onClick:r}),a.a.createElement("div",{className:"brz-ed-fixed-scroll"},n)):a.a.createElement("span",null)))};u.defaultProps={className:"",opened:!1,onClose:r.default.noop},t.a=u},function(e,t,o){"use strict";o.d(t,"b",(function(){return m}));var n=o(2),a=o(0),r=o.n(a),i=o(8),l=o(6),s=o.n(l),c=o(5),d=o.n(c),u=o(208);function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}o.d(t,"a",(function(){return u.a}));class m extends r.a.Component{constructor(...e){super(...e),Object(n.a)(this,"handleChange",e=>{const{defaultValue:t,onChange:o}=this.props;o(b(b({},t),{},{[e]:!t[e]}))})}renderOptions(){const{defaultValue:e,children:t}=this.props;return r.a.Children.map(t,(t,o)=>r.a.cloneElement(t,{key:o,active:Boolean(e[t.props.value]),onClick:t.props.disabled?null:()=>this.handleChange(t.props.value)}))}render(){const e=d()("brz-control__check-group",this.props.className);return r.a.createElement("div",{className:e},this.renderOptions())}}Object(n.a)(m,"propTypes",{name:s.a.string,className:s.a.string,defaultValue:s.a.object,onChange:s.a.func}),Object(n.a)(m,"defaultProps",{name:"defaultName",className:"",defaultValue:{},onChange:i.default.noop})},function(e,t,o){"use strict";o.d(t,"a",(function(){return m})),o.d(t,"f",(function(){return h})),o.d(t,"b",(function(){return g})),o.d(t,"e",(function(){return v})),o.d(t,"d",(function(){return f})),o.d(t,"c",(function(){return y}));var n=o(2),a=o(10),r=o(7),i=o(138),l=o(30),s=o(41);const c=["all","desktop","responsive"],d=(s.a.eq,e=>{var t;return null!==(t=(e=>{if("string"==typeof e)return c.includes(e)?e:void 0})(e))&&void 0!==t?t:"all"}),u=e=>d((null!=e?e:{}).devices);function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const m=(e,t)=>{const o=t.startsWith("temp")?"temp":"",n=o.length?t.substr(4):t,r="value"===n||"Value"===n?"":n;return Object(a.a)([o,e,r])},h=(e,t)=>t&&"object"==typeof t?Object.keys(t).reduce((o,n)=>(o[m(e,n)]=t[n],o),{}):t,g=e=>String(e).endsWith("-dev"),v=(e,t)=>Object(i.b)(e,t)?e:r.d,f=(e,t)=>((e,t)=>{switch(t){case"all":return!0;case"responsive":return Object(l.f)(e);case"desktop":return Object(l.e)(e)}})(e,u(t))?e:l.d,y=e=>{var t,o,n,a,r,i,l,s,c,d,u;const p=null===(t=e.allowExtend)||void 0===t||t,m=null!==(o=e.allowExtendFromParent)&&void 0!==o?o:p,h=null!==(n=e.allowExtendFromChild)&&void 0!==n?n:p,g=null!==(a=e.allowExtendFromThirdParty)&&void 0!==a?a:p,v=null!==(r=e.allowSidebarExtend)&&void 0!==r?r:p,f=null!==(i=null!==(l=e.allowSidebarExtendFromParent)&&void 0!==l?l:e.allowSidebarExtend)&&void 0!==i?i:m,y=null!==(s=null!==(c=e.allowSidebarExtendFromChild)&&void 0!==c?c:e.allowSidebarExtend)&&void 0!==s?s:h,O=null!==(d=null!==(u=e.allowSidebarExtendFromThirdParty)&&void 0!==u?u:e.allowSidebarExtend)&&void 0!==d?d:g;return b(b({},e),{},{allowExtend:p,allowExtendFromParent:m,allowExtendFromChild:h,allowExtendFromThirdParty:g,allowSidebarExtend:v,allowSidebarExtendFromParent:f,allowSidebarExtendFromChild:y,allowSidebarExtendFromThirdParty:O})}},function(e,t,o){"use strict";o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){return i}));var n=o(66);const a=({type:e,family:t})=>`${e}|${t}`,r=e=>{const[t,o]=e.split("|");return{type:t,family:o}},i=e=>{const t=n.a.getComponent(e);return t?t.defaultValue:{}}},function(e,t,o){"use strict";o.d(t,"b",(function(){return s})),o.d(t,"a",(function(){return c})),o.d(t,"d",(function(){return u})),o.d(t,"c",(function(){return p}));var n=o(8),a=o(17),r=o(107),i=o(205),l=o(14);const s=(e,t,o)=>Object.entries(t).reduce((t,[n,a])=>(!e.includes(n)&&c(a,o)&&t.push(n),t),[]);function c(e,t){return!!Object(i.a)(e.data)||(l.h?function({rules:e}){const{ruleMatches:t,page:o}=a.a.get("wp"),i=e.find(({entityType:e,appliedFor:t,entityValues:n})=>t===r.a&&e===r.b&&n.includes(o));if(i)return p(i);const l=t.map(({type:e,group:t,entityType:o,values:n})=>({type:e,entityType:o,appliedFor:t,entityValues:n})),s=d(e),c=d(l);let u=s.level1.find(e=>c.level1.find(({entityType:t,appliedFor:o,entityValues:a})=>o===e.appliedFor&&t===e.entityType&&n.default.intersection(a,e.entityValues).length));if(u)return p(u);if(u=s.level2.find(e=>c.level2.find(({entityType:t,appliedFor:o})=>o===e.appliedFor&&t===e.entityType)),u)return p(u);if(s.level3.length)return p(s.level3[0]);return!1}(e):function(e,t){if(!e)throw Error("GlobalBlock should exist");const{rules:o}=e,{level1:n,level2:a,level3:r}=u(o,t);if(n)return p(n);if(a)return p(a);if(r)return p(r);return!1}(e,t))}function d(e){return e.reduce((e,t)=>{const{appliedFor:o,entityType:n,entityValues:a}=t;return n===r.b||(""===o||null===o?e.level3.push(t):a.length?e.level1.push(t):e.level2.push(t)),e},{level1:[],level2:[],level3:[]})}function u(e=[],t){const o=Object(r.e)(t);return{level1:e.find(({appliedFor:e,entityType:t,entityValues:n})=>e===o.group&&t===o.type&&n.includes(o.id)),level2:e.find(({appliedFor:e,entityType:t,entityValues:n})=>e===o.group&&t===o.type&&!n.length),level3:e.find(({appliedFor:e,entityType:t})=>(""===e||null===e)&&""===t)}}function p(e){return 1===e.type}},,,,,,,,function(e,t,o){"use strict";o.d(t,"a",(function(){return d}));var n=o(2),a=o(0),r=o.n(a),i=o(8),l=o(5),s=o.n(l),c=o(15);class d extends r.a.Component{constructor(...e){super(...e),Object(n.a)(this,"onChange",e=>{const{valueMap:t,onChange:o}=this.props,n=i.default.isObject(t)?t[e.target.checked]:e.target.checked;setTimeout(o,200,n)})}render(){const{className:e,defaultValue:t,valueMap:o,arrowCheck:n,arrowUnCheck:a}=this.props,l=i.default.isObject(o)?"true"===i.default.findKey(o,e=>e===t):t,d=s()("brz-ed-control__switch",e);return r.a.createElement("div",{className:d},r.a.createElement("label",{className:"brz-label brz-ed-control__switch-label"},r.a.createElement("input",{type:"checkbox",className:"brz-input brz-ed-control__switch-input",defaultChecked:l,onChange:this.onChange}),r.a.createElement("span",{className:"brz-span brz-ed-control__switch-arrows"},r.a.createElement(c.b,{className:"brz-ed-control__switch--check",icon:n}),r.a.createElement(c.b,{className:"brz-icon-svg brz-ed-control__switch--un-check",icon:a})),r.a.createElement("span",{className:"brz-span brz-ed-control__switch--handle"})))}}Object(n.a)(d,"defaultProps",{className:"",arrowCheck:"nc-check-small",arrowUnCheck:"nc-remove",defaultValue:!1,valueMap:null})},,function(e,t,o){"use strict";var n=o(2),a=o(0),r=o.n(a);class i extends a.Component{render(){const{title:e,items:t,children:o}=this.props;return r.a.createElement("div",{title:e,className:"brz-control__select-optgroup"},r.a.createElement("div",{className:"brz-control__select-optgroup-label"},o),t)}}Object(n.a)(i,"defaultProps",{title:"",active:"",items:[]}),t.a=i},function(e,t,o){"use strict";o.d(t,"a",(function(){return se})),o.d(t,"c",(function(){return de})),o.d(t,"d",(function(){return ue})),o.d(t,"b",(function(){return pe}));var n={};o.r(n),o.d(n,"getItems",(function(){return G})),o.d(n,"getItemsSimple",(function(){return U})),o.d(n,"getItemsMMenu",(function(){return K}));var a={};o.r(a),o.d(a,"getItems",(function(){return q})),o.d(a,"getItemsSimple",(function(){return Y})),o.d(a,"getItemsMMenu",(function(){return X}));var r={};o.r(r),o.d(r,"getItems",(function(){return J}));var i={};o.r(i),o.d(i,"title",(function(){return Q})),o.d(i,"getItems",(function(){return ee}));var l=o(12),s=o(32),c=o(2),d=o(0),u=o.n(d),p=o(8),b=o(37),m=o(5),h=o.n(m),g=o(17),v=o(85),f=o(20),y=o(22),O=o(29),S=o(45),C=o(90),x=o(14),j=o(56),B=o(82),P=o(6),w=o.n(P),T=o(111),z=o(15);function E({iframeSrc:e,opened:t,onClose:o}){return u.a.createElement(T.a,{opened:t,onClose:o},u.a.createElement(k,{src:e,onRequestClose:o}))}function k({src:e,onRequestClose:t}){const[o,n]=Object(d.useState)(!1),a=Object(d.useRef)(null);return Object(d.useEffect)(()=>{const o=o=>{const r=new URL(e);if(o.origin===r.origin&&o.source===a.current.contentWindow&&o.data&&o.data.type)switch(o.data.type){case"CLOSE":t();break;case"NAVIGATE":o.data.url&&(n.parent.location.href=o.data.url)}},n=a.current.ownerDocument.defaultView;return n.addEventListener("message",o),()=>n.removeEventListener("message",o)},[]),u.a.createElement(u.a.Fragment,null,u.a.createElement("iframe",{ref:a,title:"ThirdParty",src:e,style:{position:"relative",display:o?"block":"none",width:"100%",maxWidth:"1140px",height:"90%",maxHeight:"967px",border:0,borderRadius:"7px"},onLoad:()=>n(!0)}),!o&&u.a.createElement(z.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin",style:{fontSize:"30px",color:"rgba(255, 255, 255, 0.75)"}}))}E.defaultProps={iframeSrc:"",opened:!1,onClose:p.default.noop},E.propTypes={iframeSrc:w.a.string.isRequired,opened:w.a.bool,onClose:w.a.func},k.defaultProps={src:"",onRequestClose:p.default.noop},k.propTypes={src:w.a.string.isRequired,onRequestClose:w.a.func};var H=o(23),_=(o(44),o(105)),F=o(11),R=o(52),M=o(1),L={getItems:function(){return[{id:"main",type:"group",title:Object(M.a)("Menu"),icon:"nc-tabs",disabled:(e,t)=>t.isInSubMenu,items:[]}]}};var W=o(441),I=o(18),N=o(9),A=o(3),D=o(13),V=o(30),$=o(7);function G({v:e,device:t,state:o}){return"on"===Object(A.defaultValueValue)({v:e,device:t,state:o,key:"mMenu"})?K({v:e,device:t,state:o}):U({v:e,device:t,state:o})}function U({v:e,device:t,state:o}){const n=n=>Object(A.defaultValueValue)({v:e,key:n,device:t,state:o}),{hex:a}=Object(D.d)(n("colorHex"),n("colorPalette")),{hex:r}=Object(D.d)(n("subMenuColorHex"),n("subMenuColorPalette"));return[{id:"toolbarMenuSettings",type:"popover-dev",config:{icon:"nc-menu-3",title:Object(M.a)("Menu")},position:10,options:[{id:"menuSize",type:"slider-dev",label:Object(M.a)("Size"),position:20,disabled:"horizontal"===n("verticalMode"),config:{min:10,max:100,units:[{title:"%",value:"%"}]}}]},{id:"toolbarMenuItem",type:"popover-dev",config:{icon:"nc-star",title:Object(M.a)("Icon")},position:20,options:[{id:"iconSize",type:"slider-dev",label:Object(M.a)("Size"),position:20,config:{min:0,max:100,units:[{title:"px",value:"px"}]}},{id:"iconSpacing",type:"slider-dev",devices:"desktop",label:Object(M.a)("Spacing"),roles:["admin"],position:30,config:{min:0,max:100,units:[{title:"px",value:"px"}]}}]},{id:"subMenuToolbarMenuItem",type:"popover-dev",config:{icon:"nc-star",title:Object(M.a)("Icon")},position:20,options:[{id:"subMenuIconSize",type:"slider-dev",label:Object(M.a)("Size"),position:20,config:{min:0,max:100,units:[{title:"px",value:"px"}]}},{id:"subMenuIconSpacing",type:"slider",devices:"desktop",label:Object(M.a)("Spacing"),roles:["admin"],position:30,slider:{min:0,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:e.subMenuIconSpacing},onChange:({value:t})=>({subMenuIconSpacing:t,mMenuIconSpacing:e.subMenuIconSpacing===e.mMenuIconSpacing?t:e.mMenuIconSpacing})}]},{id:"toolbarTypography",type:"popover-dev",config:{icon:"nc-font",size:t===V.a?"large":"auto",title:Object(M.a)("Typography")},roles:["admin"],position:70,options:[{id:"",type:"typography-dev",config:{fontFamily:t===V.a}}]},{id:"subMenuToolbarTypography",type:"popover-dev",config:{icon:"nc-font",size:t===V.a?"large":"auto",title:Object(M.a)("Typography")},roles:["admin"],position:70,options:[{id:"subMenu",type:"typography-dev",config:{fontFamily:t===V.a}}]},{id:"toolbarColor",type:"popover-dev",config:{size:"auto",title:Object(M.a)("Colors"),icon:{style:{backgroundColor:Object(I.c)(a,e.colorOpacity)}}},devices:"desktop",position:80,roles:["admin"],options:[{id:"color",type:"tabs-dev",tabs:[{id:"tabText",label:Object(M.a)("Text"),options:[{id:"color",type:"colorPicker-dev",states:[$.c,$.b,$.a]}]},{id:"bg",label:Object(M.a)("Bg"),options:[{id:"menuBgColor",type:"colorPicker-dev",states:[$.c,$.b,$.a]}]},{id:"border",label:Object(M.a)("Border"),options:[{id:"menuBorder",type:"border-dev",states:[$.c,$.b,$.a]}]}]}]},{id:"subMenuToolbarColor",type:"popover-dev",config:{size:"auto",title:Object(M.a)("Colors"),icon:{style:{backgroundColor:Object(I.c)(r,e.subMenuColorOpacity)}}},devices:"desktop",position:80,roles:["admin"],options:[{id:"subMenuColor",type:"tabs-dev",config:{position:"left"},tabs:[{id:"tabNormal",icon:"nc-circle",title:Object(M.a)("Normal"),options:[{id:"subMenuColorTabs",type:"tabs-dev",tabs:[{id:"tabText",label:Object(M.a)("Text"),options:[Object(N.n)({v:e,device:t,prefix:"subMenuColor",onChangeHex:["onChangeColorHexSubMenu2"],onChangePalette:["onChangeColorPaletteSubMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:100,options:[Object(N.o)({v:e,device:t,prefix:"subMenuColor",onChange:["onChangeColorFieldsSubMenu2"]})]}]}]},{id:"tabBackground",label:Object(M.a)("Bg"),options:[Object(N.b)({v:e,device:t,state:"normal",prefix:"subMenuBg",showSelect:!1,onChangeHex:["onChangeBgColorHexSubMenu2"],onChangePalette:["onChangeBgColorPaletteSubMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:30,options:[Object(N.c)({v:e,device:t,state:"normal",prefix:"subMenuBg",onChange:["onChangeBgColorFieldsSubMenu2"]})]}]}]},{id:"tabBorder",label:Object(M.a)("Border"),options:[Object(N.f)({v:e,device:t,state:"normal",prefix:"subMenu",showSelect:!1,onChangeHex:["onChangeBorderColorHexSubMenu2"],onChangePalette:["onChangeBorderColorPaletteSubMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:38,options:[Object(N.g)({v:e,device:t,prefix:"subMenu",state:"normal",onChange:["onChangeBorderColorFieldsSubMenu2"]})]}]}]},{id:"tabBoxShadow",label:Object(M.a)("Shadow"),options:[Object(N.k)({v:e,device:t,choices:"outset",state:"normal",onChangeType:["onChangeBoxShadowType2","onChangeBoxShadowTypeDependencies2"],onChangeHex:["onChangeBoxShadowHexAndOpacity2","onChangeBoxShadowHexAndOpacityPalette2","onChangeBoxShadowHexAndOpacityDependencies2"],onChangePalette:["onChangeBoxShadowPalette2","onChangeBoxShadowPaletteOpacity2","onChangeBoxShadowHexAndOpacityDependencies2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:41,options:[Object(N.m)({v:e,device:t,state:"normal",onChange:["onChangeBoxShadowHexAndOpacity2","onChangeBoxShadowHexAndOpacityPalette2","onChangeBoxShadowHexAndOpacityDependencies2"]})]},{width:59,options:[Object(N.l)({v:e,device:t,state:"normal",choices:"outset",onChange:["onChangeBoxShadowFields2","onChangeBoxShadowFieldsDependencies2"]})]}]}]}]}]},{id:"tabHover",icon:"nc-hover",title:Object(M.a)("Hover"),options:[{id:"subMenuHoverColorTabs",className:"",type:"tabs-dev",tabs:[{id:"tabText",label:Object(M.a)("Text"),options:[Object(N.n)({v:e,device:t,prefix:"subMenuHoverColor",onChangeHex:["onChangeHoverColorHexSubMenu2"],onChangePalette:["onChangeHoverColorPaletteSubMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:100,options:[Object(N.o)({v:e,device:t,prefix:"subMenuHoverColor",onChange:["onChangeHoverColorFieldsSubMenu2"]})]}]}]},{id:"tabBackground",label:Object(M.a)("Background"),options:[Object(N.b)({v:e,device:t,state:"normal",prefix:"subMenuHoverBg",showSelect:!1,onChangeHex:["onChangeBgHoverColorHexSubMenu2"],onChangePalette:["onChangeBgHoverColorPaletteSubMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:30,options:[Object(N.c)({v:e,device:t,state:"normal",prefix:"subMenuHoverBg",onChange:["onChangeBgHoverColorFieldsSubMenu2"]})]}]}]},{id:"tabBoxShadow",label:Object(M.a)("Shadow"),options:[Object(N.k)({v:e,device:t,choices:"outset",state:"hover",onChangeType:["onChangeBoxShadowType2","onChangeBoxShadowTypeDependencies2"],onChangeHex:["onChangeBoxShadowHexAndOpacity2","onChangeBoxShadowHexAndOpacityPalette2","onChangeBoxShadowHexAndOpacityDependencies2"],onChangePalette:["onChangeBoxShadowPalette2","onChangeBoxShadowPaletteOpacity2","onChangeBoxShadowHexAndOpacityDependencies2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:41,options:[Object(N.m)({v:e,device:t,state:"hover",onChange:["onChangeBoxShadowHexAndOpacity2","onChangeBoxShadowHexAndOpacityPalette2","onChangeBoxShadowHexAndOpacityDependencies2"]})]},{width:59,options:[Object(N.l)({v:e,device:t,state:"hover",choices:"outset",onChange:["onChangeBoxShadowFields2","onChangeBoxShadowFieldsDependencies2"]})]}]}]}]}]},{id:"tabActive",icon:"nc-target",title:Object(M.a)("Active"),options:[{id:"activeSubMenuColorTabs",className:"",type:"tabs-dev",tabs:[{id:"tabText",label:Object(M.a)("Text"),options:[Object(N.n)({v:e,device:t,prefix:"activeSubMenuColor",onChangeHex:["onChangeActiveColorHexSubMenu2"],onChangePalette:["onChangeActiveColorPaletteSubMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:100,options:[Object(N.o)({v:e,device:t,prefix:"activeSubMenuColor",onChange:["onChangeActiveColorFieldsSubMenu2"]})]}]}]},{id:"tabBackground",label:Object(M.a)("Background"),options:[Object(N.b)({v:e,device:t,state:"normal",prefix:"activeSubMenuBg",showSelect:!1,onChangeHex:["onChangeBgActiveColorHexSubMenu2"],onChangePalette:["onChangeBgActiveColorPaletteSubMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:30,options:[Object(N.c)({v:e,device:t,state:"normal",prefix:"activeSubMenuBg",onChange:["onChangeBgActiveColorFieldsSubMenu2"]})]}]}]},{id:"tabBoxShadow",label:Object(M.a)("Shadow"),options:[Object(N.k)({v:e,device:t,choices:"outset",state:"active",onChangeType:["onChangeBoxShadowType2","onChangeBoxShadowTypeDependencies2"],onChangeHex:["onChangeBoxShadowHexAndOpacity2","onChangeBoxShadowHexAndOpacityPalette2","onChangeBoxShadowHexAndOpacityDependencies2"],onChangePalette:["onChangeBoxShadowPalette2","onChangeBoxShadowPaletteOpacity2","onChangeBoxShadowHexAndOpacityDependencies2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:41,options:[Object(N.m)({v:e,device:t,state:"active",onChange:["onChangeBoxShadowHexAndOpacity2","onChangeBoxShadowHexAndOpacityPalette2","onChangeBoxShadowHexAndOpacityDependencies2"]})]},{width:59,options:[Object(N.l)({v:e,device:t,state:"active",choices:"outset",onChange:["onChangeBoxShadowFields2","onChangeBoxShadowFieldsDependencies2"]})]}]}]}]}]}]}]},{id:"advancedSettings",type:"advancedSettings",roles:["admin"],position:110,icon:"nc-cog",title:Object(M.a)("Settings")}]}function K({v:e,device:t,state:o}){const n=n=>Object(A.defaultValueValue)({v:e,key:n,device:t,state:o}),{hex:a}=Object(D.d)(n("mMenuColorHex"),n("mMenuColorPalette"));return[{id:"mMenuToolbarMenuItem",type:"popover-dev",config:{icon:"nc-star",title:Object(M.a)("Icon")},position:20,options:[{id:"mMenuIconSize",type:"slider-dev",label:Object(M.a)("Size"),roles:["admin"],position:20,config:{min:0,max:100,units:[{title:"%",value:"%"}]}},{id:"mMenuIconSpacing",type:"slider-dev",label:Object(M.a)("Spacing"),roles:["admin"],position:30,config:{min:0,max:100,units:[{title:"%",value:"%"}]}}]},{id:"mMenuToolbarTypography",type:"popover-dev",config:{icon:"nc-font",title:Object(M.a)("Typography"),size:t===V.a?"large":"auto"},roles:["admin"],position:70,options:[{id:"mMenu",type:"typography-dev",config:{fontFamily:t===V.a}}]},{id:"mMenuToolbarColor",type:"popover-dev",config:{size:"auto",title:Object(M.a)("Colors"),icon:{style:{backgroundColor:Object(I.c)(a,e.mMenuColorOpacity)}}},position:80,roles:["admin"],options:[{id:"mMenuColor",type:"tabs-dev",config:{position:"left"},tabs:[{id:"tabNormal",icon:"nc-circle",title:Object(M.a)("Normal"),options:[{id:"mMenuColorTabs",className:"",type:"tabs-dev",tabs:[{id:"tabText",label:Object(M.a)("Text"),options:[Object(N.n)({v:e,device:t,prefix:"mMenuColor",state:"normal",onChangeHex:["onChangeColorHexMMenu2"],onChangePalette:["onChangeColorPaletteMMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:100,options:[Object(N.o)({v:e,device:t,prefix:"mMenuColor",state:"normal",onChange:["onChangeColorFieldsMMenu2"]})]}]}]},{id:"tabBackground",label:Object(M.a)("Background"),options:[Object(N.b)({v:e,device:t,state:"normal",prefix:"mMenuBg",showSelect:!1,onChangeHex:["onChangeBgColorHexMMenu2"],onChangePalette:["onChangeBgColorPaletteMMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:30,options:[Object(N.c)({v:e,device:t,state:"normal",prefix:"mMenuBg",onChange:["onChangeBgColorFieldsMMenu2"]})]}]}]},{id:"tabBorder",label:Object(M.a)("Border"),options:[Object(N.f)({v:e,device:t,state:"normal",prefix:"mMenu",showSelect:!1,onChangeHex:["onChangeBorderColorHexMMenu2"],onChangePalette:["onChangeBorderColorPaletteMMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:38,options:[Object(N.g)({v:e,device:t,prefix:"mMenu",state:"normal",onChange:["onChangeBorderColorFieldsMMenu2"]})]}]}]}]}]},{id:"tabHover",icon:"nc-hover",title:Object(M.a)("Hover"),options:[{id:"mMenuColorTabs",className:"",config:{showSingle:!0},type:"tabs-dev",tabs:[{id:"tabText",label:Object(M.a)("Text"),options:[Object(N.n)({v:e,device:t,prefix:"mMenuHoverColor",onChangeHex:["onChangeHoverColorHexMMenu2"],onChangePalette:["onChangeHoverColorPaletteMMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:100,options:[Object(N.o)({v:e,device:t,prefix:"mMenuHoverColor",onChange:["onChangeHoverColorFieldsMMenu2"]})]}]}]}]}]},{id:"tabActive",icon:"nc-target",title:Object(M.a)("Active"),options:[{id:"mMenuColorTabs",className:"",config:{showSingle:!0},type:"tabs-dev",tabs:[{id:"tabText",label:Object(M.a)("Text"),options:[Object(N.n)({v:e,device:t,prefix:"activeMMenuColor",onChangeHex:["onChangeActiveColorHexMMenu2"],onChangePalette:["onChangeActiveColorPaletteMMenu2"]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:100,options:[Object(N.o)({v:e,device:t,prefix:"activeMMenuColor",onChange:["onChangeActiveColorFieldsMMenu2"]})]}]}]}]}]}]}]},{id:"mMenuItemHorizontalAlign",type:"toggle-dev",position:100,choices:[{icon:"nc-text-align-left",title:Object(M.a)("Align"),value:"left"},{icon:"nc-text-align-center",title:Object(M.a)("Align"),value:"center"},{icon:"nc-text-align-right",title:Object(M.a)("Align"),value:"right"}]},{id:"mMenuAdvancedSettings",type:"advancedSettings",roles:["admin"],position:110,icon:"nc-cog",title:Object(M.a)("Settings")}]}function q({v:e,device:t,state:o}){return"on"===Object(A.defaultValueValue)({v:e,device:t,state:o,key:"mMenu"})?X({v:e,device:t,state:o}):Y({v:e,device:t,state:o})}function Y({v:e,device:t}){const o="grouped"===e.borderRadiusType;return[{id:"settingsTabs",type:"tabs-dev",config:{align:"start"},devices:"desktop",tabs:[{id:"settingsStyling",label:Object(M.a)("Styling"),icon:"nc-styling",options:[]},{id:"moreSettingsAdvanced",label:Object(M.a)("Advanced"),icon:"nc-cog",options:[]}]},{id:"borderRadiusPicker",type:"group-dev",devices:"desktop",options:[{id:"borderRadiusType",label:Object(M.a)("Corner"),type:"radioGroup-dev",choices:[{value:"grouped",icon:"nc-corners-all"},{value:"ungrouped",icon:"nc-corners-individual"}]},{id:"borderRadius",type:"slider",disabled:!o,slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:e.borderRadius},onChange:({value:t},{sliderDragEnd:o})=>({borderRadius:t,borderTopLeftRadius:t,borderTopRightRadius:t,borderBottomLeftRadius:t,borderBottomRightRadius:t,tempBorderRadius:o?t:e.tempBorderRadius,tempBorderTopLeftRadius:t>0&&o?t:e.tempBorderTopLeftRadius,tempBorderTopRightRadius:t>0&&o?t:e.tempBorderTopRightRadius,tempBorderBottomRightRadius:t>0&&o?t:e.tempBorderBottomRightRadius,tempBorderBottomLeftRadius:t>0&&o?t:e.tempBorderBottomLeftRadius})},{id:"borderTopLeftRadius",icon:"nc-corners-top-left",type:"slider",disabled:o,slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:e.borderTopLeftRadius},onChange:({value:t},{sliderDragEnd:o})=>({borderTopLeftRadius:t,borderTopRightRadius:t>0?e.tempBorderTopRightRadius:e.borderTopRightRadius,borderBottomLeftRadius:t>0?e.tempBorderBottomLeftRadius:e.borderBottomLeftRadius,borderBottomRightRadius:t>0?e.tempBorderBottomRightRadius:e.borderBottomRightRadius,borderRadius:t===e.borderTopRightRadius&&t===e.borderBottomRightRadius&&t===e.borderBottomLeftRadius?t:e.borderRadius,tempBorderTopLeftRadius:t,tempBorderRadius:o&&t===e.borderTopRightRadius&&t===e.borderBottomRightRadius&&t===e.borderBottomLeftRadius?t:e.tempBorderRadius})},{id:"borderTopRightRadius",icon:"nc-corners-top-right",type:"slider",disabled:o,slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:e.borderTopRightRadius},onChange:({value:t},{sliderDragEnd:o})=>({borderTopRightRadius:t,borderTopLeftRadius:t>0?e.tempBorderTopLeftRadius:e.borderTopLeftRadius,borderBottomLeftRadius:t>0?e.tempBorderBottomLeftRadius:e.borderBottomLeftRadius,borderBottomRightRadius:t>0?e.tempBorderBottomRightRadius:e.borderBottomRightRadius,borderRadius:t===e.borderTopLeftRadius&&t===e.borderBottomRightRadius&&t===e.borderBottomLeftRadius?t:e.borderRadius,tempBorderTopRightRadius:t,tempBorderRadius:o&&t===e.borderTopLeftRadius&&t===e.borderBottomRightRadius&&t===e.borderBottomLeftRadius?t:e.tempBorderRadius})},{id:"borderBottomRightRadius",icon:"nc-corners-bottom-right",type:"slider",disabled:o,slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:e.borderBottomRightRadius},onChange:({value:t},{sliderDragEnd:o})=>({borderBottomRightRadius:t,borderTopLeftRadius:t>0?e.tempBorderTopLeftRadius:e.borderTopLeftRadius,borderBottomLeftRadius:t>0?e.tempBorderBottomLeftRadius:e.borderBottomLeftRadius,borderTopRightRadius:t>0?e.tempBorderTopRightRadius:e.borderTopRightRadius,borderRadius:t===e.borderTopLeftRadius&&t===e.borderTopRightRadius&&t===e.borderBottomLeftRadius?t:e.borderRadius,tempBorderBottomRightRadius:t,tempBorderRadius:o&&t===e.borderTopLeftRadius&&t===e.borderTopRightRadius&&t===e.borderBottomLeftRadius?t:e.tempBorderRadius})},{id:"borderBottomLeftRadius",icon:"nc-corners-bottom-left",type:"slider",disabled:o,slider:{min:0,max:100},input:{show:!0,min:0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:e.borderBottomLeftRadius},onChange:({value:t},{sliderDragEnd:o})=>({borderBottomLeftRadius:t,borderTopLeftRadius:t>0?e.tempBorderTopLeftRadius:e.borderTopLeftRadius,borderBottomRightRadius:t>0?e.tempBorderBottomRightRadius:e.borderBottomRightRadius,borderTopRightRadius:t>0?e.tempBorderTopRightRadius:e.borderTopRightRadius,borderRadius:t===e.borderTopLeftRadius&&t===e.borderTopRightRadius&&t===e.borderBottomRightRadius?t:e.borderRadius,tempBorderBottomLeftRadius:t,tempBorderRadius:o&&t===e.borderTopLeftRadius&&t===e.borderTopRightRadius&&t===e.borderBottomRightRadius?t:e.tempBorderRadius})}]},Object(N.ob)({v:e,device:t,prefix:"menu",state:"normal",onChangeGrouped:["onChangePaddingGrouped"],onChangeUngrouped:["onChangePaddingUngrouped"]})]}function X({v:e,device:t}){return[Object(N.ob)({v:e,device:t,prefix:"mMenu",state:"normal",onChangeGrouped:["onChangePaddingGrouped"],onChangeUngrouped:["onChangePaddingUngrouped"]})]}const Z=g.a.get("menuData");function J({v:e,device:t,state:o}){const n=e=>Object(A.defaultValueKey)({key:e,device:t}),a=o=>Object(A.defaultValueValue)({v:e,key:o,device:t}),r=(()=>{const e=Z.map(({id:e,name:t})=>({title:t,value:e}));return e.length?e:[{title:"-",value:"-"}]})(),i=r.some(({value:t})=>t===e.menuSelected),{hex:l}=Object(D.d)(a("mMenuIconColorHex"),a("mMenuIconColorPalette")),s=Object(I.c)(l,"desktop"===t?e.mMenuIconColorOpacity:"tablet"===t?Object(A.tabletSyncOnChange)(e,"mMenuIconColorOpacity"):Object(A.mobileSyncOnChange)(e,"mMenuIconColorOpacity")),c="desktop"===t?["onChangeColorHexIconMenu2","onChangeColorPaletteIconMenu2","onChangeColorFieldsIconMenu2"]:"tablet"===t?["onChangeTabletColorHexIconMMenu2","onChangeTabletColorPaletteIconMMenu2","onChangeTabletColorFieldsIconMMenu2"]:["onChangeMobileColorHexIconMMenu2","onChangeMobileColorPaletteIconMMenu2","onChangeMobileColorFieldsIconMMenu2"];return[{id:"toolbarMenu",type:"popover-dev",config:{icon:"nc-menu-3",title:Object(M.a)("Menu")},roles:["admin"],position:10,options:[{id:"menuSelected",type:"select",devices:"desktop",position:10,label:Object(M.a)("Menu"),choices:i?r:[{title:Object(M.a)("Select a Menu"),value:"-"},...r],value:i?e.menuSelected:"-",onChange:e=>{if("-"!==e)return{menuSelected:e}}},{id:"groupSettings",type:"group-dev",position:20,options:[{id:"mMenu",type:"switch-dev",label:Object(M.a)("Make it Hamburger")},{id:"mMenuSize",type:"slider-dev",label:Object(M.a)("Size"),disabled:"on"!==a("mMenu"),config:{min:8,max:64,units:[{title:"px",value:"px"}]}}]},{id:"verticalMode",label:Object(M.a)("Orientation"),type:"radioGroup-dev",position:30,disabled:"on"===e.mMenu,choices:[{value:"vertical",icon:"nc-vertical-items"},{value:"horizontal",icon:"nc-horizontal-items"}]},{id:"mMenuPosition",label:Object(M.a)("Drawer Position"),type:"radioGroup",disabled:"off"===a("mMenu"),position:40,choices:[{value:"left",icon:"nc-align-left"},{value:"right",icon:"nc-align-right"}],value:e.mMenuPosition},{id:n("itemPadding"),type:"slider",label:Object(M.a)("Spacing"),roles:["admin"],position:50,slider:{min:0,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},disabled:1===e.items.length||"on"===a("mMenu"),value:{value:a("itemPadding")},onChange:({value:e})=>({[n("itemPadding")]:e,[n("itemPaddingRight")]:e,[n("itemPaddingLeft")]:e})}]},{id:"mMenuColors",type:"popover-dev",config:{size:"auto",title:Object(M.a)("Color"),icon:{style:{backgroundColor:s}}},position:20,disabled:"off"===a("mMenu"),options:[Object(N.n)({v:e,device:t,state:o,prefix:n("mMenuIconColor"),onChangeHex:[c[0]],onChangePalette:[c[1]]}),{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:100,options:[Object(N.o)({v:e,device:t,state:o,prefix:n("mMenuIconColor"),onChange:[c[2]]})]}]}]}]}const Q=Object(M.a)("Menu");function ee(){return[{id:"settingsTabs",type:"tabs-dev",config:{align:"start"},devices:"desktop",tabs:[{id:"moreSettingsAdvanced",label:Object(M.a)("Advanced"),icon:"nc-cog",options:[{id:"customCSS",label:Object(M.a)("Custom CSS"),type:"codeMirror-dev",position:45,display:"block",devices:"desktop",helper:{content:'\n<p class="brz-p">You can use the following selectors to create targeted CSS.</p>\n<p class="brz-p">\n <span class="brz-span brz-ed-tooltip__overlay-code">element</span> {...}\n <br class="brz-br">\n <span class="brz-span brz-ed-tooltip__overlay-code">element .child-element</span> {...}\n</p>'},placeholder:"element { CSS goes here }"}]}]}]}function te(e,t,o){return Object(F.renderStyles)({v:e,vs:t,vd:o,styles:{".brz &&:hover .brz-mm-menu__icon":{interval:["cssStyleElementMenuShowIcon","cssStyleElementMMenuSize","cssStyleElementMMenuIconColor"]},".brz &&:hover .brz-menu":{interval:["cssStyleElementMenuShow"]}}})}var oe=o(4),ne=o(42),ae=o(36);function re(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ie(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?re(Object(o),!0).forEach((function(t){Object(c.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):re(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const le=g.a.get("pro");class se extends f.a{constructor(...e){super(...e),Object(c.a)(this,"nodeRef",u.a.createRef()),Object(c.a)(this,"mMenu",null),Object(c.a)(this,"handleChange",()=>{this.forceUpdate()}),Object(c.a)(this,"getNode",()=>this.nodeRef.current),Object(c.a)(this,"handleTextChange",e=>{this.patchValue({mMenuTitle:e})}),Object(c.a)(this,"openMMenu",()=>{var e;const t=this.getMMenu();!this.mMenu&&t&&this.initMMenu();const o=null===(e=this.mMenu)||void 0===e?void 0:e.API;o&&o.open()}),Object(c.a)(this,"closeMMenu",()=>{var e;const t=null===(e=this.mMenu)||void 0===e?void 0:e.API;t&&t.close()})}static get componentId(){return"Menu"}getMeta(e){const{meta:t}=this.props,o=Object(oe.mb)({v:e,device:V.a}),n=Object(oe.mb)({v:e,device:V.c}),a=Object(oe.mb)({v:e,device:V.b}),r="on"===o?ne.d:t.desktopW,i="on"===o?ne.d:t.desktopWNoSpacing,l="on"===n?ne.d:t.tabletW,s="on"===n?ne.d:t.tabletWNoSpacing,c="on"===a?ne.d:t.mobileW,d="on"===a?ne.d:t.mobileWNoSpacing;return ie(ie({},t),{},{desktopW:r,desktopWNoSpacing:i,tabletW:l,tabletWNoSpacing:s,mobileW:c,mobileWNoSpacing:d})}getDeviceMode(){return Object(H.b)().getState().ui.deviceMode}hasMMenu(){const e=this.getValue();const t=this.getDeviceMode();return"on"===Object(oe.mb)({v:e,device:t})}componentDidMount(){v.a.on("deviceMode.change",this.handleChange);const e=this.makeToolbarPropsFromConfig2(r,i,{allowExtend:!1,allowExtendFromThirdParty:!0});this.props.extendParentToolbar(e),this.hasMMenu()&&this.initMMenu()}componentWillUpdate({dbValue:e}){const{mMenuPosition:t,menuSelected:o}=this.getValue();(e.menuSelected&&e.menuSelected!==o||e.mMenuPosition&&e.mMenuPosition!==t)&&this.destroyMMenu()}componentDidUpdate(){this.hasMMenu()?this.initMMenu():this.destroyMMenu()}componentWillUnmount(){this.hasMMenu()&&this.destroyMMenu(),v.a.off("deviceMode.change",this.handleChange)}getDefaultValue(){return ie(ie({},super.getDefaultValue()),{},{symbols:{}})}getDBValue(){const e=g.a.get("menuData");if(0===e.length)return ie(ie({},this.props.dbValue),{},{items:[]});const{menuSelected:t=null,symbols:o={}}=this.props.dbValue||{},n=t||e[0].id,a=e.find(e=>e.id===n);return a&&0!==a.items.length?(void 0===this.menuItemsCache&&(this.menuItemsCache={}),void 0===this.menuItemsCache[n]&&(this.menuItemsCache[n]=de(a.items)),ie(ie({},this.props.dbValue),{},{menuSelected:n,items:ue(this.menuItemsCache[n],o)})):ie(ie({},this.props.dbValue),{},{items:[]})}handleValueChange(e,t){const{items:o}=e,n=Object(s.a)(e,["items"]);t.patch.items&&(n.symbols=ie(ie({},e.symbols),pe(o))),super.handleValueChange(n,t)}renderMMenuTitle(e){const{mMenuTitle:t}=e;return u.a.createElement("li",{className:"brz-mm-navbar"},u.a.createElement("a",{className:"brz-a brz-mm-navbar__title"},u.a.createElement(j.a,{value:t,onChange:this.handleTextChange})))}renderMenu(e,t,o,r){const{className:i,items:l,menuSelected:s}=e,c=this.hasMMenu()&&!!r,d=this.makeSubcomponentProps({bindWithKey:"items",itemProps:{mMenu:c,meta:this.getMeta(e),mods:{[V.a]:Object(oe.Bb)({v:e,device:V.a}),[V.c]:Object(oe.Bb)({v:e,device:V.c}),[V.b]:Object(oe.Bb)({v:e,device:V.b})},getParent:this.getNode,toolbarExtend:this.makeToolbarPropsFromConfig2(n,a,{allowExtend:!1})}}),p=h()("brz-menu",{"brz-menu__mmenu":c,"brz-menu--has-dropdown":c&&l.some(({value:{items:e}})=>e.length)},"brz-menu__editor",i,Object(F.css)(""+this.constructor.componentId,""+this.getId(),function(e,t,o){return Object(F.renderStyles)({v:e,vs:t,vd:o,styles:{".brz &&:hover":{interval:["cssStyleTypography2FontSize","cssStyleTypography2FontWeight","cssStyleTypography2LineHeight","cssStyleTypography2LetterSpacing"],standart:["cssStyleTypography2FontFamily","cssStyleColor"]},".brz && .brz-menu__ul:not(.brz-mm-listview)":{standart:["cssStyleElementMenuMode","cssStyleElementMenuSize","cssStyleElementMMenuListViewMargin"]},".brz && .brz-menu__ul > .brz-menu__item > .brz-a:hover":{standart:["cssStyleColor","cssStyleElementMenuLinkBgColor","cssStyleElementMenuPadding"]},".brz && .brz-menu__ul > .brz-menu__item.brz-menu__item--opened > .brz-a:hover":{standart:["cssStyleElementMenuActiveColor","cssStyleElementMenuActiveLinkBgColor"]},".brz && .brz-menu__ul > .brz-menu__item.brz-menu__item--opened:hover":{standart:["cssStyleElementMenuActiveColor","cssStyleElementMenuActiveBgColor","cssStyleElementMenuActiveBorder"]},".brz && .brz-menu__ul > .brz-menu__item.brz-menu__item--current:hover":{standart:["cssStyleElementMenuCurrentColor","cssStyleElementMenuCurrentBgColor","cssStyleElementMenuCurrentBorder"]},".brz && .brz-menu__ul > .brz-menu__item.brz-menu__item--current > .brz-a:hover":{standart:["cssStyleElementMenuCurrentColor","cssStyleElementMenuCurrentLinkBgColor"]},".brz &&:hover > .brz-ed-border":{interval:["cssStyleVisibleEditorDisplayNoneOrBlock|||editor"]},".brz &&:hover .brz-menu__item__icon":{interval:["cssStyleElementMenuIconSize"],standart:["cssStyleElementMenuIconSpacing"]},".brz && .brz-menu__ul > .brz-menu__item:hover":{standart:["cssStyleElementMenuBgColor","cssStyleElementMenuBorder"],interval:["cssStyleElementMMenuItemPadding"]},".brz && .brz-menu__ul > .brz-menu__item:first-child":{interval:["cssStyleElementMMenuItemPaddingTopZero"]},".brz && .brz-menu__ul > .brz-menu__item:last-child":{interval:["cssStyleElementMMenuItemPaddingBottomZero"]},".brz && .brz-mm-menu__item":{interval:["cssStyleElementMMenuFontSize","cssStyleElementMMenuFontWeight","cssStyleElementMMenuLineHeight","cssStyleElementMMenuLetterSpacing"],standart:["cssStyleElementMMenuFontFamily","cssStyleElementMMenuColor","cssStyleElementMMenuBorderColor"]},".brz &&.brz-mm-menu .brz-mm-menu__item .brz-mm-listitem__text":{standart:["cssStyleElementMMenuPadding"]},".brz &&:hover .brz-mm-menu__item:hover > .brz-mm-listitem__text":{standart:["cssStyleElementMMenuHoverColor"]},".brz &&:hover .brz-mm-menu__item .brz-a":{interval:["cssStyleElementMMenuItemHorizontalAlign"]},".brz &&:hover .brz-mm-menu__item__icon":{interval:["cssStyleElementMMenuIconSpacing","cssStyleElementMMenuIconSize"]},".brz && .brz-mm-navbar":{interval:["cssStyleElementMMenuFontFamily","cssStyleElementMMenuFontSize","cssStyleElementMMenuFontWeight","cssStyleElementMMenuLineHeight","cssStyleElementMMenuLetterSpacing","cssStyleElementMMenuBorderColor"],standart:["cssStyleElementMMenuColor"]},".brz &&:hover .brz-mm-menu__item.brz-mm-listitem_opened":{standart:["cssStyleElementMMenuColor"]},".brz &&:hover.brz-mm-menu .brz-mm-listitem_vertical .brz-mm-btn_next":{interval:["cssStyleElementMMenuBtnNext"]},".brz &&.brz-mm-menu.brz-mm-menu_theme-dark .brz-mm-panels, .brz &&:hover .brz-mm-panels > .brz-mm-panel":{standart:["cssStyleElementMMenuBackgroundColor"]},".brz &&.brz-mm-menu.brz-mm-menu_theme-dark .brz-mm-navbar.brz-mm-listitem .brz-mm-listitem_opened > .brz-mm-listitem__text:after":{standart:["cssStyleElementMMenuBorderColor"]},".brz &&:hover .brz-mm-listitem":{standart:["cssStyleElementMMenuBorderColor"]},".brz && .brz-mm-menu__item.brz-mm-menu__item--current":{standart:["cssStyleElementMMenuActiveColor"]},".brz:hover && .brz-mm-menu__item.brz-mm-menu__item--current:hover > .brz-mm-listitem__text":{standart:["cssStyleElementMMenuActiveColor"]},".brz &&:hover .brz-menu__sub-menu":{interval:["cssStyleElementMenuSubMenuFontSize","cssStyleElementMenuSubMenuFontWeight","cssStyleElementMenuSubMenuLineHeight","cssStyleElementMenuSubMenuLetterSpacing"],standart:["cssStyleElementMenuSubMenuFontFamily","cssStyleElementMenuSubMenuColor","cssStyleBoxShadow","cssStyleBorderRadius"]},".brz &&:hover .brz-menu__sub-menu .brz-a:hover":{standart:["cssStyleElementMenuSubMenuHoverColor"]},".brz &&:hover .brz-menu__sub-item__icon":{standart:["cssStyleElementMenuSubMenuIconSpacing","cssStyleElementMenuSubMenuIconSize"]},".brz &&:hover .brz-menu__dropdown > .brz-menu__item.brz-menu__item--current > .brz-a":{standart:["cssStyleElementMenuSubMenuCurrentColor"]},".brz &&:hover .brz-menu__dropdown > .brz-menu__item.brz-menu__item--current":{standart:["cssStyleElementMenuSubMenuCurrentBgColor"]},".brz &&:hover .brz-menu__dropdown > .brz-menu__item.brz-menu__item--current:hover":{standart:["cssStyleElementMenuSubMenuCurrentBgColor"]},".brz &&:hover .brz-menu__item--current .brz-menu__sub-menu":{standart:["cssStyleElementMenuSubMenuCurrentBoxShadow"]},".brz &&:hover .brz-menu__item-dropdown .brz-menu__item":{standart:["cssStyleElementMenuSubMenuBgColor"]},".brz &&:hover .brz-menu__item-dropdown .brz-menu__item:hover":{standart:["cssStyleElementMenuSubMenuHoverBgColor"]},".brz &&:hover .brz-menu__dropdown .brz-menu__item-dropdown .brz-a:after":{standart:["cssStyleElementMenuSubMenuBorderColor"]},".brz &&:hover .brz-menu__dropdown > .brz-menu__item":{standart:["cssStyleElementMenuSubMenuBorderBottom"]},".brz && .brz-menu__dropdown":{interval:["cssStyleMenuDropdownPosition"]},".brz && .brz-menu__dropdown-left":{interval:["cssStyleMenuDropdownPositionLeft"]},".brz && .brz-menu__dropdown-right":{interval:["cssStyleMenuDropdownPositionRight"]},".brz && .brz-menu__dropdown-left:before":{interval:["cssStyleMenuDropdownBeforePositionLeft"]},".brz && .brz-menu__dropdown-right:before":{interval:["cssStyleMenuDropdownBeforePositionRight"]},".brz &&:hover > .brz-menu__ul > .brz-menu__item-dropdown > .brz-menu__dropdown":{interval:["cssStyleMenuFirstDropdownPosition"]},".brz &&:hover > .brz-menu__ul > .brz-menu__item-dropdown > .brz-menu__dropdown-left":{interval:["cssStyleMenuFirstDropdownPositionLeft"]},".brz &&:hover > .brz-menu__ul > .brz-menu__item-dropdown > .brz-menu__dropdown-right":{interval:["cssStyleMenuFirstDropdownPositionRight"]},".brz &&:hover > .brz-menu__ul > .brz-menu__item-dropdown > .brz-menu__dropdown-left:before":{interval:["cssStyleMenuFirstDropdownBeforePositionLeft"]},".brz &&:hover > .brz-menu__ul > .brz-menu__item-dropdown > .brz-menu__dropdown-right:before":{interval:["cssStyleMenuFirstDropdownBeforePositionRight"]},".brz &&:hover .brz-menu__item-dropdown .brz-menu__dropdown":{interval:["cssStyleElementMenuDropdown"]},".brz &&:hover .brz-menu__item.brz-menu__item--opened > .brz-menu__dropdown":{interval:["cssStyleElementMenuDropdownOpened"]},".brz &&.brz-menu__preview:hover .brz-menu__item:hover > .brz-menu__sub-menu":{interval:["cssStyleElementMenuDropdownOpened"]},".brz &&:hover .brz-menu__dropdown .brz-menu__item-dropdown > .brz-a:after":{interval:["cssStyleElementMenuDropdownArrow"]},".brz &&:hover .brz-menu__dropdown .brz-menu__item-dropdown .brz-menu__dropdown":{interval:["cssStyleElementMenuInnerDropdown"]},".brz &&:hover .brz-menu__dropdown .brz-menu__item--opened > .brz-menu__dropdown":{interval:["cssStyleElementMenuDropdownInnerOpened"]},".brz &&.brz-menu__preview:hover .brz-menu__dropdown .brz-menu__item:hover > .brz-menu__sub-menu":{interval:["cssStyleElementMenuDropdownInnerOpened"]},".brz && .brz-mega-menu__dropdown":{interval:["cssStyleElementMegaMenuOpened"]},".brz &&.brz-menu__preview:hover .brz-menu__item:hover > .brz-mega-menu__portal":{interval:["cssStyleElementMenuDropdownOpened"]},".brz &&:hover .brz-menu__item-mega-menu .brz-mega-menu__portal":{interval:["cssStyleElementMenuDropdown"]}}})}(e,t,o)),c&&this.getMMenuClassNames()),b={className:"brz-menu__ul"};return u.a.createElement("nav",{id:r,className:p},u.a.createElement("ul",b,c&&this.renderMMenuTitle(e),u.a.createElement(O.a,d)))}renderMMenu(e,t,o){const{menuSelected:n,mMenuPosition:a}=e;return u.a.createElement(u.a.Fragment,null,u.a.createElement(C.a,{key:`${n}-${a}`,node:document.body,className:"brz-ed-mmenu-portal"},u.a.createElement("div",{className:"brz-ed-mmenu-portal__menu brz-d-none"},this.renderMenu(e,t,o,this.getId()))),u.a.createElement("div",{className:"brz-mm-menu__icon",onClick:this.openMMenu},u.a.createElement(S.a,{name:"menu-3",type:"editor"})))}renderErrors(e){const t=g.a.get("menuData");let o;if(0===t.length){const e=g.a.get("urls").dashboardNavMenu;o=u.a.createElement(u.a.Fragment,null,u.a.createElement("a",{className:"brz-a",href:e,target:"_blank",rel:"noopener noreferrer"},Object(M.a)("Create a menu")),Object(M.a)("in your WordPress admin"))}if(!o){t.find(t=>t.id===e.menuSelected)||(o=Object(M.a)("Select a menu from the element options"))}return o&&u.a.createElement("div",{className:"brz-menu__error"},o)}renderForEdit(e,t,o){const n=this.renderErrors(e);if(n)return n;const a=h()("brz-menu__container",Object(F.css)(this.constructor.componentId+"-menu",this.getId()+"-menu",te(e,t,o)));return u.a.createElement(B.a,{exceptions:[".brz-ed-toolbar",".brz-ed-tooltip__content-portal",".brz-ed-sidebar__right",".brz-menu",".brz-menu__container",".brz-ed-fixed"],onClickOutside:this.closeMMenu},u.a.createElement(y.a,{selectorName:this.getId(),css:e.customCSS},u.a.createElement(R.b,this.makeContextMenuProps(L),u.a.createElement(ae.a,this.makeWrapperProps({className:a,ref:this.nodeRef}),this.hasMMenu()?this.renderMMenu(e,t,o):this.renderMenu(e,t,o)))))}renderForView(e,t,o){if(this.renderErrors(e))return null;const{mMenuTitle:n,mMenuPosition:a}=e,r=this.hasMMenu(),i=r?{"data-mmenu-id":"#"+this.getId(),"data-mmenu-position":"position-"+a,"data-mmenu-title":n}:{},s=h()("brz-menu__container",Object(F.css)(this.constructor.componentId+"-menu",this.getId()+"-menu",te(e,t,o)));return u.a.createElement(y.a,{selectorName:this.getId(),css:e.customCSS},u.a.createElement("div",Object(l.a)({className:s},i),this.renderMenu(e,t,o),r&&u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"brz-mm-menu__icon"},u.a.createElement(S.a,{name:"menu-3",type:"editor"})),le&&this.renderMenu(e,t,o,this.getId()))))}getMMenu(){return Object(_.b)("getLibs",{}).MMenu}initMMenu(){const e=this.getMMenu(),{items:t=[],mMenuPosition:o}=this.getValue();if(this.mMenu||!e||0===t.length)return;const n={navbar:{add:!1},extensions:["theme-dark","pagedim-black","border-full","position-front","position-"+o],slidingSubmenus:!1};this.mMenu=new e("#"+this.getId(),n,{offCanvas:{menu:{insertSelector:"#brz-ed-root"},page:{wrapIfNeeded:!1,selector:"#brz-ed-root"}}})}destroyMMenu(){this.mMenu&&(this.mMenu.node.menu.remove(),this.mMenu=null)}getMMenuClassNames(){var e;if(!(null===(e=this.mMenu)||void 0===e?void 0:e.node))return"";let t=[];return this.mMenu.node.menu.classList.forEach(e=>{/brz-mm-menu/.test(e)&&t.push(e)}),t}}Object(c.a)(se,"defaultValue",W),Object(c.a)(se,"defaultProps",{extendParentToolbar:p.default.noop,meta:{}});const ce=["id","title","url","target","items","megaMenuItems","attrTitle","classes","current"];function de(e){return Object(x.q)(Object(x.p)(({type:e,value:t})=>({type:e,value:p.default.pick(t,ce)}),e))}function ue(e,t){return e.map(e=>Object(b.a)(e,o=>{if(Object.assign(o.value,t[e.value.id]),!o.value.megaMenuItems){const e=Object(x.q)({type:"SectionMegaMenu",value:{items:[]}});o.value.megaMenuItems=[e]}o.value.items=ue(e.value.items,t)}))}function pe(e){return e.reduce((e,t)=>ie(ie({},e),{},{[t.value.id]:p.default.omit(t.value,[...ce.filter(e=>"megaMenuItems"!==e),"_id"])},t.value.items.length>0?pe(t.value.items):{}),{})}},function(e,t,o){"use strict";o.d(t,"b",(function(){return d}));var n=o(2),a=o(8),r=o(0),i=o.n(r),l=o(5),s=o.n(l),c=o(152);o.d(t,"a",(function(){return c.a}));class d extends i.a.Component{constructor(...e){super(...e),Object(n.a)(this,"state",{currentValue:this.props.defaultValue}),Object(n.a)(this,"onItemClick",e=>{this.setState({currentValue:e}),this.props.onChange(e)}),Object(n.a)(this,"getCurrent",()=>a.default.find(this.props.children,e=>e.props.value===this.state.currentValue)||this.props.children[0])}componentWillReceiveProps(e){this.state.defaultValue!==e.defaultValue&&this.setState({currentValue:e.defaultValue})}renderOptions(){return i.a.Children.map(this.props.children,(e,t)=>i.a.cloneElement(e,{key:t,active:this.state.currentValue===e.props.value,name:this.props.name,onClick:e.props.disabled?null:this.onItemClick.bind(null,e.props.value)}))}renderForEdit(){const{className:e,name:t,currentValue:o}=this.props,n=s()("brz-control__radio",e);return i.a.createElement("div",{className:n},this.renderOptions(),i.a.createElement("input",{className:"brz-input",name:t,type:"hidden",value:o}))}renderForView(){const e=s()("brz-control__radio",this.props.className);return i.a.createElement("div",{className:e},this.renderOptions())}render(){return this.renderForEdit()}}Object(n.a)(d,"defaultProps",{name:"defaultName",defaultValue:"",onChange:a.default.noop})},function(e,t,o){"use strict";o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return r}));var n=o(17);const a=()=>n.a.get("user").isAuthorized?"connected":(()=>{switch(localStorage.getItem("brz-authorized")){case"pending":return"pending";case"connected":return"connected";default:return"disconnect"}})(),r=e=>{(e=>{localStorage.setItem("brz-authorized",e)})(e)}},function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"c",(function(){return i})),o.d(t,"b",(function(){return s}));var n=o(17),a=o(47);function r(e){const t=n.a.get("urls").editorIcons;return t?`${t}/icons.svg#${e}`:Object(a.a)("editor/icons/icons.svg#"+e)}function i(e,t){const o=n.a.get("urls").templateIcons;return o?`${o}/${e}/${t}.txt`:Object(a.a)(`editor/icons/${e}/${t}.txt`)}var l=o(428);function s(e,t){const o={1:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 .023L0 200V0h1920z" fill="${n=t}" fill-rule="nonzero"/></svg>`,2:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path d="M0 200V0h1920z"/><path opacity=".251" d="M0 240V0h1920L137.195 222.85z"/></g></svg>`,3:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 200L1374.256 11.518 0 200V0h1920z" fill="${n}" fill-rule="nonzero"/></svg>`,4:`<svg viewBox="0 0 1920 250" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path opacity=".25" d="M1920 240L1374.256 11.518 0 250V0h1920z"/><path d="M1920 200L1374.256 11.518 0 200V0h1920z"/></g></svg>`,5:`<svg viewBox="0 0 1920 69" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 32.332L1872.003 69l-47.999-36.668L1776.008 69l-47.997-36.668-48 36.668-47.998-36.668L1584.016 69l-47.997-36.668L1488.02 69l-47.999-36.668L1392.022 69l-48-36.668-48 36.668-48-36.668L1200.025 69l-47.999-36.668-48 36.668-48-36.668-48 36.668-48-36.668L912.027 69l-48-36.668L816.032 69l-47.997-36.668L720.033 69l-47.998-36.668-48 36.668-47.998-36.668L528.04 69l-48-36.668L432.036 69l-48.004-36.668-48 36.668-48.005-36.668-48 36.668-48.003-36.668L144.02 69 96.018 32.332 48.01 69 0 32.332V0h1920z" fill="${n}" fill-rule="nonzero"/></svg>`,6:`<svg viewBox="0 0 1919 100" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1865.687 100c-26.657 0-26.657-33.314-53.315-33.314-26.654 0-26.654 33.314-53.308 33.314s-26.654-33.314-53.31-33.314c-26.653 0-26.653 33.314-53.306 33.314s-26.653-33.314-53.306-33.314c-26.655 0-26.655 33.314-53.31 33.314-26.652 0-26.652-33.314-53.305-33.314-26.654 0-26.654 33.314-53.31 33.314-26.653 0-26.653-33.314-53.307-33.314-26.652 0-26.652 33.314-53.305 33.314-26.652 0-26.652-33.314-53.304-33.314-26.651 0-26.651 33.314-53.303 33.314-26.653 0-26.653-33.314-53.305-33.314-26.65 0-26.65 33.314-53.301 33.314-26.653 0-26.653-33.314-53.307-33.314-26.65 0-26.65 33.314-53.301 33.314-26.654 0-26.654-33.314-53.306-33.314-26.652 0-26.653 33.314-53.305 33.314s-26.653-33.314-53.305-33.314S826.216 100 799.564 100c-26.654 0-26.654-33.314-53.306-33.314-26.652 0-26.652 33.314-53.304 33.314-26.653 0-26.653-33.314-53.306-33.314-26.652 0-26.652 33.314-53.304 33.314-26.653 0-26.653-33.314-53.304-33.314-26.65 0-26.652 33.314-53.304 33.314s-26.652-33.314-53.305-33.314S399.778 100 373.126 100c-26.653 0-26.653-33.314-53.306-33.314-26.652 0-26.652 33.314-53.304 33.314s-26.652-33.314-53.304-33.314c-26.651 0-26.651 33.314-53.302 33.314s-26.651-33.314-53.303-33.314c-26.65 0-26.65 33.314-53.302 33.314C26.652 100 26.652 66.686 0 66.686V0h1919.003L1919 66.686c-26.657 0-26.657 33.314-53.314 33.314z" fill="${n}" fill-rule="nonzero"/></svg>`,7:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0 111.22c39.924 57.863 43.635-81.12 86.057-49.377 22.96 17.18 28.423 139.795 63.67 131.577 29.69-6.92 46.923-44.683 62.128-71.756 31.87-50.039 80.334 24.686 134.72 4.477 43.687-16.232 35.42-36.266 70.842-.398 38.085 38.563 65.343-59.381 92.63-51.265 52.535 15.626 66.523 175.912 107.386 83.442 21.395-48.414 68.874-121.81 103.424-45.875 45.148 99.23 54.337 15.01 73.935-36.992 27.286-72.402 47.559 50.828 90.996 61.402 25.52 6.212 43.74-24.442 56.396-47.275 50.19-67.647 72.223 38.517 105.804 42.913 33.582 4.395 43.952-40.933 78.17-31.257 38.657 10.932 44.729 99.625 75.705 98.585 32.066-1.077 10.475-113.292 58.263-131.984 37.054-14.492 44.996 46.504 87.28 45.715 42.285-.789 53.14-137.725 95.082-44.886 9.373 20.75 16.322 103.621 43.433 109.406 35.063 7.48 43.86-81.364 90.923-81.714 68.327 5.077 61.933 82.101 96.71 70.335 29.87-10.106 49.187-131.546 72.779-122.802 26.43 9.797 29.214 119.883 77.916 70.624 23.122-23.385 34.37-82.184 69.35-36.356 21.163 27.726 4.003 7.799 26.401 35.202V0H0v111.22z" fill="${n}" fill-rule="nonzero"/></svg>`,8:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path d="M0 111.22c39.924 57.863 43.635-81.12 86.057-49.377 22.96 17.18 28.423 139.795 63.67 131.577 29.69-6.92 46.923-44.683 62.128-71.756 31.87-50.039 80.334 24.686 134.72 4.477 43.687-16.232 35.42-36.266 70.842-.398 38.085 38.563 65.343-59.381 92.63-51.265 52.535 15.626 66.523 175.912 107.386 83.442 21.395-48.414 68.874-121.81 103.424-45.875 45.148 99.23 54.337 15.01 73.935-36.992 27.286-72.402 47.559 50.828 90.996 61.402 25.52 6.212 43.74-24.442 56.396-47.275 50.19-67.647 72.223 38.517 105.804 42.913 33.582 4.395 43.952-40.933 78.17-31.257 38.657 10.932 44.729 99.625 75.705 98.585 32.066-1.077 10.475-113.292 58.263-131.984 37.054-14.492 44.996 46.504 87.28 45.715 42.285-.789 53.14-137.725 95.082-44.886 9.373 20.75 16.322 103.621 43.433 109.406 35.063 7.48 43.86-81.364 90.923-81.714 68.327 5.077 61.933 82.101 96.71 70.335 29.87-10.106 49.187-131.546 72.779-122.802 26.43 9.797 29.214 119.883 77.916 70.624 23.122-23.385 34.37-82.184 69.35-36.356 21.163 27.726 4.003 7.799 26.401 35.202V0H0v111.22z"/><path d="M1920 111.22c-39.924 57.863-113.614-125.271-101.202-93.282C1832 51.96 1784.872 112.96 1758 112.96s-60.795-67.95-76-95.023c-31.87-50.04-69.614 138.725-124 118.517-43.688-16.233-19.995-46.58-55.417-10.712-38.085 38.563-65.343-59.381-92.63-51.265-52.535 15.626-70.09 139.656-110.953 47.186-21.395-48.414-65.307-56.142-99.857 19.793-16.433 36.118-28.102 47.932-37.243 45.841-15.973-3.652-24.227-49.759-36.692-82.834-27.286-72.4-47.559 21.417-90.996 31.99-25.52 6.213-43.74-24.44-56.396-47.274-50.19-67.647-75.234 42.88-108.816 47.275-33.582 4.395-40.94-45.295-75.159-35.619-38.656 10.932-35.865 78.636-66.841 77.595-32.066-1.077-19.338-92.302-67.126-110.994C622.82 52.945 610.284 172.357 568 171.57c-42.285-.79-33-144.118-70-104.132-19.133 20.677-28.889 84.699-56 90.483-35.063 7.48-59.936-56.734-107-57.084-68.327 5.078-56.327 40.621-95 40.621s-48.408-37.24-72-28.496c-26.431 9.796-25.751 94.007-62 36.554-14.795-23.45-44.62-117.584-79.6-71.756C5.239 105.485 22.399 85.558 0 112.96V0h1920v111.22z" opacity=".25"/></g></svg>`,9:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path d="M1000.521.023L0 200V0h1000.521z"/><path d="M919.479.023L1920 200V0H919.479z"/></g></svg>`,10:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path opacity=".25" d="M1920 0v240L959.944 9.734 0 240V0z"/><path d="M1920 0v198.347L959.944 8.044 0 198.347V0z"/></g></svg>`,11:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 5.206c-320 1.996-640 21.432-960 58.308C640 100.39 320 159.22 0 240V0h1920v5.206z" fill="${n}" fill-rule="nonzero"/></svg>`,12:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path d="M0 240V0h1920v4.538c-312.667-.827-632.667 14.938-960 47.295C632.667 84.191 312.667 146.913 0 240z" opacity=".15"/><path d="M0 210.704V0h1920v4.507c-332 1.2-652 16.735-960 46.605C652 80.982 332 134.18 0 210.704z" opacity=".3"/><path d="M0 4.507V0h1920v4.507c-320 1.494-640 16.045-960 43.651C640 75.765 320 119.806 0 180.282V4.507z"/></g></svg>`,13:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 5.206V240c-160-80.78-320-139.61-480-176.486-160-36.876-320-56.312-480-58.308-160 1.996-320 21.432-480 58.308C320 100.39 160 159.22 0 240V0h1920v5.206z" fill="${n}" fill-rule="nonzero"/></svg>`,14:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path d="M0 240V0l960 .03V4C754 7.849 600 23.182 498 50 354.334 87.773 188.334 151.106 0 240z" opacity=".15"/><path d="M0 211V0h960v5C794 1.667 634 17.187 480 51.56 326 85.935 166 139.08 0 211z" opacity=".3"/><path d="M0 4.5V0h960v5C800 6.158 640 20.52 480 48.083 320 75.647 160 119.62 0 180V4.5z"/><g><path d="M1920 240V0L960 .03V4c206 3.849 360 19.182 462 46 143.666 37.773 309.666 101.106 498 190z" opacity=".15"/><path d="M1920 211V0H960v5c166-3.333 326 12.187 480 46.56 154 34.374 314 87.52 480 159.44z" opacity=".3"/><path d="M1920 4.5V0H960v5c160 1.158 320 15.52 480 43.083C1600 75.647 1760 119.62 1920 180V4.5z"/></g></g></svg>`,15:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0 0h1920v200l-160-15.833L1438 70 707 184.167 211 90 0 200z" fill="${n}" fill-rule="nonzero"/></svg>`,16:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path d="M0 0h1920v198.347L1760 182 1438 70 707 183 211 89 0 198.347z"/><path opacity=".2" d="M0 0h1920v228.1L1721 240 1438 70l-283 122.397-347.347-25.04L707 183l-81.92-15.517L383 192.397 211 89 0 228.1z"/><path opacity=".25" d="M1920 0H0v228.1l193 9.917L390 123l317 60 67-11.43 477-23.801 271 44.628L1616 132l144 50 110 12 50 34.1z"/></g></svg>`,17:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 0H0v144.419L640 240l640-189.197 640 93.616z" fill="${n}" fill-rule="nonzero"/></svg>`,18:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path opacity=".25" d="M0 0h1920v144.419L1277 221l-286-85-351 104L0 144.419z"/><path opacity=".2" d="M1920 0H0v144.419L640 240l167.811-49.89L1038 240l393-167 489 71.419z"/><path d="M1920 0H0v144.419L640 240l640-189.197 640 93.616z"/></g></svg>`,19:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0 172.043C160 217.348 320 240 480 240c240 0 720-138.495 960-136.774 160 1.147 320 24.086 480 68.817V0H0v172.043z" fill="${n}" fill-rule="nonzero"/></svg>`,20:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path d="M1920 129.751C1760 191.917 1600 223 1440 223c-152.892 0-399.532-31.384-620.475-53.784C687 191 557.108 205.465 470 206c-162-2-318.667-21.333-470-58V0h1920v129.751z" opacity=".203"/><path d="M230 190c160 33.333 320 50 480 50 240 0 776-105 923-115 98-6.667 193.667 1 287 23V0H0v148c45.073 10.416 81.073 18.083 108 23 26.927 4.917 67.594 11.25 122 19z" opacity=".3"/><path d="M0 148c160 38.476 320 57.714 480 57.714 240 0 720-118.71 960-117.235 160 .983 320 20.824 480 59.521V0H0v148z"/></g></svg>`,21:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g stroke="none" fill="none" fill-rule="evenodd"><g transform="translate(0.000000, -8261.000000)" fill="${n}" fill-rule="nonzero"><g id="21" transform="translate(0.000000, 8261.000000)"><path d="M0,168.988943 C80.5473907,217.603736 160.512186,220.954929 239.894386,179.042522 C358.967686,116.173913 359.812598,59.826087 443.76887,59.826087 C527.725143,59.826087 547.8693,208.397586 697.791216,199.354108 C847.713131,190.310629 776.750091,26.8323684 937.666281,1.78889015 C1098.58247,-23.2545881 1239.52127,223.162118 1417.41641,209.093238 C1553.34561,198.343244 1504.21655,68.173913 1615.15877,45.2173913 C1689.12025,29.9130435 1790.73399,71.5072464 1920,170 L1920,240 L0,240 L0,168.988943 Z" transform="translate(960.000000, 120.000000) scale(1, -1) translate(-960.000000, -120.000000) "></path></g></g></g></svg>`,22:`<svg viewBox="0 0 1919 255" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(0.000000, -8701.000000)" fill="${n}" fill-rule="nonzero"><g transform="translate(959.500000, 8828.500000) scale(1, -1) translate(-959.500000, -8828.500000) translate(0.000000, 8701.000000)"><path d="M0,183.988943 C80.5473907,232.603736 160.512186,235.954929 239.894386,194.042522 C358.967686,131.173913 359.812598,74.826087 443.76887,74.826087 C527.725143,74.826087 547.8693,223.397586 697.791216,214.354108 C847.713131,205.310629 776.750091,41.8323684 937.666281,16.7888902 C1098.58247,-8.25458811 1239.52127,238.162118 1417.41641,224.093238 C1553.34561,213.343244 1504.21655,83.173913 1615.15877,60.2173913 C1689.12025,44.9130435 1790.40066,86.1702275 1919,183.988943 L1919,255 L0,255 L0,183.988943 Z"></path><path d="M0,184 C55.2272449,222.607421 122.531967,220.954929 201.914167,179.042522 C320.987468,116.173913 321.832379,59.826087 405.788652,59.826087 C489.744925,59.826087 509.889081,208.397586 659.810997,199.354108 C809.732913,190.310629 738.769873,26.8323684 899.686062,1.78889015 C1060.60225,-23.2545881 1201.54105,223.162118 1379.43619,209.093238 C1515.3654,198.343244 1466.23634,68.173913 1577.17855,45.2173913 C1651.14003,29.9130435 1765.08051,76.173913 1919,184 L1919,255 L0,255 L0,184 Z" opacity="0.3"></path></g></g></g></svg>`,23:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 0v131.144c-95.98 0-96.336 108.856-192.319 108.856-95.982 0-95.982-108.856-191.969-108.856-95.986 0-95.986 54.68-191.969 54.68-95.986 0-95.986-125.11-191.969-125.11-95.982 0-95.982 173.868-191.965 173.868s-95.983-103.438-191.965-103.438c-95.98 0-95.98 70.933-191.959 70.933s-95.979-98.021-191.958-98.021-95.979 81.768-191.958 81.768c-95.986 0-95.986-54.68-191.969-54.68V0h1920z" fill="${n}" fill-rule="nonzero"/></svg>`,24:`<svg viewBox="0 0 1920 398" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path d="M1920 0v198.247c-95.98 0-96.336 114.753-192.319 114.753-95.982 0-95.982-114.753-191.969-114.753-95.986 0-95.986 57.642-191.969 57.642-95.986 0-95.986-131.885-191.969-131.885-95.982 0-95.982 183.285-191.965 183.285s-95.983-109.042-191.965-109.042c-95.98 0-95.98 74.776-191.959 74.776s-95.979-103.33-191.958-103.33-95.979 86.196-191.958 86.196c-95.986 0-95.986-57.642-191.969-57.642V0h1920z" opacity=".25"/><path d="M1920 0v158.358c-95.98 0-96.336 81.642-192.319 81.642-95.982 0-95.982-81.642-191.969-81.642-95.986 0-95.986 41.01-191.969 41.01-95.986 0-95.986-93.832-191.969-93.832-95.982 0-95.982 130.4-191.965 130.4s-95.983-77.578-191.965-77.578c-95.98 0-95.98 53.2-191.959 53.2s-95.979-73.516-191.958-73.516-95.979 61.326-191.958 61.326c-95.986 0-95.986-41.01-191.969-41.01V0h1920z" opacity=".35"/><path d="M0 0v244.694C95.98 244.694 96.336 398 192.319 398c95.982 0 95.982-153.306 191.969-153.306 95.986 0 95.986 77.008 191.969 77.008 95.986 0 95.986-176.195 191.969-176.195 95.982 0 95.982 244.863 191.965 244.863s95.983-145.676 191.965-145.676c95.98 0 95.98 99.897 191.959 99.897s95.979-138.046 191.958-138.046 95.979 115.157 191.958 115.157c95.986 0 95.986-77.008 191.969-77.008V0H0z" opacity=".134"/><path d="M1920 0v131.144c-95.98 0-96.336 108.856-192.319 108.856-95.982 0-95.982-108.856-191.969-108.856-95.986 0-95.986 54.68-191.969 54.68-95.986 0-95.986-125.11-191.969-125.11-95.982 0-95.982 173.868-191.965 173.868s-95.983-103.438-191.965-103.438c-95.98 0-95.98 70.933-191.959 70.933s-95.979-98.021-191.958-98.021-95.979 81.768-191.958 81.768c-95.986 0-95.986-54.68-191.969-54.68V0h1920z"/></g></svg>`,25:`<svg viewBox="0 0 1920 788" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 0H0v173c48-38.667 95.667-75.333 143-110 71-51 110-58 206-40 366 84 1154 243 1293 297 58 22 88 44 121 101 23.333 52 75.667 174.333 157 367V0z" fill="${n}" fill-rule="nonzero"/></svg>`,26:`<svg viewBox="0 0 1920 798" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path d="M1920 0H0v189c24-18 60.347-41.755 109.04-71.264C207.368 57.772 261.38 50.915 394.33 78.549 902 172 1349 270 1534.999 319.512c80.324 21.553 121.87 53.106 167.572 108.947C1734.886 479.402 1807.361 602.583 1920 798V0z" opacity=".25"/><path d="M1920 0H0v173c48-38.667 95.667-75.333 143-110 71-51 110-58 206-40 366 84 1154 243 1293 297 58 22 88 44 121 101 23.333 52 75.667 174.333 157 367V0z"/></g></svg>`,27:`<svg viewBox="0 0 1920 800" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 0H0v12.984c1029.719 130.503 1587.292 213.733 1672.719 249.688 53.468 21.972 81.125 43.945 111.547 100.874C1805.776 415.48 1851.02 560.966 1920 800V0z" fill="${n}" fill-rule="nonzero"/></svg>`,28:`<svg viewBox="0 0 1920 800" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${n}" fill-rule="nonzero"><path d="M1920 0H0v12.984c1029.719 130.503 1587.292 213.733 1672.719 249.688 53.468 21.972 81.125 43.945 111.547 100.874C1805.776 415.48 1851.02 560.966 1920 800V0z"/><path d="M1920 0H0v13c996.788 159.826 1536.916 257.717 1620.386 293.672 52.243 21.972 79.265 43.945 108.99 100.874L1920 800V0z" opacity=".25"/></g></svg>`,29:`<svg viewBox="0 0 1920 144" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0 0h1920v70c-96-31-184 1.639-289 21-145 28-245 41-373 50-66 4-150 7-327-30-171-31-301-83-399-83-114 4-258 70-362 77-44 .667-100.667-11-170-35V0z" fill="${n}" fill-rule="nonzero"/></svg>`,30:`<svg viewBox="0 0 1920 99" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M781.659 67.679c5.394-.297 18.088 1.159 22.66-1.526-2.846 1.667-19.23.32-21.954.394-5.954.164-11.903.198-17.902.532-10.396.578-20.684.776-31.023 1.7-30.343 2.713-60.606 3.909-90.983 4.702-.776.26-6.442-.068-9.11 1.099.969-.476 2.062-.742 3.212-.923-12.678.311-25.374.572-38.12.821-18.571.363-37.346.906-55.894 2.175-13.194.907-26.309 1.303-39.486 2.204-8.555.584-28.417 4.827-35.323 1.094 13.602-3.898 29.658-1.78 43.702-2.742 9.608-.663 19.108-.765 28.694-1.422 19.601-1.343 38.993-2.793 58.737-3.473 37.118-1.275 75.018-5.218 112.006-5.382 23.33-.102 47.316-2.974 70.504-3.501 16.673-.38 33.646-.816 50.137-2.232 36.036-3.093 72.702-.93 108.795-3.853 12.588-1.02 25.703 1.79 38.359-.204 7.177-1.133 13.97-2.045 21.873-2.039 11.795.006 23.403-.85 35.357-.872 8.514-.017 17.868.702 26.167-1.541-15.942-2.187-31.974.39-48.012.238-20.367-.199-40.835-.3-61.264.611-34.348 1.53-69.042 1.292-103.509 3.014-116.714 5.824-233.554 11.914-350.342 16.225-61.75 2.278-123.75 7.45-185.28 10.475-27.222 1.343-54.086 3.938-81.29 5.36-10.345.538-97.176 10.905-98.564 6.175 14.543-4.782 33.057-2.963 48.398-3.949 11.025-.708 22.032-1.983 33.051-2.884 29.414-2.402 59.428-4.005 89.034-5.772 77.2-4.612 154.037-11.557 231.305-14.09 35.64-1.167 71.336-3.2 106.987-4.436 25.947-.9 51.82-3.603 77.784-4.231 16.236-.391 33.232.203 49.4-2.51-27.453-2.93-57.241 2.187-84.847 3.104-21.766.726-45.282 5.564-66.827 3.337 2.577-1.15 7.755.77 9.778-1.2-.011.005-14.713-.879-16.237-.743-4.214.38-8.424 1.042-12.707 1.32-13.947.906-27.799.855-41.74 1.796a1687.78 1687.78 0 0 1-58.766 2.934c-70.226 2.278-140.865 8.544-211.154 13.444-33.6 2.345-66.962 2.748-100.602 5.846-5.292.488-55.961 3.405-89.006 6.442 4.005-.465 7.127-.884 8.078-1.23-6.158-.645 6.787-1.45 9.795-1.625 7.666-.448 15.297-1.57 22.967-2.04 5.773-.351 11.37-.799 17.098-1.479 11.868-1.405 33.623 1.45 43.713-4.713a5.205 5.205 0 0 1-1.966-.397c4.86-2.237 11.84-.215 16.927-1.852-14.191-3.348-29.827 2.674-43.203 3.444-12.837.743-26.06 1.87-38.863 3.388a1546.6 1546.6 0 0 1-39.815 4.192c-9.704.901-19.069 2.827-28.915 3.75-9.976.936-19.953 1.865-29.93 2.8-2.798.26-16.372-.307-19.216 1.217 2.47-2.243 15.79-1.988 18.656-2.996-5.58-.697-12.81.373-18.469.94-2.49.25-10.413-.36-13.559.166C.342 96.926.024 64.672 0 0h1920v25c-1.187.402-.707.537-.245.687-3.116-.769-12.798 2.086-16.785 2.523-10.299 1.122-21.3.992-31.55 1.014-15.239.034-30.353 3.858-45.933 4.793-14.174.85-28.643 2.034-42.664 2.43-5.966.17-12.571-.589-18.554.38-1.575.255-17.992 3.037-11.313 1.348-32.298-1.847-65.824 1.819-98.139 2.13-13.998.136-28.2 1.275-42.12.788-13.047-.459-33.374-3.507-45.424 1.586 5.569-2.35 21.114.725 28.252.46 9.66-.363 19.075-.771 28.683-.941 21.386-.38 42.705-.516 64.164-1.145 28.32-.833 56.279 2.567 84.877 1.558 11.137-.396 21.408-.334 32.625-.668 6.852-.203 20.95-4.053 27.32-.207-2.45-1.183-23.322 1.227-26.283 1.272-4.504.068-32.07-1.711-33.94.895.787-.952 7.387 1.382 7.909 1.609-2.182.3-8.034 1.393-9.847.612 2.074 1.02 4.674 1.507 7.54 1.7-1.455.243-2.786.424-3.914.498 3.96.13 10.13-.425 11.212-.544 3.25-.257 6.224-.57 9.14-.922l.11-.002c.403-.05.8-.096 1.202-.147a2.793 2.793 0 0 0-.009-.008c4.738-.572 8.317-.986 11.249-1.023 8.509-.108 16.304-.793 24.592.266-19.21 6.164-43.916 3.875-64.05 4.68-17.285.691-34.677.663-52.035 1.382-28.173 1.167-56.392.748-84.616 1.875-10.061.403-20.344.38-30.456.873-14.776.718-35.283 5.175-49.465 1.064 1.823.39 13.264.051 20.669-.792-8.186.277-21.726-1.326-25.375-1.088-3.116.204-19.601 1.966-14.457.493-15.93-2.634-34.87.736-51.05.714-16.904-.023-33.243 1.49-50.091 1.512-15.914.023-31.6.255-47.531.64-21.21.516-42.416 1.02-63.626 1.61-11.585.317-23.165.656-34.74 1.013-2.554.08-21.289-1.036-25.311.142 3.722-1.79 15.08-1.405 18.633-2.272-3.213-6.078-58.539-.985-64.6-.436-18.917 1.717-37.102 2.22-55.758 1.853-63.342-1.258-127.586 1.161-191.155 3.461-32.082 1.161-64.34 1.314-96.512 2.912-14.34.708-28.36.844-42.756 1.632-5.601.305-45.334 3.228-46.227.471a5.557 5.557 0 0 0 .013-.002zm-559.447 11.45c8.345-2.776 19.947-2.804 28.864-3.263.25.023-26.462 3.518-28.864 3.263zm48.25-4.583c5.065-.991 10.413-1.161 15.512-.73-4.521 1.46-10.792 1.342-15.511.73zM630.34 61.822c.895 2.249 11.036-1.042 12.497-.584-1.427-.566-4.934-.164-6.31-.328-.363-.012-6.42.334-6.187.912zm18.429-.952zm14.242-.453c5.099-.159 11.336.56 16.531-.606-2.356.096-5.886-.47-7.03-.606-5.039.316-19.504-1.012-23.706 1.641 2.032-1.256 11.193-.339 14.205-.43zm139.092-4.951c1.394.113 1.15.243-.72.396-1.399-.102-1.155-.238.72-.396zm12.82-.833a1.207 1.207 0 0 0 0 0zm31.833-.895c-4.152-.244-8.798-.068-12.905.657 2.906.606 6.09-.153 9.053.283 1.28-.311 2.566-.629 3.852-.94zm10.294-.006c-1.988.425-3.84.646-5.297-.244 2.244-.453 3.705.046 5.297.244zm-44.934 11.71c-1.052.02-2.09.127-2.076.465.555.068 1.518-.077 2.39-.216l-.314-.249zm20.54-.736c-1.383-.97-11.642-.618-12.741.657-.204.362 8.39.09 9.177.192 1.808.686 2.992.403 3.564-.85zm27.986-.998c-4.974-.764-17.806-1.235-22.338.986 2.759-1.286 10.786-.26 14.033.176 2.923.102 5.512-.391 8.305-1.162zm208.644-11.24c-.737.409-3.224-.65-4.346.018.499.583 3.881.294 4.346-.017zm46.777-1.206c-8.962-2.481-24.666-1.076-33.85-.074.64 1.116-.056 1.547-2.095 1.286 1.535 1.983 33.215.918 35.945-1.212zm25.431-.946c-1.41-.924-13.064 1.41-11.024 1.58.668-.022 11.194-1.467 11.024-1.58zm56.607-.98c-.402-1.74-11.421-1.054-12.367.25l3.484.662c.753-.028 9.07-.113 8.883-.912zm28.043-.958c.062.844 8.447.777 9.24.93 3.807-.669-9.495-3.502-9.24-.93zm35.713-.657c-4.674-.957-11.993-.833-16.525.182-.068.005-4.306.583-3.269.929 4.442 1.49 15.534.696 19.794-1.11zm18.078-.606c-3.2-1.173-4.515.074-7.438.737.696 2.096 8.934-1.117 7.438-.737zm19.89.09c-1.971.035-2.3-.073-.985-.328 1.949-.04 2.277.068.985.329zm6.311 8.011c-5.63-.147-12.208-1.127-17.709.63 0 1.495 5.971.237 6.696.084 3.58-.017 7.694.578 11.013-.714zm22.248-.362c-1.932.04-2.26-.068-.986-.323 1.988-.023 2.317.085.986.323zm12.837-.13c-1.852.096-2.09.22-.708.373 1.88-.107 2.119-.232.708-.374zm18.429-8.73c-1.734-2.488-9.251-1.162-11.886-.539-13.596.334-28.615-.974-41.967 1.377 7.97 1.631 16.53.56 24.57.119 9.727-.538 19.714.968 29.283-.958zm7.348-.414c-1.745.124-4.572.272-5.195-.402-.306-.335 2.81.113 5.195.402zm.589-.102c-.142.013-.198.037-.198.068.204-.017.392-.031.548-.042l-.35-.026zm.935.36c.409.038.827.028 1.065-.083-.071.04-.322.041-.689.017l-.376.066zm9.925.439c-3.875-1.893 16.628-1.167 16.514-1.11-4.107 2.124-12.01 1.002-16.514 1.11zm19.522 7.172c-1.223-.221-2.453-.436-3.676-.657-.391-.023-6.481-.006-6.306.68.357 1.41 8.963.345 9.982-.023zm3.847.13c-1.388-.153-1.144-.278.73-.374 1.412.153 1.162.278-.73.374zm17.964-1.422c4.42 1.156-5.512 2.668-6.05 1.144-.255-.725 5.337-1.155 6.05-1.144zm2.017-7.438c2.827-.595 5.903-1.145 8.787-.539-5.886 1.473-10.418 1.32-16.384.726 2.527-.063 5.07-.193 7.597-.187zm12.407 8.435c-1.564.623-9.5 1.603-10.288-.294 3.501-.856 7.376-1.598 10.288.294zm4.997-8.107c-1.61-.255-2.997-.782-5.297-.402 1.45.946 3.28.76 5.297.402zm9.88 7.325c-.674-.447-1.445-.544-2.306-.3a4.858 4.858 0 0 0-1.756.133c.976-.14 3.035.68 4.062.167zm-4.328-.09a5.2 5.2 0 0 1 .266-.077.874.874 0 0 0-.266.077zm16.141.202a3.06 3.06 0 0 0-.726.189c.26-.046.52-.09.782-.134l-.056-.055zm1.007-.106l.42-.068c-.114.006-.182.006-.278.006-.051.017-.09.04-.142.062zm-.934.436c.237-.147.566-.272.872-.402.714-.011.969.13-.872.402zm6.112-.9c-1.342-.556-3.37-.238-4.906.34 1.745-.097 5.116-.256 4.906-.34zm7.507-7.439c-4.266 1.745-16.197-4.651-20.117-.833-.136.12 8.123 1.031 9.25 1.218 2.216-.04 8.51.697 10.867-.385zm23.17-.47c-.555.277-2.453-.096-2.17-.238 1.185.113 2.216.22 2.17.238zm-3.133-.521c-.356-.063-.73-.04-1.082-.142-.062-.09.539.017 1.082.142zm-1.404 8.039c3.132 1.11 8.067.753 11.319.005 2.128-.04 11.108-1.363 13.483-.59-7.455-2.427-17.615 2.85-24.802.585zm35.48-8.136c-2.13-1.779-8.118-.651-10.576-.453 2.034 1.847 8.384 1.043 10.577.453zm4.97-.402c-.414-.821 8.916-1.218 9.432-1.184 2.056 2.572-8.764 2.51-9.433 1.184zm237.717 2.232c-1.394-.175-1.156-.294.714-.345 1.41.164 1.172.277-.714.345zm-70.978 2.064a2.374 2.374 0 0 0-.545.259c.173-.09.355-.177.545-.26zm0 0c3.221-1.087 11.33 2.36 14.06 2.604 6.118.556 12.242-.464 18.326-.617 7.592-.187 15.908.26 23.579-.737-7.931-.402-17.313-1.439-20.655-1.416-8.98.055-27.991-3.006-35.31.166zm-67.14 1.403c2.538-.187 5.801-.708 7.914.555-2.056.476-7.081 1.881-7.914-.555zm-20.485.403c5.421-1.434 12.525-.8 18.032.305-5.914.726-12.192.595-18.032-.305zm.028 3.96c-2.181.022-6.215.674-8.436-.074.04.006 10.69-.232 8.436.073zm-10.038-3.596c-1.046-.026-2.083.038-2.086.378.573.104 1.52-.002 2.38-.109l-.294-.27zm-12.696 3.725c-1.562.13-3.028.194-3.61.006 1.09.296 2.352.326 3.688.234l-.078-.24zm-33.34-3.138c.9-.073 1.915-.164 2.94-.22-4.18.453-9.093 2.203-12.622.741 1.79.499 7.982-.487 9.682-.52z" fill="${n}" fill-rule="evenodd"/></svg>`,31:`<svg viewBox="0 0 1920 359" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1900.821 32.686c-8.161 5.646-17.284 11.593-25.72 16.295-7.624 4.25-11.488 9.048-18.584 13.977-5.919 4.109-10.999 9.104-16.88 13.298-13.43 9.594-27.453 20.046-41.722 27.566-5.032 2.649-10.602 4.59-15.682 7.596-5.956 3.525-4.967 6.324-11.658 9.547-.773-.895-.226-1.686 1.65-2.384-18.077 6.503-35.286 17.746-52.787 26.85-13.788 7.182-27.765 12.535-41.901 18.378-13.242 5.476-25.192 13.402-38.782 16.992-7.134 1.885-13.157 4.977-19.716 8.115-3.619 1.734-7.172 2.328-10.687 4.486-2.931 1.79-9.274 4.166-11.234 6.946-.32.462 11.29-3.695 12.515-4.119 4.618-1.592 9.67-3.345 14.24-5.504 8.86-4.194 17.323-8.387 26.069-12.534 18.811-8.925 39.253-14.467 57.941-24.221 9.161-4.778 17.172-9.962 26.662-13.76 16.342-6.54 32.402-10.612 48.715-18.443 5.41-2.602 11.526-4.854 16.578-8.087 2.554-1.64 4.938-5.127 7.577-6.399 1.386-.669 5.57-.952 7.191-1.517 4.203-1.48 7.954-4.307 11.611-6.588 5.193-3.242 16.512-14.598 23.326-12.516 1.78.84-9.49 6.767-10.33 7.257-4.184 2.432-8.52 5.334-12.902 7.728-2.86 1.564-28.342 13.533-30.951 16.368 1.421-1.03 7.593-1.03 8.408-.695-1.338 1.027-7.672 5.448-8.868 5.268 2.035.481 6.851-1.592 11.799-4.156-5.136 3.384-9.905 6.805-10.395 6.362 1.216 1.102 12.336-5.25 13.816-6.277.961-1.037 9.227-6.22 9.622-5.928-1.507-.622-.282-1.338.472-1.762 3.317-1.876 6.54-4.354 10-6.249 7.925-4.354 13.1-8.67 21.364-11.224-2.818 4.1-12.138 10.763-16.276 14.212-5.833 4.853-13.194 8.727-19.81 12.402-8.246 4.58-16.512 9.293-24.664 13.826-15.098 8.388-31.242 14.75-46.415 23.175-26.021 14.448-53.654 25.399-80.485 38.197-9.312 4.43-19.509 7.144-28.679 11.856a259.32 259.32 0 0 1-18.802 8.765c-5.871 2.45-11.714 4.957-17.652 7.247-.688.274-10.442 3.412-10.235 3.082 3.1-4.91 21.582-6.427 25.145-12.11-3.27 2.667-24.334 8.66-27.35 9.82-5.843 2.243-12.045 8.576-19.17 8.143.575-.528 1.15-1.046 1.725-1.574-5.965.33-13.203 4.693-19.094 6.38-4.985 1.433-10.357 3.46-14.966 5.297-8.2 3.26-16.719 5.975-24.786 8.897-23.995 8.68-47.64 18.227-72.644 24.06-17.718 4.138-35.342 9.406-52.947 14.59-8.387 2.46-16.737 5.08-25.163 7.398-10.97 3.025-22.12 5.503-33.193 8.133-2.036.48-13.91 2.563-22.732 4.43 7.248-2.837 14.024-8.549 1.33-6.579-10.349 1.612-21.121 3.977-31.168 6.4-11.507 2.78-22.628 5.305-34.088 8.208-4.533 1.15-8.5 2.545-13.477 2.931-7.483.575-11.837 3.553-18.5 4.184-30.96 2.922-64.303 8.35-96.073 12.648-7.992 1.084-14.4 3.874-22.704 3.968-4.552.056-8.039 1.074-12.365 1.63-4.721.603-9.188-1.121-13.75-.839-18.265 1.15-36.209 6.598-54.897 6.701-17.181.085-35.22 2.818-52.363 4.241-14.09 1.169-29.037.396-42.89 1.527-15.673 1.282-31.968 1.687-47.415 3.016-2.875.245-69.977 2.158-70.712-1.932 4.967-.141 19.952 2.243 23.816-1.103 1.63-1.413-7.125-.358-6.918-.358-6.04.066-12.647-.17-18.84-.32-5.946-.151-12.034-.424-18.15-.255-10.575.292-20.876-.085-31.384.81-13.487 1.15-26.917-1.903-40.365-1.988-12.3-.085-21.507.142-33.533-.839-10.828-.876-21.393-2.016-32.297-1.64-12.921.453-25.512-2.195-38.367-3.873-20.367-2.658-40.893-4.948-61.363-6.503-11.413-.867-22.468-2.535-33.872-3.411-8.086-.623-31.996.179-36.529-5.797 7.521-1.47 18.689 1.292 26.257 2.347 5.834.81 11.13 1.536 16.85 2.158 8.37.915 16.626 1.574 24.834 2.8 26.351 3.91 52.711 4.928 79.345 7.294 11.743 1.037 24.004-.18 35.813 1.725 8.604 1.376 18.16.433 26.878.64 21.743.519 42.335 2.432 64.219 1.848 23.09-.613 45.105-.424 67.828-1.056 7.87-.226 14.975-.047 22.873.245 10.263.387 21.016-1.074 31.327-.763 34.88 1.055 69.835-4.873 104.329-5.702 13.024-.311 25.512-.066 37.405-4.08 5.702-1.923 14.392-2.036 21.064-2.922 12.092-1.603 23.75-2.102 36.313-2.573 7.671-.283 18.01-1.093 24.833-4.6-15.692-2.374-31.035 2.319-46.755 3.073-20.752.99-42.589 1.395-63.313 4.656-15.014 2.365-30.696 1.47-46.058 2.695-18.34 1.46-36.99 1.197-55.36 1.838-54.84 1.913-110.275 2.535-165.342 1.084-28.217-.745-57-1.706-85.367-3.808-26.238-1.95-52.193-5.56-78.506-7.568-14.212-1.083-29.696-1.96-43.861-4.184-68.591-10.772-137.57-22.44-205.538-34.927-27.633-5.08-54.907-11.121-82.314-17.473-10.49-2.432-86.893-22.6-86.44-25.569 8.66-.999 21.232 4.694 29.724 6.739 5.457 1.31 10.404 3.204 15.71 4.655 9.368 2.554 18.934 4.543 28.378 6.814 24.654 5.928 49.082 12.752 74.368 17.407 85.3 15.72 170.583 34.513 257.08 41.091 35.748 2.724 71.023 8.708 106.987 9.877 32.006 1.037 64.718 5.589 96.78 4.118 14.495-.669 30.762 1.753 45.473-1.272-15.362-3.581-32.213-.283-47.537-.876-14.334-.556-28.895-.198-43.324-1.65-9.302-.933-18.802-.01-28.132-.66-11.13-.782-27.661.962-38.697-2.28 2.545-1.395 8.425 1.583 10.273-.735 1.564-1.734-21.846-2.696-24.39-2.62-13.883.396-27.417-3.176-41.026-4.6-20.554-2.139-41.891-3.43-62.21-5.984-19.264-2.422-38.876-3.544-57.358-8.397-17.69-4.646-36.727-6.484-54.973-8.84-17.869-2.31-34.277-3.29-51.325-5.664-17.247-2.404-33.787-10.179-50.959-12.045-39.733-4.316-75.744-20.489-114.93-28.028-10.905-2.092-21.734-6.597-32.487-9.632-7.766-2.196-16.7-2.582-24.683-5.042-5.72-1.762-55.41-16.859-55.783-16.06 1.094-2.355 32.9 8.162 37.707 7.634-1.291-.31-2.026-1.008-2.224-2.092 3.534-2.11 14.269 4.486 17.897 5.457 8.755 2.337 17.586 4.854 26.21 7.172 7.85 2.12 16.21 2.997 24.258 4.929 7.38 1.772 22.26 8.708 29.093 5.523a3.961 3.961 0 0 1-1.715-1.376c5.052-1.508 11.96 4.109 17.256 3.506-5.211-4.59-16.247-6.41-22.948-7.446-7.747-1.197-11.913-1.385-19.858-3.383-12.996-3.27-26.595-7.2-39.856-9.575-6.418-1.15-13.119-1.678-19.254-3.13-7.323-1.733-13.854-4.985-20.866-7.19-10.555-3.308-21.412-4.6-32.41-7.888-8.294-2.48-16.587-4.967-24.881-7.446-1.187-.348-20.96-7.323-21.412-6.89 1.724-2.016 16.964 3.563 19.998 3.309-4.015-2.969-12.977-5.372-17.84-6.776-2.488-.717-5.485-.415-7.85-1.423.047.013-4.306-2.565-6.089-3.814V0h1920v14l-7.987 8.713c2.323-1.072 3.867-1.758 3.85-1.694-.319 1.441-3.15 2.449-5.387 3.37L1909 26l-2.882 1.589c-1.546 1.69-3.095 3.574-5.297 5.097zM258.347 249.41l.01.043c.835.17 1.669.34 2.503.496a85.479 85.479 0 0 0-2.513-.539zm0 0a95.544 95.544 0 0 0-2.492-.46c.835.16 1.669.332 2.503.503l-.01-.043zM1795.36 118.013c-.143.155-.217.282-.215.38.005-.153.1-.29.268-.412l-.053.032zM257.646 237.197c-1.187-.631-2.384-1.423-3.628-1.932-7.973-1.526-19.094-1.13-26.549-4.599 4.6 3.308 13.147 3.506 18.613 4.675 2.592.556 9.302 2.865 11.564 1.856zm41.204 8.558c-5.485-3.384-11.752-4.392-17.775-5.099-3.59-.414-8.444-.348-11.714-2.592-1.725-.31-6.918-2.28-8.53-1.244-.706.547 15.947 4.77 17.615 5.165 5.664 1.338 14.269 4.505 20.404 3.77zm-61.89 1.8c.96-.198 1.8-.01 2.506.594-.951.207-1.79.01-2.507-.594zm30.912 17.906c-.49-2.808-14.759-2.78-16.983-3.901-4.006-1.282-8.953-1.574-13.034-2.413-5.221-1.074-11.036-3.355-16.559-2.62 3.148 1.875 46.651 9.632 46.576 8.934zm33.306-5.74c-.208.123-19.622-3.382-19.905-3.665 1.64 1.668 6.513 1.696 8.709 2.818 1.96.612 9.34 1.828 11.196.848zm192.447 28.566c.18-.113-.735-.376-1.979-.688-.395.038.65 1.48 1.98.688zm26.474 2.78c-.782-.49-1.63-.546-2.545-.178.792.461 1.64.527 2.545.179zm117.391 39.517c.471 3.13 11.913-.075 12.977.623-1.225-.971-4.74-.736-6.465-1.348-.5-.113-6.71-.594-6.512.725zm53.135 2.498c-3.12-.34-6.22-.48-9.264-1.451-4.543-.104-21.271-3.176-24.73-.274.726-.622 13.458.971 14.768 1.065 5.693.424 13.703 3.007 19.226.66zm142.894 2.865c-1.602-.122-3.694.198-4.675.226-1.145.028-7.896 1.116-8.779.855 3.264 1.336 9.876-1.306 13.454-1.081zm-13.515 1.056a3.7 3.7 0 0 1 0 0zm42.41-.82c-4.391-.33-9.075-.057-13.41.735 2.817 1.055 6.465.141 9.424.83 1.329-.529 2.658-1.047 3.986-1.565zm10.697-.029c-1.46-1.394-3.1-1.168-5.504-.395.066.292.132.574.208.857 1.819.48 3.59.33 5.296-.462zm-44.578 17.992c-.292-.189-4.457-.613-4.439.396.934.235 4.722-.17 4.44-.396zm19.292-.18c-1.244-1.45-12.45-1.328-13.364.283-.556 1.48 8.718.67 9.623.905-.424.038 4.769.038 3.741-1.187zm29.292-1.206c-4.006-.97-20-.923-23.383 1.546 1.63-1.093 12.233-.396 14.712.386 3.26.16 5.749-.64 8.67-1.932zm265.345-33.136c-5.71-1.706-13.76.923-19.282 1.074-5.023.142-10.96 1.621-15.786 3.148-2.186 2.441 7.71-3.44-1.923 2.394 2.083 3.242 16.107-1.659 19.99-2.375 3.572-.66 14.994-.943 17.001-4.241zm84.585-13.722c-.697-2.14-12.073-.51-12.76 2.007 1.262.217 2.535.424 3.797.641.773-.141 9.49-1.037 8.963-2.648zm44.823-10.216c.528-.735 16.615-1.046 20.102-4.543-4.363-.565-13.279 1.357-16.888 3.468-.67.17-2.78.349-3.214 1.075zm13.364-61.523c3.94-.943 17.378-1.263 18.18-6.022.366-1.12-21.57 4.895-22.529 4.938 1.881-.083 2.663 1.008 4.349 1.084zm17.718 55.152c1.263 2.827 6.003-1.744 7.389-2.63l-.396-.848c-4.826.16-3.968 1.687-6.993 3.478zm159.83-102.774c6.031-.189 15.21-2.064 19.772-6.003-5.777-.066-14.825 2.95-19.773 6.003zm-37.548 10.848c.613.197 1.216.395 1.82.593 1.945-.306 11.61-3.273 12.64-4.922-1.286 2.024-13.967.508-14.46 4.329zm-88.543 23.72c3.337 3.365 8.633 1.273 11.668-1.696 7.238-2.77 15.71-3.666 23.08-5.88 2.253-.679 20.508-3.808 18.237-6.748-1.33-1.838-26.7 6.653-30.46 7.54-3.233.763-23.128 6.116-22.525 6.785zm3.506 73.663c-5.786.848-13.222.706-18.066 4.457.716 2.224 5.767-.49 6.955-1.159 3.967-1.48 7.86-.264 11.111-3.298zm50.94-27.737c-2.385-3.09-9.764.443-12.233 2.159-5.542 1.63-11.065 3.28-16.295 4.825-8.398 2.478-18.161 3.43-25.833 7.228 9.029 1.113 18.66-2.704 27.039-5.758 9.057-3.308 18.971-3.251 27.321-8.454zm31.524-68.13c-1.856 1.763-13.495.604-17.19 4.138 1.31.057 2.62.104 3.92.151 4.524-1.338 9.727-.763 13.27-4.288zm-12.365 63.786c3.808-1.122 13.732-2.554 16.239-6.004.245-.33-23.297 2.931-16.239 6.004zm22.892 6.521a573.079 573.079 0 0 1-4.024-.103c-.697.085-6.625 1.564-6.126 2.705.82 1.866 9.255-1.725 10.15-2.602zm23.42-7.162c-.603-.16-1.197-.33-1.8-.5-.97.142-6.314 2.12-5.645 3.384 1.112 2.082 7.992-1.848 7.445-2.884zm27.953-8.265c-.782-.462-1.592-.377-2.45.254a3.433 3.433 0 0 0-1.914.971c.239-.237 3.722-.304 4.364-1.225zm6.755-2.088c.307-.057.577-.25.813-.58-.372-.212-.711-.287-1.018-.23l.205.81zm6.196-1.415c.008.048.13-.079.385-.475.042-.056.04-.082.018-.094l-.403.57zm-1.541.292a.9.9 0 0 0-.204.148.699.699 0 0 0 .32-.18l-.116.032zm6.346-3.264c.547.15-2.271 1.272-4.222 2.017.791-1.065 2.346-2.545 4.222-2.017zm3.826-14.222c-2.205 2.743-18.82-.282-20.385 5.07-.452 1.405 8.605-.942 9.783-.998 2.412-.867 9.066-1.989 10.602-4.072zm288.408-112.038c-2.8.519 1.395-1.027 1.376-.99-.462.33-.914.66-1.376.99zm-66.122 35.135c.052-.108.11-.215.171-.32-.073.1-.13.208-.171.32zm15.418-2.894c6.38-1.8 11.97-6.248 17.662-9.386 7.285-4.015 18.65-7.465 24.249-13.59 1.517-.726 7.228-2.328 7.813-4.072.537-1.753-11.215 3.742-11.705 3.977l-18.887 9.048c-4.08 1.95-7.822 4.552-11.649 6.56-5.292 2.77-19.706 4.88-22.73 10.036 1.785-2.477 12.93-1.912 15.247-2.573zm-59.506 22.949c-1.282.528-4.213 1.225-5.805 2.29 3.006-1.658 11.61-2.026 13.269-4.768-.068.113-7.125 2.337-7.464 2.478zm-50.958 27.67c-1.329.49-2.686 1.216-3.647 1.612-.207.084-7.61 3.912-7.95 3.92 3.515.11 8.102-4.09 11.597-5.532zm5.787-1.658c2.12.254 6.616-2.423 8.303-3.11 2.309-1.527-8.313 3.11-8.303 3.11zm-114.312 22.853c-.313.027-.525.081-.45.161.254.028.507 0 .757-.041l-.307-.12zm1.576.218c.019-.02-.038-.02-.038-.038-.688.104-1.347.207-1.847.283.641.028 1.291.066 1.885-.245zm2.498-.349c-.566.848-2.658.66-1.998.226 1.083-.16 2.035-.283 1.998-.226zm-.698 13.354c3.091.622 8.869-1.3 11.31-3.61 2.325-.818 11.347-5.54 13.16-5.24-7.51-1.247-17.742 9.925-24.47 8.85zM1824.46 54.306c-.202.131-.415.273-.637.424.225-.124.45-.245.675-.366l-.038-.058zm0 0l.038.058c.598-.32 1.197-.634 1.785-.962.075.018.462-.217.99-.575-.33.179-.641.377-.971.565-.225-.054-.914.312-1.842.914zm30.718-22.411c-2.054-1.847-11.111 8.303-13.486 10.056-1.3.961-11.253 8.755-14.42 10.885 10.415-5.787 19.849-12.016 27.907-20.941zM151.14 216.228c2.618 2.376 20.332 6.06 24.47 5.023-2.542.587-9.873-3.339-13.509-2.997-.622-.15-10.31-1.526-10.96-2.026zm24.608 4.986zm1249.8-32.77c-.606.102-1.19.133-1.727.048.466.15 1.01.155 1.614.054l.113-.102zm0 0l-.113.102c.603-.101 1.265-.309 1.967-.582-.622.203-1.249.377-1.854.48zm5.435-1.733c.283-.095 8.906-3.45 9.33-3.356-3.44-.885-8.85 3.026-12.911 4.618 1.291-.424 2.563-.96 3.581-1.262zm-206.857 57.234c1.97.604 6.738-1.3 8.434-1.705 2.865-1.33-9.471 1.46-8.434 1.705zm12.685-3.034c1.404.433 8.01-1.81 5.57-1.932-1.244.15-4.92 2.054-5.57 1.932zm-56.943 9.509c.547.726 3.958.047 4.401-.537.16-.283-3.986 0-4.4.537zm-987.1-25.644c-2.11-.528-4.231-1.093-6.333-1.612-.99-.593-3.12.368-1.583.434 1.017.452 1.545.311 1.583-.434.283.387 2.96.98 6.333 1.612z" fill="${n}" fill-rule="nonzero"/></svg>`,32:`<svg viewBox="0 0 1920 221" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M3.747 220.063L0 221V0h1920v63l-33-45-402 6-333 23-351 31-349 50-149 26-247 54-44 10-8.253 2.063c-1.615-.021-3.064.052-3.747.442 8.343-4.816 20.442-4.762 29.507-7.39 8.358-2.42 16.862-4.048 25.282-6.291 18.874-5.032 37.035-10.41 56.348-13.098 7.958-1.106 15.264-4.763 23-6.3 3.48-.69 6.96-1.605 10.463-2.135 7.098-1.076 14.027-2.105 21.11-3.55 16.117-3.287 33.24-8.603 47.068-13.597 8.842-3.188 19.889-4.609 29.153-5.477 5.07-.476 44.71-6.13 45.056-9.172-.039.407-28.209 1.413-33.125 3.887 3.549-2.789 17.884-3.28 22.047-4.064 8.42-1.59 17.538-4.402 26.08-4.494-1.39.092-2.465.645-3.226 1.66 2.144 3.218 16.525-2.42 19.467-2.927 6.069-1.053 12.222-.984 18.13-3.15-5.762.161-11.078 1.037-16.747 2.105-2.136.407-8.359.576-11.093 1.36 3.88-1.86 10.14-1.875 14.096-2.62l25.712-4.84c19.62-3.687 39.325-6.952 58.99-10.378 36.283-6.315 72.62-13.382 109.117-17.608 23.407-2.704 46.715-8.504 70.345-10.486 28.738-2.404 57.008-8.258 85.463-12.36 11.892-1.72 23.814-3.94 35.767-5.162 14.957-1.53 29.945-3.227 44.917-5.17 6.8-.884 13.598-1.76 20.396-2.643 3.895-.507 10.525.023 14.673-1.214-3.564.622-10.194-.092-12.445.185-5.485.668-10.947 1.505-16.432 2.143-1.16.138-6.284-.062-7.152.538 2.512-2.55 13.95-2.105 17.615-2.597 6.315-.845 12.414-1.529 18.514-3.403-10.286-1.168-20.527.008-30.89 1.367-16.462 2.167-32.91 3.388-49.38 5.708-20.365 2.865-40.953 4.863-61.103 8.128-25.958 4.202-52.707 6.345-78.672 10.962-18.491 3.28-37.527 6.468-56.156 8.181-23.968 2.197-48.812 6.668-72.312 11.639-15.118 3.195-30.682 4.202-45.9 6.868-14.458 2.527-28.93 5-43.38 7.59-10.371 1.85-20.711 3.879-31.06 5.83-6.96 1.314-13.965 3.011-20.987 3.964-3.254.442-7.871.048-10.904 1.37 8.277-4.042 21.74-4.864 31.062-6.624 5.431-1.022 10.878-1.975 16.294-3.073 2.212-.454 7.236-2.566 11.123-3.61-9.432 1.336-31.276 4.976-31.573 6.229.494-2.09 17.085-3.925 19.044-4.94-22.616.876-45.186 9.104-67.395 12.062 10.694-3.703 21.648-5.97 32.772-8.067 101.004-19.074 202.7-37.573 304.54-52.276 45.555-6.576 91.094-14.58 136.634-18.614 11.692-1.03 22.984-3.749 34.615-4.57 10.24-.723 20.511-2.65 30.567-3.834 6.537-.776 11.846-2.566 17.6-3.365 4.962-.683 10.309.377 15.402-.092 5.3-.492 10.594-1.221 15.887-1.828l40.484-4.656c22.64-2.604 45.486-4.954 68.27-6.214 12.983-.715 26.02-2.49 39.118-3.188 25.827-1.383 52.36-3.519 77.965-7.206 21.51-3.096 44.426-2.113 66.243-3.987 29.169-2.505 58.506-2.82 87.59-6.215 22.263-2.604 44.849-.768 67.073-3.71 23.945-3.173 48.72-1.883 72.864-3.25 48.113-2.727 95.888-2.758 144.031-4.794 18.207-.768 36.498-.122 54.712-.637 16.655-.469 32.357-1.337 48.574-1.352 11.139-.008 22.708 1.552 33.793.445 16.033-1.59 32.396 0 48.65-.875 13.514-.723 27.41 1.275 40.647.115 7.09-.622 14.22.008 21.387.438 7.228.43 14.073-2.505 21.11-2.274 4.325.146 9.472 1.429 14.196 1.49 5.578.07 11.293-.622 16.932-.684 5.823-.061 11.9.853 17.753 1.537 4.74.553 6.968-.23 11.377-.715 2.543-.276 13.32.507 12.16-2.158 8.904-1.736 20.78-1.299 29.6.745-5.193.96-.338 1.352 2.051 2.09 2.712.837 5.447.66 8.166.683 5.224.039 10.862.584 15.664.822-.008-.223-.085-1.429-.146-2.596.3 3.549 2.243 1.551 3.664 4.878 2.159 5.047.507 15.256.692 20.695.291 8.873.591 17.746.89 26.619.108 3.165 2.336 10.04-2.865 8.965-.084.407-.13.975-.169 1.582-.046-.476-.1-.96-.115-1.398-4.24-.507-10.263 2.036-14.604 2.689-4.577.688-9.263.939-13.878 1.37.96-.012 1.82.307 2.57.95-2.304 3.218-13.29-1.199-16.078.092.568-.354 1.444-.592 2.473-.753-6.76.545-13.497 1.636-19.858 1.406-7.759-.284-16.178 1.951-24.06 2.274-7.267.3-14.696.276-21.925 1.436-8.588 1.375-17.976.784-26.295 3.657 7.774.576 15.28-.423 23.038-1.168 6.047-.581 16.017-3.725 21.95-2.076-1.815-.112-7.987 1.406-9.635 1.57l-16.624 1.612c-10.77 1.053-21.487 1.483-32.22 2.413-11.169.968-22.33 2.12-33.493 3.18-2.42.23-18.537.722-25.067 1.39 3.365-.722 8.405-1.95 7.898-2.243-6.622-.683-10.586.523-16.171 2.197 1.851.139 3.695.33 5.531.577-28.5 2.734-57.385 4.64-85.985 7.297-30.644 2.85-61.303 4.856-91.87 7.152 1.498-.307 2.796-.814 3.533-1.85.016-.024-10.401.122-11.753.337-2.917.465-9.636.22-12.31 1.736 3.123-1.768 10.332-.1 16.197.108-10.017.768-20.035 1.56-30.03 2.443-17.806 1.575-35.629 3.403-53.443 4.04-13.344.477-26.35 3.826-39.655 4.156-9.142.223-18.168 1.506-26.526 4.11 1.647.077 7.639.375 7.384.377 16.04-.085 32.41-2.005 48.441-2.743 7.582-.345 15.126-1.475 22.7-1.966 2.728-.185 5.232-.085 7.96-.13 5.83-.107 17.684-3.629 23.294-1.746-3.142-.933-12.917 1.7-16.05 1.983-4.733.43-9.273.515-13.966.63-12.66.307-25.436 1.813-38.065 2.466-15.725.814-31.32 2.458-47.03 3.365-16.831.976-34.031 2.558-50.909 2.827-10.97.177-22.109.492-33.056 1.314-15.464 1.167-31.45 3.58-46.899 3.84-17.054.292-34.354 1.383-51.37 2.758-20.227 1.637-41.806 4.034-61.979 1.629 4.087-1.652 9.595-.453 14.02-.676 4.51-.23 9.003-.837 13.513-1.068 7.49-.384 15.049-.799 22.57-1.075 25.035-.93 50.01-2.535 75.038-4.663 4.548-.384 107.165-3.718 107.234-6.691-.038.23-22.816 1.336-26.073 1.42-8.435.224-16.401-1.666-24.82-1.59-21.772.193-43.381 3.872-64.999 4.671-65.712 2.436-130.917 12.053-196.699 14.197-24.629.806-48.98 4.801-73.533 4.84-12.022.023-24.275.491-36.252 1.981-4.94.623-9.725 1.629-14.757 1.783-9.019.269-24.052 2.704-32.58-.254-.914-.315 3.619-1.867 3.242-2.082-4.27-2.458-13.697.984-18.437 1.468-8.043.822-15.986 1.367-24.03.683 13.345-3.35 27.503-4.21 41.108-5.131 6.176-.423 12.521-.162 18.706-1.03 8.004-1.121 18.997-.607 26.464-3.74-5.462-3.02-16.332-.57-22.562-.116-7.221.522-14.627 1.567-21.87 1.59-7.614.015-15.05.346-22.694.899-4.809.353-18.513-.983-22.178 1.237 6.23-3.772 17.047-.093 24.022-3.234-17.577-3.165-36.344 5.024-54.113 3.241 6.73-1.905 1.114-1.475-1.336-2.081-1.798-.446-3.987-1.13-5.17-1.522-2.635-.875-6.584-2.343-9.995-2.85-9.502-1.413-17.953-.153-27.678.53-13.551.953-27.67 1.706-41.145 3.534-5.209.7-9.703.914-14.996 1.022-3.518.07-18.675 3.403-21.387.914-.315-.284 10.702-1.582 11.116-1.652 3.987-.637 7.145-2.335 11.247-2.972 15.164-2.351 30.751-1.921 45.893-4.495 8.696-1.482 17.976-.061 26.595-2.42 10.163-2.78 21.671-3.879 32.664-6.068 18.06-3.595 36.751-5.362 55.058-7.544 16.032-1.905 32.403-4.363 48.297-5.062 7.013-.308 14.189-1.322 21.156-2.205 4.248-.546 8.773-1.537 12.553-2.574 1.702-.467 9.355-1.052 11.97-1.791-1.282.361-2.558.723-3.835 1.085 26.841-.6 53.552-5.194 80.454-7.26 35.36-2.712 70.537-4.379 105.767-8.312 18.698-2.09 36.628-4.064 55.45-4.471 19.811-.43 39.547-5.109 58.537-6.968-3.165-.453 3.272 0 3.618-.814-.07.161-22.409 1.49-23.868 1.736 1.128-.146 4.868.33 5.429.109-3.334 1.312-11.49 1.812-15.007 1.118 1.275.056 4.715-.967 6.205-.989-14.027-.284-27.74 2.474-41.552 4.202-16.67 2.082-33.648 1.936-50.456 3.358-28.762 2.427-57.923 3.625-86.654 7.459-40.43 5.393-81.26 2.581-122.152 6.399-6.261.584-12.584.707-18.829 1.49-4.901.615-10.102 2.95-14.972 3.135-5.677.215-11.815-.454-17.815-.116-10.617.6-21.34 2.267-31.904 3.55-17.83 2.166-35.829 3.572-53.774 5.907-5.447.707-10.932 1.736-16.41 2.128-8.98.638-23.63 5.354-31.987 2.235 16.094-4.978 35.022-4.57 51.685-6.345 7.029-.745 13.981-1.767 21.072-2.635 3.595-.446 5.96-1.805 9.395-2.32 4.133-.622 8.504.092 12.76-.469 27.148-3.556 54.373-4.509 81.437-7.705-3.495-2.058-9.725 1.813-12.898-1.183 3.134-.568 10.294-2.327 14.42-2.158-5.501-.968-13.828 1.09-18.883 1.46-3.972.291-7.982.476-11.992.714 3.81-.484 7.636-1.176 9.142-1.283 7.282-.53 14.242-1.46 21.44-2.428l1.268-.322c-2.381-2.59-21.226 1.267-24.621 1.728-2.735.369-15.072 3.45-16.724 2.028.553.653 2.32.791 4.502.715-2.105.169-4.218.276-6.3.553-5.123.676-10.055 1.375-15.271 1.751-14.043 1.022-27.218 3.08-40.969 2.604 8.381-2.88 18.514-2.427 27.24-4.74-20.057-.46-40.868 5.509-60.864 6.968-7.114.515-14.181 1.452-21.28 2.374-15.126 1.959-30.16 3.165-45.293 5.124 1.836.169 9.065 1.068 14.988 1.444-13.383.453-26.719.077-40.116 1.091-22.201 1.675-44.264 6.276-66.435 8.212-34.615 3.02-68.654 11.915-103.224 14.911-19.428 1.682-38.994 5.454-58.33 8.573-19.996 3.227-39.747 5.977-59.574 9.426-33.978 5.915-67.787 11.116-101.657 17.515-12.675 2.397-25.481 4.28-38.241 6.469-9.849 1.69-19.49 2.988-29.407 4.824-3.964.73-39.04 8.358-40.116 6.023 16.509-6.837 37.496-7.713 55.042-11.032 7.113-1.344 14.22-1.997 21.34-3.342 17.554-3.318 35.077-6.898 52.677-9.956 76.959-13.351 154.624-24.513 232.006-36.835 63.208-10.064 127.123-15.587 190.554-24.045-4.156-.154 2.166-.66 2.95-.753 2.258-.276 4.54-.169 6.79-.276 1.114-.054 2.136.092 3.765.015 12.114-.553 24.52-2.965 36.59-4.056 20.618-1.867 41.152-4.932 61.748-6.584C916.348 88.75 952.2 84.84 987.99 81.237c66.104-6.652 132.754-11.746 198.997-17.085-28.962-.407-58.983 3.795-87.891 6.238-15.18 1.283-30.52 2.62-45.532 3.603-16.063 1.052-32.61 4.97-48.689 4.386 4.11-1.736 12.553.584 15.964-2.412-1.083.83-11.001-1.144-13.974-.975-3.88.215-7.905.607-11.746 1.183-4.824.722-9.495 1.636-14.388 2.15-20.788 2.175-41.668 2.974-62.371 5.355-28.685 3.296-57.431 4.556-86.009 9.157-28.83 4.64-59.036 4.195-87.222 10.578-6.86 1.552-13.889.538-20.81 1.253-5.578.576-11.109 1.797-16.701 2.25-25.082 2.028-50.018 5.8-74.985 9.403-31.896 4.602-62.824 9.733-94.443 15.88-16.21 3.149-32.795 2.703-49.05 4.939-20.442 2.819-40.9 7.543-61.196 10.447-11.6 1.66-23.138 4.033-34.684 6.038-10.525 1.829-20.55 1.683-31.167 3.18-23.476 3.32-46.822 9.358-70.267 13.23-18.338 3.026-37.712 5.415-55.734 9.794-11.884 2.88-24.106 5.231-36.144 7.375-15.203 2.711-30.06 6.153-45.324 9.264-2.39.484-42.275 8.481-42.298 8.996.154-3.664 52.83-12.422 58.691-14.988-.768.039-4.647.177-4.524-.123 1.39-3.487 18.221-3.664 22.439-4.524 11.223-2.29 22.455-4.579 33.678-6.868 9.971-2.028 19.827-3.388 29.722-5.854 11.754-2.927 24.045-4.54 35.944-6.79 9.849-1.86 25.267-2.006 33.825-7.568-.765.027-1.53.05-2.295.07 2.566-.117 7.982-2.156 10.66-2.666 5.047-.968 10.924-1.368 15.749-3.25-20.389-1.613-41.599 8.681-59.675 10.248-7.551.653-17.223 2.497-24.652 4.525-13.336 3.634-27.202 6.83-40.86 9.364-15.365 2.85-30.33 6.983-45.686 10.118-15.487 3.165-31.604 4.847-46.676 9.126-17.37 4.924-35.076 8.65-52.784 12.522l-31.411 6.867c-3.311.73-20.273 2.29-21.61 4.34.937-1.981 11.761-3.625 14.48-4.224 5.64-1.23 10.748-2.251 16.018-4.594-10.048.346-22.747 3.365-32.542 5.961-3.78.999-7.136 2.428-11.054 2.965-1.303.178-3.815-.029-6.017-.058zm249.698-62.402l-.06.003a.86.86 0 0 0-.253.286c.065-.103.182-.197.313-.289zm0 0c.13-.09.275-.18.394-.271-.18.088-.334.18-.455.274l.061-.003zm179.793-20.552c-3.372-3.05-24.844 3.895-29.507 4.494-5.539.707-10.862 2.312-16.355 3.203-9.38 1.521-19.251 2.197-28.293 5.685 12.506-.177 25.881-4.171 38.21-6.276 11.209-1.913 22.356-3.918 33.664-5.885 1.09.046 1.85-.36 2.281-1.221zm29.307-4.67c-8.427.299-17.046 1.443-25.228 3.664 8.066.015 15.749-1.652 23.669-3.096.522-.192 1.037-.384 1.56-.569zm569.088-57.04c2.935-.177 5.892-.523 8.834-.86-5-.193-11.108-1.944-15.418.606-.276.162 5.954.292 6.584.254zm23.424-2.83zm21.209-1.365c8.796-.852 17.792-1.236 26.71-1.905-3.31-.077-7.013-.614-9.11-.584-6.914.108-13.99 1.176-20.865 1.821-4.635.44-13.564-.394-17.818 1.96 3.719-2.001 16.101-.807 21.083-1.292zm-135.911 23.2c-.477-.076-.96-.123-1.445-.13-.522.084-1.037.176-1.559.26 1.106-.068 2.635.016 3.004-.13zm115.454-11.538c-.145.075-.293.148-.444.218a2.42 2.42 0 0 0 .444-.218zm-17.078-.392c-7.974-.799-16.747-.76-25.22.323-8.727 1.114-17.723 1.398-26.442 2.688-8.135 1.199-16.424 1.39-24.575 2.566-4.978.715-15.072-.084-18.974 2.39-.876.583 10.486.422 12.39.276l18.138-1.36c12.038-.899 24.337-1.13 36.298-2.72 5.692-.76 10.985-1.543 16.762-1.636 7.3-.12 21.365 1.297 28.257-1.917-3.2 1.227-13.774-.325-16.634-.61zm91.094-5.823c1.882-.146 4.579-.046 7.206-.154-5.539-.007-12.253-1.428-16.916.254 2.39-.446 7.844.046 9.71-.1zm34.915-2.95c-4.179.553-9.257 1.698-13.013.161 2.389-.63 11.684-2.827 13.013-.16zm3.949-1.244c9.656-1.675 19.827-2.213 29.56-1.667-8.826 2.596-20.403 2.558-29.56 1.667zm30.59-9.265c-1.237-.1-2.481-.192-3.718-.284-1.176.292-2.351.576-3.5
|
|