Brizy – Page Builder - Version 2.4.7

Version Description

  • 2022-09-28 =
  • Improved: Get fonts from https://fonts.bunny.net instead of https://fonts.googleapis.com to address GDPR font issues
  • Improved: Saved blocks pagination 50 blocks
  • Improved: Deleting request when you delete saved block or saved layout
  • Improved: Removed Math.random for security
  • Fixed: Map - popup is not closed when the cover on map is clicked
  • Fixed: Parallax in responsive mode
  • Fixed: Menu element - Icon size option
  • Fixed: Product Archive template shows posts instead of products
  • Fixed: Wp Optimize plugin compatibility
Download this release

Release Info

Developer themefusecom
Plugin Icon 128x128 Brizy – Page Builder
Version 2.4.7
Comparing to
See all releases

Code changes from version 2.4.6 to 2.4.7

README.md CHANGED
@@ -3,7 +3,7 @@ Contributors: themefuse<br>
3
  Requires at least: 4.5<br>
4
  Tested up to: 6.0.2<br>
5
  Requires PHP: 5.6.20<br>
6
- Stable tag: 2.4.6<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -118,6 +118,17 @@ $bodyHtml = apply_filters( 'brizy_content', $html->get_body(), Brizy_Editor_Proj
118
 
119
  ## Changelog
120
 
 
 
 
 
 
 
 
 
 
 
 
121
  ### 2.4.6 - 2022-09-17
122
  * New: Infinite animation option
123
  * New: Added select All option for custom post types in Global blocks conditions
3
  Requires at least: 4.5<br>
4
  Tested up to: 6.0.2<br>
5
  Requires PHP: 5.6.20<br>
6
+ Stable tag: 2.4.7<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
118
 
119
  ## Changelog
120
 
121
+ ### 2.4.7 - 2022-09-28
122
+ * Improved: Get fonts from https://fonts.bunny.net instead of https://fonts.googleapis.com to address GDPR font issues
123
+ * Improved: Saved blocks pagination 50 blocks
124
+ * Improved: Deleting request when you delete saved block or saved layout
125
+ * Improved: Removed Math.random for security
126
+ * Fixed: Map - popup is not closed when the cover on map is clicked
127
+ * Fixed: Parallax in responsive mode
128
+ * Fixed: Menu element - Icon size option
129
+ * Fixed: Product Archive template shows posts instead of products
130
+ * Fixed: Wp Optimize plugin compatibility
131
+
132
  ### 2.4.6 - 2022-09-17
133
  * New: Infinite animation option
134
  * New: Added select All option for custom post types in Global blocks conditions
admin/rules/manager.php CHANGED
@@ -1,329 +1,359 @@
1
  <?php
2
 
3
- class Brizy_Admin_Rules_Manager {
4
-
5
-
6
- /**
7
- * @return array|null
8
- */
9
- static function getCurrentPageGroupAndType() {
10
- global $wp_query;
11
-
12
- if ( ! isset( $wp_query ) || is_admin() ) {
13
- return null;
14
- }
15
-
16
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
17
- $entityType = null;
18
- $entityValues = array();
19
-
20
- if ( is_404() ) {
21
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
22
- $entityType = '404';
23
- } elseif ( is_author() ) {
24
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
25
- $entityType = 'author';
26
- $author_obj = $wp_query->get_queried_object();
27
- $entityValues[] = $author_obj->ID;
28
- } elseif ( is_search() ) {
29
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
30
- $entityType = 'search';
31
- } elseif ( function_exists( 'is_shop' ) && is_shop() ) {
32
- $applyFor = Brizy_Admin_Rule::WOO_SHOP_PAGE;
33
- $entityType = 'shop_page';
34
- } elseif ( is_front_page() && ! is_home() ) {
35
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
36
- $entityType = 'front_page';
37
- } elseif ( is_home() ) {
38
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
39
- $entityType = 'home_page';
40
- } elseif ( is_category() || is_tag() || is_tax() ) {
41
- $applyFor = Brizy_Admin_Rule::TAXONOMY;
42
- $entityType = $wp_query->queried_object->taxonomy;
43
- $entityValues[] = $wp_query->queried_object_id;
44
- } elseif ( is_day() ) {
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;
72
- $entityValues[] = get_queried_object_id();
73
- }
74
-
75
- return array( $applyFor, $entityType, $entityValues );
76
- }
77
-
78
- /**
79
- * @return array|null
80
- */
81
- static function getCurrentPageGroupAndTypeForPopoup() {
82
- global $wp_query;
83
-
84
- if ( ! isset( $wp_query ) || is_admin() ) {
85
- return null;
86
- }
87
-
88
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
89
- $entityType = null;
90
- $entityValues = array();
91
-
92
- /* if ( is_404() ) {
93
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
94
- $entityType = '404';
95
- } elseif ( is_author() ) {
96
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
97
- $entityType = 'author';
98
- } elseif ( is_search() ) {
99
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
100
- $entityType = 'search';
101
- } elseif ( is_front_page() ) {
102
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
103
- $entityType = 'front_page';
104
- } elseif ( is_home() ) {
105
- $applyFor = Brizy_Admin_Rule::TEMPLATE;
106
- $entityType = 'home_page';
107
- } else*/
108
-
109
- if ( is_category() || is_tag() || is_tax() ) {
110
- $applyFor = Brizy_Admin_Rule::TAXONOMY;
111
- $entityType = $wp_query->queried_object->taxonomy;
112
- $entityValues[] = $wp_query->queried_object_id;
113
- } elseif ( is_archive() ) {
114
- $applyFor = Brizy_Admin_Rule::ARCHIVE;
115
- if ( $wp_query->queried_object ) {
116
- $entityType = $wp_query->queried_object->name;
117
- }
118
- } elseif ( ( $wp_query->queried_object instanceof WP_Post || $wp_query->post instanceof WP_Post ) && get_queried_object() ) {
119
- $applyFor = Brizy_Admin_Rule::POSTS;
120
- $entityType = get_queried_object()->post_type;
121
- $entityValues[] = get_queried_object_id();
122
- }
123
-
124
- return array( $applyFor, $entityType, $entityValues );
125
- }
126
-
127
- /**
128
- * @param $entities
129
- * @param $context
130
- *
131
- * @return mixed
132
- */
133
- static function sortEntitiesByRuleWeight( $entities, $context ) {
134
- $ruleManager = new Brizy_Admin_Rules_Manager();
135
- // sort templates by rule set weight
136
- usort( $entities, function ( $t1, $t2 ) use ( $ruleManager, $context ) {
137
- $ruleSetT1 = $ruleManager->getRuleSet( $t1->ID );
138
- $ruleSetT2 = $ruleManager->getRuleSet( $t2->ID );
139
- $rule_weight_t1 = $ruleSetT1->getRuleWeight( $context );
140
- $rule_weight_t2 = $ruleSetT2->getRuleWeight( $context );
141
- if ( $rule_weight_t1 == $rule_weight_t2 ) {
142
- return 0;
143
- }
144
-
145
- return ( $rule_weight_t1 < $rule_weight_t2 ) ? 1 : - 1;
146
- } );
147
-
148
- return $entities;
149
- }
150
-
151
- /**
152
- * @param $jsonString
153
- * @param string $postType
154
- *
155
- * @return Brizy_Admin_Rule
156
- * @throws Exception
157
- */
158
- public function createRuleFromJson( $jsonString, $postType = Brizy_Admin_Templates::CP_TEMPLATE ) {
159
- $ruleJson = json_decode( $jsonString );
160
-
161
- return Brizy_Admin_Rule::createFromJsonObject( $ruleJson );
162
- }
163
-
164
- /**
165
- * @param $jsonString
166
- * @param string $postType
167
- *
168
- * @return array
169
- * @throws Exception
170
- */
171
- public function createRulesFromJson( $jsonString, $postType = Brizy_Admin_Templates::CP_TEMPLATE ) {
172
- $rulesJson = json_decode( $jsonString );
173
- $rules = array();
174
-
175
- if ( is_array( $rulesJson ) ) {
176
- foreach ( $rulesJson as $ruleJson ) {
177
- $rules[] = Brizy_Admin_Rule::createFromJsonObject( $ruleJson );
178
- }
179
- }
180
-
181
- return $rules;
182
- }
183
-
184
- /**
185
- * @param $postId
186
- *
187
- * @return array
188
- * @throws Exception
189
- */
190
- public function getRules( $postId ) {
191
- $rules = array();
192
-
193
- $meta_value = get_post_meta( (int) $postId, 'brizy-rules', true );
194
-
195
- // fallback if the migration was not run
196
- if ( ! $meta_value ) {
197
- $meta_value = get_post_meta( (int) $postId, 'brizy-template-rules', true );
198
- }
199
-
200
- if ( is_array( $meta_value ) && count( $meta_value ) ) {
201
-
202
- foreach ( $meta_value as $v ) {
203
- $brizy_admin_rule = Brizy_Admin_Rule::createFromSerializedData( $v );
204
- $rules[] = $brizy_admin_rule;
205
- }
206
- }
207
-
208
- $rules = Brizy_Admin_Rules_AbstractValidator::sortRules( $rules );
209
-
210
- return $rules;
211
- }
212
-
213
- /**
214
- * @param $postId
215
- * @param Brizy_Admin_Rule[] $rules
216
- */
217
- public function saveRules( $postId, $rules ) {
218
-
219
- $arrayRules = array();
220
-
221
- foreach ( $rules as $rule ) {
222
- $arrayRules[] = $rule->convertToOptionValue();
223
- }
224
-
225
- update_metadata( 'post', (int) $postId, 'brizy-rules', $arrayRules );
226
- }
227
-
228
- /**
229
- * @param $postId
230
- * @param Brizy_Admin_Rule $rule
231
- */
232
- public function addRule( $postId, $rule ) {
233
- $rules = $this->getRules( $postId );
234
- $rules[] = $rule;
235
- $this->saveRules( $postId, $rules );
236
-
237
- }
238
-
239
- /**
240
- * @param $postId
241
- * @param $ruleId
242
- */
243
- public function deleteRule( $postId, $ruleId ) {
244
- $rules = $this->getRules( $postId );
245
- foreach ( $rules as $i => $rule ) {
246
- if ( $rule->getId() == $ruleId ) {
247
- unset( $rules[ $i ] );
248
- }
249
- }
250
-
251
- $this->saveRules( $postId, $rules );
252
- }
253
-
254
- /**
255
- * @param $postId
256
- * @param Brizy_Admin_Rule[] $rules
257
- */
258
- public function addRules( $postId, $rules ) {
259
- $current_rules = $this->getRules( $postId );
260
- $result_rules = array_merge( $current_rules, $rules );
261
- $this->saveRules( $postId, $result_rules );
262
- }
263
-
264
- /**
265
- * @param $postId
266
- * @param Brizy_Admin_Rule[] $rules
267
- */
268
- public function setRules( $postId, $rules ) {
269
- $this->saveRules( $postId, $rules );
270
- }
271
-
272
- /**
273
- * @param int $postId
274
- *
275
- * @return Brizy_Admin_RuleSet
276
- */
277
- public function getRuleSet( $postId ) {
278
- return new Brizy_Admin_RuleSet( $this->sortRules( $this->getRules( $postId ) ) );
279
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
  //
281
- public function getAllRulesSet( $args = array(), $postType = Brizy_Admin_Templates::CP_TEMPLATE ) {
 
282
 
283
- $defaults = array(
284
- 'post_type' => $postType,
285
- 'posts_per_page' => - 1,
286
- 'post_status' => array( 'publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit' )
287
- );
288
 
289
- $r = wp_parse_args( $args, $defaults );
290
 
291
- $templates = get_posts( $r );
292
 
293
- $rules = array();
294
 
295
- foreach ( $templates as $template ) {
296
- $tRules = $this->getRules( $template->ID );
297
- $rules = array_merge( $rules, $tRules );
298
- }
299
 
300
- $rules = $this->sortRules( $rules );
301
 
302
- $ruleSet = new Brizy_Admin_RuleSet( $rules );
303
 
304
- return $ruleSet;
305
- }
306
 
307
 
308
- private function sortRules( $rules ) {
309
- // sort the rules by how specific they are
310
- usort( $rules, function ( $a, $b ) {
311
- /**
312
- * @var Brizy_Admin_Rule $a ;
313
- * @var Brizy_Admin_Rule $b ;
314
- */
 
315
 
316
- $la = $a->getRuleWeight([]);
317
- $lb = $b->getRuleWeight([]);
318
- if ( $lb == $la ) {
319
- return 0;
320
- }
321
 
322
- return $la < $lb ? 1 : - 1;
323
- } );
324
 
325
- return $rules;
326
- }
327
  //
328
  // /**
329
  // * @param $postType
1
  <?php
2
 
3
+ class Brizy_Admin_Rules_Manager
4
+ {
5
+
6
+
7
+ /**
8
+ * @return array|null
9
+ */
10
+ static function getCurrentPageGroupAndType()
11
+ {
12
+ global $wp_query;
13
+
14
+ if ( ! isset($wp_query) || is_admin()) {
15
+ return null;
16
+ }
17
+
18
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
19
+ $entityType = null;
20
+ $entityValues = array();
21
+
22
+ $is_shop = is_page(wc_get_page_id('shop'));
23
+ $is_shop = is_shop();
24
+ if (is_404()) {
25
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
26
+ $entityType = '404';
27
+ } elseif (is_author()) {
28
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
29
+ $entityType = 'author';
30
+ $author_obj = $wp_query->get_queried_object();
31
+ $entityValues[] = $author_obj->ID;
32
+ } elseif (is_search()) {
33
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
34
+ $entityType = 'search';
35
+ } elseif (function_exists('is_shop') && is_shop()) {
36
+ $applyFor = Brizy_Admin_Rule::WOO_SHOP_PAGE;
37
+ $entityType = 'shop_page';
38
+ } elseif (is_front_page() && ! is_home()) {
39
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
40
+ $entityType = 'front_page';
41
+ } elseif (is_home()) {
42
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
43
+ $entityType = 'home_page';
44
+ } elseif (is_category() || is_tag() || is_tax()) {
45
+ $applyFor = Brizy_Admin_Rule::TAXONOMY;
46
+ $entityType = $wp_query->queried_object->taxonomy;
47
+ $entityValues[] = $wp_query->queried_object_id;
48
+ } elseif (is_day()) {
49
+ $applyFor = Brizy_Admin_Rule::DAY_ARCHIVE;
50
+ if ($wp_query->queried_object) {
 
51
  $entityType = $wp_query->queried_object->name;
52
+ } else {
53
+ $entityType = 'post';
54
+ }
55
+ } elseif (is_month()) {
56
+ $applyFor = Brizy_Admin_Rule::MONTH_ARCHIVE;
57
+ if ($wp_query->queried_object) {
58
  $entityType = $wp_query->queried_object->name;
59
+ } else {
60
+ $entityType = 'post';
61
+ }
62
+ } elseif (is_year()) {
63
+ $applyFor = Brizy_Admin_Rule::YEAR_ARCHIVE;
64
+ if ($wp_query->queried_object) {
65
  $entityType = $wp_query->queried_object->name;
66
+ } else {
67
+ $entityType = 'post';
68
+ }
69
+ } elseif (is_date()) {
70
+ $applyFor = Brizy_Admin_Rule::DATE_ARCHIVE;
71
+ if ($wp_query->queried_object) {
72
  $entityType = $wp_query->queried_object->name;
73
+ } else {
74
+ $entityType = 'post';
75
+ }
76
+ } elseif (is_archive() || isset($_REQUEST['post_type'])) {
77
+ $applyFor = Brizy_Admin_Rule::ARCHIVE;
78
+ if ($wp_query->queried_object) {
79
+ $entityType = $wp_query->queried_object->name;
80
+ } else {
81
+ $entityType = 'post';
82
+ }
83
+ } elseif (($wp_query->queried_object instanceof WP_Post || $wp_query->post instanceof WP_Post) && get_queried_object(
84
+ )) {
85
+ $applyFor = Brizy_Admin_Rule::POSTS;
86
+ $entityType = get_queried_object()->post_type;
87
+ $entityValues[] = get_queried_object_id();
88
+ }
89
+
90
+ return array($applyFor, $entityType, $entityValues);
91
+ }
92
+
93
+ /**
94
+ * @return array|null
95
+ */
96
+ static function getCurrentPageGroupAndTypeForPopoup()
97
+ {
98
+ global $wp_query;
99
+
100
+ if ( ! isset($wp_query) || is_admin()) {
101
+ return null;
102
+ }
103
+
104
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
105
+ $entityType = null;
106
+ $entityValues = array();
107
+
108
+ /* if ( is_404() ) {
109
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
110
+ $entityType = '404';
111
+ } elseif ( is_author() ) {
112
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
113
+ $entityType = 'author';
114
+ } elseif ( is_search() ) {
115
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
116
+ $entityType = 'search';
117
+ } elseif ( is_front_page() ) {
118
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
119
+ $entityType = 'front_page';
120
+ } elseif ( is_home() ) {
121
+ $applyFor = Brizy_Admin_Rule::TEMPLATE;
122
+ $entityType = 'home_page';
123
+ } else*/
124
+
125
+ if (is_category() || is_tag() || is_tax()) {
126
+ $applyFor = Brizy_Admin_Rule::TAXONOMY;
127
+ $entityType = $wp_query->queried_object->taxonomy;
128
+ $entityValues[] = $wp_query->queried_object_id;
129
+ } elseif (is_archive()) {
130
+ $applyFor = Brizy_Admin_Rule::ARCHIVE;
131
+ if ($wp_query->queried_object) {
132
+ $entityType = $wp_query->queried_object->name;
133
+ }
134
+ } elseif (($wp_query->queried_object instanceof WP_Post || $wp_query->post instanceof WP_Post) && get_queried_object(
135
+ )) {
136
+ $applyFor = Brizy_Admin_Rule::POSTS;
137
+ $entityType = get_queried_object()->post_type;
138
+ $entityValues[] = get_queried_object_id();
139
+ }
140
+
141
+ return array($applyFor, $entityType, $entityValues);
142
+ }
143
+
144
+ /**
145
+ * @param $entities
146
+ * @param $context
147
+ *
148
+ * @return mixed
149
+ */
150
+ static function sortEntitiesByRuleWeight($entities, $context)
151
+ {
152
+ $ruleManager = new Brizy_Admin_Rules_Manager();
153
+ // sort templates by rule set weight
154
+ usort($entities, function ($t1, $t2) use ($ruleManager, $context) {
155
+ $ruleSetT1 = $ruleManager->getRuleSet($t1->ID);
156
+ $ruleSetT2 = $ruleManager->getRuleSet($t2->ID);
157
+ $rule_weight_t1 = $ruleSetT1->getRuleWeight($context);
158
+ $rule_weight_t2 = $ruleSetT2->getRuleWeight($context);
159
+ if ($rule_weight_t1 == $rule_weight_t2) {
160
+ return 0;
161
+ }
162
+
163
+ return ($rule_weight_t1 < $rule_weight_t2) ? 1 : -1;
164
+ });
165
+
166
+ return $entities;
167
+ }
168
+
169
+ /**
170
+ * @param $jsonString
171
+ * @param string $postType
172
+ *
173
+ * @return Brizy_Admin_Rule
174
+ * @throws Exception
175
+ */
176
+ public function createRuleFromJson($jsonString, $postType = Brizy_Admin_Templates::CP_TEMPLATE)
177
+ {
178
+ $ruleJson = json_decode($jsonString);
179
+
180
+ return Brizy_Admin_Rule::createFromJsonObject($ruleJson);
181
+ }
182
+
183
+ /**
184
+ * @param $jsonString
185
+ * @param string $postType
186
+ *
187
+ * @return array
188
+ * @throws Exception
189
+ */
190
+ public function createRulesFromJson($jsonString, $postType = Brizy_Admin_Templates::CP_TEMPLATE)
191
+ {
192
+ $rulesJson = json_decode($jsonString);
193
+ $rules = array();
194
+
195
+ if (is_array($rulesJson)) {
196
+ foreach ($rulesJson as $ruleJson) {
197
+ $rules[] = Brizy_Admin_Rule::createFromJsonObject($ruleJson);
198
+ }
199
+ }
200
+
201
+ return $rules;
202
+ }
203
+
204
+ /**
205
+ * @param $postId
206
+ *
207
+ * @return array
208
+ * @throws Exception
209
+ */
210
+ public function getRules($postId)
211
+ {
212
+ $rules = array();
213
+
214
+ $meta_value = get_post_meta((int)$postId, 'brizy-rules', true);
215
+
216
+ // fallback if the migration was not run
217
+ if ( ! $meta_value) {
218
+ $meta_value = get_post_meta((int)$postId, 'brizy-template-rules', true);
219
+ }
220
+
221
+ if (is_array($meta_value) && count($meta_value)) {
222
+
223
+ foreach ($meta_value as $v) {
224
+ $brizy_admin_rule = Brizy_Admin_Rule::createFromSerializedData($v);
225
+ $rules[] = $brizy_admin_rule;
226
+ }
227
+ }
228
+
229
+ $rules = Brizy_Admin_Rules_AbstractValidator::sortRules($rules);
230
+
231
+ return $rules;
232
+ }
233
+
234
+ /**
235
+ * @param $postId
236
+ * @param Brizy_Admin_Rule[] $rules
237
+ */
238
+ public function saveRules($postId, $rules)
239
+ {
240
+
241
+ $arrayRules = array();
242
+
243
+ foreach ($rules as $rule) {
244
+ $arrayRules[] = $rule->convertToOptionValue();
245
+ }
246
+
247
+ update_metadata('post', (int)$postId, 'brizy-rules', $arrayRules);
248
+ }
249
+
250
+ /**
251
+ * @param $postId
252
+ * @param Brizy_Admin_Rule $rule
253
+ */
254
+ public function addRule($postId, $rule)
255
+ {
256
+ $rules = $this->getRules($postId);
257
+ $rules[] = $rule;
258
+ $this->saveRules($postId, $rules);
259
+
260
+ }
261
+
262
+ /**
263
+ * @param $postId
264
+ * @param $ruleId
265
+ */
266
+ public function deleteRule($postId, $ruleId)
267
+ {
268
+ $rules = $this->getRules($postId);
269
+ foreach ($rules as $i => $rule) {
270
+ if ($rule->getId() == $ruleId) {
271
+ unset($rules[$i]);
272
+ }
273
+ }
274
+
275
+ $this->saveRules($postId, $rules);
276
+ }
277
+
278
+ /**
279
+ * @param $postId
280
+ * @param Brizy_Admin_Rule[] $rules
281
+ */
282
+ public function addRules($postId, $rules)
283
+ {
284
+ $current_rules = $this->getRules($postId);
285
+ $result_rules = array_merge($current_rules, $rules);
286
+ $this->saveRules($postId, $result_rules);
287
+ }
288
+
289
+ /**
290
+ * @param $postId
291
+ * @param Brizy_Admin_Rule[] $rules
292
+ */
293
+ public function setRules($postId, $rules)
294
+ {
295
+ $this->saveRules($postId, $rules);
296
+ }
297
+
298
+ /**
299
+ * @param int $postId
300
+ *
301
+ * @return Brizy_Admin_RuleSet
302
+ */
303
+ public function getRuleSet($postId)
304
+ {
305
+ return new Brizy_Admin_RuleSet($this->sortRules($this->getRules($postId)));
306
+ }
307
+
308
  //
309
+ public function getAllRulesSet($args = array(), $postType = Brizy_Admin_Templates::CP_TEMPLATE)
310
+ {
311
 
312
+ $defaults = array(
313
+ 'post_type' => $postType,
314
+ 'posts_per_page' => -1,
315
+ 'post_status' => array('publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit'),
316
+ );
317
 
318
+ $r = wp_parse_args($args, $defaults);
319
 
320
+ $templates = get_posts($r);
321
 
322
+ $rules = array();
323
 
324
+ foreach ($templates as $template) {
325
+ $tRules = $this->getRules($template->ID);
326
+ $rules = array_merge($rules, $tRules);
327
+ }
328
 
329
+ $rules = $this->sortRules($rules);
330
 
331
+ $ruleSet = new Brizy_Admin_RuleSet($rules);
332
 
333
+ return $ruleSet;
334
+ }
335
 
336
 
337
+ private function sortRules($rules)
338
+ {
339
+ // sort the rules by how specific they are
340
+ usort($rules, function ($a, $b) {
341
+ /**
342
+ * @var Brizy_Admin_Rule $a ;
343
+ * @var Brizy_Admin_Rule $b ;
344
+ */
345
 
346
+ $la = $a->getRuleWeight([]);
347
+ $lb = $b->getRuleWeight([]);
348
+ if ($lb == $la) {
349
+ return 0;
350
+ }
351
 
352
+ return $la < $lb ? 1 : -1;
353
+ });
354
 
355
+ return $rules;
356
+ }
357
  //
358
  // /**
359
  // * @param $postType
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.4.6
9
  * Text Domain: brizy
10
  * License: GPLv3
11
  * Domain Path: /languages
@@ -19,10 +19,10 @@ 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.4.6' );
23
  define( 'BRIZY_MINIMUM_PRO_VERSION', '2.4.0' );
24
- define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '242-wp' );
25
- define( 'BRIZY_SYNC_VERSION', '242' );
26
  define( 'BRIZY_FILE', __FILE__ );
27
  define( 'BRIZY_PLUGIN_BASE', plugin_basename( BRIZY_FILE ) );
28
  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.4.7
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.4.7' );
23
  define( 'BRIZY_MINIMUM_PRO_VERSION', '2.4.0' );
24
+ define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '244-wp' );
25
+ define( 'BRIZY_SYNC_VERSION', '244' );
26
  define( 'BRIZY_FILE', __FILE__ );
27
  define( 'BRIZY_PLUGIN_BASE', plugin_basename( BRIZY_FILE ) );
28
  define( 'BRIZY_PLUGIN_PATH', dirname( BRIZY_FILE ) );
compatibilities/init.php CHANGED
@@ -4,7 +4,7 @@ class Brizy_Compatibilities_Init {
4
 
5
  public function __construct() {
6
  $this->load_compatibilites();
7
- add_action( 'plugins_loaded', [ $this, 'action_plugins_loaded' ], 9 );
8
  add_action( 'after_setup_theme', [ $this, 'after_setup_theme' ] );
9
  }
10
 
@@ -130,7 +130,11 @@ class Brizy_Compatibilities_Init {
130
  if ( class_exists( 'WP_Import' ) ) {
131
  new Brizy_Compatibilities_WordpressImporter();
132
  }
133
- }
 
 
 
 
134
 
135
  public function after_setup_theme() {
136
  if ( function_exists( 'tf_autoload' ) ) {
4
 
5
  public function __construct() {
6
  $this->load_compatibilites();
7
+ add_action( 'plugins_loaded', [ $this, 'action_plugins_loaded' ], 0 );
8
  add_action( 'after_setup_theme', [ $this, 'after_setup_theme' ] );
9
  }
10
 
130
  if ( class_exists( 'WP_Import' ) ) {
131
  new Brizy_Compatibilities_WordpressImporter();
132
  }
133
+
134
+ if ( class_exists( 'WP_Optimize' ) ) {
135
+ new Brizy_Compatibilities_WpOptimize();
136
+ }
137
+ }
138
 
139
  public function after_setup_theme() {
140
  if ( function_exists( 'tf_autoload' ) ) {
compatibilities/wp-optimize.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * WP-Optimize – Cache, Clean, Compress plugin: https://wordpress.org/plugins/wp-optimize/
4
+ */
5
+ class Brizy_Compatibilities_WpOptimize {
6
+
7
+ public function __construct() {
8
+ if ( Brizy_Public_Main::is_editing() ) {
9
+ add_filter( 'option_wpo_minify_config', [ $this, 'changeWpOptimizeConfig' ] );
10
+ add_filter( 'site_option_wpo_minify_config', [ $this, 'changeWpOptimizeConfig' ] );
11
+ }
12
+ }
13
+
14
+ public function changeWpOptimizeConfig( $config ) {
15
+ $config['enable_js'] = false;
16
+ $config['enable_css'] = false;
17
+ $config['html_minification'] = false;
18
+ $config['enable_css_minification'] = false;
19
+ $config['enable_merging_of_css'] = false;
20
+ $config['inline_css'] = false;
21
+ $config['enable_js_minification'] = false;
22
+ $config['enable_merging_of_js'] = false;
23
+ $config['enabled_css_preload'] = false;
24
+ $config['enabled_js_preload'] = false;
25
+
26
+ return $config;
27
+ }
28
+ }
editor/api.php CHANGED
@@ -667,9 +667,22 @@ class Brizy_Editor_API extends Brizy_Admin_AbstractApi
667
 
668
  return array_pop($terms);
669
 
 
 
 
 
 
 
670
  case Brizy_Admin_Rule::ARCHIVE :
671
- return null;
 
 
 
 
 
 
672
 
 
673
  case Brizy_Admin_Rule::TEMPLATE :
674
 
675
  switch ($rule->getEntityType()) {
667
 
668
  return array_pop($terms);
669
 
670
+ case Brizy_Admin_Rule::WOO_SHOP_PAGE :
671
+ $wp_query = new WP_Query(['post_type' => 'product', 'fields' => 'ids']);
672
+ //$posts = $wp_query->get_posts();
673
+ //$page = wc_get_page_id('shop');
674
+
675
+ return get_post(wc_get_page_id('shop'));
676
  case Brizy_Admin_Rule::ARCHIVE :
677
+ if ($rule->getEntityType() == 'product') {
678
+ $wp_query = new WP_Query(['post_type' => 'product', 'fields' => 'ids']);
679
+ $posts = $wp_query->get_posts();
680
+
681
+ return get_post(array_pop($posts));
682
+ }
683
+ $posts = $wp_query->get_posts();
684
 
685
+ return get_post(array_pop($posts));;
686
  case Brizy_Admin_Rule::TEMPLATE :
687
 
688
  switch ($rule->getEntityType()) {
import/main.php CHANGED
@@ -15,6 +15,8 @@ class Brizy_Import_Main {
15
  add_action( 'wp_ajax_brizy-import-demo', [ $this, 'ajaxImportDemo' ] );
16
  add_action( 'admin_enqueue_scripts', [ $this, 'adminEnqueueScripts' ] );
17
  }
 
 
18
  }
19
 
20
  public function addSubmenuPageTemplates() {
@@ -120,4 +122,9 @@ class Brizy_Import_Main {
120
  [ 'jquery' ]
121
  );
122
  }
 
 
 
 
 
123
  }
15
  add_action( 'wp_ajax_brizy-import-demo', [ $this, 'ajaxImportDemo' ] );
16
  add_action( 'admin_enqueue_scripts', [ $this, 'adminEnqueueScripts' ] );
17
  }
18
+
19
+ add_filter( 'http_request_args', [ $this, 'doNotRejectUnsafeUrl' ], 999 );
20
  }
21
 
22
  public function addSubmenuPageTemplates() {
122
  [ 'jquery' ]
123
  );
124
  }
125
+
126
+ public function doNotRejectUnsafeUrl( $args ) {
127
+ $args['reject_unsafe_urls'] = false;
128
+ return $args;
129
+ }
130
  }
public/editor-build/242-wp/editor/css/preview.css DELETED
@@ -1,9493 +0,0 @@
1
- .brz-ow-hidden {
2
- overflow: hidden !important; }
3
-
4
- .brz-ow-visible {
5
- overflow: visible !important; }
6
-
7
- html {
8
- -webkit-box-sizing: border-box;
9
- box-sizing: border-box;
10
- scroll-behavior: auto; }
11
-
12
- *,
13
- *:before,
14
- *:after {
15
- -webkit-box-sizing: border-box;
16
- box-sizing: border-box; }
17
-
18
- @-ms-viewport {
19
- width: device-width; }
20
-
21
- .brz .brz-figcaption,
22
- .brz .brz-figure,
23
- .brz .brz-section {
24
- display: block; }
25
-
26
- body {
27
- margin: 0; }
28
- body.brz-ed {
29
- background-color: #f3f3f3; }
30
- body.brz::before, body.brz::after {
31
- display: none; }
32
-
33
- .brz-iframe {
34
- margin: 0;
35
- padding: 0;
36
- border: 0;
37
- font: inherit;
38
- font-size: 100%;
39
- vertical-align: baseline; }
40
-
41
- .brz {
42
- -webkit-font-smoothing: antialiased;
43
- -moz-osx-font-smoothing: grayscale; }
44
- .brz .brz-root__container.brz-reset-all {
45
- display: block;
46
- overflow: hidden;
47
- font-family: inherit; }
48
-
49
- .brz .brz-hr {
50
- -webkit-box-sizing: content-box;
51
- box-sizing: content-box;
52
- height: 0;
53
- overflow: visible;
54
- margin: 0; }
55
-
56
- .brz .brz-h1,
57
- .brz .brz-h2,
58
- .brz .brz-h3,
59
- .brz .brz-h4,
60
- .brz .brz-h5,
61
- .brz .brz-h6 {
62
- margin-top: 0;
63
- margin-bottom: 0;
64
- padding: 0; }
65
-
66
- .brz .brz-p {
67
- margin-top: 0;
68
- margin-bottom: 0;
69
- padding-top: 0;
70
- padding-bottom: 0; }
71
-
72
- .brz .brz-span {
73
- float: none;
74
- margin: 0;
75
- padding: 0;
76
- font-family: inherit;
77
- font-size: inherit;
78
- font-weight: inherit;
79
- line-height: inherit;
80
- letter-spacing: inherit;
81
- color: inherit; }
82
-
83
- .brz .brz-ol,
84
- .brz .brz-ul,
85
- .brz .brz-dl {
86
- margin: 0;
87
- list-style: none;
88
- padding: 0; }
89
-
90
- .brz .brz-ol .brz-ol,
91
- .brz .brz-ul .brz-ul,
92
- .brz .brz-ol .brz-ul,
93
- .brz .brz-ul .brz-ol {
94
- margin: 0; }
95
-
96
- .brz .brz-dt {
97
- font-weight: bold; }
98
-
99
- .brz .brz-dd {
100
- margin-bottom: 0.5rem;
101
- margin-left: 0; }
102
-
103
- .brz .brz-blockquote {
104
- margin: 0 0 1rem; }
105
-
106
- .brz .brz-dfn {
107
- font-style: italic; }
108
-
109
- .brz .brz-b,
110
- .brz .brz-strong {
111
- font-weight: 700; }
112
-
113
- .brz .brz-a:not(.brz-btn) {
114
- color: #3dbfe8;
115
- text-decoration: none;
116
- background-color: transparent;
117
- -webkit-text-decoration-skip: objects;
118
- -webkit-box-shadow: none;
119
- box-shadow: none; }
120
- .brz .brz-a:not(.brz-btn)[href]:hover {
121
- color: #1aabd8;
122
- -webkit-box-shadow: none;
123
- box-shadow: none;
124
- cursor: pointer; }
125
- .brz .brz-a:not(.brz-btn):focus, .brz .brz-a:not(.brz-btn):active, .brz .brz-a:not(.brz-btn):hover {
126
- outline: none; }
127
-
128
- .brz .brz-a.brz-btn[href] {
129
- text-decoration: none; }
130
-
131
- .brz .brz-figure {
132
- margin: 0;
133
- min-width: auto;
134
- min-height: auto; }
135
-
136
- .brz .brz-img {
137
- vertical-align: middle;
138
- border-style: none; }
139
-
140
- .brz svg:not(:root) {
141
- overflow: hidden; }
142
-
143
- .brz .brz-button,
144
- .brz .brz-input,
145
- .brz .brz-label,
146
- .brz .brz-textarea {
147
- -ms-touch-action: manipulation;
148
- touch-action: manipulation; }
149
-
150
- .brz .brz-table {
151
- border-collapse: collapse; }
152
-
153
- .brz .brz-caption {
154
- padding-top: 0.75rem;
155
- padding-bottom: 0.75rem;
156
- color: #828b92;
157
- text-align: left;
158
- caption-side: bottom; }
159
-
160
- .brz .brz-th {
161
- text-align: left; }
162
-
163
- .brz .brz-form {
164
- margin: 0; }
165
-
166
- .brz .brz-label {
167
- display: inline-block;
168
- margin-bottom: 0;
169
- font-weight: normal; }
170
-
171
- .brz .brz-button:focus {
172
- outline: 1px dotted;
173
- outline: 5px auto -webkit-focus-ring-color; }
174
-
175
- .brz .brz-input,
176
- .brz .brz-button,
177
- .brz .brz-select,
178
- .brz .brz-optgroup,
179
- .brz .brz-textarea {
180
- padding: 0;
181
- margin: 0;
182
- font-family: inherit;
183
- font-size: inherit;
184
- line-height: inherit;
185
- height: initial;
186
- min-height: initial; }
187
-
188
- .brz .brz-button,
189
- .brz .brz-input {
190
- overflow: visible; }
191
-
192
- .brz .brz-button,
193
- .brz .brz-select {
194
- text-transform: none; }
195
-
196
- .brz .brz-button {
197
- -webkit-appearance: button; }
198
-
199
- .brz .brz-button::-moz-focus-inner {
200
- padding: 0;
201
- border-style: none; }
202
-
203
- .brz .brz-input[type="radio"],
204
- .brz .brz-input[type="checkbox"] {
205
- -webkit-box-sizing: border-box;
206
- box-sizing: border-box;
207
- padding: 0; }
208
-
209
- .brz .brz-input[type="number"] {
210
- -moz-appearance: textfield; }
211
-
212
- .brz .brz-input[type="date"],
213
- .brz .brz-input[type="time"],
214
- .brz .brz-input[type="datetime-local"],
215
- .brz .brz-input[type="month"] {
216
- -webkit-appearance: listbox; }
217
-
218
- .brz .brz-textarea {
219
- overflow: auto;
220
- resize: vertical; }
221
-
222
- .brz .brz-fieldset {
223
- min-width: 0;
224
- padding: 0;
225
- margin: 0;
226
- border: 0; }
227
-
228
- .brz .brz-iframe,
229
- .brz .brz-object {
230
- margin-bottom: 0;
231
- max-width: 100%; }
232
-
233
- .brz .brz-iframe {
234
- margin: 0;
235
- padding: 0;
236
- border: 0;
237
- font: inherit;
238
- font-size: 100%;
239
- vertical-align: baseline; }
240
-
241
- .brz [hidden] {
242
- display: none !important; }
243
-
244
- .brz .brz-reset-all {
245
- -ms-flex-line-pack: stretch;
246
- align-content: stretch;
247
- -webkit-box-align: stretch;
248
- -ms-flex-align: stretch;
249
- align-items: stretch;
250
- -ms-flex-item-align: auto;
251
- align-self: auto;
252
- -webkit-animation-delay: 0s;
253
- animation-delay: 0s;
254
- -webkit-animation-direction: normal;
255
- animation-direction: normal;
256
- -webkit-animation-duration: 0s;
257
- animation-duration: 0s;
258
- -webkit-animation-fill-mode: none;
259
- animation-fill-mode: none;
260
- -webkit-animation-iteration-count: 1;
261
- animation-iteration-count: 1;
262
- -webkit-animation-name: none;
263
- animation-name: none;
264
- -webkit-animation-play-state: running;
265
- animation-play-state: running;
266
- -webkit-animation-timing-function: ease;
267
- animation-timing-function: ease;
268
- azimuth: center;
269
- -webkit-backface-visibility: visible;
270
- backface-visibility: visible;
271
- background-attachment: scroll;
272
- background-blend-mode: normal;
273
- background-clip: border-box;
274
- background-color: transparent;
275
- background-image: none;
276
- background-origin: padding-box;
277
- background-position: 0% 0%;
278
- background-repeat: repeat;
279
- background-size: auto auto;
280
- block-size: auto;
281
- border-block-end-color: currentcolor;
282
- border-block-end-style: none;
283
- border-block-end-width: medium;
284
- border-block-start-color: currentcolor;
285
- border-block-start-style: none;
286
- border-block-start-width: medium;
287
- border-bottom-color: currentcolor;
288
- border-bottom-left-radius: 0;
289
- border-bottom-right-radius: 0;
290
- border-bottom-style: none;
291
- border-bottom-width: medium;
292
- border-collapse: separate;
293
- border-image-outset: 0s;
294
- border-image-repeat: stretch;
295
- border-image-slice: 100%;
296
- border-image-source: none;
297
- border-image-width: 1;
298
- border-inline-end-color: currentcolor;
299
- border-inline-end-style: none;
300
- border-inline-end-width: medium;
301
- border-inline-start-color: currentcolor;
302
- border-inline-start-style: none;
303
- border-inline-start-width: medium;
304
- border-left-color: currentcolor;
305
- border-left-style: none;
306
- border-left-width: medium;
307
- border-right-color: currentcolor;
308
- border-right-style: none;
309
- border-right-width: medium;
310
- border-spacing: 0;
311
- border-top-color: currentcolor;
312
- border-top-left-radius: 0;
313
- border-top-right-radius: 0;
314
- border-top-style: none;
315
- border-top-width: medium;
316
- bottom: auto;
317
- -webkit-box-decoration-break: slice;
318
- box-decoration-break: slice;
319
- -webkit-box-shadow: none;
320
- box-shadow: none;
321
- -webkit-box-sizing: content-box;
322
- box-sizing: content-box;
323
- -webkit-column-break-after: auto;
324
- break-after: auto;
325
- -webkit-column-break-before: auto;
326
- break-before: auto;
327
- -webkit-column-break-inside: auto;
328
- break-inside: auto;
329
- caption-side: top;
330
- caret-color: auto;
331
- clear: none;
332
- clip: auto;
333
- -webkit-clip-path: none;
334
- clip-path: none;
335
- color: initial;
336
- -webkit-column-count: auto;
337
- -moz-column-count: auto;
338
- column-count: auto;
339
- -webkit-column-fill: balance;
340
- -moz-column-fill: balance;
341
- column-fill: balance;
342
- -webkit-column-gap: normal;
343
- -moz-column-gap: normal;
344
- column-gap: normal;
345
- -webkit-column-rule-color: currentcolor;
346
- -moz-column-rule-color: currentcolor;
347
- column-rule-color: currentcolor;
348
- -webkit-column-rule-style: none;
349
- -moz-column-rule-style: none;
350
- column-rule-style: none;
351
- -webkit-column-rule-width: medium;
352
- -moz-column-rule-width: medium;
353
- column-rule-width: medium;
354
- -webkit-column-span: none;
355
- -moz-column-span: none;
356
- column-span: none;
357
- -webkit-column-width: auto;
358
- -moz-column-width: auto;
359
- column-width: auto;
360
- content: normal;
361
- counter-increment: none;
362
- counter-reset: none;
363
- cursor: auto;
364
- display: inline;
365
- empty-cells: show;
366
- -webkit-filter: none;
367
- filter: none;
368
- -ms-flex-preferred-size: auto;
369
- flex-basis: auto;
370
- -webkit-box-orient: horizontal;
371
- -webkit-box-direction: normal;
372
- -ms-flex-direction: row;
373
- flex-direction: row;
374
- -webkit-box-flex: 0;
375
- -ms-flex-positive: 0;
376
- flex-grow: 0;
377
- -ms-flex-negative: 1;
378
- flex-shrink: 1;
379
- -ms-flex-wrap: nowrap;
380
- flex-wrap: nowrap;
381
- float: none;
382
- font-family: initial;
383
- -webkit-font-feature-settings: normal;
384
- font-feature-settings: normal;
385
- -webkit-font-kerning: auto;
386
- font-kerning: auto;
387
- -webkit-font-language-override: normal;
388
- font-language-override: normal;
389
- font-size: medium;
390
- font-size-adjust: none;
391
- font-stretch: normal;
392
- font-style: normal;
393
- font-synthesis: weight style;
394
- font-variant: normal;
395
- font-variant-alternates: normal;
396
- font-variant-caps: normal;
397
- font-variant-east-asian: normal;
398
- -webkit-font-variant-ligatures: normal;
399
- font-variant-ligatures: normal;
400
- font-variant-numeric: normal;
401
- font-variant-position: normal;
402
- font-weight: normal;
403
- grid-auto-columns: auto;
404
- grid-auto-flow: row;
405
- grid-auto-rows: auto;
406
- grid-column-end: auto;
407
- grid-column-gap: 0;
408
- grid-column-start: auto;
409
- grid-row-end: auto;
410
- grid-row-gap: 0;
411
- grid-row-start: auto;
412
- grid-template-areas: none;
413
- grid-template-columns: none;
414
- grid-template-rows: none;
415
- height: auto;
416
- -webkit-hyphens: manual;
417
- -ms-hyphens: manual;
418
- hyphens: manual;
419
- image-orientation: 0deg;
420
- image-rendering: auto;
421
- image-resolution: 1dppx;
422
- ime-mode: auto;
423
- inline-size: auto;
424
- isolation: auto;
425
- -webkit-box-pack: start;
426
- -ms-flex-pack: start;
427
- justify-content: flex-start;
428
- left: auto;
429
- letter-spacing: normal;
430
- line-break: auto;
431
- line-height: normal;
432
- list-style-image: none;
433
- list-style-position: outside;
434
- list-style-type: disc;
435
- -webkit-margin-after: 0;
436
- margin-block-end: 0;
437
- -webkit-margin-before: 0;
438
- margin-block-start: 0;
439
- margin-bottom: 0;
440
- -webkit-margin-end: 0;
441
- margin-inline-end: 0;
442
- -webkit-margin-start: 0;
443
- margin-inline-start: 0;
444
- margin-left: 0;
445
- margin-right: 0;
446
- margin-top: 0;
447
- -webkit-mask-clip: border-box;
448
- mask-clip: border-box;
449
- -webkit-mask-composite: add;
450
- mask-composite: add;
451
- -webkit-mask-image: none;
452
- mask-image: none;
453
- mask-mode: match-source;
454
- -webkit-mask-origin: border-box;
455
- mask-origin: border-box;
456
- -webkit-mask-position: 0% 0%;
457
- mask-position: 0% 0%;
458
- -webkit-mask-repeat: repeat;
459
- mask-repeat: repeat;
460
- -webkit-mask-size: auto;
461
- mask-size: auto;
462
- mask-type: luminance;
463
- max-height: none;
464
- max-width: none;
465
- min-block-size: 0;
466
- min-height: 0;
467
- min-inline-size: 0;
468
- min-width: 0;
469
- mix-blend-mode: normal;
470
- -o-object-fit: fill;
471
- object-fit: fill;
472
- -o-object-position: 50% 50%;
473
- object-position: 50% 50%;
474
- offset-block-end: auto;
475
- offset-block-start: auto;
476
- offset-inline-end: auto;
477
- offset-inline-start: auto;
478
- opacity: 1;
479
- -webkit-box-ordinal-group: 1;
480
- -ms-flex-order: 0;
481
- order: 0;
482
- orphans: 2;
483
- outline-color: initial;
484
- outline-offset: 0;
485
- outline-style: none;
486
- outline-width: medium;
487
- overflow: visible;
488
- overflow-wrap: normal;
489
- overflow-x: visible;
490
- overflow-y: visible;
491
- -webkit-padding-after: 0;
492
- padding-block-end: 0;
493
- -webkit-padding-before: 0;
494
- padding-block-start: 0;
495
- padding-bottom: 0;
496
- -webkit-padding-end: 0;
497
- padding-inline-end: 0;
498
- -webkit-padding-start: 0;
499
- padding-inline-start: 0;
500
- padding-left: 0;
501
- padding-right: 0;
502
- padding-top: 0;
503
- page-break-after: auto;
504
- page-break-before: auto;
505
- page-break-inside: auto;
506
- -webkit-perspective: none;
507
- perspective: none;
508
- -webkit-perspective-origin: 50% 50%;
509
- perspective-origin: 50% 50%;
510
- pointer-events: auto;
511
- position: static;
512
- quotes: initial;
513
- resize: none;
514
- right: auto;
515
- ruby-align: space-around;
516
- ruby-merge: separate;
517
- ruby-position: over;
518
- scroll-behavior: auto;
519
- -ms-scroll-snap-coordinate: none;
520
- scroll-snap-coordinate: none;
521
- -ms-scroll-snap-destination: 0 0;
522
- scroll-snap-destination: 0 0;
523
- -ms-scroll-snap-points-x: none;
524
- scroll-snap-points-x: none;
525
- -ms-scroll-snap-points-y: none;
526
- scroll-snap-points-y: none;
527
- -ms-scroll-snap-type: none;
528
- scroll-snap-type: none;
529
- shape-image-threshold: 0;
530
- shape-margin: 0;
531
- shape-outside: none;
532
- -moz-tab-size: 8;
533
- -o-tab-size: 8;
534
- tab-size: 8;
535
- table-layout: auto;
536
- text-align: initial;
537
- -moz-text-align-last: auto;
538
- text-align-last: auto;
539
- text-combine-upright: none;
540
- -webkit-text-decoration-color: currentcolor;
541
- text-decoration-color: currentcolor;
542
- -webkit-text-decoration-line: none;
543
- text-decoration-line: none;
544
- -webkit-text-decoration-style: solid;
545
- text-decoration-style: solid;
546
- -webkit-text-emphasis-color: currentcolor;
547
- text-emphasis-color: currentcolor;
548
- -webkit-text-emphasis-position: over;
549
- text-emphasis-position: over right;
550
- -webkit-text-emphasis-style: none;
551
- text-emphasis-style: none;
552
- text-indent: 0;
553
- text-justify: auto;
554
- text-orientation: mixed;
555
- text-overflow: clip;
556
- text-rendering: auto;
557
- text-shadow: none;
558
- text-transform: none;
559
- text-underline-position: auto;
560
- top: auto;
561
- -ms-touch-action: auto;
562
- touch-action: auto;
563
- -webkit-transform: none;
564
- transform: none;
565
- transform-box: border-box;
566
- -webkit-transform-origin: 50% 50% 0;
567
- transform-origin: 50% 50% 0;
568
- -webkit-transform-style: flat;
569
- transform-style: flat;
570
- -webkit-transition-delay: 0s;
571
- transition-delay: 0s;
572
- -webkit-transition-duration: 0s;
573
- transition-duration: 0s;
574
- -webkit-transition-property: all;
575
- transition-property: all;
576
- -webkit-transition-timing-function: ease;
577
- transition-timing-function: ease;
578
- vertical-align: baseline;
579
- visibility: visible;
580
- white-space: normal;
581
- widows: 2;
582
- width: auto;
583
- will-change: auto;
584
- word-break: normal;
585
- word-spacing: normal;
586
- word-wrap: normal;
587
- -webkit-writing-mode: horizontal-tb;
588
- -ms-writing-mode: lr-tb;
589
- writing-mode: horizontal-tb;
590
- z-index: auto;
591
- -webkit-appearance: none;
592
- -moz-appearance: none;
593
- -ms-appearance: none;
594
- appearance: none; }
595
-
596
- .brz .brz-h1,
597
- .brz .brz-h2,
598
- .brz .brz-h3,
599
- .brz .brz-h4,
600
- .brz .brz-h5,
601
- .brz .brz-h6 {
602
- font-family: inherit;
603
- font-weight: 700;
604
- line-height: 1.2;
605
- color: inherit; }
606
-
607
- .brz .brz-h1 {
608
- font-size: 55px;
609
- font-weight: 400; }
610
-
611
- .brz .brz-h2 {
612
- font-size: 40px; }
613
-
614
- .brz .brz-h3 {
615
- font-size: 32px; }
616
-
617
- .brz .brz-h4 {
618
- font-size: 26px; }
619
-
620
- .brz .brz-h5 {
621
- font-size: 19px; }
622
-
623
- .brz .brz-h6 {
624
- font-size: 14px; }
625
-
626
- .brz .brz-p {
627
- font-size: 14px;
628
- font-weight: normal; }
629
-
630
- .brz .brz-flex-xs-row-reverse {
631
- -webkit-box-orient: horizontal !important;
632
- -webkit-box-direction: reverse !important;
633
- -ms-flex-direction: row-reverse !important;
634
- flex-direction: row-reverse !important; }
635
-
636
- .brz .brz-flex-xs-column {
637
- -webkit-box-orient: vertical !important;
638
- -webkit-box-direction: normal !important;
639
- -ms-flex-direction: column !important;
640
- flex-direction: column !important; }
641
-
642
- .brz .brz-flex-xs-column-reverse {
643
- -webkit-box-orient: vertical !important;
644
- -webkit-box-direction: reverse !important;
645
- -ms-flex-direction: column-reverse !important;
646
- flex-direction: column-reverse !important; }
647
-
648
- .brz .brz-justify-content-xs-start {
649
- -webkit-box-pack: start !important;
650
- -ms-flex-pack: start !important;
651
- justify-content: flex-start !important; }
652
-
653
- .brz .brz-justify-content-xs-end {
654
- -webkit-box-pack: end !important;
655
- -ms-flex-pack: end !important;
656
- justify-content: flex-end !important; }
657
-
658
- .brz .brz-justify-content-xs-center {
659
- -webkit-box-pack: center !important;
660
- -ms-flex-pack: center !important;
661
- justify-content: center !important; }
662
-
663
- .brz .brz-justify-content-xs-between {
664
- -webkit-box-pack: justify !important;
665
- -ms-flex-pack: justify !important;
666
- justify-content: space-between !important; }
667
-
668
- .brz .brz-justify-content-xs-around {
669
- -ms-flex-pack: distribute !important;
670
- justify-content: space-around !important; }
671
-
672
- .brz .brz-align-items-xs-start {
673
- -webkit-box-align: start !important;
674
- -ms-flex-align: start !important;
675
- align-items: flex-start !important; }
676
-
677
- .brz .brz-align-items-xs-end {
678
- -webkit-box-align: end !important;
679
- -ms-flex-align: end !important;
680
- align-items: flex-end !important; }
681
-
682
- .brz .brz-align-items-xs-center {
683
- -webkit-box-align: center !important;
684
- -ms-flex-align: center !important;
685
- align-items: center !important; }
686
-
687
- .brz .brz-align-items-xs-baseline {
688
- -webkit-box-align: baseline !important;
689
- -ms-flex-align: baseline !important;
690
- align-items: baseline !important; }
691
-
692
- .brz .brz-align-items-xs-stretch {
693
- -webkit-box-align: stretch !important;
694
- -ms-flex-align: stretch !important;
695
- align-items: stretch !important; }
696
-
697
- .brz .brz-align-self-xs-start {
698
- -ms-flex-item-align: start !important;
699
- align-self: flex-start !important; }
700
-
701
- .brz .brz-align-self-xs-end {
702
- -ms-flex-item-align: end !important;
703
- align-self: flex-end !important; }
704
-
705
- .brz .brz-align-self-xs-center {
706
- -ms-flex-item-align: center !important;
707
- align-self: center !important; }
708
-
709
- .brz .brz-align-self-xs-baseline {
710
- -ms-flex-item-align: baseline !important;
711
- align-self: baseline !important; }
712
-
713
- .brz .brz-align-self-xs-stretch {
714
- -ms-flex-item-align: stretch !important;
715
- align-self: stretch !important; }
716
-
717
- .brz .brz-flex-xs-wrap {
718
- -ms-flex-wrap: wrap !important;
719
- flex-wrap: wrap !important; }
720
-
721
- .brz .brz-flex-xs-wrap-reverse {
722
- -ms-flex-wrap: wrap-reverse !important;
723
- flex-wrap: wrap-reverse !important; }
724
-
725
- @media (min-width: 480px) {
726
- .brz .brz-flex-ms-row-reverse {
727
- -webkit-box-orient: horizontal !important;
728
- -webkit-box-direction: reverse !important;
729
- -ms-flex-direction: row-reverse !important;
730
- flex-direction: row-reverse !important; }
731
- .brz .brz-flex-ms-column {
732
- -webkit-box-orient: vertical !important;
733
- -webkit-box-direction: normal !important;
734
- -ms-flex-direction: column !important;
735
- flex-direction: column !important; }
736
- .brz .brz-flex-ms-column-reverse {
737
- -webkit-box-orient: vertical !important;
738
- -webkit-box-direction: reverse !important;
739
- -ms-flex-direction: column-reverse !important;
740
- flex-direction: column-reverse !important; }
741
- .brz .brz-justify-content-ms-start {
742
- -webkit-box-pack: start !important;
743
- -ms-flex-pack: start !important;
744
- justify-content: flex-start !important; }
745
- .brz .brz-justify-content-ms-end {
746
- -webkit-box-pack: end !important;
747
- -ms-flex-pack: end !important;
748
- justify-content: flex-end !important; }
749
- .brz .brz-justify-content-ms-center {
750
- -webkit-box-pack: center !important;
751
- -ms-flex-pack: center !important;
752
- justify-content: center !important; }
753
- .brz .brz-justify-content-ms-between {
754
- -webkit-box-pack: justify !important;
755
- -ms-flex-pack: justify !important;
756
- justify-content: space-between !important; }
757
- .brz .brz-justify-content-ms-around {
758
- -ms-flex-pack: distribute !important;
759
- justify-content: space-around !important; }
760
- .brz .brz-align-items-ms-start {
761
- -webkit-box-align: start !important;
762
- -ms-flex-align: start !important;
763
- align-items: flex-start !important; }
764
- .brz .brz-align-items-ms-end {
765
- -webkit-box-align: end !important;
766
- -ms-flex-align: end !important;
767
- align-items: flex-end !important; }
768
- .brz .brz-align-items-ms-center {
769
- -webkit-box-align: center !important;
770
- -ms-flex-align: center !important;
771
- align-items: center !important; }
772
- .brz .brz-align-items-ms-baseline {
773
- -webkit-box-align: baseline !important;
774
- -ms-flex-align: baseline !important;
775
- align-items: baseline !important; }
776
- .brz .brz-align-items-ms-stretch {
777
- -webkit-box-align: stretch !important;
778
- -ms-flex-align: stretch !important;
779
- align-items: stretch !important; }
780
- .brz .brz-align-self-ms-start {
781
- -ms-flex-item-align: start !important;
782
- align-self: flex-start !important; }
783
- .brz .brz-align-self-ms-end {
784
- -ms-flex-item-align: end !important;
785
- align-self: flex-end !important; }
786
- .brz .brz-align-self-ms-center {
787
- -ms-flex-item-align: center !important;
788
- align-self: center !important; }
789
- .brz .brz-align-self-ms-baseline {
790
- -ms-flex-item-align: baseline !important;
791
- align-self: baseline !important; }
792
- .brz .brz-align-self-ms-stretch {
793
- -ms-flex-item-align: stretch !important;
794
- align-self: stretch !important; }
795
- .brz .brz-flex-ms-wrap {
796
- -ms-flex-wrap: wrap !important;
797
- flex-wrap: wrap !important; }
798
- .brz .brz-flex-ms-wrap-reverse {
799
- -ms-flex-wrap: wrap-reverse !important;
800
- flex-wrap: wrap-reverse !important; } }
801
-
802
- @media (min-width: 768px) {
803
- .brz .brz-flex-sm-row-reverse {
804
- -webkit-box-orient: horizontal !important;
805
- -webkit-box-direction: reverse !important;
806
- -ms-flex-direction: row-reverse !important;
807
- flex-direction: row-reverse !important; }
808
- .brz .brz-flex-sm-column {
809
- -webkit-box-orient: vertical !important;
810
- -webkit-box-direction: normal !important;
811
- -ms-flex-direction: column !important;
812
- flex-direction: column !important; }
813
- .brz .brz-flex-sm-column-reverse {
814
- -webkit-box-orient: vertical !important;
815
- -webkit-box-direction: reverse !important;
816
- -ms-flex-direction: column-reverse !important;
817
- flex-direction: column-reverse !important; }
818
- .brz .brz-justify-content-sm-start {
819
- -webkit-box-pack: start !important;
820
- -ms-flex-pack: start !important;
821
- justify-content: flex-start !important; }
822
- .brz .brz-justify-content-sm-end {
823
- -webkit-box-pack: end !important;
824
- -ms-flex-pack: end !important;
825
- justify-content: flex-end !important; }
826
- .brz .brz-justify-content-sm-center {
827
- -webkit-box-pack: center !important;
828
- -ms-flex-pack: center !important;
829
- justify-content: center !important; }
830
- .brz .brz-justify-content-sm-between {
831
- -webkit-box-pack: justify !important;
832
- -ms-flex-pack: justify !important;
833
- justify-content: space-between !important; }
834
- .brz .brz-justify-content-sm-around {
835
- -ms-flex-pack: distribute !important;
836
- justify-content: space-around !important; }
837
- .brz .brz-align-items-sm-start {
838
- -webkit-box-align: start !important;
839
- -ms-flex-align: start !important;
840
- align-items: flex-start !important; }
841
- .brz .brz-align-items-sm-end {
842
- -webkit-box-align: end !important;
843
- -ms-flex-align: end !important;
844
- align-items: flex-end !important; }
845
- .brz .brz-align-items-sm-center {
846
- -webkit-box-align: center !important;
847
- -ms-flex-align: center !important;
848
- align-items: center !important; }
849
- .brz .brz-align-items-sm-baseline {
850
- -webkit-box-align: baseline !important;
851
- -ms-flex-align: baseline !important;
852
- align-items: baseline !important; }
853
- .brz .brz-align-items-sm-stretch {
854
- -webkit-box-align: stretch !important;
855
- -ms-flex-align: stretch !important;
856
- align-items: stretch !important; }
857
- .brz .brz-align-self-sm-start {
858
- -ms-flex-item-align: start !important;
859
- align-self: flex-start !important; }
860
- .brz .brz-align-self-sm-end {
861
- -ms-flex-item-align: end !important;
862
- align-self: flex-end !important; }
863
- .brz .brz-align-self-sm-center {
864
- -ms-flex-item-align: center !important;
865
- align-self: center !important; }
866
- .brz .brz-align-self-sm-baseline {
867
- -ms-flex-item-align: baseline !important;
868
- align-self: baseline !important; }
869
- .brz .brz-align-self-sm-stretch {
870
- -ms-flex-item-align: stretch !important;
871
- align-self: stretch !important; }
872
- .brz .brz-flex-sm-wrap {
873
- -ms-flex-wrap: wrap !important;
874
- flex-wrap: wrap !important; }
875
- .brz .brz-flex-sm-wrap-reverse {
876
- -ms-flex-wrap: wrap-reverse !important;
877
- flex-wrap: wrap-reverse !important; } }
878
-
879
- @media (min-width: 992px) {
880
- .brz .brz-flex-md-row-reverse {
881
- -webkit-box-orient: horizontal !important;
882
- -webkit-box-direction: reverse !important;
883
- -ms-flex-direction: row-reverse !important;
884
- flex-direction: row-reverse !important; }
885
- .brz .brz-flex-md-column {
886
- -webkit-box-orient: vertical !important;
887
- -webkit-box-direction: normal !important;
888
- -ms-flex-direction: column !important;
889
- flex-direction: column !important; }
890
- .brz .brz-flex-md-column-reverse {
891
- -webkit-box-orient: vertical !important;
892
- -webkit-box-direction: reverse !important;
893
- -ms-flex-direction: column-reverse !important;
894
- flex-direction: column-reverse !important; }
895
- .brz .brz-justify-content-md-start {
896
- -webkit-box-pack: start !important;
897
- -ms-flex-pack: start !important;
898
- justify-content: flex-start !important; }
899
- .brz .brz-justify-content-md-end {
900
- -webkit-box-pack: end !important;
901
- -ms-flex-pack: end !important;
902
- justify-content: flex-end !important; }
903
- .brz .brz-justify-content-md-center {
904
- -webkit-box-pack: center !important;
905
- -ms-flex-pack: center !important;
906
- justify-content: center !important; }
907
- .brz .brz-justify-content-md-between {
908
- -webkit-box-pack: justify !important;
909
- -ms-flex-pack: justify !important;
910
- justify-content: space-between !important; }
911
- .brz .brz-justify-content-md-around {
912
- -ms-flex-pack: distribute !important;
913
- justify-content: space-around !important; }
914
- .brz .brz-align-items-md-start {
915
- -webkit-box-align: start !important;
916
- -ms-flex-align: start !important;
917
- align-items: flex-start !important; }
918
- .brz .brz-align-items-md-end {
919
- -webkit-box-align: end !important;
920
- -ms-flex-align: end !important;
921
- align-items: flex-end !important; }
922
- .brz .brz-align-items-md-center {
923
- -webkit-box-align: center !important;
924
- -ms-flex-align: center !important;
925
- align-items: center !important; }
926
- .brz .brz-align-items-md-baseline {
927
- -webkit-box-align: baseline !important;
928
- -ms-flex-align: baseline !important;
929
- align-items: baseline !important; }
930
- .brz .brz-align-items-md-stretch {
931
- -webkit-box-align: stretch !important;
932
- -ms-flex-align: stretch !important;
933
- align-items: stretch !important; }
934
- .brz .brz-align-self-md-start {
935
- -ms-flex-item-align: start !important;
936
- align-self: flex-start !important; }
937
- .brz .brz-align-self-md-end {
938
- -ms-flex-item-align: end !important;
939
- align-self: flex-end !important; }
940
- .brz .brz-align-self-md-center {
941
- -ms-flex-item-align: center !important;
942
- align-self: center !important; }
943
- .brz .brz-align-self-md-baseline {
944
- -ms-flex-item-align: baseline !important;
945
- align-self: baseline !important; }
946
- .brz .brz-align-self-md-stretch {
947
- -ms-flex-item-align: stretch !important;
948
- align-self: stretch !important; }
949
- .brz .brz-flex-md-wrap {
950
- -ms-flex-wrap: wrap !important;
951
- flex-wrap: wrap !important; }
952
- .brz .brz-flex-md-wrap-reverse {
953
- -ms-flex-wrap: wrap-reverse !important;
954
- flex-wrap: wrap-reverse !important; } }
955
-
956
- @media (min-width: 1200px) {
957
- .brz .brz-flex-lg-row-reverse {
958
- -webkit-box-orient: horizontal !important;
959
- -webkit-box-direction: reverse !important;
960
- -ms-flex-direction: row-reverse !important;
961
- flex-direction: row-reverse !important; }
962
- .brz .brz-flex-lg-column {
963
- -webkit-box-orient: vertical !important;
964
- -webkit-box-direction: normal !important;
965
- -ms-flex-direction: column !important;
966
- flex-direction: column !important; }
967
- .brz .brz-flex-lg-column-reverse {
968
- -webkit-box-orient: vertical !important;
969
- -webkit-box-direction: reverse !important;
970
- -ms-flex-direction: column-reverse !important;
971
- flex-direction: column-reverse !important; }
972
- .brz .brz-justify-content-lg-start {
973
- -webkit-box-pack: start !important;
974
- -ms-flex-pack: start !important;
975
- justify-content: flex-start !important; }
976
- .brz .brz-justify-content-lg-end {
977
- -webkit-box-pack: end !important;
978
- -ms-flex-pack: end !important;
979
- justify-content: flex-end !important; }
980
- .brz .brz-justify-content-lg-center {
981
- -webkit-box-pack: center !important;
982
- -ms-flex-pack: center !important;
983
- justify-content: center !important; }
984
- .brz .brz-justify-content-lg-between {
985
- -webkit-box-pack: justify !important;
986
- -ms-flex-pack: justify !important;
987
- justify-content: space-between !important; }
988
- .brz .brz-justify-content-lg-around {
989
- -ms-flex-pack: distribute !important;
990
- justify-content: space-around !important; }
991
- .brz .brz-align-items-lg-start {
992
- -webkit-box-align: start !important;
993
- -ms-flex-align: start !important;
994
- align-items: flex-start !important; }
995
- .brz .brz-align-items-lg-end {
996
- -webkit-box-align: end !important;
997
- -ms-flex-align: end !important;
998
- align-items: flex-end !important; }
999
- .brz .brz-align-items-lg-center {
1000
- -webkit-box-align: center !important;
1001
- -ms-flex-align: center !important;
1002
- align-items: center !important; }
1003
- .brz .brz-align-items-lg-baseline {
1004
- -webkit-box-align: baseline !important;
1005
- -ms-flex-align: baseline !important;
1006
- align-items: baseline !important; }
1007
- .brz .brz-align-items-lg-stretch {
1008
- -webkit-box-align: stretch !important;
1009
- -ms-flex-align: stretch !important;
1010
- align-items: stretch !important; }
1011
- .brz .brz-align-self-lg-start {
1012
- -ms-flex-item-align: start !important;
1013
- align-self: flex-start !important; }
1014
- .brz .brz-align-self-lg-end {
1015
- -ms-flex-item-align: end !important;
1016
- align-self: flex-end !important; }
1017
- .brz .brz-align-self-lg-center {
1018
- -ms-flex-item-align: center !important;
1019
- align-self: center !important; }
1020
- .brz .brz-align-self-lg-baseline {
1021
- -ms-flex-item-align: baseline !important;
1022
- align-self: baseline !important; }
1023
- .brz .brz-align-self-lg-stretch {
1024
- -ms-flex-item-align: stretch !important;
1025
- align-self: stretch !important; }
1026
- .brz .brz-flex-lg-wrap {
1027
- -ms-flex-wrap: wrap !important;
1028
- flex-wrap: wrap !important; }
1029
- .brz .brz-flex-lg-wrap-reverse {
1030
- -ms-flex-wrap: wrap-reverse !important;
1031
- flex-wrap: wrap-reverse !important; } }
1032
-
1033
- @media (min-width: 1400px) {
1034
- .brz .brz-flex-xl-row-reverse {
1035
- -webkit-box-orient: horizontal !important;
1036
- -webkit-box-direction: reverse !important;
1037
- -ms-flex-direction: row-reverse !important;
1038
- flex-direction: row-reverse !important; }
1039
- .brz .brz-flex-xl-column {
1040
- -webkit-box-orient: vertical !important;
1041
- -webkit-box-direction: normal !important;
1042
- -ms-flex-direction: column !important;
1043
- flex-direction: column !important; }
1044
- .brz .brz-flex-xl-column-reverse {
1045
- -webkit-box-orient: vertical !important;
1046
- -webkit-box-direction: reverse !important;
1047
- -ms-flex-direction: column-reverse !important;
1048
- flex-direction: column-reverse !important; }
1049
- .brz .brz-justify-content-xl-start {
1050
- -webkit-box-pack: start !important;
1051
- -ms-flex-pack: start !important;
1052
- justify-content: flex-start !important; }
1053
- .brz .brz-justify-content-xl-end {
1054
- -webkit-box-pack: end !important;
1055
- -ms-flex-pack: end !important;
1056
- justify-content: flex-end !important; }
1057
- .brz .brz-justify-content-xl-center {
1058
- -webkit-box-pack: center !important;
1059
- -ms-flex-pack: center !important;
1060
- justify-content: center !important; }
1061
- .brz .brz-justify-content-xl-between {
1062
- -webkit-box-pack: justify !important;
1063
- -ms-flex-pack: justify !important;
1064
- justify-content: space-between !important; }
1065
- .brz .brz-justify-content-xl-around {
1066
- -ms-flex-pack: distribute !important;
1067
- justify-content: space-around !important; }
1068
- .brz .brz-align-items-xl-start {
1069
- -webkit-box-align: start !important;
1070
- -ms-flex-align: start !important;
1071
- align-items: flex-start !important; }
1072
- .brz .brz-align-items-xl-end {
1073
- -webkit-box-align: end !important;
1074
- -ms-flex-align: end !important;
1075
- align-items: flex-end !important; }
1076
- .brz .brz-align-items-xl-center {
1077
- -webkit-box-align: center !important;
1078
- -ms-flex-align: center !important;
1079
- align-items: center !important; }
1080
- .brz .brz-align-items-xl-baseline {
1081
- -webkit-box-align: baseline !important;
1082
- -ms-flex-align: baseline !important;
1083
- align-items: baseline !important; }
1084
- .brz .brz-align-items-xl-stretch {
1085
- -webkit-box-align: stretch !important;
1086
- -ms-flex-align: stretch !important;
1087
- align-items: stretch !important; }
1088
- .brz .brz-align-self-xl-start {
1089
- -ms-flex-item-align: start !important;
1090
- align-self: flex-start !important; }
1091
- .brz .brz-align-self-xl-end {
1092
- -ms-flex-item-align: end !important;
1093
- align-self: flex-end !important; }
1094
- .brz .brz-align-self-xl-center {
1095
- -ms-flex-item-align: center !important;
1096
- align-self: center !important; }
1097
- .brz .brz-align-self-xl-baseline {
1098
- -ms-flex-item-align: baseline !important;
1099
- align-self: baseline !important; }
1100
- .brz .brz-align-self-xl-stretch {
1101
- -ms-flex-item-align: stretch !important;
1102
- align-self: stretch !important; }
1103
- .brz .brz-flex-xl-wrap {
1104
- -ms-flex-wrap: wrap !important;
1105
- flex-wrap: wrap !important; }
1106
- .brz .brz-flex-xl-wrap-reverse {
1107
- -ms-flex-wrap: wrap-reverse !important;
1108
- flex-wrap: wrap-reverse !important; } }
1109
-
1110
- .brz .brz-d-block {
1111
- display: block !important; }
1112
-
1113
- .brz .brz-d-inline-block {
1114
- display: inline-block !important; }
1115
-
1116
- .brz .brz-d-inline {
1117
- display: inline !important; }
1118
-
1119
- .brz .brz-d-none {
1120
- display: none !important; }
1121
-
1122
- .brz .brz-d-table {
1123
- width: 100%;
1124
- display: table;
1125
- position: relative; }
1126
-
1127
- .brz .brz-d-table-cell {
1128
- display: table-cell; }
1129
-
1130
- .brz .brz-blocked {
1131
- pointer-events: none; }
1132
-
1133
- .brz .brz-d-xs-flex {
1134
- display: -webkit-box;
1135
- display: -ms-flexbox;
1136
- display: flex;
1137
- min-width: 0; }
1138
-
1139
- .brz .brz-d-xs-inline-flex {
1140
- display: -webkit-inline-box;
1141
- display: -ms-inline-flexbox;
1142
- display: inline-flex; }
1143
-
1144
- @media (min-width: 480px) {
1145
- .brz .brz-d-ms-flex {
1146
- display: -webkit-box;
1147
- display: -ms-flexbox;
1148
- display: flex;
1149
- min-width: 0; }
1150
- .brz .brz-d-ms-inline-flex {
1151
- display: -webkit-inline-box;
1152
- display: -ms-inline-flexbox;
1153
- display: inline-flex; } }
1154
-
1155
- @media (min-width: 768px) {
1156
- .brz .brz-d-sm-flex {
1157
- display: -webkit-box;
1158
- display: -ms-flexbox;
1159
- display: flex;
1160
- min-width: 0; }
1161
- .brz .brz-d-sm-inline-flex {
1162
- display: -webkit-inline-box;
1163
- display: -ms-inline-flexbox;
1164
- display: inline-flex; } }
1165
-
1166
- @media (min-width: 992px) {
1167
- .brz .brz-d-md-flex {
1168
- display: -webkit-box;
1169
- display: -ms-flexbox;
1170
- display: flex;
1171
- min-width: 0; }
1172
- .brz .brz-d-md-inline-flex {
1173
- display: -webkit-inline-box;
1174
- display: -ms-inline-flexbox;
1175
- display: inline-flex; } }
1176
-
1177
- @media (min-width: 1200px) {
1178
- .brz .brz-d-lg-flex {
1179
- display: -webkit-box;
1180
- display: -ms-flexbox;
1181
- display: flex;
1182
- min-width: 0; }
1183
- .brz .brz-d-lg-inline-flex {
1184
- display: -webkit-inline-box;
1185
- display: -ms-inline-flexbox;
1186
- display: inline-flex; } }
1187
-
1188
- @media (min-width: 1400px) {
1189
- .brz .brz-d-xl-flex {
1190
- display: -webkit-box;
1191
- display: -ms-flexbox;
1192
- display: flex;
1193
- min-width: 0; }
1194
- .brz .brz-d-xl-inline-flex {
1195
- display: -webkit-inline-box;
1196
- display: -ms-inline-flexbox;
1197
- display: inline-flex; } }
1198
-
1199
- .brz .brz-p-relative {
1200
- position: relative !important; }
1201
-
1202
- .brz .brz-p-absolute {
1203
- position: absolute !important; }
1204
-
1205
- .brz .brz-p-fixed {
1206
- position: fixed !important; }
1207
-
1208
- .brz .brz-invisible {
1209
- visibility: hidden !important; }
1210
-
1211
- .brz .brz-visible {
1212
- visibility: visible !important; }
1213
-
1214
- .brz .brz-hidden {
1215
- display: none !important; }
1216
-
1217
- .brz .brz-visible-print-block {
1218
- display: none !important; }
1219
- @media print {
1220
- .brz .brz-visible-print-block {
1221
- display: block !important; } }
1222
-
1223
- .brz .brz-visible-print-inline {
1224
- display: none !important; }
1225
- @media print {
1226
- .brz .brz-visible-print-inline {
1227
- display: inline !important; } }
1228
-
1229
- .brz .brz-visible-print-inline-block {
1230
- display: none !important; }
1231
- @media print {
1232
- .brz .brz-visible-print-inline-block {
1233
- display: inline-block !important; } }
1234
-
1235
- @media print {
1236
- .brz .brz-hidden-print {
1237
- display: none !important; } }
1238
-
1239
- .brz .brz-ow-hidden {
1240
- overflow: hidden !important; }
1241
-
1242
- .brz .brz-ow-visible {
1243
- overflow: visible !important; }
1244
-
1245
- .brz .brz-pointer-events-none {
1246
- pointer-events: none !important; }
1247
-
1248
- .brz .brz-pointer-events-auto {
1249
- pointer-events: auto !important; }
1250
-
1251
- .brz .brz-fw-100 {
1252
- font-weight: 100 !important; }
1253
-
1254
- .brz .brz-fw-200 {
1255
- font-weight: 200 !important; }
1256
-
1257
- .brz .brz-fw-300 {
1258
- font-weight: 300 !important; }
1259
-
1260
- .brz .brz-fw-400 {
1261
- font-weight: 400 !important; }
1262
-
1263
- .brz .brz-fw-500 {
1264
- font-weight: 500 !important; }
1265
-
1266
- .brz .brz-fw-600 {
1267
- font-weight: 600 !important; }
1268
-
1269
- .brz .brz-fw-700 {
1270
- font-weight: 700 !important; }
1271
-
1272
- .brz .brz-fw-800 {
1273
- font-weight: 800 !important; }
1274
-
1275
- .brz .brz-fw-900 {
1276
- font-weight: 900 !important; }
1277
-
1278
- .brz .brz-typography-inherit {
1279
- font-family: inherit;
1280
- font-size: inherit;
1281
- font-weight: inherit;
1282
- line-height: inherit; }
1283
-
1284
- .brz .brz--required {
1285
- color: #ff0e0e;
1286
- padding-left: 5px; }
1287
-
1288
- .brz .brz-animated {
1289
- opacity: 0;
1290
- -webkit-animation-fill-mode: backwards;
1291
- animation-fill-mode: backwards; }
1292
- .brz .brz-animated:not(.brz-animate) {
1293
- -webkit-animation-name: none;
1294
- animation-name: none; }
1295
- .brz .brz-animated.brz-animate-opacity {
1296
- opacity: 1; }
1297
-
1298
- .brz .brz-icon-svg {
1299
- display: inline-block;
1300
- width: 1em;
1301
- height: 1em;
1302
- stroke: none;
1303
- max-width: none;
1304
- position: relative;
1305
- fill: currentColor;
1306
- color: currentColor; }
1307
- .brz .brz-icon-svg use {
1308
- /* change 'inherit' to a color value if you want to add a secondary color to Nucleo icons */
1309
- fill: inherit; }
1310
- .brz .brz-icon-svg path {
1311
- -webkit-transition: none;
1312
- transition: none; }
1313
- .brz .brz-icon-svg.grid-16 {
1314
- height: 16px;
1315
- width: 16px; }
1316
- .brz .brz-icon-svg.grid-24 {
1317
- height: 24px;
1318
- width: 24px; }
1319
- .brz .brz-icon-svg.glyph {
1320
- fill: currentColor;
1321
- stroke: none; }
1322
- .brz .brz-icon-svg.outline {
1323
- stroke: currentColor;
1324
- fill: none; }
1325
- .brz .brz-icon-svg.outline.stroke-2 {
1326
- stroke-width: 2px; }
1327
-
1328
- .brz .brz-element__pro {
1329
- display: -webkit-box;
1330
- display: -ms-flexbox;
1331
- display: flex;
1332
- width: 100%;
1333
- -webkit-box-align: center;
1334
- -ms-flex-align: center;
1335
- align-items: center;
1336
- -webkit-box-pack: center;
1337
- -ms-flex-pack: center;
1338
- justify-content: center;
1339
- -webkit-box-orient: vertical;
1340
- -webkit-box-direction: normal;
1341
- -ms-flex-direction: column;
1342
- flex-direction: column;
1343
- background-color: rgba(237, 237, 237, 0.92);
1344
- color: #292E37;
1345
- font-family: "nunito", "Open Sans", Arial, sans-serif;
1346
- line-height: 1.4;
1347
- font-size: 13px;
1348
- font-weight: 600;
1349
- border: 3px solid #d62c64;
1350
- padding: 30px 20px; }
1351
- .brz .brz-element__pro--absolute {
1352
- position: absolute;
1353
- top: 0;
1354
- left: 0;
1355
- width: 100%;
1356
- height: 100%;
1357
- z-index: 2; }
1358
- .brz .brz-element__pro-title.brz-p {
1359
- font-size: 13px;
1360
- font-weight: 600;
1361
- margin: 0 0 12px; }
1362
- .brz .brz-element__pro-link.brz-a {
1363
- color: #d62c64 !important; }
1364
- .brz .brz-element__pro-link.brz-a:hover {
1365
- color: #d62c64 !important; }
1366
- .brz .brz-element__pro-lock {
1367
- width: 90px;
1368
- height: 90px;
1369
- display: -webkit-box;
1370
- display: -ms-flexbox;
1371
- display: flex;
1372
- -webkit-box-align: center;
1373
- -ms-flex-align: center;
1374
- align-items: center;
1375
- -webkit-box-pack: center;
1376
- -ms-flex-pack: center;
1377
- justify-content: center;
1378
- font-size: 20px;
1379
- background-color: #d62c64;
1380
- color: #fff;
1381
- border-radius: 90px;
1382
- margin-bottom: 12px; }
1383
- .brz .brz-element__pro-removed.brz-p {
1384
- margin-bottom: 12px;
1385
- font-weight: 600; }
1386
-
1387
- .brz .brz-section {
1388
- position: relative;
1389
- margin: 0;
1390
- padding: 0;
1391
- overflow: visible; }
1392
- .brz .brz-section__content {
1393
- position: relative;
1394
- -webkit-box-orient: vertical;
1395
- -webkit-box-direction: normal;
1396
- -ms-flex-direction: column;
1397
- flex-direction: column;
1398
- -webkit-box-align: center;
1399
- -ms-flex-align: center;
1400
- align-items: center;
1401
- width: 100%; }
1402
- .brz .brz-section__content > .brz-bg {
1403
- -ms-flex-wrap: wrap;
1404
- flex-wrap: wrap;
1405
- -webkit-box-align: inherit;
1406
- -ms-flex-align: inherit;
1407
- align-items: inherit;
1408
- width: 100%;
1409
- height: 100%; }
1410
- .brz .brz-section__content > .brz-bg > .brz-bg-content {
1411
- height: 100%;
1412
- -webkit-box-orient: vertical;
1413
- -webkit-box-direction: normal;
1414
- -ms-flex-direction: column;
1415
- flex-direction: column;
1416
- -ms-flex-wrap: wrap;
1417
- flex-wrap: wrap;
1418
- -webkit-box-pack: justify;
1419
- -ms-flex-pack: justify;
1420
- justify-content: space-between; }
1421
- .brz .brz-section__content .brz-container__wrap {
1422
- -webkit-box-flex: 1;
1423
- -ms-flex: 1;
1424
- flex: 1; }
1425
- .brz .brz-section__content > .brz-container {
1426
- position: relative;
1427
- -webkit-box-flex: 1;
1428
- -ms-flex: 1;
1429
- flex: 1; }
1430
- .brz .brz-section > .brz-slick-slider > .slick-list > .slick-track > .slick-slide {
1431
- -webkit-box-flex: 1;
1432
- -ms-flex: 1;
1433
- flex: 1; }
1434
- .brz .brz-section > .brz-slick-slider .brz-section__content {
1435
- height: 100%; }
1436
- .brz .brz-section > .brz-slick-slider:not(.slick-initialized) {
1437
- overflow: hidden; }
1438
- .brz .brz-section > .brz-slick-slider:not(.slick-initialized) > .brz-section__content:not(:first-child) {
1439
- display: none; }
1440
-
1441
- .brz .brz-section__header > .brz-section__menu-item {
1442
- position: relative;
1443
- z-index: 1055;
1444
- display: -webkit-box;
1445
- display: -ms-flexbox;
1446
- display: flex;
1447
- -webkit-box-orient: vertical;
1448
- -webkit-box-direction: normal;
1449
- -ms-flex-direction: column;
1450
- flex-direction: column;
1451
- -webkit-box-align: center;
1452
- -ms-flex-align: center;
1453
- align-items: center; }
1454
-
1455
- .brz .brz-section__header--animated {
1456
- position: fixed;
1457
- z-index: 1056;
1458
- top: 0;
1459
- left: 0;
1460
- width: 100%;
1461
- -webkit-transform: translate3d(0, -100%, 0);
1462
- transform: translate3d(0, -100%, 0);
1463
- opacity: 0;
1464
- -webkit-transition: none;
1465
- transition: none; }
1466
- .brz .brz-section__header--animated-opened {
1467
- -webkit-transform: translate3d(0, 0, 0);
1468
- transform: translate3d(0, 0, 0);
1469
- opacity: 1;
1470
- -webkit-transition: opacity 0.2s linear, -webkit-transform 0.2s linear;
1471
- transition: opacity 0.2s linear, -webkit-transform 0.2s linear;
1472
- transition: transform 0.2s linear, opacity 0.2s linear;
1473
- transition: transform 0.2s linear, opacity 0.2s linear, -webkit-transform 0.2s linear; }
1474
- .brz .brz-section__header--animated-closed {
1475
- -webkit-transition: opacity 0.2s linear, -webkit-transform 0.2s linear;
1476
- transition: opacity 0.2s linear, -webkit-transform 0.2s linear;
1477
- transition: transform 0.2s linear, opacity 0.2s linear;
1478
- transition: transform 0.2s linear, opacity 0.2s linear, -webkit-transform 0.2s linear;
1479
- pointer-events: none; }
1480
-
1481
- .brz .brz-section__header--fixed {
1482
- position: relative;
1483
- z-index: 1055; }
1484
- .brz .brz-section__header--fixed-opened {
1485
- position: fixed;
1486
- z-index: 1056;
1487
- top: 0;
1488
- left: 0;
1489
- width: 100%; }
1490
-
1491
- .brz .brz-section__header--fixed > .brz-section__menu-item, .brz .brz-section__header-sticky-item {
1492
- position: relative;
1493
- display: -webkit-box;
1494
- display: -ms-flexbox;
1495
- display: flex;
1496
- -webkit-box-orient: vertical;
1497
- -webkit-box-direction: normal;
1498
- -ms-flex-direction: column;
1499
- flex-direction: column;
1500
- -webkit-box-align: center;
1501
- -ms-flex-align: center;
1502
- align-items: center; }
1503
-
1504
- .brz .brz-section__menu-item > .brz-bg:after,
1505
- .brz .brz-section__header-sticky-item > .brz-bg:after,
1506
- .brz .brz-footer > .brz-bg:after {
1507
- content: "";
1508
- display: none;
1509
- position: absolute;
1510
- top: 0;
1511
- left: 0;
1512
- right: 0;
1513
- bottom: 0; }
1514
-
1515
- .brz .brz-footer {
1516
- position: relative;
1517
- -webkit-box-orient: vertical;
1518
- -webkit-box-direction: normal;
1519
- -ms-flex-direction: column;
1520
- flex-direction: column;
1521
- -webkit-box-align: center;
1522
- -ms-flex-align: center;
1523
- align-items: center; }
1524
- .brz .brz-footer > .brz-container {
1525
- position: relative;
1526
- -webkit-box-pack: center;
1527
- -ms-flex-pack: center;
1528
- justify-content: center;
1529
- -webkit-box-flex: 1;
1530
- -ms-flex: 1;
1531
- flex: 1; }
1532
-
1533
- .brz .brz-popup__inner {
1534
- height: 100%; }
1535
-
1536
- .brz .brz-footer {
1537
- position: relative; }
1538
- .brz .brz-footer__bg {
1539
- display: -webkit-box;
1540
- display: -ms-flexbox;
1541
- display: flex;
1542
- -ms-flex-wrap: wrap;
1543
- flex-wrap: wrap;
1544
- -webkit-box-orient: vertical;
1545
- -webkit-box-direction: normal;
1546
- -ms-flex-direction: column;
1547
- flex-direction: column; }
1548
- .brz .brz-footer__bg > .brz-bg-content {
1549
- display: -webkit-box;
1550
- display: -ms-flexbox;
1551
- display: flex;
1552
- -webkit-box-orient: vertical;
1553
- -webkit-box-direction: normal;
1554
- -ms-flex-direction: column;
1555
- flex-direction: column;
1556
- -webkit-box-align: center;
1557
- -ms-flex-align: center;
1558
- align-items: center;
1559
- -webkit-box-pack: justify;
1560
- -ms-flex-pack: justify;
1561
- justify-content: space-between;
1562
- height: 100%;
1563
- width: 100%; }
1564
- .brz .brz-footer .brz-container__wrap {
1565
- -webkit-box-flex: 1;
1566
- -ms-flex: 1;
1567
- flex: 1; }
1568
-
1569
- .brz .brz-story {
1570
- background-color: #222;
1571
- min-height: 100vh; }
1572
- .brz .brz-story .brz-container {
1573
- font-size: 436px; }
1574
- .brz .brz-story .brz-ed-box__resizer {
1575
- font-size: initial; }
1576
- .brz .brz-story > .brz-slick-slider .brz-slick-slider__arrow {
1577
- padding: 20px;
1578
- border-radius: 50%;
1579
- position: absolute;
1580
- background-color: #c9c9c9;
1581
- top: 50%;
1582
- opacity: 0.4;
1583
- z-index: 3;
1584
- -webkit-transition: all 0.2s;
1585
- transition: all 0.2s; }
1586
- .brz .brz-story > .brz-slick-slider .brz-slick-slider__arrow .brz-icon-svg {
1587
- width: 20px;
1588
- height: 20px; }
1589
- .brz .brz-story > .brz-slick-slider .brz-slick-slider__arrow-prev {
1590
- left: 20px; }
1591
- .brz .brz-story > .brz-slick-slider .brz-slick-slider__arrow-next,
1592
- .brz .brz-story > .brz-slick-slider .brz-slick-slider__arrow-replay {
1593
- right: 20px; }
1594
- .brz .brz-story > .brz-slick-slider .brz-slick-slider__arrow-next.slick-disabled,
1595
- .brz .brz-story > .brz-slick-slider .brz-slick-slider__arrow-prev.slick-disabled,
1596
- .brz .brz-story > .brz-slick-slider .brz-slick-slider__arrow-replay {
1597
- display: none !important;
1598
- opacity: 0; }
1599
- .brz .brz-story > .brz-slick-slider .brz-slick-slider__arrow-replay.slick-disabled {
1600
- display: block !important;
1601
- opacity: 0.4; }
1602
- .brz .brz-story > .brz-slick-slider .brz-slick-slider__arrow:hover {
1603
- opacity: 1; }
1604
- .brz .brz-story > .brz-slick-slider > .slick-list > .slick-track > .slick-slide {
1605
- -webkit-transition: all 0.2s;
1606
- transition: all 0.2s;
1607
- -webkit-transform: scale(0.9);
1608
- transform: scale(0.9);
1609
- opacity: 0.4;
1610
- overflow: hidden;
1611
- -webkit-box-flex: 1;
1612
- -ms-flex: 1;
1613
- flex: 1; }
1614
- .brz .brz-story > .brz-slick-slider > .slick-list > .slick-track > .slick-slide .brz-slick-slider__inner-arrow {
1615
- display: none; }
1616
- .brz .brz-story > .brz-slick-slider > .slick-list > .slick-track > .slick-slide > div:not(.brz-container) {
1617
- font-size: 0; }
1618
- .brz .brz-story > .brz-slick-slider > .slick-list > .slick-track > .slick-current {
1619
- opacity: 1;
1620
- -webkit-transition: all 0.2s;
1621
- transition: all 0.2s;
1622
- -webkit-transform: scale(1);
1623
- transform: scale(1); }
1624
-
1625
- .brz:not(.brz-ed) .brz-story .brz-container {
1626
- font-size: 37.5vh; }
1627
-
1628
- .brz:not(.brz-ed) .brz-story .brz-wrapper {
1629
- pointer-events: none; }
1630
-
1631
- .brz:not(.brz-ed) .brz-story a.brz-a,
1632
- .brz:not(.brz-ed) .brz-story .brz-map,
1633
- .brz:not(.brz-ed) .brz-story .brz-video,
1634
- .brz:not(.brz-ed) .brz-story .brz-story-linked,
1635
- .brz:not(.brz-ed) .brz-story .brz-forms2,
1636
- .brz:not(.brz-ed) .brz-story .brz-embed-code,
1637
- .brz:not(.brz-ed) .brz-story .brz-rich-text a {
1638
- pointer-events: initial; }
1639
-
1640
- .brz:not(.brz-ed) .brz-story > .brz-slick-slider:not(.slick-initialized) {
1641
- display: -webkit-box;
1642
- display: -ms-flexbox;
1643
- display: flex;
1644
- -ms-flex-wrap: wrap;
1645
- flex-wrap: wrap;
1646
- -webkit-box-align: center;
1647
- -ms-flex-align: center;
1648
- align-items: center;
1649
- -webkit-box-pack: center;
1650
- -ms-flex-pack: center;
1651
- justify-content: center; }
1652
- .brz:not(.brz-ed) .brz-story > .brz-slick-slider:not(.slick-initialized) > .brz-section__content {
1653
- height: 75vh;
1654
- max-width: 37.5vh;
1655
- min-width: 320px;
1656
- min-height: 533px;
1657
- max-height: 100%;
1658
- -webkit-transform: translateZ(0);
1659
- transform: translateZ(0); }
1660
-
1661
- .brz:not(.brz-ed) .brz-story > .brz-slick-slider {
1662
- padding-top: 80px; }
1663
-
1664
- .brz:not(.brz-ed) .brz-story > .slick-slider > .slick-list > .slick-track > .slick-slide {
1665
- height: 75vh;
1666
- max-width: 37.5vh;
1667
- min-width: 320px;
1668
- min-height: 533px;
1669
- max-height: 100%; }
1670
-
1671
- .brz:not(.brz-ed) .brz-story > .slick-slider > .brz-slick-slider__dots {
1672
- display: -webkit-box;
1673
- display: -ms-flexbox;
1674
- display: flex;
1675
- width: 100%;
1676
- max-width: 740px;
1677
- bottom: -70px;
1678
- margin: 15px auto 0; }
1679
- .brz:not(.brz-ed) .brz-story > .slick-slider > .brz-slick-slider__dots > li {
1680
- padding: 15px 0;
1681
- display: block;
1682
- width: 30%;
1683
- cursor: pointer;
1684
- margin-right: 4px;
1685
- float: left;
1686
- color: rgba(255, 255, 255, 0.4); }
1687
- .brz:not(.brz-ed) .brz-story > .slick-slider > .brz-slick-slider__dots > li > button {
1688
- width: 100%;
1689
- height: 4px;
1690
- display: block;
1691
- border-radius: 100px;
1692
- -webkit-transition: all 0.2s;
1693
- transition: all 0.2s; }
1694
- .brz:not(.brz-ed) .brz-story > .slick-slider > .brz-slick-slider__dots > li.slick-active {
1695
- position: relative;
1696
- overflow: hidden; }
1697
- .brz:not(.brz-ed) .brz-story > .slick-slider > .brz-slick-slider__dots > li.slick-active::after {
1698
- content: "";
1699
- position: absolute;
1700
- top: 15px;
1701
- left: 0;
1702
- width: 0%;
1703
- height: 4px;
1704
- background-color: white;
1705
- border-radius: 100px; }
1706
- .brz:not(.brz-ed) .brz-story > .slick-slider > .brz-slick-slider__dots > li.slick-active > button {
1707
- background-color: #fff; }
1708
- .brz:not(.brz-ed) .brz-story > .slick-slider > .brz-slick-slider__dots > li:last-child {
1709
- margin-right: 0; }
1710
-
1711
- @media (max-width: 767px) {
1712
- .brz:not(.brz-ed) .brz-story {
1713
- min-height: auto; }
1714
- .brz:not(.brz-ed) .brz-story .brz-container {
1715
- font-size: 100vw; }
1716
- .brz:not(.brz-ed) .brz-story > .brz-slick-slider:not(.slick-initialized) {
1717
- display: -webkit-box;
1718
- display: -ms-flexbox;
1719
- display: flex;
1720
- -ms-flex-wrap: wrap;
1721
- flex-wrap: wrap;
1722
- -webkit-box-align: center;
1723
- -ms-flex-align: center;
1724
- align-items: center;
1725
- -webkit-box-pack: center;
1726
- -ms-flex-pack: center;
1727
- justify-content: center; }
1728
- .brz:not(.brz-ed) .brz-story > .brz-slick-slider:not(.slick-initialized) > .brz-section__content {
1729
- height: 100vh;
1730
- min-width: 320px;
1731
- min-height: 533px;
1732
- max-width: 100vw;
1733
- max-height: 100%; }
1734
- .brz:not(.brz-ed) .brz-story > .brz-slick-slider {
1735
- padding-top: 0; }
1736
- .brz:not(.brz-ed) .brz-story .slick-slider .brz-slick-slider__arrow {
1737
- display: none !important; }
1738
- .brz:not(.brz-ed) .brz-story .slick-slider > .slick-list > .slick-track > .slick-slide {
1739
- height: 100vh;
1740
- min-width: 320px;
1741
- min-height: 533px;
1742
- max-width: 100vw;
1743
- max-height: 100%;
1744
- opacity: 1;
1745
- display: -webkit-box;
1746
- display: -ms-flexbox;
1747
- display: flex;
1748
- -webkit-box-pack: center;
1749
- -ms-flex-pack: center;
1750
- justify-content: center;
1751
- -webkit-transform: translateZ(0);
1752
- transform: translateZ(0); }
1753
- .brz:not(.brz-ed) .brz-story .slick-slider > .slick-list > .slick-track > .slick-slide > div {
1754
- width: 100%; }
1755
- .brz:not(.brz-ed) .brz-story .slick-slider > .slick-list > .slick-track > .slick-slide .brz-slick-slider__inner-arrow {
1756
- background-color: transparent;
1757
- height: 100%;
1758
- max-height: 100vh;
1759
- top: 0;
1760
- width: 50%;
1761
- display: block;
1762
- position: absolute; }
1763
- .brz:not(.brz-ed) .brz-story .slick-slider > .slick-list > .slick-track > .slick-slide .brz-slick-slider__inner-arrow-next {
1764
- right: 0; }
1765
- .brz:not(.brz-ed) .brz-story .slick-slider > .slick-list > .slick-track > .slick-slide .brz-slick-slider__inner-arrow-prev {
1766
- left: 0; }
1767
- .brz:not(.brz-ed) .brz-story .slick-slider > .brz-slick-slider__dots {
1768
- margin-top: 0;
1769
- position: absolute;
1770
- padding: 0 15px;
1771
- -webkit-box-pack: center;
1772
- -ms-flex-pack: center;
1773
- justify-content: center;
1774
- top: 0;
1775
- height: 30px; } }
1776
-
1777
- @media (max-height: 711px) and (min-width: 767px) {
1778
- .brz:not(.brz-ed) .brz-story .brz-container {
1779
- font-size: 320px; } }
1780
-
1781
- .brz _:-ms-lang(x)::-ms-backdrop,
1782
- .brz .brz-container,
1783
- .brz .brz-section__content .brz-container__wrap {
1784
- -ms-flex: auto !important;
1785
- flex: auto !important; }
1786
-
1787
- @-webkit-keyframes storyProgress {
1788
- to {
1789
- width: 100%; } }
1790
-
1791
- @keyframes storyProgress {
1792
- to {
1793
- width: 100%; } }
1794
-
1795
- .brz .brz-container,
1796
- .brz .brz-container__wrap {
1797
- width: 100%; }
1798
-
1799
- .brz .brz-container {
1800
- display: -webkit-box;
1801
- display: -ms-flexbox;
1802
- display: flex;
1803
- -webkit-box-orient: vertical;
1804
- -webkit-box-direction: normal;
1805
- -ms-flex-direction: column;
1806
- flex-direction: column;
1807
- width: var(--brz-section-container-width, 100%); }
1808
-
1809
- .brz .brz-container__wrap {
1810
- display: -webkit-box;
1811
- display: -ms-flexbox;
1812
- display: flex;
1813
- -ms-flex-wrap: wrap;
1814
- flex-wrap: wrap; }
1815
-
1816
- .brz .brz-row {
1817
- position: relative;
1818
- display: -webkit-box;
1819
- display: -ms-flexbox;
1820
- display: flex;
1821
- -ms-flex-wrap: wrap;
1822
- flex-wrap: wrap;
1823
- text-align: left;
1824
- -ms-flex-preferred-size: 100%;
1825
- flex-basis: 100%;
1826
- max-width: 100%;
1827
- width: 100%; }
1828
- .brz .brz-row__container {
1829
- position: relative;
1830
- text-align: center;
1831
- -webkit-box-pack: center;
1832
- -ms-flex-pack: center;
1833
- justify-content: center; }
1834
- .brz .brz-row__container .brz-link-container {
1835
- position: absolute;
1836
- height: 100%;
1837
- width: 100%;
1838
- top: 0;
1839
- left: 0; }
1840
- .brz .brz-row__container > .brz-bg {
1841
- left: auto; }
1842
- .brz .brz-row__container [data-scroll-motion] {
1843
- width: 100%;
1844
- max-width: 100%; }
1845
-
1846
- .brz .brz-columns {
1847
- display: -webkit-box;
1848
- display: -ms-flexbox;
1849
- display: flex;
1850
- position: relative;
1851
- -webkit-box-orient: vertical;
1852
- -webkit-box-direction: normal;
1853
- -ms-flex-direction: column;
1854
- flex-direction: column;
1855
- min-height: 1px;
1856
- -ms-flex-preferred-size: 100%;
1857
- flex-basis: 100%;
1858
- will-change: flex, max-width; }
1859
- .brz .brz-columns .brz-container-link {
1860
- position: absolute;
1861
- height: 100%;
1862
- width: 100%;
1863
- top: 0;
1864
- left: 0; }
1865
- .brz .brz-columns > [data-scroll-motion] > .brz-bg,
1866
- .brz .brz-columns > .brz-bg {
1867
- width: auto;
1868
- height: auto;
1869
- top: 0;
1870
- right: 0;
1871
- bottom: 0;
1872
- left: 0; }
1873
-
1874
- .brz .brz-column__items {
1875
- -webkit-box-orient: vertical;
1876
- -webkit-box-direction: normal;
1877
- -ms-flex-direction: column;
1878
- flex-direction: column;
1879
- -webkit-box-flex: 0;
1880
- -ms-flex: 0 1 auto;
1881
- flex: 0 1 auto; }
1882
- .brz .brz-column__items > div:not(.brz-ed-sortable--empty) {
1883
- -webkit-box-flex: 0;
1884
- -ms-flex: 0 1 auto;
1885
- flex: 0 1 auto;
1886
- min-width: 0; }
1887
-
1888
- .brz .brz-wrapper {
1889
- -ms-flex-wrap: wrap;
1890
- flex-wrap: wrap;
1891
- min-width: 0;
1892
- min-height: 1px; }
1893
- .brz .brz-wrapper > div[data-scroll-motion] {
1894
- -webkit-box-flex: 1;
1895
- -ms-flex: 1 0 100%;
1896
- flex: 1 0 100%;
1897
- min-width: 0;
1898
- display: inherit;
1899
- -webkit-box-pack: inherit;
1900
- -ms-flex-pack: inherit;
1901
- justify-content: inherit; }
1902
-
1903
- .brz .brz-wrapper-clone > div {
1904
- -webkit-box-flex: 1;
1905
- -ms-flex: 1 0 100%;
1906
- flex: 1 0 100%;
1907
- min-width: 0;
1908
- -webkit-box-align: center;
1909
- -ms-flex-align: center;
1910
- align-items: center; }
1911
-
1912
- .brz .brz-wrapper-clone__item {
1913
- position: relative;
1914
- min-height: 1px;
1915
- -ms-flex-preferred-size: auto;
1916
- flex-basis: auto; }
1917
-
1918
- .brz .brz-bg {
1919
- overflow: hidden; }
1920
-
1921
- .brz .brz-bg,
1922
- .brz .brz-bg-color,
1923
- .brz .brz-bg-image,
1924
- .brz .brz-bg-video,
1925
- .brz .brz-bg-map {
1926
- position: absolute;
1927
- top: 0;
1928
- left: 0;
1929
- width: 100%;
1930
- height: 100%; }
1931
-
1932
- .brz .brz-bg-image {
1933
- background-repeat: no-repeat;
1934
- background-size: cover; }
1935
-
1936
- .brz .brz-bg-shape {
1937
- width: 100%;
1938
- height: 100px;
1939
- position: absolute;
1940
- left: 0;
1941
- right: 0;
1942
- background-repeat: no-repeat;
1943
- pointer-events: none; }
1944
- .brz .brz-bg-shape__top {
1945
- top: 0; }
1946
- .brz .brz-bg-shape__top::after {
1947
- content: "";
1948
- position: absolute;
1949
- width: 100%;
1950
- height: 100%;
1951
- top: 0; }
1952
- .brz .brz-bg-shape__bottom {
1953
- bottom: 0;
1954
- -webkit-transform: rotateX(180deg);
1955
- transform: rotateX(180deg); }
1956
- .brz .brz-bg-shape__bottom::after {
1957
- content: "";
1958
- position: absolute;
1959
- width: 100%;
1960
- height: 100%;
1961
- top: 0; }
1962
-
1963
- .brz .brz-bg-image-parallax {
1964
- width: 100%;
1965
- background-size: cover !important;
1966
- background-position: 50% 50%;
1967
- left: 0;
1968
- top: -50vh;
1969
- height: 100vh;
1970
- -webkit-transition: all 0s ease !important;
1971
- transition: all 0s ease !important;
1972
- -webkit-transform-origin: center center 0;
1973
- transform-origin: center center 0;
1974
- -webkit-transform-style: preserve-3d;
1975
- transform-style: preserve-3d; }
1976
-
1977
- .brz .brz-iframe.brz-bg-video__cover,
1978
- .brz .brz-iframe.brz-bg-map__cover {
1979
- position: absolute;
1980
- top: 0;
1981
- left: 0;
1982
- width: 100%;
1983
- height: 100%;
1984
- border: none;
1985
- max-width: none;
1986
- background-repeat: no-repeat;
1987
- background-size: cover; }
1988
-
1989
- .brz .brz-btn {
1990
- display: -webkit-inline-box;
1991
- display: -ms-inline-flexbox;
1992
- display: inline-flex;
1993
- -webkit-box-pack: center;
1994
- -ms-flex-pack: center;
1995
- justify-content: center;
1996
- -webkit-box-align: center;
1997
- -ms-flex-align: center;
1998
- align-items: center;
1999
- border: 1px solid #ccc;
2000
- -webkit-transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
2001
- transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
2002
- text-align: center;
2003
- vertical-align: middle;
2004
- -ms-touch-action: manipulation;
2005
- touch-action: manipulation;
2006
- color: #fff;
2007
- cursor: pointer;
2008
- -webkit-user-select: none;
2009
- -moz-user-select: none;
2010
- -ms-user-select: none;
2011
- user-select: none;
2012
- -webkit-user-drag: none;
2013
- background-image: none;
2014
- white-space: nowrap;
2015
- font-weight: 400;
2016
- -webkit-backface-visibility: hidden;
2017
- backface-visibility: hidden;
2018
- text-decoration: none;
2019
- outline: none; }
2020
- .brz .brz-btn .brz-ed-box__resizer {
2021
- height: auto;
2022
- font-size: inherit; }
2023
- .brz .brz-btn:hover, .brz .brz-btn:focus, .brz .brz-btn.focus {
2024
- text-decoration: none; }
2025
- .brz .brz-btn:focus {
2026
- text-decoration: none; }
2027
- .brz .brz-btn .brz-span {
2028
- display: block; }
2029
- .brz .brz-btn .brz-btn--story-container {
2030
- width: 100%;
2031
- display: -webkit-box;
2032
- display: -ms-flexbox;
2033
- display: flex;
2034
- -webkit-box-pack: center;
2035
- -ms-flex-pack: center;
2036
- justify-content: center;
2037
- -webkit-box-align: center;
2038
- -ms-flex-align: center;
2039
- align-items: center; }
2040
-
2041
- .brz .buttons {
2042
- margin: -10px;
2043
- -webkit-box-align: center;
2044
- -ms-flex-align: center;
2045
- align-items: center; }
2046
- .brz .buttons .brz-wrapper-clone__item {
2047
- padding: 10px; }
2048
-
2049
- .brz .brz-icon {
2050
- display: -webkit-inline-box;
2051
- display: -ms-inline-flexbox;
2052
- display: inline-flex;
2053
- -webkit-box-pack: center;
2054
- -ms-flex-pack: center;
2055
- justify-content: center;
2056
- -webkit-box-align: center;
2057
- -ms-flex-align: center;
2058
- align-items: center;
2059
- vertical-align: middle;
2060
- max-width: 100%;
2061
- -webkit-transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
2062
- transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
2063
-
2064
- .brz .brz-story .brz-icon {
2065
- display: -webkit-box;
2066
- display: -ms-flexbox;
2067
- display: flex; }
2068
- .brz .brz-story .brz-icon .brz-icon-svg {
2069
- width: 100%;
2070
- height: 100%; }
2071
-
2072
- .brz .brz-list {
2073
- margin: -6px;
2074
- -webkit-box-align: center;
2075
- -ms-flex-align: center;
2076
- align-items: center; }
2077
- .brz .brz-list .brz-list__item {
2078
- padding: 6px; }
2079
-
2080
- .brz .brz-countdown {
2081
- display: -webkit-box;
2082
- display: -ms-flexbox;
2083
- display: flex; }
2084
- .brz .brz-countdown__item {
2085
- -webkit-box-flex: 1;
2086
- -ms-flex: 1 0 25%;
2087
- flex: 1 0 25%;
2088
- text-align: center;
2089
- padding-left: 15px;
2090
- padding-right: 15px;
2091
- word-break: break-word;
2092
- word-wrap: break-word; }
2093
- .brz .brz-countdown__number {
2094
- font-size: 1em;
2095
- margin-bottom: 15px; }
2096
- .brz .brz-countdown .brz-ed-box__resizer {
2097
- display: -webkit-inline-box;
2098
- display: -ms-inline-flexbox;
2099
- display: inline-flex;
2100
- width: 100%; }
2101
-
2102
- .brz .brz-countdown2 {
2103
- display: -webkit-box;
2104
- display: -ms-flexbox;
2105
- display: flex;
2106
- -webkit-box-orient: vertical;
2107
- -webkit-box-direction: normal;
2108
- -ms-flex-direction: column;
2109
- flex-direction: column; }
2110
- .brz .brz-countdown2__item {
2111
- display: -webkit-box;
2112
- display: -ms-flexbox;
2113
- display: flex;
2114
- width: 100%;
2115
- text-align: center;
2116
- word-break: break-word;
2117
- word-wrap: break-word;
2118
- -ms-flex-wrap: wrap;
2119
- flex-wrap: wrap;
2120
- -webkit-box-align: center;
2121
- -ms-flex-align: center;
2122
- align-items: center;
2123
- -webkit-box-pack: center;
2124
- -ms-flex-pack: center;
2125
- justify-content: center;
2126
- -webkit-box-orient: vertical;
2127
- -webkit-box-direction: normal;
2128
- -ms-flex-direction: column;
2129
- flex-direction: column; }
2130
- .brz .brz-countdown2__item:first-child {
2131
- margin-left: 0 !important; }
2132
- .brz .brz-countdown2__item:last-child {
2133
- margin-right: 0 !important; }
2134
- .brz .brz-countdown2__number {
2135
- font-size: 1em; }
2136
- .brz .brz-countdown2__label {
2137
- text-transform: capitalize; }
2138
- .brz .brz-countdown2 .brz-countdown2-parts {
2139
- display: -webkit-inline-box;
2140
- display: -ms-inline-flexbox;
2141
- display: inline-flex;
2142
- width: 100%; }
2143
- .brz .brz-countdown2 .brz-countdown2-message {
2144
- display: none;
2145
- min-height: 55px;
2146
- width: 100%;
2147
- margin-top: 15px;
2148
- padding: 17px 30px;
2149
- padding-bottom: 0;
2150
- text-align: center; }
2151
-
2152
- .brz .brz-countdown2-style1 {
2153
- -webkit-box-orient: vertical;
2154
- -webkit-box-direction: normal;
2155
- -ms-flex-direction: column;
2156
- flex-direction: column; }
2157
-
2158
- .brz .brz-countdown2-style2 .brz-countdown2__item {
2159
- -webkit-box-orient: horizontal;
2160
- -webkit-box-direction: normal;
2161
- -ms-flex-direction: row;
2162
- flex-direction: row; }
2163
-
2164
- .brz .brz-countdown2-style2 .brz-countdown2__label {
2165
- margin-left: 5px; }
2166
-
2167
- .brz .brz-countdown2-style3 .brz-countdown2-parts {
2168
- -webkit-box-align: center;
2169
- -ms-flex-align: center;
2170
- align-items: center; }
2171
-
2172
- .brz .brz-countdown2-style3 .brz-countdown2__item .brz-countdown2__label {
2173
- display: none; }
2174
-
2175
- .brz .brz-countdown2_custom {
2176
- height: auto !important;
2177
- margin: 0 !important; }
2178
-
2179
- .brz .brz-spacer {
2180
- width: 100%; }
2181
-
2182
- .brz .brz-icon-text {
2183
- display: -webkit-box;
2184
- display: -ms-flexbox;
2185
- display: flex;
2186
- width: 100%;
2187
- text-align: left;
2188
- -webkit-box-align: stretch;
2189
- -ms-flex-align: stretch;
2190
- align-items: stretch;
2191
- -ms-flex-wrap: nowrap;
2192
- flex-wrap: nowrap; }
2193
- .brz .brz-icon-text .brz-text__editor,
2194
- .brz .brz-icon-text .brz-text-btn {
2195
- width: 100%; }
2196
- .brz .brz-icon-text .brz-text__editor {
2197
- white-space: pre-wrap; }
2198
- .brz .brz-icon-text .brz-wrapper-clone {
2199
- overflow-wrap: break-word;
2200
- word-wrap: break-word;
2201
- word-break: break-word; }
2202
- .brz .brz-icon-text .brz-icon__container {
2203
- display: -webkit-box;
2204
- display: -ms-flexbox;
2205
- display: flex;
2206
- min-width: auto; }
2207
- .brz .brz-icon-text .brz-icon__container .brz-ed-box__resizer {
2208
- height: -webkit-fit-content;
2209
- height: -moz-fit-content;
2210
- height: fit-content; }
2211
-
2212
- .brz .brz-line {
2213
- position: relative;
2214
- line-height: 1;
2215
- font-size: 0;
2216
- padding-top: 7px;
2217
- padding-bottom: 7px;
2218
- display: inline-block; }
2219
- .brz .brz-line-container::before, .brz .brz-line-container::after {
2220
- content: "";
2221
- -webkit-box-flex: 1;
2222
- -ms-flex-positive: 1;
2223
- flex-grow: 1; }
2224
- .brz .brz-line-container {
2225
- display: -webkit-box;
2226
- display: -ms-flexbox;
2227
- display: flex;
2228
- -webkit-box-align: center;
2229
- -ms-flex-align: center;
2230
- align-items: center;
2231
- text-align: center; }
2232
- .brz .brz-line .brz-hr {
2233
- border-right-width: 0;
2234
- border-bottom-width: 0;
2235
- border-left-width: 0;
2236
- background: none;
2237
- width: 100%; }
2238
-
2239
- .brz .brz-map {
2240
- position: relative;
2241
- width: 100%;
2242
- display: inline-block;
2243
- vertical-align: middle; }
2244
- .brz .brz-map::before {
2245
- content: "";
2246
- width: 100%;
2247
- height: 100%;
2248
- position: absolute;
2249
- top: 0;
2250
- left: 0;
2251
- z-index: 2;
2252
- display: block;
2253
- pointer-events: none; }
2254
- .brz .brz-map .brz-map-content {
2255
- overflow: hidden;
2256
- position: relative;
2257
- height: 100%;
2258
- width: 100%; }
2259
- .brz .brz-map .brz-iframe {
2260
- position: absolute;
2261
- top: 0;
2262
- left: 0;
2263
- width: 100%;
2264
- height: 100%;
2265
- border: none; }
2266
- .brz .brz-map__cover {
2267
- height: 100%;
2268
- cursor: pointer;
2269
- background-repeat: no-repeat; }
2270
-
2271
- .brz .brz-video {
2272
- position: relative;
2273
- width: 100%;
2274
- display: inline-block;
2275
- vertical-align: middle; }
2276
- .brz .brz-video__ios iframe {
2277
- opacity: 0; }
2278
- .brz .brz-video:before {
2279
- content: "";
2280
- width: 100%;
2281
- height: 100%;
2282
- position: absolute;
2283
- top: 0;
2284
- left: 0;
2285
- z-index: 2;
2286
- display: block;
2287
- pointer-events: none; }
2288
- .brz .brz-video .brz-video-content {
2289
- overflow: hidden;
2290
- position: relative;
2291
- width: 100%;
2292
- height: 100%; }
2293
- .brz .brz-video .brz-iframe,
2294
- .brz .brz-video .brz-video__cover {
2295
- position: absolute;
2296
- top: 0;
2297
- left: 0;
2298
- width: 100%;
2299
- height: 100%;
2300
- border: none; }
2301
- .brz .brz-video .brz-iframe {
2302
- height: 100%;
2303
- width: 100%; }
2304
- .brz .brz-video .brz-video__cover {
2305
- display: -webkit-box;
2306
- display: -ms-flexbox;
2307
- display: flex;
2308
- -webkit-box-align: center;
2309
- -ms-flex-align: center;
2310
- align-items: center;
2311
- -webkit-box-pack: center;
2312
- -ms-flex-pack: center;
2313
- justify-content: center;
2314
- z-index: 1; }
2315
- .brz .brz-video .brz-video__cover:before {
2316
- content: "";
2317
- display: block;
2318
- position: absolute;
2319
- top: 0;
2320
- left: 0;
2321
- right: 0;
2322
- bottom: 0;
2323
- margin: 0 auto;
2324
- background-repeat: no-repeat; }
2325
- .brz .brz-video .brz-video__cover .brz-video__cover-icon {
2326
- position: relative;
2327
- z-index: 1;
2328
- color: #fff;
2329
- display: -webkit-box;
2330
- display: -ms-flexbox;
2331
- display: flex;
2332
- -webkit-box-align: center;
2333
- -ms-flex-align: center;
2334
- align-items: center;
2335
- -webkit-box-pack: center;
2336
- -ms-flex-pack: center;
2337
- justify-content: center;
2338
- border-radius: 50%; }
2339
- .brz .brz-video .brz-video__cover .brz-video__cover-icon .brz-icon-svg {
2340
- width: 100%;
2341
- left: 2px; }
2342
- .brz .brz-video .brz-video__cover .brz-video__cover-icon .brz-span {
2343
- line-height: 0; }
2344
- .brz .brz-video .brz-video__cover:hover {
2345
- cursor: pointer; }
2346
- .brz .brz-video .brz-video__cover:hover .brz-video__cover-icon {
2347
- -webkit-transform: scale(1.1);
2348
- transform: scale(1.1); }
2349
- .brz .brz-video .brz-shortcode__placeholder {
2350
- position: absolute;
2351
- top: 0; }
2352
- .brz .brz-video .brz-video-elem {
2353
- display: -webkit-box;
2354
- display: -ms-flexbox;
2355
- display: flex;
2356
- -webkit-box-pack: center;
2357
- -ms-flex-pack: center;
2358
- justify-content: center;
2359
- -webkit-box-align: center;
2360
- -ms-flex-align: center;
2361
- align-items: center;
2362
- width: 100%;
2363
- z-index: 999;
2364
- min-width: 150px; }
2365
- .brz .brz-video .brz-video-elem video {
2366
- position: absolute;
2367
- left: 0;
2368
- right: 0;
2369
- bottom: 0;
2370
- top: 0;
2371
- width: 100%;
2372
- height: 100%;
2373
- background: #000;
2374
- z-index: 99; }
2375
- .brz .brz-video .brz-video-elem .brz-video-custom-video-controls {
2376
- display: -webkit-box;
2377
- display: -ms-flexbox;
2378
- display: flex;
2379
- -webkit-box-pack: center;
2380
- -ms-flex-pack: center;
2381
- justify-content: center;
2382
- -webkit-box-align: center;
2383
- -ms-flex-align: center;
2384
- align-items: center;
2385
- padding-left: 20px;
2386
- padding-right: 20px;
2387
- width: 100%;
2388
- height: 50px;
2389
- z-index: 999; }
2390
- .brz .brz-video .brz-video-elem .brz-video-custom-play-pause-btn {
2391
- display: -webkit-box;
2392
- display: -ms-flexbox;
2393
- display: flex;
2394
- cursor: pointer;
2395
- z-index: 3; }
2396
- .brz .brz-video .brz-video-elem .brz-video-custom-current-time {
2397
- margin-left: 25px; }
2398
- .brz .brz-video .brz-video-elem .brz-video-custom-total-time {
2399
- margin-left: 15px; }
2400
- .brz .brz-video .brz-video-elem .brz-video-custom-slider {
2401
- position: relative;
2402
- -webkit-box-flex: 1;
2403
- -ms-flex-positive: 1;
2404
- flex-grow: 1;
2405
- cursor: pointer; }
2406
- .brz .brz-video .brz-video-elem .brz-video-custom-slider .brz-video-custom-progress {
2407
- border-radius: inherit;
2408
- position: absolute;
2409
- pointer-events: none; }
2410
- .brz .brz-video .brz-video-elem .brz-video-custom-slider:before {
2411
- content: "";
2412
- display: block;
2413
- position: absolute;
2414
- top: 0;
2415
- left: 0;
2416
- right: 0;
2417
- bottom: 0;
2418
- margin: 0 auto;
2419
- background-repeat: no-repeat;
2420
- opacity: 0.35; }
2421
- .brz .brz-video .brz-video-elem .brz-video-custom-controls {
2422
- display: -webkit-box;
2423
- display: -ms-flexbox;
2424
- display: flex;
2425
- -webkit-box-flex: 1;
2426
- -ms-flex-positive: 1;
2427
- flex-grow: 1;
2428
- -webkit-box-pack: justify;
2429
- -ms-flex-pack: justify;
2430
- justify-content: space-between;
2431
- -webkit-box-align: center;
2432
- -ms-flex-align: center;
2433
- align-items: center;
2434
- z-index: 3; }
2435
- .brz .brz-video .brz-video-elem .brz-video-custom-controls .brz-video-custom-slider {
2436
- margin-left: 16px;
2437
- margin-right: 16px;
2438
- border-radius: 5px;
2439
- height: 8px;
2440
- overflow: hidden; }
2441
- .brz .brz-video .brz-video-elem .brz-video-custom-controls .brz-video-custom-slider .brz-video-custom-progress {
2442
- height: 100%; }
2443
- .brz .brz-video .brz-video-elem .brz-video-custom-controls span {
2444
- cursor: default; }
2445
- .brz .brz-video .brz-video-elem .brz-video-custom-controls:empty {
2446
- display: none; }
2447
- .brz .brz-video .brz-video-elem .brz-video-custom-volume {
2448
- position: relative;
2449
- display: -webkit-box;
2450
- display: -ms-flexbox;
2451
- display: flex;
2452
- margin-left: 15px;
2453
- -webkit-box-pack: center;
2454
- -ms-flex-pack: center;
2455
- justify-content: center;
2456
- -webkit-box-align: center;
2457
- -ms-flex-align: center;
2458
- align-items: center;
2459
- z-index: 3; }
2460
- .brz .brz-video .brz-video-elem .brz-video-custom-volume .brz-video-custom-fullscreen-btn {
2461
- display: -webkit-box;
2462
- display: -ms-flexbox;
2463
- display: flex; }
2464
- .brz .brz-video .brz-video-elem .brz-video-custom-volume .brz-video-custom-fullscreen-icon {
2465
- margin-right: 15px;
2466
- cursor: pointer; }
2467
- .brz .brz-video .brz-video-elem .brz-video-custom-volume .brz-video-custom-volume-btn {
2468
- display: -webkit-box;
2469
- display: -ms-flexbox;
2470
- display: flex;
2471
- cursor: pointer; }
2472
- .brz .brz-video .brz-video-elem .brz-video-custom-volume .brz-video-custom-volume-controls {
2473
- display: -webkit-box;
2474
- display: -ms-flexbox;
2475
- display: flex;
2476
- width: 60px;
2477
- height: 8px;
2478
- margin-left: 10px;
2479
- border-radius: 5px;
2480
- -webkit-box-orient: vertical;
2481
- -webkit-box-direction: normal;
2482
- -ms-flex-direction: column;
2483
- flex-direction: column;
2484
- overflow: hidden; }
2485
- .brz .brz-video .brz-video-elem .brz-video-custom-volume .brz-video-custom-volume-controls .brz-video-custom-progress {
2486
- bottom: 0;
2487
- height: 100%;
2488
- width: 100%; }
2489
- .brz .brz-video .brz-video-custom-fullScreen-window-show video {
2490
- padding-bottom: 50px; }
2491
- .brz .brz-video .brz-video-custom-fullScreen-window-show .brz-video-custom-video-controls {
2492
- position: absolute;
2493
- left: 0;
2494
- right: 0;
2495
- bottom: 0; }
2496
-
2497
- .brz .brz-custom-video {
2498
- min-width: 150px; }
2499
- .brz .brz-custom-video .brz-video-content {
2500
- overflow: hidden; }
2501
- .brz .brz-custom-video .brz-video-content .brz-shortcode__placeholder {
2502
- border-radius: 0 !important; }
2503
- .brz .brz-custom-video .brz-video-content:hover .brz-shortcode__placeholder .brz-icon-svg {
2504
- cursor: pointer; }
2505
-
2506
- .brz .brz-custom-video.brz-video-on-controls-hidden .brz-video__cover,
2507
- .brz .brz-custom-video.brz-video-on-controls-hidden .brz-shortcode__placeholder,
2508
- .brz .brz-custom-video.brz-video-on-controls-hidden video {
2509
- padding-bottom: 50px; }
2510
-
2511
- .brz .brz-custom-video.brz-video-off-controls-hidden {
2512
- background: inherit;
2513
- padding-bottom: 0; }
2514
- .brz .brz-custom-video.brz-video-off-controls-hidden video {
2515
- padding-bottom: 0;
2516
- background: inherit; }
2517
- .brz .brz-custom-video.brz-video-off-controls-hidden .brz-shortcode__placeholder {
2518
- top: 0;
2519
- padding-top: 0; }
2520
- .brz .brz-custom-video.brz-video-off-controls-hidden .brz-video__cover {
2521
- padding-bottom: 0; }
2522
-
2523
- .brz .brz-image-fix-1-1 {
2524
- padding-top: 100%; }
2525
-
2526
- .brz .brz-image-fix-2-1 {
2527
- padding-top: 50%; }
2528
-
2529
- .brz .brz-image-fix-2-3 {
2530
- padding-top: 150%; }
2531
-
2532
- .brz .brz-image-fix-3-4 {
2533
- padding-top: 125%; }
2534
-
2535
- .brz .brz-image-fix-4-3 {
2536
- padding-top: 75%; }
2537
-
2538
- .brz .brz-image-fix-9-16 {
2539
- padding-top: 177.8%; }
2540
-
2541
- .brz .brz-image-fix-16-9 {
2542
- padding-top: 56.25%; }
2543
-
2544
- .brz .brz-video-playlist {
2545
- position: relative;
2546
- width: 100%;
2547
- display: inline-block;
2548
- vertical-align: middle; }
2549
- .brz .brz-video-playlist .brz-play-button {
2550
- line-height: 0; }
2551
- .brz .brz-video-playlist:before {
2552
- content: "";
2553
- width: 100%;
2554
- height: 100%;
2555
- position: absolute;
2556
- top: 0;
2557
- left: 0;
2558
- z-index: 2;
2559
- display: block;
2560
- pointer-events: none; }
2561
- .brz .brz-video-playlist .brz-iframe,
2562
- .brz .brz-video-playlist .brz-video-playlist__cover {
2563
- position: absolute;
2564
- top: 0;
2565
- left: 0;
2566
- width: 100%;
2567
- height: 100%;
2568
- border: none; }
2569
- .brz .brz-video-playlist .brz-video-playlist__cover {
2570
- -webkit-box-align: center;
2571
- -ms-flex-align: center;
2572
- align-items: center;
2573
- -webkit-box-pack: center;
2574
- -ms-flex-pack: center;
2575
- justify-content: center; }
2576
- .brz .brz-video-playlist .brz-video-playlist__cover:before {
2577
- content: "";
2578
- display: block;
2579
- position: absolute;
2580
- top: 0;
2581
- left: 0;
2582
- right: 0;
2583
- bottom: 0;
2584
- margin: 0 auto;
2585
- background-size: cover;
2586
- background-repeat: no-repeat; }
2587
- .brz .brz-video-playlist .brz-video-playlist__cover .brz-video-playlist__cover-icon {
2588
- position: relative;
2589
- width: 80px;
2590
- height: 80px;
2591
- font-size: 28px;
2592
- -webkit-box-align: center;
2593
- -ms-flex-align: center;
2594
- align-items: center;
2595
- -webkit-box-pack: center;
2596
- -ms-flex-pack: center;
2597
- justify-content: center;
2598
- border-radius: 50%;
2599
- z-index: 1;
2600
- color: #fff;
2601
- -webkit-transition: -webkit-transform 0.3s ease;
2602
- transition: -webkit-transform 0.3s ease;
2603
- transition: transform 0.3s ease;
2604
- transition: transform 0.3s ease, -webkit-transform 0.3s ease; }
2605
- .brz .brz-video-playlist .brz-video-playlist__cover .brz-video-playlist__cover-icon .brz-icon-svg {
2606
- width: 100%;
2607
- left: 2px; }
2608
- .brz .brz-video-playlist .brz-video-playlist__cover .brz-video-playlist__cover-icon a {
2609
- line-height: 0; }
2610
- .brz .brz-video-playlist .brz-video-playlist__cover:hover {
2611
- cursor: pointer; }
2612
- .brz .brz-video-playlist .brz-video-playlist__cover:hover .brz-video-playlist__cover-icon {
2613
- -webkit-transform: scale(1.1);
2614
- transform: scale(1.1); }
2615
- .brz .brz-video-playlist .brz-video-playlist-main,
2616
- .brz .brz-video-playlist .brz-video-playlist-video-elem {
2617
- position: relative; }
2618
- .brz .brz-video-playlist .brz-video-playlist-main .brz-shortcode__placeholder,
2619
- .brz .brz-video-playlist .brz-video-playlist-main .brz-img,
2620
- .brz .brz-video-playlist .brz-video-playlist-video-elem .brz-shortcode__placeholder,
2621
- .brz .brz-video-playlist .brz-video-playlist-video-elem .brz-img {
2622
- position: absolute;
2623
- left: 0;
2624
- right: 0;
2625
- top: 0;
2626
- bottom: 0;
2627
- width: 100%;
2628
- height: 100%; }
2629
- .brz .brz-video-playlist .brz-video-playlist-main__cover:after,
2630
- .brz .brz-video-playlist .brz-video-playlist-video-elem:after {
2631
- content: "";
2632
- display: block;
2633
- width: 100%;
2634
- padding-top: 56.25%; }
2635
- .brz .brz-video-playlist .brz-video-playlist-main__content {
2636
- padding-top: 56.25%; }
2637
- .brz .brz-video-playlist .brz-video-playlist-video-item {
2638
- cursor: pointer; }
2639
- .brz .brz-video-playlist .brz-video-playlist-title-video {
2640
- word-break: break-word; }
2641
- .brz .brz-video-playlist .brz-video-playlist-title-video .brz-span {
2642
- display: block; }
2643
- .brz .brz-video-playlist .brz-video-playlist-title-video .brz-span:last-child {
2644
- margin-bottom: 0; }
2645
-
2646
- .brz .brz-video-playlist-horizontal .brz-video-playlist-sidebar {
2647
- position: absolute;
2648
- top: 0;
2649
- bottom: 0;
2650
- right: 0;
2651
- -webkit-box-orient: vertical;
2652
- -webkit-box-direction: normal;
2653
- -ms-flex-direction: column;
2654
- flex-direction: column;
2655
- max-height: 100%;
2656
- overflow: auto; }
2657
-
2658
- .brz .brz-video-playlist-horizontal .brz-video-playlist-video-item {
2659
- cursor: pointer;
2660
- -webkit-box-align: start;
2661
- -ms-flex-align: start;
2662
- align-items: flex-start;
2663
- -ms-flex-wrap: wrap;
2664
- flex-wrap: wrap; }
2665
- .brz .brz-video-playlist-horizontal .brz-video-playlist-video-item .brz-video-playlist-title-video {
2666
- margin-left: 10px; }
2667
- .brz .brz-video-playlist-horizontal .brz-video-playlist-video-item .brz-img {
2668
- -o-object-fit: cover;
2669
- object-fit: cover; }
2670
-
2671
- .brz .brz-video-playlist-horizontal ::-webkit-scrollbar {
2672
- width: 8px;
2673
- height: 95px;
2674
- cursor: pointer; }
2675
-
2676
- .brz .brz-video-playlist-horizontal ::-webkit-scrollbar-track {
2677
- background-color: rgba(0, 0, 0, 0); }
2678
-
2679
- .brz .brz-video-playlist-horizontal ::-webkit-scrollbar-thumb {
2680
- background-color: rgba(0, 0, 0, 0.3);
2681
- border-radius: 8px; }
2682
-
2683
- .brz .brz-video-playlist-vertical .brz-video-playlist-sidebar {
2684
- white-space: nowrap;
2685
- overflow: auto; }
2686
-
2687
- .brz .brz-video-playlist-vertical .brz-video-playlist-video-item {
2688
- text-align: center; }
2689
-
2690
- .brz .brz-video-playlist-vertical .brz-video-playlist-video-elem {
2691
- margin-left: auto;
2692
- margin-right: auto; }
2693
-
2694
- .brz .brz-video-playlist-vertical ::-webkit-scrollbar {
2695
- width: 6px;
2696
- height: 8px;
2697
- cursor: pointer; }
2698
-
2699
- .brz .brz-video-playlist-vertical ::-webkit-scrollbar-track {
2700
- background-color: rgba(0, 0, 0, 0); }
2701
-
2702
- .brz .brz-video-playlist-vertical ::-webkit-scrollbar-thumb {
2703
- background-color: rgba(0, 0, 0, 0.3); }
2704
-
2705
- .brz .brz-video-playlist-vertical.brz-video-playlist-under {
2706
- display: -webkit-box;
2707
- display: -ms-flexbox;
2708
- display: flex;
2709
- -webkit-box-orient: vertical;
2710
- -webkit-box-direction: reverse;
2711
- -ms-flex-direction: column-reverse;
2712
- flex-direction: column-reverse; }
2713
- .brz .brz-video-playlist-vertical.brz-video-playlist-under .brz-video-playlist__container {
2714
- display: -webkit-box;
2715
- display: -ms-flexbox;
2716
- display: flex;
2717
- -webkit-box-orient: vertical;
2718
- -webkit-box-direction: reverse;
2719
- -ms-flex-direction: column-reverse;
2720
- flex-direction: column-reverse; }
2721
-
2722
- @media (max-width: 767px) {
2723
- .brz .brz-video-playlist .brz-video-playlist-main {
2724
- position: fixed;
2725
- z-index: 99999;
2726
- left: 0;
2727
- right: 0;
2728
- top: 0;
2729
- bottom: 0;
2730
- display: none;
2731
- width: 100% !important;
2732
- height: 100%;
2733
- background-color: rgba(0, 0, 0, 0.3); }
2734
- .brz .brz-video-playlist .brz-video-playlist-main__placeholder .brz-video-playlist-main__content,
2735
- .brz .brz-video-playlist .brz-video-playlist-main__video .brz-video-playlist-main__content {
2736
- width: 100%; }
2737
- .brz .brz-video-playlist .brz-video-playlist-sidebar {
2738
- position: static;
2739
- height: auto !important;
2740
- width: 100% !important; }
2741
- .brz .brz-video-playlist .brz-video-playlist-modal {
2742
- display: -webkit-box;
2743
- display: -ms-flexbox;
2744
- display: flex;
2745
- -webkit-box-align: center;
2746
- -ms-flex-align: center;
2747
- align-items: center;
2748
- -webkit-box-pack: center;
2749
- -ms-flex-pack: center;
2750
- justify-content: center;
2751
- -ms-flex-wrap: wrap;
2752
- flex-wrap: wrap;
2753
- -webkit-box-orient: vertical;
2754
- -webkit-box-direction: normal;
2755
- -ms-flex-direction: column;
2756
- flex-direction: column; } }
2757
-
2758
- .brz .brz-audio {
2759
- pointer-events: auto;
2760
- min-width: -webkit-fit-content;
2761
- min-width: -moz-fit-content;
2762
- min-width: fit-content; }
2763
- .brz .brz-audio .brz-custom-audio {
2764
- position: relative;
2765
- width: 100%;
2766
- height: 100%;
2767
- -webkit-box-pack: center;
2768
- -ms-flex-pack: center;
2769
- justify-content: center;
2770
- -webkit-box-align: center;
2771
- -ms-flex-align: center;
2772
- align-items: center;
2773
- padding-left: 20px;
2774
- padding-right: 20px;
2775
- z-index: 3; }
2776
- .brz .brz-audio .brz-custom-audio .brz-audio-play-pause-btn {
2777
- cursor: pointer;
2778
- z-index: 3; }
2779
- .brz .brz-audio .brz-custom-audio .brz-audio-current-time {
2780
- margin-left: 25px; }
2781
- .brz .brz-audio .brz-custom-audio .brz-audio-total-time {
2782
- margin-left: 15px; }
2783
- .brz .brz-audio .brz-custom-audio .brz-audio-slider {
2784
- position: relative;
2785
- -webkit-box-flex: 1;
2786
- -ms-flex-positive: 1;
2787
- flex-grow: 1;
2788
- cursor: pointer; }
2789
- .brz .brz-audio .brz-custom-audio .brz-audio-slider .brz-audio-progress {
2790
- border-radius: inherit;
2791
- position: absolute;
2792
- pointer-events: none; }
2793
- .brz .brz-audio .brz-custom-audio .brz-audio-slider:before {
2794
- content: "";
2795
- display: block;
2796
- position: absolute;
2797
- top: 0;
2798
- left: 0;
2799
- right: 0;
2800
- bottom: 0;
2801
- margin: 0 auto;
2802
- background-repeat: no-repeat;
2803
- opacity: 0.35; }
2804
- .brz .brz-audio .brz-custom-audio .brz-audio-controls {
2805
- -webkit-box-flex: 1;
2806
- -ms-flex-positive: 1;
2807
- flex-grow: 1;
2808
- -webkit-box-pack: justify;
2809
- -ms-flex-pack: justify;
2810
- justify-content: space-between;
2811
- -webkit-box-align: center;
2812
- -ms-flex-align: center;
2813
- align-items: center;
2814
- z-index: 3; }
2815
- .brz .brz-audio .brz-custom-audio .brz-audio-controls .brz-audio-slider {
2816
- margin-left: 16px;
2817
- margin-right: 16px;
2818
- border-radius: 5px;
2819
- height: 8px; }
2820
- .brz .brz-audio .brz-custom-audio .brz-audio-controls .brz-audio-slider .brz-audio-progress {
2821
- height: 100%; }
2822
- .brz .brz-audio .brz-custom-audio .brz-audio-controls span {
2823
- cursor: default; }
2824
- .brz .brz-audio .brz-custom-audio .brz-audio-controls:empty {
2825
- display: none; }
2826
- .brz .brz-audio .brz-custom-audio .brz-audio-volume {
2827
- position: relative;
2828
- margin-left: 15px;
2829
- -webkit-box-pack: center;
2830
- -ms-flex-pack: center;
2831
- justify-content: center;
2832
- -webkit-box-align: center;
2833
- -ms-flex-align: center;
2834
- align-items: center;
2835
- z-index: 3; }
2836
- .brz .brz-audio .brz-custom-audio .brz-audio-volume .brz-audio-volume-btn {
2837
- cursor: pointer; }
2838
- .brz .brz-audio .brz-custom-audio .brz-audio-volume .brz-audio-volume-controls {
2839
- width: 60px;
2840
- height: 8px;
2841
- margin-left: 10px;
2842
- border-radius: 5px;
2843
- -webkit-box-orient: vertical;
2844
- -webkit-box-direction: normal;
2845
- -ms-flex-direction: column;
2846
- flex-direction: column; }
2847
- .brz .brz-audio .brz-custom-audio .brz-audio-volume .brz-audio-volume-controls .brz-audio-slider {
2848
- border-radius: 3px; }
2849
- .brz .brz-audio .brz-custom-audio .brz-audio-volume .brz-audio-volume-controls .brz-audio-slider .brz-audio-progress {
2850
- bottom: 0;
2851
- height: 100%;
2852
- width: 100%; }
2853
- .brz .brz-audio .brz-audio__cover {
2854
- position: absolute;
2855
- top: 0;
2856
- left: 0;
2857
- width: 100%;
2858
- height: 100%;
2859
- -webkit-box-align: center;
2860
- -ms-flex-align: center;
2861
- align-items: center;
2862
- -webkit-box-pack: center;
2863
- -ms-flex-pack: center;
2864
- justify-content: center;
2865
- border: none; }
2866
- .brz .brz-audio .brz-audio__cover:before {
2867
- content: "";
2868
- display: block;
2869
- position: absolute;
2870
- top: 0;
2871
- left: 0;
2872
- right: 0;
2873
- bottom: 0;
2874
- margin: 0 auto;
2875
- background-repeat: no-repeat; }
2876
- .brz .brz-audio .brz-audio__cover .brz-audio__cover-icon {
2877
- position: relative;
2878
- z-index: 1;
2879
- color: #fff;
2880
- -webkit-box-align: center;
2881
- -ms-flex-align: center;
2882
- align-items: center;
2883
- -webkit-box-pack: center;
2884
- -ms-flex-pack: center;
2885
- justify-content: center;
2886
- border-radius: 50%;
2887
- -webkit-transition: -webkit-transform 0.3s ease;
2888
- transition: -webkit-transform 0.3s ease;
2889
- transition: transform 0.3s ease;
2890
- transition: transform 0.3s ease, -webkit-transform 0.3s ease; }
2891
-
2892
- .brz .brz-soundcloud {
2893
- position: relative;
2894
- font-size: 0; }
2895
- .brz .brz-soundcloud:before {
2896
- content: " ";
2897
- position: absolute;
2898
- width: 100%;
2899
- height: 100%;
2900
- z-index: 3;
2901
- pointer-events: none; }
2902
- .brz .brz-soundcloud .brz-soundCloud-content {
2903
- overflow: hidden;
2904
- position: relative;
2905
- height: 100%;
2906
- width: 100%; }
2907
- .brz .brz-soundcloud .brz-soundCloud-content iframe {
2908
- width: 100%; }
2909
- .brz .brz-soundcloud .brz-soundCloud-content:before {
2910
- content: "";
2911
- width: 100%;
2912
- height: 100%;
2913
- position: absolute;
2914
- top: 0;
2915
- left: 0;
2916
- z-index: 2;
2917
- display: block;
2918
- pointer-events: none; }
2919
-
2920
- .brz .brz-embed-code {
2921
- position: relative;
2922
- display: inline-block;
2923
- width: 100%;
2924
- min-height: 20px;
2925
- height: auto; }
2926
- .brz .brz-embed-code:before {
2927
- content: "";
2928
- width: 100%;
2929
- height: 100%;
2930
- position: absolute;
2931
- top: 0;
2932
- left: 0;
2933
- z-index: 2;
2934
- display: block;
2935
- pointer-events: none;
2936
- overflow: hidden; }
2937
- .brz .brz-embed-code .brz-shortcode__placeholder {
2938
- height: 45px; }
2939
- .brz .brz-embed-code img {
2940
- max-width: 100%; }
2941
- .brz .brz-embed-code .brz-embed-content {
2942
- width: 100%; }
2943
-
2944
- .brz .brz-rich-text {
2945
- -webkit-font-smoothing: antialiased;
2946
- -webkit-box-flex: 1;
2947
- -ms-flex: 1 1 auto;
2948
- flex: 1 1 auto;
2949
- min-width: 0;
2950
- overflow-wrap: break-word;
2951
- word-wrap: break-word;
2952
- word-break: break-word; }
2953
- .brz .brz-rich-text .brz-ed-box__resizer {
2954
- max-width: 100%; }
2955
- .brz .brz-rich-text .brz-capitalize-on {
2956
- text-transform: uppercase; }
2957
- .brz .brz-rich-text .brz-capitalize-on span {
2958
- text-transform: uppercase; }
2959
- .brz .brz-rich-text > * {
2960
- white-space: pre-wrap; }
2961
- .brz .brz-rich-text i,
2962
- .brz .brz-rich-text em {
2963
- font-style: italic; }
2964
- .brz .brz-rich-text ul li,
2965
- .brz .brz-rich-text ol li {
2966
- margin-left: 2em; }
2967
- .brz .brz-rich-text ul {
2968
- list-style-type: disc; }
2969
- .brz .brz-rich-text ol {
2970
- list-style-type: decimal; }
2971
- .brz .brz-rich-text .ql-editor {
2972
- white-space: pre-wrap; }
2973
- .brz .brz-rich-text .brz-text-mask,
2974
- .brz .brz-rich-text .brz-image-gradient {
2975
- caret-color: #000;
2976
- color: transparent !important;
2977
- -webkit-background-clip: text;
2978
- -webkit-box-decoration-break: clone;
2979
- -webkit-text-fill-color: transparent;
2980
- background-clip: text; }
2981
- .brz .brz-rich-text > div > h1,
2982
- .brz .brz-rich-text > div > h2,
2983
- .brz .brz-rich-text > div > h3,
2984
- .brz .brz-rich-text > div > h4,
2985
- .brz .brz-rich-text > div > h5,
2986
- .brz .brz-rich-text > div > h6 {
2987
- margin-top: 0;
2988
- margin-bottom: 0;
2989
- padding: 0;
2990
- text-transform: initial;
2991
- text-decoration: initial; }
2992
- .brz .brz-rich-text > div > h1:before,
2993
- .brz .brz-rich-text > div > h2:before,
2994
- .brz .brz-rich-text > div > h3:before,
2995
- .brz .brz-rich-text > div > h4:before,
2996
- .brz .brz-rich-text > div > h5:before,
2997
- .brz .brz-rich-text > div > h6:before {
2998
- display: none; }
2999
- .brz .brz-rich-text > div > p,
3000
- .brz .brz-rich-text span {
3001
- margin-top: 0;
3002
- margin-bottom: 0;
3003
- padding-top: 0;
3004
- padding-bottom: 0;
3005
- text-transform: initial;
3006
- text-decoration: initial; }
3007
- .brz .brz-rich-text span {
3008
- font-family: inherit;
3009
- font-size: inherit;
3010
- font-weight: inherit;
3011
- line-height: inherit;
3012
- letter-spacing: inherit; }
3013
- .brz .brz-rich-text p {
3014
- display: block; }
3015
- .brz .brz-rich-text a,
3016
- .brz .brz-rich-text em,
3017
- .brz .brz-rich-text span {
3018
- display: inline; }
3019
- .brz .brz-rich-text ol,
3020
- .brz .brz-rich-text ul,
3021
- .brz .brz-rich-text dl {
3022
- margin: 0;
3023
- padding: 0; }
3024
- .brz .brz-rich-text ol ol,
3025
- .brz .brz-rich-text ul ul,
3026
- .brz .brz-rich-text ol ul,
3027
- .brz .brz-rich-text ul ol {
3028
- margin: 0; }
3029
- .brz .brz-rich-text strong {
3030
- font-weight: bold; }
3031
- .brz .brz-rich-text .link--anchor,
3032
- .brz .brz-rich-text .link--external,
3033
- .brz .brz-rich-text .link--story,
3034
- .brz .brz-rich-text .link--popup {
3035
- text-decoration: none; }
3036
- .brz .brz-rich-text .link--anchor:hover,
3037
- .brz .brz-rich-text .link--external:hover,
3038
- .brz .brz-rich-text .link--story:hover,
3039
- .brz .brz-rich-text .link--popup:hover {
3040
- text-decoration: underline; }
3041
- .brz .brz-rich-text .brz-tp__dc-block:after {
3042
- content: "";
3043
- display: table;
3044
- clear: both; }
3045
- .brz .brz-rich-text .brz-tp__dc-block iframe,
3046
- .brz .brz-rich-text .brz-tp__dc-block object,
3047
- .brz .brz-rich-text .brz-tp__dc-block video,
3048
- .brz .brz-rich-text .brz-tp__dc-block img {
3049
- max-width: 100%; }
3050
-
3051
- .brz .brz-rich-text__custom a {
3052
- text-decoration: none;
3053
- background-color: transparent;
3054
- -webkit-text-decoration-skip: objects; }
3055
- .brz .brz-rich-text__custom a[href] :not(.brz-ed-content-dc-link):hover {
3056
- text-decoration: underline; }
3057
-
3058
- .brz .brz-rich-text__population-cloud h1,
3059
- .brz .brz-rich-text__population-cloud h2,
3060
- .brz .brz-rich-text__population-cloud h3,
3061
- .brz .brz-rich-text__population-cloud h4,
3062
- .brz .brz-rich-text__population-cloud h5,
3063
- .brz .brz-rich-text__population-cloud h6,
3064
- .brz .brz-rich-text__population-cloud p {
3065
- margin: 0; }
3066
-
3067
- .brz .brz-rich-text__population-cloud a {
3068
- color: inherit;
3069
- text-decoration: none; }
3070
- .brz .brz-rich-text__population-cloud a:hover {
3071
- text-decoration: underline; }
3072
-
3073
- .brz .brz-rich-text__population-cloud blockquote {
3074
- border-left: 4px solid #ccc;
3075
- margin: 5px 0 5px;
3076
- padding: 0 0 0 16px; }
3077
-
3078
- .brz .brz-rich-text .ql-indent-1 {
3079
- text-indent: 3em; }
3080
-
3081
- .brz .brz-rich-text .ql-indent-2 {
3082
- text-indent: 6em; }
3083
-
3084
- .brz .brz-rich-text .ql-indent-3 {
3085
- text-indent: 9em; }
3086
-
3087
- .brz .brz-rich-text .ql-indent-4 {
3088
- text-indent: 12em; }
3089
-
3090
- .brz .brz-rich-text .ql-indent-5 {
3091
- text-indent: 15em; }
3092
-
3093
- .brz .brz-rich-text .ql-indent-6 {
3094
- text-indent: 18em; }
3095
-
3096
- .brz .brz-rich-text .ql-indent-7 {
3097
- text-indent: 21em; }
3098
-
3099
- .brz .brz-rich-text .ql-indent-8 {
3100
- text-indent: 24em; }
3101
-
3102
- .brz .brz-rich-text .ql-indent-9 {
3103
- text-indent: 27em; }
3104
-
3105
- .brz .brz-rich-text .ql-align-center {
3106
- text-align: center; }
3107
-
3108
- .brz .brz-rich-text .ql-align-right {
3109
- text-align: right; }
3110
-
3111
- .brz .brz-rich-text .ql-align-justify {
3112
- text-align: justify; }
3113
-
3114
- .brz .brz-text__editor {
3115
- min-width: 10px; }
3116
- .brz .brz-text__editor:empty:before {
3117
- content: "\00a0\00a0"; }
3118
-
3119
- .brz .brz-population-mask.brz-population-mask__style {
3120
- -webkit-background-clip: text;
3121
- -webkit-text-fill-color: transparent; }
3122
-
3123
- .brz:not(.brz-ed) .brz-population-mask {
3124
- background-clip: text;
3125
- -webkit-background-clip: text;
3126
- color: transparent !important; }
3127
-
3128
- .brz:not(.brz-ed) .brz-story .brz-rich-text > div {
3129
- width: 100%; }
3130
-
3131
- .brz .brz-counter {
3132
- position: relative; }
3133
- .brz .brz-counter .brz-counter-figures {
3134
- text-align: center;
3135
- display: -webkit-box;
3136
- display: -ms-flexbox;
3137
- display: flex; }
3138
- .brz .brz-counter .brz-counter-figures span {
3139
- word-break: normal;
3140
- white-space: pre; }
3141
- .brz .brz-counter-simple {
3142
- width: auto !important; }
3143
- .brz .brz-counter-radial .brz-counter-figures {
3144
- position: absolute;
3145
- top: 50%;
3146
- left: 50%;
3147
- -webkit-transform: translate(-50%, -50%);
3148
- transform: translate(-50%, -50%); }
3149
- .brz .brz-counter-empty .brz-counter-figures {
3150
- display: none; }
3151
- .brz .brz-counter-pie .brz-counter-figures {
3152
- display: none; }
3153
- .brz .brz-counter .brz-ed-box__resizer {
3154
- height: auto; }
3155
- .brz .brz-counter .brz-counter-chart {
3156
- text-align: center;
3157
- margin: 0 auto;
3158
- font-size: initial; }
3159
- .brz .brz-counter .brz-counter-chart svg {
3160
- width: 100%;
3161
- height: 100%;
3162
- -webkit-transform: rotate(-90deg);
3163
- transform: rotate(-90deg);
3164
- background: yellowgreen;
3165
- border-radius: 50%; }
3166
- .brz .brz-counter .brz-counter-chart.brz-counter-chart-radial svg {
3167
- background: transparent; }
3168
- .brz .brz-counter .brz-counter-chart.brz-counter-chart-radial .brz-counter-pie-chart {
3169
- fill: transparent; }
3170
- .brz .brz-counter .brz-counter-chart.brz-counter-chart-empty svg {
3171
- background: transparent; }
3172
- .brz .brz-counter .brz-counter-chart.brz-counter-chart-empty .brz-counter-pie-chart {
3173
- fill: transparent; }
3174
- .brz .brz-counter .brz-counter-chart.brz-counter-chart-empty .brz-counter-pie-chart {
3175
- stroke-width: 32; }
3176
- .brz .brz-counter .brz-counter-chart.brz-counter-chart-pie svg {
3177
- background: transparent; }
3178
- .brz .brz-counter .brz-counter-chart.brz-counter-chart-pie .brz-counter-pie-chart {
3179
- stroke-width: 32; }
3180
-
3181
- .brz .brz-progress-bar__wrapper {
3182
- overflow: hidden; }
3183
-
3184
- .brz .brz-progress-bar .brz-d-xs-flex {
3185
- width: 100%; }
3186
-
3187
- .brz .brz-progress-bar .brz-text__editor {
3188
- -webkit-box-flex: 1;
3189
- -ms-flex-positive: 1;
3190
- flex-grow: 1;
3191
- white-space: nowrap;
3192
- overflow: hidden;
3193
- text-overflow: ellipsis; }
3194
-
3195
- .brz .brz-progress-bar.brz-without-text .brz-progress-bar__percent {
3196
- width: 100%;
3197
- text-align: right; }
3198
-
3199
- .brz .brz-progress-bar-style1::after,
3200
- .brz .brz-progress-bar-style2 .brz-progress-bar-overlay::after {
3201
- content: "";
3202
- position: absolute;
3203
- top: 0;
3204
- left: 0;
3205
- width: 100%;
3206
- height: 100%;
3207
- pointer-events: none; }
3208
-
3209
- .brz .brz-progress-bar-style1,
3210
- .brz .brz-progress-bar-style2 .brz-progress-bar-overlay {
3211
- position: relative;
3212
- width: 100%; }
3213
-
3214
- .brz .brz-progress-bar-style2 .brz-progress-bar__percent {
3215
- position: relative;
3216
- display: inline-block;
3217
- padding: 4px 7px;
3218
- margin-bottom: 10px;
3219
- text-align: center; }
3220
-
3221
- .brz .brz-shortcode__placeholder {
3222
- display: -webkit-box;
3223
- display: -ms-flexbox;
3224
- display: flex;
3225
- -webkit-box-align: center;
3226
- -ms-flex-align: center;
3227
- align-items: center;
3228
- -webkit-box-pack: center;
3229
- -ms-flex-pack: center;
3230
- justify-content: center;
3231
- height: 100%;
3232
- width: 100%;
3233
- background-color: #ececec; }
3234
- .brz .brz-shortcode__placeholder * {
3235
- color: #c7c8ca !important; }
3236
- .brz .brz-shortcode__placeholder .brz-icon-svg {
3237
- width: calc(16px + (0.075 * 100%));
3238
- height: calc(16px + (0.075 * 100%)); }
3239
-
3240
- .brz .brz-soundcloud {
3241
- position: relative;
3242
- font-size: 0; }
3243
- .brz .brz-soundcloud::before {
3244
- content: " ";
3245
- position: absolute;
3246
- width: 100%;
3247
- height: 100%;
3248
- z-index: 3;
3249
- pointer-events: none; }
3250
- .brz .brz-soundcloud .brz-soundCloud-content {
3251
- overflow: hidden;
3252
- position: relative;
3253
- height: 100%;
3254
- width: 100%; }
3255
- .brz .brz-soundcloud .brz-soundCloud-content iframe {
3256
- width: 100%; }
3257
- .brz .brz-soundcloud .brz-soundCloud-content::before {
3258
- content: "";
3259
- width: 100%;
3260
- height: 100%;
3261
- position: absolute;
3262
- top: 0;
3263
- left: 0;
3264
- z-index: 2;
3265
- display: block;
3266
- pointer-events: none; }
3267
-
3268
- .brz .brz-slick-slider .brz-rich-text *,
3269
- .brz .brz-slick-slider .brz-icon-svg {
3270
- -webkit-backface-visibility: hidden;
3271
- backface-visibility: hidden; }
3272
-
3273
- .brz .brz-slick-slider .brz-bg-color {
3274
- -webkit-transform: translateZ(0);
3275
- transform: translateZ(0); }
3276
-
3277
- .brz .brz-slick-slider .slick-slide > div,
3278
- .brz .brz-slick-slider .brz-section__content {
3279
- outline: none; }
3280
-
3281
- .brz .brz-slick-slider--fade .slick-slide {
3282
- height: auto;
3283
- visibility: hidden; }
3284
- .brz .brz-slick-slider--fade .slick-slide.slick-active {
3285
- visibility: visible; }
3286
-
3287
- .brz .slick-initialized .slick-slide {
3288
- display: block; }
3289
-
3290
- .brz .slick-track {
3291
- display: -webkit-box;
3292
- display: -ms-flexbox;
3293
- display: flex;
3294
- -ms-flex-wrap: wrap;
3295
- flex-wrap: wrap;
3296
- will-change: left; }
3297
-
3298
- .brz .brz-slick-slider__dots {
3299
- position: absolute;
3300
- bottom: 50px;
3301
- left: 50%;
3302
- -webkit-transform: translateX(-50%);
3303
- transform: translateX(-50%);
3304
- padding: 0;
3305
- list-style: none;
3306
- margin: 0;
3307
- font-size: 0;
3308
- text-align: center; }
3309
- .brz .brz-slick-slider__dots li {
3310
- display: inline-block;
3311
- vertical-align: middle;
3312
- padding-left: 5px;
3313
- padding-right: 5px;
3314
- padding-top: 10px; }
3315
- .brz .brz-slick-slider__dots button {
3316
- cursor: pointer;
3317
- color: inherit !important;
3318
- outline: none;
3319
- overflow: hidden;
3320
- padding: 0;
3321
- text-indent: -9999px;
3322
- border: 2px solid currentColor;
3323
- border-radius: 0;
3324
- background-color: transparent !important;
3325
- -webkit-transition: background-color linear 0.2s, -webkit-transform linear 0.2s;
3326
- transition: background-color linear 0.2s, -webkit-transform linear 0.2s;
3327
- transition: transform linear 0.2s, background-color linear 0.2s;
3328
- transition: transform linear 0.2s, background-color linear 0.2s, -webkit-transform linear 0.2s; }
3329
- .brz .brz-slick-slider__dots .slick-active button {
3330
- background-color: currentColor !important;
3331
- -webkit-transition: background-color linear 0.2s, -webkit-transform linear 0.2s;
3332
- transition: background-color linear 0.2s, -webkit-transform linear 0.2s;
3333
- transition: transform linear 0.2s, background-color linear 0.2s;
3334
- transition: transform linear 0.2s, background-color linear 0.2s, -webkit-transform linear 0.2s; }
3335
- .brz .brz-slick-slider__dots--circle button {
3336
- width: 10px;
3337
- height: 10px;
3338
- border-radius: 10px; }
3339
- .brz .brz-slick-slider__dots--diamond button {
3340
- width: 10px;
3341
- height: 10px;
3342
- -webkit-transform: rotate(-45deg);
3343
- transform: rotate(-45deg); }
3344
- .brz .brz-slick-slider__dots--square button {
3345
- width: 10px;
3346
- height: 10px; }
3347
-
3348
- .brz .brz-slick-slider__arrow {
3349
- position: absolute;
3350
- top: 50%;
3351
- -webkit-transform: translateY(-50%);
3352
- transform: translateY(-50%);
3353
- z-index: 2;
3354
- font-size: 30px;
3355
- cursor: pointer;
3356
- -webkit-transition: opacity linear 0.2s;
3357
- transition: opacity linear 0.2s;
3358
- color: #000;
3359
- background-color: transparent;
3360
- border: none;
3361
- overflow: auto; }
3362
- .brz .brz-slick-slider__arrow:hover {
3363
- -webkit-transition: opacity linear 0.2s;
3364
- transition: opacity linear 0.2s; }
3365
- .brz .brz-slick-slider__arrow .brz-icon-svg {
3366
- display: block; }
3367
- .brz .brz-slick-slider__arrow-prev {
3368
- -webkit-transform: translateY(-50%) rotate(-180deg);
3369
- transform: translateY(-50%) rotate(-180deg);
3370
- left: 30px; }
3371
- .brz .brz-slick-slider__arrow-next {
3372
- right: 30px; }
3373
-
3374
- .brz .brz-forms {
3375
- width: 100%; }
3376
- .brz .brz-forms__wrap, .brz .brz-forms__fields {
3377
- display: -webkit-box;
3378
- display: -ms-flexbox;
3379
- display: flex;
3380
- -ms-flex-wrap: wrap;
3381
- flex-wrap: wrap; }
3382
- .brz .brz-forms__wrap {
3383
- -webkit-box-align: end;
3384
- -ms-flex-align: end;
3385
- align-items: flex-end; }
3386
- .brz .brz-forms__item {
3387
- -webkit-box-flex: 1;
3388
- -ms-flex-positive: 1;
3389
- flex-grow: 1;
3390
- -ms-flex-negative: 0;
3391
- flex-shrink: 0; }
3392
- .brz .brz-forms .brz-input,
3393
- .brz .brz-forms .brz-textarea {
3394
- display: block;
3395
- width: 100%;
3396
- height: auto;
3397
- background-color: transparent;
3398
- border: none;
3399
- outline: none;
3400
- color: inherit;
3401
- font-size: inherit;
3402
- font-family: inherit;
3403
- letter-spacing: inherit;
3404
- font-weight: inherit;
3405
- line-height: inherit;
3406
- -webkit-box-shadow: none;
3407
- box-shadow: none; }
3408
- .brz .brz-forms .brz-input::-webkit-input-placeholder,
3409
- .brz .brz-forms .brz-textarea::-webkit-input-placeholder {
3410
- color: inherit; }
3411
- .brz .brz-forms .brz-input::-moz-placeholder,
3412
- .brz .brz-forms .brz-textarea::-moz-placeholder {
3413
- color: inherit; }
3414
- .brz .brz-forms .brz-input::-ms-input-placeholder,
3415
- .brz .brz-forms .brz-textarea::-ms-input-placeholder {
3416
- color: inherit; }
3417
- .brz .brz-forms .brz-input::placeholder,
3418
- .brz .brz-forms .brz-textarea::placeholder {
3419
- color: inherit; }
3420
- .brz .brz-forms .brz-textarea {
3421
- height: 100%;
3422
- resize: none; }
3423
- .brz .brz-forms .brz-label {
3424
- display: block; }
3425
- .brz .brz-forms .brz-forms__field {
3426
- padding: 14px 24px;
3427
- text-align: left; }
3428
- .brz .brz-forms .brz-forms__field-label {
3429
- border: none;
3430
- cursor: auto; }
3431
- .brz .brz-forms__select {
3432
- position: relative; }
3433
- .brz .brz-forms__select-current {
3434
- display: -webkit-box;
3435
- display: -ms-flexbox;
3436
- display: flex;
3437
- -webkit-box-align: center;
3438
- -ms-flex-align: center;
3439
- align-items: center;
3440
- -webkit-box-pack: justify;
3441
- -ms-flex-pack: justify;
3442
- justify-content: space-between; }
3443
- .brz .brz-forms__select-current .brz-span {
3444
- width: 100%;
3445
- cursor: pointer; }
3446
- .brz .brz-forms__select-list {
3447
- border: 1px solid #dcdee1;
3448
- border-top-width: 0;
3449
- overflow: hidden;
3450
- position: absolute;
3451
- z-index: 1041;
3452
- top: 100%;
3453
- left: 0;
3454
- width: 100%;
3455
- background-color: #fff; }
3456
- .brz .brz-forms__select-item {
3457
- display: -webkit-box;
3458
- display: -ms-flexbox;
3459
- display: flex;
3460
- -ms-flex-wrap: nowrap;
3461
- flex-wrap: nowrap;
3462
- border: 0;
3463
- height: 52px; }
3464
- .brz .brz-forms__select-item:not(:last-child) {
3465
- border-bottom: 1px solid #f1f1f2; }
3466
- .brz .brz-forms__select-item__input {
3467
- -webkit-box-flex: 1;
3468
- -ms-flex: 1 1 auto;
3469
- flex: 1 1 auto;
3470
- font-size: 16px;
3471
- color: rgba(115, 119, 127, 0.7);
3472
- line-height: 1;
3473
- font-family: inherit;
3474
- font-weight: inherit;
3475
- padding: 14px 24px; }
3476
- .brz .brz-forms__select-item__input .brz-input {
3477
- border-width: 0;
3478
- height: 100%;
3479
- width: 100%;
3480
- color: inherit; }
3481
- .brz .brz-forms__select-item__input .brz-input::-webkit-input-placeholder {
3482
- color: rgba(115, 119, 127, 0.7);
3483
- font-style: italic; }
3484
- .brz .brz-forms__select-item__input .brz-input:-moz-placeholder {
3485
- color: rgba(115, 119, 127, 0.7);
3486
- font-style: italic; }
3487
- .brz .brz-forms__select-item__input .brz-input::-moz-placeholder {
3488
- color: rgba(115, 119, 127, 0.7);
3489
- font-style: italic; }
3490
- .brz .brz-forms__select-item__input .brz-input:-ms-input-placeholder {
3491
- color: rgba(115, 119, 127, 0.7);
3492
- font-style: italic; }
3493
- .brz .brz-forms__select-item__input .brz-input.brz-input {
3494
- cursor: text; }
3495
- .brz .brz-forms__select-item__icon {
3496
- color: rgba(115, 119, 127, 0.7);
3497
- -ms-flex-preferred-size: 52px;
3498
- flex-basis: 52px;
3499
- text-align: center;
3500
- font-size: 13px;
3501
- display: -webkit-box;
3502
- display: -ms-flexbox;
3503
- display: flex;
3504
- -webkit-box-align: center;
3505
- -ms-flex-align: center;
3506
- align-items: center;
3507
- -webkit-box-pack: center;
3508
- -ms-flex-pack: center;
3509
- justify-content: center;
3510
- cursor: pointer; }
3511
- .brz .brz-forms__select--arrow {
3512
- font-size: 14px; }
3513
- .brz .brz-forms .brz-control__select {
3514
- position: relative; }
3515
- .brz .brz-forms .brz-control__select-current,
3516
- .brz .brz-forms .brz-control__select-option {
3517
- display: -webkit-box;
3518
- display: -ms-flexbox;
3519
- display: flex;
3520
- -webkit-box-align: center;
3521
- -ms-flex-align: center;
3522
- align-items: center;
3523
- -webkit-box-pack: justify;
3524
- -ms-flex-pack: justify;
3525
- justify-content: space-between;
3526
- font-size: inherit;
3527
- color: inherit; }
3528
- .brz .brz-forms .brz-control__select-current {
3529
- padding: 14px 24px;
3530
- cursor: pointer; }
3531
- .brz .brz-forms .brz-control__select-current .brz-control__select-option {
3532
- border: 0;
3533
- -ms-flex-preferred-size: 100%;
3534
- flex-basis: 100%;
3535
- height: 100%; }
3536
- .brz .brz-forms .brz-control__select-current .brz-control__select--arrow {
3537
- font-size: 14px; }
3538
- .brz .brz-forms .brz-control__select-options {
3539
- border: 1px solid #dcdee1;
3540
- border-top-width: 0;
3541
- overflow: hidden;
3542
- position: absolute;
3543
- z-index: 1030;
3544
- top: 100%;
3545
- left: 0;
3546
- width: 100%;
3547
- background-color: #fff;
3548
- display: none; }
3549
- .brz .brz-forms .brz-control__select-options .brz-control__select-option {
3550
- padding: 14px 24px;
3551
- font-size: 16px;
3552
- height: 52px;
3553
- line-height: 1.5;
3554
- cursor: pointer; }
3555
- .brz .brz-forms .brz-control__select-options .brz-control__select-option:not(:last-child) {
3556
- border-bottom: 1px solid #f1f1f2; }
3557
- .brz .brz-forms__alert {
3558
- min-height: 55px;
3559
- width: 100%;
3560
- font-size: 12px;
3561
- line-height: 2;
3562
- letter-spacing: 2.5px;
3563
- font-weight: 600;
3564
- text-transform: uppercase;
3565
- padding: 17px 30px;
3566
- color: #fff;
3567
- margin-top: 15px; }
3568
- .brz .brz-forms__alert--success {
3569
- background-color: #15d053; }
3570
- .brz .brz-forms__alert--error {
3571
- background-color: #f00; }
3572
- .brz .brz-forms__item--error .brz-forms__field,
3573
- .brz .brz-forms__item--error .brz-control__select-current {
3574
- border-color: #f00 !important;
3575
- border-style: solid !important; }
3576
-
3577
- @media (max-width: 767px) {
3578
- .brz .brz-forms__select-item__input {
3579
- font-size: 14px;
3580
- padding: 10px 16px; }
3581
- .brz .brz-forms .brz-forms__field {
3582
- padding: 10px 16px; }
3583
- .brz .brz-forms .brz-control__select-current {
3584
- padding: 10px 16px; }
3585
- .brz .brz-forms .brz-control__select-options .brz-control__select-option {
3586
- padding: 10px 16px;
3587
- font-size: 14px; } }
3588
-
3589
- .brz .brz-forms2 {
3590
- width: 100%; }
3591
- .brz .brz-forms2 .brz-form {
3592
- display: -webkit-box;
3593
- display: -ms-flexbox;
3594
- display: flex;
3595
- -ms-flex-wrap: wrap;
3596
- flex-wrap: wrap;
3597
- -webkit-box-align: center;
3598
- -ms-flex-align: center;
3599
- align-items: center; }
3600
- .brz .brz-forms2 .brz-form-spinner {
3601
- position: absolute;
3602
- top: 50%;
3603
- left: 50%;
3604
- -webkit-transform: translate(-50%, -50%);
3605
- transform: translate(-50%, -50%); }
3606
- .brz .brz-forms2__wrap, .brz .brz-forms2__fields {
3607
- display: -webkit-box;
3608
- display: -ms-flexbox;
3609
- display: flex;
3610
- -ms-flex-wrap: wrap;
3611
- flex-wrap: wrap; }
3612
- .brz .brz-forms2__field {
3613
- outline: none; }
3614
- .brz .brz-forms2__wrap {
3615
- -webkit-box-align: end;
3616
- -ms-flex-align: end;
3617
- align-items: flex-end; }
3618
- .brz .brz-forms2__item {
3619
- -webkit-box-flex: 1;
3620
- -ms-flex-positive: 1;
3621
- flex-grow: 1;
3622
- -ms-flex-negative: 0;
3623
- flex-shrink: 0; }
3624
- .brz .brz-forms2 .brz-input,
3625
- .brz .brz-forms2 .brz-textarea {
3626
- display: block;
3627
- width: 100%;
3628
- height: auto;
3629
- max-width: 100%;
3630
- min-height: auto;
3631
- background-color: transparent;
3632
- border: none;
3633
- outline: none;
3634
- color: inherit;
3635
- font-size: inherit;
3636
- font-family: inherit;
3637
- letter-spacing: inherit;
3638
- font-weight: inherit;
3639
- line-height: inherit;
3640
- -webkit-box-shadow: none;
3641
- box-shadow: none; }
3642
- .brz .brz-forms2 .brz-input::-webkit-input-placeholder,
3643
- .brz .brz-forms2 .brz-textarea::-webkit-input-placeholder {
3644
- color: inherit;
3645
- opacity: 0.5; }
3646
- .brz .brz-forms2 .brz-input::-moz-placeholder,
3647
- .brz .brz-forms2 .brz-textarea::-moz-placeholder {
3648
- color: inherit;
3649
- opacity: 0.5; }
3650
- .brz .brz-forms2 .brz-input::-ms-input-placeholder,
3651
- .brz .brz-forms2 .brz-textarea::-ms-input-placeholder {
3652
- color: inherit;
3653
- opacity: 0.5; }
3654
- .brz .brz-forms2 .brz-input::placeholder,
3655
- .brz .brz-forms2 .brz-textarea::placeholder {
3656
- color: inherit;
3657
- opacity: 0.5; }
3658
- .brz .brz-forms2 .brz-textarea {
3659
- height: 100%;
3660
- resize: none; }
3661
- .brz .brz-forms2 .brz-label {
3662
- display: block; }
3663
- .brz .brz-forms2 .brz-forms2__field {
3664
- text-align: left; }
3665
- .brz .brz-forms2 .brz-forms2__field-label {
3666
- border: none;
3667
- cursor: auto; }
3668
- .brz .brz-forms2__radio.brz-forms2__field {
3669
- padding: 0;
3670
- border: none !important;
3671
- margin-bottom: -20px; }
3672
- .brz .brz-forms2__radio-option {
3673
- display: -webkit-box;
3674
- display: -ms-flexbox;
3675
- display: flex;
3676
- -webkit-box-align: center;
3677
- -ms-flex-align: center;
3678
- align-items: center;
3679
- -ms-flex-wrap: wrap;
3680
- flex-wrap: wrap;
3681
- -webkit-box-pack: justify;
3682
- -ms-flex-pack: justify;
3683
- justify-content: space-between;
3684
- padding-bottom: 1.2em; }
3685
- .brz .brz-forms2__radio-option .brz-span {
3686
- margin-left: 10px;
3687
- margin-right: auto; }
3688
- .brz .brz-forms2__radio-option input.brz-input {
3689
- cursor: auto; }
3690
- .brz .brz-forms2__checkbox-options, .brz .brz-forms2__radio-options {
3691
- display: -webkit-box;
3692
- display: -ms-flexbox;
3693
- display: flex;
3694
- -webkit-box-align: center;
3695
- -ms-flex-align: center;
3696
- align-items: center;
3697
- -ms-flex-wrap: wrap;
3698
- flex-wrap: wrap; }
3699
- .brz .brz-forms2 .brz-control__check-group-icon,
3700
- .brz .brz-forms2 .brz-control__radio-check {
3701
- -ms-flex-preferred-size: 1em;
3702
- flex-basis: 1em; }
3703
- .brz .brz-forms2 .brz-forms2__checkbox-option-name,
3704
- .brz .brz-forms2 .brz-forms2__radio-option-name {
3705
- -ms-flex-preferred-size: calc(100% - 1em - 10px);
3706
- flex-basis: calc(100% - 1em - 10px); }
3707
- .brz .brz-forms2__checkbox.brz-forms2__field {
3708
- padding: 0;
3709
- border: none !important;
3710
- margin-bottom: -20px; }
3711
- .brz .brz-forms2__checkbox-option {
3712
- display: -webkit-box;
3713
- display: -ms-flexbox;
3714
- display: flex;
3715
- -webkit-box-align: center;
3716
- -ms-flex-align: center;
3717
- align-items: center;
3718
- -ms-flex-wrap: wrap;
3719
- flex-wrap: wrap;
3720
- -webkit-box-pack: justify;
3721
- -ms-flex-pack: justify;
3722
- justify-content: space-between;
3723
- padding-bottom: 1.2em; }
3724
- .brz .brz-forms2__checkbox-option .brz-forms2__checkbox-option-name {
3725
- margin-left: 10px;
3726
- margin-right: auto; }
3727
- .brz .brz-forms2__checkbox-option input.brz-input {
3728
- cursor: auto; }
3729
- .brz .brz-forms2__checkbox-option .brz-control__radio-check {
3730
- border-radius: 0; }
3731
- .brz .brz-forms2__field-select,
3732
- .brz .brz-forms2 .brz-forms2__field-fileUpload {
3733
- display: -webkit-box;
3734
- display: -ms-flexbox;
3735
- display: flex;
3736
- -ms-flex-wrap: wrap;
3737
- flex-wrap: wrap;
3738
- -webkit-box-orient: vertical;
3739
- -webkit-box-direction: normal;
3740
- -ms-flex-direction: column;
3741
- flex-direction: column;
3742
- -webkit-box-pack: stretch;
3743
- -ms-flex-pack: stretch;
3744
- justify-content: stretch; }
3745
- .brz .brz-forms2__select-current,
3746
- .brz .brz-forms2 .brz-forms2__field-fileUpload .brz-label {
3747
- -webkit-box-flex: 1;
3748
- -ms-flex: 1;
3749
- flex: 1; }
3750
- .brz .brz-forms2__item-button .brz-btn {
3751
- outline: none;
3752
- width: 100%;
3753
- position: relative; }
3754
- .brz .brz-forms2__item-button .brz-icon-svg {
3755
- -webkit-box-flex: 0;
3756
- -ms-flex-positive: 0;
3757
- flex-grow: 0; }
3758
- .brz .brz-forms2__select-list .brz-forms2__select-item:not(:last-child) {
3759
- border-bottom-width: 0; }
3760
- .brz .brz-forms2__alert {
3761
- min-height: 55px;
3762
- width: 100%;
3763
- font-size: 12px;
3764
- line-height: 2;
3765
- letter-spacing: 2.5px;
3766
- font-weight: 600;
3767
- text-transform: uppercase;
3768
- padding: 17px 30px;
3769
- color: #fff;
3770
- margin-top: 15px; }
3771
- .brz .brz-forms2__alert--success {
3772
- background-color: #15d053; }
3773
- .brz .brz-forms2__alert--error {
3774
- background-color: #f00; }
3775
- .brz .brz-forms2__item--error .brz-control__check-group,
3776
- .brz .brz-forms2__item--error .brz-control__radio {
3777
- color: #f00 !important; }
3778
-
3779
- .brz.brz:not(.brz-ed) .brz-control__check-group .brz-label {
3780
- font: inherit;
3781
- display: inherit;
3782
- -webkit-box-align: inherit;
3783
- -ms-flex-align: inherit;
3784
- align-items: inherit;
3785
- -webkit-box-pack: inherit;
3786
- -ms-flex-pack: inherit;
3787
- justify-content: inherit;
3788
- width: 100%;
3789
- cursor: pointer; }
3790
-
3791
- .brz.brz:not(.brz-ed) .brz-control__check-group--check {
3792
- display: none; }
3793
-
3794
- .brz.brz:not(.brz-ed) .brz-control__check-group .brz-input {
3795
- display: none; }
3796
- .brz.brz:not(.brz-ed) .brz-control__check-group .brz-input:checked ~ .brz-label .brz-control__check-group--check {
3797
- display: inline-block; }
3798
- .brz.brz:not(.brz-ed) .brz-control__check-group .brz-input:checked ~ .brz-label .brz-control__check-group--uncheck {
3799
- display: none; }
3800
-
3801
- .brz.brz:not(.brz-ed) .brz-control__radio .brz-label {
3802
- font: inherit;
3803
- display: inherit;
3804
- -webkit-box-align: inherit;
3805
- -ms-flex-align: inherit;
3806
- align-items: inherit;
3807
- width: 100%;
3808
- cursor: pointer; }
3809
-
3810
- .brz.brz:not(.brz-ed) .brz-control__radio--check {
3811
- display: none; }
3812
-
3813
- .brz.brz:not(.brz-ed) .brz-control__radio .brz-input {
3814
- display: none; }
3815
- .brz.brz:not(.brz-ed) .brz-control__radio .brz-input:checked ~ .brz-label .brz-control__radio--check {
3816
- display: inline-block; }
3817
- .brz.brz:not(.brz-ed) .brz-control__radio .brz-input:checked ~ .brz-label .brz-control__radio--uncheck {
3818
- display: none; }
3819
-
3820
- .brz.brz:not(.brz-ed) .brz-forms2__field-select {
3821
- padding: 0; }
3822
-
3823
- .brz.brz:not(.brz-ed) .brz-select {
3824
- width: 100%;
3825
- visibility: hidden; }
3826
-
3827
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-dropdown {
3828
- background-color: #fff;
3829
- border: none;
3830
- border-radius: 0; }
3831
-
3832
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-results__option {
3833
- margin: 0;
3834
- padding: 12px 24px;
3835
- font-size: inherit;
3836
- line-height: inherit;
3837
- height: auto;
3838
- cursor: pointer;
3839
- background-color: inherit; }
3840
-
3841
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-results__option:not(:last-child) {
3842
- border-bottom-width: 0; }
3843
-
3844
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2 .selection, .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-container {
3845
- display: -webkit-box;
3846
- display: -ms-flexbox;
3847
- display: flex;
3848
- -webkit-box-orient: vertical;
3849
- -webkit-box-direction: normal;
3850
- -ms-flex-direction: column;
3851
- flex-direction: column;
3852
- -webkit-box-align: stretch;
3853
- -ms-flex-align: stretch;
3854
- align-items: stretch;
3855
- -webkit-box-pack: stretch;
3856
- -ms-flex-pack: stretch;
3857
- justify-content: stretch;
3858
- -webkit-box-flex: 1;
3859
- -ms-flex: 1;
3860
- flex: 1; }
3861
-
3862
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-container, .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-selection {
3863
- outline: none; }
3864
-
3865
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-selection--multiple, .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-selection--single {
3866
- border: none;
3867
- background-color: transparent;
3868
- display: -webkit-box;
3869
- display: -ms-flexbox;
3870
- display: flex;
3871
- -webkit-box-align: center;
3872
- -ms-flex-align: center;
3873
- align-items: center;
3874
- -ms-flex-wrap: wrap;
3875
- flex-wrap: wrap;
3876
- -webkit-box-flex: 1;
3877
- -ms-flex: 1;
3878
- flex: 1; }
3879
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-selection--multiple .select2-selection__rendered, .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-selection--single .select2-selection__rendered {
3880
- color: inherit;
3881
- line-height: inherit;
3882
- padding: 0;
3883
- -webkit-box-flex: 1;
3884
- -ms-flex: 1;
3885
- flex: 1; }
3886
-
3887
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-selection--multiple .select2-selection__rendered {
3888
- display: -webkit-box;
3889
- display: -ms-flexbox;
3890
- display: flex;
3891
- -ms-flex-wrap: wrap;
3892
- flex-wrap: wrap;
3893
- margin: -2.5px;
3894
- font-family: inherit; }
3895
-
3896
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-selection--multiple .select2-selection__choice {
3897
- margin: 2.5px;
3898
- float: none;
3899
- display: -webkit-box;
3900
- display: -ms-flexbox;
3901
- display: flex;
3902
- -webkit-box-orient: horizontal;
3903
- -webkit-box-direction: reverse;
3904
- -ms-flex-direction: row-reverse;
3905
- flex-direction: row-reverse;
3906
- -ms-flex-wrap: wrap;
3907
- flex-wrap: wrap;
3908
- -webkit-box-align: center;
3909
- -ms-flex-align: center;
3910
- align-items: center;
3911
- border: none;
3912
- padding: 0 11px; }
3913
-
3914
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-selection--multiple .select2-selection__choice__remove {
3915
- display: block;
3916
- font-size: inherit;
3917
- font-weight: normal;
3918
- color: inherit;
3919
- margin-right: 0;
3920
- margin-left: 8px; }
3921
-
3922
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-selection__arrow {
3923
- top: 50%;
3924
- right: 18px;
3925
- -webkit-transform: translateY(-50%);
3926
- transform: translateY(-50%); }
3927
-
3928
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-selection__clear {
3929
- margin-right: 14px; }
3930
-
3931
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-search__field {
3932
- font: inherit;
3933
- color: inherit;
3934
- margin: 0;
3935
- letter-spacing: inherit; }
3936
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-search__field::-webkit-input-placeholder {
3937
- color: inherit; }
3938
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-search__field::-moz-placeholder {
3939
- color: inherit; }
3940
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-search__field::-ms-input-placeholder {
3941
- color: inherit; }
3942
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-search__field::placeholder {
3943
- color: inherit; }
3944
-
3945
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-container .select2-search--inline {
3946
- margin: 2.5px;
3947
- -webkit-box-flex: 1;
3948
- -ms-flex: 1;
3949
- flex: 1;
3950
- float: none; }
3951
-
3952
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-container--default .select2-results > .select2-results__options {
3953
- max-height: initial; }
3954
-
3955
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-container--default .select2-results__option--highlighted[aria-selected] {
3956
- background-color: inherit;
3957
- color: inherit; }
3958
-
3959
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-container--default .select2-selection--single .select2-selection__placeholder {
3960
- color: inherit; }
3961
-
3962
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-container--default .select2-selection--single .select2-selection__placeholder:empty:before {
3963
- content: "Fake content";
3964
- visibility: hidden; }
3965
-
3966
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-container--default .select2-selection--single .select2-selection__arrow b {
3967
- border-color: currentColor transparent transparent; }
3968
-
3969
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-container--default.select2-container--open .select2-selection--single
3970
- .select2-selection__arrow
3971
- b {
3972
- border-color: transparent transparent currentColor; }
3973
-
3974
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-container--open .select2-dropdown {
3975
- top: 1px;
3976
- max-height: 200px;
3977
- overflow: hidden; }
3978
-
3979
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .select2-dropdown--below {
3980
- background-color: transparent; }
3981
-
3982
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps__thumb-y {
3983
- background-color: rgba(0, 0, 0, 0.2); }
3984
-
3985
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps .ps__rail-x:hover,
3986
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps .ps__rail-y:hover,
3987
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps .ps__rail-x:focus,
3988
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps .ps__rail-y:focus,
3989
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps .ps__rail-x.ps--clicking,
3990
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps .ps__rail-y.ps--clicking {
3991
- background-color: transparent; }
3992
-
3993
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps__rail-y:hover > .ps__thumb-y,
3994
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps__rail-y:focus > .ps__thumb-y,
3995
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps__rail-y.ps--clicking .ps__thumb-y {
3996
- width: 6px; }
3997
-
3998
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps__rail-x,
3999
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps__rail-y,
4000
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps:hover > .ps__rail-x,
4001
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps:hover > .ps__rail-y,
4002
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps--focus > .ps__rail-x,
4003
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps--focus > .ps__rail-y,
4004
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps--scrolling-x > .ps__rail-x,
4005
- .brz.brz:not(.brz-ed) .brz-forms2__field-select .ps--scrolling-y > .ps__rail-y {
4006
- opacity: 1; }
4007
-
4008
- .brz.brz:not(.brz-ed) .flatpickr-calendar {
4009
- font-family: "Lato", sans-serif;
4010
- width: 306px; }
4011
-
4012
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime {
4013
- width: 150px; }
4014
-
4015
- .brz.brz:not(.brz-ed) .flatpickr-calendar.open {
4016
- max-height: 600px; }
4017
-
4018
- .brz.brz:not(.brz-ed) .flatpickr-calendar .dayContainer {
4019
- width: 286px;
4020
- min-width: 286px;
4021
- max-width: 286px; }
4022
-
4023
- .brz.brz:not(.brz-ed) .flatpickr-calendar .numInputWrapper:hover {
4024
- background-color: transparent; }
4025
-
4026
- .brz.brz:not(.brz-ed) .flatpickr-months {
4027
- padding: 10px 10px 0; }
4028
-
4029
- .brz.brz:not(.brz-ed) .flatpickr-innerContainer {
4030
- padding: 0 10px 10px; }
4031
-
4032
- .brz.brz:not(.brz-ed) .flatpickr-next-month, .brz.brz:not(.brz-ed) .flatpickr-prev-month {
4033
- top: 7px; }
4034
-
4035
- .brz.brz:not(.brz-ed) .flatpickr-next-month {
4036
- right: 10px; }
4037
-
4038
- .brz.brz:not(.brz-ed) .flatpickr-prev-month {
4039
- left: 10px; }
4040
-
4041
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-prev-month,
4042
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-next-month {
4043
- color: rgba(0, 0, 0, 0.5); }
4044
-
4045
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-prev-month:hover,
4046
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-next-month:hover {
4047
- color: black; }
4048
-
4049
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-prev-month svg,
4050
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-next-month svg {
4051
- fill: currentColor; }
4052
-
4053
- .brz.brz:not(.brz-ed) .flatpickr-current-month input.cur-year {
4054
- font-size: 17px;
4055
- font-weight: 700; }
4056
-
4057
- .brz.brz:not(.brz-ed) .flatpickr-current-month .numInputWrapper:hover,
4058
- .brz.brz:not(.brz-ed) .flatpickr-current-month span.cur-month:hover {
4059
- background-color: transparent; }
4060
-
4061
- .brz.brz:not(.brz-ed) .flatpickr-weekdays {
4062
- padding: 20px 0 15px;
4063
- height: auto; }
4064
-
4065
- .brz.brz:not(.brz-ed) .flatpickr-weekday {
4066
- color: rgba(0, 0, 0, 0.8); }
4067
-
4068
- .brz.brz:not(.brz-ed) .flatpickr-days {
4069
- width: 286px;
4070
- font-size: 13px;
4071
- font-weight: 700; }
4072
-
4073
- .brz.brz:not(.brz-ed) .flatpickr-day {
4074
- height: 36px;
4075
- max-width: 36px;
4076
- line-height: 1;
4077
- display: -webkit-box;
4078
- display: -ms-flexbox;
4079
- display: flex;
4080
- -webkit-box-align: center;
4081
- -ms-flex-align: center;
4082
- align-items: center;
4083
- -webkit-box-pack: center;
4084
- -ms-flex-pack: center;
4085
- justify-content: center; }
4086
-
4087
- .brz.brz:not(.brz-ed) .flatpickr-day.today {
4088
- border-color: #a9a9a9; }
4089
-
4090
- .brz.brz:not(.brz-ed) .flatpickr-day:hover, .brz.brz:not(.brz-ed) .flatpickr-day:focus {
4091
- color: #fff;
4092
- border-color: #a9a9a9;
4093
- background-color: #a9a9a9; }
4094
-
4095
- .brz.brz:not(.brz-ed) .flatpickr-day.selected {
4096
- border-color: rgba(0, 0, 0, 0.9);
4097
- background-color: rgba(0, 0, 0, 0.9); }
4098
-
4099
- .brz.brz:not(.brz-ed) .flatpickr-time input {
4100
- font-size: 15px;
4101
- font-weight: 700;
4102
- text-align: left;
4103
- text-indent: 12px; }
4104
-
4105
- .brz.brz:not(.brz-ed) .flatpickr-time input:hover,
4106
- .brz.brz:not(.brz-ed) .flatpickr-time input:focus,
4107
- .brz.brz:not(.brz-ed) .flatpickr-time .flatpickr-am-pm:hover,
4108
- .brz.brz:not(.brz-ed) .flatpickr-time .flatpickr-am-pm:focus {
4109
- background-color: transparent; }
4110
-
4111
- .brz.brz:not(.brz-ed) .flatpickr-am-pm {
4112
- font-size: 14px;
4113
- font-weight: 700;
4114
- color: rgba(0, 0, 0, 0.7);
4115
- width: 32.66%; }
4116
-
4117
- .brz.brz:not(.brz-ed) .flatpickr-am-pm:hover, .brz.brz:not(.brz-ed) .flatpickr-am-pm:focus {
4118
- color: black; }
4119
-
4120
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime .numInputWrapper {
4121
- width: 32.66%; }
4122
-
4123
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime .numInputWrapper span.arrowUp,
4124
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime .numInputWrapper span.arrowDown {
4125
- height: 10px;
4126
- top: 50%; }
4127
-
4128
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime .numInputWrapper span.arrowUp {
4129
- margin-top: -10px; }
4130
-
4131
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime .numInputWrapper span.arrowDown {
4132
- margin-bottom: -10px; }
4133
-
4134
- .brz.brz:not(.brz-ed) .brz-g-recaptcha {
4135
- font-size: initial; }
4136
-
4137
- .brz .brz-input__upload {
4138
- position: relative; }
4139
- .brz .brz-input__upload .brz-label {
4140
- font: inherit;
4141
- width: 100%;
4142
- height: 100%;
4143
- display: -webkit-box;
4144
- display: -ms-flexbox;
4145
- display: flex;
4146
- -webkit-box-align: center;
4147
- -ms-flex-align: center;
4148
- align-items: center;
4149
- padding-right: 1.5em;
4150
- cursor: pointer; }
4151
- .brz .brz-input__upload .brz-label .brz-span {
4152
- max-width: 100%;
4153
- overflow: hidden;
4154
- text-overflow: ellipsis;
4155
- white-space: nowrap; }
4156
- .brz .brz-input__upload .brz-label .brz-span:empty:before {
4157
- content: "Hidden Placeholder";
4158
- visibility: hidden; }
4159
- .brz .brz-input__upload .brz-input__upload-delete {
4160
- cursor: pointer;
4161
- position: absolute;
4162
- top: 50%;
4163
- right: 24px;
4164
- -webkit-transform: translateY(-50%);
4165
- transform: translateY(-50%);
4166
- font-size: 1.5em; }
4167
- .brz .brz-input__upload .brz-input:not(.brz-input__upload-placeholder) {
4168
- display: none; }
4169
- .brz .brz-input__upload .brz-button {
4170
- background-color: #fff;
4171
- color: #000;
4172
- border: 1px solid #ccc;
4173
- border-radius: 3px;
4174
- font-size: inherit;
4175
- font-weight: inherit;
4176
- font-family: inherit;
4177
- line-height: 1;
4178
- padding: 0.5em;
4179
- position: absolute;
4180
- top: 50%;
4181
- right: 24px;
4182
- -webkit-transform: translateY(-50%);
4183
- transform: translateY(-50%);
4184
- outline: none !important; }
4185
-
4186
- @media (max-width: 767px) {
4187
- .brz .brz-forms2__select-item__input {
4188
- font-size: 14px;
4189
- padding: 10px 16px; }
4190
- .brz .brz-forms2 .brz-control__select-current {
4191
- padding: 10px 16px; }
4192
- .brz .brz-forms2 .brz-control__select-options .brz-control__select-option {
4193
- padding: 10px 16px;
4194
- font-size: 14px; } }
4195
-
4196
- .brz .brz-story .brz-form {
4197
- width: 100%;
4198
- margin: 0; }
4199
- .brz .brz-story .brz-form .brz-g-recaptcha .grecaptcha-badge {
4200
- position: initial !important;
4201
- margin-top: 10px; }
4202
- .brz .brz-story .brz-form .brz-forms2__item-button {
4203
- padding-bottom: 0; }
4204
- .brz .brz-story .brz-form .brz-forms2__item-button .brz-btn {
4205
- width: 100%; }
4206
- .brz .brz-story .brz-form .brz-forms2__item-button .brz-btn::after {
4207
- padding-top: 0; }
4208
-
4209
- .brz .brz-tabs {
4210
- min-width: 0; }
4211
- .brz .brz-tabs--horizontal {
4212
- -webkit-box-flex: 1;
4213
- -ms-flex: 1 1 auto;
4214
- flex: 1 1 auto; }
4215
- .brz .brz-tabs--vertical {
4216
- display: -webkit-box;
4217
- display: -ms-flexbox;
4218
- display: flex;
4219
- width: 100%; }
4220
- .brz .brz-tabs--vertical.brz-tabs--right {
4221
- -webkit-box-orient: horizontal;
4222
- -webkit-box-direction: reverse;
4223
- -ms-flex-direction: row-reverse;
4224
- flex-direction: row-reverse; }
4225
- .brz .brz-tabs__nav {
4226
- overflow: hidden;
4227
- margin: 0;
4228
- padding: 0;
4229
- min-width: -webkit-fit-content;
4230
- min-width: -moz-fit-content;
4231
- min-width: fit-content; }
4232
- .brz .brz-tabs__nav--horizontal {
4233
- display: -webkit-box;
4234
- display: -ms-flexbox;
4235
- display: flex; }
4236
- .brz .brz-tabs__nav--button {
4237
- padding: 10px 15px;
4238
- cursor: pointer;
4239
- border-style: solid;
4240
- background-clip: padding-box;
4241
- display: -webkit-box;
4242
- display: -ms-flexbox;
4243
- display: flex;
4244
- -ms-flex-wrap: nowrap;
4245
- flex-wrap: nowrap;
4246
- -webkit-box-align: center;
4247
- -ms-flex-align: center;
4248
- align-items: center;
4249
- -webkit-box-orient: horizontal;
4250
- -webkit-box-direction: normal;
4251
- -ms-flex-direction: row;
4252
- flex-direction: row; }
4253
- .brz .brz-tabs__nav--item {
4254
- position: relative;
4255
- list-style: none;
4256
- margin: 0;
4257
- line-height: unset;
4258
- z-index: var(--zIndex); }
4259
- .brz .brz-tabs .brz-tabs__nav--style-1 .brz-tabs__nav--active:before, .brz .brz-tabs .brz-tabs__nav--style-1 .brz-tabs__nav--active:after {
4260
- content: "";
4261
- position: absolute; }
4262
- .brz .brz-tabs__nav--vertical.brz-tabs__nav--left .brz-tabs__nav--active:before, .brz .brz-tabs__nav--vertical.brz-tabs__nav--left .brz-tabs__nav--active:after {
4263
- height: 100vh;
4264
- right: 0; }
4265
- .brz .brz-tabs__nav--vertical.brz-tabs__nav--left .brz-tabs__nav--active:before {
4266
- bottom: 100%; }
4267
- .brz .brz-tabs__nav--vertical.brz-tabs__nav--right .brz-tabs__nav--active:before, .brz .brz-tabs__nav--vertical.brz-tabs__nav--right .brz-tabs__nav--active:after {
4268
- height: 100vh;
4269
- left: 0; }
4270
- .brz .brz-tabs__nav--vertical.brz-tabs__nav--right .brz-tabs__nav--active:before {
4271
- bottom: 100%; }
4272
- .brz .brz-tabs__nav--horizontal .brz-tabs__nav--active:before, .brz .brz-tabs__nav--horizontal .brz-tabs__nav--active:after {
4273
- width: 100vw;
4274
- height: 2px;
4275
- bottom: 0; }
4276
- .brz .brz-tabs__nav--horizontal .brz-tabs__nav--active:before {
4277
- left: -100vw; }
4278
- .brz .brz-tabs__nav--horizontal .brz-tabs__nav--active:after {
4279
- right: -100vw; }
4280
- .brz .brz-tabs__nav--mobile {
4281
- display: none; }
4282
- .brz .brz-tabs__items {
4283
- display: none;
4284
- border-style: solid;
4285
- background-clip: padding-box;
4286
- width: 100%; }
4287
- .brz .brz-tabs__items--active {
4288
- display: block; }
4289
- .brz .brz-tabs__items--active > .brz-tabs__item--content {
4290
- -webkit-animation-name: fadeIn;
4291
- animation-name: fadeIn;
4292
- -webkit-animation-duration: 0.15s;
4293
- animation-duration: 0.15s;
4294
- -webkit-animation-fill-mode: both;
4295
- animation-fill-mode: both; }
4296
- .brz .brz-tabs__items--active .brz-bg-content:empty {
4297
- min-height: 50px; }
4298
- .brz .brz-tabs__content--vertical {
4299
- -webkit-box-flex: 1;
4300
- -ms-flex-positive: 1;
4301
- flex-grow: 1; }
4302
- .brz .brz-tabs__content--vertical .brz-tabs__items {
4303
- height: 100%; }
4304
- .brz .brz-tabs__content--vertical.brz-tabs__content--style-1.brz-tabs__content--left .brz-tabs__items.brz-tabs__items--active,
4305
- .brz .brz-tabs__content--vertical.brz-tabs__content--style-1.brz-tabs__content--left .brz-tabs__items.brz-tabs__items--active:hover {
4306
- border-left-style: none; }
4307
- .brz .brz-tabs__content--vertical.brz-tabs__content--right.brz-tabs__content--style-1 .brz-tabs__items.brz-tabs__items--active,
4308
- .brz .brz-tabs__content--vertical.brz-tabs__content--right.brz-tabs__content--style-1 .brz-tabs__items.brz-tabs__items--active:hover {
4309
- border-right-style: none; }
4310
- .brz .brz-tabs__content--horizontal.brz-tabs__content--style-1 .brz-tabs__items.brz-tabs__items--active,
4311
- .brz .brz-tabs__content--horizontal.brz-tabs__content--style-1 .brz-tabs__items.brz-tabs__items--active:hover {
4312
- border-top-style: none; }
4313
-
4314
- @media (max-width: 991px) {
4315
- .brz .brz-tabs__nav {
4316
- margin: 0 !important; }
4317
- .brz .brz-tabs__content {
4318
- width: 100%; }
4319
- .brz .brz-tabs__nav--mobile {
4320
- display: -webkit-box;
4321
- display: -ms-flexbox;
4322
- display: flex; }
4323
- .brz .brz-tabs__nav--mobile > .brz-tabs__nav--button {
4324
- border-width: 0 !important;
4325
- -webkit-box-shadow: none !important;
4326
- box-shadow: none !important;
4327
- width: -webkit-max-content;
4328
- width: -moz-max-content;
4329
- width: max-content;
4330
- -webkit-box-align: center;
4331
- -ms-flex-align: center;
4332
- align-items: center;
4333
- word-break: break-all; }
4334
- .brz .brz-tabs__nav--desktop {
4335
- display: none; }
4336
- .brz .brz-tabs__items {
4337
- display: block; }
4338
- .brz .brz-tabs__items > .brz-tabs__item--content {
4339
- display: none; }
4340
- .brz .brz-tabs__items:not(:last-child) {
4341
- margin-bottom: 3px; }
4342
- .brz .brz-tabs__items--active > .brz-tabs__nav--button {
4343
- border-bottom: solid; }
4344
- .brz .brz-tabs__items--active > .brz-tabs__item--content {
4345
- display: block; }
4346
- .brz .brz-tabs__content--vertical .brz-tabs__items {
4347
- height: -webkit-fit-content;
4348
- height: -moz-fit-content;
4349
- height: fit-content; }
4350
- .brz .brz-tabs__content .brz-tabs__items--active {
4351
- border-top-style: solid; }
4352
- .brz .brz-tabs__content.brz-tabs__content--vertical.brz-tabs__content--left .brz-tabs__items.brz-tabs__items--active,
4353
- .brz .brz-tabs__content.brz-tabs__content--vertical.brz-tabs__content--left .brz-tabs__items.brz-tabs__items--active:hover {
4354
- border-left-style: solid; }
4355
- .brz .brz-tabs__content.brz-tabs__content--vertical.brz-tabs__content--right .brz-tabs__items.brz-tabs__items--active,
4356
- .brz .brz-tabs__content.brz-tabs__content--vertical.brz-tabs__content--right .brz-tabs__items.brz-tabs__items--active:hover {
4357
- border-right-style: solid; }
4358
- .brz .brz-tabs__content.brz-tabs__content--horizontal.brz-tabs__content--style-1 .brz-tabs__items.brz-tabs__items--active,
4359
- .brz .brz-tabs__content.brz-tabs__content--horizontal.brz-tabs__content--style-1 .brz-tabs__items.brz-tabs__items--active:hover {
4360
- border-top-style: solid; }
4361
- .brz .brz-tabs__nav--horizontal.brz-tabs__nav.brz-tabs__nav--style-2 {
4362
- display: none; } }
4363
-
4364
- .brz .brz-tabs__nav.brz-tabs__nav--style-3 .brz-tabs__nav--button:before {
4365
- content: ""; }
4366
-
4367
- .brz .brz-tabs__nav.brz-tabs__nav--style-3 .brz-tabs__nav--button {
4368
- border: none !important;
4369
- -webkit-box-shadow: none !important;
4370
- box-shadow: none !important; }
4371
-
4372
- .brz .brz-tabs__content--style-3 {
4373
- margin-top: 1px; }
4374
-
4375
- .brz .brz-tabs__content--style-3 .brz-tabs__items {
4376
- border: none !important;
4377
- -webkit-box-shadow: none !important;
4378
- box-shadow: none !important; }
4379
-
4380
- .brz .brz-tabs__nav--style-3 .brz-tabs__nav--item:before {
4381
- content: ""; }
4382
-
4383
- .brz .brz-tabs__nav--style-3 .brz-tabs__nav--item:after {
4384
- content: ""; }
4385
-
4386
- .brz .brz-timeline__tab {
4387
- position: relative;
4388
- list-style: none;
4389
- min-width: 280px; }
4390
- .brz .brz-timeline__tab:after {
4391
- content: "";
4392
- position: absolute; }
4393
- .brz .brz-timeline__tab:before {
4394
- content: "";
4395
- position: absolute; }
4396
- .brz .brz-timeline__tab:last-child:after {
4397
- display: none; }
4398
-
4399
- .brz .brz-timeline__nav--title {
4400
- position: relative;
4401
- text-align: center;
4402
- left: -10px;
4403
- min-width: 116px;
4404
- max-width: 116px;
4405
- width: 116px; }
4406
-
4407
- .brz .brz-timeline__nav--icon {
4408
- margin-left: 20px; }
4409
-
4410
- .brz .brz-timeline__content {
4411
- border-style: solid;
4412
- border-radius: 5px;
4413
- -webkit-box-shadow: 0 0 20px 0 rgba(52, 49, 75, 0.1);
4414
- box-shadow: 0 0 20px 0 rgba(52, 49, 75, 0.1);
4415
- position: relative; }
4416
-
4417
- .brz .brz-timeline__content:before {
4418
- content: "";
4419
- position: absolute;
4420
- top: 0;
4421
- width: 15px;
4422
- height: 15px;
4423
- -webkit-transform: translateY(-50%) rotate(45deg);
4424
- transform: translateY(-50%) rotate(45deg); }
4425
-
4426
- .brz .brz-timeline__nav--mobile {
4427
- display: none; }
4428
-
4429
- .brz .brz-switcher {
4430
- display: -webkit-box;
4431
- display: -ms-flexbox;
4432
- display: flex;
4433
- -webkit-box-orient: vertical;
4434
- -webkit-box-direction: normal;
4435
- -ms-flex-direction: column;
4436
- flex-direction: column;
4437
- -webkit-box-align: center;
4438
- -ms-flex-align: center;
4439
- align-items: center;
4440
- width: 100%; }
4441
- .brz .brz-switcher__nav {
4442
- width: -webkit-fit-content;
4443
- width: -moz-fit-content;
4444
- width: fit-content;
4445
- display: -webkit-box;
4446
- display: -ms-flexbox;
4447
- display: flex;
4448
- -webkit-transition-duration: 300ms;
4449
- transition-duration: 300ms;
4450
- position: relative; }
4451
- .brz .brz-switcher__nav:before {
4452
- content: "";
4453
- position: absolute;
4454
- left: calc(50% - 2px);
4455
- height: calc(100% - 4px);
4456
- width: calc(50% - 2px);
4457
- margin: 2px;
4458
- -webkit-transition-duration: 300ms;
4459
- transition-duration: 300ms; }
4460
- .brz .brz-switcher__nav--item {
4461
- width: 50%;
4462
- height: 100%;
4463
- max-width: 50%;
4464
- display: -webkit-box;
4465
- display: -ms-flexbox;
4466
- display: flex;
4467
- -webkit-box-pack: center;
4468
- -ms-flex-pack: center;
4469
- justify-content: center;
4470
- -webkit-box-align: center;
4471
- -ms-flex-align: center;
4472
- align-items: center;
4473
- white-space: nowrap; }
4474
- .brz .brz-switcher__nav--button {
4475
- cursor: pointer;
4476
- background-clip: padding-box;
4477
- display: -webkit-box;
4478
- display: -ms-flexbox;
4479
- display: flex;
4480
- -ms-flex-wrap: nowrap;
4481
- flex-wrap: nowrap;
4482
- -webkit-box-align: center;
4483
- -ms-flex-align: center;
4484
- align-items: center;
4485
- -webkit-box-pack: center;
4486
- -ms-flex-pack: center;
4487
- justify-content: center; }
4488
- .brz .brz-switcher__nav--item--active {
4489
- z-index: 1; }
4490
- .brz .brz-switcher__nav--active:before {
4491
- content: "";
4492
- -webkit-transform: translateX(-100%);
4493
- transform: translateX(-100%); }
4494
- .brz .brz-switcher__nav--text {
4495
- position: relative; }
4496
- .brz .brz-switcher__content--tab {
4497
- display: none;
4498
- width: 100%; }
4499
- .brz .brz-switcher__content--tab--active {
4500
- display: -webkit-box;
4501
- display: -ms-flexbox;
4502
- display: flex; }
4503
-
4504
- .brz .brz-switcher__nav > .brz-switcher__nav--item > span {
4505
- cursor: pointer; }
4506
-
4507
- .brz .brz-switcher__nav2 {
4508
- display: -webkit-box;
4509
- display: -ms-flexbox;
4510
- display: flex;
4511
- width: 100%;
4512
- -webkit-box-pack: center;
4513
- -ms-flex-pack: center;
4514
- justify-content: center;
4515
- -webkit-box-align: center;
4516
- -ms-flex-align: center;
4517
- align-items: center; }
4518
- .brz .brz-switcher__nav2--control {
4519
- height: 47px;
4520
- display: -webkit-box;
4521
- display: -ms-flexbox;
4522
- display: flex;
4523
- -webkit-transition-duration: 300ms;
4524
- transition-duration: 300ms; }
4525
- .brz .brz-switcher__nav2--control:before {
4526
- content: "";
4527
- position: relative;
4528
- left: calc(50% + 2px);
4529
- margin: 2px;
4530
- height: calc(100% - 4px);
4531
- width: calc(50% - 5px);
4532
- -webkit-transition-duration: 300ms;
4533
- transition-duration: 300ms; }
4534
- .brz .brz-switcher__nav2--control--active:before {
4535
- content: "";
4536
- -webkit-transform: translateX(calc(-100% - 8px));
4537
- transform: translateX(calc(-100% - 8px)); }
4538
- .brz .brz-switcher__nav2--button {
4539
- cursor: pointer;
4540
- display: -webkit-box;
4541
- display: -ms-flexbox;
4542
- display: flex;
4543
- -ms-flex-wrap: nowrap;
4544
- flex-wrap: nowrap;
4545
- -webkit-box-align: center;
4546
- -ms-flex-align: center;
4547
- align-items: center;
4548
- -webkit-box-orient: horizontal;
4549
- -webkit-box-direction: normal;
4550
- -ms-flex-direction: row;
4551
- flex-direction: row;
4552
- -webkit-box-pack: center;
4553
- -ms-flex-pack: center;
4554
- justify-content: center; }
4555
- .brz .brz-switcher__nav2 .brz-switcher__nav2--button {
4556
- margin: 0 20px; }
4557
-
4558
- .brz .brz-switcher--style2 > .brz-switcher__nav2 > span {
4559
- cursor: pointer; }
4560
-
4561
- .brz .brz-table {
4562
- display: table;
4563
- table-layout: fixed;
4564
- margin: 0; }
4565
- .brz .brz-table .brz-table__tr:nth-child(even) .brz-table__td {
4566
- font-size: initial;
4567
- font-style: inherit;
4568
- font-family: inherit; }
4569
- .brz .brz-table .brz-table__tr:nth-child(2n + 1) .brz-table__td {
4570
- font-size: initial;
4571
- font-style: inherit;
4572
- font-family: inherit; }
4573
- .brz .brz-table__th--btn {
4574
- display: -webkit-box;
4575
- display: -ms-flexbox;
4576
- display: flex;
4577
- -webkit-box-pack: center;
4578
- -ms-flex-pack: center;
4579
- justify-content: center; }
4580
-
4581
- .brz .brz-table__th .brz-span {
4582
- margin: auto 0; }
4583
-
4584
- @media (max-width: 991px) {
4585
- .brz .brz-table {
4586
- display: block;
4587
- overflow-x: auto;
4588
- border-collapse: collapse;
4589
- max-width: 100%; }
4590
- .brz .brz-table .brz-rich-text {
4591
- overflow-wrap: normal;
4592
- word-break: normal;
4593
- word-wrap: normal; } }
4594
-
4595
- .brz .brz-accordion {
4596
- -webkit-box-flex: 1;
4597
- -ms-flex: 1 1 auto;
4598
- flex: 1 1 auto;
4599
- display: -webkit-box;
4600
- display: -ms-flexbox;
4601
- display: flex;
4602
- -webkit-box-orient: vertical;
4603
- -webkit-box-direction: normal;
4604
- -ms-flex-direction: column;
4605
- flex-direction: column; }
4606
- .brz .brz-accordion__nav {
4607
- cursor: pointer;
4608
- background-clip: padding-box;
4609
- display: -webkit-box;
4610
- display: -ms-flexbox;
4611
- display: flex;
4612
- -webkit-box-pack: justify;
4613
- -ms-flex-pack: justify;
4614
- justify-content: space-between;
4615
- -webkit-box-align: center;
4616
- -ms-flex-align: center;
4617
- align-items: center; }
4618
- .brz .brz-accordion__nav--icon, .brz .brz-accordion__nav--previewIcon, .brz .brz-accordion__nav--previewIcon--active {
4619
- margin: auto 0; }
4620
- .brz .brz-accordion__item {
4621
- display: block;
4622
- width: 100%; }
4623
- .brz .brz-accordion__item > .brz-accordion__content {
4624
- overflow: hidden;
4625
- height: 0;
4626
- will-change: height, transition-duration;
4627
- background-clip: padding-box;
4628
- border-top-color: transparent !important; }
4629
- .brz .brz-accordion__item-content > * {
4630
- -ms-flex-negative: 0;
4631
- flex-shrink: 0; }
4632
- .brz .brz-accordion__item > .brz-accordion__nav .brz-accordion__nav-title {
4633
- outline: none;
4634
- white-space: pre-wrap;
4635
- overflow: hidden; }
4636
- .brz .brz-accordion__item > .brz-accordion__nav > .brz-accordion--icon-wrapper
4637
- > .brz-accordion__nav--previewIcon--active {
4638
- display: none; }
4639
- .brz .brz-accordion__item--active > .brz-accordion__nav
4640
- > .brz-accordion--icon-wrapper
4641
- > .brz-accordion__nav--previewIcon--active {
4642
- display: block; }
4643
- .brz .brz-accordion__item--active > .brz-accordion__nav
4644
- > .brz-accordion--icon-wrapper
4645
- > .brz-accordion__nav--previewIcon {
4646
- display: none; }
4647
- .brz .brz-accordion__item--active > .brz-accordion__content {
4648
- height: auto; }
4649
- .brz .brz-accordion__item--active > .brz-accordion__content > .brz-accordion__item-content:empty {
4650
- min-height: 50px; }
4651
-
4652
- .brz .brz-accordion__filter-wrapper {
4653
- width: 100%;
4654
- display: -webkit-box;
4655
- display: -ms-flexbox;
4656
- display: flex;
4657
- -webkit-box-pack: center;
4658
- -ms-flex-pack: center;
4659
- justify-content: center; }
4660
-
4661
- .brz .brz-accordion__filter {
4662
- width: 100%;
4663
- list-style: none;
4664
- display: -webkit-box;
4665
- display: -ms-flexbox;
4666
- display: flex;
4667
- -webkit-box-pack: inherit;
4668
- -ms-flex-pack: inherit;
4669
- justify-content: inherit;
4670
- padding: 0;
4671
- -ms-flex-wrap: wrap;
4672
- flex-wrap: wrap; }
4673
-
4674
- .brz .brz-accordion__filter--style-2 {
4675
- width: -webkit-fit-content;
4676
- width: -moz-fit-content;
4677
- width: fit-content; }
4678
-
4679
- .brz .brz-accordion__filter__item {
4680
- cursor: pointer; }
4681
-
4682
- .brz .brz-accordion__filter__item:first-child {
4683
- margin-left: 0 !important; }
4684
-
4685
- .brz .brz-accordion__filter__item:last-child {
4686
- margin-right: 0 !important; }
4687
-
4688
- .brz .brz-accordion__hidden {
4689
- display: none; }
4690
-
4691
- .brz .brz-image__gallery {
4692
- width: 100%; }
4693
- .brz .brz-image__gallery-wrapper .brz-image {
4694
- display: block; }
4695
- .brz .brz-image__gallery-item {
4696
- -webkit-transition: none !important;
4697
- transition: none !important; }
4698
-
4699
- .brz .brz-image__gallery--filter-wrapper {
4700
- width: 100%;
4701
- display: -webkit-box;
4702
- display: -ms-flexbox;
4703
- display: flex;
4704
- -webkit-box-pack: center;
4705
- -ms-flex-pack: center;
4706
- justify-content: center; }
4707
-
4708
- .brz .brz-image__gallery-filter {
4709
- width: 100%;
4710
- list-style: none;
4711
- display: -webkit-box;
4712
- display: -ms-flexbox;
4713
- display: flex;
4714
- -webkit-box-pack: center;
4715
- -ms-flex-pack: center;
4716
- justify-content: center;
4717
- -ms-flex-wrap: wrap;
4718
- flex-wrap: wrap;
4719
- padding: 0; }
4720
-
4721
- .brz .brz-image__gallery-filter--style-2 {
4722
- width: -webkit-fit-content;
4723
- width: -moz-fit-content;
4724
- width: fit-content; }
4725
-
4726
- .brz .brz-image__gallery-filter__item {
4727
- cursor: pointer; }
4728
-
4729
- .brz .brz-image__gallery-filter__item:first-child {
4730
- margin-left: 0 !important; }
4731
-
4732
- .brz .brz-image__gallery-filter__item:last-child {
4733
- margin-right: 0 !important; }
4734
-
4735
- .brz .mfp-close {
4736
- background-color: transparent !important; }
4737
-
4738
- .brz .mfp-arrow:hover,
4739
- .brz .mfp-close:hover {
4740
- background-color: transparent;
4741
- border: 0; }
4742
-
4743
- .brz .brz-popup {
4744
- position: fixed;
4745
- width: 100%;
4746
- height: 100%;
4747
- top: 0;
4748
- left: 0;
4749
- z-index: 1060;
4750
- display: -webkit-box;
4751
- display: -ms-flexbox;
4752
- display: flex;
4753
- -webkit-box-pack: center;
4754
- -ms-flex-pack: center;
4755
- justify-content: center; }
4756
- .brz .brz-popup__close {
4757
- position: absolute;
4758
- z-index: 2;
4759
- top: 36px;
4760
- left: 50px;
4761
- color: #fff;
4762
- font-size: 0;
4763
- cursor: pointer; }
4764
- .brz .brz-popup__close .brz-icon-svg {
4765
- font-size: 26px; }
4766
- .brz .brz-popup > .brz-container__wrap {
4767
- max-height: 100%;
4768
- padding-top: 70px;
4769
- padding-bottom: 70px;
4770
- -webkit-box-pack: center;
4771
- -ms-flex-pack: center;
4772
- justify-content: center; }
4773
- .brz .brz-popup .brz-container {
4774
- height: 100%;
4775
- -webkit-box-pack: center;
4776
- -ms-flex-pack: center;
4777
- justify-content: center; }
4778
- .brz .brz-popup .brz-container > .brz-row__container {
4779
- max-height: 100%; }
4780
- .brz .brz-popup .brz-container > .brz-row__container > .brz-row {
4781
- overflow-x: hidden;
4782
- overflow-y: auto;
4783
- max-height: 100%; }
4784
-
4785
- .brz .brz-popup__preview {
4786
- z-index: -1;
4787
- visibility: hidden;
4788
- -webkit-transform: translate(-100%);
4789
- transform: translate(-100%);
4790
- opacity: 0;
4791
- -webkit-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) opacity, 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) visibility, 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) z-index;
4792
- transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) opacity, 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) visibility, 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) z-index; }
4793
- .brz .brz-popup__preview.brz-popup--opened {
4794
- z-index: 1070;
4795
- visibility: visible;
4796
- -webkit-transform: translate(0);
4797
- transform: translate(0);
4798
- opacity: 1;
4799
- -webkit-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) opacity, 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) visibility, 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) z-index;
4800
- transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) opacity, 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) visibility, 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) z-index; }
4801
-
4802
- .brz .brz-popup2 {
4803
- position: fixed;
4804
- width: 100% !important;
4805
- height: 100%;
4806
- top: 0;
4807
- left: 0;
4808
- z-index: 1060;
4809
- max-width: 100% !important; }
4810
- .brz .brz-popup2__close {
4811
- position: absolute;
4812
- z-index: 2;
4813
- color: #fff;
4814
- font-size: 0;
4815
- cursor: pointer; }
4816
- .brz .brz-popup2__close .brz-icon-svg {
4817
- font-size: 26px; }
4818
- .brz .brz-popup2 .brz-container__wrap {
4819
- position: relative;
4820
- margin: 0; }
4821
- .brz .brz-popup2 .brz-container__wrap .brz-container {
4822
- height: 100%; }
4823
- .brz .brz-popup2__inner {
4824
- position: relative;
4825
- height: 100%;
4826
- overflow-x: hidden;
4827
- overflow-y: auto; }
4828
- .brz .brz-popup2__inner > .brz-container__wrap {
4829
- max-height: 100%;
4830
- margin: 0;
4831
- padding: 0;
4832
- min-width: 300px; }
4833
- .brz .brz-popup2__vertical-align {
4834
- -webkit-transform: rotate(270deg);
4835
- transform: rotate(270deg); }
4836
-
4837
- .brz .brz-popup2__custom2 .brz-popup2__inner
4838
- .brz-container__wrap
4839
- > .brz-container
4840
- > .brz-row__container {
4841
- height: 100%;
4842
- max-height: 100%; }
4843
- .brz .brz-popup2__custom2 .brz-popup2__inner
4844
- .brz-container__wrap
4845
- > .brz-container
4846
- > .brz-row__container > .brz-row {
4847
- max-height: 100%;
4848
- overflow-x: hidden;
4849
- overflow-y: auto; }
4850
-
4851
- .brz .brz-popup2__preview {
4852
- z-index: -1;
4853
- visibility: hidden;
4854
- -webkit-transform: translate(0, -110%);
4855
- transform: translate(0, -110%);
4856
- opacity: 0;
4857
- -webkit-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) opacity;
4858
- transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) opacity; }
4859
- .brz .brz-popup2__preview.brz-popup2--opened {
4860
- z-index: 1070;
4861
- visibility: visible;
4862
- -webkit-transform: translate(0, 0);
4863
- transform: translate(0, 0);
4864
- opacity: 1;
4865
- -webkit-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) opacity;
4866
- transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) opacity; }
4867
-
4868
- .brz .brz-carousel {
4869
- display: block;
4870
- width: 100%; }
4871
- .brz .brz-carousel__slider:not(.slick-initialized) {
4872
- display: -webkit-box;
4873
- display: -ms-flexbox;
4874
- display: flex;
4875
- -ms-flex-wrap: wrap;
4876
- flex-wrap: wrap; }
4877
- .brz .brz-carousel > .slick-slider {
4878
- overflow: hidden; }
4879
- .brz .brz-carousel > .slick-slider .slick-slide {
4880
- height: auto; }
4881
- .brz .brz-carousel > .slick-slider > .slick-list > .slick-track > .slick-slide > div {
4882
- height: 100%; }
4883
- .brz .brz-carousel > .slick-slider > .slick-list > .slick-track > .slick-slide > div > .brz-carousel__item,
4884
- .brz .brz-carousel > .slick-slider > .slick-list > .slick-track > .slick-slide > div > .brz-carousel__item > .brz-columns,
4885
- .brz .brz-carousel > .slick-slider > .slick-list > .slick-track > .slick-slide > div > .brz-columns {
4886
- height: 100%; }
4887
- .brz .brz-carousel > .slick-slider > .brz-slick-slider__arrow {
4888
- opacity: 1; }
4889
- .brz .brz-carousel > .slick-slider > .brz-slick-slider__dots {
4890
- position: relative;
4891
- width: -webkit-max-content;
4892
- width: -moz-max-content;
4893
- width: max-content;
4894
- bottom: 10px; }
4895
- .brz .brz-carousel > .slick-slider .slick-slide {
4896
- outline: none; }
4897
- .brz .brz-carousel > .slick-slider .slick-track {
4898
- -ms-flex-wrap: nowrap;
4899
- flex-wrap: nowrap; }
4900
- .brz .brz-carousel .brz-rich-text *,
4901
- .brz .brz-carousel .brz-icon-svg {
4902
- -webkit-backface-visibility: hidden;
4903
- backface-visibility: hidden; }
4904
-
4905
- @media (max-width: 767px) {
4906
- .brz.brz:not(.brz-ed) .slick-slider * {
4907
- min-width: 0;
4908
- min-height: 0; } }
4909
-
4910
- .brz .brz-posts {
4911
- width: 100%; }
4912
- .brz .brz-posts__wrapper {
4913
- display: -webkit-box;
4914
- display: -ms-flexbox;
4915
- display: flex;
4916
- -ms-flex-wrap: wrap;
4917
- flex-wrap: wrap; }
4918
- .brz .brz-posts__filter {
4919
- width: 100%;
4920
- list-style: none;
4921
- display: -webkit-box;
4922
- display: -ms-flexbox;
4923
- display: flex;
4924
- -webkit-box-pack: inherit;
4925
- -ms-flex-pack: inherit;
4926
- justify-content: inherit;
4927
- padding: 0;
4928
- -ms-flex-wrap: wrap;
4929
- flex-wrap: wrap; }
4930
- .brz .brz-posts__filter-wrapper {
4931
- width: 100%;
4932
- grid-column: 1 / -1;
4933
- -webkit-box-pack: center;
4934
- -ms-flex-pack: center;
4935
- justify-content: center; }
4936
- .brz .brz-posts__filter--style-2 {
4937
- width: -webkit-fit-content;
4938
- width: -moz-fit-content;
4939
- width: fit-content; }
4940
- .brz .brz-posts__filter__item {
4941
- cursor: pointer; }
4942
- .brz .brz-posts__filter__item:first-child {
4943
- margin-left: 0 !important; }
4944
- .brz .brz-posts__filter__item:last-child {
4945
- margin-right: 0 !important; }
4946
- .brz .brz-posts__item > .brz-columns {
4947
- height: 100%; }
4948
-
4949
- .brz .brz-posts__pagination ul.page-numbers {
4950
- display: -webkit-box;
4951
- display: -ms-flexbox;
4952
- display: flex;
4953
- -ms-flex-wrap: wrap;
4954
- flex-wrap: wrap;
4955
- -webkit-box-pack: center;
4956
- -ms-flex-pack: center;
4957
- justify-content: center;
4958
- -webkit-box-align: center;
4959
- -ms-flex-align: center;
4960
- align-items: center;
4961
- margin: 0;
4962
- padding: 0;
4963
- list-style: none; }
4964
-
4965
- .brz .brz-posts__pagination ul.page-numbers > li {
4966
- position: relative;
4967
- margin-left: 4px;
4968
- margin-right: 4px; }
4969
- .brz .brz-posts__pagination ul.page-numbers > li:first-child {
4970
- margin-left: 0; }
4971
- .brz .brz-posts__pagination ul.page-numbers > li:last-child {
4972
- margin-right: 0; }
4973
-
4974
- .brz .brz-posts__pagination ul.page-numbers .page-numbers {
4975
- position: relative;
4976
- display: block;
4977
- padding: 6px 10px;
4978
- outline: none;
4979
- color: inherit;
4980
- font-size: 18px;
4981
- line-height: 1;
4982
- text-decoration: none;
4983
- -webkit-transition: 0.2s linear color;
4984
- transition: 0.2s linear color; }
4985
- .brz .brz-posts__pagination ul.page-numbers .page-numbers:hover {
4986
- -webkit-transition: 0.2s linear color;
4987
- transition: 0.2s linear color; }
4988
-
4989
- .brz .fb_iframe_widget {
4990
- min-height: 20px; }
4991
-
4992
- .brz .fb-page,
4993
- .brz .fb-page span,
4994
- .brz .fb-page span iframe[style],
4995
- .brz .fb-post,
4996
- .brz .fb-video,
4997
- .brz .fb-comments,
4998
- .brz .fb-comments span,
4999
- .brz .fb-comments span iframe[style] {
5000
- width: 100% !important;
5001
- min-width: 100% !important; }
5002
-
5003
- .brz .brz-fb-page,
5004
- .brz .brz-fb-embed,
5005
- .brz .brz-fb-group {
5006
- position: relative;
5007
- width: 100%; }
5008
- .brz .brz-fb-page::before,
5009
- .brz .brz-fb-embed::before,
5010
- .brz .brz-fb-group::before {
5011
- content: "";
5012
- width: 100%;
5013
- height: 100%;
5014
- position: absolute;
5015
- top: 0;
5016
- left: 0;
5017
- z-index: 2;
5018
- display: block;
5019
- pointer-events: none; }
5020
-
5021
- .brz .brz-fb-group {
5022
- width: -webkit-fit-content;
5023
- width: -moz-fit-content;
5024
- width: fit-content; }
5025
-
5026
- .brz .brz-fb-page,
5027
- .brz .brz-fb-comments {
5028
- width: 100%; }
5029
-
5030
- .brz .brz-fb-styles-button--small-button {
5031
- height: 20px; }
5032
-
5033
- .brz .brz-fb-styles-button--small-boxed {
5034
- height: 64px; }
5035
-
5036
- .brz .brz-wp__breadcrumbs {
5037
- display: -webkit-box;
5038
- display: -ms-flexbox;
5039
- display: flex;
5040
- -webkit-box-pack: inherit;
5041
- -ms-flex-pack: inherit;
5042
- justify-content: inherit;
5043
- width: 100%; }
5044
- .brz .brz-wp__breadcrumbs .brz-breadcrumbs {
5045
- width: 100%;
5046
- padding: 0;
5047
- margin: 0;
5048
- display: -webkit-inline-box;
5049
- display: -ms-inline-flexbox;
5050
- display: inline-flex;
5051
- -ms-flex-wrap: wrap;
5052
- flex-wrap: wrap;
5053
- word-break: break-all; }
5054
- .brz .brz-wp__breadcrumbs .brz-breadcrumbs li.brz-li {
5055
- list-style: none;
5056
- display: -webkit-inline-box;
5057
- display: -ms-inline-flexbox;
5058
- display: inline-flex;
5059
- -webkit-box-align: center;
5060
- -ms-flex-align: center;
5061
- align-items: center;
5062
- margin: 0; }
5063
- .brz .brz-wp__breadcrumbs .brz-breadcrumbs li.brz-li .brz-a {
5064
- cursor: pointer;
5065
- -webkit-transition-property: color;
5066
- transition-property: color; }
5067
- .brz .brz-wp__breadcrumbs .brz-breadcrumbs li.brz-li .brz-icon-svg {
5068
- margin-top: 1px; }
5069
- .brz .brz-wp__breadcrumbs .brz-breadcrumbs li.brz-li:last-child .brz-a {
5070
- margin-right: 0; }
5071
- .brz .brz-wp__breadcrumbs .brz-breadcrumbs .brz-li:not(:last-child) .brz-a {
5072
- color: inherit; }
5073
-
5074
- .brz .brz-wp__postinfo {
5075
- display: -webkit-inline-box;
5076
- display: -ms-inline-flexbox;
5077
- display: inline-flex;
5078
- -ms-flex-wrap: wrap;
5079
- flex-wrap: wrap;
5080
- -webkit-box-pack: inherit;
5081
- -ms-flex-pack: inherit;
5082
- justify-content: inherit;
5083
- width: 100%;
5084
- padding: 0;
5085
- margin: 0;
5086
- word-break: break-all; }
5087
- .brz .brz-wp__postinfo__column ul {
5088
- display: -webkit-box;
5089
- display: -ms-flexbox;
5090
- display: flex;
5091
- -webkit-box-orient: vertical;
5092
- -webkit-box-direction: normal;
5093
- -ms-flex-direction: column;
5094
- flex-direction: column; }
5095
- .brz .brz-wp__postinfo__column ul .brz-li.brz-li {
5096
- margin-right: 0; }
5097
- .brz .brz-wp__postinfo__column ul .brz-li.brz-li:first-child {
5098
- margin-top: 0; }
5099
- .brz .brz-wp__postinfo > ul {
5100
- margin: 0;
5101
- padding: 0; }
5102
- .brz .brz-wp__postinfo .brz-li {
5103
- margin-left: 0;
5104
- margin-top: 0;
5105
- list-style: none;
5106
- display: -webkit-inline-box;
5107
- display: -ms-inline-flexbox;
5108
- display: inline-flex;
5109
- -webkit-box-align: center;
5110
- -ms-flex-align: center;
5111
- align-items: center;
5112
- cursor: default; }
5113
- .brz .brz-wp__postinfo .brz-li:last-child {
5114
- margin-right: 0 !important; }
5115
- .brz .brz-wp__postinfo .brz-li .brz-icon-svg {
5116
- margin-right: 0.5em; }
5117
- .brz .brz-wp__postinfo__disabled-author ul .brz-li:first-child,
5118
- .brz .brz-wp__postinfo__disabled-date ul .brz-li:nth-child(2),
5119
- .brz .brz-wp__postinfo__disabled-time ul .brz-li:nth-child(3),
5120
- .brz .brz-wp__postinfo__disabled-comments ul .brz-li:nth-child(4) {
5121
- display: none; }
5122
-
5123
- .brz .brz-single-post-navigation {
5124
- position: relative;
5125
- width: 100%; }
5126
- .brz .brz-single-post-navigation .brz-span {
5127
- display: block; }
5128
- .brz .brz-single-post-navigation a:focus {
5129
- outline: none; }
5130
-
5131
- .brz .brz-navigation-title,
5132
- .brz .brz-navigation {
5133
- display: -webkit-box;
5134
- display: -ms-flexbox;
5135
- display: flex;
5136
- -webkit-box-pack: justify;
5137
- -ms-flex-pack: justify;
5138
- justify-content: space-between; }
5139
- .brz .brz-navigation-title .brz-a,
5140
- .brz .brz-navigation-title .brz-span,
5141
- .brz .brz-navigation .brz-a,
5142
- .brz .brz-navigation .brz-span {
5143
- max-width: 49%; }
5144
-
5145
- .brz .brz-navigation__prev:nth-child(2n) {
5146
- text-align: end;
5147
- text-decoration: none; }
5148
-
5149
- .brz .brz-single-post-navigation::before {
5150
- content: "";
5151
- position: absolute;
5152
- background: #a5aeb4;
5153
- margin: auto;
5154
- width: 1px;
5155
- top: 0;
5156
- left: 0;
5157
- right: 0;
5158
- bottom: 0;
5159
- pointer-events: none; }
5160
-
5161
- .brz .brz-navigation__next {
5162
- text-decoration: none; }
5163
-
5164
- .brz .brz-navigation-title__next,
5165
- .brz .brz-navigation__next {
5166
- margin-left: auto;
5167
- text-align: right; }
5168
-
5169
- .brz .brz-navigation-title__prev,
5170
- .brz .brz-navigation__prev {
5171
- padding-right: 50px; }
5172
-
5173
- .brz .brz-navigation-title__next,
5174
- .brz .brz-navigation__next {
5175
- padding-left: 50px; }
5176
-
5177
- .brz .brz-navigation-title__next,
5178
- .brz .brz-navigation__next,
5179
- .brz .brz-navigation-title__prev,
5180
- .brz .brz-navigation__prev {
5181
- max-width: 50%; }
5182
-
5183
- .brz .brz-starrating {
5184
- display: -webkit-box;
5185
- display: -ms-flexbox;
5186
- display: flex;
5187
- -webkit-box-align: center;
5188
- -ms-flex-align: center;
5189
- align-items: center;
5190
- -ms-flex-wrap: nowrap;
5191
- flex-wrap: nowrap; }
5192
- .brz .brz-starrating-container {
5193
- display: -webkit-box;
5194
- display: -ms-flexbox;
5195
- display: flex;
5196
- -webkit-box-align: center;
5197
- -ms-flex-align: center;
5198
- align-items: center; }
5199
- .brz .brz-starrating-text {
5200
- display: -webkit-box;
5201
- display: -ms-flexbox;
5202
- display: flex;
5203
- -webkit-box-align: center;
5204
- -ms-flex-align: center;
5205
- align-items: center; }
5206
- .brz .brz-starrating-color {
5207
- position: absolute;
5208
- top: 0;
5209
- left: 0;
5210
- z-index: 2;
5211
- max-width: 100%;
5212
- overflow: hidden; }
5213
- .brz .brz-starrating-icon-wrap {
5214
- position: relative; }
5215
- .brz .brz-starrating .brz-starrating-container .brz-icon-svg {
5216
- top: 0.1em; }
5217
- .brz .brz-starrating .brz-starrating-container .brz-icon-svg:last-child {
5218
- margin-right: 0 !important; }
5219
- .brz .brz-starrating-color-full {
5220
- width: 100%; }
5221
- .brz .brz-starrating-color-w1 {
5222
- width: 10%; }
5223
- .brz .brz-starrating-color-w2 {
5224
- width: 20%; }
5225
- .brz .brz-starrating-color-w3 {
5226
- width: 30%; }
5227
- .brz .brz-starrating-color-w4 {
5228
- width: 40%; }
5229
- .brz .brz-starrating-color-w5 {
5230
- width: 50%; }
5231
- .brz .brz-starrating-color-w6 {
5232
- width: 60%; }
5233
- .brz .brz-starrating-color-w7 {
5234
- width: 70%; }
5235
- .brz .brz-starrating-color-w8 {
5236
- width: 80%; }
5237
- .brz .brz-starrating-color-w9 {
5238
- width: 90%; }
5239
- .brz .brz-starrating .brz-starrating-style2-container {
5240
- padding: 2px 9px;
5241
- display: -webkit-box;
5242
- display: -ms-flexbox;
5243
- display: flex; }
5244
- .brz .brz-starrating .brz-starrating-style2-container .brz-starrating-text {
5245
- -ms-flex-item-align: center;
5246
- align-self: center; }
5247
- .brz .brz-starrating .brz-starrating-style2-container .brz-starrating-icon-wrap {
5248
- -ms-flex-item-align: center;
5249
- align-self: center; }
5250
-
5251
- .brz .brz-lottie-anim {
5252
- display: -webkit-box;
5253
- display: -ms-flexbox;
5254
- display: flex; }
5255
-
5256
- .brz .brz-lottie__canvas {
5257
- width: 100%; }
5258
-
5259
- .brz .brz-search-container {
5260
- display: -webkit-box;
5261
- display: -ms-flexbox;
5262
- display: flex;
5263
- -webkit-box-align: center;
5264
- -ms-flex-align: center;
5265
- align-items: center;
5266
- overflow: visible; }
5267
- .brz .brz-search-container--minimal {
5268
- overflow: hidden; }
5269
- .brz .brz-search-container--minimal .brz-search-form {
5270
- padding: 0 15px; }
5271
- .brz .brz-search-container .brz-ed-box__resizer {
5272
- height: unset; }
5273
- .brz .brz-search-container .brz-search-form {
5274
- display: -webkit-box;
5275
- display: -ms-flexbox;
5276
- display: flex;
5277
- width: 100%;
5278
- position: relative;
5279
- -webkit-box-align: center;
5280
- -ms-flex-align: center;
5281
- align-items: center; }
5282
- .brz .brz-search-container .brz-btn {
5283
- margin-left: auto;
5284
- z-index: 1; }
5285
- .brz .brz-search-container .brz-wrapper-clone__wrap {
5286
- margin: 0; }
5287
- .brz .brz-search-container .brz-search {
5288
- background-color: transparent;
5289
- width: 100%;
5290
- padding: 0 15px;
5291
- outline: none;
5292
- border: 0;
5293
- border-radius: 0; }
5294
- .brz .brz-search-container .brz-search:-webkit-autofill {
5295
- -webkit-transition: background-color 500000s ease !important;
5296
- transition: background-color 500000s ease !important; }
5297
- .brz .brz-search-container .brz-search::-webkit-input-placeholder {
5298
- color: inherit; }
5299
- .brz .brz-search-container .brz-search::-moz-placeholder {
5300
- color: inherit; }
5301
- .brz .brz-search-container .brz-search::-ms-input-placeholder {
5302
- color: inherit; }
5303
- .brz .brz-search-container .brz-search::placeholder {
5304
- color: inherit; }
5305
-
5306
- .brz .brz-protected {
5307
- display: -webkit-box;
5308
- display: -ms-flexbox;
5309
- display: flex;
5310
- -webkit-box-align: center;
5311
- -ms-flex-align: center;
5312
- align-items: center;
5313
- -ms-flex-wrap: wrap;
5314
- flex-wrap: wrap;
5315
- -webkit-box-pack: justify;
5316
- -ms-flex-pack: justify;
5317
- justify-content: space-between; }
5318
- .brz .brz-protected-form {
5319
- width: 100%;
5320
- display: -webkit-box;
5321
- display: -ms-flexbox;
5322
- display: flex;
5323
- -webkit-box-align: center;
5324
- -ms-flex-align: center;
5325
- align-items: center; }
5326
- .brz .brz-protected-form__input {
5327
- outline: none;
5328
- display: -webkit-box;
5329
- display: -ms-flexbox;
5330
- display: flex;
5331
- -webkit-box-align: center;
5332
- -ms-flex-align: center;
5333
- align-items: center; }
5334
- .brz .brz-protected-form__input .brz-input {
5335
- width: 100%;
5336
- border: none;
5337
- outline: none;
5338
- background-color: transparent; }
5339
- .brz .brz-protected-form__input .brz-input::-webkit-input-placeholder {
5340
- opacity: 0.5;
5341
- color: inherit; }
5342
- .brz .brz-protected-form__input .brz-input::-moz-placeholder {
5343
- opacity: 0.5;
5344
- color: inherit; }
5345
- .brz .brz-protected-form__input .brz-input::-ms-input-placeholder {
5346
- opacity: 0.5;
5347
- color: inherit; }
5348
- .brz .brz-protected-form__input .brz-input::placeholder {
5349
- opacity: 0.5;
5350
- color: inherit; }
5351
- .brz .brz-protected-form__button {
5352
- -webkit-box-flex: 1;
5353
- -ms-flex: auto;
5354
- flex: auto; }
5355
- .brz .brz-protected-form__button .brz-btn {
5356
- width: 100%; }
5357
- .brz .brz-protected__alert {
5358
- min-height: 55px;
5359
- width: 100%;
5360
- padding: 17px 30px;
5361
- margin-top: 15px;
5362
- font-family: "nunito", "Open Sans", Arial, sans-serif;
5363
- font-size: 12px;
5364
- line-height: 2;
5365
- letter-spacing: 2.5px;
5366
- font-weight: 600;
5367
- text-transform: uppercase;
5368
- color: #fff;
5369
- background-color: #f00; }
5370
-
5371
- .brz .brz-comments {
5372
- width: 100%;
5373
- padding: 0;
5374
- margin: 0; }
5375
- .brz .brz-comments .comment-form-rating > label {
5376
- font-weight: 600; }
5377
- .brz .brz-comments-parrent {
5378
- margin-bottom: -20px; }
5379
- .brz .brz-comments-parrent > div {
5380
- width: 100% !important;
5381
- float: none !important;
5382
- padding: 0 !important; }
5383
- .brz .brz-comments .comments-pagination {
5384
- margin-bottom: 20px; }
5385
- .brz .brz-comments .comments-pagination + .brz-comment-respond {
5386
- margin-top: -10px; }
5387
- .brz .brz-comments a {
5388
- text-decoration: none;
5389
- word-break: normal; }
5390
- .brz .brz-comments .brz-comments {
5391
- margin: 0;
5392
- display: -webkit-box;
5393
- display: -ms-flexbox;
5394
- display: flex;
5395
- -ms-flex-wrap: wrap;
5396
- flex-wrap: wrap; }
5397
- .brz .brz-comments .brz-comments + .brz-comment-respond {
5398
- margin-top: -20px; }
5399
- .brz .brz-comments .brz-comments .brz-comments-children {
5400
- padding: 0; }
5401
- .brz .brz-comments .brz-comments .brz-comments__name * {
5402
- color: inherit;
5403
- font-size: inherit; }
5404
- .brz .brz-comments .brz-comments .brz-comments__right-side {
5405
- display: -webkit-box;
5406
- display: -ms-flexbox;
5407
- display: flex;
5408
- margin-right: 0;
5409
- margin-left: auto;
5410
- -webkit-box-align: center;
5411
- -ms-flex-align: center;
5412
- align-items: center; }
5413
- .brz .brz-comments .brz-comments .brz-comments__date {
5414
- position: relative; }
5415
- .brz .brz-comments .brz-comments .brz-comments__date * {
5416
- color: inherit;
5417
- font-size: inherit; }
5418
- .brz .brz-comments .brz-comments .brz-comments__reply {
5419
- line-height: inherit; }
5420
- .brz .brz-comments .brz-comments .brz-comments__reply * {
5421
- font-size: inherit; }
5422
- .brz .brz-comments .brz-comments .brz-comments__reply .comment-reply-link {
5423
- background-color: transparent;
5424
- padding: 0; }
5425
- .brz .brz-comments .brz-comments .brz-comments__text p {
5426
- margin: 0; }
5427
- .brz .brz-comments .brz-comments .brz-comments__text,
5428
- .brz .brz-comments .brz-comments .brz-comment-awaiting-moderation {
5429
- width: 100%;
5430
- margin-bottom: 40px;
5431
- position: relative; }
5432
- .brz .brz-comments .brz-comments .brz-comments__text::before,
5433
- .brz .brz-comments .brz-comments .brz-comment-awaiting-moderation::before {
5434
- content: "";
5435
- position: absolute;
5436
- left: 0;
5437
- bottom: 0;
5438
- height: 1px;
5439
- background-color: rgba(129, 138, 145, 0.15);
5440
- display: block; }
5441
- .brz .brz-comments .brz-comments .brz-comments__text *,
5442
- .brz .brz-comments .brz-comments .brz-comment-awaiting-moderation * {
5443
- margin: 10px 0;
5444
- color: inherit;
5445
- font-family: inherit;
5446
- font-size: inherit; }
5447
- .brz .brz-comments .brz-comments .brz-comments__text a,
5448
- .brz .brz-comments .brz-comments .brz-comment-awaiting-moderation a {
5449
- color: #3dbfe8; }
5450
- .brz .brz-comments .brz-comments .brz-comments__text {
5451
- padding-bottom: 30px; }
5452
- .brz .brz-comments .brz-comments .brz-comment-awaiting-moderation {
5453
- padding-bottom: 40px; }
5454
- .brz .brz-comments-title {
5455
- margin: 0 0 59px 0;
5456
- color: #03080f;
5457
- font-size: 23px;
5458
- letter-spacing: -0.12px;
5459
- color: #03080f; }
5460
- .brz .brz-comments-title::before {
5461
- display: none; }
5462
- .brz .brz-comments .star-rating {
5463
- margin: 0; }
5464
- .brz .brz-comments__skin-skin1.review .brz-comments__date::before {
5465
- content: "";
5466
- width: 1px;
5467
- height: 77%;
5468
- position: absolute;
5469
- left: 0;
5470
- top: 0;
5471
- bottom: 0;
5472
- background-color: #818a91;
5473
- display: block;
5474
- margin: auto; }
5475
- .brz .brz-comments__skin-skin1 .brz-comments__logo .brz-img {
5476
- border-radius: 50%;
5477
- -o-object-fit: cover;
5478
- object-fit: cover; }
5479
- .brz .brz-comments__skin-skin1 .brz-comments__right-date {
5480
- margin-top: -2px;
5481
- display: -webkit-box;
5482
- display: -ms-flexbox;
5483
- display: flex;
5484
- -ms-flex-wrap: wrap;
5485
- flex-wrap: wrap;
5486
- -webkit-box-pack: justify;
5487
- -ms-flex-pack: justify;
5488
- justify-content: space-between;
5489
- -webkit-box-align: center;
5490
- -ms-flex-align: center;
5491
- align-items: center; }
5492
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comments__name {
5493
- height: -webkit-fit-content;
5494
- height: -moz-fit-content;
5495
- height: fit-content;
5496
- display: -webkit-box;
5497
- display: -ms-flexbox;
5498
- display: flex;
5499
- -webkit-box-align: center;
5500
- -ms-flex-align: center;
5501
- align-items: center; }
5502
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comments__date {
5503
- height: -webkit-fit-content;
5504
- height: -moz-fit-content;
5505
- height: fit-content;
5506
- margin-left: auto;
5507
- text-align: right;
5508
- display: -webkit-box;
5509
- display: -ms-flexbox;
5510
- display: flex;
5511
- -webkit-box-align: center;
5512
- -ms-flex-align: center;
5513
- align-items: center;
5514
- padding-left: 10px;
5515
- margin-left: 10px; }
5516
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comments__date * .brz-span {
5517
- position: relative;
5518
- right: -2px; }
5519
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comments__reply {
5520
- height: -webkit-fit-content;
5521
- height: -moz-fit-content;
5522
- height: fit-content;
5523
- padding-left: 10px;
5524
- margin-left: 10px;
5525
- position: relative;
5526
- display: -webkit-box;
5527
- display: -ms-flexbox;
5528
- display: flex;
5529
- -webkit-box-align: center;
5530
- -ms-flex-align: center;
5531
- align-items: center; }
5532
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comments__reply::before {
5533
- content: "";
5534
- width: 1px;
5535
- height: 77%;
5536
- position: absolute;
5537
- left: 0;
5538
- top: 0;
5539
- bottom: 0;
5540
- background-color: #818a91;
5541
- display: block;
5542
- margin: auto; }
5543
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comment-awaiting-moderation {
5544
- margin-top: 7px !important; }
5545
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comments__text,
5546
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comment-awaiting-moderation {
5547
- width: 100%;
5548
- margin-top: 3px; }
5549
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comments__text::before,
5550
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comment-awaiting-moderation::before {
5551
- width: 100%; }
5552
- .brz .brz-comments__skin-skin2 .star-rating {
5553
- -ms-flex-negative: 0;
5554
- flex-shrink: 0; }
5555
- .brz .brz-comments__skin-skin2 .brz-comments__logo-img {
5556
- width: 67px;
5557
- height: 67px;
5558
- border-radius: 50%;
5559
- -o-object-fit: cover;
5560
- object-fit: cover; }
5561
- .brz .brz-comments__skin-skin2 .brz-comments__right-date {
5562
- margin-top: 8px;
5563
- margin-bottom: 33px;
5564
- padding-bottom: 45px;
5565
- width: calc(100% - 97px);
5566
- display: -webkit-box;
5567
- display: -ms-flexbox;
5568
- display: flex;
5569
- position: relative; }
5570
- .brz .brz-comments__skin-skin2 .brz-comments__right-date::before {
5571
- content: "";
5572
- width: 100%;
5573
- height: 2px;
5574
- background-color: rgba(129, 138, 145, 0.15);
5575
- position: absolute;
5576
- bottom: 0;
5577
- left: 0; }
5578
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comments__name-date {
5579
- display: -webkit-box;
5580
- display: -ms-flexbox;
5581
- display: flex;
5582
- -webkit-box-orient: vertical;
5583
- -webkit-box-direction: normal;
5584
- -ms-flex-direction: column;
5585
- flex-direction: column;
5586
- -webkit-box-align: start;
5587
- -ms-flex-align: start;
5588
- align-items: flex-start;
5589
- -ms-flex-negative: 0;
5590
- flex-shrink: 0; }
5591
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comments__name-date .brz-comments__name {
5592
- margin-bottom: 6px; }
5593
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comments__name-date .brz-comments__date {
5594
- width: 100%;
5595
- margin-bottom: 7px; }
5596
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comments__name-date .brz-comments__date * {
5597
- width: 75px;
5598
- text-align: right;
5599
- margin: auto; }
5600
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comments__name-date .brz-comments__date * .brz-span {
5601
- position: relative;
5602
- right: -2px; }
5603
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comments__text,
5604
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comment-awaiting-moderation {
5605
- margin-bottom: 0 !important;
5606
- padding-left: 20px;
5607
- padding-bottom: 0 !important; }
5608
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comments__text {
5609
- margin-top: -2px;
5610
- -webkit-box-align: start;
5611
- -ms-flex-align: start;
5612
- align-items: flex-start; }
5613
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comment-awaiting-moderation {
5614
- margin-top: -2px; }
5615
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comments__reply {
5616
- padding-left: 30px;
5617
- margin-top: 1px;
5618
- -webkit-box-align: start;
5619
- -ms-flex-align: start;
5620
- align-items: flex-start; }
5621
- .brz .brz-comments__skin-skin3 .brz-comments__logo {
5622
- margin-right: 25px; }
5623
- .brz .brz-comments__skin-skin3 .brz-comments__logo .brz-img {
5624
- border-radius: 50%;
5625
- -o-object-fit: cover;
5626
- object-fit: cover; }
5627
- .brz .brz-comments__skin-skin3.review .brz-comments__date::after {
5628
- content: "";
5629
- height: 14px;
5630
- width: 1px;
5631
- background-color: #818a91;
5632
- margin: auto 10px; }
5633
- .brz .brz-comments__skin-skin3 .brz-comments__right-date {
5634
- width: calc(100% - 48.5px);
5635
- margin-top: 4px;
5636
- margin-bottom: 15px;
5637
- padding-bottom: 20px;
5638
- display: -webkit-box;
5639
- display: -ms-flexbox;
5640
- display: flex;
5641
- -ms-flex-wrap: wrap;
5642
- flex-wrap: wrap;
5643
- position: relative;
5644
- -webkit-box-align: center;
5645
- -ms-flex-align: center;
5646
- align-items: center; }
5647
- .brz .brz-comments__skin-skin3 .brz-comments__right-date::before {
5648
- content: "";
5649
- width: 100%;
5650
- height: 1px;
5651
- background-color: rgba(129, 138, 145, 0.15);
5652
- position: absolute;
5653
- bottom: 0;
5654
- left: 0; }
5655
- .brz .brz-comments__skin-skin3 .brz-comments__right-date .brz-comments__date {
5656
- position: relative;
5657
- display: -webkit-box;
5658
- display: -ms-flexbox;
5659
- display: flex; }
5660
- .brz .brz-comments__skin-skin3 .brz-comments__right-date .brz-comments__date::before {
5661
- content: "";
5662
- height: 14px;
5663
- width: 1px;
5664
- background-color: #818a91;
5665
- margin: auto 10px; }
5666
- .brz .brz-comments__skin-skin3 .brz-comments__right-date .brz-comments__text,
5667
- .brz .brz-comments__skin-skin3 .brz-comments__right-date .brz-comment-awaiting-moderation {
5668
- width: 100%; }
5669
- .brz .brz-comments__skin-skin3 .brz-comments__right-date .brz-comments__text .comment-reply-link,
5670
- .brz .brz-comments__skin-skin3 .brz-comments__right-date .brz-comment-awaiting-moderation .comment-reply-link {
5671
- font-family: inherit;
5672
- font-size: inherit; }
5673
- .brz .brz-comments__skin-skin3 .brz-comments__right-date .brz-comments__text *,
5674
- .brz .brz-comments__skin-skin3 .brz-comments__right-date .brz-comment-awaiting-moderation * {
5675
- display: contents; }
5676
- .brz .brz-comments__skin-skin3 .brz-comments__right-date .brz-comments__text {
5677
- margin: 0 !important;
5678
- padding-bottom: 0 !important; }
5679
- .brz .brz-comments__skin-skin3 .brz-comments__right-date .brz-comment-awaiting-moderation {
5680
- margin: 10px 0 0 0 !important;
5681
- padding-bottom: 10px !important; }
5682
- .brz .brz-comments__skin-skin4.review .brz-comments__date {
5683
- display: -webkit-box;
5684
- display: -ms-flexbox;
5685
- display: flex; }
5686
- .brz .brz-comments__skin-skin4.review .brz-comments__date::after {
5687
- content: "";
5688
- height: 14px;
5689
- width: 1px;
5690
- background-color: #818a91;
5691
- margin: auto 10px; }
5692
- .brz .brz-comments__skin-skin4 .brz-comments__right-date {
5693
- width: 100% !important;
5694
- padding-bottom: 20px;
5695
- margin-bottom: 25px;
5696
- display: -webkit-box;
5697
- display: -ms-flexbox;
5698
- display: flex;
5699
- -ms-flex-wrap: wrap;
5700
- flex-wrap: wrap;
5701
- -webkit-box-pack: justify;
5702
- -ms-flex-pack: justify;
5703
- justify-content: space-between;
5704
- position: relative; }
5705
- .brz .brz-comments__skin-skin4 .brz-comments__right-date .brz-comments__name-date {
5706
- display: -webkit-box;
5707
- display: -ms-flexbox;
5708
- display: flex;
5709
- -webkit-box-orient: vertical;
5710
- -webkit-box-direction: normal;
5711
- -ms-flex-direction: column;
5712
- flex-direction: column;
5713
- -webkit-box-align: start;
5714
- -ms-flex-align: start;
5715
- align-items: flex-start;
5716
- margin-bottom: 9px; }
5717
- .brz .brz-comments__skin-skin4 .brz-comments__right-date .brz-comments__name-date .brz-comments__left-side {
5718
- display: -webkit-box;
5719
- display: -ms-flexbox;
5720
- display: flex;
5721
- -webkit-box-align: center;
5722
- -ms-flex-align: center;
5723
- align-items: center; }
5724
- .brz .brz-comments__skin-skin4 .brz-comments__right-date .brz-comments__name-date .brz-comments__name {
5725
- margin-bottom: 5px; }
5726
- .brz .brz-comments__skin-skin4 .brz-comments__right-date .brz-comments__logo .brz-img {
5727
- border-radius: 50%;
5728
- -o-object-fit: cover;
5729
- object-fit: cover; }
5730
- .brz .brz-comments__skin-skin4 .brz-comments__right-date .brz-comments__text,
5731
- .brz .brz-comments__skin-skin4 .brz-comments__right-date .brz-comment-awaiting-moderation {
5732
- width: 100%; }
5733
- .brz .brz-comments__skin-skin4 .brz-comments__right-date .brz-comments__text *,
5734
- .brz .brz-comments__skin-skin4 .brz-comments__right-date .brz-comment-awaiting-moderation * {
5735
- display: contents; }
5736
- .brz .brz-comments__skin-skin4 .brz-comments__right-date .brz-comments__text {
5737
- margin: 0 !important;
5738
- padding: 0 !important; }
5739
- .brz .brz-comments__skin-skin4 .brz-comments__right-date .brz-comment-awaiting-moderation {
5740
- margin: 10px 0 0 0 !important;
5741
- padding-bottom: 10px !important; }
5742
- .brz .brz-comments__skin-skin4 .brz-comments__right-date::before {
5743
- content: "";
5744
- height: 1px;
5745
- width: 28%;
5746
- background-color: rgba(129, 138, 145, 0.15);
5747
- position: absolute;
5748
- left: 0;
5749
- bottom: 0; }
5750
- .brz .brz-comments__skin-skin1 .brz-comments__logo,
5751
- .brz .brz-comments__skin-skin2 .brz-comments__logo {
5752
- margin-right: 10px; }
5753
- .brz .brz-comments__skin-skin1 .brz-comments__logo .brz-img,
5754
- .brz .brz-comments__skin-skin2 .brz-comments__logo .brz-img,
5755
- .brz .brz-comments__skin-skin3 .brz-comments__logo .brz-img,
5756
- .brz .brz-comments__skin-skin4 .brz-comments__logo .brz-img {
5757
- position: static !important;
5758
- margin: 0 !important; }
5759
-
5760
- .brz .brz-logged-in-as {
5761
- margin: 0;
5762
- color: #818a91;
5763
- font-family: "nunito", "Open Sans", Arial, sans-serif;
5764
- font-size: 15px;
5765
- line-height: 28px; }
5766
-
5767
- .brz .comment-notes {
5768
- margin-top: 0;
5769
- margin-bottom: 15px;
5770
- color: #818a91;
5771
- font-family: "nunito", "Open Sans", Arial, sans-serif;
5772
- font-size: 15px;
5773
- line-height: 28px; }
5774
-
5775
- .brz .brz-comment-respond {
5776
- margin-bottom: 20px;
5777
- width: 100%; }
5778
- .brz .brz-comment-respond .brz-comment-reply-title {
5779
- margin: 12px 0;
5780
- color: #03080f;
5781
- font-family: "nunito", "Open Sans", Arial, sans-serif;
5782
- font-size: 20px;
5783
- font-weight: 600;
5784
- letter-spacing: -0.1px;
5785
- line-height: 24px; }
5786
- .brz .brz-comment-respond .brz-comment-reply-title #cancel-comment-reply-link {
5787
- padding-left: 5px;
5788
- font-family: "nunito", "Open Sans", Arial, sans-serif;
5789
- font-size: 14px; }
5790
- .brz .brz-comment-respond .brz--comment__form-reply-body .comment-form-rating .stars {
5791
- font-family: star; }
5792
- .brz .brz-comment-respond .brz--comment__form-reply-body .comment-form-rating .stars a {
5793
- position: relative;
5794
- height: 1em;
5795
- width: 1em;
5796
- text-indent: -999em;
5797
- display: inline-block;
5798
- text-decoration: none;
5799
- -webkit-box-shadow: none;
5800
- box-shadow: none; }
5801
- .brz .brz-comment-respond .brz--comment__form-reply-body .comment-form-rating .stars a::before {
5802
- font-family: star;
5803
- display: block;
5804
- position: absolute;
5805
- top: 0;
5806
- left: 0;
5807
- width: 1em;
5808
- height: 1em;
5809
- line-height: 1;
5810
- content: "\73";
5811
- text-indent: 0; }
5812
- .brz .brz-comment-respond .brz--comment__form-reply-body .comment-form-rating .stars:hover a::before {
5813
- content: "\53"; }
5814
- .brz .brz-comment-respond .brz--comment__form-reply-body .comment-form-rating .stars.selected a::before {
5815
- content: "\53"; }
5816
- .brz .brz-comment-respond .brz--comment__form-reply-body .comment-form-rating .stars.selected a.active ~ a::before {
5817
- content: "\73"; }
5818
- .brz .brz-comment-respond .brz--comment__form-reply-body .comment-form-rating .stars a:hover ~ a::before {
5819
- content: "\73"; }
5820
- .brz .brz-comment-respond textarea[name="comment"] {
5821
- height: 160px;
5822
- border: 1px solid #d4d4d4;
5823
- border-radius: 3px;
5824
- resize: none;
5825
- outline: none; }
5826
- .brz .brz-comment-respond input[name="submit"] {
5827
- border: 0;
5828
- border-radius: 3px;
5829
- padding: 1em 2em; }
5830
-
5831
- .brz .brz-comment-form-comment {
5832
- width: 100%;
5833
- color: #03080f;
5834
- font-family: "nunito", "Open Sans", Arial, sans-serif;
5835
- font-size: 20px;
5836
- font-weight: 600;
5837
- letter-spacing: -0.1px;
5838
- line-height: 24px; }
5839
- .brz .brz-comment-form-comment label {
5840
- margin-bottom: 19px;
5841
- display: block; }
5842
-
5843
- .brz .brz-form-submit {
5844
- width: 100%; }
5845
-
5846
- .brz ul.brz-comments ul.brz-comments {
5847
- width: 80%;
5848
- margin-left: auto; }
5849
-
5850
- .brz .brz-comment-form-author,
5851
- .brz .brz-comment-form-email,
5852
- .brz .brz-comment-form-url {
5853
- width: 32%;
5854
- margin-top: 5px;
5855
- margin-bottom: 7px;
5856
- font-family: "nunito", "Open Sans", Arial, sans-serif;
5857
- font-size: 20px;
5858
- font-weight: 600;
5859
- letter-spacing: -0.1px;
5860
- line-height: 24px;
5861
- display: -webkit-box;
5862
- display: -ms-flexbox;
5863
- display: flex;
5864
- -webkit-box-orient: vertical;
5865
- -webkit-box-direction: normal;
5866
- -ms-flex-direction: column;
5867
- flex-direction: column; }
5868
- .brz .brz-comment-form-author .required,
5869
- .brz .brz-comment-form-email .required,
5870
- .brz .brz-comment-form-url .required {
5871
- font-size: 18px;
5872
- margin-left: 5px; }
5873
- .brz .brz-comment-form-author input[type="text"],
5874
- .brz .brz-comment-form-email input[type="text"],
5875
- .brz .brz-comment-form-url input[type="text"] {
5876
- outline: none;
5877
- border: 1px solid #d4d4d4;
5878
- border-radius: 3px;
5879
- margin-top: 18px;
5880
- font-size: 17px; }
5881
- .brz .brz-comment-form-author input[type="text"]:focus,
5882
- .brz .brz-comment-form-email input[type="text"]:focus,
5883
- .brz .brz-comment-form-url input[type="text"]:focus {
5884
- border: 1px solid #d4d4d4; }
5885
-
5886
- .brz .comment-form-cookies-consent {
5887
- width: 100%;
5888
- margin-bottom: 12px;
5889
- display: -webkit-box;
5890
- display: -ms-flexbox;
5891
- display: flex;
5892
- -webkit-box-align: center;
5893
- -ms-flex-align: center;
5894
- align-items: center; }
5895
- .brz .comment-form-cookies-consent input[type="checkbox"] {
5896
- height: 18px;
5897
- width: 18px;
5898
- border: 1px solid #d4d4d4;
5899
- border-radius: 3px;
5900
- margin-right: 15px;
5901
- -ms-flex-negative: 0;
5902
- flex-shrink: 0; }
5903
- .brz .comment-form-cookies-consent label {
5904
- color: #818a91;
5905
- font-family: "nunito", "Open Sans", Arial, sans-serif;
5906
- font-size: 15px;
5907
- line-height: 20px; }
5908
-
5909
- .brz .brz--comment__form-reply-body {
5910
- display: -webkit-box;
5911
- display: -ms-flexbox;
5912
- display: flex;
5913
- -ms-flex-wrap: wrap;
5914
- flex-wrap: wrap;
5915
- -webkit-box-pack: justify;
5916
- -ms-flex-pack: justify;
5917
- justify-content: space-between; }
5918
-
5919
- .brz .brz-form-submit {
5920
- margin-bottom: 0; }
5921
-
5922
- @media only screen and (max-width: 768px) {
5923
- .brz .brz-comment-awaiting-moderation {
5924
- padding-bottom: 20px; }
5925
- .brz .brz-comments li.brz-comments .brz-comments__text {
5926
- padding-bottom: 10px; }
5927
- .brz .brz-comments li.brz-comments .brz-comment-awaiting-moderation {
5928
- padding-bottom: 20px; }
5929
- .brz .brz-comments__skin-skin1.comment .brz-comments__date {
5930
- margin-left: 0;
5931
- padding-left: 0; }
5932
- .brz .brz-comments__skin-skin1 .brz-comments__right-date {
5933
- -webkit-box-pack: start;
5934
- -ms-flex-pack: start;
5935
- justify-content: flex-start; }
5936
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comments__name {
5937
- width: 100%; }
5938
- .brz .brz-comments__skin-skin1 .brz-comments__right-date .brz-comment-awaiting-moderation {
5939
- margin-top: 15px !important; }
5940
- .brz .brz-comments__skin-skin2 .brz-comments__right-date {
5941
- -ms-flex-wrap: wrap;
5942
- flex-wrap: wrap; }
5943
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comments__name-date .brz-comments__date * {
5944
- width: auto; }
5945
- .brz .brz-comments__skin-skin2 .brz-comments__right-date .brz-comments__name-date .brz-comments__date * .brz-span {
5946
- position: static;
5947
- display: inline; }
5948
- .brz .brz-comments__skin-skin2 .brz-comments__text,
5949
- .brz .brz-comments__skin-skin2 .brz-comment-awaiting-moderation {
5950
- width: calc(100% - 65px) !important;
5951
- padding: 40px 0 0 0 !important; } }
5952
-
5953
- @media only screen and (max-width: 480px) {
5954
- .brz .brz-comment-form-author,
5955
- .brz .brz-comment-form-email,
5956
- .brz .brz-comment-form-url {
5957
- width: 100%; } }
5958
-
5959
- .brz .brz-image {
5960
- position: relative;
5961
- display: inherit;
5962
- -webkit-box-pack: inherit;
5963
- -ms-flex-pack: inherit;
5964
- justify-content: inherit;
5965
- -webkit-box-align: inherit;
5966
- -ms-flex-align: inherit;
5967
- align-items: inherit;
5968
- -ms-flex-preferred-size: 100%;
5969
- flex-basis: 100%;
5970
- width: 100%;
5971
- overflow: hidden; }
5972
- .brz .brz-image .brz-img {
5973
- max-width: 100%; }
5974
- .brz .brz-image .brz-img-svg {
5975
- width: 100%;
5976
- height: 100%; }
5977
- .brz .brz-image .brz-a,
5978
- .brz .brz-image .brz-picture {
5979
- outline: none; }
5980
- .brz .brz-image .brz-shortcode__placeholder {
5981
- top: 0;
5982
- position: absolute; }
5983
-
5984
- .brz:not(.brz-ed) .brz-image .brz-a,
5985
- .brz:not(.brz-ed) .brz-image .brz-picture {
5986
- width: 100%;
5987
- height: auto; }
5988
-
5989
- .brz:not(.brz-ed) .brz-image .brz-img {
5990
- top: 0;
5991
- left: 0;
5992
- height: 100%; }
5993
- .brz:not(.brz-ed) .brz-image .brz-img-svg:not(.brz-img__original) {
5994
- position: absolute; }
5995
-
5996
- .brz:not(.brz-ed) .brz-image__lightbox * {
5997
- cursor: -webkit-zoom-in;
5998
- cursor: zoom-in; }
5999
-
6000
- .brz:not(.brz-ed) .brz-image picture {
6001
- border-radius: inherit; }
6002
-
6003
- .brz:not(.brz-ed) .brz-image:after {
6004
- content: "";
6005
- width: 100%;
6006
- height: 100%;
6007
- position: absolute;
6008
- pointer-events: none;
6009
- top: 0;
6010
- left: 0;
6011
- border-radius: inherit;
6012
- -webkit-transform: scale(1.01);
6013
- transform: scale(1.01); }
6014
-
6015
- .brz:not(.brz-ed) .brz-image--story .brz-shortcode__placeholder .brz-icon-svg {
6016
- position: absolute;
6017
- top: 50%;
6018
- left: 50%;
6019
- -webkit-transform: translate(-50%, -50%);
6020
- transform: translate(-50%, -50%); }
6021
-
6022
- .brz .mfp-bg {
6023
- z-index: 1100; }
6024
-
6025
- .brz .mfp-wrap {
6026
- z-index: 1101; }
6027
-
6028
- .brz .mfp-figure figcaption {
6029
- margin: 0; }
6030
-
6031
- .brz .mfp-figure:after,
6032
- .brz .mfp-iframe-scaler iframe {
6033
- -webkit-box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
6034
- box-shadow: 0 0 40px rgba(0, 0, 0, 0.35); }
6035
-
6036
- .brz .brz-menu-simple .menu {
6037
- display: -webkit-box;
6038
- display: -ms-flexbox;
6039
- display: flex;
6040
- -webkit-box-align: center;
6041
- -ms-flex-align: center;
6042
- align-items: center;
6043
- -webkit-box-orient: horizontal;
6044
- -webkit-box-direction: normal;
6045
- -ms-flex-flow: row wrap;
6046
- flex-flow: row wrap;
6047
- list-style: none;
6048
- margin: 0 auto;
6049
- padding: 0; }
6050
- .brz .brz-menu-simple .menu .menu-item {
6051
- position: relative;
6052
- text-align: left;
6053
- list-style: none; }
6054
- .brz .brz-menu-simple .menu .menu-item a span {
6055
- display: block; }
6056
- .brz .brz-menu-simple .menu .menu-item:hover > .sub-menu {
6057
- display: block; }
6058
- .brz .brz-menu-simple .menu .sub-menu {
6059
- position: absolute;
6060
- top: 0;
6061
- left: 0;
6062
- padding: 15px 0;
6063
- text-align: center;
6064
- text-transform: none;
6065
- list-style: none;
6066
- margin: 0 !important;
6067
- display: none;
6068
- width: 280px;
6069
- background-color: #33344b;
6070
- z-index: 110; }
6071
- .brz .brz-menu-simple .menu .sub-menu .menu-item {
6072
- display: block;
6073
- margin: 0;
6074
- padding: 0; }
6075
- .brz .brz-menu-simple .menu .sub-menu .sub-menu {
6076
- left: 100%; }
6077
- .brz .brz-menu-simple .menu .sub-menu a {
6078
- display: block;
6079
- line-height: 1.2em;
6080
- padding: 10px 12%;
6081
- color: #fcfcfc; }
6082
- .brz .brz-menu-simple .menu .sub-menu a:hover {
6083
- background: rgba(36, 36, 53, 0.94); }
6084
- .brz .brz-menu-simple .menu > .menu-item {
6085
- display: inline-block;
6086
- -webkit-box-flex: 0;
6087
- -ms-flex: 0 1 auto;
6088
- flex: 0 1 auto;
6089
- padding-top: 5px;
6090
- padding-bottom: 5px; }
6091
- .brz .brz-menu-simple .menu > .menu-item > .sub-menu {
6092
- top: 100%; }
6093
- .brz .brz-menu-simple .menu > ul {
6094
- margin: 0 !important; }
6095
- .brz .brz-menu-simple .menu > ul .page_item:not(:first-child) {
6096
- margin-left: 15px; }
6097
-
6098
- .brz .brz-menu-simple__toggle .menu {
6099
- display: -webkit-box;
6100
- display: -ms-flexbox;
6101
- display: flex;
6102
- -webkit-box-orient: horizontal;
6103
- -webkit-box-direction: normal;
6104
- -ms-flex-flow: row wrap;
6105
- flex-flow: row wrap; }
6106
-
6107
- .brz .brz-menu-simple__icon {
6108
- display: none;
6109
- padding: 15px;
6110
- position: relative;
6111
- cursor: pointer;
6112
- -webkit-user-select: none;
6113
- -moz-user-select: none;
6114
- -ms-user-select: none;
6115
- user-select: none;
6116
- margin: 0; }
6117
- .brz .brz-menu-simple__icon--bars {
6118
- display: block;
6119
- height: 2px;
6120
- position: relative;
6121
- -webkit-transition: background 0.2s ease-out;
6122
- transition: background 0.2s ease-out;
6123
- width: 18px; }
6124
- .brz .brz-menu-simple__icon--bars:before, .brz .brz-menu-simple__icon--bars:after {
6125
- background-color: currentColor;
6126
- content: "";
6127
- display: block;
6128
- height: 100%;
6129
- position: absolute;
6130
- -webkit-transition: all 0.2s ease-out;
6131
- transition: all 0.2s ease-out;
6132
- width: 100%; }
6133
- .brz .brz-menu-simple__icon--bars:before {
6134
- top: 5px; }
6135
- .brz .brz-menu-simple__icon--bars:after {
6136
- top: -5px; }
6137
-
6138
- .brz .brz-menu-simple .brz-input {
6139
- display: none; }
6140
- .brz .brz-menu-simple .brz-input:checked ~ div .menu {
6141
- display: -webkit-box;
6142
- display: -ms-flexbox;
6143
- display: flex;
6144
- max-height: 100%; }
6145
- .brz .brz-menu-simple .brz-input:checked ~ .brz-menu-simple__icon .brz-menu-simple__icon--bars {
6146
- background: transparent; }
6147
- .brz .brz-menu-simple .brz-input:checked ~ .brz-menu-simple__icon .brz-menu-simple__icon--bars:before {
6148
- -webkit-transform: rotate(-45deg);
6149
- transform: rotate(-45deg); }
6150
- .brz .brz-menu-simple .brz-input:checked ~ .brz-menu-simple__icon .brz-menu-simple__icon--bars:after {
6151
- -webkit-transform: rotate(45deg);
6152
- transform: rotate(45deg); }
6153
- .brz .brz-menu-simple .brz-input:checked ~ .brz-menu-simple__icon:not(.steps) .brz-menu-simple__icon--bars:before,
6154
- .brz .brz-menu-simple .brz-input:checked ~ .brz-menu-simple__icon:not(.steps) .brz-menu-simple__icon--bars:after {
6155
- top: 0; }
6156
-
6157
- .brz .brz-menu-simple--cloud a {
6158
- text-decoration: none; }
6159
-
6160
- .brz .brz-menu__ul {
6161
- margin: 0;
6162
- padding: 0;
6163
- font-family: inherit; }
6164
-
6165
- .brz .brz-menu__item {
6166
- list-style: none; }
6167
-
6168
- @media (max-width: 767px) {
6169
- .brz:not(.brz-ed) .brz-menu-simple {
6170
- width: auto;
6171
- text-align: center; }
6172
- .brz:not(.brz-ed) .brz-menu-simple__toggle--mobile .menu {
6173
- display: none;
6174
- -webkit-box-orient: vertical;
6175
- -webkit-box-direction: normal;
6176
- -ms-flex-flow: column nowrap;
6177
- flex-flow: column nowrap;
6178
- max-height: 0;
6179
- -webkit-box-align: start;
6180
- -ms-flex-align: start;
6181
- align-items: flex-start;
6182
- -webkit-transition: max-height 0.2s ease-out;
6183
- transition: max-height 0.2s ease-out; }
6184
- .brz:not(.brz-ed) .brz-menu-simple__toggle--mobile .menu .sub-menu {
6185
- position: relative;
6186
- display: block;
6187
- width: 100%;
6188
- left: 15px;
6189
- padding: 0;
6190
- background-color: transparent; }
6191
- .brz:not(.brz-ed) .brz-menu-simple__toggle--mobile .menu .sub-menu .menu-item a {
6192
- padding: 5px; }
6193
- .brz:not(.brz-ed) .brz-menu-simple__toggle--mobile .menu .sub-menu .menu-item a:hover {
6194
- background-color: transparent; }
6195
- .brz:not(.brz-ed) .brz-menu-simple__toggle--mobile .menu .sub-menu .sub-menu {
6196
- display: block;
6197
- left: 15px; }
6198
- .brz:not(.brz-ed) .brz-menu-simple__toggle--mobile .menu > .menu-item {
6199
- padding: 0; }
6200
- .brz:not(.brz-ed) .brz-menu-simple__toggle--mobile .menu > .menu-item > .sub-menu {
6201
- top: 100%;
6202
- padding: 5px 0; }
6203
- .brz:not(.brz-ed) .brz-menu-simple__toggle--mobile .brz-menu-simple__icon {
6204
- display: inline-block; } }
6205
-
6206
- @media (min-width: 768px) and (max-width: 991px) {
6207
- .brz:not(.brz-ed) .brz-menu-simple {
6208
- width: auto;
6209
- text-align: center; }
6210
- .brz:not(.brz-ed) .brz-menu-simple__toggle--tablet .menu {
6211
- display: none;
6212
- -webkit-box-orient: vertical;
6213
- -webkit-box-direction: normal;
6214
- -ms-flex-flow: column nowrap;
6215
- flex-flow: column nowrap;
6216
- max-height: 0;
6217
- -webkit-box-align: start;
6218
- -ms-flex-align: start;
6219
- align-items: flex-start;
6220
- -webkit-transition: max-height 0.2s ease-out;
6221
- transition: max-height 0.2s ease-out; }
6222
- .brz:not(.brz-ed) .brz-menu-simple__toggle--tablet .menu .sub-menu {
6223
- position: relative;
6224
- display: block;
6225
- width: 100%;
6226
- left: 15px;
6227
- padding: 0;
6228
- background-color: transparent; }
6229
- .brz:not(.brz-ed) .brz-menu-simple__toggle--tablet .menu .sub-menu .menu-item a {
6230
- padding: 5px; }
6231
- .brz:not(.brz-ed) .brz-menu-simple__toggle--tablet .menu .sub-menu .menu-item a:hover {
6232
- background-color: transparent; }
6233
- .brz:not(.brz-ed) .brz-menu-simple__toggle--tablet .menu .sub-menu .sub-menu {
6234
- display: block;
6235
- left: 15px; }
6236
- .brz:not(.brz-ed) .brz-menu-simple__toggle--tablet .menu > .menu-item {
6237
- padding: 0; }
6238
- .brz:not(.brz-ed) .brz-menu-simple__toggle--tablet .menu > .menu-item > .sub-menu {
6239
- top: 100%;
6240
- padding: 5px 0; }
6241
- .brz:not(.brz-ed) .brz-menu-simple__toggle--tablet .brz-menu-simple__icon {
6242
- display: inline-block; } }
6243
-
6244
- .brz:not(.brz-ed) .brz-login .brz-login-form,
6245
- .brz:not(.brz-ed) .brz-login .brz-login__authorized {
6246
- display: none; }
6247
-
6248
- .brz .brz-login {
6249
- width: 100%; }
6250
- .brz .brz-login__authorized * {
6251
- display: inline; }
6252
- .brz .brz-login__authorized p {
6253
- margin: 0; }
6254
- .brz .brz-login__authorized span {
6255
- cursor: pointer; }
6256
- .brz .brz-login__authorized a {
6257
- text-decoration: none; }
6258
- .brz .brz-login span.psw {
6259
- float: right;
6260
- padding-top: 16px; }
6261
- .brz .brz-login .brz-input {
6262
- width: 100%;
6263
- height: auto;
6264
- max-width: 100%;
6265
- min-height: auto;
6266
- background-color: transparent;
6267
- border: none;
6268
- outline: none;
6269
- color: inherit;
6270
- font-size: inherit;
6271
- font-family: inherit;
6272
- letter-spacing: inherit;
6273
- font-weight: inherit;
6274
- line-height: inherit;
6275
- -webkit-box-shadow: none;
6276
- box-shadow: none; }
6277
- .brz .brz-login .brz-input::-webkit-input-placeholder {
6278
- color: inherit;
6279
- opacity: 0.5; }
6280
- .brz .brz-login .brz-input::-moz-placeholder {
6281
- color: inherit;
6282
- opacity: 0.5; }
6283
- .brz .brz-login .brz-input::-ms-input-placeholder {
6284
- color: inherit;
6285
- opacity: 0.5; }
6286
- .brz .brz-login .brz-input::placeholder {
6287
- color: inherit;
6288
- opacity: 0.5; }
6289
- .brz .brz-login__item {
6290
- -webkit-box-flex: 1;
6291
- -ms-flex-positive: 1;
6292
- flex-grow: 1;
6293
- -ms-flex-negative: 0;
6294
- flex-shrink: 0; }
6295
- .brz .brz-login__item-button .brz-login__item {
6296
- width: 100%;
6297
- overflow: hidden; }
6298
- .brz .brz-login__item-button .brz-btn {
6299
- outline: none;
6300
- width: 100%;
6301
- padding-left: 0;
6302
- padding-right: 0; }
6303
- .brz .brz-login__item-button .brz-icon-svg {
6304
- -webkit-box-flex: 0;
6305
- -ms-flex-positive: 0;
6306
- flex-grow: 0; }
6307
- .brz .brz-login__alert {
6308
- min-height: 55px;
6309
- width: 100%;
6310
- padding: 17px 30px;
6311
- margin-top: 15px;
6312
- word-break: break-word;
6313
- font-family: "nunito", "Open Sans", Arial, sans-serif;
6314
- font-size: 12px;
6315
- line-height: 2;
6316
- letter-spacing: 2.5px;
6317
- font-weight: 600;
6318
- text-transform: uppercase;
6319
- color: #fff; }
6320
- .brz .brz-login__alert--success {
6321
- background-color: #15d053; }
6322
- .brz .brz-login__alert--error {
6323
- background-color: #f00; }
6324
- .brz .brz-login-form {
6325
- -ms-flex-wrap: wrap !important;
6326
- flex-wrap: wrap !important;
6327
- margin-top: -0 !important; }
6328
- .brz .brz-login-form .brz-login__field .brz-login__field-empty.brz-input {
6329
- border-color: #f00; }
6330
- .brz .brz-login .brz-control__check-group-option {
6331
- display: -webkit-box;
6332
- display: -ms-flexbox;
6333
- display: flex;
6334
- -webkit-box-align: center;
6335
- -ms-flex-align: center;
6336
- align-items: center; }
6337
- .brz .brz-login .brz-control__check-group-option .brz-control__check-group-icon {
6338
- margin-right: 10px; }
6339
- .brz .brz-login .brz-login__field-label {
6340
- display: block; }
6341
- .brz .brz-login .brz-login-form__field {
6342
- padding-top: 0 !important; }
6343
- .brz .brz-login .brz-login-form__field a {
6344
- text-decoration: none; }
6345
- .brz .brz-login .brz-login-form__field-lost-password,
6346
- .brz .brz-login .brz-login-form__field-register-link,
6347
- .brz .brz-login .brz-login-form__field-login-link {
6348
- width: 100%;
6349
- cursor: pointer; }
6350
- .brz .brz-login .brz-login-form__field-remember-off.brz-login-form__field-Remember,
6351
- .brz .brz-login .brz-login-form__field-registerInfo-off {
6352
- padding: 0 !important; }
6353
-
6354
- .brz .brz-shape {
6355
- position: relative;
6356
- width: 100%;
6357
- display: -webkit-box !important;
6358
- display: -ms-flexbox !important;
6359
- display: flex !important;
6360
- vertical-align: middle; }
6361
- .brz .brz-shape .brz-ed-border,
6362
- .brz .brz-shape .brz-d-xs-flex {
6363
- height: 100%; }
6364
- .brz .brz-shape .brz-ed-box__resizer {
6365
- height: unset; }
6366
- .brz .brz-shape::before {
6367
- content: "";
6368
- width: 100%;
6369
- height: 100%;
6370
- position: absolute;
6371
- top: 0;
6372
- left: 0;
6373
- z-index: 2;
6374
- display: block;
6375
- pointer-events: none; }
6376
-
6377
- .brz .brz-shopify-quantity {
6378
- width: 20%;
6379
- line-height: 1.8; }
6380
- .brz .brz-shopify-quantity > .brz-input {
6381
- outline: none;
6382
- letter-spacing: inherit;
6383
- font-weight: inherit;
6384
- color: inherit;
6385
- border: none;
6386
- background-color: inherit;
6387
- text-align: center;
6388
- border-radius: inherit;
6389
- width: 100%;
6390
- line-height: inherit; }
6391
-
6392
- .brz .brz-shopify-add-to-cart {
6393
- display: -webkit-box;
6394
- display: -ms-flexbox;
6395
- display: flex;
6396
- -webkit-box-align: center;
6397
- -ms-flex-align: center;
6398
- align-items: center; }
6399
-
6400
- .brz .brz-shopify-stamped-reviews {
6401
- background-color: transparent; }
6402
-
6403
- .brz .brz-filters__main {
6404
- width: 100%; }
6405
-
6406
- .brz .brz-filters {
6407
- display: -webkit-box;
6408
- display: -ms-flexbox;
6409
- display: flex;
6410
- -ms-flex-wrap: wrap;
6411
- flex-wrap: wrap; }
6412
- .brz .brz-filters .brz-filters__wrapper {
6413
- display: -webkit-box;
6414
- display: -ms-flexbox;
6415
- display: flex;
6416
- -webkit-box-orient: vertical;
6417
- -webkit-box-direction: normal;
6418
- -ms-flex-direction: column;
6419
- flex-direction: column; }
6420
- .brz .brz-filters .brz-filters__option {
6421
- display: -webkit-box;
6422
- display: -ms-flexbox;
6423
- display: flex;
6424
- -webkit-box-align: center;
6425
- -ms-flex-align: center;
6426
- align-items: center; }
6427
- .brz .brz-filters .brz-filters__container {
6428
- display: -webkit-box;
6429
- display: -ms-flexbox;
6430
- display: flex; }
6431
- .brz .brz-filters .brz-filters__title {
6432
- display: -webkit-box;
6433
- display: -ms-flexbox;
6434
- display: flex; }
6435
- .brz .brz-filters .brz-filters__checkbox-option {
6436
- display: -webkit-box;
6437
- display: -ms-flexbox;
6438
- display: flex;
6439
- -webkit-box-align: center;
6440
- -ms-flex-align: center;
6441
- align-items: center; }
6442
- .brz .brz-filters .brz-filters__checkbox-option .brz-label,
6443
- .brz .brz-filters .brz-filters__radio-option .brz-label {
6444
- color: inherit;
6445
- font-size: inherit;
6446
- font-weight: inherit;
6447
- font-family: inherit;
6448
- letter-spacing: inherit;
6449
- line-height: inherit; }
6450
- .brz .brz-filters .brz-filters__checkbox-option-name {
6451
- margin-left: 10px; }
6452
- .brz .brz-filters .brz-filters__radio--style-2 .brz-control__radio-check,
6453
- .brz .brz-filters .brz-filters__radio--style-3 .brz-control__radio-check,
6454
- .brz .brz-filters .brz-filters__radio--style-4 .brz-control__radio-check {
6455
- display: none !important; }
6456
- .brz .brz-filters .brz-filters__checkbox--style-2 .brz-filters__checkbox-option {
6457
- -ms-flex-preferred-size: unset;
6458
- flex-basis: unset;
6459
- display: -webkit-box;
6460
- display: -ms-flexbox;
6461
- display: flex;
6462
- -webkit-box-align: center;
6463
- -ms-flex-align: center;
6464
- align-items: center;
6465
- height: 100%;
6466
- width: -webkit-fit-content;
6467
- width: -moz-fit-content;
6468
- width: fit-content; }
6469
- .brz .brz-filters .brz-filters__checkbox--style-2 .brz-filters__checkbox-option .brz-filters__checkbox-option-name {
6470
- margin-left: 0 !important; }
6471
- .brz .brz-filters .brz-control__radio-option.brz-filters__radio-option {
6472
- display: -webkit-box;
6473
- display: -ms-flexbox;
6474
- display: flex;
6475
- -webkit-box-align: center;
6476
- -ms-flex-align: center;
6477
- align-items: center; }
6478
- .brz .brz-filters .brz-filters__radio--style-2 .brz-filters__radio-option {
6479
- -ms-flex-preferred-size: unset;
6480
- flex-basis: unset;
6481
- display: -webkit-box;
6482
- display: -ms-flexbox;
6483
- display: flex;
6484
- -webkit-box-align: center;
6485
- -ms-flex-align: center;
6486
- align-items: center;
6487
- height: 100%;
6488
- width: -webkit-fit-content;
6489
- width: -moz-fit-content;
6490
- width: fit-content; }
6491
- .brz .brz-filters .brz-filters__radio--style-2 .brz-filters__radio-option .brz-filters__radio-option-name {
6492
- margin-left: 0 !important; }
6493
- .brz .brz-filters .brz-filters__radio--style-2 .brz-control__radio-check {
6494
- -ms-flex-preferred-size: unset;
6495
- flex-basis: unset; }
6496
- .brz .brz-filters .brz-filters__radio--style-2 .brz-filters__radio-option-name {
6497
- margin: 0;
6498
- -ms-flex-preferred-size: unset;
6499
- flex-basis: unset; }
6500
- .brz .brz-filters .brz-control__radio-check {
6501
- -ms-flex-preferred-size: 1em;
6502
- flex-basis: 1em;
6503
- border-radius: 100%; }
6504
- .brz .brz-filters .brz-filters__range-option {
6505
- background-color: #3dbfe8;
6506
- position: relative;
6507
- margin-top: 5px;
6508
- margin-bottom: 5px; }
6509
- .brz .brz-filters .brz-filters__date-option,
6510
- .brz .brz-filters .brz-filters__select-option,
6511
- .brz .brz-filters .brz-filters__search-option {
6512
- outline: none;
6513
- padding: 14px 24px; }
6514
- .brz .brz-filters.brz-filters__select .brz-filters__option {
6515
- display: block; }
6516
- .brz .brz-filters .brz-filters__select-option {
6517
- width: 100%;
6518
- background-color: #fff;
6519
- display: -webkit-box;
6520
- display: -ms-flexbox;
6521
- display: flex;
6522
- -webkit-box-align: center;
6523
- -ms-flex-align: center;
6524
- align-items: center; }
6525
- .brz .brz-filters .brz-filters__select-option .brz-filters__select {
6526
- -webkit-box-flex: 1;
6527
- -ms-flex-positive: 1;
6528
- flex-grow: 1; }
6529
- .brz .brz-filters .brz-filters__select-option .brz-filters__select--icon {
6530
- font-size: 14px; }
6531
- .brz .brz-filters .brz-filters__select__item {
6532
- display: -webkit-box;
6533
- display: -ms-flexbox;
6534
- display: flex;
6535
- -ms-flex-wrap: nowrap;
6536
- flex-wrap: nowrap;
6537
- border: 0; }
6538
- .brz .brz-filters .brz-filters__select__item .brz-filters__select__icon {
6539
- -ms-flex-preferred-size: 52px;
6540
- flex-basis: 52px;
6541
- text-align: center;
6542
- font-size: 13px;
6543
- display: -webkit-box;
6544
- display: -ms-flexbox;
6545
- display: flex;
6546
- -webkit-box-align: center;
6547
- -ms-flex-align: center;
6548
- align-items: center;
6549
- -webkit-box-pack: center;
6550
- -ms-flex-pack: center;
6551
- justify-content: center;
6552
- cursor: pointer;
6553
- opacity: 0.7;
6554
- -webkit-transition: 0.2s linear opacity;
6555
- transition: 0.2s linear opacity; }
6556
- .brz .brz-filters .brz-filters__select__dropdown {
6557
- position: absolute;
6558
- width: 100%;
6559
- border-top: none !important;
6560
- z-index: 1040; }
6561
- .brz .brz-filters .brz-filters__select__input {
6562
- width: 100%;
6563
- display: -webkit-box;
6564
- display: -ms-flexbox;
6565
- display: flex;
6566
- -webkit-box-flex: 1;
6567
- -ms-flex: 1 1 auto;
6568
- flex: 1 1 auto;
6569
- -webkit-box-align: center;
6570
- -ms-flex-align: center;
6571
- align-items: center;
6572
- font-family: inherit;
6573
- font-weight: inherit; }
6574
- .brz .brz-filters .brz-filters__select__input .brz-input.brz-input__select {
6575
- cursor: text;
6576
- outline: 0;
6577
- background: inherit;
6578
- border-width: 0;
6579
- height: 100%;
6580
- width: 100%;
6581
- color: inherit;
6582
- font-weight: inherit;
6583
- letter-spacing: inherit;
6584
- line-height: inherit; }
6585
- .brz .brz-filters .brz-filters__search-option {
6586
- width: 100%;
6587
- background-color: #fff;
6588
- display: -webkit-box;
6589
- display: -ms-flexbox;
6590
- display: flex;
6591
- -webkit-box-align: center;
6592
- -ms-flex-align: center;
6593
- align-items: center; }
6594
- .brz .brz-filters .brz-filters__search-option .brz-filters__search {
6595
- -webkit-box-flex: 1;
6596
- -ms-flex-positive: 1;
6597
- flex-grow: 1;
6598
- font-size: inherit;
6599
- font-weight: inherit;
6600
- font-family: inherit;
6601
- letter-spacing: inherit;
6602
- line-height: inherit;
6603
- background-color: inherit;
6604
- color: inherit;
6605
- padding: 0;
6606
- outline: none;
6607
- border: none; }
6608
- .brz .brz-filters .brz-filters__search-option .brz-filters__search--icon {
6609
- font-size: 14px; }
6610
- .brz .brz-filters .brz-filters__date--wrapper {
6611
- display: -webkit-box;
6612
- display: -ms-flexbox;
6613
- display: flex; }
6614
- .brz .brz-filters .brz-filters__date--wrapper .brz-filters__date-option::-webkit-input-placeholder {
6615
- color: inherit; }
6616
- .brz .brz-filters .brz-filters__date--wrapper .brz-filters__date-option::-moz-placeholder {
6617
- color: inherit; }
6618
- .brz .brz-filters .brz-filters__date--wrapper .brz-filters__date-option::-ms-input-placeholder {
6619
- color: inherit; }
6620
- .brz .brz-filters .brz-filters__date--wrapper .brz-filters__date-option::placeholder {
6621
- color: inherit; }
6622
- .brz .brz-filters .brz-filters__date--wrapper .brz-filters__date--label {
6623
- display: -webkit-box;
6624
- display: -ms-flexbox;
6625
- display: flex; }
6626
- .brz .brz-filters .brz-filters__rating {
6627
- width: 100%;
6628
- display: -webkit-box;
6629
- display: -ms-flexbox;
6630
- display: flex; }
6631
- .brz .brz-filters .brz-filters__rating .brz-filters__option {
6632
- width: auto; }
6633
- .brz .brz-filters .brz-filters__rating .brz-filters__rating-icon {
6634
- width: auto !important; }
6635
- .brz .brz-filters .brz-filters__counter {
6636
- margin-left: 5px; }
6637
- .brz .brz-filters .brz-filters__btn-wrapper {
6638
- display: -webkit-box;
6639
- display: -ms-flexbox;
6640
- display: flex; }
6641
- .brz .brz-filters .brz-filters__btn-wrapper .brz-filters__apply {
6642
- outline: none; }
6643
- .brz .brz-filters .brz-filters__btn-wrapper .brz-filters__apply:hover {
6644
- text-decoration: none; }
6645
- .brz .brz-filters .brz-filters__tags {
6646
- display: -webkit-box;
6647
- display: -ms-flexbox;
6648
- display: flex; }
6649
- .brz .brz-filters .brz-filters__active-filters {
6650
- width: -webkit-fit-content;
6651
- width: -moz-fit-content;
6652
- width: fit-content;
6653
- height: auto; }
6654
- .brz .brz-filters .brz-filters__active-filters .brz-filters__tag {
6655
- display: -webkit-box;
6656
- display: -ms-flexbox;
6657
- display: flex;
6658
- -webkit-box-align: center;
6659
- -ms-flex-align: center;
6660
- align-items: center;
6661
- min-width: 20px; }
6662
- .brz .brz-filters .brz-filters__active-filters .brz-filters__tag .brz-filters__tag__text {
6663
- cursor: pointer; }
6664
- .brz .brz-filters .brz-filters__active-filters .brz-filters__tag .brz-filters__tag__close-icon {
6665
- display: -webkit-box;
6666
- display: -ms-flexbox;
6667
- display: flex;
6668
- cursor: pointer; }
6669
- .brz .brz-filters .brz-filters__checkbox--style-4 .brz-filters__option .brz-filters__checkbox-option {
6670
- background-size: cover; }
6671
- .brz .brz-filters .brz-filters__radio--style-4 .brz-filters__option .brz-filters__radio-option {
6672
- background-size: cover; }
6673
- .brz .brz-filters .brz-filters__checkbox-color,
6674
- .brz .brz-filters .brz-filters__radio-color {
6675
- width: 20px;
6676
- height: 20px; }
6677
- .brz .brz-filters .brz-filters__range.brz-filters__option {
6678
- display: block;
6679
- width: 100%; }
6680
- .brz .brz-filters .brz-filters__range__text {
6681
- display: -webkit-box;
6682
- display: -ms-flexbox;
6683
- display: flex; }
6684
- .brz .brz-filters .brz-filters__range__slider--active {
6685
- width: 70%;
6686
- position: absolute;
6687
- left: 15%; }
6688
- .brz .brz-filters .brz-filters__range--wrapper {
6689
- width: 100%;
6690
- position: relative;
6691
- display: -webkit-box;
6692
- display: -ms-flexbox;
6693
- display: flex;
6694
- -webkit-box-align: center;
6695
- -ms-flex-align: center;
6696
- align-items: center; }
6697
- .brz .brz-filters .brz-filters__range__slider {
6698
- width: 100%;
6699
- -webkit-box-sizing: content-box;
6700
- box-sizing: content-box; }
6701
- .brz .brz-filters .brz-filters__range__slider-handle {
6702
- -webkit-box-sizing: content-box;
6703
- box-sizing: content-box;
6704
- position: absolute;
6705
- border-radius: 100%;
6706
- top: 0;
6707
- cursor: pointer; }
6708
- .brz .brz-filters .brz-filters__range__slider--start {
6709
- left: 14%; }
6710
- .brz .brz-filters .brz-filters__range__slider--end {
6711
- left: 84%; }
6712
- .brz .brz-filters .brz-filters__range--slider {
6713
- position: relative;
6714
- z-index: 1;
6715
- -webkit-box-sizing: content-box;
6716
- box-sizing: content-box; }
6717
- .brz .brz-filters .brz-filters__range--slider > .brz-filters__range--track {
6718
- position: absolute;
6719
- z-index: 1;
6720
- top: 0;
6721
- bottom: 0; }
6722
- .brz .brz-filters .brz-filters__range--slider > .brz-filters__range--range {
6723
- position: absolute;
6724
- z-index: 2;
6725
- top: 0;
6726
- bottom: 0; }
6727
- .brz .brz-filters .brz-filters__range--slider > .brz-filters__range--thumb {
6728
- position: absolute;
6729
- z-index: 3;
6730
- border-radius: 50%;
6731
- -webkit-box-sizing: content-box;
6732
- box-sizing: content-box; }
6733
- .brz .brz-filters input[type="range"] {
6734
- position: absolute;
6735
- pointer-events: none;
6736
- -webkit-appearance: none;
6737
- z-index: 2;
6738
- opacity: 0;
6739
- padding: 0; }
6740
- .brz .brz-filters input[type="range"]::-webkit-slider-thumb {
6741
- pointer-events: all;
6742
- border-radius: 0;
6743
- -webkit-appearance: none; }
6744
-
6745
- .brz.brz:not(.brz-ed) .flatpickr-calendar {
6746
- font-family: "Lato", sans-serif;
6747
- width: 306px; }
6748
-
6749
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime {
6750
- width: 150px; }
6751
-
6752
- .brz.brz:not(.brz-ed) .flatpickr-calendar.open {
6753
- max-height: 600px; }
6754
-
6755
- .brz.brz:not(.brz-ed) .flatpickr-calendar .dayContainer {
6756
- width: 286px;
6757
- min-width: 286px;
6758
- max-width: 286px; }
6759
-
6760
- .brz.brz:not(.brz-ed) .flatpickr-calendar .numInputWrapper:hover {
6761
- background-color: transparent; }
6762
-
6763
- .brz.brz:not(.brz-ed) .flatpickr-months {
6764
- padding: 10px 10px 0; }
6765
-
6766
- .brz.brz:not(.brz-ed) .flatpickr-innerContainer {
6767
- padding: 0 10px 10px; }
6768
-
6769
- .brz.brz:not(.brz-ed) .flatpickr-next-month, .brz.brz:not(.brz-ed) .flatpickr-prev-month {
6770
- top: 7px; }
6771
-
6772
- .brz.brz:not(.brz-ed) .flatpickr-next-month {
6773
- right: 10px; }
6774
-
6775
- .brz.brz:not(.brz-ed) .flatpickr-prev-month {
6776
- left: 10px; }
6777
-
6778
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-prev-month,
6779
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-next-month {
6780
- color: rgba(0, 0, 0, 0.5); }
6781
-
6782
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-prev-month:hover,
6783
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-next-month:hover {
6784
- color: black; }
6785
-
6786
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-prev-month svg,
6787
- .brz.brz:not(.brz-ed) .flatpickr-months .flatpickr-next-month svg {
6788
- fill: currentColor; }
6789
-
6790
- .brz.brz:not(.brz-ed) .flatpickr-current-month input.cur-year {
6791
- font-size: 17px;
6792
- font-weight: 700; }
6793
-
6794
- .brz.brz:not(.brz-ed) .flatpickr-current-month .numInputWrapper:hover,
6795
- .brz.brz:not(.brz-ed) .flatpickr-current-month span.cur-month:hover {
6796
- background-color: transparent; }
6797
-
6798
- .brz.brz:not(.brz-ed) .flatpickr-weekdays {
6799
- padding: 20px 0 15px;
6800
- height: auto; }
6801
-
6802
- .brz.brz:not(.brz-ed) .flatpickr-weekday {
6803
- color: rgba(0, 0, 0, 0.8); }
6804
-
6805
- .brz.brz:not(.brz-ed) .flatpickr-days {
6806
- width: 286px;
6807
- font-size: 13px;
6808
- font-weight: 700; }
6809
-
6810
- .brz.brz:not(.brz-ed) .flatpickr-day {
6811
- height: 36px;
6812
- max-width: 36px;
6813
- line-height: 1;
6814
- display: -webkit-box;
6815
- display: -ms-flexbox;
6816
- display: flex;
6817
- -webkit-box-align: center;
6818
- -ms-flex-align: center;
6819
- align-items: center;
6820
- -webkit-box-pack: center;
6821
- -ms-flex-pack: center;
6822
- justify-content: center; }
6823
-
6824
- .brz.brz:not(.brz-ed) .flatpickr-day.today {
6825
- border-color: #a9a9a9; }
6826
-
6827
- .brz.brz:not(.brz-ed) .flatpickr-day:hover, .brz.brz:not(.brz-ed) .flatpickr-day:focus {
6828
- color: #fff;
6829
- border-color: #a9a9a9;
6830
- background-color: #a9a9a9; }
6831
-
6832
- .brz.brz:not(.brz-ed) .flatpickr-day.selected {
6833
- border-color: rgba(0, 0, 0, 0.9);
6834
- background-color: rgba(0, 0, 0, 0.9); }
6835
-
6836
- .brz.brz:not(.brz-ed) .flatpickr-time input {
6837
- font-size: 15px;
6838
- font-weight: 700;
6839
- text-align: left;
6840
- text-indent: 12px; }
6841
-
6842
- .brz.brz:not(.brz-ed) .flatpickr-time input:hover,
6843
- .brz.brz:not(.brz-ed) .flatpickr-time input:focus,
6844
- .brz.brz:not(.brz-ed) .flatpickr-time .flatpickr-am-pm:hover,
6845
- .brz.brz:not(.brz-ed) .flatpickr-time .flatpickr-am-pm:focus {
6846
- background-color: transparent; }
6847
-
6848
- .brz.brz:not(.brz-ed) .flatpickr-am-pm {
6849
- font-size: 14px;
6850
- font-weight: 700;
6851
- color: rgba(0, 0, 0, 0.7);
6852
- width: 32.66%; }
6853
-
6854
- .brz.brz:not(.brz-ed) .flatpickr-am-pm:hover, .brz.brz:not(.brz-ed) .flatpickr-am-pm:focus {
6855
- color: black; }
6856
-
6857
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime .numInputWrapper {
6858
- width: 32.66%; }
6859
-
6860
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime .numInputWrapper span.arrowUp,
6861
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime .numInputWrapper span.arrowDown {
6862
- height: 10px;
6863
- top: 50%; }
6864
-
6865
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime .numInputWrapper span.arrowUp {
6866
- margin-top: -10px; }
6867
-
6868
- .brz.brz:not(.brz-ed) .flatpickr-calendar.hasTime .numInputWrapper span.arrowDown {
6869
- margin-bottom: -10px; }
6870
-
6871
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-dropdown {
6872
- background-color: #fff;
6873
- border: none;
6874
- border-radius: 0; }
6875
-
6876
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-results__option {
6877
- margin: 0;
6878
- padding: 12px 24px;
6879
- font-size: 16px;
6880
- line-height: 1.5;
6881
- cursor: pointer;
6882
- background-color: inherit; }
6883
-
6884
- .brz.brz:not(.brz-ed) .brz-filters__select .select2 .selection, .brz.brz:not(.brz-ed) .brz-filters__select .select2-container {
6885
- display: -webkit-box;
6886
- display: -ms-flexbox;
6887
- display: flex;
6888
- -webkit-box-orient: vertical;
6889
- -webkit-box-direction: normal;
6890
- -ms-flex-direction: column;
6891
- flex-direction: column;
6892
- -webkit-box-align: stretch;
6893
- -ms-flex-align: stretch;
6894
- align-items: stretch;
6895
- -webkit-box-pack: stretch;
6896
- -ms-flex-pack: stretch;
6897
- justify-content: stretch;
6898
- -webkit-box-flex: 1;
6899
- -ms-flex: 1;
6900
- flex: 1; }
6901
-
6902
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-container, .brz.brz:not(.brz-ed) .brz-filters__select .select2-selection {
6903
- outline: none; }
6904
-
6905
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-selection--multiple, .brz.brz:not(.brz-ed) .brz-filters__select .select2-selection--single {
6906
- display: -webkit-box;
6907
- display: -ms-flexbox;
6908
- display: flex;
6909
- -webkit-box-align: center;
6910
- -ms-flex-align: center;
6911
- align-items: center;
6912
- -ms-flex-wrap: wrap;
6913
- flex-wrap: wrap;
6914
- -webkit-box-flex: 1;
6915
- -ms-flex: 1;
6916
- flex: 1; }
6917
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-selection--multiple .select2-selection__rendered, .brz.brz:not(.brz-ed) .brz-filters__select .select2-selection--single .select2-selection__rendered {
6918
- color: inherit;
6919
- line-height: inherit !important;
6920
- padding: 0;
6921
- -webkit-box-flex: 1;
6922
- -ms-flex: 1;
6923
- flex: 1; }
6924
-
6925
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-selection--multiple .select2-selection__rendered {
6926
- display: -webkit-box;
6927
- display: -ms-flexbox;
6928
- display: flex;
6929
- -ms-flex-wrap: wrap;
6930
- flex-wrap: wrap;
6931
- margin: -2.5px; }
6932
-
6933
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-selection--multiple .select2-selection__choice {
6934
- margin: 2.5px;
6935
- float: none;
6936
- display: -webkit-box;
6937
- display: -ms-flexbox;
6938
- display: flex;
6939
- -webkit-box-orient: horizontal;
6940
- -webkit-box-direction: reverse;
6941
- -ms-flex-direction: row-reverse;
6942
- flex-direction: row-reverse;
6943
- -ms-flex-wrap: wrap;
6944
- flex-wrap: wrap;
6945
- -webkit-box-align: center;
6946
- -ms-flex-align: center;
6947
- align-items: center;
6948
- border: none;
6949
- padding: 0 11px; }
6950
-
6951
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-selection--multiple .select2-selection__choice__remove {
6952
- display: block;
6953
- font-size: inherit;
6954
- font-weight: normal;
6955
- color: inherit;
6956
- margin-right: 0;
6957
- margin-left: 8px; }
6958
-
6959
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-selection__arrow {
6960
- top: 50%;
6961
- right: 18px;
6962
- -webkit-transform: translateY(-50%);
6963
- transform: translateY(-50%); }
6964
-
6965
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-selection__clear {
6966
- margin-right: 14px; }
6967
-
6968
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-search__field {
6969
- font: inherit;
6970
- color: inherit;
6971
- margin: 0; }
6972
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-search__field::-webkit-input-placeholder {
6973
- color: inherit; }
6974
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-search__field::-moz-placeholder {
6975
- color: inherit; }
6976
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-search__field::-ms-input-placeholder {
6977
- color: inherit; }
6978
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-search__field::placeholder {
6979
- color: inherit; }
6980
-
6981
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-container .select2-search--inline {
6982
- margin: 2.5px;
6983
- -webkit-box-flex: 1;
6984
- -ms-flex: 1;
6985
- flex: 1;
6986
- float: none; }
6987
-
6988
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-container--default .select2-results > .select2-results__options {
6989
- padding: 0;
6990
- max-height: initial; }
6991
-
6992
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-container--default .select2-results__option--highlighted[aria-selected] {
6993
- background-color: inherit;
6994
- color: inherit; }
6995
-
6996
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-container--default .select2-selection--single .select2-selection__placeholder {
6997
- color: inherit; }
6998
-
6999
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-container--default .select2-selection--single .select2-selection__placeholder:empty:before {
7000
- content: "Fake content";
7001
- visibility: hidden; }
7002
-
7003
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-container--default .select2-selection--single .select2-selection__arrow b {
7004
- border-color: currentColor transparent transparent; }
7005
-
7006
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow
7007
- b {
7008
- border-color: transparent transparent currentColor; }
7009
-
7010
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-container--open .select2-dropdown {
7011
- top: 1px;
7012
- max-height: 200px;
7013
- overflow: hidden; }
7014
-
7015
- .brz.brz:not(.brz-ed) .brz-filters__select .select2-dropdown--below {
7016
- background-color: transparent; }
7017
-
7018
- .brz.brz:not(.brz-ed) .brz-filters__select .ps__thumb-y {
7019
- background-color: rgba(0, 0, 0, 0.2); }
7020
-
7021
- .brz.brz:not(.brz-ed) .brz-filters__select .ps .ps__rail-x:hover,
7022
- .brz.brz:not(.brz-ed) .brz-filters__select .ps .ps__rail-y:hover,
7023
- .brz.brz:not(.brz-ed) .brz-filters__select .ps .ps__rail-x:focus,
7024
- .brz.brz:not(.brz-ed) .brz-filters__select .ps .ps__rail-y:focus,
7025
- .brz.brz:not(.brz-ed) .brz-filters__select .ps .ps__rail-x.ps--clicking,
7026
- .brz.brz:not(.brz-ed) .brz-filters__select .ps .ps__rail-y.ps--clicking {
7027
- background-color: transparent; }
7028
-
7029
- .brz.brz:not(.brz-ed) .brz-filters__select .ps__rail-y:hover > .ps__thumb-y,
7030
- .brz.brz:not(.brz-ed) .brz-filters__select .ps__rail-y:focus > .ps__thumb-y,
7031
- .brz.brz:not(.brz-ed) .brz-filters__select .ps__rail-y.ps--clicking .ps__thumb-y {
7032
- width: 6px; }
7033
-
7034
- .brz.brz:not(.brz-ed) .brz-filters__select .ps__rail-x,
7035
- .brz.brz:not(.brz-ed) .brz-filters__select .ps__rail-y,
7036
- .brz.brz:not(.brz-ed) .brz-filters__select .ps:hover > .ps__rail-x,
7037
- .brz.brz:not(.brz-ed) .brz-filters__select .ps:hover > .ps__rail-y,
7038
- .brz.brz:not(.brz-ed) .brz-filters__select .ps--focus > .ps__rail-x,
7039
- .brz.brz:not(.brz-ed) .brz-filters__select .ps--focus > .ps__rail-y,
7040
- .brz.brz:not(.brz-ed) .brz-filters__select .ps--scrolling-x > .ps__rail-x,
7041
- .brz.brz:not(.brz-ed) .brz-filters__select .ps--scrolling-y > .ps__rail-y {
7042
- opacity: 1; }
7043
-
7044
- .brz .brz-reset-psw {
7045
- width: 100%; }
7046
- .brz .brz-reset-psw .brz-input {
7047
- width: 100%;
7048
- height: auto;
7049
- max-width: 100%;
7050
- min-height: auto;
7051
- background-color: transparent;
7052
- border: none;
7053
- outline: none;
7054
- color: inherit;
7055
- font-size: inherit;
7056
- font-family: inherit;
7057
- letter-spacing: inherit;
7058
- font-weight: inherit;
7059
- line-height: inherit;
7060
- -webkit-box-shadow: none;
7061
- box-shadow: none; }
7062
- .brz .brz-reset-psw .brz-input::-webkit-input-placeholder {
7063
- color: inherit;
7064
- opacity: 0.5; }
7065
- .brz .brz-reset-psw .brz-input::-moz-placeholder {
7066
- color: inherit;
7067
- opacity: 0.5; }
7068
- .brz .brz-reset-psw .brz-input::-ms-input-placeholder {
7069
- color: inherit;
7070
- opacity: 0.5; }
7071
- .brz .brz-reset-psw .brz-input::placeholder {
7072
- color: inherit;
7073
- opacity: 0.5; }
7074
- .brz .brz-reset-psw__item {
7075
- -webkit-box-flex: 1;
7076
- -ms-flex-positive: 1;
7077
- flex-grow: 1;
7078
- -ms-flex-negative: 0;
7079
- flex-shrink: 0; }
7080
- .brz .brz-reset-psw__item-button .brz-btn {
7081
- outline: none;
7082
- width: 100%; }
7083
- .brz .brz-reset-psw__item-button .brz-icon-svg {
7084
- -webkit-box-flex: 0;
7085
- -ms-flex-positive: 0;
7086
- flex-grow: 0; }
7087
- .brz .brz-reset-psw-form {
7088
- -ms-flex-wrap: wrap !important;
7089
- flex-wrap: wrap !important;
7090
- margin-top: -0 !important; }
7091
- .brz .brz-reset-psw-form__field {
7092
- padding-top: 0 !important; }
7093
- .brz .brz-reset-psw-form__field a {
7094
- text-decoration: none; }
7095
- .brz .brz-reset-psw-form .brz-reset-psw__field-label {
7096
- display: block; }
7097
- .brz .brz-reset-psw-form .brz-reset-psw__field-empty.brz-input {
7098
- border-color: #f00; }
7099
- .brz .brz-reset-psw .brz-reset-psw-form .brz-reset-psw-form__field .brz-reset-psw__field-empty.brz-input {
7100
- border-color: #f00; }
7101
- .brz .brz-reset-psw__alert {
7102
- min-height: 55px;
7103
- width: 100%;
7104
- padding: 17px 30px;
7105
- margin-top: 15px;
7106
- font-family: "nunito", "Open Sans", Arial, sans-serif;
7107
- font-size: 12px;
7108
- line-height: 2;
7109
- letter-spacing: 2.5px;
7110
- font-weight: 600;
7111
- text-transform: uppercase;
7112
- color: #fff;
7113
- background-color: #f00; }
7114
-
7115
- .brz .brz-shopify-product-review {
7116
- background-color: transparent; }
7117
-
7118
- .brz .brz-shopify-trust-seals {
7119
- background-color: transparent; }
7120
-
7121
- .brz .brz-shopify-trust-product-rating {
7122
- background-color: transparent; }
7123
-
7124
- .brz .brz-shopify-trust-product-review {
7125
- background-color: transparent; }
7126
-
7127
- .brz .brz-shopify-trust-me-badges {
7128
- background-color: transparent; }
7129
-
7130
- .brz .brz-shopify-stamped-badge {
7131
- background-color: transparent; }
7132
-
7133
- .brz .brz-translation {
7134
- display: -webkit-box;
7135
- display: -ms-flexbox;
7136
- display: flex;
7137
- -webkit-box-align: center;
7138
- -ms-flex-align: center;
7139
- align-items: center;
7140
- -webkit-box-pack: center;
7141
- -ms-flex-pack: center;
7142
- justify-content: center;
7143
- -ms-flex-wrap: wrap;
7144
- flex-wrap: wrap;
7145
- cursor: pointer; }
7146
- .brz .brz-translation__code .brz-span {
7147
- text-transform: uppercase; }
7148
- .brz .brz-translation__dc {
7149
- height: 100%; }
7150
- .brz .brz-translation__select-current {
7151
- display: -webkit-box;
7152
- display: -ms-flexbox;
7153
- display: flex;
7154
- -webkit-box-align: center;
7155
- -ms-flex-align: center;
7156
- align-items: center; }
7157
- .brz .brz-translation__select-list {
7158
- overflow: hidden;
7159
- position: absolute;
7160
- z-index: 1056;
7161
- cursor: pointer; }
7162
- .brz .brz-translation__select-list .brz-translation__select-item:not(:last-child) {
7163
- border-bottom-width: 0 !important; }
7164
- .brz .brz-translation__select-item {
7165
- display: -webkit-box;
7166
- display: -ms-flexbox;
7167
- display: flex;
7168
- -webkit-box-align: center;
7169
- -ms-flex-align: center;
7170
- align-items: center;
7171
- -webkit-box-pack: center;
7172
- -ms-flex-pack: center;
7173
- justify-content: center;
7174
- -ms-flex-wrap: nowrap;
7175
- flex-wrap: nowrap; }
7176
- .brz .brz-translation__arrow {
7177
- font-size: 9px;
7178
- color: inherit; }
7179
- .brz .brz-translation .brz-select {
7180
- visibility: hidden;
7181
- width: 100%; }
7182
- .brz .brz-translation .select2 {
7183
- -ms-flex-item-align: center;
7184
- align-self: center;
7185
- height: 100%; }
7186
- .brz .brz-translation .select2 .selection .select2-selection {
7187
- background-color: inherit;
7188
- border: inherit;
7189
- border-radius: inherit; }
7190
- .brz .brz-translation .select2 .selection .select2-selection .select2-selection__rendered {
7191
- color: inherit; }
7192
- .brz .brz-translation .select2-selection__arrow {
7193
- top: 50%;
7194
- -webkit-transform: translateY(-50%);
7195
- transform: translateY(-50%); }
7196
- .brz .brz-translation .select2-dropdown {
7197
- top: 1px;
7198
- max-height: 200px;
7199
- overflow: hidden;
7200
- border: inherit;
7201
- border-radius: 0; }
7202
- .brz .brz-translation .select2-dropdown .select2-results > .select2-results__options {
7203
- max-height: initial;
7204
- font-family: inherit;
7205
- font-weight: inherit;
7206
- font-size: inherit;
7207
- line-height: inherit;
7208
- letter-spacing: inherit; }
7209
- .brz .brz-translation .select2-dropdown .select2-results > .select2-results__options .select2-results__option .brz-translation__select-item {
7210
- height: 100%; }
7211
- .brz .brz-translation .select2-dropdown .select2-results > .select2-results__options .select2-results__option:not(:last-child) {
7212
- border-bottom-width: 0 !important; }
7213
- .brz .brz-translation .select2-dropdown .select2-selection--single .select2-selection__placeholder {
7214
- color: inherit; }
7215
-
7216
- .brz .brz-wp-post-content {
7217
- width: 100%; }
7218
- .brz .brz-wp-post-content > div > :first-child {
7219
- margin-top: 0; }
7220
- .brz .brz-wp-post-content > div > :last-child {
7221
- margin-bottom: 0; }
7222
- .brz .brz-wp-post-content > div > * {
7223
- margin-bottom: 1em; }
7224
-
7225
- .brz .brz-rich-text .brz-tp__dc-block-st1 {
7226
- width: 100%;
7227
- white-space: initial; }
7228
- .brz .brz-rich-text .brz-tp__dc-block-st1 > :first-child {
7229
- margin-top: 0; }
7230
- .brz .brz-rich-text .brz-tp__dc-block-st1 > :last-child {
7231
- margin-bottom: 0; }
7232
- .brz .brz-rich-text .brz-tp__dc-block-st1 > * {
7233
- margin-bottom: 1em; }
7234
-
7235
- .brz .brz-wp-post-excerpt {
7236
- width: 100%; }
7237
- .brz .brz-wp-post-excerpt-content {
7238
- margin: 0; }
7239
-
7240
- .brz .brz-wp-title {
7241
- width: 100%; }
7242
- .brz .brz-wp-title-content {
7243
- margin: 0; }
7244
-
7245
- .brz .brz-woo-stock {
7246
- display: -webkit-box;
7247
- display: -ms-flexbox;
7248
- display: flex;
7249
- -webkit-box-pack: inherit;
7250
- -ms-flex-pack: inherit;
7251
- justify-content: inherit;
7252
- width: 100%; }
7253
- .brz .brz-woo-stock .stock {
7254
- margin: 0; }
7255
-
7256
- .brz .brz-woosku {
7257
- width: 100%;
7258
- display: -webkit-box;
7259
- display: -ms-flexbox;
7260
- display: flex;
7261
- -webkit-box-pack: inherit;
7262
- -ms-flex-pack: inherit;
7263
- justify-content: inherit; }
7264
-
7265
- .brz .brz-wooproductmeta {
7266
- width: 100%;
7267
- -webkit-box-pack: inherit;
7268
- -ms-flex-pack: inherit;
7269
- justify-content: inherit;
7270
- display: -webkit-box;
7271
- display: -ms-flexbox;
7272
- display: flex; }
7273
- .brz .brz-wooproductmeta > div > .brz-metas {
7274
- width: -webkit-fit-content;
7275
- width: -moz-fit-content;
7276
- width: fit-content; }
7277
- .brz .brz-wooproductmeta__container {
7278
- display: -webkit-box;
7279
- display: -ms-flexbox;
7280
- display: flex;
7281
- position: relative; }
7282
- .brz .brz-wooproductmeta__container.brz-wooproductmeta__container:first-child > .brz-wooproductmeta__item.brz-wooproductmeta__item {
7283
- padding-top: 0; }
7284
- .brz .brz-wooproductmeta__container:last-child > .brz-wooproductmeta__item.brz-wooproductmeta__item {
7285
- padding-bottom: 0; }
7286
- .brz .brz-wooproductmeta__item {
7287
- display: -webkit-box;
7288
- display: -ms-flexbox;
7289
- display: flex;
7290
- -webkit-box-align: center;
7291
- -ms-flex-align: center;
7292
- align-items: center; }
7293
- .brz .brz-wooproductmeta__item .brz-a {
7294
- color: inherit !important; }
7295
- .brz .brz-wooproductmeta__item .brz-a:hover {
7296
- text-decoration: underline; }
7297
- .brz .brz-wooproductmeta__item-value:not(:first-child) .brz-a {
7298
- padding-left: 5px; }
7299
- .brz .brz-wooproductmeta-table {
7300
- border-collapse: collapse; }
7301
- .brz .brz-wooproductmeta-table > div > .brz-metas {
7302
- display: table; }
7303
- .brz .brz-wooproductmeta-table > div > .brz-metas .brz-wooproductmeta__container {
7304
- display: table-row; }
7305
- .brz .brz-wooproductmeta-table > div > .brz-metas .brz-wooproductmeta__item {
7306
- display: table-cell;
7307
- vertical-align: middle; }
7308
-
7309
- .brz .brz-woo-price {
7310
- min-height: -webkit-fit-content !important;
7311
- min-height: -moz-fit-content !important;
7312
- min-height: fit-content !important;
7313
- display: -webkit-box;
7314
- display: -ms-flexbox;
7315
- display: flex;
7316
- -webkit-box-pack: inherit;
7317
- -ms-flex-pack: inherit;
7318
- justify-content: inherit;
7319
- width: 100%; }
7320
- .brz .brz-woo-price > div {
7321
- font-size: 0; }
7322
- .brz .brz-woo-price > div > .brz-price-none {
7323
- margin: 0;
7324
- font-size: 16px; }
7325
- .brz .brz-woo-price > div > p.price {
7326
- width: 100%;
7327
- display: -webkit-box;
7328
- display: -ms-flexbox;
7329
- display: flex;
7330
- -webkit-box-align: center;
7331
- -ms-flex-align: center;
7332
- align-items: center;
7333
- margin: 0; }
7334
- .brz .brz-woo-price > div > p.price del {
7335
- opacity: 1 !important; }
7336
- .brz .brz-woo-price > div > p.price del .amount {
7337
- display: block; }
7338
- .brz .brz-woo-price > div > p.price ins {
7339
- background: transparent;
7340
- text-decoration: none; }
7341
- .brz .brz-woo-price > div > p.price ins .amount {
7342
- display: block; }
7343
-
7344
- .brz .brz-woo-attributes {
7345
- display: -webkit-box;
7346
- display: -ms-flexbox;
7347
- display: flex;
7348
- -webkit-box-orient: vertical;
7349
- -webkit-box-direction: normal;
7350
- -ms-flex-direction: column;
7351
- flex-direction: column; }
7352
- .brz .brz-woo-attributes table {
7353
- border: 0; }
7354
- .brz .brz-woo-attributes h2 {
7355
- margin: 0; }
7356
- .brz .brz-woo-attributes .woocommerce-product-attributes {
7357
- width: 100%;
7358
- margin: 0; }
7359
- .brz .brz-woo-attributes .woocommerce-product-attributes tr {
7360
- border-width: 0;
7361
- background-color: transparent; }
7362
- .brz .brz-woo-attributes .woocommerce-product-attributes-item__label,
7363
- .brz .brz-woo-attributes .woocommerce-product-attributes-item__value {
7364
- width: 50%;
7365
- padding: 0;
7366
- font-style: normal; }
7367
- .brz .brz-woo-attributes .woocommerce-product-attributes-item__label p,
7368
- .brz .brz-woo-attributes .woocommerce-product-attributes-item__value p {
7369
- margin: 0;
7370
- padding: 0; }
7371
-
7372
- .brz .brz-woocart__wrapper {
7373
- display: -webkit-box;
7374
- display: -ms-flexbox;
7375
- display: flex;
7376
- width: 100%;
7377
- -webkit-box-pack: inherit;
7378
- -ms-flex-pack: inherit;
7379
- justify-content: inherit; }
7380
- .brz .brz-woocart__wrapper--opened .brz-woocart__background {
7381
- opacity: 1;
7382
- pointer-events: auto; }
7383
- .brz .brz-woocart__wrapper--opened .brz-woocart__sidebar {
7384
- opacity: 1;
7385
- pointer-events: auto; }
7386
- .brz .brz-woocart__wrapper .brz-woocart__dc {
7387
- width: -webkit-fit-content;
7388
- width: -moz-fit-content;
7389
- width: fit-content;
7390
- display: -webkit-box;
7391
- display: -ms-flexbox;
7392
- display: flex;
7393
- -webkit-box-pack: inherit;
7394
- -ms-flex-pack: inherit;
7395
- justify-content: inherit; }
7396
-
7397
- .brz .brz-woocart {
7398
- display: -webkit-box;
7399
- display: -ms-flexbox;
7400
- display: flex;
7401
- -webkit-box-align: center;
7402
- -ms-flex-align: center;
7403
- align-items: center;
7404
- padding: 10px 15px; }
7405
- .brz .brz-woocart,
7406
- .brz .brz-woocart__dc .brz-cart {
7407
- font-size: initial; }
7408
- .brz .brz-woocart__background {
7409
- position: fixed;
7410
- top: 0;
7411
- left: 0;
7412
- width: 100vw;
7413
- height: 100vh;
7414
- background-color: rgba(0, 0, 0, 0.4);
7415
- opacity: 0;
7416
- pointer-events: none;
7417
- -webkit-transition: opacity 0.3s ease-in-out;
7418
- transition: opacity 0.3s ease-in-out;
7419
- z-index: 1060;
7420
- cursor: auto; }
7421
- .brz .brz-woocart__parent {
7422
- cursor: pointer; }
7423
- .brz .brz-woocart__parent.brz-woocart--bubble .brz-woocart__icon:before {
7424
- position: absolute;
7425
- min-width: 1.6em;
7426
- height: 1.6em;
7427
- line-height: 1.5em;
7428
- top: -0.7em;
7429
- right: -1em;
7430
- border-radius: 100%;
7431
- text-align: center;
7432
- font-size: 10px;
7433
- z-index: 1; }
7434
- .brz .brz-woocart__icon {
7435
- display: -webkit-box;
7436
- display: -ms-flexbox;
7437
- display: flex;
7438
- -webkit-box-align: center;
7439
- -ms-flex-align: center;
7440
- align-items: center;
7441
- position: relative; }
7442
- .brz .brz-woocart__sidebar {
7443
- max-width: 100%;
7444
- max-height: 100vh;
7445
- position: fixed;
7446
- z-index: 1060;
7447
- padding: 40px 15px 15px;
7448
- opacity: 0;
7449
- overflow: auto;
7450
- pointer-events: none;
7451
- cursor: auto;
7452
- -webkit-transition: opacity 0.3s ease-in-out;
7453
- transition: opacity 0.3s ease-in-out; }
7454
- .brz .brz-woocart__sidebar-item {
7455
- display: -webkit-box;
7456
- display: -ms-flexbox;
7457
- display: flex;
7458
- padding: 20px 0; }
7459
- .brz .brz-woocart__sidebar-item:first-child {
7460
- padding-top: 0; }
7461
- .brz .brz-woocart__sidebar-item:not(:first-child) {
7462
- border-top: 1px solid #000; }
7463
- .brz .brz-woocart__sidebar__product-info {
7464
- width: 100%;
7465
- display: -webkit-box;
7466
- display: -ms-flexbox;
7467
- display: flex;
7468
- -webkit-box-orient: vertical;
7469
- -webkit-box-direction: normal;
7470
- -ms-flex-direction: column;
7471
- flex-direction: column;
7472
- -webkit-box-pack: justify;
7473
- -ms-flex-pack: justify;
7474
- justify-content: space-between;
7475
- padding-left: 15px; }
7476
- .brz .brz-woocart__sidebar-remove {
7477
- margin-top: auto;
7478
- -ms-flex-negative: 0;
7479
- flex-shrink: 0; }
7480
- .brz .brz-woocart__sidebar-image__block {
7481
- position: relative;
7482
- width: 80px;
7483
- height: 80px;
7484
- -ms-flex-negative: 0;
7485
- flex-shrink: 0; }
7486
- .brz .brz-woocart__sidebar-image__block * {
7487
- position: absolute;
7488
- top: 0;
7489
- left: 0;
7490
- width: 100%;
7491
- height: 100%; }
7492
- .brz .brz-woocart__sidebar-image__block img {
7493
- -o-object-fit: cover;
7494
- object-fit: cover; }
7495
- .brz .brz-woocart__sidebar-close {
7496
- width: 20px;
7497
- height: 20px;
7498
- position: absolute;
7499
- top: 15px;
7500
- right: 15px;
7501
- cursor: pointer; }
7502
- .brz .brz-woocart__sidebar-close:before, .brz .brz-woocart__sidebar-close:after {
7503
- content: "";
7504
- position: absolute;
7505
- width: 1px;
7506
- height: 100%;
7507
- background-color: #000;
7508
- top: 0;
7509
- left: 0;
7510
- right: 0;
7511
- margin: auto; }
7512
- .brz .brz-woocart__sidebar-close:before {
7513
- -webkit-transform: rotate(45deg);
7514
- transform: rotate(45deg); }
7515
- .brz .brz-woocart__sidebar-close:after {
7516
- -webkit-transform: rotate(-45deg);
7517
- transform: rotate(-45deg); }
7518
- .brz .brz-woocart__sidebar-subtotal {
7519
- margin-bottom: 20px;
7520
- padding: 15px 0;
7521
- border-bottom: 1px solid #000; }
7522
- .brz .brz-woocart__sidebar-subtotal:not(:nth-child(2)) {
7523
- border-top: 1px solid #000; }
7524
- .brz .brz-woocart__sidebar-buttons {
7525
- display: -webkit-box;
7526
- display: -ms-flexbox;
7527
- display: flex;
7528
- -webkit-box-pack: justify;
7529
- -ms-flex-pack: justify;
7530
- justify-content: space-between; }
7531
- .brz .brz-woocart__sidebar-button {
7532
- padding: 10px 15px;
7533
- text-align: center; }
7534
- .brz .brz-woocart__sidebar-button:last-child {
7535
- margin-bottom: 0; }
7536
-
7537
- .brz.brz-woocart--opened .brz-root__container,
7538
- .brz.brz-woocart--opened .brz-root__container > .brz-section,
7539
- .brz.brz-woocart--opened .brz-root__container .brz-section__header > .brz-section__menu-item {
7540
- z-index: auto; }
7541
-
7542
- .brz .brz-woo-rating {
7543
- width: 100%;
7544
- -webkit-box-pack: inherit;
7545
- -ms-flex-pack: inherit;
7546
- justify-content: inherit;
7547
- display: -webkit-box;
7548
- display: -ms-flexbox;
7549
- display: flex; }
7550
- .brz .brz-woo-rating.brz-disabled-rating-text .woocommerce-review-link {
7551
- display: none; }
7552
- .brz .brz-woo-rating .woocommerce-product-rating {
7553
- display: -webkit-box;
7554
- display: -ms-flexbox;
7555
- display: flex;
7556
- -webkit-box-align: center;
7557
- -ms-flex-align: center;
7558
- align-items: center;
7559
- margin: 0; }
7560
- .brz .brz-woo-rating .woocommerce-product-rating .star-rating {
7561
- margin: 0; }
7562
-
7563
- .brz .brz-woo-gallery .woocommerce-product-gallery {
7564
- margin: 0;
7565
- font-size: 1.3rem;
7566
- float: none !important;
7567
- width: 100% !important;
7568
- max-width: 100%;
7569
- display: -webkit-box;
7570
- display: -ms-flexbox;
7571
- display: flex; }
7572
- .brz .brz-woo-gallery .woocommerce-product-gallery img {
7573
- width: 100%; }
7574
- .brz .brz-woo-gallery .woocommerce-product-gallery .flex-viewport {
7575
- margin-bottom: 0;
7576
- width: 100%; }
7577
- .brz .brz-woo-gallery .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
7578
- overflow: hidden; }
7579
- .brz .brz-woo-gallery .woocommerce-product-gallery .flex-control-thumbs {
7580
- display: -webkit-box;
7581
- display: -ms-flexbox;
7582
- display: flex;
7583
- -ms-flex-wrap: wrap;
7584
- flex-wrap: wrap;
7585
- padding: 0; }
7586
- .brz .brz-woo-gallery .woocommerce-product-gallery .flex-control-thumbs li {
7587
- overflow: hidden; }
7588
-
7589
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsTB-1 .flex-control-thumbs li:nth-child(1n),
7590
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsTB-2 .flex-control-thumbs li:nth-child(2n),
7591
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsTB-3 .flex-control-thumbs li:nth-child(3n),
7592
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsTB-4 .flex-control-thumbs li:nth-child(4n),
7593
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsTB-5 .flex-control-thumbs li:nth-child(5n),
7594
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsTB-6 .flex-control-thumbs li:nth-child(6n),
7595
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsTB-7 .flex-control-thumbs li:nth-child(7n),
7596
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsTB-8 .flex-control-thumbs li:nth-child(8n), .brz .brz-woo-gallery.brz-woo-gallery__thumbsRL-1 .flex-control-thumbs li:nth-child(1n),
7597
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsRL-2 .flex-control-thumbs li:nth-child(2n),
7598
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsRL-3 .flex-control-thumbs li:nth-child(3n),
7599
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsRL-4 .flex-control-thumbs li:nth-child(4n),
7600
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsRL-5 .flex-control-thumbs li:nth-child(5n),
7601
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsRL-6 .flex-control-thumbs li:nth-child(6n),
7602
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsRL-7 .flex-control-thumbs li:nth-child(7n),
7603
- .brz .brz-woo-gallery.brz-woo-gallery__thumbsRL-8 .flex-control-thumbs li:nth-child(8n) {
7604
- margin-right: 0; }
7605
-
7606
- .brz .brz-woo-gallery__style-top .woocommerce-product-gallery {
7607
- -ms-flex-wrap: wrap-reverse;
7608
- flex-wrap: wrap-reverse; }
7609
- .brz .brz-woo-gallery__style-top .woocommerce-product-gallery .flex-control-thumbs {
7610
- width: 100%; }
7611
-
7612
- .brz .brz-woo-gallery__style-bottom .woocommerce-product-gallery {
7613
- -ms-flex-wrap: wrap;
7614
- flex-wrap: wrap; }
7615
- .brz .brz-woo-gallery__style-bottom .woocommerce-product-gallery .flex-control-thumbs {
7616
- width: 100%; }
7617
-
7618
- .brz .brz-woo-gallery__style-left .woocommerce-product-gallery {
7619
- -webkit-box-orient: horizontal;
7620
- -webkit-box-direction: reverse;
7621
- -ms-flex-direction: row-reverse;
7622
- flex-direction: row-reverse; }
7623
- .brz .brz-woo-gallery__style-left .woocommerce-product-gallery .flex-control-thumbs {
7624
- height: 100%; }
7625
-
7626
- .brz .brz-woo-gallery__style-right .woocommerce-product-gallery {
7627
- -webkit-box-orient: horizontal;
7628
- -webkit-box-direction: normal;
7629
- -ms-flex-direction: row;
7630
- flex-direction: row; }
7631
- .brz .brz-woo-gallery__style-right .woocommerce-product-gallery .flex-control-thumbs {
7632
- height: 100%; }
7633
-
7634
- .brz .brz-woo-add-to-cart {
7635
- width: 100%;
7636
- display: -webkit-box;
7637
- display: -ms-flexbox;
7638
- display: flex;
7639
- -webkit-box-pack: inherit;
7640
- -ms-flex-pack: inherit;
7641
- justify-content: inherit; }
7642
- .brz .brz-woo-add-to-cart .hidden {
7643
- display: none; }
7644
- .brz .brz-woo-add-to-cart > div:not(.brz-shortcode__placeholder) {
7645
- width: 100%;
7646
- display: -webkit-box;
7647
- display: -ms-flexbox;
7648
- display: flex;
7649
- -webkit-box-pack: inherit;
7650
- -ms-flex-pack: inherit;
7651
- justify-content: inherit; }
7652
- .brz .brz-woo-add-to-cart form.cart > .quantity {
7653
- float: none; }
7654
- .brz .brz-woo-add-to-cart form:not(.variations_form) {
7655
- display: -webkit-inline-box;
7656
- display: -ms-inline-flexbox;
7657
- display: inline-flex; }
7658
- .brz .brz-woo-add-to-cart form.grouped_form {
7659
- -ms-flex-wrap: wrap;
7660
- flex-wrap: wrap;
7661
- width: 100%;
7662
- -webkit-box-pack: inherit;
7663
- -ms-flex-pack: inherit;
7664
- justify-content: inherit; }
7665
- .brz .brz-woo-add-to-cart form.grouped_form .woocommerce-grouped-product-list {
7666
- margin-top: 0; }
7667
- .brz .brz-woo-add-to-cart form.grouped_form .woocommerce-grouped-product-list-item td {
7668
- padding: 0.7em 1em; }
7669
- .brz .brz-woo-add-to-cart form.grouped_form .woocommerce-grouped-product-list-item__label a {
7670
- text-decoration: unset;
7671
- color: inherit; }
7672
- .brz .brz-woo-add-to-cart form.variations_form {
7673
- width: 100%;
7674
- -webkit-box-pack: inherit;
7675
- -ms-flex-pack: inherit;
7676
- justify-content: inherit;
7677
- display: -webkit-box;
7678
- display: -ms-flexbox;
7679
- display: flex;
7680
- -ms-flex-wrap: wrap;
7681
- flex-wrap: wrap; }
7682
- .brz .brz-woo-add-to-cart form.variations_form table {
7683
- margin-top: 0; }
7684
- .brz .brz-woo-add-to-cart form.variations_form select {
7685
- background-color: inherit; }
7686
- .brz .brz-woo-add-to-cart form.variations_form table.variations td {
7687
- vertical-align: middle; }
7688
- .brz .brz-woo-add-to-cart form.variations_form table.variations td .reset-variations {
7689
- margin-left: 15px; }
7690
- .brz .brz-woo-add-to-cart form.variations_form .single_variation_wrap {
7691
- display: -webkit-box;
7692
- display: -ms-flexbox;
7693
- display: flex;
7694
- -ms-flex-wrap: wrap;
7695
- flex-wrap: wrap;
7696
- -webkit-box-pack: inherit;
7697
- -ms-flex-pack: inherit;
7698
- justify-content: inherit; }
7699
- .brz .brz-woo-add-to-cart form.variations_form .single_variation_wrap .single_variation {
7700
- width: 100%;
7701
- margin: 0; }
7702
- .brz .brz-woo-add-to-cart form.variations_form .single_variation_wrap .single_variation > div {
7703
- margin-bottom: 20px; }
7704
- .brz .brz-woo-add-to-cart form.variations_form .variations_button {
7705
- display: -webkit-inline-box;
7706
- display: -ms-inline-flexbox;
7707
- display: inline-flex; }
7708
- .brz .brz-woo-add-to-cart .woocommerce-variation-price {
7709
- margin-bottom: 20px; }
7710
- .brz .brz-woo-add-to-cart * {
7711
- -webkit-transition-property: color, background-color, border;
7712
- transition-property: color, background-color, border; }
7713
- .brz .brz-woo-add-to-cart input[type="number"].input-text {
7714
- width: 100%;
7715
- min-height: 100%;
7716
- padding: 0;
7717
- text-align: center;
7718
- outline: none;
7719
- height: auto; }
7720
- .brz .brz-woo-add-to-cart .single_add_to_cart_button {
7721
- margin: 0;
7722
- width: auto;
7723
- min-width: auto;
7724
- min-height: auto;
7725
- max-width: none;
7726
- max-height: none; }
7727
-
7728
- .brz .brz-wooexcerpt {
7729
- width: 100%; }
7730
- .brz .brz-wooexcerpt .woocommerce-product-details__short-description * {
7731
- -webkit-transition-property: color;
7732
- transition-property: color; }
7733
- .brz .brz-wooexcerpt .woocommerce-product-details__short-description *:last-child {
7734
- margin: 0; }
7735
- .brz .brz-wooexcerpt .woocommerce-product-details__short-description ul,
7736
- .brz .brz-wooexcerpt .woocommerce-product-details__short-description ol {
7737
- padding-left: 20px; }
7738
- .brz .brz-wooexcerpt .woocommerce-product-details__short-description > *:not(:last-child) {
7739
- margin-bottom: 0.9rem; }
7740
-
7741
- .brz .brz-ecwid-products-wrapper .grid__categories {
7742
- display: none !important; }
7743
-
7744
- .brz .brz-ecwid-wrapper .ecwid {
7745
- min-height: auto !important; }
7746
- .brz .brz-ecwid-wrapper .ecwid .ec-loader-wrapper div .ecwid-productBrowser {
7747
- padding: 0 !important; }
7748
- .brz .brz-ecwid-wrapper .ecwid .ec-loader-wrapper div .ecwid-productBrowser div div div .ec-wrapper .ec-store .ec-store__content-wrapper {
7749
- padding: 0 !important; }
7750
- .brz .brz-ecwid-wrapper .ecwid .ec-loader-wrapper div .ecwid-productBrowser div div div .ec-wrapper .ec-store .ec-store__content-wrapper .product-details .product-details__sidebar .ec-breadcrumbs {
7751
- padding-bottom: 0 !important;
7752
- margin-top: 0 !important; }
7753
- .brz .brz-ecwid-wrapper .ecwid .ec-loader-wrapper div .ecwid-productBrowser div div div .ec-wrapper .ec-store .ec-store__content-wrapper .product-details .product-details__sidebar .product-details__product-share.details-product-share
7754
- .product-details-module
7755
- .product-details-module__content.product-details-module__content--indented
7756
- .ec-likely.details-product-share__buttons
7757
- .ec-likely__wrapper
7758
- .ec-likely__widget
7759
- .ec-likely__icon
7760
- svg {
7761
- top: 0 !important;
7762
- left: 0 !important; }
7763
- .brz .brz-ecwid-wrapper .ecwid .ec-loader-wrapper div .ecwid-productBrowser div div div .ec-wrapper .ec-store .ec-store__content-wrapper .ec-footer {
7764
- padding-bottom: 0 !important; }
7765
- .brz .brz-ecwid-wrapper .ecwid .ec-loader-wrapper div .ecwid-productBrowser div div div .ec-wrapper .ec-store .ec-store__content-wrapper .ec-footer .ec-footer__row {
7766
- -ms-flex-wrap: nowrap !important;
7767
- flex-wrap: nowrap !important;
7768
- width: 100% !important; }
7769
- .brz .brz-ecwid-wrapper .ecwid .ec-loader-wrapper div .ecwid-productBrowser div div div .ec-wrapper .ec-store .ec-store__content-wrapper .ec-footer .ec-footer__row .ec-footer__cell {
7770
- padding-bottom: 0 !important;
7771
- width: 50% !important; }
7772
- .brz .brz-ecwid-wrapper .ecwid .ec-loader-wrapper div .ecwid-productBrowser div div div .ec-wrapper .ec-store .ec-store__content-wrapper .ec-footer .ec-footer__row .ec-footer__cell .ec-footer__link {
7773
- padding: 0 !important; }
7774
- .brz .brz-ecwid-wrapper .ecwid .ec-loader-wrapper div .ecwid-productBrowser div div div .ec-wrapper .ec-store .ec-store__content-wrapper .ec-footer .ec-footer__row .ec-footer__cell .ec-footer__link .svg-icon {
7775
- height: auto !important; }
7776
-
7777
- .brz .brz-ecwid-wrapper
7778
- .ecwid
7779
- .ec-loader-wrapper
7780
- div
7781
- .ecwid-productBrowser
7782
- div
7783
- div
7784
- div
7785
- .ec-wrapper
7786
- .ec-store__content-wrapper .ec-page-title {
7787
- padding-bottom: 0 !important; }
7788
-
7789
- .brz .brz-ecwid-wrapper
7790
- .ecwid
7791
- .ec-loader-wrapper
7792
- div
7793
- .ecwid-productBrowser
7794
- div
7795
- div
7796
- div
7797
- .ec-wrapper
7798
- .ec-store__content-wrapper .ec-cart.ec-cart--empty {
7799
- max-width: 100% !important;
7800
- margin-bottom: 0 !important; }
7801
- .brz .brz-ecwid-wrapper
7802
- .ecwid
7803
- .ec-loader-wrapper
7804
- div
7805
- .ecwid-productBrowser
7806
- div
7807
- div
7808
- div
7809
- .ec-wrapper
7810
- .ec-store__content-wrapper .ec-cart.ec-cart--empty .ec-cart__button {
7811
- display: -webkit-box !important;
7812
- display: -ms-flexbox !important;
7813
- display: flex !important; }
7814
-
7815
- .brz .brz-ecwid-wrapper
7816
- .ecwid
7817
- .ec-loader-wrapper
7818
- div
7819
- .ecwid-productBrowser
7820
- div
7821
- div
7822
- div
7823
- .ec-wrapper
7824
- .ec-store__content-wrapper .ec-cart__body-inner .ec-cart__email .ec-cart-email__input .form-control {
7825
- background: transparent !important; }
7826
- .brz .brz-ecwid-wrapper
7827
- .ecwid
7828
- .ec-loader-wrapper
7829
- div
7830
- .ecwid-productBrowser
7831
- div
7832
- div
7833
- div
7834
- .ec-wrapper
7835
- .ec-store__content-wrapper .ec-cart__body-inner .ec-cart__email .ec-cart-email__input .form-control__text {
7836
- min-height: 0 !important; }
7837
- .brz .brz-ecwid-wrapper
7838
- .ecwid
7839
- .ec-loader-wrapper
7840
- div
7841
- .ecwid-productBrowser
7842
- div
7843
- div
7844
- div
7845
- .ec-wrapper
7846
- .ec-store__content-wrapper .ec-cart__body-inner .ec-cart__email .ec-cart-email__input .form-control__text:-webkit-autofill {
7847
- -webkit-transition: background-color 500000s ease !important;
7848
- transition: background-color 500000s ease !important; }
7849
- .brz .brz-ecwid-wrapper
7850
- .ecwid
7851
- .ec-loader-wrapper
7852
- div
7853
- .ecwid-productBrowser
7854
- div
7855
- div
7856
- div
7857
- .ec-wrapper
7858
- .ec-store__content-wrapper .ec-cart__body-inner .ec-cart__email .ec-cart-email__input .form-control__placeholder-inner {
7859
- min-height: 0 !important;
7860
- z-index: 1 !important; }
7861
-
7862
- .brz .brz-ecwid-wrapper
7863
- .ecwid
7864
- .ec-loader-wrapper
7865
- div
7866
- .ecwid-productBrowser
7867
- div
7868
- div
7869
- div
7870
- .ec-wrapper
7871
- .ec-store__content-wrapper .ec-cart__body-inner .ec-cart__checkout .ec-cart__buttons div .form-control {
7872
- display: -webkit-box !important;
7873
- display: -ms-flexbox !important;
7874
- display: flex !important; }
7875
-
7876
- .brz .brz-ecwid-wrapper
7877
- .ecwid
7878
- .ec-loader-wrapper
7879
- div
7880
- .ecwid-productBrowser
7881
- div
7882
- div
7883
- div
7884
- .ec-wrapper
7885
- .ec-store__content-wrapper .ec-cart__body-inner .ec-cart__checkout .ec-cart__agreement.ec-cart__marketing-agreement .form-control--checkbox {
7886
- margin-bottom: 0 !important; }
7887
-
7888
- .brz .brz-ecwid-wrapper
7889
- .ecwid
7890
- .ec-loader-wrapper
7891
- div
7892
- .ecwid-productBrowser
7893
- div
7894
- div
7895
- div
7896
- .ec-wrapper
7897
- .ec-store__content-wrapper .ec-cart .ec-cart__sidebar-inner .ec-page-title {
7898
- padding-bottom: 0 !important; }
7899
-
7900
- .brz .brz-ecwid-wrapper
7901
- .ecwid
7902
- .ec-loader-wrapper
7903
- div
7904
- .ecwid-productBrowser
7905
- div
7906
- div
7907
- div
7908
- .ec-wrapper
7909
- .ec-store__content-wrapper .ec-cart .ec-cart__sidebar-inner .ec-cart__products-inner .ec-cart__item__image {
7910
- padding-right: 0 !important; }
7911
-
7912
- .brz .brz-ecwid-wrapper
7913
- .ecwid
7914
- .ec-loader-wrapper
7915
- div
7916
- .ecwid-productBrowser
7917
- div
7918
- div
7919
- div
7920
- .ec-wrapper
7921
- .ec-store__content-wrapper .ec-cart .ec-cart__sidebar-inner .ec-cart__products-inner .ec-cart__item .ec-cart-item__wrap-secondary .ec-cart-item__count-inner .form-control {
7922
- font-size: initial !important; }
7923
-
7924
- .brz .brz-ecwid-wrapper
7925
- .ecwid
7926
- .ec-loader-wrapper
7927
- div
7928
- .ecwid-productBrowser
7929
- div
7930
- div
7931
- div
7932
- .ec-wrapper
7933
- .ec-store__content-wrapper .ec-cart .ec-cart__sidebar-inner .ec-cart__products-inner .ec-cart__item .ec-cart-item__wrap .ec-cart-item__wrap-primary .ec-cart-item__control-inner svg {
7934
- opacity: 1 !important; }
7935
-
7936
- @media (max-width: 767px) {
7937
- .brz .brz-ecwid-wrapper
7938
- .ecwid
7939
- .ec-loader-wrapper
7940
- div
7941
- .ecwid-productBrowser
7942
- div
7943
- div
7944
- div
7945
- .ec-wrapper
7946
- .ec-store__content-wrapper {
7947
- max-width: 400px !important; }
7948
- .brz .brz-ecwid-wrapper
7949
- .ecwid
7950
- .ec-loader-wrapper
7951
- div
7952
- .ecwid-productBrowser
7953
- div
7954
- div
7955
- div
7956
- .ec-wrapper
7957
- .ec-store__content-wrapper .ec-cart {
7958
- -ms-flex-wrap: wrap !important;
7959
- flex-wrap: wrap !important; }
7960
- .brz .brz-ecwid-wrapper
7961
- .ecwid
7962
- .ec-loader-wrapper
7963
- div
7964
- .ecwid-productBrowser
7965
- div
7966
- div
7967
- div
7968
- .ec-wrapper
7969
- .ec-store__content-wrapper .ec-cart__sidebar {
7970
- width: 100% !important;
7971
- padding-right: 0 !important; }
7972
- .brz .brz-ecwid-wrapper
7973
- .ecwid
7974
- .ec-loader-wrapper
7975
- div
7976
- .ecwid-productBrowser
7977
- div
7978
- div
7979
- div
7980
- .ec-wrapper
7981
- .ec-store__content-wrapper .ec-cart__sidebar-inner .ec-cart__products-inner .ec-cart__item__image {
7982
- padding-right: 0 !important; }
7983
- .brz .brz-ecwid-wrapper
7984
- .ecwid
7985
- .ec-loader-wrapper
7986
- div
7987
- .ecwid-productBrowser
7988
- div
7989
- div
7990
- div
7991
- .ec-wrapper
7992
- .ec-store__content-wrapper .ec-cart__sidebar-inner .ec-cart__products-inner .ec-cart__item .ec-cart-item__wrap .ec-cart-item__wrap-primary .ec-cart-item__control {
7993
- margin: 0 !important; }
7994
- .brz .brz-ecwid-wrapper
7995
- .ecwid
7996
- .ec-loader-wrapper
7997
- div
7998
- .ecwid-productBrowser
7999
- div
8000
- div
8001
- div
8002
- .ec-wrapper
8003
- .ec-store__content-wrapper .ec-cart__body {
8004
- width: 100% !important;
8005
- padding-left: 0 !important; } }
8006
-
8007
- .brz .brz-ecwid-wrapper
8008
- .ecwid
8009
- .ec-loader-wrapper
8010
- div
8011
- .ecwid-productBrowser
8012
- div
8013
- div
8014
- div
8015
- .ec-wrapper
8016
- .ec-store__content-wrapper .ec-cart__body-inner .ec-signin-form .ec-cart-email {
8017
- margin-bottom: 0 !important; }
8018
- .brz .brz-ecwid-wrapper
8019
- .ecwid
8020
- .ec-loader-wrapper
8021
- div
8022
- .ecwid-productBrowser
8023
- div
8024
- div
8025
- div
8026
- .ec-wrapper
8027
- .ec-store__content-wrapper .ec-cart__body-inner .ec-signin-form .ec-cart-email__input .form-control {
8028
- background-color: transparent !important; }
8029
- .brz .brz-ecwid-wrapper
8030
- .ecwid
8031
- .ec-loader-wrapper
8032
- div
8033
- .ecwid-productBrowser
8034
- div
8035
- div
8036
- div
8037
- .ec-wrapper
8038
- .ec-store__content-wrapper .ec-cart__body-inner .ec-signin-form .ec-cart-email__input .form-control__placeholder {
8039
- z-index: 50 !important; }
8040
- .brz .brz-ecwid-wrapper
8041
- .ecwid
8042
- .ec-loader-wrapper
8043
- div
8044
- .ecwid-productBrowser
8045
- div
8046
- div
8047
- div
8048
- .ec-wrapper
8049
- .ec-store__content-wrapper .ec-cart__body-inner .ec-signin-form .ec-cart-email__input .form-control__placeholder-inner {
8050
- min-height: 0 !important;
8051
- z-index: 1 !important; }
8052
- .brz .brz-ecwid-wrapper
8053
- .ecwid
8054
- .ec-loader-wrapper
8055
- div
8056
- .ecwid-productBrowser
8057
- div
8058
- div
8059
- div
8060
- .ec-wrapper
8061
- .ec-store__content-wrapper .ec-cart__body-inner .ec-signin-form .ec-cart-email__input .form-control__text {
8062
- min-height: 5px !important; }
8063
- .brz .brz-ecwid-wrapper
8064
- .ecwid
8065
- .ec-loader-wrapper
8066
- div
8067
- .ecwid-productBrowser
8068
- div
8069
- div
8070
- div
8071
- .ec-wrapper
8072
- .ec-store__content-wrapper .ec-cart__body-inner .ec-signin-form .ec-cart-email__text {
8073
- margin-bottom: 0 !important; }
8074
-
8075
- .brz .brz-ecwid-wrapper
8076
- .ecwid
8077
- .ec-loader-wrapper
8078
- div
8079
- .ecwid-productBrowser
8080
- div
8081
- div
8082
- div
8083
- .ec-wrapper
8084
- .ec-store__content-wrapper .ec-cart__body-inner .ec-signin-form .ec-cart__checkout .ec-cart__buttons {
8085
- width: 100% !important; }
8086
- .brz .brz-ecwid-wrapper
8087
- .ecwid
8088
- .ec-loader-wrapper
8089
- div
8090
- .ecwid-productBrowser
8091
- div
8092
- div
8093
- div
8094
- .ec-wrapper
8095
- .ec-store__content-wrapper .ec-cart__body-inner .ec-signin-form .ec-cart__checkout .ec-cart__buttons .form-control {
8096
- display: -webkit-box !important;
8097
- display: -ms-flexbox !important;
8098
- display: flex !important; }
8099
- .brz .brz-ecwid-wrapper
8100
- .ecwid
8101
- .ec-loader-wrapper
8102
- div
8103
- .ecwid-productBrowser
8104
- div
8105
- div
8106
- div
8107
- .ec-wrapper
8108
- .ec-store__content-wrapper .ec-cart__body-inner .ec-signin-form .ec-cart__checkout .ec-cart__buttons .form-control__button {
8109
- min-height: 0 !important; }
8110
-
8111
- .brz .brz-ecwid-wrapper
8112
- .ecwid
8113
- .ec-loader-wrapper
8114
- div
8115
- .ecwid-productBrowser
8116
- div
8117
- div
8118
- div
8119
- .ec-wrapper
8120
- .ec-store__content-wrapper .ec-cart__body-inner .ec-signin-form .ec-cart__email {
8121
- margin-bottom: 0 !important; }
8122
-
8123
- .brz .brz-ecwid-wrapper
8124
- .ecwid
8125
- .ec-loader-wrapper
8126
- div
8127
- .ecwid-productBrowser
8128
- div
8129
- div
8130
- div
8131
- .ec-wrapper
8132
- .ec-store__content-wrapper .ec-cart__body-inner .ec-signin-form .ec-page-title {
8133
- margin-bottom: 0 !important; }
8134
-
8135
- .brz .brz-ecwid-wrapper
8136
- .ecwid
8137
- .ec-loader-wrapper
8138
- div
8139
- .ecwid-productBrowser
8140
- div
8141
- div
8142
- div
8143
- .ec-wrapper
8144
- .ec-store__content-wrapper .ec-cart .ec-cart__sidebar-inner .ec-page-title {
8145
- padding: 0; }
8146
-
8147
- .brz .brz-ecwid-wrapper .ecwid,
8148
- .brz .brz-ecwid-wrapper #EcwidShoppingBag-1,
8149
- .brz .brz-ecwid-wrapper .ec-minicart {
8150
- padding: 0 !important;
8151
- display: -webkit-box !important;
8152
- display: -ms-flexbox !important;
8153
- display: flex !important;
8154
- -ms-flex-line-pack: center !important;
8155
- align-content: center !important; }
8156
- .brz .brz-ecwid-wrapper .ecwid .ec-minicart__body,
8157
- .brz .brz-ecwid-wrapper .ecwid .ec-minicart__wrap,
8158
- .brz .brz-ecwid-wrapper .ecwid .ec-minicart__counter,
8159
- .brz .brz-ecwid-wrapper #EcwidShoppingBag-1 .ec-minicart__body,
8160
- .brz .brz-ecwid-wrapper #EcwidShoppingBag-1 .ec-minicart__wrap,
8161
- .brz .brz-ecwid-wrapper #EcwidShoppingBag-1 .ec-minicart__counter,
8162
- .brz .brz-ecwid-wrapper .ec-minicart .ec-minicart__body,
8163
- .brz .brz-ecwid-wrapper .ec-minicart .ec-minicart__wrap,
8164
- .brz .brz-ecwid-wrapper .ec-minicart .ec-minicart__counter {
8165
- min-width: 0 !important; }
8166
-
8167
- .brz .brz-ecwid-wrapper
8168
- .ecwid
8169
- .ec-loader-wrapper
8170
- div
8171
- .ecwid-productBrowser
8172
- div
8173
- div
8174
- div
8175
- .ec-wrapper
8176
- .ec-store
8177
- .ec-store__content-wrapper
8178
- .product-details__sidebar .product-details__product-sku.ec-text-muted {
8179
- margin-top: 0 !important; }
8180
-
8181
- .brz .brz-ecwid-wrapper
8182
- .ecwid
8183
- .ec-loader-wrapper
8184
- div
8185
- .ecwid-productBrowser
8186
- div
8187
- div
8188
- div
8189
- .ec-wrapper
8190
- .ec-store
8191
- .ec-store__content-wrapper
8192
- .product-details__sidebar .product-details-module.product-details__product-price-row {
8193
- margin-bottom: 0 !important; }
8194
- .brz .brz-ecwid-wrapper
8195
- .ecwid
8196
- .ec-loader-wrapper
8197
- div
8198
- .ecwid-productBrowser
8199
- div
8200
- div
8201
- div
8202
- .ec-wrapper
8203
- .ec-store
8204
- .ec-store__content-wrapper
8205
- .product-details__sidebar .product-details-module.product-details__product-price-row .product-details-module__content .product-details__attraction-block.product-details__product-on-sale {
8206
- margin-bottom: 0 !important; }
8207
- .brz .brz-ecwid-wrapper
8208
- .ecwid
8209
- .ec-loader-wrapper
8210
- div
8211
- .ecwid-productBrowser
8212
- div
8213
- div
8214
- div
8215
- .ec-wrapper
8216
- .ec-store
8217
- .ec-store__content-wrapper
8218
- .product-details__sidebar .product-details-module.product-details__product-price-row .product-details-module__content .product-details__product-price {
8219
- max-width: 100% !important; }
8220
- .brz .brz-ecwid-wrapper
8221
- .ecwid
8222
- .ec-loader-wrapper
8223
- div
8224
- .ecwid-productBrowser
8225
- div
8226
- div
8227
- div
8228
- .ec-wrapper
8229
- .ec-store
8230
- .ec-store__content-wrapper
8231
- .product-details__sidebar .product-details-module.product-details__product-price-row .product-details-module__content .product-details__product-price .details-product-price__value {
8232
- margin-right: 0 !important; }
8233
-
8234
- .brz .brz-ecwid-wrapper
8235
- .ecwid
8236
- .ec-loader-wrapper
8237
- div
8238
- .ecwid-productBrowser
8239
- div
8240
- div
8241
- div
8242
- .ec-wrapper
8243
- .ec-store
8244
- .ec-store__content-wrapper
8245
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module {
8246
- max-width: 100% !important; }
8247
-
8248
- .brz .brz-ecwid-wrapper
8249
- .ecwid
8250
- .ec-loader-wrapper
8251
- div
8252
- .ecwid-productBrowser
8253
- div
8254
- div
8255
- div
8256
- .ec-wrapper
8257
- .ec-store
8258
- .ec-store__content-wrapper
8259
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--size {
8260
- margin-bottom: 0 !important; }
8261
- .brz .brz-ecwid-wrapper
8262
- .ecwid
8263
- .ec-loader-wrapper
8264
- div
8265
- .ecwid-productBrowser
8266
- div
8267
- div
8268
- div
8269
- .ec-wrapper
8270
- .ec-store
8271
- .ec-store__content-wrapper
8272
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--size .product-details-module__content .form-control--checkbox-button {
8273
- background-color: transparent !important; }
8274
- .brz .brz-ecwid-wrapper
8275
- .ecwid
8276
- .ec-loader-wrapper
8277
- div
8278
- .ecwid-productBrowser
8279
- div
8280
- div
8281
- div
8282
- .ec-wrapper
8283
- .ec-store
8284
- .ec-store__content-wrapper
8285
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--size .product-details-module__content .form-control--checkbox-button .form-control__inline-label label {
8286
- cursor: pointer !important;
8287
- pointer-events: all !important;
8288
- background-position: unset !important;
8289
- background-size: unset !important;
8290
- min-width: 16px !important;
8291
- min-height: 16px !important; }
8292
- .brz .brz-ecwid-wrapper
8293
- .ecwid
8294
- .ec-loader-wrapper
8295
- div
8296
- .ecwid-productBrowser
8297
- div
8298
- div
8299
- div
8300
- .ec-wrapper
8301
- .ec-store
8302
- .ec-store__content-wrapper
8303
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--size .product-details-module__content .form-control--checkbox-button .form-control--checkbox-button:last-child {
8304
- margin-right: 0 !important; }
8305
- .brz .brz-ecwid-wrapper
8306
- .ecwid
8307
- .ec-loader-wrapper
8308
- div
8309
- .ecwid-productBrowser
8310
- div
8311
- div
8312
- div
8313
- .ec-wrapper
8314
- .ec-store
8315
- .ec-store__content-wrapper
8316
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--size .product-details-module__content .form-control--checkbox-button .form-control--checkbox-button:hover {
8317
- background-color: transparent !important; }
8318
-
8319
- .brz .brz-ecwid-wrapper
8320
- .ecwid
8321
- .ec-loader-wrapper
8322
- div
8323
- .ecwid-productBrowser
8324
- div
8325
- div
8326
- div
8327
- .ec-wrapper
8328
- .ec-store
8329
- .ec-store__content-wrapper
8330
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--textfield
8331
- .product-details-module__content {
8332
- display: -webkit-box !important;
8333
- display: -ms-flexbox !important;
8334
- display: flex !important; }
8335
- .brz .brz-ecwid-wrapper
8336
- .ecwid
8337
- .ec-loader-wrapper
8338
- div
8339
- .ecwid-productBrowser
8340
- div
8341
- div
8342
- div
8343
- .ec-wrapper
8344
- .ec-store
8345
- .ec-store__content-wrapper
8346
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--textfield
8347
- .product-details-module__content .form-control__text {
8348
- min-height: 0 !important;
8349
- height: 0 !important;
8350
- border: none !important;
8351
- -webkit-box-shadow: none !important;
8352
- box-shadow: none !important;
8353
- background-color: transparent !important; }
8354
- .brz .brz-ecwid-wrapper
8355
- .ecwid
8356
- .ec-loader-wrapper
8357
- div
8358
- .ecwid-productBrowser
8359
- div
8360
- div
8361
- div
8362
- .ec-wrapper
8363
- .ec-store
8364
- .ec-store__content-wrapper
8365
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--textfield
8366
- .product-details-module__content .form-control__text:-webkit-autofill {
8367
- -webkit-transition: background-color 500000s ease !important;
8368
- transition: background-color 500000s ease !important; }
8369
-
8370
- .brz .brz-ecwid-wrapper
8371
- .ecwid
8372
- .ec-loader-wrapper
8373
- div
8374
- .ecwid-productBrowser
8375
- div
8376
- div
8377
- div
8378
- .ec-wrapper
8379
- .ec-store
8380
- .ec-store__content-wrapper
8381
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--textarea
8382
- .product-details-module__content
8383
- .form-control--textarea {
8384
- background-color: transparent !important;
8385
- border: none !important; }
8386
- .brz .brz-ecwid-wrapper
8387
- .ecwid
8388
- .ec-loader-wrapper
8389
- div
8390
- .ecwid-productBrowser
8391
- div
8392
- div
8393
- div
8394
- .ec-wrapper
8395
- .ec-store
8396
- .ec-store__content-wrapper
8397
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--textarea
8398
- .product-details-module__content
8399
- .form-control--textarea .form-control__textarea {
8400
- resize: none !important;
8401
- min-height: 0 !important;
8402
- z-index: 0 !important; }
8403
- .brz .brz-ecwid-wrapper
8404
- .ecwid
8405
- .ec-loader-wrapper
8406
- div
8407
- .ecwid-productBrowser
8408
- div
8409
- div
8410
- div
8411
- .ec-wrapper
8412
- .ec-store
8413
- .ec-store__content-wrapper
8414
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--textarea
8415
- .product-details-module__content
8416
- .form-control--textarea .form-control__textarea:-webkit-autofill {
8417
- -webkit-transition: background-color 500000s ease !important;
8418
- transition: background-color 500000s ease !important; }
8419
-
8420
- .brz .brz-ecwid-wrapper
8421
- .ecwid
8422
- .ec-loader-wrapper
8423
- div
8424
- .ecwid-productBrowser
8425
- div
8426
- div
8427
- div
8428
- .ec-wrapper
8429
- .ec-store
8430
- .ec-store__content-wrapper
8431
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--select
8432
- .product-details-module__content {
8433
- max-width: 100% !important;
8434
- width: 100% !important;
8435
- display: -webkit-inline-box !important;
8436
- display: -ms-inline-flexbox !important;
8437
- display: inline-flex !important; }
8438
- .brz .brz-ecwid-wrapper
8439
- .ecwid
8440
- .ec-loader-wrapper
8441
- div
8442
- .ecwid-productBrowser
8443
- div
8444
- div
8445
- div
8446
- .ec-wrapper
8447
- .ec-store
8448
- .ec-store__content-wrapper
8449
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--select
8450
- .product-details-module__content .form-control--select .form-control__text {
8451
- min-height: 0 !important;
8452
- height: 0 !important;
8453
- border: none !important;
8454
- color: inherit !important;
8455
- -webkit-box-shadow: none !important;
8456
- box-shadow: none !important; }
8457
-
8458
- .brz .brz-ecwid-wrapper
8459
- .ecwid
8460
- .ec-loader-wrapper
8461
- div
8462
- .ecwid-productBrowser
8463
- div
8464
- div
8465
- div
8466
- .ec-wrapper
8467
- .ec-store
8468
- .ec-store__content-wrapper
8469
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--date
8470
- .product-details-module__content {
8471
- display: -webkit-box !important;
8472
- display: -ms-flexbox !important;
8473
- display: flex !important; }
8474
- .brz .brz-ecwid-wrapper
8475
- .ecwid
8476
- .ec-loader-wrapper
8477
- div
8478
- .ecwid-productBrowser
8479
- div
8480
- div
8481
- div
8482
- .ec-wrapper
8483
- .ec-store
8484
- .ec-store__content-wrapper
8485
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--date
8486
- .product-details-module__content .form-control--datepicker .form-control__text {
8487
- min-height: 0 !important;
8488
- height: 0 !important;
8489
- border: none !important;
8490
- -webkit-box-shadow: none !important;
8491
- box-shadow: none !important; }
8492
- .brz .brz-ecwid-wrapper
8493
- .ecwid
8494
- .ec-loader-wrapper
8495
- div
8496
- .ecwid-productBrowser
8497
- div
8498
- div
8499
- div
8500
- .ec-wrapper
8501
- .ec-store
8502
- .ec-store__content-wrapper
8503
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--date
8504
- .product-details-module__content .form-control--datepicker .form-control__text:-webkit-autofill {
8505
- -webkit-transition: background-color 500000s ease !important;
8506
- transition: background-color 500000s ease !important; }
8507
-
8508
- .brz .brz-ecwid-wrapper
8509
- .ecwid
8510
- .ec-loader-wrapper
8511
- div
8512
- .ecwid-productBrowser
8513
- div
8514
- div
8515
- div
8516
- .ec-wrapper
8517
- .ec-store
8518
- .ec-store__content-wrapper
8519
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--files
8520
- .product-details-module__content {
8521
- padding: 0 !important; }
8522
- .brz .brz-ecwid-wrapper
8523
- .ecwid
8524
- .ec-loader-wrapper
8525
- div
8526
- .ecwid-productBrowser
8527
- div
8528
- div
8529
- div
8530
- .ec-wrapper
8531
- .ec-store
8532
- .ec-store__content-wrapper
8533
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--files
8534
- .product-details-module__content .form-control--file {
8535
- width: 100% !important; }
8536
- .brz .brz-ecwid-wrapper
8537
- .ecwid
8538
- .ec-loader-wrapper
8539
- div
8540
- .ecwid-productBrowser
8541
- div
8542
- div
8543
- div
8544
- .ec-wrapper
8545
- .ec-store
8546
- .ec-store__content-wrapper
8547
- .product-details__sidebar .product-details__product-options.details-product-options .product-details-module.details-product-option.details-product-option--files
8548
- .product-details-module__content .form-control--file .form-control {
8549
- width: 100% !important; }
8550
-
8551
- .brz .brz-ecwid-wrapper
8552
- .ecwid
8553
- .ec-loader-wrapper
8554
- div
8555
- .ecwid-productBrowser
8556
- div
8557
- div
8558
- div
8559
- .ec-wrapper
8560
- .ec-store
8561
- .ec-store__content-wrapper
8562
- .product-details__sidebar .product-details-module.product-details__action-panel {
8563
- margin-bottom: 0 !important; }
8564
- .brz .brz-ecwid-wrapper
8565
- .ecwid
8566
- .ec-loader-wrapper
8567
- div
8568
- .ecwid-productBrowser
8569
- div
8570
- div
8571
- div
8572
- .ec-wrapper
8573
- .ec-store
8574
- .ec-store__content-wrapper
8575
- .product-details__sidebar .product-details-module.product-details__action-panel .product-details-module__content {
8576
- padding-top: 0 !important;
8577
- padding-bottom: 0 !important; }
8578
- .brz .brz-ecwid-wrapper
8579
- .ecwid
8580
- .ec-loader-wrapper
8581
- div
8582
- .ecwid-productBrowser
8583
- div
8584
- div
8585
- div
8586
- .ec-wrapper
8587
- .ec-store
8588
- .ec-store__content-wrapper
8589
- .product-details__sidebar .product-details-module.product-details__action-panel .product-details-module__content .details-product-purchase__controls {
8590
- display: -webkit-box !important;
8591
- display: -ms-flexbox !important;
8592
- display: flex !important;
8593
- -ms-flex-wrap: wrap !important;
8594
- flex-wrap: wrap !important;
8595
- height: auto !important;
8596
- width: 100% !important;
8597
- max-width: 100% !important;
8598
- min-height: 0 !important; }
8599
- .brz .brz-ecwid-wrapper
8600
- .ecwid
8601
- .ec-loader-wrapper
8602
- div
8603
- .ecwid-productBrowser
8604
- div
8605
- div
8606
- div
8607
- .ec-wrapper
8608
- .ec-store
8609
- .ec-store__content-wrapper
8610
- .product-details__sidebar .product-details-module.product-details__action-panel .product-details-module__content .details-product-purchase__controls .details-product-purchase__checkout-controls {
8611
- display: -webkit-box !important;
8612
- display: -ms-flexbox !important;
8613
- display: flex !important;
8614
- width: 100% !important; }
8615
- .brz .brz-ecwid-wrapper
8616
- .ecwid
8617
- .ec-loader-wrapper
8618
- div
8619
- .ecwid-productBrowser
8620
- div
8621
- div
8622
- div
8623
- .ec-wrapper
8624
- .ec-store
8625
- .ec-store__content-wrapper
8626
- .product-details__sidebar .product-details-module.product-details__action-panel .product-details-module__content .details-product-purchase__controls .details-product-purchase__checkout-controls .form-control {
8627
- display: -webkit-box !important;
8628
- display: -ms-flexbox !important;
8629
- display: flex !important; }
8630
- .brz .brz-ecwid-wrapper
8631
- .ecwid
8632
- .ec-loader-wrapper
8633
- div
8634
- .ecwid-productBrowser
8635
- div
8636
- div
8637
- div
8638
- .ec-wrapper
8639
- .ec-store
8640
- .ec-store__content-wrapper
8641
- .product-details__sidebar .product-details-module.product-details__action-panel .product-details-module__content .details-product-purchase__controls .details-product-purchase__checkout-controls .form-control .form-control__button {
8642
- min-height: 0 !important; }
8643
- .brz .brz-ecwid-wrapper
8644
- .ecwid
8645
- .ec-loader-wrapper
8646
- div
8647
- .ecwid-productBrowser
8648
- div
8649
- div
8650
- div
8651
- .ec-wrapper
8652
- .ec-store
8653
- .ec-store__content-wrapper
8654
- .product-details__sidebar .product-details-module.product-details__action-panel .product-details-module__content .details-product-purchase__qty {
8655
- max-width: 100% !important; }
8656
- .brz .brz-ecwid-wrapper
8657
- .ecwid
8658
- .ec-loader-wrapper
8659
- div
8660
- .ecwid-productBrowser
8661
- div
8662
- div
8663
- div
8664
- .ec-wrapper
8665
- .ec-store
8666
- .ec-store__content-wrapper
8667
- .product-details__sidebar .product-details-module.product-details__action-panel .product-details-module__content .details-product-purchase__qty .form-control__text {
8668
- min-height: 0 !important;
8669
- border: none !important;
8670
- -webkit-box-shadow: none !important;
8671
- box-shadow: none !important; }
8672
- .brz .brz-ecwid-wrapper
8673
- .ecwid
8674
- .ec-loader-wrapper
8675
- div
8676
- .ecwid-productBrowser
8677
- div
8678
- div
8679
- div
8680
- .ec-wrapper
8681
- .ec-store
8682
- .ec-store__content-wrapper
8683
- .product-details__sidebar .product-details-module.product-details__action-panel .product-details-module__content .details-product-purchase__qty .form-control__text:-webkit-autofill {
8684
- -webkit-transition: background-color 500000s ease !important;
8685
- transition: background-color 500000s ease !important; }
8686
-
8687
- .brz .brz-ecwid-wrapper
8688
- .ecwid
8689
- .ec-loader-wrapper
8690
- div
8691
- .ecwid-productBrowser
8692
- div
8693
- div
8694
- div
8695
- .ec-wrapper
8696
- .ec-store
8697
- .ec-store__content-wrapper
8698
- .product-details__sidebar .product-details-module.product-details__product-like.favorite-product {
8699
- margin-bottom: 0 !important; }
8700
- .brz .brz-ecwid-wrapper
8701
- .ecwid
8702
- .ec-loader-wrapper
8703
- div
8704
- .ecwid-productBrowser
8705
- div
8706
- div
8707
- div
8708
- .ec-wrapper
8709
- .ec-store
8710
- .ec-store__content-wrapper
8711
- .product-details__sidebar .product-details-module.product-details__product-like.favorite-product .product-details-module__content {
8712
- display: -webkit-box !important;
8713
- display: -ms-flexbox !important;
8714
- display: flex !important;
8715
- -ms-flex-wrap: wrap !important;
8716
- flex-wrap: wrap !important;
8717
- padding-top: 0 !important;
8718
- padding-bottom: 0 !important; }
8719
- .brz .brz-ecwid-wrapper
8720
- .ecwid
8721
- .ec-loader-wrapper
8722
- div
8723
- .ecwid-productBrowser
8724
- div
8725
- div
8726
- div
8727
- .ec-wrapper
8728
- .ec-store
8729
- .ec-store__content-wrapper
8730
- .product-details__sidebar .product-details-module.product-details__product-like.favorite-product .product-details-module__content .form-control {
8731
- display: -webkit-box !important;
8732
- display: -ms-flexbox !important;
8733
- display: flex !important;
8734
- max-width: 100% !important;
8735
- min-height: 0 !important; }
8736
- .brz .brz-ecwid-wrapper
8737
- .ecwid
8738
- .ec-loader-wrapper
8739
- div
8740
- .ecwid-productBrowser
8741
- div
8742
- div
8743
- div
8744
- .ec-wrapper
8745
- .ec-store
8746
- .ec-store__content-wrapper
8747
- .product-details__sidebar .product-details-module.product-details__product-like.favorite-product .product-details-module__content .form-control .form-control__button {
8748
- display: -webkit-inline-box !important;
8749
- display: -ms-inline-flexbox !important;
8750
- display: inline-flex !important;
8751
- -webkit-box-pack: center;
8752
- -ms-flex-pack: center;
8753
- justify-content: center;
8754
- min-height: 0 !important; }
8755
- .brz .brz-ecwid-wrapper
8756
- .ecwid
8757
- .ec-loader-wrapper
8758
- div
8759
- .ecwid-productBrowser
8760
- div
8761
- div
8762
- div
8763
- .ec-wrapper
8764
- .ec-store
8765
- .ec-store__content-wrapper
8766
- .product-details__sidebar .product-details-module.product-details__product-like.favorite-product .product-details-module__content .form-control .form-control__button-svg {
8767
- float: none !important;
8768
- margin-top: auto !important;
8769
- margin-bottom: auto !important; }
8770
- .brz .brz-ecwid-wrapper
8771
- .ecwid
8772
- .ec-loader-wrapper
8773
- div
8774
- .ecwid-productBrowser
8775
- div
8776
- div
8777
- div
8778
- .ec-wrapper
8779
- .ec-store
8780
- .ec-store__content-wrapper
8781
- .product-details__sidebar .product-details-module.product-details__product-like.favorite-product .product-details-module__content .form-control .form-control__button-svg .svg-icon {
8782
- top: auto !important;
8783
- margin: 0 !important; }
8784
- .brz .brz-ecwid-wrapper
8785
- .ecwid
8786
- .ec-loader-wrapper
8787
- div
8788
- .ecwid-productBrowser
8789
- div
8790
- div
8791
- div
8792
- .ec-wrapper
8793
- .ec-store
8794
- .ec-store__content-wrapper
8795
- .product-details__sidebar .product-details-module.product-details__product-like.favorite-product .product-details-module__content .form-control .form-control__button-text {
8796
- -ms-flex-item-align: center;
8797
- align-self: center;
8798
- padding-left: 0 !important; }
8799
-
8800
- .brz .brz-ecwid-wrapper
8801
- .ecwid
8802
- .ec-loader-wrapper
8803
- div
8804
- .ecwid-productBrowser
8805
- div
8806
- div
8807
- div
8808
- .ec-wrapper
8809
- .ec-store
8810
- .ec-store__content-wrapper
8811
- .product-details__sidebar .product-details__product-share.details-product-share
8812
- .product-details-module
8813
- .product-details-module__content {
8814
- padding-top: 0 !important;
8815
- padding-bottom: 0 !important; }
8816
-
8817
- .brz .brz-ecwid-wrapper
8818
- .ecwid
8819
- .ec-loader-wrapper
8820
- div
8821
- .ecwid-productBrowser
8822
- div
8823
- div
8824
- div
8825
- .ec-wrapper
8826
- .ec-store
8827
- .ec-store__content-wrapper
8828
- .product-details__sidebar .product-details-module.product-details__general-info {
8829
- margin-bottom: 0 !important; }
8830
-
8831
- .brz .brz-ecwid-wrapper
8832
- .ecwid
8833
- .ec-loader-wrapper
8834
- div
8835
- .ecwid-productBrowser
8836
- div
8837
- div
8838
- div
8839
- .ec-wrapper
8840
- .ec-store
8841
- .ec-store__content-wrapper
8842
- .product-details__sidebar .product-details__product-share.details-product-share
8843
- .product-details-module
8844
- .product-details-module__content
8845
- .ec-likely.details-product-share__buttons
8846
- .ec-likely__wrapper {
8847
- margin: 0 !important; }
8848
- .brz .brz-ecwid-wrapper
8849
- .ecwid
8850
- .ec-loader-wrapper
8851
- div
8852
- .ecwid-productBrowser
8853
- div
8854
- div
8855
- div
8856
- .ec-wrapper
8857
- .ec-store
8858
- .ec-store__content-wrapper
8859
- .product-details__sidebar .product-details__product-share.details-product-share
8860
- .product-details-module
8861
- .product-details-module__content
8862
- .ec-likely.details-product-share__buttons
8863
- .ec-likely__wrapper .ec-likely__widget {
8864
- display: -webkit-inline-box !important;
8865
- display: -ms-inline-flexbox !important;
8866
- display: inline-flex !important;
8867
- margin-left: 0 !important;
8868
- margin-top: 0 !important; }
8869
- .brz .brz-ecwid-wrapper
8870
- .ecwid
8871
- .ec-loader-wrapper
8872
- div
8873
- .ecwid-productBrowser
8874
- div
8875
- div
8876
- div
8877
- .ec-wrapper
8878
- .ec-store
8879
- .ec-store__content-wrapper
8880
- .product-details__sidebar .product-details__product-share.details-product-share
8881
- .product-details-module
8882
- .product-details-module__content
8883
- .ec-likely.details-product-share__buttons
8884
- .ec-likely__wrapper .ec-likely__widget .ec-likely__icon {
8885
- -ms-flex-item-align: center !important;
8886
- align-self: center !important;
8887
- margin-left: 15px !important; }
8888
- .brz .brz-ecwid-wrapper
8889
- .ecwid
8890
- .ec-loader-wrapper
8891
- div
8892
- .ecwid-productBrowser
8893
- div
8894
- div
8895
- div
8896
- .ec-wrapper
8897
- .ec-store
8898
- .ec-store__content-wrapper
8899
- .product-details__sidebar .product-details__product-share.details-product-share
8900
- .product-details-module
8901
- .product-details-module__content
8902
- .ec-likely.details-product-share__buttons
8903
- .ec-likely__wrapper .ec-likely__widget .ec-likely__button {
8904
- -ms-flex-item-align: center !important;
8905
- align-self: center !important;
8906
- margin-left: 0 !important; }
8907
- .brz .brz-ecwid-wrapper
8908
- .ecwid
8909
- .ec-loader-wrapper
8910
- div
8911
- .ecwid-productBrowser
8912
- div
8913
- div
8914
- div
8915
- .ec-wrapper
8916
- .ec-store
8917
- .ec-store__content-wrapper
8918
- .product-details__sidebar .product-details__product-share.details-product-share
8919
- .product-details-module
8920
- .product-details-module__content
8921
- .ec-likely.details-product-share__buttons
8922
- .ec-likely__wrapper .ec-likely__widget:last-child {
8923
- margin-right: 0 !important; }
8924
-
8925
- .brz .brz-ecwid-wrapper
8926
- .ecwid
8927
- .ec-loader-wrapper
8928
- div
8929
- .ecwid-productBrowser
8930
- div
8931
- div
8932
- div
8933
- .ec-wrapper
8934
- .ec-store
8935
- .ec-store__content-wrapper
8936
- .product-details__sidebar .product-details-module__content .details-product-purchase__controls
8937
- .details-product-purchase__bag-controls
8938
- .details-product-purchase__add-buttons {
8939
- display: -webkit-box !important;
8940
- display: -ms-flexbox !important;
8941
- display: flex !important;
8942
- -ms-flex-wrap: wrap;
8943
- flex-wrap: wrap; }
8944
- .brz .brz-ecwid-wrapper
8945
- .ecwid
8946
- .ec-loader-wrapper
8947
- div
8948
- .ecwid-productBrowser
8949
- div
8950
- div
8951
- div
8952
- .ec-wrapper
8953
- .ec-store
8954
- .ec-store__content-wrapper
8955
- .product-details__sidebar .product-details-module__content .details-product-purchase__controls
8956
- .details-product-purchase__bag-controls
8957
- .details-product-purchase__add-buttons .form-control {
8958
- display: -webkit-box !important;
8959
- display: -ms-flexbox !important;
8960
- display: flex !important; }
8961
- .brz .brz-ecwid-wrapper
8962
- .ecwid
8963
- .ec-loader-wrapper
8964
- div
8965
- .ecwid-productBrowser
8966
- div
8967
- div
8968
- div
8969
- .ec-wrapper
8970
- .ec-store
8971
- .ec-store__content-wrapper
8972
- .product-details__sidebar .product-details-module__content .details-product-purchase__controls
8973
- .details-product-purchase__bag-controls
8974
- .details-product-purchase__add-buttons .form-control .form-control__button {
8975
- min-height: 1px !important; }
8976
-
8977
- .brz .brz-ecwid-wrapper
8978
- .ecwid
8979
- .ec-loader-wrapper
8980
- div
8981
- .ecwid-productBrowser
8982
- div
8983
- div
8984
- div
8985
- .ec-wrapper
8986
- .ec-store
8987
- .ec-store__content-wrapper
8988
- .product-details__sidebar .product-details-module.product-details__general-info
8989
- .product-details-module__btn-more {
8990
- top: 0 !important;
8991
- padding-top: 0 !important;
8992
- line-height: 0 !important; }
8993
-
8994
- .brz .brz-ecwid-wrapper
8995
- .ecwid
8996
- .ec-loader-wrapper
8997
- div
8998
- .ecwid-productBrowser
8999
- div
9000
- div
9001
- div
9002
- .ec-wrapper
9003
- .ec-store
9004
- .ec-store__content-wrapper
9005
- .product-details__sidebar .product-details-module.product-details__product-price-wholesale
9006
- .product-details-module__content
9007
- .details-product-price-wholesale__container
9008
- .details-product-price-wholesale__table {
9009
- max-width: 100% !important; }
9010
-
9011
- .brz .brz-ecwid-wrapper
9012
- .ecwid
9013
- .ec-loader-wrapper
9014
- div
9015
- .ecwid-productBrowser
9016
- div
9017
- div
9018
- div
9019
- .ec-wrapper
9020
- .ec-store
9021
- .ec-store__content-wrapper
9022
- .product-details__gallery .details-gallery__wrap-inner {
9023
- width: auto !important; }
9024
- .brz .brz-ecwid-wrapper
9025
- .ecwid
9026
- .ec-loader-wrapper
9027
- div
9028
- .ecwid-productBrowser
9029
- div
9030
- div
9031
- div
9032
- .ec-wrapper
9033
- .ec-store
9034
- .ec-store__content-wrapper
9035
- .product-details__gallery .details-gallery__wrap-inner .details-gallery__thumbs {
9036
- margin: 0 !important; }
9037
- .brz .brz-ecwid-wrapper
9038
- .ecwid
9039
- .ec-loader-wrapper
9040
- div
9041
- .ecwid-productBrowser
9042
- div
9043
- div
9044
- div
9045
- .ec-wrapper
9046
- .ec-store
9047
- .ec-store__content-wrapper
9048
- .product-details__gallery .details-gallery__wrap-inner .details-gallery__thumbs .details-gallery__thumb {
9049
- -ms-flex-preferred-size: auto !important;
9050
- flex-basis: auto !important;
9051
- max-width: 100% !important; }
9052
- .brz .brz-ecwid-wrapper
9053
- .ecwid
9054
- .ec-loader-wrapper
9055
- div
9056
- .ecwid-productBrowser
9057
- div
9058
- div
9059
- div
9060
- .ec-wrapper
9061
- .ec-store
9062
- .ec-store__content-wrapper
9063
- .product-details__gallery .details-gallery__wrap-inner .details-gallery__thumbs .details-gallery__thumb-img-wrapper {
9064
- padding: 0 !important; }
9065
- .brz .brz-ecwid-wrapper
9066
- .ecwid
9067
- .ec-loader-wrapper
9068
- div
9069
- .ecwid-productBrowser
9070
- div
9071
- div
9072
- div
9073
- .ec-wrapper
9074
- .ec-store
9075
- .ec-store__content-wrapper
9076
- .product-details__gallery .details-gallery__wrap-inner .details-gallery__thumbs .details-gallery__thumb-img-wrapper-inner .details-gallery__thumb-bg {
9077
- background-color: transparent !important; }
9078
- .brz .brz-ecwid-wrapper
9079
- .ecwid
9080
- .ec-loader-wrapper
9081
- div
9082
- .ecwid-productBrowser
9083
- div
9084
- div
9085
- div
9086
- .ec-wrapper
9087
- .ec-store
9088
- .ec-store__content-wrapper
9089
- .product-details__gallery .details-gallery__wrap-inner .details-gallery__thumbs .details-gallery__thumb-img-wrapper-inner .details-gallery__thumb-img:after {
9090
- -webkit-box-shadow: none !important;
9091
- box-shadow: none !important; }
9092
- .brz .brz-ecwid-wrapper
9093
- .ecwid
9094
- .ec-loader-wrapper
9095
- div
9096
- .ecwid-productBrowser
9097
- div
9098
- div
9099
- div
9100
- .ec-wrapper
9101
- .ec-store
9102
- .ec-store__content-wrapper
9103
- .product-details__gallery .details-gallery__wrap-inner .details-gallery__thumbs .details-gallery__thumb:last-child {
9104
- margin-right: 0 !important; }
9105
- .brz .brz-ecwid-wrapper
9106
- .ecwid
9107
- .ec-loader-wrapper
9108
- div
9109
- .ecwid-productBrowser
9110
- div
9111
- div
9112
- div
9113
- .ec-wrapper
9114
- .ec-store
9115
- .ec-store__content-wrapper
9116
- .product-details__gallery .details-gallery__wrap-inner .details-gallery__images .details-gallery__images-container .details-gallery__images-carousel .details-gallery__image {
9117
- margin-right: 0 !important;
9118
- padding: 0 !important; }
9119
- .brz .brz-ecwid-wrapper
9120
- .ecwid
9121
- .ec-loader-wrapper
9122
- div
9123
- .ecwid-productBrowser
9124
- div
9125
- div
9126
- div
9127
- .ec-wrapper
9128
- .ec-store
9129
- .ec-store__content-wrapper
9130
- .product-details__gallery .details-gallery__wrap-inner .details-gallery__images .details-gallery__images-container .details-gallery__images-carousel .details-gallery__image-wrapper-inner {
9131
- overflow: hidden; }
9132
- .brz .brz-ecwid-wrapper
9133
- .ecwid
9134
- .ec-loader-wrapper
9135
- div
9136
- .ecwid-productBrowser
9137
- div
9138
- div
9139
- div
9140
- .ec-wrapper
9141
- .ec-store
9142
- .ec-store__content-wrapper
9143
- .product-details__gallery .details-gallery__wrap-inner .details-gallery__images .details-gallery__images-container .details-gallery__images-spacer {
9144
- max-width: 100% !important; }
9145
-
9146
- .brz .brz-ecwid-wrapper
9147
- .ecwid
9148
- .ec-loader-wrapper
9149
- div
9150
- .ecwid-productBrowser
9151
- div
9152
- div
9153
- div
9154
- .ec-wrapper
9155
- .ec-store
9156
- .ec-store__content-wrapper
9157
- .product-details .product-details__description .ec-breadcrumbs {
9158
- padding-bottom: 0 !important;
9159
- margin-top: 0 !important; }
9160
-
9161
- .brz .brz-ecwid-wrapper
9162
- .ecwid
9163
- .ec-loader-wrapper
9164
- div
9165
- .ecwid-productBrowser
9166
- div
9167
- div
9168
- div
9169
- .ec-wrapper
9170
- .ec-store
9171
- .ec-store__content-wrapper
9172
- .product-details .product-details__description {
9173
- padding: 0 !important; }
9174
-
9175
- @media (max-width: 767px) {
9176
- .brz .brz-ecwid-wrapper
9177
- .ecwid
9178
- .ec-loader-wrapper
9179
- div
9180
- .ecwid-productBrowser
9181
- div
9182
- div
9183
- div
9184
- .ec-wrapper
9185
- .ec-store
9186
- .ec-store__content-wrapper
9187
- .product-details__sidebar {
9188
- padding: 0 !important; }
9189
- .brz .brz-ecwid-wrapper
9190
- .ecwid
9191
- .ec-loader-wrapper
9192
- div
9193
- .ecwid-productBrowser
9194
- div
9195
- div
9196
- div
9197
- .ec-wrapper
9198
- .ec-store
9199
- .ec-store__content-wrapper
9200
- .product-details__gallery {
9201
- padding: 0 !important; }
9202
- .brz .brz-ecwid-wrapper
9203
- .ecwid
9204
- .ec-loader-wrapper
9205
- div
9206
- .ecwid-productBrowser
9207
- div
9208
- div
9209
- div
9210
- .ec-wrapper
9211
- .ec-store
9212
- .ec-store__content-wrapper
9213
- .product-details__gallery .details-gallery__wrap-inner .details-gallery__thumbs .details-gallery__thumb {
9214
- overflow: hidden; } }
9215
-
9216
- @media (min-width: 767px) {
9217
- .brz .brz-ecwid-wrapper
9218
- .ecwid
9219
- .ec-loader-wrapper
9220
- div
9221
- .ecwid-productBrowser
9222
- div
9223
- div
9224
- div
9225
- .ec-wrapper
9226
- .ec-store
9227
- .ec-store__content-wrapper
9228
- .product-details__gallery {
9229
- margin-bottom: 0 !important; } }
9230
-
9231
- .brz .brz-ecwid-wrapper
9232
- .ecwid
9233
- .ec-loader-wrapper
9234
- div
9235
- .ecwid-productBrowser
9236
- div
9237
- div
9238
- div
9239
- .ec-wrapper
9240
- .ec-store__content-wrapper .ec-grid {
9241
- padding-bottom: 0 !important; }
9242
- .brz .brz-ecwid-wrapper
9243
- .ecwid
9244
- .ec-loader-wrapper
9245
- div
9246
- .ecwid-productBrowser
9247
- div
9248
- div
9249
- div
9250
- .ec-wrapper
9251
- .ec-store__content-wrapper .ec-grid .grid__sort.ec-text-muted .form-control {
9252
- margin: 5px !important; }
9253
- .brz .brz-ecwid-wrapper
9254
- .ecwid
9255
- .ec-loader-wrapper
9256
- div
9257
- .ecwid-productBrowser
9258
- div
9259
- div
9260
- div
9261
- .ec-wrapper
9262
- .ec-store__content-wrapper .ec-grid .grid__sort.ec-text-muted .form-control__select {
9263
- padding: 0 !important; }
9264
- .brz .brz-ecwid-wrapper
9265
- .ecwid
9266
- .ec-loader-wrapper
9267
- div
9268
- .ecwid-productBrowser
9269
- div
9270
- div
9271
- div
9272
- .ec-wrapper
9273
- .ec-store__content-wrapper .ec-grid .grid__sort.ec-text-muted .form-control__select option {
9274
- pointer-events: none; }
9275
- .brz .brz-ecwid-wrapper
9276
- .ecwid
9277
- .ec-loader-wrapper
9278
- div
9279
- .ecwid-productBrowser
9280
- div
9281
- div
9282
- div
9283
- .ec-wrapper
9284
- .ec-store__content-wrapper .ec-grid .grid__wrap-inner {
9285
- -webkit-box-pack: center !important;
9286
- -ms-flex-pack: center !important;
9287
- justify-content: center !important; }
9288
- .brz .brz-ecwid-wrapper
9289
- .ecwid
9290
- .ec-loader-wrapper
9291
- div
9292
- .ecwid-productBrowser
9293
- div
9294
- div
9295
- div
9296
- .ec-wrapper
9297
- .ec-store__content-wrapper .ec-grid .grid__wrap-inner .grid__products {
9298
- margin-right: 0 !important;
9299
- margin-left: 0 !important; }
9300
- .brz .brz-ecwid-wrapper
9301
- .ecwid
9302
- .ec-loader-wrapper
9303
- div
9304
- .ecwid-productBrowser
9305
- div
9306
- div
9307
- div
9308
- .ec-wrapper
9309
- .ec-store__content-wrapper .ec-grid .grid__wrap-inner .grid__products .grid-product {
9310
- -webkit-box-pack: center !important;
9311
- -ms-flex-pack: center !important;
9312
- justify-content: center !important; }
9313
- .brz .brz-ecwid-wrapper
9314
- .ecwid
9315
- .ec-loader-wrapper
9316
- div
9317
- .ecwid-productBrowser
9318
- div
9319
- div
9320
- div
9321
- .ec-wrapper
9322
- .ec-store__content-wrapper .ec-grid .grid__wrap-inner .grid__products .grid-product__wrap-inner .grid-product__image {
9323
- -ms-flex-item-align: center;
9324
- align-self: center; }
9325
- .brz .brz-ecwid-wrapper
9326
- .ecwid
9327
- .ec-loader-wrapper
9328
- div
9329
- .ecwid-productBrowser
9330
- div
9331
- div
9332
- div
9333
- .ec-wrapper
9334
- .ec-store__content-wrapper .ec-grid .grid__wrap-inner .grid__products .grid-product__wrap-inner .grid-product__image .grid-product__hover-wrap
9335
- .grid-product__button-hover.grid-product__buy-now {
9336
- padding-bottom: 0 !important; }
9337
- .brz .brz-ecwid-wrapper
9338
- .ecwid
9339
- .ec-loader-wrapper
9340
- div
9341
- .ecwid-productBrowser
9342
- div
9343
- div
9344
- div
9345
- .ec-wrapper
9346
- .ec-store__content-wrapper .ec-grid .grid__wrap-inner .grid__products .grid-product__wrap-inner .grid-product__image .grid-product__hover-wrap
9347
- .grid-product__button-hover.grid-product__buy-now .form-control {
9348
- min-width: 1px !important;
9349
- margin-top: 0 !important; }
9350
- .brz .brz-ecwid-wrapper
9351
- .ecwid
9352
- .ec-loader-wrapper
9353
- div
9354
- .ecwid-productBrowser
9355
- div
9356
- div
9357
- div
9358
- .ec-wrapper
9359
- .ec-store__content-wrapper .ec-grid .grid__wrap-inner .grid__products .grid-product__wrap-inner .grid-product__image .grid-product__hover-wrap
9360
- .grid-product__button-hover.grid-product__buy-now .form-control__button {
9361
- min-height: 1px !important; }
9362
- .brz .brz-ecwid-wrapper
9363
- .ecwid
9364
- .ec-loader-wrapper
9365
- div
9366
- .ecwid-productBrowser
9367
- div
9368
- div
9369
- div
9370
- .ec-wrapper
9371
- .ec-store__content-wrapper .ec-grid .grid__wrap-inner .grid__products .grid-product__title:focus {
9372
- outline: none !important;
9373
- outline-offset: unset !important; }
9374
- .brz .brz-ecwid-wrapper
9375
- .ecwid
9376
- .ec-loader-wrapper
9377
- div
9378
- .ecwid-productBrowser
9379
- div
9380
- div
9381
- div
9382
- .ec-wrapper
9383
- .ec-store__content-wrapper .ec-grid .grid__wrap-inner .grid__products .grid-product__button.grid-product__buy-now .form-control {
9384
- min-width: 1px !important;
9385
- margin-top: 0 !important; }
9386
- .brz .brz-ecwid-wrapper
9387
- .ecwid
9388
- .ec-loader-wrapper
9389
- div
9390
- .ecwid-productBrowser
9391
- div
9392
- div
9393
- div
9394
- .ec-wrapper
9395
- .ec-store__content-wrapper .ec-grid .grid__wrap-inner .grid__products .grid-product__button.grid-product__buy-now .form-control .form-control__button {
9396
- min-height: 1px !important; }
9397
-
9398
- .brz .brz-ecwid-wrapper
9399
- .ecwid
9400
- .ec-loader-wrapper
9401
- div
9402
- .ecwid-productBrowser
9403
- div
9404
- div
9405
- div
9406
- .ec-wrapper
9407
- .ec-store__content-wrapper .ec-pager .pager__head {
9408
- padding-bottom: 0 !important; }
9409
- .brz .brz-ecwid-wrapper
9410
- .ecwid
9411
- .ec-loader-wrapper
9412
- div
9413
- .ecwid-productBrowser
9414
- div
9415
- div
9416
- div
9417
- .ec-wrapper
9418
- .ec-store__content-wrapper .ec-pager .pager__head .pager__count-pages {
9419
- padding: 0 !important; }
9420
-
9421
- .brz .brz-ecwid-wrapper
9422
- .ecwid
9423
- .ec-loader-wrapper
9424
- div
9425
- .ecwid-productBrowser
9426
- div
9427
- div
9428
- div
9429
- .ec-wrapper
9430
- .ec-store__content-wrapper .ec-pager .pager__body.pager__body--has-next .pager__pages .ec-link {
9431
- margin-right: 10px !important; }
9432
-
9433
- .brz .brz-ecwid-wrapper
9434
- .ecwid
9435
- .ec-loader-wrapper
9436
- div
9437
- .ecwid-productBrowser
9438
- div
9439
- div
9440
- div
9441
- .ec-wrapper
9442
- .ec-store__content-wrapper .ec-pager .pager__body.pager__body--has-next .pager__pages .ec-link:last-child {
9443
- margin-right: 0 !important; }
9444
-
9445
- .brz .brz-ecwid-wrapper
9446
- .ecwid
9447
- .ec-loader-wrapper
9448
- div
9449
- .ecwid-productBrowser
9450
- div
9451
- div
9452
- div
9453
- .ec-wrapper
9454
- .ec-store__content-wrapper .ec-pager .pager__body.pager__body--has-next .ec-link .svg-icon {
9455
- top: auto !important;
9456
- width: auto !important;
9457
- margin-top: 0 !important;
9458
- padding: 0 !important; }
9459
-
9460
- .brz .brz-animated {
9461
- opacity: 0;
9462
- -webkit-animation-fill-mode: backwards;
9463
- animation-fill-mode: backwards; }
9464
- .brz .brz-animated:not(.brz-animate) {
9465
- -webkit-animation-name: none;
9466
- animation-name: none; }
9467
- .brz .brz-animated.brz-animate-opacity {
9468
- opacity: 1; }
9469
-
9470
- .brz .admin-bar .wp-env .visual-sidebar {
9471
- top: 32px;
9472
- left: 0; }
9473
-
9474
- .brz .admin-bar .wp-env .visual-wrap-block-wrap {
9475
- margin-left: 0;
9476
- padding-bottom: 0; }
9477
-
9478
- .brz .brz-wp__sidebar {
9479
- width: 100%; }
9480
- .brz .brz-wp__sidebar .brz-shortcode__placeholder {
9481
- width: 100%;
9482
- min-height: 300px; }
9483
-
9484
- .brz .brz-wp-shortcode {
9485
- width: 100%;
9486
- min-height: 20px; }
9487
- .brz .brz-wp-shortcode .woocommerce:empty {
9488
- width: 100%;
9489
- height: 15px; }
9490
- .brz .brz-wp-shortcode .woocommerce-product-gallery {
9491
- opacity: 1 !important; }
9492
- .brz .brz-wp-shortcode .brz-shortcode__placeholder {
9493
- width: 100%; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
public/editor-build/242-wp/editor/js/editor.js DELETED
@@ -1 +0,0 @@
1
- !function(e){function t(t){for(var i,a,l=t[0],c=t[1],s=t[2],p=0,u=[];p<l.length;p++)a=l[p],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&u.push(r[a][0]),r[a]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(d&&d(t);u.length;)u.shift()();return n.push.apply(n,s||[]),o()}function o(){for(var e,t=0;t<n.length;t++){for(var o=n[t],i=!0,l=1;l<o.length;l++){var c=o[l];0!==r[c]&&(i=!1)}i&&(n.splice(t--,1),e=a(a.s=o[0]))}return e}var i={},r={0:0},n=[];function a(t){if(i[t])return i[t].exports;var o=i[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.e=function(e){var t=[],o=r[e];if(0!==o)if(o)t.push(o[2]);else{var i=new Promise((function(t,i){o=r[e]=[t,i]}));t.push(o[2]=i);var n,l=document.createElement("script");l.charset="utf-8",l.timeout=120,a.nc&&l.setAttribute("nonce",a.nc),l.src=function(e){return a.p+""+({}[e]||e)+".js"}(e);var c=new Error;n=function(t){l.onerror=l.onload=null,clearTimeout(s);var o=r[e];if(0!==o){if(o){var i=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+n+")",c.name="ChunkLoadError",c.type=i,c.request=n,o[1](c)}r[e]=void 0}};var s=setTimeout((function(){n({type:"timeout",target:l})}),12e4);l.onerror=l.onload=n,document.head.appendChild(l)}return Promise.all(t)},a.m=e,a.c=i,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(o,i,function(t){return e[t]}.bind(null,i));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var l=window.webpackJsonp=window.webpackJsonp||[],c=l.push.bind(l);l.push=t,l=l.slice();for(var s=0;s<l.length;s++)t(l[s]);var d=c;n.push([766,1]),o()}([function(e,t,o){"use strict";var i=o(299);o.d(t,"a",(function(){return i.a}))},,,function(e,t,o){"use strict";o.r(t),o.d(t,"saveOnChanges",(function(){return s})),o.d(t,"defaultValueKey",(function(){return a.a})),o.d(t,"defaultValueValue",(function(){return a.b})),o.d(t,"deviceStateValueByKey",(function(){return a.c})),o.d(t,"makeKeyByStateDevice",(function(){return a.e})),o.d(t,"onChangeBgImage",(function(){return g})),o.d(t,"onChangeBgImageBgOpacity",(function(){return v})),o.d(t,"onChangeBgImageDependencies",(function(){return y})),o.d(t,"onChangeBgImageColumnAndRowSyncMobile",(function(){return f})),o.d(t,"onChangeBorderStyle2",(function(){return x})),o.d(t,"onChangeElementBorderStyleDependencies2",(function(){return C})),o.d(t,"onChangeContainerBorderStyleDependencies2",(function(){return w})),o.d(t,"onChangeBorderColorHexAndOpacity2",(function(){return B})),o.d(t,"onChangeBorderColorHexAndOpacityPalette2",(function(){return j})),o.d(t,"onChangeElementBorderColorHexAndOpacityDependencies2",(function(){return T})),o.d(t,"onChangeContainerBorderColorHexAndOpacityDependencies2",(function(){return P})),o.d(t,"onChangeBorderColorHexAndOpacityColumnAndRowSyncTablet2",(function(){return E})),o.d(t,"onChangeBorderColorHexAndOpacityColumnAndRowSyncMobile2",(function(){return _})),o.d(t,"onChangeBorderColorPalette2",(function(){return k})),o.d(t,"onChangeBorderColorPaletteOpacity2",(function(){return z})),o.d(t,"onChangeBorderWidthType2",(function(){return F})),o.d(t,"onChangeBorderWidthGrouped2",(function(){return R})),o.d(t,"onChangeBorderWidthGroupedDependencies2",(function(){return H})),o.d(t,"onChangeBorderWidthUngrouped2",(function(){return L})),o.d(t,"onChangeBorderWidthUngroupedDependencies2",(function(){return M})),o.d(t,"onChangeColorHexAndOpacity",(function(){return W})),o.d(t,"onChangeColorHexAndOpacityPalette",(function(){return A})),o.d(t,"onChangeColorPalette",(function(){return N})),o.d(t,"onChangeColorPaletteOpacity",(function(){return V})),o.d(t,"onChangeBgColorType2",(function(){return $})),o.d(t,"onChangeGradientRange2",(function(){return G})),o.d(t,"onChangeBgColorHexAndOpacity2",(function(){return U})),o.d(t,"onChangeBgColorHexAndOpacityPalette2",(function(){return K})),o.d(t,"onChangeBgColorHexAndOpacityDependencies2",(function(){return q})),o.d(t,"onChangeBgColorHexAndOpacityColumnAndRowSyncMobile2",(function(){return Y})),o.d(t,"onChangeBgColorPalette2",(function(){return X})),o.d(t,"onChangeBgColorPaletteOpacity2",(function(){return J})),o.d(t,"onChangeBoxShadowHexAndOpacity2",(function(){return te})),o.d(t,"onChangeBoxShadowHexAndOpacityPalette2",(function(){return oe})),o.d(t,"onChangeBoxShadowHexAndOpacityDependencies2",(function(){return ie})),o.d(t,"onChangeBoxShadowPalette2",(function(){return re})),o.d(t,"onChangeBoxShadowPaletteOpacity2",(function(){return ne})),o.d(t,"onChangeBoxShadowType2",(function(){return Q})),o.d(t,"onChangeBoxShadowTypeDependencies2",(function(){return ee})),o.d(t,"onChangeBoxShadowFields2",(function(){return ae})),o.d(t,"onChangeBoxShadowFieldsDependencies2",(function(){return le})),o.d(t,"onChangeBoxShadowOpacity2",(function(){return ce})),o.d(t,"onChangeTextShadowType",(function(){return se})),o.d(t,"onChangeTextShadowHexAndOpacity",(function(){return de})),o.d(t,"onChangeTextShadowHexAndOpacityPalette",(function(){return pe})),o.d(t,"onChangeTextShadowPalette",(function(){return ue})),o.d(t,"onChangeTextShadowPaletteOpacity",(function(){return be})),o.d(t,"onChangeTextShadowFields",(function(){return me})),o.d(t,"onChangePaddingGrouped",(function(){return ye})),o.d(t,"onChangePaddingUngrouped",(function(){return fe})),o.d(t,"onChangeMarginGrouped",(function(){return xe})),o.d(t,"onChangeMarginUngrouped",(function(){return Ce})),o.d(t,"onChangeElementSectionBoxShadowHexAndOpacityDependencies",(function(){return we})),o.d(t,"onChangeElementRichTextBgColorType2",(function(){return Be})),o.d(t,"onChangeElementProgressBarBg2ColorHexAndOpacity",(function(){return je})),o.d(t,"onChangeElementProgressBarBg2ColorHexAndOpacityPalette",(function(){return Te})),o.d(t,"onChangeElementProgressBarBg2ColorHexAndOpacityDependencies",(function(){return Pe})),o.d(t,"onChangeElementProgressBarBg2ColorPalette",(function(){return Ee})),o.d(t,"onChangeElementProgressBarBg2ColorPaletteOpacity",(function(){return _e})),o.d(t,"onChangeElementIconBorderColorHex2",(function(){return ze})),o.d(t,"onChangeElementIconBorderColorPalette2",(function(){return Fe})),o.d(t,"onChangeElementIconBorderColorFields2",(function(){return Re})),o.d(t,"onChangeElementIconBorderHoverColorHex2",(function(){return He})),o.d(t,"onChangeElementIconBorderHoverColorPalette2",(function(){return Le})),o.d(t,"onChangeElementIconBorderHoverColorFields2",(function(){return Me})),o.d(t,"onChangeElementButtonBorderHoverColorHex2",(function(){return Ie})),o.d(t,"onChangeElementButtonBorderHoverColorPalette2",(function(){return We})),o.d(t,"onChangeElementButtonBorderHoverColorFields2",(function(){return Ae})),o.d(t,"onChangeBgColorHexButton2",(function(){return Ne})),o.d(t,"onChangeBgColorPaletteButton2",(function(){return Ve})),o.d(t,"onChangeBgColorFieldsButton2",(function(){return De})),o.d(t,"onChangeHoverBgColorHexButton2",(function(){return $e})),o.d(t,"onChangeHoverBgColorPaletteButton2",(function(){return Ge})),o.d(t,"onChangeHoverBgColorFieldsButton2",(function(){return Ue})),o.d(t,"onChangeColorHexButtonIcon2",(function(){return Ke})),o.d(t,"onChangeColorPaletteButtonIcon2",(function(){return qe})),o.d(t,"onChangeColorFieldsButtonIcon2",(function(){return Ye})),o.d(t,"onChangeHoverColorHexButtonIcon2",(function(){return Xe})),o.d(t,"onChangeHoverColorPaletteButtonIcon2",(function(){return Je})),o.d(t,"onChangeHoverColorFieldsButtonIcon2",(function(){return Ze})),o.d(t,"onChangeMenuColorHex2",(function(){return Qe})),o.d(t,"onChangeMenuColorPalette2",(function(){return et})),o.d(t,"onChangeMenuColorFields2",(function(){return tt})),o.d(t,"onChangeMenuHoverColorHex2",(function(){return ot})),o.d(t,"onChangeMenuHoverColorPalette2",(function(){return it})),o.d(t,"onChangeMenuHoverColorFields2",(function(){return rt})),o.d(t,"onChangeActiveColorHexSubMenu2",(function(){return At})),o.d(t,"onChangeActiveColorPaletteSubMenu2",(function(){return Nt})),o.d(t,"onChangeActiveColorFieldsSubMenu2",(function(){return Vt})),o.d(t,"onChangeBgActiveColorHexSubMenu2",(function(){return Dt})),o.d(t,"onChangeBgActiveColorPaletteSubMenu2",(function(){return $t})),o.d(t,"onChangeBgActiveColorFieldsSubMenu2",(function(){return Gt})),o.d(t,"onChangeColorHexMMenu2",(function(){return nt})),o.d(t,"onChangeColorPaletteMMenu2",(function(){return at})),o.d(t,"onChangeColorFieldsMMenu2",(function(){return lt})),o.d(t,"onChangeHoverColorHexMMenu2",(function(){return ct})),o.d(t,"onChangeHoverColorPaletteMMenu2",(function(){return st})),o.d(t,"onChangeHoverColorFieldsMMenu2",(function(){return dt})),o.d(t,"onChangeColorHexSubMenu2",(function(){return pt})),o.d(t,"onChangeColorPaletteSubMenu2",(function(){return ut})),o.d(t,"onChangeColorFieldsSubMenu2",(function(){return bt})),o.d(t,"onChangeHoverColorHexSubMenu2",(function(){return mt})),o.d(t,"onChangeHoverColorPaletteSubMenu2",(function(){return ht})),o.d(t,"onChangeHoverColorFieldsSubMenu2",(function(){return gt})),o.d(t,"onChangeColorHexIconMenu2",(function(){return vt})),o.d(t,"onChangeColorPaletteIconMenu2",(function(){return yt})),o.d(t,"onChangeColorFieldsIconMenu2",(function(){return ft})),o.d(t,"onChangeTabletColorHexIconMMenu2",(function(){return St})),o.d(t,"onChangeTabletColorPaletteIconMMenu2",(function(){return Ot})),o.d(t,"onChangeTabletColorFieldsIconMMenu2",(function(){return xt})),o.d(t,"onChangeMobileColorHexIconMMenu2",(function(){return Ct})),o.d(t,"onChangeMobileColorPaletteIconMMenu2",(function(){return wt})),o.d(t,"onChangeMobileColorFieldsIconMMenu2",(function(){return Bt})),o.d(t,"onChangeActiveColorHexMMenu2",(function(){return Ut})),o.d(t,"onChangeActiveColorPaletteMMenu2",(function(){return Kt})),o.d(t,"onChangeActiveColorFieldsMMenu2",(function(){return qt})),o.d(t,"onChangeBgColorHexMMenu2",(function(){return jt})),o.d(t,"onChangeBgColorPaletteMMenu2",(function(){return Tt})),o.d(t,"onChangeBgColorHexSubMenu2",(function(){return Pt})),o.d(t,"onChangeBgColorPaletteSubMenu2",(function(){return Et})),o.d(t,"onChangeBgColorFieldsSubMenu2",(function(){return _t})),o.d(t,"onChangeBgHoverColorHexSubMenu2",(function(){return kt})),o.d(t,"onChangeBgHoverColorPaletteSubMenu2",(function(){return zt})),o.d(t,"onChangeBgHoverColorFieldsSubMenu2",(function(){return Ft})),o.d(t,"onChangeBorderColorHexMMenu2",(function(){return Rt})),o.d(t,"onChangeBorderColorPaletteMMenu2",(function(){return Ht})),o.d(t,"onChangeBorderColorFieldsMMenu2",(function(){return Lt})),o.d(t,"onChangeBorderColorHexSubMenu2",(function(){return Mt})),o.d(t,"onChangeBorderColorPaletteSubMenu2",(function(){return It})),o.d(t,"onChangeBorderColorFieldsSubMenu2",(function(){return Wt})),o.d(t,"onChangeTypography",(function(){return Zt})),o.d(t,"onChangeTypographyTablet",(function(){return Qt})),o.d(t,"onChangeTypographyMobile",(function(){return eo})),o.d(t,"tabletSyncOnChange",(function(){return a.g})),o.d(t,"mobileSyncOnChange",(function(){return a.f})),o.d(t,"keySyncOnChange",(function(){return a.d})),o.d(t,"validateKeyByProperty",(function(){return a.h})),o.d(t,"onChangeTypography2",(function(){return ro}));var i={};o.r(i),o.d(i,"saveOnChanges",(function(){return s})),o.d(i,"defaultValueKey",(function(){return a.a})),o.d(i,"defaultValueValue",(function(){return a.b})),o.d(i,"deviceStateValueByKey",(function(){return a.c})),o.d(i,"makeKeyByStateDevice",(function(){return a.e})),o.d(i,"onChangeBgImage",(function(){return g})),o.d(i,"onChangeBgImageBgOpacity",(function(){return v})),o.d(i,"onChangeBgImageDependencies",(function(){return y})),o.d(i,"onChangeBgImageColumnAndRowSyncMobile",(function(){return f})),o.d(i,"onChangeBorderStyle2",(function(){return x})),o.d(i,"onChangeElementBorderStyleDependencies2",(function(){return C})),o.d(i,"onChangeContainerBorderStyleDependencies2",(function(){return w})),o.d(i,"onChangeBorderColorHexAndOpacity2",(function(){return B})),o.d(i,"onChangeBorderColorHexAndOpacityPalette2",(function(){return j})),o.d(i,"onChangeElementBorderColorHexAndOpacityDependencies2",(function(){return T})),o.d(i,"onChangeContainerBorderColorHexAndOpacityDependencies2",(function(){return P})),o.d(i,"onChangeBorderColorHexAndOpacityColumnAndRowSyncTablet2",(function(){return E})),o.d(i,"onChangeBorderColorHexAndOpacityColumnAndRowSyncMobile2",(function(){return _})),o.d(i,"onChangeBorderColorPalette2",(function(){return k})),o.d(i,"onChangeBorderColorPaletteOpacity2",(function(){return z})),o.d(i,"onChangeBorderWidthType2",(function(){return F})),o.d(i,"onChangeBorderWidthGrouped2",(function(){return R})),o.d(i,"onChangeBorderWidthGroupedDependencies2",(function(){return H})),o.d(i,"onChangeBorderWidthUngrouped2",(function(){return L})),o.d(i,"onChangeBorderWidthUngroupedDependencies2",(function(){return M})),o.d(i,"onChangeColorHexAndOpacity",(function(){return W})),o.d(i,"onChangeColorHexAndOpacityPalette",(function(){return A})),o.d(i,"onChangeColorPalette",(function(){return N})),o.d(i,"onChangeColorPaletteOpacity",(function(){return V})),o.d(i,"onChangeBgColorType2",(function(){return $})),o.d(i,"onChangeGradientRange2",(function(){return G})),o.d(i,"onChangeBgColorHexAndOpacity2",(function(){return U})),o.d(i,"onChangeBgColorHexAndOpacityPalette2",(function(){return K})),o.d(i,"onChangeBgColorHexAndOpacityDependencies2",(function(){return q})),o.d(i,"onChangeBgColorHexAndOpacityColumnAndRowSyncMobile2",(function(){return Y})),o.d(i,"onChangeBgColorPalette2",(function(){return X})),o.d(i,"onChangeBgColorPaletteOpacity2",(function(){return J})),o.d(i,"onChangeBoxShadowHexAndOpacity2",(function(){return te})),o.d(i,"onChangeBoxShadowHexAndOpacityPalette2",(function(){return oe})),o.d(i,"onChangeBoxShadowHexAndOpacityDependencies2",(function(){return ie})),o.d(i,"onChangeBoxShadowPalette2",(function(){return re})),o.d(i,"onChangeBoxShadowPaletteOpacity2",(function(){return ne})),o.d(i,"onChangeBoxShadowType2",(function(){return Q})),o.d(i,"onChangeBoxShadowTypeDependencies2",(function(){return ee})),o.d(i,"onChangeBoxShadowFields2",(function(){return ae})),o.d(i,"onChangeBoxShadowFieldsDependencies2",(function(){return le})),o.d(i,"onChangeBoxShadowOpacity2",(function(){return ce})),o.d(i,"onChangeTextShadowType",(function(){return se})),o.d(i,"onChangeTextShadowHexAndOpacity",(function(){return de})),o.d(i,"onChangeTextShadowHexAndOpacityPalette",(function(){return pe})),o.d(i,"onChangeTextShadowPalette",(function(){return ue})),o.d(i,"onChangeTextShadowPaletteOpacity",(function(){return be})),o.d(i,"onChangeTextShadowFields",(function(){return me})),o.d(i,"onChangePaddingGrouped",(function(){return ye})),o.d(i,"onChangePaddingUngrouped",(function(){return fe})),o.d(i,"onChangeMarginGrouped",(function(){return xe})),o.d(i,"onChangeMarginUngrouped",(function(){return Ce})),o.d(i,"onChangeElementSectionBoxShadowHexAndOpacityDependencies",(function(){return we})),o.d(i,"onChangeElementRichTextBgColorType2",(function(){return Be})),o.d(i,"onChangeElementProgressBarBg2ColorHexAndOpacity",(function(){return je})),o.d(i,"onChangeElementProgressBarBg2ColorHexAndOpacityPalette",(function(){return Te})),o.d(i,"onChangeElementProgressBarBg2ColorHexAndOpacityDependencies",(function(){return Pe})),o.d(i,"onChangeElementProgressBarBg2ColorPalette",(function(){return Ee})),o.d(i,"onChangeElementProgressBarBg2ColorPaletteOpacity",(function(){return _e})),o.d(i,"onChangeElementIconBorderColorHex2",(function(){return ze})),o.d(i,"onChangeElementIconBorderColorPalette2",(function(){return Fe})),o.d(i,"onChangeElementIconBorderColorFields2",(function(){return Re})),o.d(i,"onChangeElementIconBorderHoverColorHex2",(function(){return He})),o.d(i,"onChangeElementIconBorderHoverColorPalette2",(function(){return Le})),o.d(i,"onChangeElementIconBorderHoverColorFields2",(function(){return Me})),o.d(i,"onChangeElementButtonBorderHoverColorHex2",(function(){return Ie})),o.d(i,"onChangeElementButtonBorderHoverColorPalette2",(function(){return We})),o.d(i,"onChangeElementButtonBorderHoverColorFields2",(function(){return Ae})),o.d(i,"onChangeBgColorHexButton2",(function(){return Ne})),o.d(i,"onChangeBgColorPaletteButton2",(function(){return Ve})),o.d(i,"onChangeBgColorFieldsButton2",(function(){return De})),o.d(i,"onChangeHoverBgColorHexButton2",(function(){return $e})),o.d(i,"onChangeHoverBgColorPaletteButton2",(function(){return Ge})),o.d(i,"onChangeHoverBgColorFieldsButton2",(function(){return Ue})),o.d(i,"onChangeColorHexButtonIcon2",(function(){return Ke})),o.d(i,"onChangeColorPaletteButtonIcon2",(function(){return qe})),o.d(i,"onChangeColorFieldsButtonIcon2",(function(){return Ye})),o.d(i,"onChangeHoverColorHexButtonIcon2",(function(){return Xe})),o.d(i,"onChangeHoverColorPaletteButtonIcon2",(function(){return Je})),o.d(i,"onChangeHoverColorFieldsButtonIcon2",(function(){return Ze})),o.d(i,"onChangeMenuColorHex2",(function(){return Qe})),o.d(i,"onChangeMenuColorPalette2",(function(){return et})),o.d(i,"onChangeMenuColorFields2",(function(){return tt})),o.d(i,"onChangeMenuHoverColorHex2",(function(){return ot})),o.d(i,"onChangeMenuHoverColorPalette2",(function(){return it})),o.d(i,"onChangeMenuHoverColorFields2",(function(){return rt})),o.d(i,"onChangeActiveColorHexSubMenu2",(function(){return At})),o.d(i,"onChangeActiveColorPaletteSubMenu2",(function(){return Nt})),o.d(i,"onChangeActiveColorFieldsSubMenu2",(function(){return Vt})),o.d(i,"onChangeBgActiveColorHexSubMenu2",(function(){return Dt})),o.d(i,"onChangeBgActiveColorPaletteSubMenu2",(function(){return $t})),o.d(i,"onChangeBgActiveColorFieldsSubMenu2",(function(){return Gt})),o.d(i,"onChangeColorHexMMenu2",(function(){return nt})),o.d(i,"onChangeColorPaletteMMenu2",(function(){return at})),o.d(i,"onChangeColorFieldsMMenu2",(function(){return lt})),o.d(i,"onChangeHoverColorHexMMenu2",(function(){return ct})),o.d(i,"onChangeHoverColorPaletteMMenu2",(function(){return st})),o.d(i,"onChangeHoverColorFieldsMMenu2",(function(){return dt})),o.d(i,"onChangeColorHexSubMenu2",(function(){return pt})),o.d(i,"onChangeColorPaletteSubMenu2",(function(){return ut})),o.d(i,"onChangeColorFieldsSubMenu2",(function(){return bt})),o.d(i,"onChangeHoverColorHexSubMenu2",(function(){return mt})),o.d(i,"onChangeHoverColorPaletteSubMenu2",(function(){return ht})),o.d(i,"onChangeHoverColorFieldsSubMenu2",(function(){return gt})),o.d(i,"onChangeColorHexIconMenu2",(function(){return vt})),o.d(i,"onChangeColorPaletteIconMenu2",(function(){return yt})),o.d(i,"onChangeColorFieldsIconMenu2",(function(){return ft})),o.d(i,"onChangeTabletColorHexIconMMenu2",(function(){return St})),o.d(i,"onChangeTabletColorPaletteIconMMenu2",(function(){return Ot})),o.d(i,"onChangeTabletColorFieldsIconMMenu2",(function(){return xt})),o.d(i,"onChangeMobileColorHexIconMMenu2",(function(){return Ct})),o.d(i,"onChangeMobileColorPaletteIconMMenu2",(function(){return wt})),o.d(i,"onChangeMobileColorFieldsIconMMenu2",(function(){return Bt})),o.d(i,"onChangeActiveColorHexMMenu2",(function(){return Ut})),o.d(i,"onChangeActiveColorPaletteMMenu2",(function(){return Kt})),o.d(i,"onChangeActiveColorFieldsMMenu2",(function(){return qt})),o.d(i,"onChangeBgColorHexMMenu2",(function(){return jt})),o.d(i,"onChangeBgColorPaletteMMenu2",(function(){return Tt})),o.d(i,"onChangeBgColorHexSubMenu2",(function(){return Pt})),o.d(i,"onChangeBgColorPaletteSubMenu2",(function(){return Et})),o.d(i,"onChangeBgColorFieldsSubMenu2",(function(){return _t})),o.d(i,"onChangeBgHoverColorHexSubMenu2",(function(){return kt})),o.d(i,"onChangeBgHoverColorPaletteSubMenu2",(function(){return zt})),o.d(i,"onChangeBgHoverColorFieldsSubMenu2",(function(){return Ft})),o.d(i,"onChangeBorderColorHexMMenu2",(function(){return Rt})),o.d(i,"onChangeBorderColorPaletteMMenu2",(function(){return Ht})),o.d(i,"onChangeBorderColorFieldsMMenu2",(function(){return Lt})),o.d(i,"onChangeBorderColorHexSubMenu2",(function(){return Mt})),o.d(i,"onChangeBorderColorPaletteSubMenu2",(function(){return It})),o.d(i,"onChangeBorderColorFieldsSubMenu2",(function(){return Wt})),o.d(i,"onChangeTypography",(function(){return Zt})),o.d(i,"onChangeTypographyTablet",(function(){return Qt})),o.d(i,"onChangeTypographyMobile",(function(){return eo})),o.d(i,"tabletSyncOnChange",(function(){return a.g})),o.d(i,"mobileSyncOnChange",(function(){return a.f})),o.d(i,"keySyncOnChange",(function(){return a.d})),o.d(i,"validateKeyByProperty",(function(){return a.h})),o.d(i,"onChangeTypography2",(function(){return ro}));var r=o(2),n=o(6),a=o(28);function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function c(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(r.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 s(e){return e.onChange.reduce((t,o)=>{const r=i[o](e);return Object.assign(t,r)},{})}function d({v:e,device:t,state:o,me:i,childs:r,value:l,dragEnd:s=!0,tempZero:d=!1}){const p=e=>Object(a.a)({key:e,device:t,state:o});let u={};var b;return b=i,(Object(a.b)({v:e,key:b,device:t,state:o})!==l||s)&&(u=c(c({[p(i)]:l},r?r.reduce((e,t)=>(e[p(t)]=l,e),{}):{}),s&&(d||!d&&0!==l&&""!==l)?c({[p("temp"+Object(n.c)(i))]:l},r?r.reduce((e,t)=>(e[p("temp"+Object(n.c)(t))]=l,e),{}):{}):{})),u}function p({v:e,device:t,state:o,me:i,childs:r,current:l,value:s,dragEnd:d=!0,tempZero:p=!1}){const u=e=>Object(a.a)({key:e,device:t,state:o});let b={};var m;return m=l,(Object(a.b)({v:e,key:m,device:t,state:o})!==s||d)&&(b=c(c({[u(l)]:s},d&&(p||!p&&0!==s&&""!==s)?{[u("temp"+Object(n.c)(l))]:s}:{}),r.filter(e=>e!==l).every(t=>e[t]===s)?c({[u(i)]:s},d&&(p||!p&&0!==s&&""!==s)?{[u("temp"+Object(n.c)(i))]:s}:{}):{})),b}function u({v:e,device:t,state:o,parent:i,childs:r,value:l,sliderDragEnd:s=!0,temp:d=!1,tempZero:p=!1}){const u=c({[Object(a.a)({key:i,device:t,state:o})]:l},r.reduce((e,i)=>(e[Object(a.a)({key:i,device:t,state:o})]=l,e),{})),b=d&&!p?c({[Object(a.a)({key:"temp"+Object(n.c)(i),device:t,state:o})]:l>0&&s?l:Object(a.b)({v:e,key:"temp"+Object(n.c)(i),device:t,state:o})},r.reduce((i,r)=>(i[Object(a.a)({key:"temp"+Object(n.c)(r),device:t,state:o})]=l>0&&s?l:Object(a.b)({v:e,key:"temp"+Object(n.c)(r),device:t,state:o}),i),{})):d?c({[Object(a.a)({key:"temp"+Object(n.c)(i),device:t,state:o})]:l},r.reduce((e,i)=>(e[Object(a.a)({key:"temp"+Object(n.c)(i),device:t,state:o})]=l,e),{})):{};return Object.assign(u,b)}function b({v:e,device:t,state:o,parent:i,childs:r,current:l,value:c,temp:s=!1,tempZero:d=!1}){const p=r.filter(e=>e!==l).every(t=>e[t]===c)?c:Object(a.b)({v:e,key:i,device:t,state:o}),u=r.filter(e=>e!==l).every(t=>e[t]===c)?c:c>0?Object(a.b)({v:e,key:"temp"+Object(n.c)(i),device:t,state:o}):Object(a.b)({v:e,key:i,device:t,state:o});return s&&d?{[Object(a.a)({key:i,device:t,state:o})]:p,[Object(a.a)({key:"temp"+Object(n.c)(i),device:t,state:o})]:u}:{[Object(a.a)({key:i,device:t,state:o})]:p}}function m({v:e,device:t,state:o,childs:i,current:r,value:l,temp:s=!1}){return s?c({[Object(a.a)({key:r,device:t,state:o})]:l,[Object(a.a)({key:"temp"+Object(n.c)(r),device:t,state:o})]:l},i.filter(e=>e!==r).reduce((i,r)=>(i[Object(a.a)({key:"temp"+Object(n.c)(r),device:t,state:o})]=0===e[r]?0:Object(a.b)({v:e,key:"temp"+Object(n.c)(r),device:t,state:o}),i),{})):{[Object(a.a)({key:r,device:t,state:o})]:l}}function h({v:e,device:t="desktop",state:o="normal",value:i,dependencies:r}){const l=i=>Object(a.b)({v:e,key:i,device:t,state:o});return Object.entries(r).reduce((r,[c,s])=>{const d=!(0!==i&&""!==i||void 0===s.nullValue||!(s.nullValue.length>0&&s.nullValue.every(t=>""===e[t]||0===e[t])||0===s.nullValue.length)),p=!(0===i||""===i||0!==l(c)&&""!==l(c)&&"off"!==l("boxShadow")||!(s.tempValue.length>0&&s.tempValue.every(t=>""===e[t]||0===e[t])||0===s.tempValue.length)),u=null===l(c)||void 0===l(c);return u&&console.log("onChange "+c+" "+l(c)),u||(r[(e=>Object(a.a)({key:e,device:t,state:o}))(c)]=d?"string"===s.type?"":0:l(p?"temp"+Object(n.c)(c):c)),Object.assign(r,s.childs.reduce((r,l)=>(null===e[Object(a.a)({key:l,device:t,state:o})]||void 0===e[Object(a.a)({key:l,device:t,state:o})]||(r[Object(a.a)({key:l,device:t,state:o})]=0!==i&&""!==i||void 0===s.nullValue||!(s.nullValue.length>0&&s.nullValue.every(t=>""===e[t]||0===e[t])||0===s.nullValue.length)?(i>0||""!==i)&&s.childs.every(i=>0===Object(a.b)({v:e,key:"temp"+Object(n.c)(i),device:t,state:o}))?Object(a.b)({v:e,key:"temp"+Object(n.c)(c),device:t,state:o}):(i>0||""!==i)&&(s.tempValue.length>0&&s.tempValue.every(t=>""===e[t]||0===e[t])||0===s.tempValue.length)?Object(a.b)({v:e,key:"temp"+Object(n.c)(l),device:t,state:o}):Object(a.b)({v:e,key:l,device:t,state:o}):"string"===s.type?"":0),r),{}),s.childs.reduce((r,l)=>(null===e[Object(a.a)({key:"temp"+Object(n.c)(l),device:t,state:o})]||void 0===e[Object(a.a)({key:"temp"+Object(n.c)(l),device:t,state:o})]||(r[Object(a.a)({key:"temp"+Object(n.c)(l),device:t,state:o})]=(i>0||""!==i)&&s.childs.every(i=>0===Object(a.b)({v:e,key:"temp"+Object(n.c)(i),device:t,state:o}))?Object(a.b)({v:e,key:c,device:t,state:o}):Object(a.b)({v:e,key:"temp"+Object(n.c)(l),device:t,state:o})),r),{})),r},{})}function g({device:e,state:t,width:o,height:i,extension:r,src:n,x:l,y:c,population:s,isChanged:d}){return"image"===d?{[Object(a.a)({key:"bgImageWidth",device:e,state:t})]:o,[Object(a.a)({key:"bgImageHeight",device:e,state:t})]:i,[Object(a.a)({key:"bgImageExtension",device:e,state:t})]:r,[Object(a.a)({key:"bgImageSrc",device:e,state:t})]:n}:"population"===d?{[Object(a.a)({key:"bgPopulation",device:e,state:t})]:s}:{[Object(a.a)({key:"bgPositionX",device:e,state:t})]:l,[Object(a.a)({key:"bgPositionY",device:e,state:t})]:c}}function v({v:e,device:t,state:o,src:i,isChanged:r}){const n=""!==i&&1===Object(a.b)({v:e,key:"bgColorOpacity",device:t,state:o})?.9:Object(a.b)({v:e,key:"bgColorOpacity",device:t,state:o}),l=""!==i&&1===Object(a.b)({v:e,key:"bgColorOpacity",device:t,state:o})?.9:Object(a.b)({v:e,key:"tempBgColorOpacity",device:t,state:o});return"image"===r?{[Object(a.a)({key:"bgColorOpacity",device:t,state:o})]:n,[Object(a.a)({key:"tempBgColorOpacity",device:t,state:o})]:l}:{}}function y({v:e,device:t,state:o,src:i}){return h({v:e,device:t,state:o,value:i,dependencies:{borderRadius:{childs:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nullValue:["bgColorOpacity","borderColorOpacity"],tempValue:[]}}})}function f({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 i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function O(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}function x({v:e,device:t,state:o,borderStyle:i,prefix:r=""}){const l=e=>Object(a.a)({key:e,device:t,state:o}),c=Object(n.b)(r,"border"),s=Object(n.b)(c,"style"),d=Object(n.b)("temp",s);return{[l(s)]:i,[l(d)]:""!==i?i:(p=d,Object(a.b)({v:e,key:p,device:t,state:o}))};var p}function C({v:e,device:t,state:o,borderStyle:i,prefix:r=""}){const a=Object(n.b)(r,"border");return h({v:e,device:t,state:o,value:i,dependencies:{[Object(n.b)(a,"colorOpacity")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(a,"colorPalette")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(a,"width")]:{childs:[Object(n.b)(a,"topWidth"),Object(n.b)(a,"rightWidth"),Object(n.b)(a,"bottomWidth"),Object(n.b)(a,"leftWidth")],nullValue:[],tempValue:[]}}})}function w({v:e,device:t,state:o,borderStyle:i}){return h({v:e,device:t,state:o,value:i,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 B({v:e,device:t,state:o,hex:i,opacity:r,prefix:l="",isChanged:c="hex",opacityDragEnd:s=!1}){const d=e=>Object(a.a)({key:e,device:t,state:o}),p=Object(n.b)(l,"border"),u=Object(n.b)(p,"colorHex"),b=Object(n.b)(p,"colorOpacity"),m=Object(n.b)("temp",b),h=(r=I({v:e,device:t,state:o,opacity:r,prefix:l,isChanged:c}))>0&&s?r:(g=m,Object(a.b)({v:e,key:g,device:t,state:o}));var g;return{[d(u)]:i,[d(b)]:r,[d(m)]:h}}function j({v:e,device:t,state:o,opacity:i,prefix:r="",isChanged:l="hex"}){const c=e=>Object(a.a)({key:e,device:t,state:o}),s=i=>Object(a.b)({v:e,key:i,device:t,state:o}),d=Object(n.b)(r,"border"),p=Object(n.b)(d,"colorPalette"),u=Object(n.b)("temp",p);i=I({v:e,device:t,state:o,opacity:i,prefix:r,isChanged:l});const b="hex"===l||0===i?"":s(i>0?u:p),m="hex"===l?"":s(u);return{[c(p)]:b,[c(u)]:m}}function T({v:e,device:t,state:o,opacity:i,isChanged:r,prefix:a=""}){const l=Object(n.b)(a,"border"),c={[Object(n.b)(l,"style")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(l,"width")]:{childs:[Object(n.b)(l,"topWidth"),Object(n.b)(l,"rightWidth"),Object(n.b)(l,"bottomWidth"),Object(n.b)(l,"leftWidth")],nullValue:[],tempValue:[]}};return h({v:e,device:t,state:o,value:i=I({v:e,device:t,state:o,opacity:i,prefix:a,isChanged:r}),dependencies:c})}function P({v:e,device:t,state:o,opacity:i,isChanged:r}){return h({v:e,device:t,state:o,value:i=I({v:e,device:t,state:o,opacity:i,isChanged:r}),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:i}){if("desktop"===t||"tablet"===t){return{tabletPaddingRight:0===(o=I({v:e,device:t,opacity:o,isChanged:i}))?0:"hex"===i||o>0?e.tempTabletPaddingRight:e.tabletPaddingRight,tabletPaddingLeft:0===o?0:"hex"===i||o>0?e.tempTabletPaddingLeft:e.tabletPaddingLeft}}return{}}function _({v:e,device:t,opacity:o,isChanged:i}){if("desktop"===t||"mobile"===t){return{mobilePaddingRight:0===(o=I({v:e,device:t,opacity:o,isChanged:i}))?0:"hex"===i||o>0?e.tempMobilePaddingRight:e.mobilePaddingRight,mobilePaddingLeft:0===o?0:"hex"===i||o>0?e.tempMobilePaddingLeft:e.mobilePaddingLeft}}return{}}function k({device:e,state:t,palette:o,prefix:i=""}){const r=o=>Object(a.a)({key:o,device:e,state:t}),l=Object(n.b)(i,"border"),c=Object(n.b)(l,"colorPalette"),s=Object(n.b)("temp",c);return{[r(c)]:o,[r(s)]:o}}function z({v:e,device:t,state:o,opacity:i,isChanged:r,prefix:l=""}){const c=Object(n.b)(l,"border"),s=Object(n.b)(c,"colorOpacity");return i=I({v:e,device:t,state:o,opacity:i,prefix:l,isChanged:r}),{[(d=s,Object(a.a)({key:d,device:t,state:o}))]:i};var d}function F({device:e,state:t,type:o,prefix:i=""}){const r=Object(n.b)(i,"border"),l=Object(n.b)(r,"widthType");return{[(c=l,Object(a.a)({key:c,device:e,state:t}))]:o};var c}function R({v:e,device:t,state:o,value:i,sliderDragEnd:r,prefix:a=""}){const l=Object(n.b)(a,"border");return u({v:e,device:t,state:o,parent:Object(n.b)(l,"width"),childs:[Object(n.b)(l,"topWidth"),Object(n.b)(l,"rightWidth"),Object(n.b)(l,"bottomWidth"),Object(n.b)(l,"leftWidth")],value:i,sliderDragEnd:r,temp:!0,tempZero:!1})}function H({v:e,device:t,state:o,value:i,prefix:r=""}){const a=Object(n.b)(r,"border"),l=Object(n.b)(a,"style"),c=Object(n.b)(a,"radius"),s=Object(n.b)(a,"colorOpacity"),d=Object(n.b)(a,"colorPalette");return h({v:e,device:t,state:o,value:i,dependencies:{[l]:{childs:[],nullValue:[],tempValue:[]},[c]:{childs:[Object(n.b)(a,"topLeftRadius"),Object(n.b)(a,"topRightRadius"),Object(n.b)(a,"bottomLeftRadius"),Object(n.b)(a,"bottomRightRadius")],nullValue:["bgColorOpacity","bgImageSrc"],tempValue:[]},[s]:{childs:[],nullValue:[],tempValue:[]},[d]:{childs:[],nullValue:[],tempValue:[]}}})}function L({v:e,device:t,state:o,current:i,value:r,prefix:a=""}){const l=Object(n.b)(a,"border"),c=Object(n.b)(l,"width"),s=[Object(n.b)(l,"topWidth"),Object(n.b)(l,"rightWidth"),Object(n.b)(l,"bottomWidth"),Object(n.b)(l,"leftWidth")];return O(O({},m({v:e,device:t,state:o,childs:s,current:i,value:r,temp:!0})),b({v:e,device:t,state:o,parent:c,childs:s,current:i,value:r,temp:!0}))}function M({v:e,device:t,state:o,current:i,value:r,prefix:l=""}){const c=Object(n.b)(l,"border"),s=Object(n.b)(c,"width"),d=[Object(n.b)(c,"topWidth"),Object(n.b)(c,"rightWidth"),Object(n.b)(c,"bottomWidth"),Object(n.b)(c,"leftWidth")],p=Object(n.b)(c,"style"),u=Object(n.b)(c,"radius"),b=Object(n.b)(c,"colorOpacity"),m=Object(n.b)(c,"colorPalette");return function({v:e,device:t,state:o,childs:i,current:r,value:l,dependencies:c}){return Object.entries(c).reduce((c,[s,d])=>(null===e[s]||(c[Object(a.a)({key:s,device:t,state:o})]=(0===l||""===l)&&(i.length>0&&i.filter(e=>e!==r).every(t=>0===e[t])||0===i.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(a.b)({v:e,key:"temp"+Object(n.c)(s),device:t,state:o}):Object(a.b)({v:e,key:s,device:t,state:o})),Object.assign(c,d.childs.reduce((c,s)=>{var p,u;return null===e[s]||(c[Object(a.a)({key:s,device:t,state:o})]=(0===l||""===l)&&(i.length>0&&i.filter(e=>e!==r).every(t=>0===e[t])||0===i.length)&&((null===(p=d.nullValue)||void 0===p?void 0:p.length)>0&&d.nullValue.every(t=>""===e[t]||0===e[t])||0===(null===(u=d.nullValue)||void 0===u?void 0:u.length))?"string"===d.type?"":0:(l>0||""!==l)&&0===d.tempValue.length?Object(a.b)({v:e,key:"temp"+Object(n.c)(s),device:t,state:o}):Object(a.b)({v:e,key:s,device:t,state:o})),c},{})),c),{})}({v:e,device:t,state:o,parent:s,childs:d,current:i,value:r,dependencies:{[p]:{childs:[],nullValue:[],tempValue:[]},[u]:{childs:[Object(n.b)(c,"topLeftRadius"),Object(n.b)(c,"topRightRadius"),Object(n.b)(c,"bottomLeftRadius"),Object(n.b)(c,"bottomRightRadius")],nullValue:["bgColorOpacity","bgImageSrc"],tempValue:[]},[b]:{childs:[],nullValue:[],tempValue:[]},[m]:{childs:[],nullValue:[],tempValue:[]}}})}function I({v:e,device:t,state:o,prefix:i="",opacity:r,isChanged:l="hex"}){const c=i=>Object(a.b)({v:e,key:i,device:t,state:o}),s=Object(n.b)(i,"border"),d=Object(n.b)(s,"colorOpacity"),p=Object(n.b)("temp",d);return"hex"!==l&&"palette"!==l||0!==c(d)?void 0===r?c(d):r:c(p)}function W({v:e,device:t,state:o,prefix:i="color",hex:r,opacity:l,isChanged:c="hex",opacityDragEnd:s=!1}){const d=e=>Object(a.a)({key:e,device:t,state:o}),p="temp"+Object(n.c)(i),u=(l=D({v:e,device:t,state:o,prefix:i,opacity:l,isChanged:c}))>0&&s?l:(b=Object(n.b)(p,"opacity"),Object(a.b)({v:e,key:b,device:t,state:o}));var b;return{[d(Object(n.b)(i,"hex"))]:r,[d(Object(n.b)(i,"opacity"))]:l,[d(Object(n.b)(p,"opacity"))]:u}}function A({v:e,device:t,state:o,prefix:i="color",opacity:r,isChanged:l="hex"}){const c=e=>Object(a.a)({key:e,device:t,state:o}),s=i=>Object(a.b)({v:e,key:i,device:t,state:o}),d="temp"+Object(n.c)(i);r=D({v:e,device:t,state:o,prefix:i,opacity:r,isChanged:l});const p="hex"===l||0===r?"":s(r>0?Object(n.b)(d,"palette"):Object(n.b)(i,"palette")),u="hex"===l?"":s(Object(n.b)(d,"palette"));return{[c(Object(n.b)(i,"palette"))]:p,[c(Object(n.b)(d,"palette"))]:u}}function N({device:e,state:t,prefix:o="color",palette:i}){const r=o=>Object(a.a)({key:o,device:e,state:t}),l="temp"+Object(n.c)(o);return{[r(Object(n.b)(o,"palette"))]:i,[r(Object(n.b)(l,"palette"))]:i}}function V({v:e,device:t,state:o,prefix:i="color",opacity:r,isChanged:l="hex"}){return r=D({v:e,device:t,state:o,prefix:i,opacity:r,isChanged:l}),{[(c=Object(n.b)(i,"opacity"),Object(a.a)({key:c,device:t,state:o}))]:r};var c}function D({v:e,device:t,state:o,prefix:i="color",opacity:r,isChanged:l="hex"}){const c=i=>Object(a.b)({v:e,key:i,device:t,state:o}),s="temp"+Object(n.c)(i);return"hex"===l&&0===c(Object(n.b)(i,"opacity"))?c(Object(n.b)(s,"opacity")):void 0===r?c(Object(n.b)(i,"opacity")):r}function $({v:e,device:t,state:o,bgColorType:i}){const r=e=>Object(a.a)({key:e,device:t,state:o});return{[r("bgColorType")]:i,[r("gradientActivePointer")]:"solid"===i?"startPointer":(n="gradientActivePointer",Object(a.b)({v:e,key:n,device:t,state:o}))};var n}function G({device:e,state:t,startPointer:o,finishPointer:i,activePointer:r}){const n=o=>Object(a.a)({key:o,device:e,state:t});return{[n("gradientStartPointer")]:o,[n("gradientFinishPointer")]:i,[n("gradientActivePointer")]:r}}function U({v:e,device:t,state:o,prefix:i,hex:r,opacity:l,isChanged:c="hex",opacityDragEnd:s=!1}){const d=e=>Object(a.a)({key:e,device:t,state:o}),p="temp"+Object(n.c)(i),u=(l=Z({v:e,device:t,state:o,prefix:i,opacity:l,isChanged:c}))>0&&s?l:(b=Object(n.b)(p,"colorOpacity"),Object(a.b)({v:e,key:b,device:t,state:o}));var b;return{[d(Object(n.b)(i,"colorHex"))]:r,[d(Object(n.b)(i,"colorOpacity"))]:l,[d(Object(n.b)(p,"colorOpacity"))]:u}}function K({v:e,device:t,state:o,prefix:i,opacity:r,isChanged:l="hex"}){const c=e=>Object(a.a)({key:e,device:t,state:o}),s=i=>Object(a.b)({v:e,key:i,device:t,state:o}),d="temp"+Object(n.c)(i);r=Z({v:e,device:t,state:o,prefix:i,opacity:r,isChanged:l});const p="hex"===l||0===r?"":s(r>0?Object(n.b)(d,"colorPalette"):Object(n.b)(i,"colorPalette")),u="hex"===l?"":s(Object(n.b)(d,"colorPalette"));return{[c(Object(n.b)(i,"colorPalette"))]:p,[c(Object(n.b)(d,"colorPalette"))]:u}}function q({v:e,device:t,state:o,prefix:i,opacity:r,isChanged:n="hex"}){return h({v:e,device:t,state:o,value:r=Z({v:e,device:t,state:o,prefix:i,opacity:r,isChanged:n}),dependencies:{borderRadius:{childs:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nullValue:["bgImageSrc","borderColorOpacity"],tempValue:[]}}})}function Y({v:e,device:t,prefix:o,opacity:i,isChanged:r="hex"}){if("desktop"===t||"mobile"===t){return{mobilePaddingRight:0===(i=Z({v:e,device:t,prefix:o,opacity:i,isChanged:r}))?0:"hex"===r||i>0?e.tempMobilePaddingRight:e.mobilePaddingRight,mobilePaddingLeft:0===i?0:"hex"===r||i>0?e.tempMobilePaddingLeft:e.mobilePaddingLeft}}return{}}function X({device:e,state:t,prefix:o,palette:i}){const r=o=>Object(a.a)({key:o,device:e,state:t}),l="temp"+Object(n.c)(o);return{[r(Object(n.b)(o,"colorPalette"))]:i,[r(Object(n.b)(l,"colorPalette"))]:i}}function J({v:e,device:t,state:o,prefix:i,opacity:r,isChanged:l="hex"}){return r=Z({v:e,device:t,state:o,prefix:i,opacity:r,isChanged:l}),{[(c=Object(n.b)(i,"colorOpacity"),Object(a.a)({key:c,device:t,state:o}))]:r};var c}function Z({v:e,device:t,state:o,prefix:i,opacity:r,isChanged:l="hex"}){const c=i=>Object(a.b)({v:e,key:i,device:t,state:o}),s="temp"+Object(n.c)(i);return"hex"!==l&&"palette"!==l||0!==c(Object(n.b)(i,"colorOpacity"))||1!==c(Object(n.b)(s,"colorOpacity"))||""===c("bgImageSrc")?"hex"!==l&&"palette"!==l||0!==c(Object(n.b)(i,"colorOpacity"))?void 0===r?c(Object(n.b)(i,"colorOpacity")):r:c(Object(n.b)(s,"colorOpacity")):.9}function Q({v:e,device:t,state:o,boxShadowType:i,prefix:r=""}){const l=e=>Object(a.a)({key:e,device:t,state:o}),c=Object(n.b)(r,"boxShadow"),s=Object(n.b)("temp",c);return{[l(c)]:i,[l(s)]:""!==i?i:(d=s,Object(a.b)({v:e,key:d,device:t,state:o}))};var d}function ee({v:e,device:t,state:o,boxShadowType:i,prefix:r=""}){const a=Object(n.b)(r,"boxShadow");return h({v:e,device:t,state:o,value:i,dependencies:{[Object(n.b)(a,"colorOpacity")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(a,"colorPalette")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(a,"blur")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(a,"spread")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(a,"vertical")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(a,"horizontal")]:{childs:[],nullValue:[],tempValue:[]}}})}function te({v:e,device:t,state:o,hex:i,opacity:r,prefix:l="",isChanged:c="hex",opacityDragEnd:s=!1}){const d=e=>Object(a.a)({key:e,device:t,state:o}),p=Object(n.b)(l,"boxShadow"),u=Object(n.b)(p,"colorHex"),b=Object(n.b)(p,"colorOpacity"),m=Object(n.b)("temp",b),h=(r=ce({v:e,device:t,state:o,opacity:r,prefix:l,isChanged:c}))>0&&s?r:(g=m,Object(a.b)({v:e,key:g,device:t,state:o}));var g;return{[d(u)]:i,[d(b)]:r,[d(m)]:h}}function oe({v:e,device:t,state:o,opacity:i,prefix:r="",isChanged:l="hex"}){const c=e=>Object(a.a)({key:e,device:t,state:o}),s=i=>Object(a.b)({v:e,key:i,device:t,state:o}),d=Object(n.b)(r,"boxShadow"),p=Object(n.b)(d,"colorPalette"),u=Object(n.b)("temp",p);i=ce({v:e,device:t,state:o,opacity:i,isChanged:l});const b="hex"===l||0===i?"":s(i>0?u:p),m="hex"===l?"":s(u);return{[c(p)]:b,[c(u)]:m}}function ie({v:e,device:t,state:o,opacity:i,isChanged:r,prefix:a=""}){const l=Object(n.b)(a,"boxShadow"),c={[l]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(l,"blur")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(l,"spread")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(l,"vertical")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(l,"horizontal")]:{childs:[],nullValue:[],tempValue:[]}};return h({v:e,device:t,state:o,value:i=ce({v:e,device:t,state:o,opacity:i,prefix:a,isChanged:r}),dependencies:c})}function re({device:e,state:t,palette:o,prefix:i=""}){const r=o=>Object(a.a)({key:o,device:e,state:t}),l=Object(n.b)(i,"boxShadow"),c=Object(n.b)(l,"colorPalette"),s=Object(n.b)("temp",c);return{[r(c)]:o,[r(s)]:o}}function ne({v:e,device:t,state:o,opacity:i,isChanged:r,prefix:l=""}){const c=Object(n.b)(l,"boxShadow"),s=Object(n.b)(c,"colorOpacity");return i=ce({v:e,device:t,state:o,opacity:i,prefix:l,isChanged:r}),{[(d=s,Object(a.a)({key:d,device:t,state:o}))]:i};var d}function ae({device:e,state:t,boxShadowBlur:o=0,boxShadowSpread:i=0,boxShadowVertical:r=0,boxShadowHorizontal:l=0,prefix:c=""}){const s=o=>Object(a.a)({key:o,device:e,state:t}),d=Object(n.b)(c,"boxShadow"),p=Object(n.b)(d,"blur"),u=Object(n.b)(d,"spread"),b=Object(n.b)(d,"vertical"),m=Object(n.b)(d,"horizontal"),h=Object(n.b)("temp",p),g=Object(n.b)("temp",u),v=Object(n.b)("temp",b),y=Object(n.b)("temp",m);return{[s(p)]:o,[s(h)]:o,[s(u)]:i,[s(g)]:i,[s(b)]:r,[s(v)]:r,[s(m)]:l,[s(y)]:l}}function le({v:e,device:t,state:o,boxShadowBlur:i=0,boxShadowSpread:r=0,boxShadowVertical:a=0,boxShadowHorizontal:l=0,prefix:c=""}){const s=Math.max(i,r,a,l),d=Object(n.b)(c,"boxShadow");return h({v:e,device:t,state:o,value:s,dependencies:{[d]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(d,"colorOpacity")]:{childs:[],nullValue:[],tempValue:[]},[Object(n.b)(d,"colorPalette")]:{childs:[],nullValue:[],tempValue:[]}}})}function ce({v:e,device:t,state:o,prefix:i="",opacity:r,isChanged:l="hex"}){const c=i=>Object(a.b)({v:e,key:i,device:t,state:o}),s=Object(n.b)(i,"boxShadow"),d=Object(n.b)(s,"colorOpacity"),p=Object(n.b)("temp",d);return"hex"!==l&&"palette"!==l||0!==c(d)?void 0===r?c(d):r:c(p)}function se({v:e,device:t,state:o,textShadowType:i,prefix:r=""}){const l=e=>Object(a.a)({key:e,device:t,state:o}),c=Object(n.b)(r,"textShadow"),s=Object(n.b)("temp",c);return{[l(c)]:i,[l(s)]:""!==i?i:(d=s,Object(a.b)({v:e,key:d,device:t,state:o}))};var d}function de({v:e,device:t,state:o,hex:i,opacity:r,prefix:l="",isChanged:c="hex",opacityDragEnd:s=!1}){const d=e=>Object(a.a)({key:e,device:t,state:o}),p=Object(n.b)(l,"textShadow"),u=Object(n.b)(p,"colorHex"),b=Object(n.b)(p,"colorOpacity"),m=Object(n.b)("temp",b),h=(r=he({v:e,device:t,state:o,opacity:r,prefix:l,isChanged:c}))>0&&s?r:(g=m,Object(a.b)({v:e,key:g,device:t,state:o}));var g;return{[d(p)]:"shadow",[d(u)]:i,[d(b)]:r,[d(m)]:h}}function pe({v:e,device:t,state:o,opacity:i,prefix:r="",isChanged:l="hex"}){const c=e=>Object(a.a)({key:e,device:t,state:o}),s=i=>Object(a.b)({v:e,key:i,device:t,state:o}),d=Object(n.b)(r,"textShadow"),p=Object(n.b)(d,"colorPalette"),u=Object(n.b)("temp",p);i=he({v:e,device:t,state:o,opacity:i,isChanged:l});const b="hex"===l||0===i?"":s(i>0?u:p),m="hex"===l?"":s(u);return{[c(d)]:"shadow",[c(p)]:b,[c(u)]:m}}function ue({device:e,state:t,palette:o,prefix:i=""}){const r=o=>Object(a.a)({key:o,device:e,state:t}),l=Object(n.b)(i,"textShadow"),c=Object(n.b)(l,"colorPalette"),s=Object(n.b)("temp",c);return{[r(l)]:"shadow",[r(c)]:o,[r(s)]:o}}function be({v:e,device:t,state:o,opacity:i,isChanged:r,prefix:l=""}){const c=e=>Object(a.a)({key:e,device:t,state:o}),s=Object(n.b)(l,"textShadow"),d=Object(n.b)(s,"colorOpacity");return i=he({v:e,device:t,state:o,opacity:i,prefix:l,isChanged:r}),{[c(s)]:"shadow",[c(d)]:i}}function me({device:e,state:t,textShadowBlur:o=0,textShadowVertical:i=0,textShadowHorizontal:r=0,prefix:l=""}){const c=o=>Object(a.a)({key:o,device:e,state:t}),s=Object(n.b)(l,"textShadow"),d=Object(n.b)(s,"blur"),p=Object(n.b)(s,"vertical"),u=Object(n.b)(s,"horizontal"),b=Object(n.b)("temp",d),m=Object(n.b)("temp",p),h=Object(n.b)("temp",u);return{[c(s)]:"shadow",[c(d)]:o,[c(b)]:o,[c(p)]:i,[c(m)]:i,[c(u)]:r,[c(h)]:r}}function he({v:e,device:t,state:o,prefix:i="",opacity:r,isChanged:l="hex"}){const c=i=>Object(a.b)({v:e,key:i,device:t,state:o}),s=Object(n.b)(i,"textShadow"),d=Object(n.b)(s,"colorOpacity"),p=Object(n.b)("temp",d);return"hex"!==l&&"palette"!==l||0!==c(d)?void 0===r?c(d):r:c(p)}function ge(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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(r.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 ye({v:e,device:t,state:o,me:i="padding",childs:r,value:a,suffix:l,sliderDragEnd:c,prefix:s=""}){const p=[],u=[],b=Object(n.b)(s,i);return r.forEach(e=>{const t=Object(n.b)(s,e);p.push(t),u.push(Object(n.b)(t,"suffix"))}),ve(ve({},d({v:e,device:t,state:o,me:b+"Suffix",childs:u,value:l,dragEnd:c})),d({v:e,device:t,state:o,childs:p,value:a,me:b,dragEnd:c}))}function fe({v:e,device:t,state:o,value:i,suffix:r,sliderDragEnd:a,childs:l,current:c,me:s="padding",prefix:d=""}){const u=[],b=[],m=Object(n.b)(d,s),h=Object(n.b)(d,c);return l.forEach(e=>{const t=Object(n.b)(d,e);u.push(t),b.push(Object(n.b)(t,"suffix"))}),ve(ve({},p({v:e,device:t,state:o,me:m+"Suffix",childs:b,current:h+"Suffix",value:r,dragEnd:a})),p({v:e,device:t,state:o,childs:u,current:h,value:i,me:m,dragEnd:a}))}function Se(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Oe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(o),!0).forEach((function(t){Object(r.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Se(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function xe({v:e,device:t,state:o,value:i,suffix:r}){const n=["marginTop","marginRight","marginBottom","marginLeft"],a=[];for(var l=0;l<n.length;l++)a[l]=n[l]+"Suffix";return Oe(Oe({},u({v:e,device:t,state:o,parent:"marginSuffix",childs:a,value:r})),u({v:e,device:t,state:o,parent:"margin",childs:n,value:i}))}function Ce({v:e,device:t,state:o,current:i,value:r,suffix:n}){const l=["marginTop","marginRight","marginBottom","marginLeft"],c=[];for(var s=0;s<l.length;s++)c[s]=l[s]+"Suffix";return Oe(Oe(Oe({[""+Object(a.a)({key:i+"Suffix",device:t,state:o})]:n},m({v:e,device:t,state:o,childs:l,current:i,value:r})),b({v:e,device:t,state:o,parent:"margin",childs:l,current:i,value:r})),b({v:e,device:t,state:o,parent:"marginSuffix",childs:c,current:i+"Suffix",value:n}))}function we({v:e,device:t,state:o,opacity:i,isChanged:r="hex"}){return h({v:e,device:t,state:o,value:i=function({v:e,device:t,state:o,opacity:i,isChanged:r}){return"hex"===r&&0===Object(a.b)({v:e,key:"boxShadowColorOpacity",device:t,state:o})?Object(a.b)({v:e,key:"tempBoxShadowColorOpacity",device:t,state:o}):void 0===i?Object(a.b)({v:e,key:"boxShadowColorOpacity",device:t,state:o}):i}({v:e,device:t,state:o,opacity:i,isChanged:r}),dependencies:{boxShadowBlur:{childs:[],nullValue:[],tempValue:[]},boxShadowVertical:{childs:[],nullValue:[],tempValue:[]}}})}function Be({v:e,device:t,state:o,colorType:i}){const r=e=>Object(a.a)({key:e,device:t,state:o});return{[r("colorType")]:i,[r("gradientActivePointer")]:"solid"===i?"startPointer":(n="gradientActivePointer",Object(a.b)({v:e,key:n,device:t,state:o}))};var n}function je({v:e,device:t,state:o,hex:i,opacity:r,isChanged:n="hex",opacityDragEnd:l=!1}){const c=(r=ke({v:e,device:t,state:o,opacity:r,isChanged:n}))>0&&l?r:Object(a.b)({v:e,key:"tempBg2ColorOpacity",device:t,state:o});return{[Object(a.a)({key:"bg2ColorHex",device:t,state:o})]:i,[Object(a.a)({key:"bg2ColorOpacity",device:t,state:o})]:r,[Object(a.a)({key:"tempBg2ColorOpacity",device:t,state:o})]:c}}function Te({v:e,device:t,state:o,opacity:i,isChanged:r="hex"}){i=ke({v:e,device:t,state:o,opacity:i,isChanged:r});const n="hex"===r||0===i?"":i>0?Object(a.b)({v:e,key:"tempBg2ColorPalette",device:t,state:o}):Object(a.b)({v:e,key:"bg2ColorPalette",device:t,state:o}),l="hex"===r?"":Object(a.b)({v:e,key:"tempBg2ColorPalette",device:t,state:o});return{[Object(a.a)({key:"bg2ColorPalette",device:t,state:o})]:n,[Object(a.a)({key:"tempBg2ColorPalette",device:t,state:o})]:l}}function Pe({v:e,device:t,state:o,opacity:i,isChanged:r="hex"}){return h({v:e,device:t,state:o,value:i=ke({v:e,device:t,state:o,opacity:i,isChanged:r}),dependencies:{borderRadius:{childs:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nullValue:["bg2ImageSrc","borderColorOpacity"],tempValue:[]}}})}function Ee({device:e,state:t,palette:o}){return{[Object(a.a)({key:"bg2ColorPalette",device:e,state:t})]:o,[Object(a.a)({key:"tempBg2ColorPalette",device:e,state:t})]:o}}function _e({v:e,device:t,state:o,opacity:i,isChanged:r="hex"}){return i=ke({v:e,device:t,state:o,opacity:i,isChanged:r}),{[Object(a.a)({key:"bg2ColorOpacity",device:t,state:o})]:i}}function ke({v:e,device:t,state:o,opacity:i,isChanged:r}){return"hex"===r&&0===Object(a.b)({v:e,key:"bg2ColorOpacity",device:t,state:o})&&1===Object(a.b)({v:e,key:"tempBg2ColorOpacity",device:t,state:o})&&""!==Object(a.b)({v:e,key:"bg2ImageSrc",device:t,state:o})?.9:"hex"===r&&0===Object(a.b)({v:e,key:"bg2ColorOpacity",device:t,state:o})?Object(a.b)({v:e,key:"tempBg2ColorOpacity",device:t,state:o}):void 0===i?Object(a.b)({v:e,key:"bg2ColorOpacity",device:t,state:o}):i}function ze({v:e,hex:t,opacity:o,isChanged:i="hex"}){return{borderColorHex:t,borderColorOpacity:o=t!==e.borderColorHex&&0===e.borderColorOpacity?e.tempBorderColorOpacity:o,borderColorPalette:"hex"===i?"":e.borderColorPalette,tempBorderColorOpacity:o>0?o:e.tempBorderColorOpacity,tempBorderColorPalette:"hex"===i?"":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 Fe({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 Re({v:e,hex:t,opacity:o,isChanged:i}){return{borderColorPalette:"hex"===i?"":e.borderColorPalette,borderColorHex:t,borderColorOpacity:o}}function He({v:e,hex:t,opacity:o,isChanged:i="hex"}){return{hoverBorderColorHex:t,hoverBorderColorOpacity:t!==e.hoverBorderColorHex&&0==e.hoverBorderColorOpacity?e.tempHoverBorderColorOpacity:o,hoverBorderColorPalette:"hex"===i?"":e.hoverBorderColorPalette}}function Le({v:e,palette:t}){return{hoverBorderColorPalette:t,hoverBorderColorOpacity:0===e.hoverBorderColorOpacity?e.tempHoverBorderColorOpacity:e.hoverBorderColorOpacity}}function Me({v:e,hex:t,opacity:o,isChanged:i}){return{hoverBorderColorPalette:"hex"===i?"":e.hoverBorderColorPalette,hoverBorderColorHex:t,hoverBorderColorOpacity:o}}function Ie({v:e,hex:t,opacity:o,isChanged:i="hex"}){return{hoverBorderColorHex:t,hoverBorderColorOpacity:t!==e.hoverBorderColorHex&&0==e.hoverBorderColorOpacity?e.tempHoverBorderColorOpacity:o,hoverBorderColorPalette:"hex"===i?"":e.hoverBorderColorPalette}}function We({v:e,palette:t}){return{hoverBorderColorPalette:t,hoverBorderColorOpacity:0===e.hoverBorderColorOpacity?e.tempHoverBorderColorOpacity:e.hoverBorderColorOpacity}}function Ae({v:e,hex:t,opacity:o,isChanged:i="hex"}){return{hoverBorderColorPalette:"hex"===i?"":e.hoverBorderColorPalette,hoverBorderColorHex:t,hoverBorderColorOpacity:o}}function Ne({v:e,hex:t,opacity:o,isChanged:i="hex",opacityDragEnd:r=!1}){return{bgColorHex:t,bgColorOpacity:o=t!==e.bgColorHex&&0===e.bgColorOpacity?e.tempBgColorOpacity:o,bgColorPalette:"hex"===i?"":e.bgColorPalette,tempBgColorPalette:"hex"===i?"":e.tempBgColorPalette,tempBgColorOpacity:o>0&&r?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 Ve({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 De({v:e,hex:t,opacity:o,isChanged:i="hex"}){return"startPointer"===e.gradientActivePointer?{bgColorPalette:"hex"===i?"":e.bgColorPalette,tempBgColorPalette:"hex"===i?"":e.tempBgColorPalette,bgColorHex:t,bgColorOpacity:o}:{gradientColorPalette:"hex"===i?"":e.gradientColorPalette,tempGradientColorPalette:"hex"===i?"":e.tempGradientColorPalette,gradientColorHex:t,gradientColorOpacity:o}}function $e({v:e,hex:t,opacity:o,isChanged:i="hex",opacityDragEnd:r=!1}){return{hoverBgColorHex:t,hoverBgColorOpacity:o=t!==e.hoverBgColorHex&&0===e.hoverBgColorOpacity?e.tempHoverBgColorOpacity:o,tempHoverBgColorOpacity:o>0&&r?o:e.tempHoverBgColorOpacity,hoverBgColorPalette:"hex"===i?"":e.hoverBgColorPalette,tempHoverBgColorPalette:"hex"===i?"":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 Ge({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 Ue({v:e,hex:t,opacity:o,isChanged:i="hex"}){return"startPointer"===e.hoverGradientActivePointer?{hoverBgColorPalette:"hex"===i?"":e.hoverBgColorPalette,tempHoverBgColorPalette:"hex"===i?"":e.tempHoverBgColorPalette,hoverBgColorHex:t,hoverBgColorOpacity:o}:{hoverGradientColorPalette:"hex"===i?"":e.hoverGradientColorPalette,tempHoverGradientColorPalette:"hex"===i?"":e.tempHoverGradientColorPalette,hoverGradientColorHex:t,hoverGradientColorOpacity:o}}function Ke({v:e,hex:t,opacity:o,isChanged:i,opacityDragEnd:r}){return{colorHex:t,colorOpacity:o=t!==e.colorHex&&0==e.colorOpacity?e.tempColorOpacity:o,colorPalette:"hex"===i?"":e.colorPalette,tempColorOpacity:o>0&&r?o:e.tempColorOpacity,hoverColorHex:e.colorHex===e.hoverColorHex?t:e.hoverColorHex,hoverColorOpacity:e.colorOpacity===e.hoverColorOpacity?o:e.hoverColorOpacity}}function qe({v:e,palette:t}){return{colorPalette:t,colorOpacity:0===e.colorOpacity?e.tempColorOpacity:e.colorOpacity}}function Ye({v:e,hex:t,opacity:o,isChanged:i="hex"}){return{colorPalette:"hex"===i?"":e.colorPalette,colorHex:t,colorOpacity:o}}function Xe({v:e,hex:t,opacity:o,isChanged:i="hex"}){return{hoverColorHex:t,hoverColorOpacity:t!==e.hoverColorHex&&0==e.hoverColorOpacity?e.tempHoverColorOpacity:o,hoverColorPalette:"hex"===i?"":e.hoverColorPalette}}function Je({v:e,palette:t}){return{hoverColorPalette:t,hoverColorOpacity:0===e.hoverColorOpacity?e.tempHoverColorOpacity:e.hoverColorOpacity}}function Ze({v:e,hex:t,opacity:o,isChanged:i="hex"}){return{hoverColorPalette:"hex"===i?"":e.hoverColorPalette,hoverColorHex:t,hoverColorOpacity:o}}function Qe({v:e,hex:t,opacity:o,isChanged:i,opacityDragEnd:r}){return{colorHex:t,colorOpacity:o=t!==e.colorHex&&0===e.colorOpacity?e.tempColorOpacity:o,colorPalette:"hex"===i?"":e.colorPalette,tempColorOpacity:o>0&&r?o:e.tempColorOpacity,hoverColorHex:e.colorHex===e.hoverColorHex?t:e.hoverColorHex,hoverColorOpacity:e.colorOpacity===e.hoverColorOpacity?o:e.hoverColorOpacity}}function et({v:e,palette:t}){return{colorPalette:t,colorOpacity:0===e.colorOpacity?e.tempColorOpacity:e.colorOpacity,hoverColorPalette:e.colorPalette===e.hoverColorPalette?t:e.hoverColorPalette}}function tt({v:e,hex:t,opacity:o,isChanged:i}){return{colorPalette:"hex"===i?"":e.colorPalette,colorHex:t,colorOpacity:o,hoverColorHex:e.colorHex===e.hoverColorHex?t:e.hoverColorHex,hoverColorOpacity:e.colorOpacity===e.hoverColorOpacity?o:e.hoverColorOpacity}}function ot({v:e,hex:t,opacity:o,isChanged:i}){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"===i?"":e.hoverColorPalette}}function it({v:e,palette:t}){return{hoverColorPalette:t,hoverColorOpacity:0===e.hoverColorOpacity?e.tempHoverColorOpacity:e.hoverColorOpacity}}function rt({v:e,hex:t,opacity:o,isChanged:i}){return{hoverColorPalette:"hex"===i?"":e.hoverColorPalette,hoverColorHex:t,hoverColorOpacity:o}}function nt({v:e,hex:t,opacity:o,isChanged:i,opacityDragEnd:r}){return{mMenuColorHex:t,mMenuColorOpacity:o=t!==e.mMenuColorHex&&0==e.mMenuColorOpacity?e.mMenuTempColorOpacity:o,mMenuColorPalette:"hex"===i?"":e.mMenuColorPalette,mMenuTempColorOpacity:o>0&&r?o:e.mMenuTempColorOpacity,mMenuHoverColorHex:e.mMenuColorHex===e.mMenuHoverColorHex?t:e.mMenuHoverColorHex,mMenuHoverColorOpacity:e.mMenuColorOpacity===e.mMenuHoverColorOpacity?o:e.mMenuHoverColorOpacity}}function at({v:e,palette:t}){return{mMenuColorPalette:t,mMenuColorOpacity:0===e.mMenuColorOpacity?e.mMenuTempColorOpacity:e.mMenuColorOpacity}}function lt({v:e,hex:t,opacity:o,isChanged:i}){return{mMenuColorPalette:"hex"===i?"":e.mMenuColorPalette,mMenuColorHex:t,mMenuColorOpacity:o}}function ct({v:e,hex:t,opacity:o,isChanged:i}){return{mMenuHoverColorHex:t,mMenuHoverColorOpacity:t!==e.mMenuHoverColorHex&&0==e.mMenuHoverColorOpacity?e.mMenuTempHoverColorOpacity:o,mMenuHoverColorPalette:"hex"===i?"":e.mMenuHoverColorPalette}}function st({v:e,palette:t}){return{mMenuHoverColorPalette:t,mMenuHoverColorOpacity:0===e.mMenuHoverColorOpacity?e.mMenuTempHoverColorOpacity:e.mMenuHoverColorOpacity}}function dt({v:e,hex:t,opacity:o,isChanged:i}){return{mMenuHoverColorPalette:"hex"===i?"":e.mMenuHoverColorPalette,mMenuHoverColorHex:t,mMenuHoverColorOpacity:o}}function pt({v:e,hex:t,opacity:o,isChanged:i,opacityDragEnd:r}){return{subMenuColorHex:t,subMenuColorOpacity:o=t!==e.subMenuColorHex&&0===e.subMenuColorOpacity?e.subMenuTempColorOpacity:o,subMenuColorPalette:"hex"===i?"":e.subMenuColorPalette,subMenuTempColorOpacity:o>0&&r?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 ut({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 bt({v:e,hex:t,opacity:o,isChanged:i}){return{subMenuColorPalette:"hex"===i?"":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 mt({v:e,hex:t,opacity:o,isChanged:i}){return{subMenuHoverColorHex:t,subMenuHoverColorOpacity:t!==e.subMenuHoverColorHex&&0===e.subMenuHoverColorOpacity?e.subMenuTempHoverColorOpacity:o,subMenuHoverColorPalette:"hex"===i?"":e.subMenuHoverColorPalette,mMenuHoverColorHex:e.subMenuHoverColorHex===e.mMenuHoverColorHex?t:e.mMenuHoverColorHex,mMenuHoverColorOpacity:e.subMenuHoverColorOpacity===e.mMenuHoverColorOpacity?o:e.mMenuHoverColorOpacity}}function ht({v:e,palette:t}){return{subMenuHoverColorPalette:t,subMenuHoverColorOpacity:0===e.subMenuHoverColorOpacity?e.subMenuTempHoverColorOpacity:e.subMenuHoverColorOpacity,mMenuHoverColorPalette:e.subMenuHoverColorPalette===e.mMenuHoverColorPalette?t:e.mMenuHoverColorPalette}}function gt({v:e,hex:t,opacity:o,isChanged:i}){return{subMenuHoverColorPalette:"hex"===i?"":e.subMenuHoverColorPalette,subMenuHoverColorHex:t,subMenuHoverColorOpacity:o,mMenuHoverColorHex:e.subMenuHoverColorHex===e.mMenuHoverColorHex?t:e.mMenuHoverColorHex,mMenuHoverColorOpacity:e.subMenuHoverColorOpacity===e.mMenuHoverColorOpacity?o:e.mMenuHoverColorOpacity}}function vt({v:e,hex:t,opacity:o,isChanged:i}){return{mMenuIconColorHex:t,mMenuIconColorOpacity:t!==e.mMenuIconColorHex&&0===e.mMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o,mMenuIconColorPalette:"hex"===i?"":e.mMenuIconColorPalette}}function yt({v:e,palette:t}){return{mMenuIconColorPalette:t,mMenuIconColorHex:"",mMenuIconColorOpacity:0===e.mMenuIconColorOpacity?e.mMenuTempIconColorOpacity:e.mMenuIconColorOpacity}}function ft({v:e,hex:t,opacity:o,isChanged:i}){const r=t!==e.mMenuIconColorHex&&0===e.mMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o;return{mMenuIconColorPalette:"hex"===i?"":e.mMenuIconColorPalette,mMenuIconColorHex:t,mMenuIconColorOpacity:r}}function St({v:e,hex:t,opacity:o,isChanged:i}){return{tabletMMenuIconColorHex:t,tabletMMenuIconColorOpacity:t!==e.tabletMMenuIconColorHex&&0===e.tabletMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o,tabletMMenuIconColorPalette:"hex"===i?"":e.tabletMMenuIconColorPalette}}function Ot({v:e,palette:t}){return{tabletMMenuIconColorPalette:t,tabletMMenuIconColorHex:"",tabletMMenuIconColorOpacity:0===e.tabletMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:e.tabletMMenuIconColorOpacity}}function xt({v:e,hex:t,opacity:o,isChanged:i}){const r=t!==e.tabletMMenuIconColorHex&&0===e.tabletMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o;return{tabletMMenuIconColorPalette:"hex"===i?"":e.tabletMMenuIconColorPalette,tabletMMenuIconColorHex:t,tabletMMenuIconColorOpacity:r}}function Ct({v:e,hex:t,opacity:o,isChanged:i}){return{mobileMMenuIconColorHex:t,mobileMMenuIconColorOpacity:t!==e.mobileMMenuIconColorHex&&0===e.mobileMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o,mobileMMenuIconColorPalette:"hex"===i?"":e.mobileMMenuIconColorPalette}}function wt({v:e,palette:t}){return{mobileMMenuIconColorPalette:t,mobileMMenuIconColorHex:"",mobileMMenuIconColorOpacity:0===e.mobileMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:e.mobileMMenuIconColorOpacity}}function Bt({v:e,hex:t,opacity:o,isChanged:i}){const r=t!==e.mobileMMenuIconColorHex&&0===e.mobileMMenuIconColorOpacity?e.mMenuTempIconColorOpacity:o;return{mobileMMenuIconColorPalette:"hex"===i?"":e.mobileMMenuIconColorPalette,mobileMMenuIconColorHex:t,mobileMMenuIconColorOpacity:r}}function jt({v:e,hex:t,opacity:o,isChanged:i,opacityDragEnd:r}){return{mMenuBgColorHex:t,mMenuBgColorOpacity:o=t!==e.mMenuBgColorHex&&0==e.mMenuBgColorOpacity?e.mMenuTempBgColorOpacity:o,mMenuBgColorPalette:"hex"===i?"":e.mMenuBgColorPalette,mMenuTempBgColorOpacity:o>0&&r?o:e.mMenuTempBgColorOpacity}}function Tt({v:e,palette:t}){return{mMenuBgColorPalette:t,mMenuBgColorOpacity:0===e.mMenuBgColorOpacity?e.mMenuTempBgColorOpacity:e.mMenuBgColorOpacity}}function Pt({v:e,hex:t,opacity:o,isChanged:i,opacityDragEnd:r=!1}){return{subMenuBgColorHex:t,subMenuBgColorOpacity:o=t!==e.subMenuBgColorHex&&0===e.subMenuBgColorOpacity?e.subMenuTempBgColorOpacity:o,subMenuBgColorPalette:"hex"===i?"":e.subMenuBgColorPalette,subMenuTempBgColorOpacity:o>0&&r?o:e.subMenuTempBgColorOpacity,subMenuHoverBgColorHex:e.subMenuBgColorHex===e.subMenuHoverBgColorHex?t:e.subMenuHoverBgColorHex,subMenuHoverBgColorOpacity:e.subMenuBgColorOpacity===e.subMenuHoverBgColorOpacity?o:e.subMenuHoverBgColorOpacity,mMenuBgColorHex:e.subMenuBgColorHex===e.mMenuBgColorHex?t:e.mMenuBgColorHex,mMenuBgColorOpacity:e.subMenuBgColorOpacity===e.mMenuBgColorOpacity?o:e.mMenuBgColorOpacity}}function Et({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 _t({v:e,hex:t,opacity:o,isChanged:i}){return{subMenuBgColorPalette:"hex"===i?"":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 kt({v:e,hex:t,opacity:o,isChanged:i}){return{subMenuHoverBgColorHex:t,subMenuHoverBgColorOpacity:t!==e.subMenuHoverBgColorHex&&0===e.subMenuHoverBgColorOpacity?e.subMenuTempHoverBgColorOpacity:o,subMenuHoverBgColorPalette:"hex"===i?"":e.subMenuHoverBgColorPalette}}function zt({v:e,palette:t}){return{subMenuHoverBgColorPalette:t,subMenuHoverBgColorOpacity:0===e.subMenuHoverBgColorOpacity?e.subMenuTempHoverBgColorOpacity:e.subMenuHoverBgColorOpacity}}function Ft({v:e,hex:t,opacity:o,isChanged:i}){return{subMenuHoverBgColorPalette:"hex"===i?"":e.subMenuHoverBgColorPalette,subMenuHoverBgColorHex:t,subMenuHoverBgColorOpacity:o}}function Rt({v:e,hex:t,opacity:o,isChanged:i,opacityDragEnd:r}){return{mMenuBorderColorHex:t,mMenuBorderColorOpacity:o=t!==e.mMenuBorderColorHex&&0==e.mMenuBorderColorOpacity?e.mMenuTempBorderColorOpacity:o,mMenuBorderColorPalette:"hex"===i?"":e.mMenuBorderColorPalette,mMenuTempBorderColorOpacity:o>0&&r?o:e.mMenuTempBorderColorOpacity}}function Ht({v:e,palette:t}){return{mMenuBorderColorPalette:t,mMenuBorderColorOpacity:0===e.mMenuBorderColorOpacity?e.mMenuTempBorderColorOpacity:e.mMenuBorderColorOpacity}}function Lt({v:e,hex:t,opacity:o,isChanged:i}){return{mMenuBorderColorPalette:"hex"===i?"":e.mMenuBorderColorPalette,mMenuBorderColorHex:t,mMenuBorderColorOpacity:o}}function Mt({v:e,hex:t,opacity:o,isChanged:i,opacityDragEnd:r}){return{subMenuBorderColorHex:t,subMenuBorderColorOpacity:o=t!==e.subMenuBorderColorHex&&0===e.subMenuBorderColorOpacity?e.subMenuTempBorderColorOpacity:o,subMenuBorderColorPalette:"hex"===i?"":e.subMenuBorderColorPalette,subMenuTempBorderColorOpacity:o>0&&r?o:e.subMenuTempBorderColorOpacity,mMenuBorderColorHex:e.subMenuBorderColorHex===e.mMenuBorderColorHex?t:e.mMenuBorderColorHex,mMenuBorderColorOpacity:e.subMenuBorderColorOpacity===e.mMenuBorderColorOpacity?o:e.mMenuBorderColorOpacity}}function It({v:e,palette:t}){return{subMenuBorderColorPalette:t,subMenuBorderColorOpacity:0===e.subMenuBorderColorOpacity?e.subMenuTempBorderColorOpacity:e.subMenuBorderColorOpacity,mMenuBorderColorPalette:e.subMenuBorderColorPalette===e.mMenuBorderColorPalette?t:e.mMenuBorderColorPalette}}function Wt({v:e,hex:t,opacity:o,isChanged:i}){return{subMenuBorderColorPalette:"hex"===i?"":e.subMenuBorderColorPalette,subMenuBorderColorHex:t,subMenuBorderColorOpacity:o,mMenuBorderColorHex:e.subMenuBorderColorHex===e.mMenuBorderColorHex?t:e.mMenuBorderColorHex,mMenuBorderColorOpacity:e.subMenuBorderColorOpacity===e.mMenuBorderColorOpacity?o:e.mMenuBorderColorOpacity}}function At({v:e,hex:t,opacity:o,isChanged:i}){return{activeSubMenuColorHex:t,activeSubMenuColorOpacity:t!==e.activeSubMenuColorHex&&0===e.activeSubMenuColorOpacity?e.tempActiveSubMenuColorOpacity:o,activeSubMenuColorPalette:"hex"===i?"":e.activeSubMenuColorPalette,activeMMenuColorHex:e.activeSubMenuColorHex===e.activeMMenuColorHex?t:e.activeMMenuColorHex,activeMMenuColorOpacity:e.activeSubMenuColorOpacity===e.activeMMenuColorOpacity?o:e.activeMMenuColorOpacity}}function Nt({v:e,palette:t}){return{activeSubMenuColorPalette:t,activeSubMenuColorOpacity:0===e.activeSubMenuColorOpacity?e.tempActiveSubMenuColorOpacity:e.activeSubMenuColorOpacity,activeMMenuColorPalette:e.activeSubMenuColorPalette===e.activeMMenuColorPalette?t:e.activeMMenuColorPalette}}function Vt({v:e,hex:t,opacity:o,isChanged:i}){return{activeSubMenuColorPalette:"hex"===i?"":e.activeSubMenuColorPalette,activeSubMenuColorHex:t,activeSubMenuColorOpacity:o,activeMMenuColorHex:e.activeSubMenuColorHex===e.activeMMenuColorHex?t:e.activeMMenuColorHex,activeMMenuColorOpacity:e.activeSubMenuColorOpacity===e.activeMMenuColorOpacity?o:e.activeMMenuColorOpacity}}function Dt({v:e,hex:t,opacity:o,isChanged:i}){return{activeSubMenuBgColorHex:t,activeSubMenuBgColorOpacity:t!==e.activeSubMenuBgColorHex&&0===e.activeSubMenuBgColorOpacity?e.tempActiveSubMenuBgColorOpacity:o,activeSubMenuBgColorPalette:"hex"===i?"":e.activeSubMenuBgColorPalette}}function $t({v:e,palette:t}){return{activeSubMenuBgColorPalette:t,activeSubMenuBgColorOpacity:0===e.activeSubMenuBgColorOpacity?e.tempActiveSubMenuBgColorOpacity:e.activeSubMenuBgColorOpacity}}function Gt({v:e,hex:t,opacity:o,isChanged:i}){return{activeSubMenuBgColorPalette:"hex"===i?"":e.activeSubMenuBgColorPalette,activeSubMenuBgColorHex:t,activeSubMenuBgColorOpacity:o}}function Ut({v:e,hex:t,opacity:o,isChanged:i}){return{activeMMenuColorHex:t,activeMMenuColorOpacity:t!==e.activeMMenuColorHex&&0==e.activeMMenuColorOpacity?e.tempActiveMMenuHoverColorOpacity:o,activeMMenuColorPalette:"hex"===i?"":e.activeMMenuColorPalette}}function Kt({v:e,palette:t}){return{activeMMenuColorPalette:t,activeMMenuColorOpacity:0===e.activeMMenuColorOpacity?e.tempActiveMMenuHoverColorOpacity:e.activeMMenuColorOpacity}}function qt({v:e,hex:t,opacity:o,isChanged:i}){return{activeMMenuColorPalette:"hex"===i?"":e.activeMMenuColorPalette,activeMMenuColorHex:t,activeMMenuColorOpacity:o}}var Yt=o(40);function Xt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Jt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(o),!0).forEach((function(t){Object(r.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Xt(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Zt(e,t){const{fontSize:o,fontFamily:i,fontFamilyType:r,lineHeight:n,letterSpacing:a,fontWeight:l}=""===t.fontStyle?t:Object(Yt.e)(t.fontStyle);return Jt({fontSize:o,fontFamily:i,fontFamilyType:r,lineHeight:n,letterSpacing:a,fontWeight:l,fontStyle:""},e)}function Qt(e,t){const{tabletFontSize:o,tabletLineHeight:i,tabletLetterSpacing:r,tabletFontWeight:n}=""===t.tabletFontStyle?t:Object(Yt.e)(t.tabletFontStyle);return Jt({tabletFontSize:o,tabletLineHeight:i,tabletLetterSpacing:r,tabletFontWeight:n,tabletFontStyle:""},e)}function eo(e,t){const{mobileFontSize:o,mobileLineHeight:i,mobileLetterSpacing:r,mobileFontWeight:n}=""===t.mobileFontStyle?t:Object(Yt.e)(t.mobileFontStyle);return Jt({mobileFontSize:o,mobileLineHeight:i,mobileLetterSpacing:r,mobileFontWeight:n,mobileFontStyle:""},e)}var to=o(7);function oo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function io(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(o),!0).forEach((function(t){Object(r.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):oo(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function ro({v:e,prefix:t="",current:o,value:i,weights:r,type:l,device:c,state:s}){const d=Object(a.a)({key:Object(n.b)(t,"fontStyle"),device:c,state:s}),p=Object(a.a)({key:Object(n.b)(t,"fontFamily"),device:c,state:s}),u=Object(a.a)({key:Object(n.b)(t,"fontFamilyType"),device:c,state:s}),b=Object(a.a)({key:Object(n.b)(t,"fontSize"),device:c,state:s}),m=Object(a.a)({key:Object(n.b)(t,"lineHeight"),device:c,state:s}),h=Object(a.a)({key:Object(n.b)(t,"letterSpacing"),device:c,state:s}),g=Object(a.a)({key:Object(n.b)(t,"fontWeight"),device:c,state:s}),v=Object(to.e)("fontFamilyType",Object(a.b)({v:e,key:Object(n.b)(t,"fontFamilyType"),device:c,state:s}),Object(a.b)({v:e,key:Object(n.b)(t,"fontStyle"),device:c,state:s})),y=Object(to.e)("fontFamily",Object(a.b)({v:e,key:Object(n.b)(t,"fontFamily"),device:c,state:s}),Object(a.b)({v:e,key:Object(n.b)(t,"fontStyle"),device:c,state:s})),f=Object(to.e)("fontSize",Object(a.b)({v:e,key:Object(n.b)(t,"fontSize"),device:c,state:s}),Object(a.b)({v:e,key:Object(n.b)(t,"fontStyle"),device:c,state:s})),S=Object(to.e)("lineHeight",Object(a.b)({v:e,key:Object(n.b)(t,"lineHeight"),device:c,state:s}),Object(a.b)({v:e,key:Object(n.b)(t,"fontStyle"),device:c,state:s})),O=Object(to.e)("letterSpacing",Object(a.b)({v:e,key:Object(n.b)(t,"letterSpacing"),device:c,state:s}),Object(a.b)({v:e,key:Object(n.b)(t,"fontStyle"),device:c,state:s})),x=Object(to.e)("fontWeight",Object(a.b)({v:e,key:Object(n.b)(t,"fontWeight"),device:c,state:s}),Object(a.b)({v:e,key:Object(n.b)(t,"fontStyle"),device:c,state:s}));return io(io(io(io(io({[d]:""},o===p?{[p]:i,[u]:l}:{[p]:y,[u]:v}),o===b?{[b]:i}:{[b]:f}),o===m?{[m]:i}:{[m]:S}),o===h?{[h]:i}:{[h]:O}),o===g?{[g]:i}:o===p?{[g]:Object(Yt.l)(x,r)}:{[g]:x})}},function(e,t,o){"use strict";o.d(t,"c",(function(){return l})),o.d(t,"b",(function(){return c})),o.d(t,"a",(function(){return s})),o.d(t,"g",(function(){return d})),o.d(t,"e",(function(){return p})),o.d(t,"d",(function(){return u})),o.d(t,"f",(function(){return b}));var i=o(14),r=o(20),n=o(23),a=o(19);const l="normal",c="hover",s="active",d=()=>[l,c,s],p=Object(i.c)(e=>d().includes(e)),u=l,b=Object(i.d)(n.d,Object(a.mPipe)(p),Object(r.g)(u))},,function(e,t,o){"use strict";o.d(t,"g",(function(){return i})),o.d(t,"c",(function(){return r})),o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return a})),o.d(t,"f",(function(){return l})),o.d(t,"e",(function(){return c})),o.d(t,"d",(function(){return s}));o(65);const i=(e,t)=>"string"==typeof e?e:t,r=e=>e&&e[0].toUpperCase()+e.slice(1),n=(e,t)=>""===e?t:e+r(t),a=e=>e.reduce(n,""),l=(e,...t)=>{let o=0;return e.replace(/%s/g,()=>t[o++])},c=e=>encodeURIComponent(JSON.stringify(e)),s=e=>JSON.parse(decodeURIComponent(e))},function(e,t,o){"use strict";o.d(t,"d",(function(){return r})),o.d(t,"e",(function(){return a})),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 g})),o.d(t,"h",(function(){return v})),o.d(t,"i",(function(){return y})),o.d(t,"j",(function(){return f}));var i=o(11);function r(e,t){if(t){e=Object(i.b)(t).hex}return{hex:e}}var n=o(40);function a(e,t,o){if(o){const t=Object(n.e)(o);if(t)return t[e]}return t}var l=o(294),c=o(10);const s=e=>(e=>"optgroup"in e)(e)?{title:e.label,optgroup:e.optgroup.map(s)}:{title:e.label,value:e.alias||e.placeholder},d=e=>c.default.flatten(c.default.values(e),!0).map(s),p=(e,t)=>{if(!e)return[];const o=d(e[t]),i=[];if((e=>"reference"in e&&"multiReference"in e)(e)){const{reference:o,multiReference:r}=e;[...null!=o?o:[],...null!=r?r:[]].forEach(({title:e,dynamicContent:o})=>{const r=d(o[t]);r.length&&i.push({optgroup:r,title:e})})}return[...o,...i]};var u=o(59);const b=(e,t)=>{const o=Object(u.a)(e,e=>e.placeholder===t||e.alias===t);if(null!=o&&o.obj)return o.obj},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"}];var h=o(13);const g=(e=h.a.getAll().taxonomies)=>e?e.map(e=>{const{id:t="",label:o="",name:i="",terms:r=[]}=e;return t||o||i?r&&r.length?{title:o,optgroup:r.map(e=>({title:e.name,value:`${i}|${e.id}`}))}:{title:o,value:`${i}|${t}`}:{title:"-",value:""}}):[{title:"-",value:""}],v=(e="")=>{const t=h.a.getAll().taxonomies.filter(t=>{const{name:o}=t;return"products"===e?o.indexOf("product")>-1:"posts"===e?o.indexOf("product")<0:t});return g(t)},y=()=>{const e=h.a.getAll().postTypesTaxs;return e?e.map(e=>({value:e.name,title:e.label})):[{title:"-",value:""}]},f=e=>{const t=h.a.getAll().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,"a",(function(){return U})),o.d(t,"b",(function(){return O})),o.d(t,"d",(function(){return K})),o.d(t,"e",(function(){return q}));var i=o(12),r=o(2),n=o(19),a=o(1),l=o.n(a),c=o(43),s=o.n(c),d=o(32),p=o(85),u=o(60),b=o(217);const m=({getItems:e,getTitle:t})=>e?(Object(a.useEffect)(()=>{b.b&&b.b.setItems(e,t)}),Object(a.useEffect)(()=>()=>{b.b&&b.b.clearItems()},[]),null):null;var h=o(55);let g=null,v=null;const y={getActive:()=>v,setActive(e){this.unsetActive(),v=e},unsetIfActive(e){e===v&&this.unsetActive()},unsetActive(e){null!==v&&(g=v,v=null,g.handleMonitorDeactivationRequest(e))},activateLastActive(){g&&g.handleMonitorActivationRequest()}};var f=o(10);const S=l.a.createContext(void 0),O=({children:e,position:t,onEscape:o})=>{const i=Object(a.useContext)(S),r=Object(a.useMemo)(()=>f.default.defaults({position:t,onEscape:o},i),[t,o,i]);return l.a.createElement(S.Provider,{value:r},e)};var x=o(234);const C=({data:e,toolbar:t})=>l.a.createElement("div",{className:"brz-ed-toolbar__item"},l.a.createElement(x.a,{className:"brz-ed-toolbar__option",data:e,toolbar:t,location:"toolbar"}));function w(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function B(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(r.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}class j extends l.a.Component{constructor(...e){super(...e),Object(r.a)(this,"state",{itemsRenderer:void 0}),Object(r.a)(this,"containerRef",l.a.createRef()),Object(r.a)(this,"arrowRef",l.a.createRef()),Object(r.a)(this,"setItemsRenderer",e=>{this.setState({itemsRenderer:e},this.props.onContentChange)}),Object(r.a)(this,"resetItemsRenderer",()=>{this.setState({itemsRenderer:void 0},this.props.onContentChange)}),Object(r.a)(this,"renderItems",e=>{const{position:t,containerRef:o}=this.props,i=e.map((i,r)=>l.a.createElement(C,{key:i.id,data:i,toolbar:B(B({},this),{},{toolbarRef:null!=o?o:this.containerRef,toolbarCSSPosition:t,toolbarItemIndex:r+1,toolbarItemsLength:e.length})}));return l.a.createElement("div",{className:"brz-ed-toolbar__items brz-d-xs-flex brz-align-items-center"},i)})}render(){const{containerRef:e,arrowRef:t,arrow:o,items:i,onClick:r,onMouseEnter:n,onMouseLeave:a}=this.props,{itemsRenderer:c}=this.state;return i.length?l.a.createElement("div",{ref:null!=e?e:this.containerRef,className:"brz-ed-toolbar",onClick:r,onMouseEnter:n,onMouseLeave:a},void 0!==c?c(i):this.renderItems(i),o&&l.a.createElement("div",{ref:null!=t?t:this.arrowRef,className:"brz-ed-arrow brz-ed-arrow--top-center brz-ed-toolbar__arrow"})):null}}Object(r.a)(j,"defaultProps",{arrow:!0,items:[]});var T=o(42),P=o(209);class E extends l.a.Component{constructor(...e){super(...e),Object(r.a)(this,"toolbarItemsContainerRef",l.a.createRef()),Object(r.a)(this,"toolbarItemsArrowRef",l.a.createRef()),Object(r.a)(this,"reposition",()=>{const{node:e,offsetTop:t,offsetBottom:o,offsetLeft:i,position:r}=this.props,n=this.toolbarItemsContainerRef.current,a=this.toolbarItemsArrowRef.current,l=e.ownerDocument.defaultView,c=document.documentElement.clientWidth;if(!n)return;const s=n.getBoundingClientRect(),d=e.getBoundingClientRect();let p,u;const b="fixed"===r?0:l.scrollY;b+d.top-(s.height+300)>=l.scrollY?(p=!1,u=b+d.top-s.height-Number(t),Object(P.b)("above")):(p=!0,u=b+d.top+d.height+Number(o),Object(P.b)("below"));const m=d.left+d.width/2-s.width/2+Number(i),h=e.ownerDocument.defaultView===l.parent?58:0,g=c-s.width,v=Object(T.b)(m,h,g),y=m-v;n.style.top=u+"px",n.style.left=v+"px","fixed"===r&&(n.style.position="fixed"),n.classList.add("brz-ed-animated","brz-ed-animated--fadeInDown"),p?n.classList.add("brz-ed-toolbar--bottom"):n.classList.remove("brz-ed-toolbar--bottom"),a&&(s.width/2-Math.abs(y)<23?a.classList.add("brz-hidden"):a.classList.remove("brz-hidden"),p?(a.classList.remove("brz-ed-arrow--top-center"),a.classList.add("brz-ed-arrow--bottom-center")):(a.classList.remove("brz-ed-arrow--bottom-center"),a.classList.add("brz-ed-arrow--top-center")),a.style.left=`calc(50% + ${y}px)`)})}componentDidMount(){this.reposition()}componentDidUpdate(){this.props.repositionOnUpdates&&this.reposition()}render(){return l.a.createElement(j,Object(i.a)({},this.props,{containerRef:this.toolbarItemsContainerRef,arrowRef:this.toolbarItemsArrowRef,arrow:!0,onContentChange:this.reposition}))}}Object(r.a)(E,"defaultProps",{offsetTop:14,offsetBottom:14,offsetLeft:0});var _=o(67),k=o(236),z=o(97);function F(e,t,o){let i=o.target;for(;i&&i!==e;){if(i.matches(t))return i;i=i.parentElement}return i}function R(e,t,o){if(e.matches(t)&&Object(_.g)(o.clientX,o.clientY,e.getBoundingClientRect()))return e;const i=e.querySelectorAll(t);for(let e=0;e<i.length;e++){const t=i[e];if(t&&Object(_.g)(o.clientX,o.clientY,t.getBoundingClientRect()))return t}return null}const H=(e,t)=>Object(k.a)(Object(z.b)(e,t));function L(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function M(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(r.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}const I=new Map;class W extends l.a.Component{constructor(...e){super(...e),Object(r.a)(this,"context",void 0),Object(r.a)(this,"state",{opened:!1}),Object(r.a)(this,"node",null),Object(r.a)(this,"selectorNode",null),Object(r.a)(this,"makeComponentUnControlled",()=>{null!==this.node&&this.node.removeEventListener("click",this.handleNodeClick)}),Object(r.a)(this,"makeComponentControlled",()=>{null!==this.node&&this.node.addEventListener("click",this.handleNodeClick,!1)}),Object(r.a)(this,"handleNodeClick",e=>{if(null!==this.node&&!e.brzToolbarHandled)if(void 0===this.props.selector){if(y.getActive()===this)return;e.brzToolbarHandled=!0,this.show()}else{const t=("dom-tree"===this.props.selectorSearchStrategy?F:R)(this.node,this.props.selector,e);t?(e.brzToolbarHandled=!0,!1===this.state.opened?(this.selectorNode=t,this.show()):t!==this.selectorNode&&this.hide({onComplete:()=>{this.selectorNode=t,this.show()}})):this.hide()}}),Object(r.a)(this,"handleClick",e=>{e.stopPropagation();const{onClick:t}=this.props;t&&t(e)}),Object(r.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(r.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(r.a)(this,"handleEscape",()=>{const e=this.props,t=M(M({},this.context),e);t.onEscape?t.onEscape():this.hide()}),Object(r.a)(this,"handleClickOutside",()=>{y.unsetActive()}),Object(r.a)(this,"clickOutsideException",e=>{try{const t=s.a.findDOMNode(this);return null!==t&&t.contains(e)}catch(e){return!1}}),Object(r.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]),Object(r.a)(this,"getItems",()=>{const e=this.props.device,t=Object(h.b)();return this.props.getItems().map(H(e,t)).filter(n.isT)}),Object(r.a)(this,"getSidebarItems",()=>{const e=this.props.device,t=Object(h.b)();return this.props.getSidebarItems?this.props.getSidebarItems().map(H(e,t)).filter(n.isT):[]})}componentDidMount(){if(this.node=s.a.findDOMNode(this),null!==this.node&&null!==this.node.ownerDocument){if(!I.get(this.node.ownerDocument)){const e=this.node.ownerDocument.createElement("div");e.id="brz-toolbar-portal",this.node.ownerDocument.body.appendChild(e),I.set(this.node.ownerDocument,e)}this.props.manualControl||this.makeComponentControlled()}}componentDidUpdate({manualControl:e=!1}){e!==this.props.manualControl&&(!0===e?this.makeComponentControlled():this.makeComponentUnControlled())}componentWillUnmount(){y.unsetIfActive(this),this.node=null,this.selectorNode=null}handleMonitorActivationRequest(){this.show()}handleMonitorDeactivationRequest(e){this.hide({eventDetail:e})}show(){if(!this.state.opened){const{onBeforeOpen:e,onOpen:t}=this.props;y.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},()=>{var t;if(o&&o(),null!==this.node){const t=new CustomEvent("brz.toolbar.close",{bubbles:!0,detail:null==e?void 0:e.eventDetail});this.node.dispatchEvent(t)}null==e||null===(t=e.onComplete)||void 0===t||t.call(e)})}}renderToolbar(){var e;if(null===this.node)return;if(null===this.node.ownerDocument)return;const t=this.getItems();if(!t||0===t.length)return;const o=this.props,r=this.context,n=this.node.ownerDocument,a=I.get(n);return a&&s.a.createPortal(l.a.createElement(l.a.Fragment,null,l.a.createElement(p.a,{exceptions:this.getOutSideExceptions(),onClickOutside:this.handleClickOutside},l.a.createElement(E,Object(i.a)({},r,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&&l.a.createElement(m,{getItems:this.getSidebarItems,getTitle:o.getSidebarTitle}),l.a.createElement(u.a,{id:"key-helper-toolbar-escape",keyNames:["esc"],onKeyUp:this.handleEscape})),a)}render(){const{children:e}=this.props,{opened:t}=this.state;return l.a.createElement(l.a.Fragment,null,"function"==typeof e?e({open:this.handleNodeClick}):e,t&&this.renderToolbar())}}Object(r.a)(W,"contextType",S),Object(r.a)(W,"defaultProps",{manualControl:!1});var A=Object(d.b)(e=>({device:e.ui.deviceMode}),null,null,{forwardRef:!0})(W),N=o(5),V=o.n(N),D=o(137),$=o(16);class G extends l.a.Component{constructor(...e){super(...e),Object(r.a)(this,"state",{opened:!1}),Object(r.a)(this,"onClickOutside",()=>{this.close()}),Object(r.a)(this,"handleClick",()=>{!this.state.opened?this.open():this.close()}),Object(r.a)(this,"handleEscape",()=>{this.close()}),Object(r.a)(this,"getItems",()=>{const e=this.props.device,t=Object(h.b)();return this.props.getItems().map(H(e,t)).filter(n.isT)}),Object(r.a)(this,"getSidebarItems",()=>{const e=this.props.device,t=Object(h.b)();return this.props.getSidebarItems?this.props.getSidebarItems().map(H(e,t)).filter(n.isT):[]})}componentWillUnmount(){y.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(P.b)("below");const{onBeforeOpen:e,onOpen:t}=this.props;y.setActive(this),e&&e(),this.setState({opened:!0},()=>{t&&t()})}close(){if(!this.state.opened)return;const{onBeforeClose:e,onClose:t}=this.props;y.unsetIfActive(this),e&&e(),this.setState({opened:!1},()=>{t&&t()})}renderBadge(){const{membership:e,language:t,global:o}=this.props;return e||o||t?l.a.createElement(D.CSSTransition,{key:"badge",timeout:0},l.a.createElement("div",{className:"brz-ed-collapsible__badge"},o&&l.a.createElement($.b,{icon:"nc-global"}),e&&l.a.createElement($.b,{icon:"nc-user"}),t&&l.a.createElement($.b,{icon:"nc-multi-languages"}))):null}renderIcon(){return l.a.createElement(D.CSSTransition,{key:"icon",classNames:"fadeCollapsibleIcon",timeout:200},l.a.createElement("div",{className:"brz-ed-collapsible__icon",onClick:this.handleClick},l.a.createElement($.b,{icon:"nc-settings"})))}renderToolbar(){const{animation:e}=this.props,t="leftToRight"===e?"animation-left-right":"animation-right-left",o=this.getItems();return l.a.createElement(D.CSSTransition,{key:"toolbar",classNames:t,timeout:200},l.a.createElement("div",{className:"brz-ed-collapsible__toolbar"},l.a.createElement(j,{items:o,arrow:!1})))}render(){const{className:e,getSidebarItems:t,getSidebarTitle:o}=this.props,{opened:i}=this.state,r=V()("brz-ed-collapsible",{"brz-ed-collapsible--opened":i},e);return l.a.createElement(l.a.Fragment,null,l.a.createElement(p.a,{onClickOutside:this.onClickOutside,exceptions:this.getClickOutSideExceptions()},l.a.createElement(D.TransitionGroup,{className:r},this.renderBadge(),i?this.renderToolbar():this.renderIcon())),i&&t&&l.a.createElement(m,{getItems:this.getSidebarItems,getTitle:o}),i&&l.a.createElement(u.a,{keyNames:["esc"],id:"key-helper-toolbar-escape",onKeyUp:this.handleEscape}))}}Object(r.a)(G,"defaultProps",{animation:"leftToRight",global:!1,membership:!1,language:!1});var U=Object(d.b)(e=>({device:e.ui.deviceMode}),null,null,{forwardRef:!0})(G);t.c=A;const K=e=>y.unsetActive(e),q=()=>y.activateLastActive()},,,function(e,t,o){"use strict";o.d(t,"f",(function(){return g})),o.d(t,"e",(function(){return v})),o.d(t,"d",(function(){return y})),o.d(t,"a",(function(){return f})),o.d(t,"b",(function(){return m})),o.d(t,"c",(function(){return b})),o.d(t,"h",(function(){return h})),o.d(t,"g",(function(){return d})),o.d(t,"i",(function(){return s}));o(65);var i=o(13),r=o(86),n=o(10),a=o(126),l=o(62);const c=Object(n.once)(()=>Object(l.a)(4)),s=(e,t)=>{if(Object(a.f)(t)){return`--brz-global-${e}-${c()}`}return"--brz-global-"+e},d=e=>{const t=i.a.getAll();return`:root{${e.map(({id:e,hex:o})=>`${s(e,t)}:${y(o)};`).join("")}}`};var p=o(27),u=o(17);function b(){return Object(u.i)(Object(p.b)().getState()).colorPalette}function m(e){return b().find(t=>t.id===e)}const h=(e,t)=>e.map(({id:e,hex:o})=>{let i=".brz-cp-"+e.toLowerCase(),r=".brz-bcp-"+e.toLowerCase();return"function"==typeof t&&(i=t(i),r=t(r)),`.brz ${i}, .brz ${r}{color: ${o};}`}).join("");const g=e=>Object(r.c)(null!=e?e:"");function v(e,t){if(g(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 y(e){if(g(e)){e=e.replace("#","");return`${parseInt(e.substring(0,2),16)}, ${parseInt(e.substring(2,4),16)}, ${parseInt(e.substring(4,6),16)}`}}function f(e,t,o){if(e){const t=i.a.getAll();return`rgba(var(${s(e,t)}),${o})`}return v(t,o)}},,function(e,t,o){"use strict";o.d(t,"b",(function(){return r.a}));var i=o(120),r=(o(31),o(80));let n={};t.a={init(e){n=e},load(e){n=Object(i.a)(n,e)},get:e=>n[e],getAll:()=>n}},function(e,t,o){"use strict";o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return a}));var i=o(116);o.d(t,"d",(function(){return i.a}));var r=o(78);function n(e){return t=>e(t)?t:void 0}o.d(t,"b",(function(){return r.a}));const a=e=>()=>e},function(e,t,o){"use strict";(function(e){var i=o(37),r=o(2),n=o(5),a=o.n(n),l=o(1),c=o.n(l),s=o(10),d=o(181),p=o(142),u=o(581),b=o(17),m=o(27),h=o(138),g=o(28),v=o(582),y=o(74),f=o(50),S=o(30),O=o(4),x=o(583),C=o(62),w=o(584),B=o(99),j=o(240),T=o(97);function P(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function E(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(r.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}class _ extends c.a.Component{constructor(...e){super(...e),Object(r.a)(this,"_defaultValueProcessedCache",void 0),Object(r.a)(this,"_dc",{}),Object(r.a)(this,"childToolbarExtend",void 0),Object(r.a)(this,"bindPatchValue",e=>this.patchValue(e)),Object(r.a)(this,"makeWrapperProps",e=>{var t;const o=null!==(t=this.props.wrapperExtend)&&void 0!==t?t:{},i=a()(o.className,e.className),r=E(E({},o.attributes||{}),e.attributes||{});return E(E(E(E({},o),e),{},{className:i,attributes:r,id:this.getId(),componentId:this.getComponentId(),meta:this.props.meta},this.getValue2()),{},{onChange:this.bindPatchValue,ref:t=>{Object(y.a)(t,o.ref||null),Object(y.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;return t.dbValue!==e.dbValue||(t.reduxState.fonts!==e.reduxState.fonts||t.reduxState.project.data.font!==e.reduxState.project.data.font)}getId(){return this.props._id||f.b(this.getDBValue()._id)||(()=>{throw new Error("This should never happen. An initialized component must have a preset id")})()}getReduxState(){return this.props.reduxState}getReduxDispatch(){return this.props.reduxDispatch}getDefaultValue(){const e=this.getDefaultValueProcessed().defaultValueFlat;return this.props.defaultValue?E(E({},e),this.props.defaultValue):e}getDefaultValueProcessed(){if(this._defaultValueProcessedCache)return this._defaultValueProcessedCache;const e=this.constructor.defaultValue,t=Object(T.c)(e),o=Object.keys(t).reduce((e,t)=>(Object(B.c)(t)&&e.push(Object(B.a)(t)),e),[]);return this._defaultValueProcessedCache={defaultValueFlat:t,dynamicContentKeys:o},this._defaultValueProcessedCache}getDBValue(){return this.props.dbValue}getStylesValue(){const{_styles:e}=this.getDBValue()||{},t=Object(b.J)(this.getReduxState());return e&&t?e.reduce((e,o)=>t[o]?Object.assign(e,t[o]):e,{}):null}getDCValue(e){var t;const o=this.getDefaultValueProcessed().dynamicContentKeys,i=[];for(const t of o){const o=Object(B.e)(e,t);o.hasDC&&i.push(o)}const r=this.getDCValueHook(i,e);if(null===(t=this._dc.pendingDCObjIncomplete)||void 0===t||t.abortGetComplete(),this._dc.pendingDCObjIncomplete=void 0,0===r.length)return this._dc.keys=void 0,this._dc.lastCache=void 0,{};{const e=Object(w.a)(r,this.context);if("complete"===e.type)return this._dc.keys=e.details,this._dc.lastCache=e.value,e.value;{this._dc.pendingDCObjIncomplete=e,this._dc.keys=e.details,e.getComplete().then(()=>{this.forceUpdate()}).catch(()=>{});const t={};let o=!1;if(this._dc.lastCache)for(const e of r)e.key in this._dc.lastCache&&(t[e.key]=this._dc.lastCache[e.key],o=!0);return o?E(E({},e.partialValue),t):e.partialValue}}}getDCValueHook(e,t){return e}getValue(){return this.getValue2().v}getValue2(){const e=this.getDefaultValue(),t=this.getStylesValue(),o=this.getDBValue(),i=E(E(E({},e),t),o);return{v:this.constructor.experimentalDynamicContent?Object.assign(i,this.getDCValue(i)):i,vs:E(E({},e),t),vd:e}}patchValue(e,t={}){const o=E(E({},this.getDBValue()),e);this.handleValueChange(o,E(E({},t),{},{patch:e}))}validatePatch(e,t,o,i){const r=this.getDefaultValue(),n=Object.keys(e).filter(e=>{if(e in r)return!1;if("_"===e[0]||"tabsState"===e)return!1;if("tabsCurrentElement"===e)return!1;if(e.startsWith(Object(g.a)({key:Object(T.a)("temp",t.id),state:o,device:i})))return!1;if(O.d!==o||S.d!==i){if(e.startsWith(Object(g.a)({key:t.id,state:o,device:i})))return!1;if(e.startsWith(Object(g.a)({key:Object(T.a)("temp",t.id),state:o,device:i})))return!1}return!e.startsWith("symbol_")});if(n.length){const t=JSON.stringify(n,null,2),o=JSON.stringify(e,(e,t)=>Array.isArray(t)?"[...]":t,2);console.error(`${this.getComponentId()} element\n\nKeys not in defaultValue:\n${t}\nTried to update with:\n${o}`)}}handleValueChange(e,t){this.props.onChange(e,t)}selfDestruct(){this.props.onChange(null,{intent:"remove_all"})}makeSubcomponentProps(e){let{bindWithKey:t}=e,o=Object(i.a)(e,["bindWithKey"]);const r=this.getDefaultValue(),n=this.getDBValue();return E(E({},o),{},{_id:`${this.getId()}-${t}`,defaultValue:r&&r[t],dbValue:n&&n[t],reduxState:this.getReduxState(),reduxDispatch:this.getReduxDispatch(),onChange:(e,o)=>this.patchValue({[t]:e},o)})}makeContextMenuProps(e,t={}){const o=this.getComponentId(),i=this.getValue();return E({id:Object(C.a)(3),componentId:o,getItems:e.getItems.bind(null,i,this)},t)}makeToolbarPropsFromConfig(t,o,i={}){const{onToolbarOpen:r,onToolbarClose:n,onToolbarEnter:a,onToolbarLeave:l}=this.props,{allowExtendFromParent:c,parentItemsFilter:s,allowExtendFromChild:d,allowExtendFromThirdParty:u,thirdPartyExtendId:g=this.getComponentId(),allowSidebarExtendFromParent:v,allowSidebarExtendFromChild:y,allowSidebarExtendFromThirdParty:f,sidebarThirdPartyExtendId:S=g}=Object(T.f)(i);return{getItems:(e=Object(b.k)(Object(m.b)().getState()))=>{var o;const i="getItemsFor"+(([e,...t],o=!1)=>e.toUpperCase()+(o?t.join("").toLowerCase():t.join("")))(e,!0);const r=t[i],n=this.getValue(),a=O.f(n.tabsState);let l=this.bindToolbarItems(n,e,a,null!==(o=null==r?void 0:r(n,this))&&void 0!==o?o:[]);if(c&&this.props.toolbarExtend){const{getItems:t}=this.props.toolbarExtend;let o=t(e);"function"==typeof s&&(o=s(o)),l=Object(p.b)(l,o)}if(d&&this.childToolbarExtend){const{getItems:t}=this.childToolbarExtend,o=t(e);l=Object(p.b)(o,l)}if(u){const t=Object(h.b)("toolbarItemsExtend_"+g,null);if(null!=t&&t[i]){const o=this.bindToolbarItems(n,e,a,t[i](n,this));l=Object(p.b)(l,o)}}return l},getSidebarItems:(e=Object(b.k)(Object(m.b)().getState()))=>{var t,i;const r=this.getValue(),n=O.f(r.tabsState);let a=this.bindToolbarItems(r,e,n,(null==o||null===(t=o.getItems)||void 0===t?void 0:t.call(o,{v:r,component:this,device:e,state:n,context:this.context}))||[]);if(v&&null!==(i=this.props.toolbarExtend)&&void 0!==i&&i.getSidebarItems){const{getSidebarItems:t}=this.props.toolbarExtend,o=t(e);a=Object(p.b)(a,o)}if(y&&this.childToolbarExtend){const{getSidebarItems:t}=this.childToolbarExtend,o=t(e);a=Object(p.b)(o,a)}if(f){const t=Object(h.b)("sidebarItemsExtend_"+S,null);if(null!=t&&t.getItems){const o=this.bindToolbarItems(r,e,n,t.getItems({v:r,component:this,device:e,state:n}));a=Object(p.b)(a,o)}}return a},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:r,onClose:n,onMouseEnter:a,onMouseLeave:l}}bindToolbarItems(e,t,o,i){const r=(e,i,r)=>"tabsState"!==e&&r?Object(g.a)({key:Object(T.a)(e,i),device:t,state:o}):e;return Object(p.c)(i=>{const{id:n,type:a,onChange:l}=i;S.d===t&&(i=Object(x.a)(u.a,i));const c=Object(T.e)(a),p=i.dependencies||s.default.identity;c&&(i.value=Object(d.b)(a)(i=>Object(g.b)({v:e,key:Object(T.a)(n,i),device:t,state:o})));const b=Object(d.c)(a,e=>r(n,e,c));return i.onChange=(e,t)=>{const o=r(i.id,"",c),n=c?p(b(e)):l?l(e,t):((e,t)=>void 0!==t?{[e]:t}:null)(o,e);n&&this.patchValue(n)},i},Object(p.c)(v.a,i))}makeToolbarPropsFromConfig2(t,o,i={}){const{onToolbarOpen:r,onToolbarClose:n,onToolbarEnter:a,onToolbarLeave:l}=this.props,{allowExtendFromParent:c,parentItemsFilter:s,parentExtendProp:d="toolbarExtend",allowExtendFromChild:u,allowExtendFromThirdParty:g,thirdPartyExtendId:v=this.getComponentId(),allowSidebarExtendFromParent:y,allowSidebarExtendFromChild:f,allowSidebarExtendFromThirdParty:S,sidebarThirdPartyExtendId:x=v}=Object(T.f)(i);return{getItems:(e=Object(b.k)(Object(m.b)().getState()))=>{var o;const i=this.getValue(),r=O.f(i.tabsState);let n=this.bindToolbarItems(i,e,r,null!==(o=null==t?void 0:t.getItems({v:i,component:this,device:e,state:r,context:this.context}))&&void 0!==o?o:[]);if(c&&this.props[d]){const{getItems:t}=this.props[d];let o=t(e);"function"==typeof s&&(o=s(o)),n=Object(p.b)(n,o)}if(u&&this.childToolbarExtend){const{getItems:t}=this.childToolbarExtend,o=t(e);n=Object(p.b)(o,n)}if(g){const t=Object(h.b)("toolbarItemsExtend_"+v,null);if(null!=t&&t.getItems){const o=this.bindToolbarItems(i,e,r,t.getItems({v:i,component:this,device:e,state:r,context:this.context}));n=Object(p.b)(n,o)}}return n},getSidebarItems:(e=Object(b.k)(Object(m.b)().getState()))=>{var t,i;const r=this.getValue(),n=O.f(r.tabsState);let a=this.bindToolbarItems(r,e,n,(null==o||null===(t=o.getItems)||void 0===t?void 0:t.call(o,{v:r,component:this,device:e,state:n,context:this.context}))||[]);if(y&&null!==(i=this.props[d])&&void 0!==i&&i.getSidebarItems){const{getSidebarItems:t}=this.props[d],o=t(e);a=Object(p.b)(a,o)}if(f&&this.childToolbarExtend){const{getSidebarItems:t}=this.childToolbarExtend,o=t(e);a=Object(p.b)(o,a)}if(S){const t=Object(h.b)("sidebarItemsExtend_"+x,null);if(null!=t&&t.getItems){const o=this.bindToolbarItems(r,e,n,t.getItems({v:r,component:this,device:e,state:n,context:this.context}));a=Object(p.b)(a,o)}}return a},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(f&&this.childToolbarExtend){const{getSidebarTitle:t}=this.childToolbarExtend;e=t()||e}return e||""},onBeforeOpen:()=>{e.Brizy.activeEditorComponent=this},onBeforeClose:()=>{e.Brizy.activeEditorComponent=null},onOpen:r,onClose:n,onMouseEnter:a,onMouseLeave:l}}render(){const{v:e,vs:t,vd:o}=this.getValue2();return this.renderForEdit(e,t,o)}renderForEdit(e,t,o){throw new Error("renderForEdit: Not Implemented"+e+t+o)}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 i=this.getRulesValue(o);return s.default.defaults(i,e)}getRulesValue(e){const t=Object(b.J)(this.getReduxState());if(t)return e.reduce((e,o)=>{let i;switch(typeof o){case"object":{const{rule:e,mapper:r}=o;i=t[e]&&r(t[e]);break}case"string":i=t[o];break;default:throw new Error("Invalid rule type")}return i?Object.assign(e,i):e},{})}}Object(r.a)(_,"defaultProps",{meta:{},onToolbarOpen:s.default.noop,onToolbarClose:s.default.noop,onToolbarEnter:s.default.noop,onToolbarLeave:s.default.noop}),Object(r.a)(_,"defaultValue",{}),Object(r.a)(_,"experimentalDynamicContent",!1),Object(r.a)(_,"contextType",j.a),t.a=_}).call(this,o(113))},function(e,t,o){"use strict";o.d(t,"a",(function(){return d}));var i=o(1),r=o.n(i),n=o(10),a=o(5),l=o.n(a),c=o(182);const s=(e,t)=>{const{className:o="",icon:i="nc-circle-add",style:a={},onClick:s=n.default.noop}=e,d=l()("brz-icon-svg brz-ed-icon-svg",o);return r.a.createElement("svg",{ref:t,className:d,onClick:s,style:a},r.a.createElement("use",{xlinkHref:Object(c.a)(i)}))},d=r.a.forwardRef(s);t.b=d},function(e,t,o){"use strict";o.d(t,"H",(function(){return p.j})),o.d(t,"F",(function(){return p.i})),o.d(t,"a",(function(){return p.a})),o.d(t,"O",(function(){return p.l})),o.d(t,"o",(function(){return p.f})),o.d(t,"n",(function(){return p.e})),o.d(t,"R",(function(){return p.m})),o.d(t,"M",(function(){return p.k})),o.d(t,"S",(function(){return p.n})),o.d(t,"j",(function(){return p.d})),o.d(t,"p",(function(){return p.g})),o.d(t,"h",(function(){return p.c})),o.d(t,"g",(function(){return p.b})),o.d(t,"v",(function(){return p.h})),o.d(t,"K",(function(){return m})),o.d(t,"u",(function(){return h})),o.d(t,"e",(function(){return g})),o.d(t,"b",(function(){return v})),o.d(t,"d",(function(){return y})),o.d(t,"N",(function(){return f})),o.d(t,"i",(function(){return S})),o.d(t,"m",(function(){return O})),o.d(t,"l",(function(){return x})),o.d(t,"Q",(function(){return w})),o.d(t,"P",(function(){return B})),o.d(t,"I",(function(){return j})),o.d(t,"k",(function(){return T})),o.d(t,"L",(function(){return P})),o.d(t,"c",(function(){return E})),o.d(t,"t",(function(){return k})),o.d(t,"r",(function(){return z})),o.d(t,"q",(function(){return F})),o.d(t,"s",(function(){return R})),o.d(t,"J",(function(){return H})),o.d(t,"f",(function(){return L})),o.d(t,"C",(function(){return M})),o.d(t,"B",(function(){return I})),o.d(t,"G",(function(){return W})),o.d(t,"D",(function(){return A})),o.d(t,"E",(function(){return N})),o.d(t,"A",(function(){return V})),o.d(t,"w",(function(){return D})),o.d(t,"x",(function(){return $})),o.d(t,"z",(function(){return G})),o.d(t,"y",(function(){return U}));var i=o(2),r=o(79),n=o(38),a={"wrapper--iconText":{showToolbar:"on"},"wrapper--form2":{showToolbar:"on"},"wrapper--login":{showToolbar:"on"},"wrapper--reset--psw":{showToolbar:"on"},"wrapper--tabs":{showToolbar:"on"},"wrapper--timeline":{showToolbar:"on"},"wrapper--table":{showToolbar:"on"},"wrapper--protected-page":{showToolbar:"on"},"wrapper--accordion":{showToolbar:"on"},"wrapper--imageGallery":{showToolbar:"on"},"wrapper--menu":{showToolbar:"on"},"wrapper--video-playlist":{showToolbar:"on"},"wrapper--switcher":{showToolbar:"on"},"wrapper--filters":{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},"wrapper-ecwid-my-account":{showToolbar:"on"},"wrapper-ecwid-cart":{showToolbar:"on"},"wrapper-ecwid-product":{showToolbar:"on"},"wrapper-ecwid-products":{showToolbar:"on"},"column--carousel":{width:100},"richText--carousel":{text:"<p class='brz-tp-paragraph brz-text-lg-center'><span class='brz-cp-color7'>The point of using dummy text for your paragraph is that it has a more-or-less normal distribution of letters. making it look like readable English.</span></p>"},"hide-row-borders":{showToolbar:"off"},"padding-0":{padding:0},submit:{type:"submit"},search:{type:"search"},"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>&nbsp;</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:"%"},"story-form-button":{offsetX:0},"wrapper--story-form2":{showToolbar:"on"},"story-form2":{width:80,widthSuffix:"%",elementPosition:"fixed",offsetX:10,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:20,offsetYSuffix:"%",offsetYAlignment:"top"},"story-lottie":{width:60,widthSuffix:"%",elementPosition:"fixed",offsetX:20,offsetXSuffix:"%",offsetXAlignment:"left",offsetY:34,offsetYSuffix:"%",offsetYAlignment:"top"},"posts--column":{width:100},"postTitle-posts":{fontStyle:"custom",fontSize:20,tabletFontStyle:"custom",tabletFontSize:16,mobileFontStyle:"custom",mobileFontSize:16,contentHorizontalAlign:"center"},"postExcerpt-posts":{contentHorizontalAlign:"center"},"posts-archive":{pagination:"on"},"posts-productArchive":{pagination:"on"}},l=o(59),c=o(18),s=o(54),d=o(82),p=o(76);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function b(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(i.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}const m=e=>e.screenshots||{},h=e=>e.globalBlocks||{},g=e=>e.changedGBIds||{},v=e=>e.blocksData||{},y=e=>e.blocksOrder||[],f=e=>e.styles||[],S=e=>e.currentStyle,O=e=>e.error,x=Object(r.createSelector)(p.j,e=>e.data.disabledElements||[]),C=Object(r.createSelector)(p.i,e=>e.data||{}),w=(Object(r.createSelector)(p.i,e=>e.slug),Object(r.createSelector)(C,e=>e.triggers||[])),B=Object(r.createSelector)(C,e=>e.triggers?e.triggers.length:null),j=Object(r.createSelector)(C,e=>Number.isInteger(e.rulesAmount)?e.rulesAmount:null),T=Object(r.createSelector)(p.m,e=>e.deviceMode),P=Object(r.createSelector)(p.m,e=>e.showHiddenElements),E=Object(r.createSelector)(y,h,(e,t)=>{const{top:o,bottom:i}=Object(d.n)(e,t);return e.filter(e=>!o.includes(e)&&!i.includes(e))}),_=Object(r.createSelector)(h,v,(e,t)=>Object.entries(e).reduce((e,[o,i])=>{if(!t[o])return e;return"SectionPopup"===t[o].type||"SectionPopup2"===t[o].type||(e[o]=i),e},{})),k=Object(r.createSelector)(p.i,h,y,_,(e,t,o,i)=>{const r=o.filter(o=>!t[o]||Object(s.c)(t[o],e));return Object(d.m)(r,i)}),z=Object(r.createSelector)(h,v,m,(e,t,o)=>Object(l.d)(Object.entries(e).map(e=>{const[i,r]=e,a=t[i],c=o[i];return[i,Object(n.a)(r,e=>{e.data=b(b({},e.data),a),c&&(Object.assign(e.data.value,c),Object.assign(e.meta,c)),Object(l.f)(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]))})})]}))),F=Object(r.createSelector)(h,v,(e,t)=>Object(l.d)(Object.entries(e).map(e=>{const[o,i]=e,r=t[o];if(!r)return e;return[o,Object(n.a)(i,e=>{e.data=r})]}))),R=Object(r.createSelector)(p.i,y,h,(e,t,o)=>t.reduce((t,i)=>(o[i]&&Object(s.c)(o[i],e)&&(t[i]=o[i]),t),{})),H=Object(r.createSelector)(S,p.e,(e,t)=>{const{colorPalette:o,fontStyles:i}=e,r=i.concat(t),n=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=r.reduce((e,t)=>{var o,i,r,n,a,l,c,s,d;return b(b({},e),{},{[t.id+"__fsDesktop"]:{fontFamily:t.fontFamily,fontFamilyType:t.fontFamilyType,fontSize:t.fontSize,fontSizeSuffix:null!==(o=t.fontSizeSuffix)&&void 0!==o?o:"px",fontWeight:t.fontWeight,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing},[t.id+"__fsTablet"]:{tabletFontSize:t.tabletFontSize,tabletFontSizeSuffix:null!==(i=t.tabletFontSizeSuffix)&&void 0!==i?i:"px",tabletFontWeight:t.tabletFontWeight,tabletLineHeight:t.tabletLineHeight,tabletLetterSpacing:t.tabletLetterSpacing},[t.id+"__fsMobile"]:{mobileFontSize:t.mobileFontSize,mobileFontSizeSuffix:null!==(r=t.mobileFontSizeSuffix)&&void 0!==r?r:"px",mobileFontWeight:t.mobileFontWeight,mobileLineHeight:t.mobileLineHeight,mobileLetterSpacing:t.mobileLetterSpacing},[t.id+"__subMenuFsDesktop"]:{subMenuFontFamily:t.fontFamily,subMenuFontFamilyType:t.fontFamilyType,subMenuFontSize:t.fontSize,subMenuFontSizeSuffix:null!==(n=t.fontSizeSuffix)&&void 0!==n?n:"px",subMenuFontWeight:t.fontWeight,subMenuLineHeight:t.lineHeight,subMenuLetterSpacing:t.letterSpacing},[t.id+"__subMenuFsTablet"]:{tabletSubMenuFontSize:t.tabletFontSize,tabletSubMenuFontSizeSuffix:null!==(a=t.tabletFontSizeSuffix)&&void 0!==a?a:"px",tabletSubMenuFontWeight:t.tabletFontWeight,tabletSubMenuLineHeight:t.tabletLineHeight,tabletSubMenuLetterSpacing:t.tabletLetterSpacing},[t.id+"__subMenuFsMobile"]:{mobileSubMenuFontSize:t.mobileFontSize,mobileSubMenuFontSizeSuffix:null!==(l=t.mobileFontSizeSuffix)&&void 0!==l?l:"px",mobileSubMenuFontWeight:t.mobileFontWeight,mobileSubMenuLineHeight:t.mobileLineHeight,mobileSubMenuLetterSpacing:t.mobileLetterSpacing},[t.id+"__mMenuFsDesktop"]:{mMenuFontFamily:t.fontFamily,mMenuFontFamilyType:t.fontFamilyType,mMenuFontSize:t.fontSize,mMenuFontSizeSuffix:null!==(c=t.fontSizeSuffix)&&void 0!==c?c:"px",mMenuFontWeight:t.fontWeight,mMenuLineHeight:t.lineHeight,mMenuLetterSpacing:t.letterSpacing},[t.id+"__mMenuFsTablet"]:{tabletMMenuFontSize:t.tabletFontSize,tabletMMenuFontSizeSuffix:null!==(s=t.tabletFontSizeSuffix)&&void 0!==s?s:"px",tabletMMenuFontWeight:t.tabletFontWeight,tabletMMenuLineHeight:t.tabletLineHeight,tabletMMenuLetterSpacing:t.tabletLetterSpacing},[t.id+"__mMenuFsMobile"]:{mobileMMenuFontSize:t.mobileFontSize,mobileMMenuFontSizeSuffix:null!==(d=t.mobileFontSizeSuffix)&&void 0!==d?d:"px",mobileMMenuFontWeight:t.mobileFontWeight,mobileMMenuLineHeight:t.mobileLineHeight,mobileMMenuLetterSpacing:t.mobileLetterSpacing}})},{});return b(b(b({},a),n),l)}),L=Object(r.createSelector)(e=>e.copiedElement,F,(e,t)=>Object(n.a)(e,e=>{Object(l.f)(e,e=>{if(e.type&&"GlobalBlock"===e.type&&e.value){const{_id:o}=e.value;t[o]&&Object.assign(e,t[o].data)}})})),M=Object(r.createSelector)(y,h,v,(e,t,o)=>{const i=Object.keys(t);return e.map(e=>i.includes(e)?{type:"GlobalBlock",value:{_id:e}}:o[e])}),I=Object(r.createSelector)(E,h,v,(e,t,o)=>{const i=Object.keys(t);return e.map(e=>i.includes(e)?{type:"GlobalBlock",value:{_id:e}}:o[e])}),W=Object(r.createSelector)(p.j,p.f,f,e=>e.currentStyleId,S,p.e,(e,t,o,i,r,a)=>Object(n.a)(e,e=>{e.data.fonts=t,e.data.styles=o,e.data.selectedStyle=i,e.data.extraFontStyles=a;for(let t=0;t<e.data.styles.length;t++)e.data.styles[t].id===r.id&&(e.data.styles[t]=r)})),A=Object(r.createSelector)(C,M,(e,t)=>Object(n.a)(e,e=>{e.items=t})),N=Object(r.createSelector)(A,F,(e,t)=>{return o=e,Object(c.r)(e=>{if("GlobalBlock"===e.type){const{_id:o}=e.value;if(t[o]&&t[o].data)return t[o].data}return e},o);var o}),V=Object(r.createSelector)(N,e=>e.items||[]),D=(Object(r.createSelector)(V,e=>{const t=[];return Object(l.f)(e,e=>{e.popups&&t.push(...e.popups)}),t}),Object(r.createSelector)(p.i,I,m,(e,t,o)=>Object(n.a)(e,e=>{e.data.items=t,Object.keys(o).length>0&&Object(l.f)(e,e=>{e.type&&"GlobalBlock"!==e.type&&e.value&&e.value._id&&o[e.value._id]&&Object.assign(e.value,o[e.value._id])})}))),$=Object(r.createSelector)(p.i,M,m,(e,t,o)=>Object(n.a)(e,e=>{e.data.items=t,Object.keys(o).length>0&&Object(l.f)(e,e=>{e.type&&"GlobalBlock"!==e.type&&e.value&&e.value._id&&o[e.value._id]&&Object.assign(e.value,o[e.value._id])})})),G=Object(r.createSelector)(M,m,(e,t)=>Object(n.a)(e,e=>{Object.keys(t).length>0&&Object(l.f)(e,e=>{e.type&&"GlobalBlock"!==e.type&&e.value&&e.value._id&&t[e.value._id]&&Object.assign(e.value,t[e.value._id])})})),U=Object(r.createSelector)(p.i,M,h,m,(e,t,o,i)=>{const r=t.filter(t=>{if("GlobalBlock"===t.type){var i;const{_id:r}=t.value;if(null!==(i=o[r])&&void 0!==i&&i.data)return Object(s.c)(o[r],e)}return!0});return Object(n.a)(r,e=>{Object.keys(i).length>0&&Object(l.f)(e,e=>{e.type&&"GlobalBlock"!==e.type&&e.value&&e.value._id&&i[e.value._id]&&Object.assign(e.value,i[e.value._id])})})})},function(e,t,o){"use strict";o.d(t,"s",(function(){return w})),o.d(t,"u",(function(){return _})),o.d(t,"j",(function(){return T})),o.d(t,"i",(function(){return E})),o.d(t,"k",(function(){return P})),o.d(t,"v",(function(){return p.a})),o.d(t,"l",(function(){return b})),o.d(t,"f",(function(){return s})),o.d(t,"t",(function(){return S})),o.d(t,"r",(function(){return F})),o.d(t,"o",(function(){return z})),o.d(t,"e",(function(){return m.e})),o.d(t,"c",(function(){return m.c})),o.d(t,"a",(function(){return m.a})),o.d(t,"b",(function(){return m.b})),o.d(t,"d",(function(){return m.d})),o.d(t,"n",(function(){return m.g})),o.d(t,"m",(function(){return m.f})),o.d(t,"p",(function(){return m.h})),o.d(t,"q",(function(){return m.i})),o.d(t,"h",(function(){return d})),o.d(t,"g",(function(){return h}));var i=o(59),r=o(2);function n(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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(r.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 l(e,t){const o=t(e);let i;for(let n in e)if(e.hasOwnProperty(n)&&"object"==typeof e[n]&&null!==e[n]){const a=l(o[n],t);var r;if(a!==e[n])i=null!==(r=i)&&void 0!==r?r:{},i[n]=a}return i?function(e,t){if(Array.isArray(t)){let o,i=!1;for(const r in e){if(!e.hasOwnProperty(r))continue;const n=Number(r);n>=0&&n<=t.length-1&&(i||(o=t.slice(0),i=!0),o[r]=e[r])}return o||t}return a(a({},t),e)}(i,o):o}var c=o(206);const s=(e,t,o=t+1)=>{if(!e[t])throw new Error("Can't clone invalid item at index "+t);return Object(c.a)(e,o,e[t])},d=(e,t)=>Object(i.a)(e,({value:e})=>e&&e._id===t).obj;var p=o(231),u=o(24);const b=(e,t,o)=>o.reduce((e,o,i)=>{const r=w(Object(p.a)(o));return Object(u.insert)(e,t+i,r)},e);var m=o(126);const h=(e,t)=>{const[o,...r]=t,n=Object(i.a)(e,({value:e})=>e&&e._id===o);return n.path?[...n.path,"value",...r]:t};var g=o(38),v=o(25),y=o(27),f=o(17);function S(e,t=5){const o=e.value.items[0].value,i=o._styles;let{offsetX:r=0,offsetY:n=0}=o;const a=Object(f.J)(Object(y.b)().getState());if(!(v.a.read(r)&&v.a.read(n))&&i&&a){const e=i.reduce((e,t)=>a[t]?Object.assign(e,a[t]):e,{offsetX:0,offsetY:0});r=e.offsetX,n=e.offsetY}return Object(g.a)(e,e=>{e.value.items[0].value.offsetX=r+t,e.value.items[0].value.offsetY=n+t})}var O=o(75),x=o(62);const C=(e,t,o,i)=>{if("type"===e&&null!=O.a.getComponent(t)){if(o.value=o.value||{},void 0!==o.value._id&&i.keepExistingIds)return;if("GlobalBlock"===o.type)return;o.value._id=Object(x.a)()}};function w(e,t={}){const o=JSON.parse(JSON.stringify(e));return Object(i.e)(o,C,t),o}function B(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function j(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}function T(e,t,o){let i=e.findIndex(e=>e===t),r="increase"===o?++i:--i;return r===e.length?r=0:r<0&&(r=e.length-1),e[r]}function P(e,t,o){return E(e,t,e=>{if(e.type){const{defaultValue:t}=O.a.getComponent(e.type)||{};return!(!t||!t.style)&&t.style[o]}})}function E(e,t,o){const i=[...e];let r=[];for(let n=0;n<=e.length;n++){const e=Object(u.getIn)(t,i),n=o(e);if(n||null===n)return{value:e,path:i};r.unshift(i.pop())}return{value:null,path:null}}function _(e,t=0,o=0){const i=function(e){const{defaultValue:t}=O.a.getComponent(e.type);return t.style}(e);let r=Object(u.setIn)(e,["value"],k(e.value,i));if(o++,e.value.items&&o<=t){const i=e.value.items.map((e,i)=>{let n={};return r.value&&r.value.items&&r.value.items[i]&&(n=r.value.items[i]),_(j(j({},e),{},{value:j(j({},n.value),e.value)}),t,o)});r=Object(u.setIn)(r,["value","items"],i)}return r}const k=(e,t={})=>Object.entries(t).reduce((o,[i,r])=>(o[i]=i in e?e[i]:r,o[i]="items"===i?e.items.map((e,o)=>j(j({},e),{},{value:j(j({},k(e.value,t.items[o].value)),e.value)})):i in e?e[i]:r,o),{}),z=e=>Object(i.b)(["type","value"],e),F=(e,t)=>l(t,t=>z(t)?e(t):t)},,function(e,t,o){"use strict";function i(e,t){return void 0===e?t:e}o.d(t,"h",(function(){return i})),o.d(t,"b",(function(){return r})),o.d(t,"g",(function(){return n})),o.d(t,"i",(function(){return a})),o.d(t,"f",(function(){return l})),o.d(t,"d",(function(){return c})),o.d(t,"e",(function(){return s})),o.d(t,"c",(function(){return d})),o.d(t,"a",(function(){return p}));const r=e=>null==e||"number"==typeof e&&Number.isNaN(e);function n(...e){return 1===e.length?t=>r(t)?e[0]:t:r(e[1])?e[0]:e[1]}const a=e=>t=>{if(r(t))throw new Error(e);return t};function l(e,t,o){return r(t)||t===e?o:t}function c(e,t){if(!r(t))return e(t)}function s(...e){return t=>e.reduceRight((e,t)=>r(e)?void 0:t(e),t)}const d=e=>!r(e),p=e=>t=>e===t},function(e,t,o){"use strict";o.d(t,"O",(function(){return $})),o.d(t,"L",(function(){return U})),o.d(t,"A",(function(){return K})),o.d(t,"fb",(function(){return q})),o.d(t,"a",(function(){return Y})),o.d(t,"N",(function(){return X})),o.d(t,"u",(function(){return J})),o.d(t,"db",(function(){return Z})),o.d(t,"n",(function(){return Q})),o.d(t,"b",(function(){return ee})),o.d(t,"X",(function(){return te})),o.d(t,"E",(function(){return oe})),o.d(t,"D",(function(){return ie})),o.d(t,"d",(function(){return re})),o.d(t,"f",(function(){return ne})),o.d(t,"ib",(function(){return ae})),o.d(t,"kb",(function(){return le})),o.d(t,"G",(function(){return ce})),o.d(t,"F",(function(){return se})),o.d(t,"e",(function(){return de})),o.d(t,"g",(function(){return pe})),o.d(t,"jb",(function(){return ue})),o.d(t,"eb",(function(){return be})),o.d(t,"C",(function(){return me})),o.d(t,"r",(function(){return he})),o.d(t,"q",(function(){return ge})),o.d(t,"c",(function(){return ve})),o.d(t,"bb",(function(){return ye})),o.d(t,"cb",(function(){return fe})),o.d(t,"s",(function(){return Se})),o.d(t,"Z",(function(){return Oe})),o.d(t,"ab",(function(){return xe})),o.d(t,"M",(function(){return Ce})),o.d(t,"H",(function(){return we})),o.d(t,"W",(function(){return Be})),o.d(t,"t",(function(){return je})),o.d(t,"K",(function(){return Te})),o.d(t,"h",(function(){return Pe})),o.d(t,"Q",(function(){return Ee})),o.d(t,"P",(function(){return _e})),o.d(t,"w",(function(){return ke})),o.d(t,"i",(function(){return ze})),o.d(t,"I",(function(){return Fe})),o.d(t,"J",(function(){return Re})),o.d(t,"y",(function(){return He})),o.d(t,"x",(function(){return Le})),o.d(t,"l",(function(){return Me})),o.d(t,"j",(function(){return Ie})),o.d(t,"B",(function(){return We})),o.d(t,"z",(function(){return Ae}));o(65),o(253);var i,r=o(13);o(136);null===(i=r.a.get("urls"))||void 0===i||i.api;const n={page:1,count:300,orderBy:void 0,order:void 0};var a=o(71),l=o(192),c=o(45),s=o(50),d=o(2),p=o(19),u=o(54),b=o(78),m=o(116),h=o(123),g=o(72),v=o(53),y=o(162),f=o(127),S=o(102),O=o(125);const x=({models:e,globalBlocks:t})=>{const o=new Set;return Object(S.e)(e,{Component({type:e,value:t}){const i=Object(O.a)(e).content||{};Object.entries(i.images||{}).forEach(([e,i])=>{const r=t[e]||i;r&&o.add(r)})},GlobalBlock({value:{_id:e}}){const i=t&&t[e];i&&x({models:i}).forEach(e=>{o.add(e)})}}),[...o]};var C=o(20),w=o(36);function B(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function j(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(d.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 T=e=>{let t;if(!e.data)throw new a.h("Project data should exist");try{t=JSON.parse(e.data)}catch(t){throw new a.h("Failed to parse project data "+e.data)}return j(j({},e),{},{data:t})},P=e=>{let t,o,i,r,n;if(!e.data)throw new a.b("globalBlock data should exist");try{t=JSON.parse(e.data)}catch(t){throw new a.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{i=w.l?e.rules:JSON.parse(e.rules)}catch(e){throw new a.b("globalBlock rules are wrong")}else i=[];if(e.position)try{r=w.l?e.position:JSON.parse(e.position)}catch(e){throw new a.b("globalBlock position are wrong")}else r={};return n=e.status?e.status:"publish",j(j({},e),{},{data:t,meta:o,position:r,status:n,rules:i.map(I)})},E=e=>{const t=JSON.stringify(e.data),o=JSON.stringify(e.meta),i=JSON.stringify(e.rules.map(W));return j(j({},e),{},{data:t,meta:o,rules:i})};function _(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function k(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?_(Object(o),!0).forEach((function(t){Object(d.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const z=e=>{let t,o;if(!e.data)throw new a.i("savedBlock data should exist");try{t=JSON.parse(e.data)}catch(t){throw new a.i("Failed to parse savedBlock data "+e.data)}if(e.meta)try{o=JSON.parse(e.meta)}catch(e){o={}}else o={};return k(k({},e),{},{data:t,meta:o})},F=e=>{let t,o;if(!e.data)throw new a.j("savedLayout data should exist");try{t=JSON.parse(e.data)}catch(t){throw new a.j("Failed to parse savedLayout data "+e.data)}if(e.meta)try{o=JSON.parse(e.meta)}catch(e){o={}}else o={};return k(k({},e),{},{data:t,meta:o})},R=e=>{const t=JSON.stringify(e.data),o=JSON.stringify(e.meta);return k(k({},e),{},{data:t,meta:o})},H=e=>{let t;if(e.meta)try{t=JSON.parse(e.meta)}catch(e){t={}}else t={};return k(k({},e),{},{meta:t})},L=e=>{const{data:t,meta:o}=e,{extraFontStyles:i}=o,r=Object(S.b)({models:t}),n=x({models:t}),a=Object(S.d)(i),l=Object(S.c)({models:t}),c=new Set;return[...r,...a].forEach(({family:e,type:t})=>{"upload"===t&&c.add(e)}),JSON.stringify({images:n,uploads:l,fonts:[...c]})},M=e=>{const t=Object(b.a)(c.c,Object(v.d)({_kind:()=>"wp",id:Object(b.a)(c.d("id"),s.b),data:Object(m.a)(c.d("data"),h.a,c.c,Object(C.g)({items:[]})),dataVersion:Object(m.a)(c.d("dataVersion"),g.a,Object(C.g)(0)),slug:Object(m.a)(c.d("slug"),s.b,Object(C.g)("")),title:Object(m.a)(c.d("title"),s.b,Object(C.g)("")),status:Object(m.a)(c.d("status"),y.a(["draft","publish"]),Object(C.g)("draft")),is_index:Object(m.a)(c.d("is_index"),y.a([!0,!1]),Object(C.g)(!1)),template:Object(m.a)(c.d("template"),s.b,Object(C.g)("")),url:Object(m.a)(c.d("url"),s.b,Object(C.g)(""))}))(e);if(void 0===t)throw new a.g("Failed to parse page");return t};Object(p.parse)({id:Object(b.a)(Object(c.d)("id"),s.b),title:Object(b.a)(Object(c.d)("title"),s.b,Object(C.g)("")),type:Object(b.a)(Object(c.d)("type"),s.b)}),Object(p.parse)({id:Object(b.a)(Object(c.d)("id"),s.b),title:Object(b.a)(Object(c.d)("title"),s.b,Object(C.g)("")),type:Object(b.a)(Object(c.d)("type"),s.b)}),Object(p.parse)({id:Object(b.a)(Object(c.d)("id"),s.b),title:Object(b.a)(Object(c.d)("title"),s.b,Object(C.g)(""))});const I=Object(p.match)([e=>"entityValues"in e&&e.entityValues.length>0,e=>{var t;return{mode:null!==(t=e.mode)&&void 0!==t?t:"specific",type:e.type,appliedFor:e.appliedFor,entityType:e.entityType,entityValues:e.entityValues}}],[e=>"entityValues"in e&&0===e.entityValues.length&&void 0!==e.entityType&&f.a(e.entityType),e=>({type:e.type,appliedFor:e.appliedFor,entityType:e.entityType})],[e=>"appliedFor"in e&&null===e.appliedFor&&(""===e.entityType||void 0===e.entityType),e=>({type:e.type})]),W=Object(p.match)([u.k,e=>Object(r.b)(r.a.getAll())?{type:e.type,appliedFor:e.appliedFor,entityType:e.entityType,entityValues:e.entityValues}:{type:e.type,mode:e.mode,appliedFor:e.appliedFor,entityType:e.entityType,entityValues:e.entityValues}],[u.l,e=>({type:e.type,appliedFor:e.appliedFor,entityType:e.entityType,entityValues:[]})],[u.j,e=>({type:e.type,appliedFor:null,entityType:"",entityValues:[]})]),A=(e,t={})=>{const o=new URL(e);return Object.entries(t).forEach(([e,t])=>{o.searchParams.append(e,t)}),o.toString()},N=e=>void 0!==s.b(e)||void 0!==g.a(e),V=e=>c.b(e),D=e=>{const t={};return Object.entries(e).forEach(([e,o])=>{N(o)&&(t[e]=""+o),Array.isArray(o)&&o.forEach((o,i)=>{Object(p.match)([N,o=>{t[`${e}[${i}]`]=""+o}],[V,o=>{Object.entries(o).forEach(([o,r])=>{N(r)&&(t[`${e}[${i}][${o}]`]=""+r)})}])(o)})}),t};function $(e,t={}){const{fetch:o}=window.parent||window;return o(e,t)}function G(e,t={}){return new Promise((o,i)=>{let r=0;const n=(e,t)=>$(e,t).then(a=>{500===a.status?r<=5?(r++,setTimeout(()=>{n(e,t)},5e3*r)):i(a):a.json().then(e=>{o({status:a.status,ok:a.ok,data:e.data})}).catch(i)});n(e,t)})}function U(e=650){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}function K(){const{wp:{api:{url:e,hash:t,getProject:o}},editorVersion:i}=r.a.getAll();return G(A(e,{action:o,version:i,hash:t}),{method:"GET"}).then(({data:e})=>e).then(T).catch(()=>{throw new a.h("Failed to get Project")})}function q(e,t={}){const{wp:{api:{url:o,hash:i,setProject:n}},editorVersion:l}=r.a.getAll(),c=A(o,{action:n,version:l,hash:i}),{is_autosave:s=1}=t,{data:d,dataVersion:p}=(e=>{let t=JSON.stringify(e.data);return j(j({},e),{},{data:t})})(e);return G(c,{method:"POST",body:new URLSearchParams({data:d,dataVersion:""+p,is_autosave:""+s})}).catch(()=>{throw new a.h("Failed to update project")})}function Y(){const{url:e,hash:t,lockProject:o}=r.a.get("wp").api,i=r.a.get("editorVersion");return $(e,{method:"POST",body:new URLSearchParams({version:i,hash:t,action:o})}).then(e=>e.json()).then(e=>{if(e.success)return e.data;throw e})}function X(){const{removeLock:e,url:t}=r.a.get("wp").api,o=r.a.get("editorVersion"),i=new URL(t);return i.searchParams.append("action",e),i.searchParams.append("version",o),navigator.sendBeacon(""+i)}function J(e){return function(){const{wp:{page:e,api:{url:t,hash:o,getPage:i}},editorVersion:n}=r.a.getAll();return G(A(t,{action:i,version:n,hash:o,id:e}),{method:"GET"}).then(({data:e})=>e.map(M)).catch(()=>{throw new a.g("Failed to get page")})}().then(t=>t.find(t=>t.id===""+e))}function Z(e,t={}){const{wp:{api:{url:o,hash:i,updatePage:n}},editorVersion:l}=r.a.getAll(),c=A(o,{action:n,version:l,hash:i}),{is_autosave:s=1}=t,{id:d,status:p,data:u,dataVersion:b}=function(e){return k(k({},e),{},{data:JSON.stringify(e.data)})}(e);return G(c,{method:"POST",body:new URLSearchParams({id:d,status:p,data:u,dataVersion:""+b,is_autosave:""+s})}).catch(()=>{throw new a.g("Failed to update page")})}const Q=async({placeholders:e,signal:t})=>{const{api:{url:o,hash:i,placeholdersContent:n}}=r.a.get("wp"),a=r.a.get("editorVersion"),d=new URLSearchParams({hash:i,version:a,action:n});for(const[t,o]of Object.entries(e))if(o)for(const e of o)d.append(`p[${t}][]`,e);const p=await $(o,{method:"POST",body:d,signal:t});if(!p.ok)throw new Error("fetch dynamic content error");const{data:u}=await p.json();if(void 0===u||void 0===u.placeholders)throw new Error("fetch dynamic content error");const b=c.e(l.a(s.b))(u.placeholders);if(void 0===b)throw new Error("fetch dynamic content error");return b},ee=({base64:e,blockType:t})=>{const{page:o,api:{url:i,hash:n,createBlockScreenshot:a}}=r.a.get("wp"),l=r.a.get("editorVersion"),c=e.replace(/data:image\/.+;base64,/,"");return $(i,{method:"POST",body:new URLSearchParams({action:a,post:o,version:l,hash:n,block_type:t,ibsf:c})}).then(e=>e.json()).then(e=>{if(e.success)return e.data;throw e})},te=({id:e,base64:t,blockType:o})=>{const{page:i,api:{url:n,hash:a,updateBlockScreenshot:l}}=r.a.get("wp"),c=r.a.get("editorVersion"),s=t.replace(/data:image\/.+;base64,/,"");return $(n,{method:"POST",body:new URLSearchParams({action:l,post:i,version:c,hash:a,block_type:o,id:e,ibsf:s})}).then(e=>e.json()).then(e=>{if(e.success)return e.data;throw e})},oe=e=>{const{wp:{api:{url:t,hash:o,getSavedBlockList:i}},editorVersion:a}=r.a.getAll(),{count:l,page:c,orderBy:s="id",order:d="ASC"}=e||n;return $(A(t,D({hash:o,orderBy:s,order:d,count:l,page:c,action:i,version:a,fields:["uid","meta","synchronized","synchronizable"]})),{method:"GET"}).then(e=>e.json()).then(({data:e})=>e.map(H))},ie=e=>{const{wp:{api:{url:t,hash:o,getSavedBlockByUid:i}},editorVersion:n}=r.a.getAll();return $(A(t,{uid:e,hash:o,action:i,version:n}),{method:"GET"}).then(e=>e.json()).then(({data:e})=>z(e))},re=e=>{const{wp:{api:{url:t,hash:o,createSavedBlock:i}},editorVersion:n}=r.a.getAll(),a=A(t,{hash:o,action:i,version:n}),{uid:l,data:c,dataVersion:s,meta:d}=R(e),p=L(e);return G(a,{method:"POST",body:new URLSearchParams({uid:l,data:c,meta:d,media:p,dataVersion:""+s})})},ne=e=>{const{wp:{api:{url:t,hash:o,deleteSavedBlock:i}},editorVersion:n}=r.a.getAll();return G(A(t,{action:i,version:n,hash:o,uid:e}),{method:"DELETE"})},ae=async e=>{const t=r.a.getAll(),{api:{url:o,hash:i,uploadBlocks:n}}=t.wp,a=t.editorVersion,l=new FormData;for(const t of e)l.append("files[]",t);l.append("version",a),l.append("hash",i),l.append("action",n);const c=await $(o,{method:"POST",body:l}),s=await c.json();if(s.success&&s.data.errors&&s.data.success)return{errors:s.data.errors,success:s.data.success.map(z)};throw s},le=async e=>{const t=r.a.getAll(),{api:{url:o,hash:i,uploadBlocks:n}}=t.wp,a=t.editorVersion,l=new FormData;for(const t of e)l.append("files[]",t);l.append("version",a),l.append("hash",i),l.append("action",n);const c=await $(o,{method:"POST",body:l}),s=await c.json();if(s.success&&s.data.errors&&s.data.success)return{errors:s.data.errors,success:s.data.success.map(z)};throw s},ce=e=>{const{wp:{api:{url:t,hash:o,getLayoutList:i}},editorVersion:a}=r.a.getAll(),{count:l,page:c,orderBy:s="id",order:d="ASC"}=e||n;return $(A(t,D({action:i,hash:o,orderBy:s,order:d,count:l,page:c,version:a,fields:["uid","meta","synchronized","synchronizable"]})),{method:"GET"}).then(e=>e.json()).then(({data:e})=>e.map(H))},se=e=>{const{wp:{api:{url:t,hash:o,getLayoutByUid:i}},editorVersion:n}=r.a.getAll();return $(A(t,{hash:o,uid:e,action:i,version:n}),{method:"GET"}).then(e=>e.json()).then(({data:e})=>F(e))},de=e=>{const{wp:{api:{url:t,hash:o,createLayout:i}},editorVersion:n}=r.a.getAll(),a=A(t,{hash:o,action:i,version:n}),{data:l,dataVersion:c,uid:s,meta:d}=R(e),p=L(e);return G(a,{method:"POST",body:new URLSearchParams({uid:s,data:l,meta:d,media:p,dataVersion:""+c})})},pe=e=>{const{wp:{api:{url:t,hash:o,deleteLayout:i}},editorVersion:n}=r.a.getAll();return G(A(t,{hash:o,uid:e,action:i,version:n}),{method:"DELETE"})},ue=async e=>{const t=r.a.getAll(),{api:{url:o,hash:i,uploadBlocks:n}}=t.wp,a=t.editorVersion,l=new FormData;for(const t of e)l.append("files[]",t);l.append("version",a),l.append("hash",i),l.append("action",n);const c=await $(o,{method:"POST",body:l}),s=await c.json();if(s.success&&s.data.errors&&s.data.success)return{errors:s.data.errors,success:s.data.success.map(F)};throw s};function be(e){const{api:{updateRules:t,hash:o,url:i},page:n}=r.a.get("wp"),{rules:a,dataVersion:l}=e;return $(`${i}?action=${t}&hash=${o}&post=${n}&version=${r.a.get("editorVersion")}&dataVersion=${l}`,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(a.map(W))})}function me(){const{api:{getRuleList:e,hash:t,url:o},page:i}=r.a.get("wp"),n=r.a.get("editorVersion");return $(o,{method:"POST",body:new URLSearchParams({action:e,post:i,version:n,hash:t})}).then(e=>e.json()).then(({data:e})=>e.map(I))}async function he(e){const{editorVersion:t,wp:{api:{url:o,hash:i,getRuleGroupList:n}}}=r.a.getAll(),a=new URLSearchParams({hash:i,version:t,action:n,context:"popup"===e?"popup-rules":"global-block-rules"}),l=await $(o,{method:"POST",body:a}),c=await l.json();if(c.success)return c.data;throw c}function ge(){const{wp:{api:{url:e,hash:t,getGlobalBlockList:o}},editorVersion:i}=r.a.getAll();return G(A(e,{hash:t,action:o,version:i}),{method:"GET"}).then(({data:e})=>e.map(P).reduce((e,{uid:t,data:o,status:i,rules:r,position:n,meta:a})=>(e[t]={data:o,status:i,meta:a,rules:r,position:n,id:t},e),{})).catch(()=>{throw new a.b("Failed to get Global blocks")})}function ve(e){const{wp:{api:{url:t,hash:o,createGlobalBlock:i}},editorVersion:n}=r.a.getAll(),l=A(t,{hash:o,action:i,version:n}),c=e.data.value._id,{data:s,rules:d,meta:p}=E(e),u=L(e);return G(l,{method:"POST",body:new URLSearchParams({uid:c,data:s,rules:d,meta:p,media:u,status:"draft"})}).then(e=>e.data).catch(()=>{throw new a.b("Failed to create Global block")})}function ye(e,t,o={}){const{wp:{api:{url:i,hash:n,updateGlobalBlock:l}},editorVersion:c}=r.a.getAll(),s=A(i,{hash:n,action:l,version:c}),{is_autosave:d=1}=o,{data:p,rules:u,meta:b,status:m}=E(t);return G(s,{method:"POST",body:new URLSearchParams({uid:e,status:m,data:p,rules:u,meta:b,is_autosave:""+d})}).catch(()=>{throw new a.g("Failed to update Global Block")})}function fe(e,t={}){const{wp:{api:{url:o,hash:i,updateGlobalBlocks:n}},editorVersion:l}=r.a.getAll(),c=A(o,{hash:i,action:n,version:l}),{is_autosave:s=1}=t,d=Object.entries(e).reduce((e,[t,o])=>{const{data:i,position:r,rules:n,meta:a,status:l}=E(o);return e.uid.push(t),e.status.push(l),e.data.push(null!=i?i:""),e.position.push(JSON.stringify(r)),e.rules.push(n),e.meta.push(a),e},{uid:[],status:[],data:[],position:[],rules:[],meta:[]}),p=D({uid:d.uid,status:d.status,data:d.data,position:d.position,rules:d.rules,meta:d.meta,is_autosave:""+s});return G(c,{method:"POST",body:new URLSearchParams(p)}).catch(()=>{throw new a.g("Failed to update Global blocks")})}async function Se(e){const{editorVersion:t,wp:{page:o,api:{url:i,hash:n,getMediaUid:a}}}=r.a.getAll(),l=new URLSearchParams({hash:n,version:t,action:a,post_id:o,attachment_id:e}),c=await $(i,{method:"POST",body:l}),s=await c.json();if(s.success)return s.data;throw s}async function Oe(e,t){const{editorVersion:o,wp:{api:{url:i,hash:n,setFeaturedImage:a}}}=r.a.getAll(),l=new URLSearchParams({hash:n,version:o,action:a,post:e,attachmentId:t}),c=await $(i,{method:"POST",body:l}),s=await c.json();if(s.success)return s.data;throw s}async function xe(e,t,o,i){const{editorVersion:n,wp:{api:{url:a,hash:l,setFeaturedImageFocalPoint:c}}}=r.a.getAll(),s=new URLSearchParams({hash:l,version:n,action:c,post:e,attachmentId:t,pointX:o,pointY:i}),d=await $(a,{method:"POST",body:s}),p=await d.json();if(p.success)return p.data;throw p}async function Ce(e){const{editorVersion:t,wp:{api:{url:o,hash:i,removeFeaturedImage:n}}}=r.a.getAll(),a=new URLSearchParams({hash:i,version:t,action:n,post:e}),l=await $(o,{method:"POST",body:a}),c=await l.json();if(c.success)return c.data;throw c}async function we(){const{editorVersion:e,wp:{api:{url:t,hash:o,getSidebars:i}}}=r.a.getAll(),n=new URLSearchParams({hash:o,version:e,action:i}),a=await $(t,{method:"POST",body:n}),l=await a.json();if(l.success)return l.data;throw l}async function Be(e){const{editorVersion:t,wp:{api:{url:o,hash:i,shortcodeContent:n}}}=r.a.getAll(),a=new URLSearchParams({hash:i,version:t,action:n,shortcode:e}),l=await $(o,{method:"POST",body:a}),c=await l.json();if(c.success)return c.data;throw c}async function je(){const{editorVersion:e,wp:{api:{url:t,hash:o,getMenus:i}}}=r.a.getAll(),n=new URLSearchParams({hash:o,version:e,action:i}),a=await $(t,{method:"POST",body:n}),l=await a.json();if(l.success)return l.data;throw l}async function Te(){const{editorVersion:e,wp:{api:{url:t,hash:o,getFonts:i}}}=r.a.getAll(),n=new URLSearchParams({hash:o,version:e,action:i}),a=await $(t,{method:"POST",body:n}),l=await a.json();if(l.success)return l.data;throw l}async function Pe(e){const{editorVersion:t,wp:{api:{url:o,hash:i,getAttachmentUid:n}}}=r.a.getAll(),a=new URLSearchParams({hash:i,version:t,action:n,attachment_id:e}),l=await $(o,{method:"POST",body:a}),c=await l.json();if(c.success)return c.data;throw c}function Ee(){const{url:e,hash:t,heartBeat:o}=r.a.get("wp").api,i=r.a.get("editorVersion");return $(e,{method:"POST",body:new URLSearchParams({action:o,version:i,hash:t})}).then(e=>e.json()).then(e=>{if(e.success)return e.data;throw e})}function _e(){const{url:e,hash:t,takeOver:o}=r.a.get("wp").api,i=r.a.get("editorVersion");return $(e,{method:"POST",body:new URLSearchParams({action:o,version:i,hash:t})}).then(e=>e.json()).then(e=>{if(e.success)return e.data;throw e})}async function ke(e){const{editorVersion:t,wp:{api:{url:o,hash:i,getPostObjects:n}}}=r.a.getAll(),a=new URLSearchParams({hash:i,version:t,action:n,postType:e}),l=await $(o,{method:"POST",body:a}),c=await l.json();if(c.success)return c.data;throw c}const ze=async({include:e=[],search:t="",abortSignal:o}={})=>{const{api:{url:i,hash:n,getUsers:a}}=r.a.get("wp"),l=r.a.get("editorVersion"),c=new URLSearchParams({hash:n,version:l,action:a});""!==t&&c.append("search",t);for(const t of e)c.append("include[]",t);const s=await $(i,{method:"POST",body:c,signal:o}),d=await s.json();if(d.success)return d.data;throw d},Fe=async e=>{const{url:t,hash:o,getTerms:i}=r.a.get("wp").api,n=r.a.get("editorVersion");return $(t,{method:"POST",body:new URLSearchParams({hash:o,version:n,taxonomy:e,action:i})}).then(e=>e.json()).then(({data:e})=>e)},Re=async({include:e=[],search:t="",abortSignal:o}={})=>{const{api:{url:i,hash:n,getTermsBy:a}}=r.a.get("wp"),l=r.a.get("editorVersion"),c=new URLSearchParams({hash:n,version:l,action:a});""!==t&&c.append("search",t);for(let t=0;t<e.length;t++){const[o,i]=e[t];c.append("taxonomy[]",o),c.append("include[]",i)}const s=await $(i,{method:"POST",body:c,signal:o}),d=await s.json();if(d.success)return d.data;throw d},He=async({include:e,search:t="",postType:o,excludePostType:i,abortSignal:n}={})=>{const{api:{url:a,hash:l,searchPosts:c}}=r.a.get("wp"),s=r.a.get("editorVersion"),d=new URLSearchParams({hash:l,version:s,action:c});if(""!==t&&d.append("search",t),void 0!==e)for(const t of e)d.append("include[]",t);if(void 0!==o)for(const e of o)d.append("post_type[]",e);if(void 0!==i)for(const e of i)d.append("exclude_post_type[]",e);const p=await $(a,{method:"POST",body:d,signal:n}),u=await p.json();if(u.success)return u.data;throw u},Le=async({taxonomy:e,abortSignal:t})=>{const{url:o,hash:i,getPostTaxonomies:n}=r.a.get("wp").api,a=r.a.get("editorVersion");return $(o,{method:"POST",body:new URLSearchParams({hash:i,version:a,post_type:e,action:n}),signal:t}).then(e=>e.json()).then(({data:e})=>e).catch(e=>[])},Me=async()=>{const e=r.a.getAll().wp.postTypes;return Promise.resolve(e)},Ie=async e=>{const t=r.a.getAll(),{wp:o,editorVersion:i}=t,{url:n,hash:a,getPostObjects:l}=o.api;return await $(n,{method:"POST",body:new URLSearchParams({hash:a,version:i,postType:e,action:l})}).then(e=>e.json()).then(e=>{if(null==e||!e.data)throw"Something went wrong";return e.data}).catch(e=>[])},We=async e=>{const t=r.a.getAll(),{wp:o,editorVersion:i}=t,{url:n,hash:a,rulePostsGroupList:l}=o.api;return await $(n,{method:"POSt",body:new URLSearchParams({hash:a,version:i,action:l,postType:e})}).then(e=>e.json()).then(e=>{if(null==e||!e.data)throw"Something went wrong";return e.data}).catch(e=>[])},Ae=()=>Promise.reject("not implemented")},function(e,t,o){"use strict";o.d(t,"c",(function(){return d})),o.d(t,"d",(function(){return p})),o.d(t,"k",(function(){return h})),o.d(t,"l",(function(){return g})),o.d(t,"R",(function(){return v})),o.d(t,"P",(function(){return y})),o.d(t,"Q",(function(){return f})),o.d(t,"a",(function(){return x})),o.d(t,"b",(function(){return C})),o.d(t,"e",(function(){return T})),o.d(t,"f",(function(){return P})),o.d(t,"g",(function(){return E})),o.d(t,"h",(function(){return z})),o.d(t,"j",(function(){return F})),o.d(t,"i",(function(){return R})),o.d(t,"U",(function(){return H})),o.d(t,"V",(function(){return I})),o.d(t,"gb",(function(){return L})),o.d(t,"W",(function(){return W})),o.d(t,"X",(function(){return A})),o.d(t,"Y",(function(){return N})),o.d(t,"Z",(function(){return M})),o.d(t,"ab",(function(){return $})),o.d(t,"fb",(function(){return G})),o.d(t,"m",(function(){return U})),o.d(t,"N",(function(){return K})),o.d(t,"O",(function(){return q})),o.d(t,"L",(function(){return Y})),o.d(t,"M",(function(){return X})),o.d(t,"q",(function(){return ee})),o.d(t,"s",(function(){return J})),o.d(t,"r",(function(){return Z})),o.d(t,"p",(function(){return Q})),o.d(t,"o",(function(){return te})),o.d(t,"n",(function(){return oe})),o.d(t,"y",(function(){return ie})),o.d(t,"G",(function(){return ae})),o.d(t,"F",(function(){return ce})),o.d(t,"K",(function(){return de})),o.d(t,"J",(function(){return se})),o.d(t,"H",(function(){return pe})),o.d(t,"x",(function(){return ue})),o.d(t,"S",(function(){return be})),o.d(t,"T",(function(){return me})),o.d(t,"B",(function(){return ge})),o.d(t,"z",(function(){return ve})),o.d(t,"A",(function(){return ye})),o.d(t,"C",(function(){return fe})),o.d(t,"eb",(function(){return Se})),o.d(t,"db",(function(){return Oe})),o.d(t,"cb",(function(){return xe})),o.d(t,"bb",(function(){return Ce})),o.d(t,"u",(function(){return we})),o.d(t,"t",(function(){return Be})),o.d(t,"D",(function(){return je})),o.d(t,"E",(function(){return Te})),o.d(t,"w",(function(){return Pe})),o.d(t,"v",(function(){return Ee})),o.d(t,"I",(function(){return _e}));var i=o(2),r=o(0),n=o(3),a=o(7),l=o(46);function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function s(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(i.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 d({v:e,device:t,state:o,states:i,devices:c="all",disabled:d=!1,config:p,onChange:u}){const b=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}),m=Object(a.c)(p,l.a.image);return{id:(h="bgImage",Object(n.defaultValueKey)({key:h,device:t,state:o})),label:Object(r.a)("Image"),type:"imageSetter",devices:c,states:i,disabled:d,population:{show:m.length>0,choices:m},value:{width:b("bgImageWidth"),height:b("bgImageHeight"),src:b("bgImageSrc"),x:b("bgPositionX"),y:b("bgPositionY"),extension:b("bgImageExtension"),population:b("bgPopulation")},onChange:({width:i,height:r,src:a,x:l,y:c,population:d,extension:p},{isChanged:b})=>{const m=s(s({},{v:e,device:t,state:o,onChange:u}),{width:i,height:r,src:a,x:l,y:c,population:d,extension:p,isChanged:b});return Object(n.saveOnChanges)(m)}};var h}function p({v:e,device:t,devices:o="all",state:i,states:a,disabled:l=!1}){const c=o=>Object(n.defaultValueValue)({v:e,key:o,device:t,state:i});return{id:(s="bgVideo",Object(n.defaultValueKey)({key:s,device:t,state:i})),label:Object(r.a)("URL"),type:"input",inputType:"video",placeholder:Object(r.a)("YouTube or Vimeo"),disabled:l,devices:o,states:a,value:{value:c("bgVideo")},onChange:({value:e})=>({bgVideo:e,bgColorOpacity:""!==e&&1===c("bgColorOpacity")?.8:c("bgColorOpacity"),tempBgColorOpacity:""!==e&&1===c("bgColorOpacity")?.8:c("tempBgColorOpacity")})};var s}var u=o(6);function b(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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(i.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}function h({v:e,device:t,state:o,states:i,disabled:r=!1,prefix:l="color",devices:c="all",onChangeHex:s,onChangePalette:d}){const p=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}),{hex:b}=Object(a.d)(p(Object(u.b)(l,"hex")),p(Object(u.b)(l,"palette")));return{id:(h=l,Object(n.defaultValueKey)({key:h,device:t,state:o})),type:"colorPicker2",disabled:r,devices:c,states:i,select:{show:!1},value:{hex:b,opacity:p(Object(u.b)(l,"opacity")),palette:p(Object(u.b)(l,"palette"))},onChange:({hex:i,opacity:r,palette:a,isChanged:c,opacityDragEnd:p})=>{const u=m(m({},{v:e,device:t,state:o,prefix:l,onChange:s}),{hex:i,opacity:r,isChanged:c,opacityDragEnd:p}),b=m(m({},{v:e,device:t,state:o,prefix:l,onChange:d}),{opacity:r,palette:a});return"hex"===c||"opacity"===c?Object(n.saveOnChanges)(u):Object(n.saveOnChanges)(b)}};var h}function g({v:e,device:t,state:o,disabled:i=!1,states:r,devices:l="all",prefix:c="color",onChange:s}){const d=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}),{hex:p}=Object(a.d)(d(Object(u.b)(c,"hex")),d(Object(u.b)(c,"palette")));return{id:(b=Object(u.b)(c,"field"),Object(n.defaultValueKey)({key:b,device:t,state:o})),type:"colorFields",devices:l,disabled:i,states:r,value:{hex:p,opacity:d(Object(u.b)(c,"opacity"))},onChange:({hex:i})=>{const r=m(m({},{v:e,device:t,state:o,prefix:c,onChange:s}),{hex:i});return Object(n.saveOnChanges)(r)}};var b}function v({v:e,device:t,state:o,states:i,devices:a="all",className:l,disabled:c}){return{id:(s="gradientType",Object(n.defaultValueKey)({key:s,device:t,state:o})),type:"select",devices:a,states:i,disabled:c,className:l,choices:[{title:Object(r.a)("Linear"),value:"linear"},{title:Object(r.a)("Radial"),value:"radial"}],value:(i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}))("gradientType")};var s}function y({v:e,device:t,state:o,states:i,devices:r="all",disabled:a}){return{id:(l="gradientLinearDegree",Object(n.defaultValueKey)({key:l,device:t,state:o})),type:"inputNumber",className:"brz-ed-grid__gradient__size",devices:r,states:i,disabled:a,min:0,max:360,value:(i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}))("gradientLinearDegree")};var l}function f({v:e,device:t,state:o,states:i,devices:r="all",disabled:a}){return{id:(l="gradientRadialDegree",Object(n.defaultValueKey)({key:l,device:t,state:o})),type:"inputNumber",className:"brz-ed-grid__gradient__degree",devices:r,states:i,disabled:a,min:0,max:1e3,value:(i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}))("gradientRadialDegree")};var l}function S(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function O(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(i.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,states:i,devices:l="all",disabled:c=!1,prefix:s="bg",showSelect:d=!0,onChangeType:p,onChangeHex:b,onChangePalette:m,onChangeGradientHex:h,onChangeGradientPalette:g,onChangeGradient:v}){const y=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}),f=y(Object(u.b)(s,"colorType")),{hex:S}=Object(a.d)(y(Object(u.b)(s,"colorHex")),y(Object(u.b)(s,"colorPalette"))),{hex:x}=Object(a.d)(y("gradientColorHex"),y("gradientColorPalette")),C=y("gradientActivePointer");return{id:(w=Object(u.b)(s,"color"),Object(n.defaultValueKey)({key:w,device:t,state:o})),type:"colorPicker2",disabled:c,devices:l,states:i,select:{show:d,choices:[{title:Object(r.a)("Solid"),value:"solid"},{title:Object(r.a)("Gradient"),value:"gradient"}]},gradient:{show:"gradient"===f},value:{hex:S,opacity:y(Object(u.b)(s,"colorOpacity")),palette:y(Object(u.b)(s,"colorPalette")),select:f,gradientColorHex:x,gradientColorOpacity:y("gradientColorOpacity"),gradientColorPalette:y("gradientColorPalette"),startPointer:y("gradientStartPointer"),finishPointer:y("gradientFinishPointer"),activePointer:C},onChange:({hex:i,opacity:r,palette:a,select:l,opacityDragEnd:c,startPointer:d,finishPointer:y,activePointer:S,isChanged:x})=>{const C=O(O({},{v:e,device:t,state:o,prefix:s,onChange:p}),{[Object(u.b)(s,"colorType")]:l}),w=O(O({},{v:e,device:t,state:o,prefix:"startPointer"===S||"solid"===f?s:"gradient",onChange:"startPointer"===S||"solid"===f?b:h}),{hex:i,opacity:r,isChanged:x,opacityDragEnd:c}),B=O(O({},{v:e,device:t,state:o,prefix:"startPointer"===S||"solid"===f?s:"gradient",onChange:"startPointer"===S||"solid"===f?m:g}),{opacity:r,palette:a}),j=O(O({},{v:e,device:t,state:o,prefix:s,onChange:v}),{startPointer:d,finishPointer:y,activePointer:S});return"select"===x?Object(n.saveOnChanges)(C):"hex"===x||"opacity"===x?Object(n.saveOnChanges)(w):"palette"===x?Object(n.saveOnChanges)(B):Object(n.saveOnChanges)(j)}};var w}function C({v:e,device:t,state:o,states:i,devices:r="all",prefix:l="bg",className:c="",disabled:s=!1,onChange:d}){const p=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}),{hex:b}=Object(a.d)(p(Object(u.b)(l,"colorHex")),p(Object(u.b)(l,"colorPalette")));return{id:(m=Object(u.b)(l,"colorField"),Object(n.defaultValueKey)({key:m,device:t,state:o})),type:"colorFields",devices:r,states:i,disabled:s,className:c,value:{hex:b,opacity:p(Object(u.b)(l,"colorOpacity"))},onChange:({hex:i})=>{const r=O(O({},{v:e,device:t,state:o,prefix:l,onChange:d}),{hex:i});return Object(n.saveOnChanges)(r)}};var m}var w=o(37);function B(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function j(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(i.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}function T({v:e,device:t,state:o,states:i,onChangeStyle:l,onChangeHex:c,onChangePalette:s,devices:d="all",prefix:p="",showSelect:b=!0,choices:m=[{title:Object(r.a)("None"),value:""},{value:"solid",icon:"nc-solid"},{value:"dashed",icon:"nc-dashed"},{value:"dotted",icon:"nc-dotted"}]}){const h=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}),g=Object(u.b)(p,"border"),v=Object(u.b)(g,"color"),y=Object(u.b)(g,"colorHex"),f=Object(u.b)(g,"colorOpacity"),S=Object(u.b)(g,"colorPalette"),O=Object(u.b)(g,"style"),{hex:x}=Object(a.d)(h(y),h(S));return{devices:d,id:(C=v,Object(n.defaultValueKey)({key:C,device:t,state:o})),type:"colorPicker2",states:i,select:{show:b,choices:m},value:{hex:x,opacity:h(f),palette:h(S),select:h(O)},onChange:({hex:i,opacity:r,palette:a,select:d,isChanged:u,opacityDragEnd:b})=>{const m=j(j({},{v:e,device:t,state:o,prefix:p,onChange:l}),{borderStyle:d,isChanged:u}),h=j(j({},{v:e,device:t,state:o,prefix:p,onChange:c}),{hex:i,opacity:r,isChanged:u,opacityDragEnd:b}),g=j(j({},{v:e,device:t,state:o,prefix:p,onChange:s}),{opacity:r,palette:a});return"select"===u?Object(n.saveOnChanges)(m):"hex"===u||"opacity"===u?Object(n.saveOnChanges)(h):Object(n.saveOnChanges)(g)}};var C}function P({v:e,device:t,state:o,states:i,onChange:r,devices:l="all",prefix:c=""}){const s=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}),d=Object(u.b)(c,"border"),p=Object(u.b)(d,"colorHex"),b=Object(u.b)(d,"colorOpacity"),m=Object(u.b)(d,"colorPalette"),{hex:h}=Object(a.d)(s(p),s(m));return{devices:l,id:(g=Object(u.b)(d,"colorField"),Object(n.defaultValueKey)({key:g,device:t,state:o})),type:"colorFields",states:i,value:{hex:h,opacity:s(b)},onChange:({hex:i})=>{const a=j(j({},{v:e,device:t,state:o,prefix:c,onChange:r}),{hex:i});return Object(n.saveOnChanges)(a)}};var g}function E({v:e,device:t,state:o,states:i,onChangeType:a,onChangeGrouped:l,onChangeUngrouped:c,devices:s="all",prefix:d=""}){const p=i=>Object(n.defaultValueValue)({v:e,key:i,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"),y=Object(u.b)(b,"bottomWidth"),f=Object(u.b)(b,"leftWidth"),S={grouped:[m],ungrouped:[g,v,y,f]};return{devices:s,id:(O=m,Object(n.defaultValueKey)({key:O,device:t,state:o})),type:"multiInputPicker",states:i,label:"grouped"===p(h)&&Object(r.a)("Size"),value:{type:p(h),grouped:[p(m)],ungrouped:[p(g),p(v),p(y),p(f)]},onChange:i=>{let{type:r,isChanged:s,isChangedIndex:p}=i,u=Object(w.a)(i,["type","isChanged","isChangedIndex"]);const b=j(j({},{v:e,device:t,state:o,prefix:d,onChange:a}),{type:r}),m=j(j({},{v:e,device:t,state:o,prefix:d,onChange:"grouped"===r?l:c}),{current:S[r][p],value:u[r][p]});return"type"===s?Object(n.saveOnChanges)(b):Object(n.saveOnChanges)(m)}};var O}function _(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function k(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?_(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function z({v:e,device:t,disabled:o=!1,state:i,states:l,onChangeType:c,onChangeHex:s,onChangePalette:d,prefix:p="",devices:b="all",choices:m="all"}){const h=o=>Object(n.defaultValueValue)({v:e,key:o,device:t,state:i}),g=Object(u.b)(p,"boxShadow"),v=Object(u.b)(g,"colorHex"),y=Object(u.b)(g,"colorOpacity"),f=Object(u.b)(g,"colorPalette"),{hex:S}=Object(a.d)(h(v),h(f)),O=[{title:Object(r.a)("None"),value:""},{title:Object(r.a)("Inset"),value:"inset"},{title:Object(r.a)("Outset"),value:"on"}],x=[{title:Object(r.a)("None"),value:""},{title:Object(r.a)("Inset"),value:"inset"}],C=[{title:Object(r.a)("None"),value:""},{title:Object(r.a)("Outset"),value:"on"}];return{devices:b,states:l,disabled:o,id:(w=g,Object(n.defaultValueKey)({key:w,device:t,state:i})),type:"colorPicker2",select:{choices:"all"===m?O:"inset"===m?x:C},value:{hex:S,opacity:h(y),palette:h(f),select:h(g)},onChange:({hex:o,opacity:r,palette:a,select:l,isChanged:u,opacityDragEnd:b})=>{const m=k(k({},{v:e,device:t,state:i,prefix:p,onChange:c}),{boxShadowType:l,isChanged:u}),h=k(k({},{v:e,device:t,state:i,prefix:p,onChange:s}),{hex:o,opacity:r,isChanged:u,opacityDragEnd:b}),g=k(k({},{v:e,device:t,state:i,prefix:p,onChange:d}),{opacity:r,palette:a});return"select"===u?Object(n.saveOnChanges)(m):"hex"===u||"opacity"===u?Object(n.saveOnChanges)(h):Object(n.saveOnChanges)(g)}};var w}function F({v:e,device:t,disabled:o=!1,state:i,states:r,onChange:l,prefix:c="",devices:s="all"}){const d=o=>Object(n.defaultValueValue)({v:e,key:o,device:t,state:i}),p=Object(u.b)(c,"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(a.d)(d(m),d(h));return{devices:s,disabled:o,id:(y=b,Object(n.defaultValueKey)({key:y,device:t,state:i})),type:"colorFields",states:r,value:{hex:v,opacity:d(g)},onChange:({hex:o})=>{const r=k(k({},{v:e,device:t,state:i,prefix:c,onChange:l}),{hex:o});return Object(n.saveOnChanges)(r)}};var y}function R({v:e,device:t,disabled:o=!1,state:i,states:r,onChange:a,prefix:l="",devices:c="all"}){const s=o=>Object(n.defaultValueValue)({v:e,key:o,device:t,state:i}),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:c,disabled:o,states:r,id:(v=p,Object(n.defaultValueKey)({key:v,device:t,state:i})),type:"multiInput",config:{defaultIcon:["nc-shadow"],icons:["nc-blur","nc-size","nc-vertical","nc-horizontal"]},value:[s(b),s(m),s(h),s(g)],onChange:([o,r,c,s])=>{const d=k(k({},{v:e,device:t,state:i,prefix:l,onChange:a}),{boxShadowBlur:o,boxShadowSpread:r,boxShadowVertical:c,boxShadowHorizontal:s});return Object(n.saveOnChanges)(d)}};var v}function H({v:e,device:t,state:o,devices:i="all",disabled:a=!1}){return{id:(l="linkAnchor",Object(n.defaultValueKey)({key:l,device:t,state:o})),label:Object(r.a)("Block"),type:"blockThumbnail",devices:i,disabled:a,value:(i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}))("linkAnchor")};var l}function L({disabled:e=!1,devices:t="all"}){return{id:"linkToSlide",type:"number-dev",label:Object(r.a)("Slide"),disabled:e,devices:t,config:{min:1,max:1e6}}}function M({v:e,device:t,state:o,disabled:i=!1,devices:a="all"}){return{id:Object(n.defaultValueKey)({key:"linkUpload",device:t,state:o}),label:Object(r.a)("File"),type:"fileUpload",disabled:i,devices:a,value:Object(n.defaultValueValue)({v:e,key:"linkUpload",device:t,state:o})}}function I({v:e,config:t,devices:o="all"}){const i=Object(a.c)(t,l.a.link);return{id:"linkExternal",type:"input",devices:o,label:Object(r.a)("Link to"),placeholder:"http://",population:{show:i.length>0,choices:i},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 W({v:e,device:t,state:o,devices:i="all"}){return{id:(a="linkExternalBlank",Object(n.defaultValueKey)({key:a,device:t,state:o})),type:"switch",label:Object(r.a)("Open In New Tab"),devices:i,value:(i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}))("linkExternalBlank")};var a}function A({v:e,device:t,state:o,devices:i="all"}){return{id:(a="linkExternalRel",Object(n.defaultValueKey)({key:a,device:t,state:o})),type:"switch",label:Object(r.a)("Make it Nofollow"),devices:i,value:(i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}))("linkExternalRel")};var a}function N({v:e,device:t,state:o,canDelete:i=!0,disabled:a=!1,component:l,devices:c="all"}){const s=e=>Object(n.defaultValueKey)({key:e,device:t,state:o}),d=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});return{id:s("linkPopup"),type:"promptAddPopup",label:Object(r.a)("Popup"),canDelete:i,disabled:a,popupKey:`${l.getId()}_${d("linkPopup")}`,devices:c,value:{value:d("linkPopup"),popups:d("popups")},onChange:({value:e,popups:t})=>({[s("linkPopup")]:e,[s("popups")]:t})}}function V(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function D(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(i.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 $({v:e,device:t,state:o,devices:i="all",disabled:a=!1,position:l=60,marginType:c,onChangeGrouped:s,onChangeUngrouped:d}){const p=e=>Object(n.defaultValueKey)({key:e,device:t,state:o}),u=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o});return{id:"margin",type:"group-dev",position:l,devices:i,disabled:a,options:[{id:"marginType",label:Object(r.a)("Margin"),type:"radioGroup-dev",choices:[{value:"grouped",icon:"nc-styling-all"},{value:"ungrouped",icon:"nc-styling-individual"}]},{id:p("margin"),type:"slider",disabled:"grouped"!==u("marginType"),slider:{min:-100,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:u("margin"),suffix:u("marginSuffix")},onChange:({value:i,suffix:r})=>{const a=D(D({},{v:e,device:t,state:o,marginType:c,onChange:s}),{value:i,suffix:r});return Object(n.saveOnChanges)(a)}},{id:p("marginTop"),icon:"nc-styling-top",type:"slider",disabled:"ungrouped"!==u("marginType"),slider:{min:-100,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:u("marginTop"),suffix:u("marginTopSuffix")},onChange:({value:i,suffix:r})=>{const a=D(D({},{v:e,device:t,state:o,onChange:d}),{current:"marginTop",value:i,suffix:r});return Object(n.saveOnChanges)(a)}},{id:p("marginRight"),icon:"nc-styling-right",type:"slider",disabled:"ungrouped"!==u("marginType"),slider:{min:-100,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:u("marginRight"),suffix:u("marginRightSuffix")},onChange:({value:i,suffix:r})=>{const a=D(D({},{v:e,device:t,state:o,onChange:d}),{current:"marginRight",value:i,suffix:r});return Object(n.saveOnChanges)(a)}},{id:p("marginBottom"),icon:"nc-styling-bottom",type:"slider",disabled:"ungrouped"!==u("marginType"),slider:{min:-100,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:u("marginBottom"),suffix:u("marginBottomSuffix")},onChange:({value:i,suffix:r})=>{const a=D(D({},{v:e,device:t,state:o,onChange:d}),{current:"marginBottom",value:i,suffix:r});return Object(n.saveOnChanges)(a)}},{id:p("marginLeft"),icon:"nc-styling-left",type:"slider",disabled:"ungrouped"!==u("marginType"),slider:{min:-100,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"},{title:"%",value:"%"}]},value:{value:u("marginLeft"),suffix:u("marginLeftSuffix")},onChange:({value:i,suffix:r})=>{const a=D(D({},{v:e,device:t,state:o,onChange:d}),{current:"marginLeft",value:i,suffix:r});return Object(n.saveOnChanges)(a)}}]}}function G({v:e,device:t,devices:o="all",position:i=10,closeTooltip:n=!0}){return"tablet"===t?function({v:e,position:t=10,devices:o="all",closeTooltip:i=!0}){return{id:"showOnTablet",type:"toggle",devices:o,position:t,closeTooltip:i,choices:[{icon:"nc-eye-17",title:Object(r.a)("Disable on Tablet"),value:"on"},{icon:"nc-eye-ban-18",title:Object(r.a)("Enable on Tablet"),value:"off"}],value:e.showOnTablet}}({v:e,position:i,devices:o,closeTooltip:n}):"mobile"===t?function({v:e,position:t=10,devices:o="all",closeTooltip:i=!0}){return{id:"showOnMobile",type:"toggle",devices:o,position:t,closeTooltip:i,choices:[{icon:"nc-eye-17",title:Object(r.a)("Disable on Mobile"),value:"on"},{icon:"nc-eye-ban-18",title:Object(r.a)("Enable on Mobile"),value:"off"}],value:e.showOnMobile}}({v:e,position:i,devices:o,closeTooltip:n}):{}}function U({v:e,position:t=40,device:o,state:i,devices:a="all",population:l}){const c=e=>Object(n.defaultValueKey)({key:e,device:o,state:i}),s=t=>Object(n.defaultValueValue)({v:e,key:t,device:o,state:i});return{id:c("customClassName"),label:Object(r.a)("CSS Class"),position:t,display:"block",type:"input",devices:a,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:s("customClassName"),population:s("cssClassPopulation")},onChange:({value:e,population:t})=>({[c("customClassName")]:e,[c("cssClassPopulation")]:t})}}o(294);function K({v:e,device:t,prefix:o="",devices:i="all",state:r,states:a}){return{id:Object(n.defaultValueKey)({key:Object(u.b)(o,"hue"),device:t,state:r}),icon:"nc-hue",className:"brz-ed-option__slider--hue",type:"slider",devices:i,states:a,slider:{min:0,max:360},input:{show:!0,min:0,max:360},suffix:{show:!0,choices:[{title:"deg",value:"deg"}]},value:{value:Object(n.defaultValueValue)({v:e,key:Object(u.b)(o,"hue"),device:t,state:r})},onChange:({value:i})=>({[Object(n.defaultValueKey)({v:e,key:Object(u.b)(o,"hue"),device:t,state:r})]:i})}}function q({v:e,device:t,prefix:o="",devices:i="all",state:r,states:a}){return{id:Object(n.defaultValueKey)({key:Object(u.b)(o,"saturation"),device:t,state:r}),icon:"nc-saturation",className:"brz-ed-option__slider--saturation",type:"slider",devices:i,states:a,slider:{min:0,max:200},input:{show:!0,min:0,max:200},suffix:{show:!0,choices:[{title:"%",value:"%"}]},value:{value:Object(n.defaultValueValue)({v:e,key:Object(u.b)(o,"saturation"),device:t,state:r})},onChange:({value:e})=>({[Object(n.defaultValueKey)({key:Object(u.b)(o,"saturation"),device:t,state:r})]:e})}}function Y({v:e,device:t,prefix:o="",devices:i="all",state:r,states:a}){return{id:Object(n.defaultValueKey)({key:Object(u.b)(o,"brightness"),device:t,state:r}),icon:"nc-brightness",className:"brz-ed-option__slider--brightness",type:"slider",devices:i,states:a,slider:{min:10,max:200},input:{show:!0,min:0,max:200},suffix:{show:!0,choices:[{title:"%",value:"%"}]},value:{value:Object(n.defaultValueValue)({v:e,key:Object(u.b)(o,"brightness"),device:t,state:r})},onChange:({value:e})=>({[Object(n.defaultValueKey)({key:Object(u.b)(o,"brightness"),device:t,state:r})]:e})}}function X({v:e,device:t,prefix:o="",devices:i="all",state:r,states:a}){return{id:Object(n.defaultValueKey)({key:Object(u.b)(o,"contrast"),device:t,state:r}),icon:"nc-contrast",className:"brz-ed-option__slider--contrast",type:"slider",devices:i,states:a,slider:{min:0,max:200},input:{show:!0,min:0,max:200},suffix:{show:!0,choices:[{title:"%",value:"%"}]},value:{value:Object(n.defaultValueValue)({v:e,key:Object(u.b)(o,"contrast"),device:t,state:r})},onChange:({value:e})=>({[Object(n.defaultValueKey)({key:Object(u.b)(o,"contrast"),device:t,state:r})]:e})}}function J({devices:e="all"}){return{id:"toolbarSettings",type:"popover-dev",devices:e,disabled:!0}}function Z({devices:e="responsive"}){return{id:"showOnTablet",type:"toggle",disabled:!0,devices:e}}function Q({devices:e="responsive"}){return{id:"showOnMobile",type:"toggle",disabled:!0,devices:e}}function ee({device:e}){let t;return t="tablet"===e?Z({}):"mobile"===e?Q({}):{},t}function te({prefix:e="",devices:t="all"}){return{devices:t,id:Object(u.b)(e,"padding"),type:"group-dev",disabled:!0}}function oe({devices:e="all"}){return{devices:e,id:"margin",type:"group-dev",disabled:!0}}function ie({v:e,device:t,devices:o="all",state:i,states:a}){const l=o=>Object(n.defaultValueValue)({v:e,key:o,device:t,state:i});return{id:(c="media",Object(n.defaultValueKey)({key:c,device:t,state:i})),label:Object(r.a)("Type"),type:"radioGroup",devices:o,states:a,choices:[{value:"image",icon:"nc-media-image"},{value:"map",icon:"nc-media-map"}],value:"video"===l("media")?"image":l("media")};var c}var re=o(13),ne=o(31);function ae({device:e,component:t,state:o,blockType:i,position:a=90,disabled:l=!1,devices:c="all"}){return{devices:c,position:a,blockType:i,id:(s="makeItSaved",Object(n.defaultValueKey)({key:s,device:e,state:o})),type:"savedBlock",icon:"nc-save-section",disabled:l,title:Object(r.a)("Save"),tooltipContent:Object(r.a)("Saved"),value:{blockId:t.getId()}};var s}const le=(e,t)=>{if(e&&"popup"===t)return e.split("_")[0]};function ce({device:e,component:t,state:o,blockType:i,devices:a="all"}){const l=t.getId(),c=re.a.getAll(),s=Object(ne.b)(c)&&Object(ne.i)(c);return{devices:a,blockType:i,id:(d="makeItGlobal",Object(n.defaultValueKey)({key:d,device:e,state:o})),label:Object(r.a)("Make it Global"),type:"globalBlock",disabled:s,position:125,value:{_id:l,parentId:le(t.props.instanceKey,i)}};var d}function se({v:e,device:t,devices:o="all",disabled:i=!1,state:a}){const l=e=>Object(n.defaultValueKey)({key:e,device:t,state:a});return{id:l("iconSize"),label:Object(r.a)("Play"),type:"slider",devices:o,disabled:i,roles:["admin"],slider:{min:50,max:200},input:{show:!0,min:50,max:200},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:(c="iconSize",Object(n.defaultValueValue)({v:e,key:c,device:t,state:a}))},onChange:({value:e})=>({[l("iconSize")]:e,[l("iconSizeWidth")]:e,[l("iconSizeHeight")]:e})};var c}function de({v:e,device:t,state:o,devices:i="all",disabled:a=!1}){return{id:(l="custom",Object(n.defaultValueKey)({key:l,device:t,state:o})),label:Object(r.a)("File"),type:"fileUpload",acceptedExtensions:["video/*"],devices:i,disabled:a,value:(i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}))("custom")};var l}function pe({v:e,device:t,devices:o="all",disabled:i=!1,state:a}){const l=e=>Object(n.defaultValueKey)({key:e,device:t,state:a}),c=o=>Object(n.defaultValueValue)({v:e,key:o,device:t,state:a});return{id:l("style"),label:Object(r.a)("Style"),type:"radioGroup",devices:o,disabled:i,choices:[{value:"basic",icon:"nc-sndcloud-style-1"},{value:"artwork",icon:"nc-sndcloud-style-2"}],value:c("style"),onChange:e=>({[l("style")]:e,[l("showArtwork")]:"basic"===e?"off":"on",[l("height")]:c("basic"===e?"mediumHeight":"artwork"===e?"largeHeight":"height")})}}function ue({v:e,device:t,devices:o="all",state:i,position:a=350}){return{id:Object(n.defaultValueKey)({key:"itemPadding",device:t,state:i}),type:"slider",label:Object(r.a)("Spacing"),roles:["admin"],devices:o,position:a,slider:{min:0,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},disabled:1===e.items.length,value:{value:Object(n.defaultValueValue)({v:e,key:"itemPadding",device:t,state:i})},onChange:({value:e})=>({[Object(n.defaultValueKey)({key:"itemPadding",device:t,state:i})]:e,[Object(n.defaultValueKey)({key:"itemPaddingRight",device:t,state:i})]:e,[Object(n.defaultValueKey)({key:"itemPaddingLeft",device:t,state:i})]:e})}}function be({v:e,config:t,inGallery:o,device:i,state:c,devices:s="all"}){const d=t=>Object(n.defaultValueValue)({v:e,key:t,device:i,state:c}),p=Object(a.c)(t,l.a.link);return{id:(u="linkExternal",Object(n.defaultValueKey)({key:u,device:i,state:c})),type:"input",label:Object(r.a)("Link to"),placeholder:"http://",devices:s,population:{show:p.length>0&&!o,choices:p},value:{population:d("linkPopulation"),value:d("linkExternal")},onChange:({value:e,population:t},{changed:o})=>({linkExternal:e,linkPopulation:t,linkExternalType:"value"===o||""===t?"linkExternal":"linkPopulation"})};var u}function me({devices:e="all",gallery:t,enableTags:o}){const{inGallery:i=!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:!i||!o}}o(18),o(40),o(145);var he=o(10);function ge({v:e,device:t,state:o,devices:i="all"}){const a=e=>Object(n.defaultValueKey)({key:e,device:t,state:o});return{devices:i,id:a("padding"),type:"slider",label:Object(r.a)("Spacing"),slider:{min:0,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:(l="padding",Object(n.defaultValueValue)({v:e,key:l,device:t,state:o}))},onChange:({value:e})=>({[a("padding")]:e,[a("paddingRight")]:e,[a("paddingBottom")]:e,[a("paddingLeft")]:e})};var l}function ve({v:e,device:t,state:o,devices:i="all"}){const r=he.default.pluck(e.items[0].value.items,"value");return{devices:i,id:(a="apps",Object(n.defaultValueKey)({key:a,device:t,state:o})),type:"formApps",icon:"nc-extensions-2",value:{id:e._id,fields:r}};var a}function ye({v:e,device:t,state:o,devices:i="all"}){const a=e=>Object(n.defaultValueKey)({key:e,device:t,state:o}),l=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}),c={small:l("sizeSmallPadding"),medium:l("sizeMediumPadding"),large:l("sizeLargePadding")};return{devices:i,id:a("size"),label:Object(r.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=>({[a("size")]:e,[a("paddingTop")]:c[e],[a("paddingRight")]:c[e]+10,[a("paddingBottom")]:c[e],[a("paddingLeft")]:c[e]+10})}}function fe({v:e,device:t,state:o,prefix:i="field",devices:a="all"}){const l=e=>Object(n.defaultValueKey)({key:e,device:t,state:o});return{devices:a,id:l(Object(u.b)(i,"padding")),type:"slider",label:Object(r.a)("Spacing"),slider:{min:0,max:100},input:{show:!0},suffix:{show:!0,choices:[{title:"px",value:"px"}]},value:{value:(c=Object(u.b)(i,"padding"),Object(n.defaultValueValue)({v:e,key:c,device:t,state:o}))},onChange:({value:e})=>({[l(Object(u.b)(i,"padding"))]:e,[l(Object(u.b)(i,"paddingRight"))]:e,[l(Object(u.b)(i,"paddingBottom"))]:e,[l(Object(u.b)(i,"paddingLeft"))]:e})};var c}function Se({v:e,device:t,devices:o="all",state:i}){return{id:(l="shapeTopType",Object(n.defaultValueKey)({key:l,device:t,state:i})),label:Object(r.a)("Type"),type:"select",devices:o,className:"brz-control__select-option--icon",choices:Object(a.f)(),value:(o=>Object(n.defaultValueValue)({v:e,key:o,device:t,state:i}))("shapeTopType")};var l}function Oe({v:e,device:t,devices:o="all",disabled:i=!1,state:a}){const l=e=>Object(n.defaultValueKey)({key:e,device:t,state:a});return{id:l("shapeTopFlip"),label:Object(r.a)("Flip"),type:"checkGroup",disabled:i,devices:o,choices:[{value:"shapeTopHorizontal",icon:"nc-flip-horizontal"}],value:{shapeTopHorizontal:"on"===(c="shapeTopHorizontal",Object(n.defaultValueValue)({v:e,key:c,device:t,state:a}))},onChange:({shapeTopHorizontal:e})=>({[l("shapeTopHorizontal")]:e?"on":"off"})};var c}function xe({v:e,device:t,devices:o="all",state:i}){return{id:(l="shapeBottomType",Object(n.defaultValueKey)({key:l,device:t,state:i})),label:Object(r.a)("Type"),type:"select",devices:o,className:"brz-control__select-option--icon brz-control__select-option--icon--bottom",choices:Object(a.f)(),value:(o=>Object(n.defaultValueValue)({v:e,key:o,device:t,state:i}))("shapeBottomType")};var l}function Ce({v:e,device:t,devices:o="all",disabled:i=!1,state:a}){const l=e=>Object(n.defaultValueKey)({key:e,device:t,state:a});return{id:l("shapeBottomFlip"),label:Object(r.a)("Flip"),type:"checkGroup",devices:o,disabled:i,choices:[{value:"shapeBottomHorizontal",icon:"nc-flip-horizontal"}],value:{shapeBottomHorizontal:"on"===(c="shapeBottomHorizontal",Object(n.defaultValueValue)({v:e,key:c,device:t,state:a}))},onChange:({shapeBottomHorizontal:e})=>({[l("shapeBottomHorizontal")]:e?"on":"off"})};var c}function we({v:e,device:t,state:o,devices:i="all",disabled:a=!1}){return{id:(l="audio",Object(n.defaultValueKey)({key:l,device:t,state:o})),label:Object(r.a)("File"),type:"fileUpload",acceptedExtensions:[".mp3",".ogg",".wav"],devices:i,disabled:a,value:(i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}))("audio")};var l}function Be({v:e,device:t,state:o,devices:i="all",disabled:a=!1}){const l=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}),c=e=>Object(n.defaultValueKey)({key:e,device:t,state:o});return{id:c("iconSize"),label:Object(r.a)("Icons"),type:"radioGroup",disabled:a,devices:i,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=>({[c("iconSize")]:e,iconCustomSize:l("small"===e?"smallIconSize":"medium"===e?"mediumIconSize":"large"===e?"largeIconSize":"iconCustomSize")})}}function je({v:e,device:t,devices:o="all",state:i}){const a="desktop"===t?6:Math.min(e.gridColumn*e.gridRow,6);return{id:Object(n.defaultValueKey)({key:"gridColumn",device:t,state:i}),type:"slider",label:Object(r.a)("Columns"),devices:o,className:"brz-ed-option__slider--skin-dev",slider:{min:1,max:a,step:1},input:{show:!0,min:1,max:a,step:1},value:{value:Object(n.defaultValueValue)({v:e,key:"gridColumn",device:t,state:i}),suffix:null},onChange:({value:o})=>{const r=Object(n.defaultValueKey)({key:"gridColumn",device:t,state:i}),a={[r]:o,[r+"Suffix"]:""};if("desktop"===t){const t=Number(o)*Number(e.gridRow);t<e.tabletGridColumn&&(a.tabletGridColumn=t),t<e.mobileGridColumn&&(a.mobileGridColumn=t)}return a}}}function Te({v:e,device:t,devices:o="all",state:i}){return{id:Object(n.defaultValueKey)({key:"gridRow",device:t,state:i}),type:"slider",label:Object(r.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(n.defaultValueValue)({v:e,key:"gridRow",device:t,state:i}),suffix:null},onChange:({value:o})=>{const r=Object(n.defaultValueKey)({key:"gridRow",device:t,state:i}),a={[r]:o,[r+"Suffix"]:""};if("desktop"===t){const t=Number(o)*Number(e.gridColumn);t<e.tabletGridColumn&&(a.tabletGridColumn=t),t<e.mobileGridColumn&&(a.mobileGridColumn=t)}return a}}}function Pe({v:e,device:t,state:o,choices:i=[],disabled:a=!1,devices:l="all"}){const c=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}),s=e=>Object(n.defaultValueKey)({key:e,device:t,state:o});return{id:s("taxonomy"),label:Object(r.a)("Categories"),disabled:a,devices:l,type:"select",choices:i,value:`${c("taxonomy")}|${c("taxonomyId")}`,onChange:e=>{const[t,o]=e.split("|");return{[s("taxonomy")]:t,[s("taxonomyId")]:o}}}}function Ee({v:e,device:t,state:o,disabled:i=!1,devices:a="all"}){const l=i=>Object(n.defaultValueValue)({v:e,key:i,device:t,state:o}),c=e=>Object(n.defaultValueKey)({key:e,device:t,state:o});return{id:"sliderPaddingType",type:"group-dev",disabled:i,devices:a,position:50,options:[{id:"sliderPaddingType",label:Object(r.a)("Padding"),type:"radioGroup-dev",choices:[{value:"grouped",icon:"nc-styling-all"},{value:"ungrouped",icon:"nc-styling-individual"}]},{id:c("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})=>({[c("sliderPadding")]:e,[c("sliderPaddingSuffix")]:t,[c("sliderPaddingTop")]:e,[c("sliderPaddingRight")]:e,[c("sliderPaddingBottom")]:e,[c("sliderPaddingLeft")]:e})},{id:c("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})=>({[c("sliderPaddingTop")]:e,[c("sliderPaddingTopSuffix")]:t,[c("sliderPadding")]:e===l("sliderPaddingRight")&&e===l("sliderPaddingLeft")&&e===l("sliderPaddingBottom")?e:l("sliderPadding")})},{id:c("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})=>({[c("sliderPaddingRight")]:e,[c("sliderPaddingRightSuffix")]:t,[c("sliderPadding")]:e===l("sliderPaddingTop")&&e===l("sliderPaddingLeft")&&e===l("sliderPaddingBottom")?e:l("sliderPadding")})},{id:c("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})=>({[c("sliderPaddingBottom")]:e,[c("sliderPaddingBottomSuffix")]:t,[c("sliderPadding")]:e===l("sliderPaddingRight")&&e===l("sliderPaddingLeft")&&e===l("sliderPaddingTop")?e:l("sliderPadding")})},{id:c("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})=>({[c("sliderPaddingLeft")]:e,[c("sliderPaddingLeftSuffix")]:t,[c("sliderPadding")]:e===l("sliderPaddingRight")&&e===l("sliderPaddingTop")&&e===l("sliderPaddingBottom")?e:l("sliderPadding")})}]}}function _e({v:e,device:t,devices:o="all",state:i}){const a=e=>Object(n.defaultValueKey)({key:e,device:t,state:i});return{id:a("twitter"),label:Object(r.a)("Twitter"),type:"select",devices:o,choices:[{title:Object(r.a)("Embed"),value:"embed"},{title:Object(r.a)("Button"),value:"button"}],value:(l="twitter",Object(n.defaultValueValue)({v:e,key:l,device:t,state:i})),onChange:e=>({[a("twitter")]:e,[a("twitterType")]:"embed"===e?"embed":"followButton"})};var l}},function(e,t,o){"use strict";o.d(t,"d",(function(){return r})),o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return l})),o.d(t,"a",(function(){return c}));var i=o(20);const r=e=>{switch(typeof e){case"string":return e;case"number":return e.toString();default:return}};n=r;var n;const a="",l=e=>{var t;return null!==(t=r(e))&&void 0!==t?t:""},c={read:r,empty:a,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 i})),o.d(t,"a",(function(){return r}));const i=e=>{if(""===e||"number"!=typeof e&&"string"!=typeof e)return;const t=Number(e);return isNaN(t)?void 0:t},r={read:i}},function(e,t,o){"use strict";o.d(t,"k",(function(){return u})),o.d(t,"i",(function(){return b})),o.d(t,"a",(function(){return m})),o.d(t,"c",(function(){return h})),o.d(t,"j",(function(){return g})),o.d(t,"b",(function(){return v})),o.d(t,"g",(function(){return y})),o.d(t,"e",(function(){return f})),o.d(t,"f",(function(){return S})),o.d(t,"h",(function(){return O})),o.d(t,"d",(function(){return x})),o.d(t,"l",(function(){return C})),o.d(t,"z",(function(){return s})),o.d(t,"E",(function(){return c})),o.d(t,"x",(function(){return w})),o.d(t,"w",(function(){return B})),o.d(t,"y",(function(){return j})),o.d(t,"v",(function(){return T})),o.d(t,"M",(function(){return P})),o.d(t,"H",(function(){return E})),o.d(t,"J",(function(){return _})),o.d(t,"n",(function(){return k})),o.d(t,"p",(function(){return z})),o.d(t,"I",(function(){return F})),o.d(t,"K",(function(){return R})),o.d(t,"S",(function(){return H})),o.d(t,"Q",(function(){return L})),o.d(t,"G",(function(){return M})),o.d(t,"r",(function(){return I})),o.d(t,"O",(function(){return W})),o.d(t,"N",(function(){return A})),o.d(t,"m",(function(){return N})),o.d(t,"o",(function(){return V})),o.d(t,"q",(function(){return D})),o.d(t,"L",(function(){return $})),o.d(t,"A",(function(){return G})),o.d(t,"B",(function(){return U})),o.d(t,"C",(function(){return K})),o.d(t,"t",(function(){return q})),o.d(t,"u",(function(){return Y})),o.d(t,"s",(function(){return X})),o.d(t,"D",(function(){return J})),o.d(t,"F",(function(){return Z})),o.d(t,"R",(function(){return Q})),o.d(t,"P",(function(){return ee}));var i=o(2),r=o(24),n=o(10),a=o(17),l=o(62);function c(){return{type:"UNDO"}}function s(){return{type:"REDO"}}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function p(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(i.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 u="UPDATE_DISABLED_ELEMENTS",b="UPDATE_CURRENT_KIT_ID",m="ADD_FONTS",h="DELETE_FONTS",g="UPDATE_DEFAULT_FONT",v="ADD_GLOBAL_BLOCK",y="IMPORT_TEMPLATE",f="IMPORT_KIT",S="IMPORT_STORY",O="PUBLISH",x="FETCH_PAGE_SUCCESS",C="UPDATE_EXTRA_FONT_STYLES";function w(e){return{type:"MAKE_NORMAL_TO_GLOBAL_BLOCK",payload:e}}function B({fromBlockId:e,block:t}){return{type:"MAKE_GLOBAL_TO_NORMAL_BLOCK",payload:{fromBlockId:e,block:t}}}function j(e){return{type:"MAKE_POPUP_TO_GLOBAL_BLOCK",payload:e}}function T({fromBlockId:e,parentId:t,block:o}){return{type:"MAKE_GLOBAL_BLOCK_TO_POPUP",payload:{fromBlockId:e,parentId:t,block:o}}}function P({id:e,data:t,meta:o}){return{type:"UPDATE_GLOBAL_BLOCK",payload:{id:e,data:t},meta:p({is_autosave:1},o)}}const E=e=>({type:"UPDATE_CURRENT_KIT_ID",payload:e}),_=e=>({type:"UPDATE_DISABLED_ELEMENTS",payload:e}),k=e=>(t,o)=>{const i=Object(a.o)(o()),c=e.reduce((e,t)=>{var o;const{type:r,fonts:a}=t,c=(null===(o=i[r])||void 0===o?void 0:o.data)||[],[s,d]=n.default.partition(a,e=>Object.prototype.hasOwnProperty.call(e,"deleted")),u=d.map(e=>p(p({},e),{},{brizyId:Object(l.a)()}));return p(p({},e),{},{[r]:{data:c.map(e=>s.find(({brizyId:t})=>e.brizyId===t)||e).concat(u)}})},{});return t({type:"ADD_FONTS",payload:Object(r.mergeDeep)(i,c)})},z=e=>(t,o)=>{var i;const{type:n,fonts:l}=e,c=Object(a.o)(o()),s={[n]:{data:(c[n]&&(null===(i=c[n])||void 0===i?void 0:i.data)||[]).map(e=>l.some(({brizyId:t})=>t===e.brizyId)?p(p({},e),{},{deleted:!0}):e)}};return t({type:"DELETE_FONTS",payload:Object(r.mergeDeep)(c,s)})},F=e=>({type:"UPDATE_DEFAULT_FONT",payload:e}),R=e=>({type:"UPDATE_EXTRA_FONT_STYLES",payload:e});function H(e,t){return{type:"UPDATE_UI",key:e,value:t}}const L=e=>({type:"STORE_WAS_CHANGED",payload:e});function M({blocks:e,meta:t={}}){return{type:"UPDATE_BLOCKS",payload:{blocks:e},meta:p({is_autosave:1},t)}}const I=()=>({type:x}),W=e=>t=>new Promise((o,i)=>{t({type:"PUBLISH",payload:{status:e},meta:{onSuccess:o,onError:i}})}),A=e=>({type:"UPDATE_PAGE_LAYOUT",payload:{layout:e}});function N(e,t={insertIndex:0}){return{type:"ADD_BLOCK",payload:e,meta:t}}function V(e,t={insertIndex:0}){return{type:"ADD_GLOBAL_BLOCK",payload:e,meta:t}}function D({id:e}){return{type:"DELETE_GLOBAL_BLOCK",payload:{id:e}}}function $({data:e,meta:t}){return{type:"UPDATE_GB_RULES",payload:e,meta:t}}function G({index:e,id:t}){return{type:"REMOVE_BLOCK",payload:{index:e,id:t}}}function U(){return{type:"REMOVE_BLOCKS"}}function K(e){return{type:"REORDER_BLOCKS",payload:e}}function q(e,t={insertIndex:0}){return{type:S,payload:e,meta:t}}function Y(e,t={insertIndex:0}){return{meta:t,type:"IMPORT_TEMPLATE",payload:e}}const X=e=>({type:"IMPORT_KIT",payload:e});function J(e){return H("deviceMode",e)}function Z(e){return{type:"UPDATE_AUTHORIZATION",payload:e}}function Q(e){return{type:"UPDATE_SYNC_ALLOWED",payload:e}}function ee(e){return{type:"UPDATE_PAGE_TITLE",payload:e}}},function(e,t,o){"use strict";o.d(t,"a",(function(){return N})),o.d(t,"b",(function(){return V}));var i=o(246),r=o(566),n=o(2),a=o(38),l=o(17),c=o(59),s=o(71),d=o(101),p=o(124);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function b(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 m(e,t){return b(b({},e),{},{history:{currSnapshot:t.getCurrentSnapshot(),prevSnapshot:t.getPreviousSnapshot(),canUndo:t.canUndo(),canRedo:t.canRedo()}})}var h=o(379);var g=o(18),v=o(31);var y=o(24),f=o(54);function S(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function O(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}var x=o(10);function C(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function w(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}Object(a.c)(!1);var B=o(48),j=o(26);function T(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function P(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(n.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={deviceMode:"desktop",leftSidebar:{isOpen:!1,drawerContentType:void 0},rightSidebar:{isOpen:!1,lock:void 0,alignment:"right",activeTab:void 0},showHiddenElements:!1,currentRole:"default",currentLanguage:"default"};function _(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function k(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?_(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function z(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function F(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}const R={value:{},path:[]};const H=e=>e.type&&e.value&&e.value._id&&e.value._thumbnailSrc;function L(e){const t={};return Object(c.f)(e,e=>{if(H(e)){const o=e.value;t[e.value._id]={_thumbnailSrc:o._thumbnailSrc,_thumbnailWidth:o._thumbnailWidth,_thumbnailHeight:o._thumbnailHeight,_thumbnailTime:o._thumbnailTime}}}),t}var M,I,W=function(e,t){const o=new p.a;return function(i,r){switch(r.type){case p.c:case p.b:{const e=r.type===p.c?o.canUndo():o.canRedo(),t=r.type===p.c?o.undo:o.redo;return e?(t.call(o),m(b(b(b({},i),o.getCurrentSnapshot()),{},{storeWasChanged:d.a.changed}),o)):"object"==typeof(a=i).history&&null!==a.history&&Object(c.b)(["currSnapshot","prevSnapshot","canUndo","canRedo"],a.history)?i:m(b(b(b({},i),o.getCurrentSnapshot()),{},{storeWasChanged:d.a.changed}),o)}default:{const a=e(i,r);if(!r.type.includes("@@redux/INIT")){var n;t.onBeforeUpdate&&t.onBeforeUpdate(i,r,o);const e=function(e,t){return t.reduce((t,o)=>(t[o]=e[o],t),{})}(a,t.keysToTrack);o.update(e,{replacePresent:Boolean(null==r||null===(n=r.meta)||void 0===n?void 0:n.historyReplacePresent)})}return m(a,o)}}var a}}((M={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 i;const{page:e,globalBlocks:o}=t.payload,r=(null===(i=e.data)||void 0===i?void 0:i.items)||[];if(g.d&&0===r.length)return{ecupxjcqmrpxjdimoebbkbnotrlufkfokjvr:{type:"Story",value:{_styles:["story"],items:[{type:"StoryItem",value:{_styles:["story-item"],items:[],_id:"dfmwxzkwbiaezltvsxhdinhplvimzenkiqto"}}],_id:"ecupxjcqmrpxjdimoebbkbnotrlufkfokjvr"},blockId:"StoryDefault"}};const n=r.reduce((e,t)=>{const{_id:o,globalBlockId:i}=t.value;return e[i||o]=t,e},{}),l=Object.entries(o).reduce((e,[t,o])=>(e[t]=Object(a.a)(o.data,e=>{e.value._id=t}),e),{});return Object(a.a)(O(O({},n),l),e=>{Object(c.f)(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:i}=t.payload,{insertIndex:r}=t.meta,n=Object(l.d)(o)[0],a=Object(g.l)(e[n].value.items,r,i);return Object(y.setIn)(e,[n,"value","items"],a)}case"ADD_BLOCK":{const{block:o}=t.payload;return O(O({},e),{},{[o.value._id]:o})}case"MAKE_POPUP_TO_GLOBAL_BLOCK":{const{data:o}=t.payload,i=Object(g.r)(e=>e.value._id===o.value._id?{blockId:e.blockId,type:"GlobalBlock",value:{_id:o.value._id}}:e,e);return Object(a.a)(i,e=>{e[o.value._id]=o})}case"MAKE_GLOBAL_BLOCK_TO_POPUP":{const{block:o,fromBlockId:i,parentId:r}=t.payload;if(g.b)return O(O({},e),{},{[o.value._id]:o});const n=e=>e.value._id===i?o:e,a=e=>Object(g.o)(e)?Object(c.c)(a,n(e)):Object(c.c)(a,e),l=e=>!!Object(g.o)(e)&&e.value._id===r,s=e=>l(e)?a(e):Object(c.c)(s,e);return s(e)}case"MAKE_GLOBAL_TO_NORMAL_BLOCK":{const{block:o}=t.payload;return O(O({},e),{},{[o.value._id]:o})}case"MAKE_NORMAL_TO_GLOBAL_BLOCK":{const{data:o}=t.payload;return Object(a.a)(e,e=>{e[o.value._id]=o})}case"DELETE_GLOBAL_BLOCK":{const{id:o}=t.payload;return Object(a.a)(e,e=>{e[o].deleted=!0})}case"REMOVE_BLOCK":{const{index:i}=t.payload,r=Object(l.u)(o),n=Object.keys(r),c=Object(l.d)(o)[i];return n.includes(c)?e:Object(a.a)(e,e=>{delete e[c]})}case"REMOVE_BLOCKS":{const t=Object(l.d)(o),i=Object(l.u)(o),r=Object.keys(i),n=t.filter(e=>!r.includes(e));return Object(a.a)(e,e=>{n.forEach(t=>{delete e[t]})})}case"UPDATE_GLOBAL_BLOCK":{const{id:o,data:i}=t.payload;return null===i.value?e:O(O({},e),{},{[o]:i})}case"IMPORT_TEMPLATE":case"UPDATE_BLOCKS":{const{blocks:o}=t.payload,i=o.reduce((e,t)=>("GlobalBlock"===t.type||(e[t.value._id]=t),e),{});return O(O({},e),i)}default:return e}},blocksThumbnailSizes:function(e={},t){switch(t.type){case B.e:return t.payload.blocksThumbnailSizes;default:return e}},copiedElement:function(e=R,t){switch(t.type){case B.b:return F(F({},e),t.value);default:return e}},currentStyle:function(e={},t,o){switch(t.type){case B.e:{const{project:e}=t.payload;return e.data.styles.find(t=>t.id===e.data.selectedStyle)}case B.n:return t.payload;case B.o:{const e=t.payload;return o.styles.find(({id:t})=>t===e)}case j.f:case j.g:{const{currentStyleId:i,styles:r}=t.payload,n=[...null!=r?r:[],...o.styles];return i?n.find(e=>e.id===i):e}default:return e}},currentStyleId:function(e="",t){switch(t.type){case B.e:{const{project:e}=t.payload;return e.data.selectedStyle}case B.o:return t.payload;case j.f:case j.g:{const{currentStyleId:o}=t.payload;return o||e}default:return e}},error:function(e=null,t){switch(t.type){case B.e:{const{projectStatus:o}=t.payload;return o.locked?{code:s.f,data:o}:e}case B.p: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:(e={},t)=>{switch(t.type){case"HYDRATE":{const{fonts:e}=t.payload;return e}case"ADD_FONTS":case"DELETE_FONTS":{const o=t.payload;return o?k(k({},e),o):e}case"IMPORT_STORY":case"IMPORT_TEMPLATE":case"IMPORT_KIT":case"ADD_BLOCK":case"ADD_GLOBAL_BLOCK":{const{fonts:o}=t.payload;return o&&0!==o.length?Object(a.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)=>{switch(t.type){case"HYDRATE":{const{globalBlocks:e,page:{data:{items:o=[]}}}=t.payload,i=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,r])=>(i.includes(o)&&!Object(f.m)(r.data)?e[o]=Object(a.a)(r,e=>{e.rules=Object(f.d)(r,!0,t.payload.page).rules,e.data.value._id=o}):e[o]=r,e),{})}case"ADD_BLOCK":return e;case"ADD_GLOBAL_BLOCK":{const{_id:i}=t.payload.block.value;return Object(f.m)(e[i].data)?e:w(w({},e),{},{[i]:Object(f.d)(e[i],!0,null==o?void 0:o.page)})}case"MAKE_POPUP_TO_GLOBAL_BLOCK":case"MAKE_NORMAL_TO_GLOBAL_BLOCK":{const{data:o,status:i,meta:r,rules:n,position:l}=t.payload;return Object(a.a)(e,e=>{e[o.value._id]={meta:r,data:o,status:i,rules:n,position:l}})}case"UPDATE_GLOBAL_BLOCK":{const{id:i,data:r}=t.payload;if(null===r.value&&!Object(f.m)(e[i].data)){const t=Object(f.d)(e[i],!1,null==o?void 0:o.page);return w(w({},e),{},{[i]:t})}return e}case"REMOVE_BLOCK":{const{index:i}=t.payload,r=Object(l.d)(o),n=Object.keys(e),a=r[i];if(n.includes(r[i])&&!Object(f.m)(e[a].data)){const t=Object(f.d)(e[a],!1,null==o?void 0:o.page);return w(w({},e),{},{[a]:t})}return e}case"MAKE_GLOBAL_TO_NORMAL_BLOCK":{const{fromBlockId:i}=t.payload,r=Object(f.d)(e[i],!1,null==o?void 0:o.page);return w(w({},e),{},{[i]:r})}case"REORDER_BLOCKS":{const{oldIndex:i,newIndex:r}=t.payload,n=Object(l.d)(o),a=Object.keys(e);if(a.includes(n[i])){const t=n[i],c=Object(y.insert)(Object(y.removeAt)(n,i),r,t),s=n[i],d=Object(f.g)(n,i,a),p=Object(f.g)(c,r,a);if("center"===d&&("top"===p||"bottom"===p)&&!Object(f.f)(Object(l.c)(o),e,null==o?void 0:o.page).includes(s)){const t=Object(f.d)(e[s],!0,null==o?void 0:o.page);return w(w({},e),{},{[s]:t})}}return e}case"REMOVE_BLOCKS":{const t=Object(l.d)(o),i=Object(l.c)(o),r=x.default.difference(t,i);return Object(a.a)(e,e=>{r.forEach(t=>{Object(f.m)(e[t].data)||(e[t]=Object(f.d)(e[t],!1,null==o?void 0:o.page))})})}case"UPDATE_BLOCKS":{const{blocks:i}=t.payload,r=Object(l.d)(o),n=i.map(e=>e.value._id),c=x.default.difference(r,n);return Object(a.a)(e,e=>{c.forEach(t=>{e[t]&&!Object(f.m)(e[t].data)&&(e[t]=Object(f.d)(e[t],!1,null==o?void 0:o.page))})})}case"UPDATE_GB_RULES":{const{id:o,rules:i}=t.payload;return Object(a.a)(e,e=>{e[o].rules=i})}case"DELETE_GLOBAL_BLOCK":{const{id:o}=t.payload;return Object(a.a)(e,e=>{e[o].data.deleted=!0})}case"PUBLISH":{const e=Object(l.r)(o),t=Object(l.s)(o),i=Object(l.e)(o).reduce((t,o)=>w(w({},t),{},{[o]:e[o]}),{}),r=Object(l.t)(o);return Object.entries(e).reduce((e,[o,n])=>(e[o]=Object(a.a)(n,e=>{e.position=r[o]||null;const a="SectionPopup"===n.data.type||"SectionPopup2"===n.data.type;(t[o]||i[o]||a)&&(e.status="publish")}),e),{})}default:return e}},changedGBIds:(e=[],t,o)=>{switch(t.type){case j.b:{const{_id:o}=t.payload.block.value;return[...e,o]}case B.i:case B.h:{const{_id:o}=t.payload.data.value;return[...e,o]}case B.f:case B.g:{const{fromBlockId:o}=t.payload;return e.includes(o)?e:[...e,o]}case B.j:{const{index:i}=t.payload,r=Object(l.d)(o)[i];return e.filter(e=>e!==r)}case B.k:{const t=Object(l.s)(o),i=Object.keys(t);return e.filter(e=>!i.includes(e))}case B.r:{const{id:o}=t.payload;return e.includes(o)?e:[...e,o]}case j.d: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,i=g.b?Object(l.x)(o):Object(l.w)(o);return Object(a.a)(i,t=>{t.status=e,t.dataVersion=t.dataVersion+1})}case"UPDATE_TRIGGERS":{const{data:o}=t.payload;return Object(a.a)(e,e=>{e.data.triggers=o,e.dataVersion=e.dataVersion+1})}case"UPDATE_POPUP_RULES":return Object(a.a)(e,e=>{e.data.rulesAmount=t.payload.rules.length,e.dataVersion=e.dataVersion+1});case"UPDATE_PAGE_LAYOUT":return Object(v.j)(e)?Object(a.a)(e,e=>{e.layout.value=t.payload.layout,e.dataVersion=e.dataVersion+1}):e;case"UPDATE_PAGE_TITLE":return Object(v.j)(e)?Object(a.a)(e,e=>{e.title=t.payload,e.dataVersion=e.dataVersion+1}):e;default:return e}},blocksOrder:(e=[],t)=>{switch(t.type){case"HYDRATE":{var o;const e=(null===(o=t.payload.page.data)||void 0===o?void 0:o.items)||[];if(g.d&&0===e.length)return["ecupxjcqmrpxjdimoebbkbnotrlufkfokjvr"];const i=e.map(e=>e.value.globalBlockId||e.value._id);return Object(f.e)(i,t.payload.globalBlocks,t.payload.page)}case"ADD_GLOBAL_BLOCK":case"ADD_BLOCK":{const{block:o}=t.payload,{insertIndex:i}=t.meta,{_id:r}=o.value;return e.includes(r)?e:Object(y.insert)(e,i,o.value._id)}case"REMOVE_BLOCK":{const{index:o}=t.payload;return Object(y.removeAt)(e,o)}case"REMOVE_BLOCKS":return[];case"MAKE_GLOBAL_BLOCK_TO_POPUP":if(g.b){const{block:o,fromBlockId:i}=t.payload;return Object(y.replaceAt)(e,e.findIndex(e=>e===i),o.value._id)}return e;case"MAKE_GLOBAL_TO_NORMAL_BLOCK":{const{block:o,fromBlockId:i}=t.payload;return Object(y.replaceAt)(e,e.findIndex(e=>e===i),o.value._id)}case"REORDER_BLOCKS":{const{oldIndex:o,newIndex:i}=t.payload,r=e[o];return Object(y.insert)(Object(y.removeAt)(e,o),i,r)}case"IMPORT_TEMPLATE":{const{blocks:o}=t.payload,{insertIndex:i}=t.meta,r=o.map(e=>e.value._id);return Object(y.insert)(e,i,r)}case"UPDATE_BLOCKS":{const{blocks:e}=t.payload;return e.map(e=>e.value._id)}case"UPDATE_GLOBAL_BLOCK":{const{id:o,data:i}=t.payload;return null===i.value?e.filter(e=>e!==o):e}default:return e}},project:(e,t,o)=>{switch(t.type){case"HYDRATE":{const{project:e}=t.payload;return e}case"PUBLISH":{const t=Object(h.a)(e),i=Object(h.a)(Object(l.G)(o));return t.equals(i)?e:Object(a.a)(Object(l.G)(o),e=>{e.dataVersion=e.dataVersion+1})}case"UPDATE_DISABLED_ELEMENTS":{const o=t.payload;return Object(a.a)(e,e=>{e.data.disabledElements=o,e.dataVersion=e.dataVersion+1})}case"IMPORT_KIT":{const{selectedKit:o}=t.payload;return Object(a.a)(e,e=>{e.data.selectedKit=o,e.dataVersion=e.dataVersion+1})}case"UPDATE_CURRENT_KIT_ID":{const o=t.payload;return Object(a.a)(e,e=>{e.data.selectedKit=o,e.dataVersion=e.dataVersion+1})}case"IMPORT_STORY":case"IMPORT_TEMPLATE":{const{styles:o,fonts:i}=t.payload;return null!=o&&o.length||null!=i&&i.length?Object(a.a)(e,e=>{e.dataVersion=e.dataVersion+1}):e}case"ADD_FONTS":case"DELETE_FONTS":return Object(a.a)(e,e=>{e.dataVersion=e.dataVersion+1});case"UPDATE_DEFAULT_FONT":{const o=t.payload;return Object(a.a)(e,e=>{e.data.font=o,e.dataVersion=e.dataVersion+1})}default:return e}},styles:function(e=[],t){switch(t.type){case B.e:{const{project:e}=t.payload;return e.data.styles}case j.f:case j.g:case j.e:{const{styles:o}=t.payload;return o?[...e,...o]:e}default:return e}},ui:function(e=E,t){switch(t.type){case"UPDATE_UI":{const{key:o,value:i}=t,r=P(P({},e),{},{[o]:i});return"deviceMode"===o&&"manual"!==r.rightSidebar.lock&&("desktop"!==i?r.rightSidebar=P(P({},r.rightSidebar),{},{isOpen:!0,lock:"auto"}):r.rightSidebar.isOpen&&(r.rightSidebar=P(P({},r.rightSidebar),{},{isOpen:!1,lock:void 0}))),r}default:return e}},storeWasChanged:(e,t)=>{switch(t.type){case"HYDRATE":return d.a.unchanged;case"ADD_BLOCK":case"REMOVE_BLOCK":case"REMOVE_BLOCKS":case"REORDER_BLOCKS":case"UPDATE_BLOCKS":case"UPDATE_GLOBAL_BLOCK":case"UPDATE_CURRENT_STYLE_ID":case"UPDATE_CURRENT_STYLE":case"UPDATE_EXTRA_FONT_STYLES":case"IMPORT_TEMPLATE":case"UNDO":case"REDO":return d.a.changed;case"PUBLISH":return d.a.pending;case"STORE_WAS_CHANGED":return t.payload;case"UPDATE_ERROR":return d.a.unchanged;default:return e}}},I={screenshots:function(e={},t,o,i){switch(t.type){case B.e:case j.h:{const e=L(i.page.data),t={};for(const[e,o]of Object.entries(i.globalBlocks)){const i=o.data;if(H(i)){const o=i.value;t[e]={_thumbnailSrc:o._thumbnailSrc,_thumbnailWidth:o._thumbnailWidth,_thumbnailHeight:o._thumbnailHeight,_thumbnailTime:o._thumbnailTime}}Object.assign(t,L(i.value))}return F(F(F({},e),t),{},{_published:F(F({},e),t)})}case B.t:{const{payload:{blockId:o,data:i}}=t;return Object(a.a)(e,e=>{e[o]=i})}case B.h:{const{data:{value:{_id:o}},meta:i}=t.payload,r={_thumbnailSrc:i._thumbnailSrc,_thumbnailWidth:i._thumbnailWidth,_thumbnailHeight:i._thumbnailHeight,_thumbnailTime:i._thumbnailTime};return Object(a.a)(e,e=>{e[o]=r,e._published[o]=r})}default:return e}}},(e={},t)=>{const o={};return Object.entries(M).reduce((o,[i,r])=>(o[i]=r(e[i],t,e),o),o),Object.entries(I).reduce((o,[i,r])=>(o[i]=r(e[i],t,e,o),o),o),o}),{keysToTrack:["blocksOrder","blocksData","currentStyleId","currentStyle","extraFontStyles","globalBlocksUpdates","storeWasChanged"],onBeforeUpdate:(e,t,o)=>{if(t.type===B.q||t.type===B.j||t.type===B.k){const i=Object(l.d)(e),r=Object(l.u)(e);(t.type===B.k?i:[t.payload.id]).forEach(e=>{if(i.includes(e)&&r[e]){const t=o.getSnapshots();o.replaceSnapshots(t.map(t=>(null!=t&&t.blocksOrder&&(t.blocksOrder=t.blocksOrder.filter(t=>t!==e)),t)))}})}}});let A;function N({middleware:e=[]}={}){if(A)throw new Error("store is already created");return A=Object(i.d)(W,Object(i.c)(r.reduxBatch,Object(i.a)(...e))),A}function V(){if(!A)throw new Error("store is not yet created");return A}},function(e,t,o){"use strict";o.d(t,"g",(function(){return u})),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 f})),o.d(t,"h",(function(){return S})),o.d(t,"e",(function(){return O}));var i=o(2),r=o(20),n=o(10),a=o(6),l=o(30),c=o(4);function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function d(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(i.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 p(e,t,o){const i=e+(String(o).charAt(0).toUpperCase()+String(o).substr(1));return Object(r.g)(t[o],t[i])}function u(e,t){return p("tablet",e,t)}function b(e,t){return p("mobile",e,t)}function m(e,t){return Object(r.g)(e,t)}function h({key:e,device:t="desktop",state:o="normal"}){const i="temp"===e.substr(0,4)?"temp":"",r=i.length>0?e.substr(4):e;return Object(a.a)([i,g({key:r,device:t,state:o})])}function g({key:e,device:t,state:o}){const i=c.f(o),r=l.g(t),n=i===c.d?"":i,s=r===l.d?"":r;return Object(a.a)([n,s,e])}function v({v:e,key:t,device:o="desktop",state:i="normal"}){const n=h({key:t,device:o,state:i}),a=h({key:t,device:l.d,state:i}),s=h({key:t,device:l.d,state:c.d});return Object(r.g)(e[s],Object(r.g)(e[a],e[n]))}const y=Object(n.memoize)(()=>l.h.reduce((e,t)=>{const o=c.g().reduce((e,o)=>(e.push({device:t,state:o}),e),[]);return e.concat(o)},[]));function f(e,t){return y().reduce((o,i)=>o||v(d({v:e,key:t},i)),"")}function S(e,t,o){return y().some(i=>{const r=v(d({v:e,key:t},i));return r&&r!==o})}function O(e,t){return y().map(e=>h(d({key:t},e)))}},function(e,t,o){"use strict";let i;o.d(t,"a",(function(){return i})),o.d(t,"c",(function(){return r})),o.d(t,"b",(function(){return n})),function(e){e.none="none",e.bounce="bounce",e.bounceIn="bounceIn",e.bounceInDown="bounceInDown",e.bounceInLeft="bounceInLeft",e.bounceInRight="bounceInRight",e.bounceInUp="bounceInUp",e.fadeIn="fadeIn",e.fadeInDown="fadeInDown",e.fadeInDownBig="fadeInDownBig",e.fadeInLeft="fadeInLeft",e.fadeInLeftBig="fadeInLeftBig",e.fadeInRight="fadeInRight",e.fadeInRightBig="fadeInRightBig",e.fadeInUp="fadeInUp",e.fadeInUpBig="fadeInUpBig",e.flash="flash",e.jackInTheBox="jackInTheBox",e.jello="jello",e.lightSpeedIn="lightSpeedIn",e.pulse="pulse",e.rollIn="rollIn",e.rotateIn="rotateIn",e.rotateInDownLeft="rotateInDownLeft",e.rotateInDownRight="rotateInDownRight",e.rotateInUpLeft="rotateInUpLeft",e.rotateInUpRight="rotateInUpRight",e.rubberBand="rubberBand",e.tada="tada",e.shake="shake",e.slideInUp="slideInUp",e.slideInDown="slideInDown",e.slideInLeft="slideInLeft",e.slideInRight="slideInRight",e.swing="swing",e.wobble="wobble",e.zoomIn="zoomIn",e.zoomInDown="zoomInDown",e.zoomInLeft="zoomInLeft",e.zoomInRight="zoomInRight",e.zoomInUp="zoomInUp"}(i||(i={}));const r=e=>Object.values(i).includes(e)?e:void 0,n=e=>{switch(e){case i.fadeInDown:case i.fadeIn:case i.fadeInRight:case i.fadeInUp:case i.fadeInLeft:case i.fadeInDownBig:case i.fadeInRightBig:case i.fadeInUpBig:case i.fadeInLeftBig:return e;case i.bounce:case i.bounceIn:case i.bounceInDown:case i.bounceInLeft:case i.bounceInRight:case i.bounceInUp:case i.flash:case i.jackInTheBox:case i.jello:case i.none:case i.pulse:case i.rollIn:case i.lightSpeedIn:case i.rotateIn:case i.rotateInDownLeft:case i.rotateInDownRight:case i.rotateInUpLeft:case i.rotateInUpRight:case i.rubberBand:case i.slideInDown:case i.slideInLeft:case i.slideInRight:case i.slideInUp:case i.shake:case i.swing:case i.tada:case i.wobble:case i.zoomIn:case i.zoomInDown:case i.zoomInLeft:case i.zoomInRight:case i.zoomInUp:return}}},function(e,t,o){"use strict";o.d(t,"a",(function(){return i})),o.d(t,"c",(function(){return r})),o.d(t,"b",(function(){return n})),o.d(t,"h",(function(){return a})),o.d(t,"d",(function(){return c})),o.d(t,"g",(function(){return s})),o.d(t,"f",(function(){return d})),o.d(t,"e",(function(){return p}));const i="desktop",r="tablet",n="mobile",a=["desktop","tablet","mobile"],l=e=>a.includes(e)?e:void 0,c="desktop",s=e=>{var t;return null!==(t=l(e))&&void 0!==t?t:c},d=e=>[r,n].includes(e),p=e=>[i].includes(e)},function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"i",(function(){return n})),o.d(t,"e",(function(){return a})),o.d(t,"c",(function(){return l})),o.d(t,"b",(function(){return c})),o.d(t,"h",(function(){return s})),o.d(t,"g",(function(){return d})),o.d(t,"d",(function(){return p})),o.d(t,"j",(function(){return u})),o.d(t,"f",(function(){return b}));var i=o(13);const r=e=>"cms"===e.platform,n=e=>"shopify"===e.platform,a=e=>"customers"===e.page.provider,l=e=>"collections"===e.page.provider,c=e=>!1,s=e=>"__type"in e&&"ecwid-product"===e.__type,d=e=>"__type"in e&&"ecwid-product-category"===e.__type,p=e=>"collectionType"in e,u=e=>{const t=i.a.getAll();return c(t)&&n(t)&&!("rules"in e)},b=e=>"groups"in e},,function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"d",(function(){return a})),o.d(t,"e",(function(){return l})),o.d(t,"b",(function(){return c})),o.d(t,"c",(function(){return s}));var i=o(29),r=o(0);let n;!function(e){e.None="none",e.Bounce="bounce",e.Fade="fade",e.Fade2="fade2",e.Rotate="rotate",e.Slide="slide",e.Zoom="zoom",e.Zoom2="zoom2",e.Attention="attention",e.Attention2="attention2"}(n||(n={}));const a=e=>{switch(e){case i.a.bounce:case i.a.bounceIn:case i.a.bounceInDown:case i.a.bounceInLeft:case i.a.bounceInRight:case i.a.bounceInUp:return n.Bounce;case i.a.fadeIn:case i.a.fadeInDown:case i.a.fadeInDownBig:case i.a.fadeInLeft:case i.a.fadeInLeftBig:case i.a.fadeInRight:case i.a.fadeInRightBig:case i.a.fadeInUp:case i.a.fadeInUpBig:return n.Fade;case i.a.none:return n.None;case i.a.rotateIn:case i.a.rotateInDownLeft:case i.a.rotateInDownRight:case i.a.rotateInUpLeft:case i.a.rotateInUpRight:return n.Rotate;case i.a.slideInDown:case i.a.slideInLeft:case i.a.slideInRight:case i.a.slideInUp:return n.Slide;case i.a.zoomIn:case i.a.zoomInDown:case i.a.zoomInLeft:case i.a.zoomInRight:case i.a.zoomInUp:return n.Zoom;case i.a.flash:case i.a.jackInTheBox:case i.a.jello:case i.a.lightSpeedIn:case i.a.pulse:case i.a.rollIn:case i.a.rubberBand:case i.a.shake:case i.a.swing:case i.a.tada:case i.a.wobble:return n.Attention}},l=e=>t=>t===e,c=e=>{switch(e){case n.Attention:case n.Attention2:return"nc-warning";case n.None:return"nc-none";case n.Bounce:return"nc-bounce";case n.Fade:case n.Fade2:return"nc-fade";case n.Rotate:return"nc-captcha";case n.Slide:return"nc-slider-horizontal";case n.Zoom:case n.Zoom2:return"nc-search"}};function s(e){switch(e){case n.Attention:case n.Attention2:return Object(r.a)("Attention");case n.None:return Object(r.a)("None");case n.Bounce:return Object(r.a)("Bounce");case n.Fade:case n.Fade2:return Object(r.a)("Fade");case n.Rotate:return Object(r.a)("Rotate");case n.Slide:return Object(r.a)("Slide");case n.Zoom:case n.Zoom2:return Object(r.a)("Zoom")}}},,function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return j}));var i=o(12),r=o(2),n=o(120),a=o(38),l=o(1),c=o.n(l),s=o(24),d=o(586),p=o(153),u=o(13),b=o(75),m=o(48),h=o(26),g=o(17),v=o(27),y=o(87),f=o(18),S=o(15);function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function x(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(r.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=u.a.get("menuData"),w=(e,t)=>Object(n.a)((e=>Array.isArray(e)?[]:{})(e),e,t);function B(e,t,o){const i=e.slice();return t.forEach((function(t,r){if(void 0===i[r]){const e=!1!==o.clone&&o.isMergeableObject(t);i[r]=e?w(t,o):t}else o.isMergeableObject(t)?i[r]=Object(n.a)(e[r],t,o):-1===e.indexOf(t)&&i.push(t)})),i}class j extends S.a{constructor(...e){super(...e),Object(r.a)(this,"handleKeyDown",(e,{keyName:t,id:o})=>{e.preventDefault();const i=this.getValue(),r=i.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(r+1);case"ctrl+M":case"cmd+M":case"right_cmd+M":return void this.handleOpenRightSidebar("styles");case"ctrl+K":case"cmd+K":case"right_cmd+K":return void this.handleOpenRightSidebar("effects");case"alt+D":case"ctrl+D":case"cmd+D":case"right_cmd+D":return void("StoryWrapper"===i[r].type?this.insertItem(r+1,Object(f.t)(i[r])):this.cloneItem(r));case"alt+C":case"ctrl+C":case"cmd+C":case"right_cmd+C":return void this.copy(r);case"alt+V":case"ctrl+V":case"cmd+V":case"right_cmd+V":return void("StoryWrapper"===i[r].type?this.paste(r,e=>{const{offsetX:t=0,offsetY:o=0}=i[r].value.items[0].value;let n=Object(s.setIn)(e,["value","items",0,"value","offsetX"],t);return n=Object(s.setIn)(n,["value","items",0,"value","offsetY"],o),Object(f.t)(n)}):this.paste(r));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(r);case"ctrl+right":case"cmd+right":case"right_cmd+right":return void this.changeHorizontalAlign(r,"increase");case"ctrl+left":case"cmd+left":case"right_cmd+left":return void this.changeHorizontalAlign(r,"decrease");case"ctrl+up":case"cmd+up":case"right_cmd+up":case"alt+up":return void this.changeVerticalAlign(r,"decrease");case"ctrl+down":case"cmd+down":case"right_cmd+down":case"alt+down":return void this.changeVerticalAlign(r,"increase");case"alt+del":case"del":case"cmd+backspace":case"cmd+del":case"right_cmd+backspace":case"right_cmd+del":return void this.removeItem(r)}}),Object(r.a)(this,"renderItem",(e,t,o)=>{const{sliceStartIndex:i,sliceEndIndex:r}=j.defaultProps,{sliceStartIndex:n=i,sliceEndIndex:a=r}=this.props;if(t>=n&&t<a){const i=e.value._id,r=this.renderItemData(e,i,t,o);return this.renderItemWrapper(r,i,t,e,o)}return null}),Object(r.a)(this,"getCurrentCopiedElement",()=>{const{path:e,value:t}=Object(g.f)(Object(v.b)().getState());return t&&e.length>0?Object(s.getIn)(T(t),e):null})}insertItem(e,t){const o=Object(f.v)(t),i=Object(f.s)(o),r=this.getDBValue()||[],n=Object(s.insert)(r,e,i);this.handleValueChange(n,{arrayOperation:"insert"})}insertItemsBatch(e,t){const o=this.getDBValue()||[],i=t.reduce((t,o,i)=>{const r=Object(f.v)(o),n=Object(f.s)(r);return Object(s.insert)(t,e+i,n)},o);this.handleValueChange(i,{arrayOperation:"insert_bulk"})}updateItem(e,t,o={}){const i=this.getDBValue(),r=Object(s.setIn)(i,[e,"value"],t);this.handleValueChange(r,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 i=Object(f.v)(t,{exclude:["_id"]}),r=Object(f.s)(i,o.idOptions),n=this.getDBValue()||[],a=Object(s.replaceAt)(n,e,r);this.handleValueChange(a,{arrayOperation:"replace",itemIndex:e,oldValue:n})}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])}reorderItem(e,t){const o=this.getDBValue()||[];this.handleValueChange(Object(y.h)(e,t,o),{arrayOperation:"moveItem"})}handleOpenRightSidebar(e){const t=this.getReduxState(),o=this.getReduxDispatch(),{rightSidebar:i,activeTab:r}=Object(g.R)(t);i.isOpen&&r===e||this.setState({isSidebarOpen:!0},()=>{o(Object(h.S)("rightSidebar",x(x({},i),{},{isOpen:!0,activeTab: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:i}=j.defaultProps,{itemProps:r=i}=this.props;return"function"==typeof r?r(e,t,o):r}renderItemData(e,t,o,r){const{type:n,value:a}=e,l=b.a.getComponent(n),s=this.getDefaultValue(),p=this.getItemProps(e,o,r),u=s[o]&&s[o].value,m=a,h=(e,t={})=>{const{intent:i}=t;switch(i){case"replace_all":this.replaceItem(o,e,t);break;case"remove_all":this.removeItem(o,t);break;default:this.updateItem(o,e,t)}};if(l)return c.a.createElement(d.a,{key:t,onRemove:()=>this.removeItem(o)},c.a.createElement(l,Object(i.a)({},p,{defaultValue:u,dbValue:m,reduxState:this.getReduxState(),reduxDispatch:this.getReduxDispatch(),onChange:h})));{const e=b.a.getNotFoundComponent();return c.a.createElement(e,Object(i.a)({},p,{key:t,defaultValue:u,dbValue:m,reduxState:this.getReduxState(),reduxDispatch:this.getReduxDispatch(),onChange:h,componentId:n}))}}renderItemWrapper(e,t,o,i,r){return e}getAlignments(){return["top","center","bottom"]}renderItemsContainer(e){return e}renderForEdit(e){const t=e.map(this.renderItem);return this.renderItemsContainer(t,e)}getIdBindKey(){const e=this.getId(),[t,o]=e.split("-");return{id:t,bindKey:o}}changeVerticalAlign(t,o){const i=this.getValue(),r=Object(g.E)(Object(v.b)().getState()),n=e.Brizy.activeEditorComponent.getId(),a=Object(f.g)(r,[n]),{path:l,value:c}=Object(f.k)(a,r,"verticalAlign");if(c&&l){const{type:e,value:n}=c,a=this.getAlignments(),{defaultValue:{style:{verticalAlign:d}}}=b.a.getComponent(e),p=n.verticalAlign||d||"top",u=Object(f.j)(a,p,o),{id:m,bindKey:h}=this.getIdBindKey(),g=h?[m,h,""+t]:[m,""+t],v=Object(f.g)(r,g),y=l.reduce((e,t,o)=>(void 0===v[o]&&e.push(l[o]),e),[]);if(0===y.length){const e=Object(s.setIn)(i,[t,"value"],x(x({},n),{},{verticalAlign:u}));this.updateItem(t,e[t].value)}else{const e=Object(s.setIn)(i,[...y,"value"],x(x({},n),{},{verticalAlign:u}));this.updateItem(t,e[t].value)}}}changeHorizontalAlign(t,o){const i=this.getValue(),r=e.Brizy.activeEditorComponent.getId(),n=Object(v.b)().getState(),a=Object(g.E)(n),l=Object(f.g)(a,[r]),{deviceMode:c}=n.ui,d="desktop"===c?"horizontalAlign":c+"HorizontalAlign",{path:p,value:u}=Object(f.k)(l,a,d);if(u&&p){const{type:e,value:r}=u,n=["left","center","right"],{defaultValue:{style:l}}=b.a.getComponent(e),c=r[d]||l[d]||"left",m=Object(f.j)(n,c,o),{id:h,bindKey:g}=this.getIdBindKey(),v=g?[h,g,""+t]:[h,""+t],y=Object(f.g)(a,v),S=p.reduce((e,t,o)=>(void 0===y[o]&&e.push(p[o]),e),[]);if(0===S.length){const e=Object(s.setIn)(i,[t,"value"],x(x({},r),{},{[d]:m}));this.updateItem(t,e[t].value)}else{const e=Object(s.setIn)(i,[...S,"value"],x(x({},r),{},{[d]:m}));this.updateItem(t,e[t].value)}}}copy(e){const t=this.getReduxDispatch(),o=Object(g.E)(this.getReduxState()),{id:i,bindKey:r}=this.getIdBindKey(),n=r?[i,r,""+e]:[i,""+e],a=Object(f.g)(o,n),l=T(o);t(Object(m.y)({value:l,path:a}))}paste(e,t=(e=>e)){const o=this.getValue()[e],{path:i,value:r}=Object(g.f)(Object(v.b)().getState());if(!r)return;const{value:n}=Object(f.i)(i,T(r),"Cloneable"===o.type||"Wrapper"===o.type?({type:e})=>"Cloneable"===e||"Wrapper"===e:({type:e})=>e===o.type);n&&this.insertItem(e+1,t(n))}pasteStyles(e){const{path:t,value:o}=Object(g.f)(Object(v.b)().getState());if(!o)return;const i=this.getValue()[e],r=this.getCurrentCopiedElement();let a=0;if(r&&("Wrapper"===r.type&&"Wrapper"===i.type||"StoryWrapper"===r.type&&"StoryWrapper"===i.type)){if(r.value.items[0].type!==i.value.items[0].type)return;a=1,"Form"===r.value.items[0].type||"IconText"===r.value.items[0].type?a=3:"ImageGallery"===r.value.items[0].type&&(a=2)}const{value:l}=Object(f.i)(t,T(o),({type:e})=>e===i.type);if(l){const t=Object(f.u)(l,a),o=Object(n.a)(i,t,{arrayMerge:B});this.updateItem(e,o.value)}}}function T(e){return Object(f.r)(e=>{const{type:t,value:o}=e;if("Menu"===t){const{menuSelected:t,symbols:i={}}=o,r=t||C[0].id,n=C.find(e=>e.id===r)||{};return Object(a.b)(e,e=>{e.value.items=Object(p.c)(n.items||[],i)})}return e},e)}Object(r.a)(j,"defaultProps",{itemProps:{},sliceStartIndex:0,sliceEndIndex:1/0})}).call(this,o(113))},function(e,t,o){"use strict";o.d(t,"f",(function(){return p})),o.d(t,"g",(function(){return u})),o.d(t,"l",(function(){return b})),o.d(t,"b",(function(){return m})),o.d(t,"c",(function(){return h})),o.d(t,"e",(function(){return g})),o.d(t,"d",(function(){return v})),o.d(t,"i",(function(){return y})),o.d(t,"k",(function(){return f})),o.d(t,"a",(function(){return S})),o.d(t,"j",(function(){return O})),o.d(t,"h",(function(){return x}));var i,r=o(19),n=o(13),a=o(31),l=o(80);const c=n.a.getAll(),s=Object(r.match)([l.a,e=>e.template_type],[a.b,Object(r.match)([a.a,e=>e.templateType],[a.i,()=>{}])]),d=(e,t)=>{const o=s(e);return""===o||o===t},p=(i=c.mode,Object(l.a)(c)&&"post"===c.wp.postType),u=!!c.pro,b=Object(l.a)(c),m=Object(a.b)(c),h=Object(a.b)(c)&&Object(a.a)(c),g="page"===c.mode,v=Object(a.b)(c)&&Object(a.a)(c)&&Object(a.e)(c),y=(Object(a.b)(c)&&Object(a.a)(c)&&Object(a.c)(c),c.mode,"product"===c.mode),f=d(c,"single"),S=d(c,"archive"),O=d(c,"product"),x=d(c,"product_archive")},,,function(e,t,o){"use strict";var i=o(2),r=o(1),n=o.n(r),a=o(9),l=o.n(a),c=o(10),s=o(5),d=o.n(s);class p extends n.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:i,children:r}=this.props,a=t?()=>{}:o;return n.a.createElement("div",{className:this.getClassName(),title:e,"data-value":i,onClick:a},r)}}Object(i.a)(p,"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(i.a)(p,"defaultProps",{active:!1,title:"",disabled:!1,value:"",onClick:c.default.noop}),t.a=p},function(e,t,o){"use strict";o.d(t,"c",(function(){return a})),o.d(t,"i",(function(){return n})),o.d(t,"j",(function(){return c})),o.d(t,"k",(function(){return l})),o.d(t,"f",(function(){return d})),o.d(t,"e",(function(){return p})),o.d(t,"w",(function(){return h})),o.d(t,"l",(function(){return v})),o.d(t,"m",(function(){return g})),o.d(t,"q",(function(){return S})),o.d(t,"r",(function(){return O})),o.d(t,"h",(function(){return C})),o.d(t,"o",(function(){return _})),o.d(t,"p",(function(){return E})),o.d(t,"b",(function(){return N})),o.d(t,"g",(function(){return A})),o.d(t,"a",(function(){return I})),o.d(t,"v",(function(){return W})),o.d(t,"t",(function(){return V})),o.d(t,"u",(function(){return D})),o.d(t,"s",(function(){return $})),o.d(t,"n",(function(){return G})),o.d(t,"d",(function(){return U}));var i=o(27),r=o(76);const n=(e,t)=>Object.entries(e).reduce((e,o)=>{const[i,{data:r=[]}]=o,n=N[i],a=r.find(e=>t===n(e).id);return a?{group:i,font:a}:e},void 0),a=({type:e,family:t})=>{const o=W(Object(r.n)(Object(i.b)().getState())),a=I(o[e],t,e);if(a)return N[e](a);const l=(()=>{const e=Object(i.b)().getState(),t=Object(r.d)(e),o=Object(r.f)(e),a=n(o,t);if(a)return a;const[[l,{data:c=[]}]]=Object.entries(o);return{group:l,font:c[0]}})();return(0,N[l.group])(l.font)};function l(){const{config:e={},blocks:t={},google:o={},upload:n={}}=Object(r.n)(Object(i.b)().getState());return{config:e.data||[],blocks:t.data||[],google:o.data||[],upload:n.data||[]}}function c(){return Object.values(l()).reduce((e,t)=>[...e,...t],[])}var s=o(17);function d({includeDeleted:e=!1}={}){const t=Object(i.b)().getState(),{fontStyles:o}=Object(s.i)(t),r=[...o,...Object(s.n)(t)];return e?r:r.filter(e=>!0!==e.deleted)}function p(e){return d({includeDeleted:!0}).find(t=>t.id===e)}var u=o(122),b=o(0);const m=e=>{switch(e){case u.a.THIN:return Object(b.a)("Thin");case u.a.EXTRA_LIGHT:return Object(b.a)("Extra Light");case u.a.LIGHT:return Object(b.a)("Light");case u.a.NORMAL:return Object(b.a)("Normal");case u.a.MEDIUM:return Object(b.a)("Medium");case u.a.SEMI_BOLD:return Object(b.a)("Semi Bold");case u.a.BOLD:return Object(b.a)("Bold");case u.a.EXTRA_BOLD:return Object(b.a)("Extra Bold");case u.a.BLACK:return Object(b.a)("Black")}},h=u.d.reduce((e,t)=>(e[t]=m(t),e),{});function g({type:e,family:t}){if(e&&t){const{weights:o}=a({type:e,family:t});return o.map(e=>({title:m(e),value:e}))}return[{title:m(u.b),value:u.b}]}function v(e,t){return t.includes(Number(e))?e:u.b}o(65);var y=o(13),f=o(107);const S=e=>`https://fonts.googleapis.com/css?family=${e.reduce((e,t)=>{const o=t.family.replace(/\s/g,"+"),i=t.variants.join();return""===e?`${o}:${i}`:`${e}|${o}:${i}`},"")}&subset=arabic,bengali,cyrillic,cyrillic-ext,devanagari,greek,greek-ext,gujarati,hebrew,khmer,korean,latin-ext,tamil,telugu,thai,vietnamese&display=swap`,O=e=>{var t;const o=y.a.get("urls").editorFonts,i=null!==(t=y.a.get("prefix"))&&void 0!==t?t:"brizy",r=Object(f.c)({[i+"-font"]:e.reduce((e,{id:t,weights:o})=>{const i=o.join();return""===e?`${t}:${i}`:`${e}|${t}:${i}`},"")});return Object(f.e)(o)?`${o}&${r}`:`${o}?${r}`};o(37);var x=o(57);const C=async()=>await(async e=>{const t=await fetch(e),{items:o}=await t.json();return o})(Object(x.a)("googleFonts.json"));var w=o(10),B=o(126),j=o(30),T=o(62);const P=Object(w.once)(()=>Object(T.a)(4)),E=e=>{const{id:t,key:o,device:i,config:r}=e,n="desktop"===i?"":i;if(Object(B.f)(r)){return`--brz-${t}${P()}${n}${o}`.toLowerCase()}return`--brz-${t}${n}${o}`.toLowerCase()},_=e=>{const t=y.a.getAll();return`:root{${e.map(e=>{const{id:o,fontSize:i,fontSizeSuffix:r,fontWeight:n,letterSpacing:l,lineHeight:c,mobileFontSize:s,mobileFontSizeSuffix:d,mobileFontWeight:p,mobileLetterSpacing:u,mobileLineHeight:b,tabletFontSize:m,tabletFontSizeSuffix:h,tabletFontWeight:g,tabletLetterSpacing:v,tabletLineHeight:y}=e,f=o.toLowerCase(),S=a({family:e.fontFamily,type:e.fontFamilyType}).family,O=`${i}${null!=r?r:"px"}`,x=`${s}${null!=d?d:"px"}`,C=`${m}${null!=h?h:"px"}`,w=.23*e.fontSize+"%";return`${E({id:f,config:t,key:"fontFamily",device:j.a})}:${S};${E({id:f,config:t,key:"fontSize",device:j.a})}:${O};${E({id:f,config:t,key:"fontSizeSuffix",device:j.a})}:${r};${E({id:f,config:t,key:"fontWeight",device:j.a})}:${n};${E({id:f,config:t,key:"letterSpacing",device:j.a})}:${l}px;${E({id:f,config:t,key:"lineHeight",device:j.a})}:${c};${E({id:f,config:t,key:"fontSize",device:j.c})}:${C};${E({id:f,config:t,key:"fontWeight",device:j.c})}:${g};${E({id:f,config:t,key:"letterSpacing",device:j.c})}:${v}px;${E({id:f,config:t,key:"lineHeight",device:j.c})}:${y};${E({id:f,config:t,key:"fontSize",device:j.b})}:${x};${E({id:f,config:t,key:"fontWeight",device:j.b})}:${p};${E({id:f,config:t,key:"letterSpacing",device:j.b})}:${u}px;${E({id:f,config:t,key:"lineHeight",device:j.b})}:${b};${E({id:f,config:t,key:"storyFontSize",device:j.a})}:${w};`}).join("")}}`};var k=o(2),z=o(38),F=o(21);function R(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function H(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(k.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]),M=e=>e.toLowerCase().replace(/\s+/g,"_"),I=(e=[],t="",o="google")=>"upload"===o?e.find(({id:e})=>e===t):e.find(({family:e})=>M(e)===t),W=e=>Object.entries(e).reduce((e,t)=>{const[o,{data:i}]=t;return H(H({},e),{},"upload"===o?{upload:i}:{google:[...e.google||[],...i]})},{}),A=e=>{const{family:t,category:o,variants:i,brizyId:r,deleted:n}=e;return H(H({id:M(t),title:t,family:`${t}, ${o}`,weights:L(i)},r&&{brizyId:r}),n&&{deleted:n})},N={config:A,google:A,blocks:A,upload:e=>{const{id:t,family:o,weights:i,brizyId:r,deleted:n}=e;return H(H({id:t,title:o,family:`'${t}'`,weights:L(i)},r&&{brizyId:r}),n&&{deleted:n})}},V=async e=>{if(0===e.length)return[];const t=new Map,o=e=>H({brizyId:Object(T.a)()},e),[i,r]=await Promise.all([C(),Object(F.K)()]);return e.forEach(({type:e,family:n})=>{if("google"===e){const e=I(i,n);if(e){const i=t.get("blocks")||[];t.set("blocks",[...i,o(e)])}}if("upload"===e){const e=I(r,n,"upload");if(e){const i=t.get("upload")||[];t.set("upload",[...i,o(e)])}}if("unknowns"===e){const e=I(r,n,"upload");if(e){const i=t.get("upload")||[];t.set("upload",[...i,o(e)])}else{const e=I(i,n);if(e){const i=t.get("blocks")||[];t.set("blocks",[...i,o(e)])}}}}),Object.values([...t]).reduce((e,t)=>{const[o,i]=t;return[...e,{type:o,fonts:i}]},[])},D=e=>Object(z.a)(e,e=>{e.map(({fontStyles:e})=>$(e))}),$=e=>Object(z.a)(e,e=>{e.map(e=>{e.fontSizeSuffix||(e.fontSizeSuffix="px"),e.tabletFontSizeSuffix||(e.tabletFontSizeSuffix="px"),e.mobileFontSizeSuffix||(e.mobileFontSizeSuffix="px")})}),G=({font:e})=>{const{family:t}=e;return`.brz .brz-root__container,.brz .brz-popup2,.brz .brz-popup {font-family:${t}!important;}`},U=({fontStyle:e,key:t,device:o})=>{if(e&&"custom"!==e)return`var(${E({id:e,device:o,key:t,config:y.a.getAll()})})`}},function(e,t,o){"use strict";o.d(t,"a",(function(){return b}));var i=o(12),r=o(1),n=o.n(r),a=o(5),l=o.n(a),c=o(19),s=o(182),d=o(569);function p(e){if(/^<svg/.test(e))return e;try{return p(atob(Object(d.decrypt)(e)))}catch(e){return}}function u(e){var t,o;if(!e)return;const i=(new DOMParser).parseFromString(e,"text/html"),{innerHTML:r,attributes:n}={innerHTML:null===(t=i.body.firstElementChild)||void 0===t?void 0:t.innerHTML,attributes:null===(o=i.body.firstElementChild)||void 0===o?void 0:o.attributes};if(!r)return;const a={};if(n){const e={"xmlns:xlink":"xmlnsXlink","xml:space":"xmlSpace"};for(let t=0;t<n.length;t++){const{name:o,value:i}=n[t];a[e[o]||o]=i}}return{attr:a,innerHTML:r}}const b=function({className:e,type:t,name:o}){const a=l()("brz-icon-svg",e),[d,b]=Object(r.useState)(void 0);return Object(r.useEffect)(()=>{const e=new AbortController;return(async()=>{try{const i=await async function(e,t,o){const i=await fetch(Object(s.c)(e,t),{method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},signal:null==o?void 0:o.signal});return await i.text()}(t,o,e),r=Object(c.mPipe)(p,u)(i);b(r)}catch(e){console.warn(e),b(void 0)}})(),()=>{e.abort()}},[t,o]),d?n.a.createElement("svg",Object(i.a)({},d.attr,{className:a,dangerouslySetInnerHTML:{__html:d.innerHTML}})):null}},function(e,t,o){"use strict";function i(e,t,o){return e<t?t:e>o?o:e}function r(e,t){return+(Math.round(Number(e+"e+"+t))+"e-"+t)}o.d(t,"b",(function(){return i})),o.d(t,"f",(function(){return r})),o.d(t,"d",(function(){return n})),o.d(t,"e",(function(){return a})),o.d(t,"i",(function(){return l})),o.d(t,"h",(function(){return c})),o.d(t,"j",(function(){return s})),o.d(t,"c",(function(){return d})),o.d(t,"a",(function(){return p})),o.d(t,"g",(function(){return u}));const n=e=>"number"==typeof e,a=e=>{switch(typeof e){case"number":return isFinite(e);case"string":return!isNaN(parseFloat(e))&&isFinite(Number(e))}return!1},l=(e,t)=>"number"==typeof e?e:t,c=(e,t)=>"number"==typeof e&&e>=0?e:t,s=(e,t)=>"number"==typeof e&&e>0?e:t,d=(e,t,o)=>o>=e&&o<=t,p=e=>t=>e+t,u=e=>t=>t-e},,function(e,t,o){"use strict";o.d(t,"c",(function(){return n})),o.d(t,"b",(function(){return a})),o.d(t,"d",(function(){return l})),o.d(t,"a",(function(){return c}));var i,r=o(14);!function(e){e.positive="positive"}(i||(i={}));const n=e=>e>=0,a=Object(r.c)(n),l=e=>e,c=0},function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"a",(function(){return r})),o.d(t,"c",(function(){return n})),o.d(t,"e",(function(){return a})),o.d(t,"d",(function(){return l}));const i=e=>"object"==typeof e&&null!==e,r=(e,t)=>e in t,n=e=>{if(i(e))return e},a=e=>t=>{const o=(e=>{if(i(e))return e})(t);if(void 0!==o){const t={};for(const[i,r]of Object.entries(o)){const o=e(r);if(void 0===o)return;t[i]=o}return t}},l=e=>t=>r(e,t)?t[e]:void 0},function(e,t,o){"use strict";let i;o.d(t,"a",(function(){return i})),function(e){e.image="image",e.link="link",e.richText="richText",e.reference="reference",e.multiReference="multiReference"}(i||(i={}))},function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return a})),o.d(t,"d",(function(){return l}));var i=o(20);function r(e,t){return t?t[e]:void 0}function n(e,t,o){return Object(i.h)(r(t,o),e)}const a=e=>t=>t[e],l=e=>t=>({[e]:t})},function(e,t,o){"use strict";o.d(t,"e",(function(){return i})),o.d(t,"d",(function(){return r})),o.d(t,"m",(function(){return n})),o.d(t,"j",(function(){return a})),o.d(t,"k",(function(){return l})),o.d(t,"l",(function(){return c})),o.d(t,"h",(function(){return s})),o.d(t,"i",(function(){return d})),o.d(t,"f",(function(){return p})),o.d(t,"r",(function(){return u})),o.d(t,"c",(function(){return b})),o.d(t,"s",(function(){return m})),o.d(t,"v",(function(){return h})),o.d(t,"b",(function(){return g})),o.d(t,"o",(function(){return v})),o.d(t,"n",(function(){return y})),o.d(t,"t",(function(){return f})),o.d(t,"q",(function(){return S})),o.d(t,"u",(function(){return O})),o.d(t,"g",(function(){return x})),o.d(t,"a",(function(){return C})),o.d(t,"p",(function(){return w})),o.d(t,"x",(function(){return B})),o.d(t,"w",(function(){return j})),o.d(t,"A",(function(){return T})),o.d(t,"z",(function(){return P})),o.d(t,"C",(function(){return E})),o.d(t,"y",(function(){return _})),o.d(t,"E",(function(){return k})),o.d(t,"D",(function(){return z})),o.d(t,"B",(function(){return F}));const i="HYDRATE",r="EDITOR_RENDERED",n="UPDATE_BLOCKS",a="REMOVE_BLOCK",l="REMOVE_BLOCKS",c="REORDER_BLOCKS",s="MAKE_NORMAL_TO_GLOBAL_BLOCK",d="MAKE_POPUP_TO_GLOBAL_BLOCK",p="MAKE_GLOBAL_BLOCK_TO_POPUP",u="UPDATE_GLOBAL_BLOCK",b="DELETE_GLOBAL_BLOCK",m="UPDATE_POPUP_RULES",h="UPDATE_UI",g="COPY_ELEMENT",v="UPDATE_CURRENT_STYLE_ID",y="UPDATE_CURRENT_STYLE",f="UPDATE_SCREENSHOT",S="UPDATE_GB_RULES",O="UPDATE_TRIGGERS",x="MAKE_GLOBAL_TO_NORMAL_BLOCK",C="ADD_BLOCK",w="UPDATE_ERROR";function B({project:e,projectStatus:t,fonts:o,page:r,globalBlocks:n,blocksThumbnailSizes:a,authorized:l,syncAllowed:c}){return{type:i,payload:{project:e,projectStatus:t,fonts:o,page:r,globalBlocks:n,blocksThumbnailSizes:a,authorized:l,syncAllowed:c}}}function j(){return{type:r}}function T(e){return{type:v,payload:e}}function P(e){return{type:y,payload:e}}function E({data:e,meta:t}){return{type:m,payload:e,meta:t}}function _(e){return{type:g,value:e}}function k(e,t){return{type:O,payload:{data:e},meta:t}}function z({blockId:e,data:t,meta:o}){return{type:f,payload:{blockId:e,data:t},meta:o}}function F(e){return{type:w,payload:e}}},function(e,t){e.exports=jQuery},function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"a",(function(){return r}));const i=e=>{switch(typeof e){case"string":return e;case"number":return isNaN(e)?void 0:e.toString();default:return}},r=e=>"string"==typeof e},function(e,t,o){"use strict";var i=o(12),r=o(2),n=o(1),a=o.n(n),l=o(10),c=o(5),s=o.n(c),d=o(103),p=o(16),u=(o(41),o(85)),b=o(105);function m(e,t,o,i){const r=t*o,n=t*i,a=e*t;return Math.max(r,Math.min(n,a))}class h extends a.a.Component{constructor(...e){super(...e),Object(r.a)(this,"state",{isOpen:!1,currentValue:this.props.defaultValue,position:"bottom-left"}),Object(r.a)(this,"onClickOutside",()=>{this.state.isOpen&&this.setState({isOpen:!1})}),Object(r.a)(this,"handleItemClick",e=>{this.setState({isOpen:!1,currentValue:e}),this.props.onChange(e)}),Object(r.a)(this,"handleContentRef",e=>{this.content=e}),Object(r.a)(this,"handleDropdownNode",e=>{this.dropdown=e}),Object(r.a)(this,"handleLabelClick",()=>{this.setState({isOpen:!this.state.isOpen},()=>{this.state.isOpen&&this.reposition()})})}componentDidMount(){this.props.inPortal||this.reposition()}static getDerivedStateFromProps(e,t){return t.defaultValue!==e.defaultValue?{currentValue:e.defaultValue}:null}getScrollPaneStyle(){const{children:e}=this.props,t=a.a.Children.count(e);let o=0;a.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(){this.dropdown&&(this.isRepositioning=!0,this.dropdown.style.setProperty("opacity",1),this.setState({position:"bottom-left"},()=>{const{bottom:e,right:t}=this.dropdown.getBoundingClientRect(),o=e>=window.innerHeight?"top":"bottom",i=t>=window.innerWidth?"right":"left";this.setState({position:`${o}-${i}`},()=>{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 a.a.createElement(p.b,{icon:this.props.labelIcon})}renderLabelInput(){const{children:e}=this.props,{currentValue:t}=this.state;let o;a.a.Children.forEach(e,e=>{const{items:i}=e.props;if(!o)if(i&&i.length){const i=a.a.Children.toArray(e.props.items);o=i.find(e=>e.props.value===t)}else e.props.value===t&&(o=e)});const i=a.a.createElement(p.b,{icon:"nc-stre-down",className:"brz-control__select--arrow"});return a.a.createElement(a.a.Fragment,null,o||this.findFirstItem(),i)}renderItems(e=this.props.children){const{currentValue:t}=this.state;return a.a.Children.map(e,(e,o)=>{const{value:i,disabled:r,items:n}=e.props;return n&&n.length?a.a.cloneElement(e,{key:o,items:this.renderItems(n)}):a.a.cloneElement(e,{key:o,active:i===t,onClick:r?null:()=>this.handleItemClick(i)})})}renderDropDown(){const{inPortal:e,className:t}=this.props;if(this.state.isOpen&&!e)return a.a.createElement("div",{className:"brz-control__select-options",style:{opacity:0},ref:this.handleDropdownNode},a.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:i,width:r}=this.content.getBoundingClientRect(),{scrollLeft:n}=this.content.ownerDocument.documentElement,l=s()("brz-control__portal-select brz-control__select",t),c={top:e+i+3,left:o+n,width:r};return a.a.createElement(b.a,{node:this.content.ownerDocument.body,className:l},a.a.createElement("div",{className:"brz-control__select-options",style:c},a.a.createElement(d.a,{className:"brz-ed-scroll-pane",style:this.getScrollPaneStyle()},this.renderItems())))}}render(){const{className:e,labelType:t,currentValue:o,inputAttributes:r,clickOutsideExceptions:n}=this.props,{position:l,isOpen:c}=this.state,d=s()("brz-control__select","brz-control__select--"+l,e,{opened:c}),p=[...n,".brz-control__portal-select"];return a.a.createElement(u.a,{exceptions:p,onClickOutside:this.onClickOutside},a.a.createElement("div",{className:d,ref:this.handleContentRef},a.a.createElement("div",{className:"brz-control__select-current brz-control__select-current__"+t,onClick:this.handleLabelClick},this.renderLabel()),this.renderDropDown(),a.a.createElement("input",Object(i.a)({type:"hidden",value:o},r))))}findFirstItem(e=this.props.children){let t;return a.a.Children.forEach(e,e=>{const{items:o}=e.props;t||(t=o&&o.length?this.findFirstItem(o):e)}),t}}Object(r.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";function i(e){return new Promise((function(t,o){const i=new Image;i.onload=function(){t(this)},i.onabort=function(){o(`preloadImage("${e}") onabort`)},i.onerror=function(){o(`preloadImage("${e}") onerror`)},i.src=e}))}o.d(t,"f",(function(){return i})),o.d(t,"d",(function(){return c})),o.d(t,"g",(function(){return s})),o.d(t,"b",(function(){return u})),o.d(t,"e",(function(){return p})),o.d(t,"a",(function(){return b})),o.d(t,"c",(function(){return d}));o(296);var r=o(13),n=o(99),a=o(107),l=o(10);function c(e,t={iW:5e3,iH:"any"}){var o;if(Object(a.b)(e)||Object(n.d)(e))return e;if(!e)return null;const i=r.a.getAll(),c=null!==(o=i.prefix)&&void 0!==o?o:"brizy",s=i.urls.site,d=Object(a.e)(s)?s+"&":s+"/?",p=(e=>{const t=l.default.mapObject(e,e=>"number"==typeof e?Math.round(e):e);return Object(a.c)(t)})(t);return`${d}${Object(a.c)({[c+"_media"]:e,[c+"_crop"]:p})}`}function s(e){if(!e)return null;const t=r.a.getAll(),{customFile:o}=t.urls;return`${o}${e}`}function d(e,t){var o;const i=r.a.getAll(),n=i.urls.site,l=Object(a.e)(n)?n+"&":n+"/?",c=null!==(o=i.prefix)&&void 0!==o?o:"brizy";return`${l}${Object(a.c)({[c+"_media"]:e,[c+"_crop"]:t})}`}function p(e,t,o){const i=e>t?e/o:t/o;return{width:Math.round(e/i),height:Math.round(t/i)}}o(65);function u(e,t={cW:5e3,cH:0}){const{cW:o,cH:i}=t;if(!e||"number"!=typeof o||"number"!=typeof i)throw new Error("Invalid arguments");return`{{${e.replace(/{{|}}/g,"")} cW='${o}' cH='${i}'}}`}function b(e=""){return e.split(".").pop().toLowerCase()}},function(e,t,o){"use strict";o.d(t,"a",(function(){return c})),o.d(t,"d",(function(){return s})),o.d(t,"c",(function(){return d})),o.d(t,"b",(function(){return p}));var i=o(20);const r=e=>"optional"===e.__type,n=(e,t)=>{switch(e.__type){case"optional":case"strict":return e.fn(t);default:return e(t)}};function a(e,t){const o={};for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const a=n(e[i],t);if(!r(e[i])&&void 0===a)return;o[i]=a}return o}function l(e,t){for(let o=0;o<e.length;o++){const r=e[o](t);if(!Object(i.b)(r))return r}}const c=e=>({__type:"optional",fn:e});function s(e,t){return void 0===t?t=>a(e,t):a(e,t)}function d(e,t){return void 0===t?t=>a(e,t):a(e,t)}function p(...e){return 1===e.length?t=>l(e[0],t):l(e[0],e[1])}},function(e,t,o){"use strict";o.d(t,"h",(function(){return r})),o.d(t,"d",(function(){return n.h})),o.d(t,"g",(function(){return n.j})),o.d(t,"a",(function(){return c})),o.d(t,"b",(function(){return v})),o.d(t,"e",(function(){return B})),o.d(t,"i",(function(){return j})),o.d(t,"c",(function(){return S.a})),o.d(t,"f",(function(){return S.b})),o.d(t,"j",(function(){return T.a})),o.d(t,"k",(function(){return T.b})),o.d(t,"l",(function(){return T.c})),o.d(t,"m",(function(){return P.a}));var i=o(13);const r=(e,t)=>{const o=i.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`}};var n=o(82),a=o(57);function l(){return Object(a.a)("editor/img/block-placeholder.jpg")}function c(e){if(!e)return l();const t=i.a.get("urls").blockThumbnails;return t?`${t}/${e.id}.jpg`:Object(a.a)(`thumbs/${e.id}.jpg`)}var s=o(2),d=o(10),p=o(38),u=o(27),b=o(107),m=o(17);function h(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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(s.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}const v=(e,t={})=>{const o=function(e,t){"GlobalBlock"===e.type&&(e=g(g({},(e=Object(m.r)(Object(u.b)().getState())[e.value._id]).data),{},{meta:e.meta}));if(!0===t.searchScreenshotInStoreFirst){const t=Object(m.K)(Object(u.b)().getState());t[e.value._id]&&(e=Object(p.a)(e,o=>{o.meta=g(g({},o.meta),t[e.value._id])}))}const{_thumbnailSrc:o,_thumbnailWidth:i,_thumbnailHeight:r}=y(e);if(o&&i&&r){return{url:d.default.compose(f,y)(e),width:i,height:r}}return null}(e,t);let r;if(o)r=o;else{const{blocksThumbnailSizes:t}=Object(u.b)().getState(),o=t[e.blockId];if(o){const t=i.a.get("urls").blockThumbnails;r={url:t?`${t}/${e.blockId}.jpg`:Object(a.a)(`thumbs/${e.blockId}.jpg`),width:o[0],height:o[1]}}else r={url:l(),width:500,height:200}}return r},y=e=>e.meta||e.value||{};function f({_thumbnailSrc:e,_thumbnailTime:t}){var o;const r=i.a.get("urls").site,n=i.a.get("wp").page,a=null!==(o=i.a.get("prefix"))&&void 0!==o?o:"brizy",l=Object(b.c)({[a+"_post"]:n,[a+"_block_screenshot"]:e,t:t||Date.now()});return Object(b.e)(r)?`${r}&${l}`:`${r}?${l}`}var S=o(176),O=o(18);function x(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function C(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(s.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}const w=(e,t,o)=>e.filter(e=>{var i,r;return(null===(i=t[e])||void 0===i||null===(r=i.position)||void 0===r?void 0:r.align)===o&&"publish"===t[e].status}).sort((e,i)=>{var r,n,a,l,c,s;return(null!==(r=null===(n=t[e])||void 0===n||null===(a=n.position)||void 0===a?void 0:a[o])&&void 0!==r?r:0)-(null!==(l=null===(c=t[i])||void 0===c||null===(s=c.position)||void 0===s?void 0:s[o])&&void 0!==l?l:0)}),B=(e,t,o)=>{if(O.b||O.d)return e;const i=Object(S.b)(e,t,o),r=w(i,t,"top"),n=w(i,t,"bottom");return[...r,...e,...n]};function j(e,t){var o;const i=((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(i),n=B(r,t,e),a=C(C({},i),t);return n.map(e=>a[e].data)}var T=o(121),P=o(292)},function(e,t,o){"use strict";o.d(t,"a",(function(){return c})),o.d(t,"c",(function(){return d})),o.d(t,"b",(function(){return l}));var i=o(2),r=o(1),n=o.n(r),a=o(13);const l=()=>a.a.getAll().user.role;class c extends r.Component{render(){const{allow:e,children:t,component:o,render:i,fallbackComponent:r,fallbackRender:a}=this.props;if(e.includes(l())){if(t)return t;if(o)return n.a.createElement(o,null);if(i)return i()}else{if(r)return n.a.createElement(r,null);if(a)return a()}return null}}Object(i.a)(c,"defaultProps",{allow:[]});var s=o(12);const d=({component:e,fallbackComponent:t,allow:o=[],render:i,fallbackRender:r})=>{function a(a,c){if(o.includes(l())){if(e)return n.a.createElement(e,Object(s.a)({},a,{ref:c}));if(i)return i(a)}else{if(t)return n.a.createElement(t,Object(s.a)({},a,{ref:c}));if(r)return r(a)}return null}return a.displayName=`RolesHOC(${e.displayName||e.name})`,n.a.forwardRef(a)}},function(e,t,o){"use strict";o.d(t,"a",(function(){return g}));var i=o(2),r=o(1),n=o.n(r),a=o(10),l=o(5),c=o.n(l),s=o(0);const d=13,p=66,u=73,b=85,m=89,h=90;class g extends r.Component{constructor(...e){super(...e),Object(i.a)(this,"contentRef",n.a.createRef()),Object(i.a)(this,"unmounted",!1),Object(i.a)(this,"lastNotifiedValue",void 0),Object(i.a)(this,"handleClick",e=>{e.preventDefault();const t=this.contentRef.current;null==t||t.classList.add("brz-ed-dd-cancel")}),Object(i.a)(this,"handleKeyDown",e=>{const t=e.which,o=e.metaKey||e.ctrlKey;t!==d&&(!o||t!==p&&t!==u&&t!==b)&&(!o||t!==h&&t!==m)||e.preventDefault()}),Object(i.a)(this,"handleInput",e=>{const t=e.currentTarget;t&&this.notifyChange(t.textContent||"")}),Object(i.a)(this,"notifyChange",a.default.debounce(e=>{this.unmounted||(this.lastNotifiedValue=e,this.props.onChange(e))},1e3)),Object(i.a)(this,"handleBlur",()=>{var e;null===(e=this.contentRef.current)||void 0===e||e.classList.remove("brz-ed-dd-cancel")}),Object(i.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||this.props.tagName!==e.tagName||this.props.className!==e.className}componentDidMount(){const e=this.contentRef.current;null!==e&&e.addEventListener("input",this.handleInput)}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,i=c()(o,"brz-"+e,"brz-text__editor");return n.a.createElement(e,{ref:this.contentRef,className:i,contentEditable:!0,dangerouslySetInnerHTML:{__html:t},onClick:this.handleClick,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,onBlur:this.handleBlur})}}Object(i.a)(g,"defaultProps",{value:Object(s.a)("Editable Text"),tagName:"span",className:""})},function(e,t,o){"use strict";o.d(t,"a",(function(){return r}));var i=o(13);function r(e){return i.a.getAll().urls.assets+"/"+e}},,function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"e",(function(){return n})),o.d(t,"f",(function(){return a})),o.d(t,"d",(function(){return l})),o.d(t,"c",(function(){return c})),o.d(t,"b",(function(){return s})),o.d(t,"g",(function(){return d}));var i=o(10);const r=(e,t,o=[])=>{if(t(e))return{obj:e,path:o};for(let i in e)if(e.hasOwnProperty(i)&&"object"==typeof e[i]&&null!==e[i]){const{obj:n,path:a}=r(e[i],t,[...o,i]);if(n)return{obj:n,path:a}}return{obj:null,path:null}},n=(e,t,...o)=>{for(let i in e)e.hasOwnProperty(i)&&(e[i]&&"object"==typeof e[i]&&n(e[i],t,...o),t(i,e[i],e,...o))},a=(e,t)=>{for(let o in e)e.hasOwnProperty(o)&&e[o]&&"object"==typeof e[o]&&a(e[o],t);t(e)};function l(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?i.default.mapObject(t,e):t,s=(e,t)=>!(!t||!e.every(e=>t.hasOwnProperty(e))),d=e=>null!==e&&"object"==typeof e?e:{}},function(e,t,o){"use strict";(function(e){var i=o(37),r=o(2),n=o(1),a=o.n(n),l=o(24),c=o(38),s=o(13),d=o(27),p=o(55),u=o(18),b=o(17),m=o(759),h=o(153);function g(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}const v=s.a.get("menuData"),y={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"],showSidebarStyling:["ctrl+M","cmd+M","right_cmd+M"],showSidebarAdvanced:["ctrl+K","cmd+K","right_cmd+K"]},f=a.a.createContext({});class S extends a.a.Component{constructor(...e){super(...e),Object(r.a)(this,"contextValue",{getParentContextMenuItems:this.getItems}),Object(r.a)(this,"getItems",()=>{let e=this.props,{children:t,shortcutsTypes:o=[],keyNames:n=[]}=e,a=Object(i.a)(e,["children","shortcutsTypes","keyNames"]);const{getParentContextMenuItems:l}=this.context;let c=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(r.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:[...(s=o,s.reduce((e,t)=>(y[t]&&(e=[...e,...y[t]]),e),[])),...n]},a);var s;return c=l?[c,...l()]:[c],c})}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 i=o.getId(),r=Object(d.b)().getState(),n=Object(b.E)(r),a=Object(b.f)(r),c=Object(u.g)(n,[i]),s=[...c],p=O(n);if(y.paste.includes(t[0].keyName)){const{value:e}=Object(u.i)(c,p,({type:e})=>"Wrapper"===e||"Cloneable"===e);if(e&&a.value){const{value:o}=Object(u.i)(a.path,O(a.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 m=[];for(let e=0;e<=c.length;e++){const e=Object(l.getIn)(p,s);if(e){const o=t.find(({id:t})=>t===e._id);if(o)return[o]}m.unshift(s.pop())}return[]}shouldShortCutHandle(e,{keyName:t}){const o=y.delete.includes(t),i=y.paste.includes(t),r=y.copy.includes(t),n=o||i||r,a=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(","))||a&&n)}render(){const{children:e,id:t}=this.props,o=this.getItems();return a.a.createElement(f.Provider,{value:this.contextValue},e,a.a.createElement(m.a,{items:o,id:t,shouldKeyDownHandle:this.shouldShortCutHandle,shouldKeyUpHandle:this.shouldShortCutHandle,filterItems:this.handleFilterItems}))}}function O(e){return Object(u.r)(e=>{const{type:t,value:o}=e;if("Menu"===t){const{menuSelected:t,symbols:i={}}=o,r=t||v[0].id,n=v.find(e=>e.id===r)||{};return Object(c.b)(e,e=>{e.value.items=Object(h.c)(n.items||[],i)})}return e},e)}Object(r.a)(S,"contextType",f),t.a=Object(p.c)({allow:["admin"],component:S,fallbackComponent:({children:e})=>e||null})}).call(this,o(113))},,function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var i=o(565),r=o.n(i);const n=(e=36)=>r()("abcdefghijklmnopqrstuvwxyz",e)},,,,,function(e,t,o){"use strict";o.d(t,"f",(function(){return i})),o.d(t,"c",(function(){return r})),o.d(t,"d",(function(){return n})),o.d(t,"e",(function(){return a})),o.d(t,"a",(function(){return l})),o.d(t,"k",(function(){return c})),o.d(t,"h",(function(){return s})),o.d(t,"i",(function(){return d})),o.d(t,"g",(function(){return p})),o.d(t,"j",(function(){return u})),o.d(t,"l",(function(){return b})),o.d(t,"b",(function(){return m}));const i={start:["mousedown"],move:["mousemove"],end:["mouseup"]};function r(e,t){let o=e;for(;o;){if(t(o))return o;o=o.parentElement}}function n(e){let t=e,o=0;for(;t=t.parentElement;)o++;return o}function a(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 c(e,...t){t.forEach(t=>e.classList.remove(t))}function s(e,t,o,i){const r=o-e,n=i-t;return Math.sqrt(r*r+n*n)}function d(e,t,o,i){const r=t<i,n=e<o;return{isAbove:r,isBelow:!r,isLeft:n,isRight:!n}}function p(e,t,o){return e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom}function u(e){return{x:e.left+.5*(e.right-e.left),y:e.top+.5*(e.bottom-e.top)}}function b(e,t,o="all"){const i="all"===o||"top-bottom"===o,r="all"===o||"left-right"===o;return{top:i?e.top+t:e.top,bottom:i?e.bottom-t:e.bottom,left:r?e.left+t:e.left,right:r?e.right-t:e.right}}function m(e,t,o){return e<t?t:e>o?o:e}},function(e,t,o){"use strict";var i={};o.r(i),o.d(i,"facebook",(function(){return Mt}));var r={};o.r(r),o.d(r,"email",(function(){return an})),o.d(r,"wordpress",(function(){return cn})),o.d(r,"mailchimp",(function(){return dn})),o.d(r,"sendinblue",(function(){return un})),o.d(r,"zapier",(function(){return mn})),o.d(r,"campaignmonitor",(function(){return gn})),o.d(r,"convertkit",(function(){return yn})),o.d(r,"activecampaign",(function(){return Sn})),o.d(r,"getresponse",(function(){return xn})),o.d(r,"mailjet",(function(){return wn})),o.d(r,"egoi",(function(){return jn})),o.d(r,"hubspot",(function(){return Pn})),o.d(r,"mailerlite",(function(){return _n})),o.d(r,"drip",(function(){return zn})),o.d(r,"smtp",(function(){return Rn})),o.d(r,"gmail_smtp",(function(){return Ln})),o.d(r,"mailgun",(function(){return In})),o.d(r,"madmimi",(function(){return An})),o.d(r,"constantcontact",(function(){return Vn})),o.d(r,"aweber",(function(){return $n})),o.d(r,"salesforce",(function(){return Un})),o.d(r,"sendgrid",(function(){return qn})),o.d(r,"recaptcha",(function(){return Xn}));var n={};o.r(n),o.d(n,"google",(function(){return wa})),o.d(n,"uploader",(function(){return Aa}));var a=o(2),l=o(1),c=o.n(l),s=o(38),d=o(300);const p={};class u extends d.EventEmitter{addChangeListener(e,t){this.on(e,t)}removeChangeListener(e,t){this.removeListener(e,t)}get(e){return p[e]}set(e,t){p[e]=t,this.emit(e,t)}}const b=new u;b.setMaxListeners(1/0);var m=b,h=(o(65),o(5)),g=o.n(h),v=o(10),y=o(13),f=o(128),S=o(51),O=o(39),x=o(37),C=o(12),w=o(760),B=o(63),j=o.n(B);function T(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function P(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(a.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=({onScroll:e,forwardedRef:t,style:o,children:i})=>{const r=Object(l.useCallback)(e=>{t(e?e.view:null)},[]);return c.a.createElement(j.a,{ref:r,style:P(P({},o),{},{overflow:"hidden"}),onScroll:e},i)},_=Object(l.forwardRef)((e,t)=>c.a.createElement(E,Object(C.a)({},e,{forwardedRef:t})));_.displayName="CustomScrollbarsVirtualList";const k=e=>{const t=Object(l.forwardRef)((t,o)=>{let{style:i}=t,r=Object(x.a)(t,["style"]);return c.a.createElement("div",Object(C.a)({ref:o,style:P(P({},i),{},{paddingLeft:e,paddingTop:e,marginBottom:e})},r))});return t.displayName="InnerElement",t};var z=e=>{const{height:t,width:o,columnCount:i,columnWidth:r,rowCount:n,rowHeight:a,initialScrollTop:l,renderItem:s,style:d={},gutter:p=0}=e;return c.a.createElement(w.a,{height:t,width:o,columnCount:i,columnWidth:r+p,rowCount:n,rowHeight:a+p,style:d,initialScrollTop:l,outerElementType:_,innerElementType:k(p)},s)},F=o(16);function R(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 H({getPromise:e,renderResolved:t,renderRejected:o,renderWaiting:i,delayMs:r=0}){const n=r&&r>0,[a,c]=Object(l.useReducer)(R,{status:n?"delay":"waiting"});return Object(l.useEffect)(()=>{let t,o=!1;return n&&(t=window.setTimeout(()=>{o||c({type:"wait"})},r)),e().then(e=>{o||(clearTimeout(t),c({type:"resolve",value:e}))}).catch(e=>{o||(clearTimeout(t),c({type:"reject",reason:e}))}),()=>{o=!0}},[]),"waiting"===a.status&&i?i():"resolved"===a.status?t(a.value):"rejected"===a.status&&o?o(a.reason):null}var L=o(570);const M=[{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"}],I=[{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}],W=[{id:2,name:"fa",title:"FA",icon:"nc-full-cube"}],A=[{id:0,name:"outline",title:"Outline",icon:"nc-cube"},{id:1,name:"glyph",title:"Glyph",icon:"nc-full-cube"}];var N=o(36),V=o(87),D=o(20),$=o(25);const G=Object(D.e)(e=>e>=0&&e<=2?e:void 0,Math.round,$.b);var U=o(23);const K=e=>{if(null===e||"object"!=typeof e)return;const t=U.d(e.title),o=U.d(e.name),i=G(e.type);if(void 0===t||void 0===o||void 0===i)return;const r=U.d(e.family);return{title:t,name:o,type:i,cat:Object(V.k)(e.cat).map($.b).filter(Boolean),family:r}},q=e=>Object(V.k)(null==e?void 0:e.default).map(K).filter(Boolean),Y=e=>{switch(e){case 0:return o.e(5).then(o.t.bind(null,1015,3)).then(q);case 1:return o.e(4).then(o.t.bind(null,1016,3)).then(q);case 2:return o.e(3).then(o.t.bind(null,1017,3)).then(q)}},X=()=>N.l?N.g?[...A,...W]:W:A,J=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}`}},Z=e=>{switch(e){case 0:case 1:return M;case 2:return I}};function Q(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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(a.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 ie extends l.Component{constructor(...e){var t;super(...e),Object(a.a)(this,"state",{typeId:(null!==(t=te.find(e=>e.name===this.props.type))&&void 0!==t?t:te[0]).id,categoryId:"*",search:""}),Object(a.a)(this,"containerRef",c.a.createRef()),Object(a.a)(this,"onIconClick",e=>{this.props.onClose(),setTimeout(()=>{this.props.onChange(e)},0)})}componentDidUpdate(){if(this.containerRef.current){const{templateFonts:e}=y.a.get("urls");Object(L.a)(this.containerRef.current,e)}}renderTabs(){const e=te.map(e=>c.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})},c.a.createElement("div",{className:"brz-ed-popup-tab-icon"},c.a.createElement(F.b,{icon:e.icon})),c.a.createElement("div",{className:"brz-ed-popup-tab-name"},e.title)));return c.a.createElement("div",{className:"brz-ed-popup-header"},c.a.createElement("div",{className:"brz-ed-popup-header__tabs"},e),c.a.createElement("div",{className:"brz-ed-popup-btn-close",onClick:this.props.onClose}))}renderFilters(){const{categoryId:e,search:t,typeId:o}=this.state,i=[{id:"*",name:"all",title:"All Categories"},...Z(o)];return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"brz-ed-popup__categories"},c.a.createElement(S.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})},i.map(({id:e,title:t})=>c.a.createElement(O.a,{key:e,value:e},t)))),c.a.createElement("div",{className:"brz-ed-popup__search"},c.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}),c.a.createElement("div",{className:g()("brz-ed-popup__search--icon",{active:t.length>0})},c.a.createElement(F.b,{icon:"nc-search"}))))}filterIcons(e){const{typeId:t,categoryId:o,search:i}=this.state,r=new RegExp(i.replace(/[.*+?^${}()|[\]\\]/g,""),"i");return e.filter(({type:e,cat:n,title:a})=>t===e&&("*"===o||n.includes(o))&&(""===i||r.test(a)))}render(){const{name:e,type:t,opened:o,onClose:i}=this.props;return c.a.createElement(f.a,{opened:o,onClose:i},c.a.createElement("div",{ref:this.containerRef,className:"brz-ed-popup-wrapper"},this.renderTabs(),c.a.createElement("div",{className:"brz-ed-popup-content brz-ed-popup-pane brz-ed-popup-icons"},c.a.createElement("div",{className:"brz-ed-popup-body"},c.a.createElement("div",{className:"brz-ed-popup__head--search brz-d-xs-flex brz-align-items-center brz-justify-content-xs-center"},this.renderFilters()),c.a.createElement("div",{className:"brz brz-ed-popup-icons__grid"},c.a.createElement(H,{getPromise:()=>{return e=X().map(e=>e.id),Promise.all(e.map(Y)).then(V.a);var e},renderResolved:o=>{const i=this.filterIcons(o);return c.a.createElement(re,{icons:i,value:{name:e,type:t},onChange:this.onIconClick})},renderWaiting:()=>c.a.createElement(ne,null),delayMs:1e3}))))))}}function re({icons:e,value:t,onChange:o}){const[i,r]=Object(l.useState)(null),n=Object(l.useRef)(null),a=e.findIndex(e=>e.name===t.name),s=Math.floor(e.length/8)+1,d=Math.floor(a/8),p=0===d?0:d-1;if(Object(l.useEffect)(()=>{if(n.current){const{width:e,height:t}=n.current.getBoundingClientRect();r({width:e,height:t})}},[]),!i)return c.a.createElement("div",{style:{height:"100%"},ref:n},c.a.createElement(ne,null));const{width:u,height:b}=i,m=74*p;return c.a.createElement(z,{width:u,height:b,columnCount:8,columnWidth:68,rowCount:s,rowHeight:68,gutter:6,initialScrollTop:m,renderItem:({rowIndex:i,columnIndex:r,style:n})=>{const a=e[8*i+r];if(!a)return null;const{type:l,name:s}={type:oe[a.type],name:a.name},d=g()("brz-ed-popup-icons__grid__item",{active:l===t.type&&s===t.name});return c.a.createElement("div",{style:ee(ee({},n),{},{left:n.left+6,top:n.top+6,width:n.width-6,height:n.height-6}),className:d,onClick:()=>{o({type:l,name:s})}},c.a.createElement("i",{className:g()(["brz-font-icon",J(a)])}))}})}function ne(){return c.a.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"#828b92",fontSize:"35px"}},c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))}Object(a.a)(ie,"defaultProps",{name:"nc-star",type:"outline",onChange:v.default.noop});var ae=o(0);function le(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ce(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(a.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 se extends l.Component{constructor(e){super(e),Object(a.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,i=o.map(o=>o.id===e?ce(ce({},o),t):o);this.setState({tabs:i})}renderHeader(){const{currentTab:e,tabs:t}=this.state,{onClose:o}=this.props,i=t.map(t=>{const{id:o,icon:i,img:r,title:n}=t,a=g()("brz-ed-popup-tab-item",{active:o===e});return c.a.createElement("div",{key:o,className:a,onClick:()=>this.handleTabChange(o)},i&&c.a.createElement("div",{className:"brz-ed-popup-tab-icon"},c.a.createElement(F.b,{icon:i})),r?c.a.createElement("div",{className:"brz-ed-popup-tab-image"},c.a.createElement("img",{className:"brz-img",src:r,alt:n})):c.a.createElement("div",{className:"brz-ed-popup-tab-name"},n))});return c.a.createElement("div",{className:"brz-ed-popup-header"},c.a.createElement("div",{className:"brz-ed-popup-header__tabs"},i),c.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:i,component:r})=>i===o?[c.a.createElement(r,Object(C.a)({},this.props,{key:i,loading:t,onLoading:this.handleLoading,onTabUpdate:e=>{this.handleTabUpdate(i,e)}}))]:e,[])}renderTabs(){const{tabs:e,loading:t,currentTab:o}=this.state;return e.map(({id:e,component:i})=>{const r=g()("brz-ed-popup-integration-"+e,{"brz-hidden":e!==o});return c.a.createElement(i,Object(C.a)({},this.props,{key:e,loading:t,className:r,onTabUpdate:t=>{this.handleTabUpdate(e,t)}}))})}render(){const{opened:e,onClose:t}=this.props;return c.a.createElement(f.a,{className:"brz-ed-popup-integrations",opened:e,onClose:t},c.a.createElement("div",{className:"brz-ed-popup-wrapper"},this.renderHeader(),c.a.createElement("div",{className:"brz-ed-popup-content"},this.state.loading?this.renderCurrentTab():this.renderTabs())))}}Object(a.a)(se,"defaultProps",{value:{},opened:!1,tabs:[],currentTab:"",blockTabsWhenLoading:!0,onClose:v.noop});var de=se,pe=o(57),ue=o(21);const be=e=>{const{message:t,type:o="success",className:i}=e,r=g()("brz-ed-alert",i,{["brz-ed-alert-"+o]:o});return c.a.createElement("div",{className:r},c.a.createElement("span",{className:"brz-span"},t))},me=c.a.createContext({app:{},connectedApps:[],stages:[],stage:"",oldStage:"",onChange:v.noop,onChangeNext:v.noop,onChangePrev:v.noop,onConnectApp:v.noop,onDisconnectApp:v.noop,onChangeProgress:v.noop,onError:v.noop}),he=({className:e})=>c.a.createElement("div",{className:g()("brz-ed-popup-content--loading",e)},c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}));class ge extends l.Component{render(){const{stage:e,apps:t,children:o,onClose:i}=this.props;return c.a.Children.map(o,o=>e===o.props.num&&c.a.cloneElement(o,{apps:t,onClose:i}))}}Object(a.a)(ge,"defaultProps",{stage:"",apps:[]});var ve=e=>{const{stage:t,children:o}=e;return c.a.createElement("div",{className:"brz-ed-popup-integrations__progress"},c.a.Children.map(o,e=>e&&c.a.cloneElement(e,{stage:t})))};class ye extends l.Component{render(){const{stage:e,apps:t,children:o}=this.props;return c.a.Children.map(o,o=>o&&c.a.cloneElement(o,{stage:e,apps:t}))}}Object(a.a)(ye,"defaultProps",{stage:"",apps:[]}),Object(a.a)(ye,"Steps",ge),Object(a.a)(ye,"Step",e=>{let{render:t}=e;return t(Object(x.a)(e,["render"]))}),Object(a.a)(ye,"Progress",ve),Object(a.a)(ye,"Stage",({stage:e,num:t,text:o,img:i})=>{const r=g()("brz-ed-popup-integrations__progress-stage",{"brz-ed-popup-integrations__progress-stage--active":t===e});return c.a.createElement("div",{className:r},c.a.createElement("span",{className:"brz-span"},i&&c.a.createElement("img",{className:"brz-img",src:i,alt:"Logo"}),o))});var fe=ye;class Se extends l.Component{render(){const{apps:e,render:t}=this.props;return c.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(a.a)(Se,"defaultProps",{apps:[],render:v.default.noop});var Oe=o(70),xe=o(210);const{upgradeToPro:Ce}=y.a.get("urls");class we extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{tooltipOpen:!1}),Object(a.a)(this,"iconRef",c.a.createRef()),Object(a.a)(this,"handleTooltipOpen",()=>{this.setState({tooltipOpen:!0})}),Object(a.a)(this,"handleTooltipClose",()=>{this.setState({tooltipOpen:!1})})}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 c.a.createElement("div",{className:"brz-ed-popup-integrations__app brz-ed-popup-integrations__app--pro"},c.a.createElement(Oe.c,{overlayClassName:"brz-ed-tooltip--delay-2",size:"small",offset:"5",openOnClick:!1,nodeRef:this.iconRef,overlay:c.a.createElement(xe.a,{text:Object(ae.a)("Upgrade to PRO to use this integration"),url:Ce}),onOpen:this.handleTooltipOpen,onClose:this.handleTooltipClose},c.a.createElement("div",{className:o},c.a.createElement("img",{className:"brz-img",src:e,alt:t}),c.a.createElement("span",{ref:this.iconRef,className:"brz-span brz-ed-popup-integrations__app-icon brz-ed-popup-integrations__app-icon--pro"},c.a.createElement(F.b,{icon:"nc-lock"})),c.a.createElement("p",{className:"brz-p brz-ed-badge brz-ed-badge--pro"},"pro")),c.a.createElement("div",{className:"brz-ed-popup-integrations__app-title"},t)))}renderFree(){const{img:e,title:t,loading:o,active:i,onClick:r}=this.props,n=g()("brz-ed-popup-integrations__app",i&&"brz-ed-popup-integrations__app--connected",o&&"brz-ed-popup-integrations__app--loading");return c.a.createElement("div",{className:n,onClick:r},c.a.createElement("div",{className:"brz-ed-popup-integrations__app-logo"},c.a.createElement("img",{className:"brz-img",src:e,alt:t}),i&&!o&&c.a.createElement("span",{className:"brz-span brz-ed-popup-integrations__app-icon"},c.a.createElement(F.b,{icon:"nc-check-small"})),o&&c.a.createElement("span",{className:"brz-span brz-ed-popup-integrations__app-icon"},c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))),c.a.createElement("div",{className:"brz-ed-popup-integrations__app-title"},t))}render(){return!N.g&&this.props.pro?this.renderPro():this.renderFree()}}Object(a.a)(we,"defaultProps",{img:"",pro:!1,shortTitle:"",loading:!1,active:!1,onClick:v.default.noop});const Be=y.a.get("urls");class je extends l.Component{constructor(...e){super(...e),Object(a.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 c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},c.a.createElement("span",{className:"brz-span"},this.props.error))}renderProException(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-pro brz-mb-lg-0"},c.a.createElement("span",{className:"brz-span"},Object(ae.a)("Some integrations are available only in PRO")),c.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:Be.upgradeToPro,target:"_blank"},c.a.createElement(F.b,{icon:"nc-lock"}),Object(ae.a)("Get a PRO plan")))}render(){const{apps:e,height:t,proExceptions:o,error:i}=this.props,{connectedApps:r}=this.context,{loadingApp:n}=this.state;return c.a.createElement(j.a,{style:{height:t}},i&&this.renderError(),o&&this.renderProException(),c.a.createElement(Se,{apps:e,render:e=>c.a.createElement(we,Object(C.a)({},e,{key:e.id,loading:n===e.id,active:r.includes(e.id),onClick:()=>{this.handleChangeApp(e)}}))}))}}Object(a.a)(je,"contextType",me),Object(a.a)(je,"defaultProps",{apps:[],height:"100%",proExceptions:!1,error:null});var Te=je;class Pe extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{loading:!0,showProgress:!0,connectedApp:"",connectedApps:[],stage:this.props.stage,stages:this.props.stages,oldStage:"",data:{},error:null,appError:null}),Object(a.a)(this,"appsData",[]),Object(a.a)(this,"appsComponent",{}),Object(a.a)(this,"proExceptions",!1),Object(a.a)(this,"handleConnectApp",async e=>{const{id:t,stages:o}=e;this.setState(Object(s.a)(i=>{i.stages=o,i.connectedApp=t,i.data[t]=e}),()=>{this.handleNext()})}),Object(a.a)(this,"handleDisconnectApp",e=>{const{stage:t,stages:o}=this.props;this.setState(Object(s.a)(i=>{const r=i.connectedApps;i.stage=t,i.stages=o,i.connectedApps=r.filter(t=>t!==e)}))}),Object(a.a)(this,"handleProgress",e=>{this.setState(e)}),Object(a.a)(this,"handleChange",(e,t)=>{this.setState(Object(s.a)(o=>{o.data[e].data=t}))}),Object(a.a)(this,"handleNext",async e=>{const{stages:t,stage:o}=this.state,i=t.findIndex(({type:e})=>e===o)+1,r=e||t[i].type,n=this.getComponent(r);let a=!1;if(n&&"function"==typeof n.onBeforeLoad){const e=t[i+1].type,o={onChangeNext:t=>{const o=t||e;a=!0,this.handleNext(o)}};await n.onBeforeLoad(this.getContextValue(),o)}a||this.setState({stage:r,oldStage:o})}),Object(a.a)(this,"handlePrev",e=>{this.setState(Object(s.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:i,stages:r}=t,n=r.findIndex(({type:e})=>e===i)-1;t.stage=e||(null===(o=r[n])||void 0===o?void 0:o.type)||"",t.oldStage=i,t.connectedApp=-1===n?"":t.connectedApp}}))}),Object(a.a)(this,"handleError",e=>{this.setState({error:e})})}getContextValue(){const{connectedApp:e,connectedApps:t,data:o,stages:i,stage:r,oldStage:n}=this.state;return{app:o[e]||{},connectedApps:t,stages:i,stage:r,oldStage:n,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 c.a.createElement(he,null)}renderError(){return this.state.error&&c.a.createElement(be,{message:this.state.error})}renderApps(){const{error:e,appError:t}=this.state;return c.a.createElement(c.a.Fragment,null,e&&c.a.createElement(be,{message:e}),c.a.createElement(Te,{apps:this.appsData,proExceptions:this.proExceptions,error:t}))}renderSteps(){var e;const{showProgress:t,stage:o,stages:i,connectedApp:r,data:n}=this.state,a=t&&!(null!==(e=i.find(e=>e.type===o))&&void 0!==e&&e.hideProgress),l=i.reduce((e,t,o,i)=>{const a={num:t.type};return o===i.findIndex(e=>e.title)?a.img=n[r].img:a.text=t.title,t.title?[...e,c.a.createElement(fe.Stage,Object(C.a)({key:o},a))]:e},[]);return c.a.createElement(me.Provider,{value:this.getContextValue()},c.a.createElement(fe,{stage:o},a&&l.length>0&&c.a.createElement(fe.Progress,null,l),c.a.createElement(fe.Steps,{onClose:this.props.onClose},i.map((e,t)=>{const o=this.getComponent(e.type);return c.a.createElement(fe.Step,{key:t,num:e.type,render:e=>o&&c.a.createElement(o,Object(C.a)({},e,{apps:this.appsData}))})}))))}renderContent(){const{stage:e,stages:t}=this.state;return c.a.createElement(me.Provider,{value:this.getContextValue()},""!==e&&t.length?this.renderSteps():this.renderApps())}render(){const e=g()("brz-ed-popup-integration",this.props.className);return c.a.createElement("div",{className:e},this.state.loading?c.a.createElement(he,null):this.renderContent())}}Object(a.a)(Pe,"defaultProps",{className:"",tab:{},stage:"",stages:[],onLoading:v.default.noop,onTabUpdate:v.default.noop,onClose:v.default.noop});var Ee=Pe;o(253);function _e(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ke(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):_e(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const ze=(e,t={})=>{let o=new URL(e);return Object.entries(t).forEach(([e,t])=>{o.searchParams.append(e,t)}),o},Fe=e=>e.json().then(t=>ke(ke({},t),{},{status:e.status,ok:e.ok,data:t.data||null})).then(Re).catch(()=>{throw{status:500,data:"Server Error"}}),Re=e=>{if(e.success)return e;{const{data:t}=e;return ke(ke({},e),{},{status:t.code||e.status})}},He=(e,t,o,i)=>{let r=e&&JSON.parse(e)||[];const n=t&&t.length||0;let a=t.filter(e=>e.required).length;!r.some(({target:e})=>"email"===e)&&o.some(({type:e})=>e&&"email"===e.toLowerCase())&&(r=((e,t)=>{const o=t.find(({type:e})=>e&&"email"===e.toLowerCase());return e.push({sourceId:o._id,sourceTitle:o.label,target:"email"}),e})(r,o),a--);let l=0,c=0;return o.map(({_id:e,label:o})=>{const s=r.find(({sourceId:t})=>t===e);let d=null;return s&&s.target&&"_auto_generate"!==s.target?d=s.target:(Le(n+c,i)||c<a?(d=Me(t,r,l),l++):d="_auto_generate",c++),{sourceId:e,sourceTitle:o,target:d}})},Le=(e,t)=>t&&e>=t.maxFields,Me=(e,t,o)=>{const i=v.default.pluck(e,"slug"),r=v.default.pluck(t,"target");return v.default.difference(i,r)[o]},Ie=(e,t,o="select")=>{if("select"===o){const o=v.default.pluck(e.filter(e=>e.required),"slug"),i=v.default.pluck(t,"target");return!v.default.difference(o,i).length}if("input"===o)return 0===t.filter(e=>""===e.target).length},We=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 Ae(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}const Ne=e=>{const{api:t}=y.a.get("wp"),o=y.a.get("editorVersion"),i=ze(t.url,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ae(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(ue.O)(i,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(e=>Fe(e))},Ve=e=>{const{api:t}=y.a.get("wp"),o=y.a.get("editorVersion"),i=ze(t.url,{action:t.deleteAccount,hash:t.hash,version:o,id:e});return Object(ue.O)(i,{method:"DELETE",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(Fe).then(e=>e)};var De=o(130),$e=o(207);const Ge=e=>{const{className:t,size:o=1,color:i="gray",type:r="button",rightIcon:n,leftIcon:a,loading:l,disabled:s,children:d,href:p,target:u,onClick:b}=e,m=g()("brz-button brz-ed-btn","brz-ed-btn-sm brz-ed-btn-rounded",t,l?"brz-ed-btn--loading":"brz-ed-btn-icon","brz-ed-btn-width-"+o,"brz-ed-btn-"+i,{"brz-ed-btn-icon--left":a},{"brz-ed-btn-icon--right":n},{"brz-ed-btn--disabled":s}),h=l?c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}):c.a.createElement(c.a.Fragment,null,a&&c.a.createElement(F.b,{icon:a}),d,n&&c.a.createElement(F.b,{icon:n}));switch(r){case"link":return c.a.createElement("a",{className:m,target:u,href:p,rel:"noopener noreferrer",onClick:b},h);case"button":return c.a.createElement("button",{className:m,onClick:b},h)}};class Ue extends l.Component{renderOptions(){const{active:e,data:{accounts:t,usedAccount:o,completed:i},disconnectLoading:r,onActive:n,onDisconnect:a}=this.props,l=t.map(({name:e,id:t})=>c.a.createElement($e.a,{value:t,key:t},e||"Account "+t,t===o&&i&&c.a.createElement("div",{title:"Disconnect",className:"brz-ed-popup-integrations--delete",onClick:a},c.a.createElement(F.b,{icon:r?"nc-circle-02":"nc-connection",className:r?"brz-ed-animated--spin":""}))));return c.a.createElement(j.a,{autoHeight:!0,autoHeightMax:"100%",style:{height:"auto"}},c.a.createElement(De.b,{className:"brz-ed-popup-integrations-option__radio",name:"list",defaultValue:e,onChange:n},l))}renderError(){const{error:e,data:{accounts:t}}=this.props;return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},c.a.createElement("span",{className:"brz-span"},0===t.length&&Object(ae.a)("Accounts are empty. Please connect a new account and try again."),e))}render(){const{data:{accounts:e},error:t,nextLoading:o,prevLoading:i,connectLoading:r,onConnect:n,onPrev:a,onNext:l}=this.props,s=e.length>0;return c.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__account"},c.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},Object(ae.a)("SELECT ACCOUNT")))),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},(!s||t)&&this.renderError(),s&&this.renderOptions(),c.a.createElement("div",{className:"brz-ed-popup-integrations-new__option",onClick:n},c.a.createElement(F.b,{icon:r?"nc-circle-02":"nc-add",className:r?"brz-ed-animated--spin":""}),Object(ae.a)("Connect a new account")),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},c.a.createElement(Ge,{size:3,leftIcon:"nc-arrow-left",loading:i,onClick:a},Object(ae.a)("Back")),c.a.createElement(Ge,{color:"teal",rightIcon:"nc-arrow-right",loading:o,onClick:l},Object(ae.a)("Continue")))))}}Object(a.a)(Ue,"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 Ke=Ue;var qe=e=>{const{title:t="",value:o="",icon:i="",type:r="text",required:n=!1,loading:a=!1,onChange:l=v.noop,onKeyDown:s=v.noop,onClickIcon:d=v.noop}=e;return c.a.createElement("div",{className:"brz-input__placeholder"},c.a.createElement("label",{className:"brz-label"},c.a.createElement("input",{required:!0,className:"brz-input",name:t,type:r,value:o,onChange:l,onKeyDown:s}),c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},t,n&&c.a.createElement("span",{className:"brz-span"},"(",Object(ae.a)("required"),")")))),i&&c.a.createElement("div",{className:"brz-input__placeholder-icon"},a?c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}):c.a.createElement(F.b,{icon:i,onClick:d})))};class Ye extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"handleKeyDown",e=>{13===e.which&&this.props.onNext()})}renderError(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},c.a.createElement("span",{className:"brz-span"},this.props.error))}renderInputs(){const{data:e,onChange:t}=this.props;return e.map((e,o)=>{const{title:i,name:r,value:n}=e;return c.a.createElement(qe,{key:o,title:i,name:r,required:!0,value:n,onChange:({target:e})=>{t(e.value,r)},onKeyDonw:this.handleKeyDown})})}render(){const{img:e,title:t,descriptions:o,error:i,nextLoading:r,prevLoading:n,onNext:a,onPrev:l,docsUrl:s}=this.props;return c.a.createElement("div",{className:"brz-ed-popup-integrations__connect"},c.a.createElement("div",{className:"brz-ed-popup-integrations__connect-head"},c.a.createElement("img",{className:"brz-img",src:e,title:t,alt:t}),c.a.createElement("p",{className:"brz-p"},o),c.a.createElement("p",{className:"brz-p brz-ed-popup-integrations__connect-info"},c.a.createElement("a",{className:"brz-a",href:s,target:"_blank",rel:"noreferrer"},Object(ae.a)("Need help"),"?"))),c.a.createElement("div",{className:"brz-ed-popup-integrations__connect-body"},i&&this.renderError(),this.renderInputs(),null!==r&&c.a.createElement(Ge,{color:"teal",loading:r,onClick:a},Object(ae.a)("Connect")),null!==n&&c.a.createElement(Ge,{color:"default",loading:n,onClick:l},Object(ae.a)("Cancel"))))}}Object(a.a)(Ye,"defaultProps",{img:"",title:"",descriptions:"",data:[{title:"",name:"",value:""}],nextLoading:null,prevLoading:null,error:null,onNext:v.default.noop,onPrev:v.default.noop});var Xe=Ye;class Je extends l.Component{renderError(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},c.a.createElement("span",{className:"brz-span"},this.props.error))}render(){const{title:e,img:t,descriptions:o,error:i,nextLoading:r,prevLoading:n,onNext:a,onPrev:l}=this.props,s=null!==r&&null!==n;return c.a.createElement("div",{className:"brz-ed-popup-integrations__connect"},c.a.createElement("div",{className:"brz-ed-popup-integrations__connect-head"},c.a.createElement("img",{className:"brz-img",src:t,alt:e}),c.a.createElement("p",{className:"brz-p"},o)),c.a.createElement("div",{className:"brz-ed-popup-integrations__connect-body"},i&&this.renderError(),s&&c.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==r&&c.a.createElement(Ge,{color:"red",loading:r,onClick:a},Object(ae.a)("Disconnect")),null!==n&&c.a.createElement(Ge,{color:"default",loading:n,onClick:l},Object(ae.a)("Cancel")))))}}Object(a.a)(Je,"defaultProps",{title:"",descriptions:"",nextLoading:null,prevLoading:null,error:null,onNext:v.default.noop,onPrev:v.default.noop});var Ze=Je,Qe=o(19),et=o(169),tt=o(24),ot=o(323),it=o(320),rt=o(1008),nt=o(1012),at=o(301),lt=o(105),ct=o(103);function st(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function dt(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(a.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 pt=(e,t,o,i)=>{const r=t*o,n=t*i,a=e*t;return Math.max(r,Math.min(n,a))};class ut extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{inputValue:""}),Object(a.a)(this,"selectRef",c.a.createRef()),Object(a.a)(this,"inputRef",c.a.createRef()),Object(a.a)(this,"handleChange",(e,t)=>{const{multiple:o,value:i,onChange:r}=this.props;if(o){if(t.isOpen||this.setState({inputValue:""}),e.hasOwnProperty("value")){const t=Array.isArray(i)?i:[];r(Object(tt.addLast)(t,e.value))}}else e&&(this.setState({inputValue:e.value}),r(e))}),Object(a.a)(this,"handleInputChange",e=>{this.setState({inputValue:e.target.value})}),Object(a.a)(this,"handleRemoveTag",e=>{const{value:t,onChange:o}=this.props;o(Object(tt.removeAt)(t,e))}),Object(a.a)(this,"handleInputKeyDown",e=>{const{value:t,multiple:o,onChange:i}=this.props;o&&8===e.keyCode&&!this.state.inputValue&&i(Object(tt.removeLast)(t))})}itemToString(e){return e?e.label:""}renderTags(e){return Array.isArray(e)?e.map((e,t)=>c.a.createElement("div",{key:t,className:"brz-control__select2-tag"},e,c.a.createElement(F.b,{icon:"nc-trash",onClick:()=>{this.handleRemoveTag(t)}}))):null}renderInput(e){const{multiple:t,selectedItem:o,isOpen:i,toggleMenu:r,inputProps:n}=e,a=t?"brz-control__select2-value-container-tag":"brz-control__select2-value-container";return c.a.createElement(rt.a,null,({ref:e})=>c.a.createElement("div",{ref:e,className:a,onClick:()=>{r(),!i&&this.inputRef.current.focus()}},t&&this.renderTags(o),c.a.createElement("input",Object(C.a)({},n,{className:"brz-input brz-control__select2-value"}))))}renderDropdown(e){const{className:t,options:o,value:i,multiple:r,placement:n,fixed:a,itemHeight:l,minItems:s,maxItems:d,isOpen:p,inputValue:u,highlightedIndex:b,selectedItem:m,getItemProps:h,getMenuProps:v}=e;if(!p)return;const y=Array.isArray(i)&&r?o.filter(e=>i.every(t=>t!==e.value)):o,f=this.selectRef.current,S=f.getBoundingClientRect().width,O=f.ownerDocument.body,x=g()("brz-ed-select2-portal",t),w=new it.a(y,["value"]);return c.a.createElement(lt.a,{node:O,className:x},c.a.createElement(nt.a,{placement:n,positionFixed:a},({ref:e,style:t,placement:o})=>{const i=w.search(u).map((e,t)=>c.a.createElement("li",Object(C.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 c.a.createElement("div",{ref:e,style:dt(dt({},t),{},{width:S}),className:"brz-control__select2-menu","data-placement":o},c.a.createElement(ct.a,{style:{height:pt(i.length,l,s,d)},className:"brz-control__select2-scroll-pane brz-ed-scroll--small"},c.a.createElement("ul",Object(C.a)({},v(),{className:"brz-ul"}),i.length>0?i:c.a.createElement("li",{className:"brz-li brz-control__select2-option"},Object(ae.a)("Nothing Found")))))}))}render(){const{className:e,placeholder:t,multiple:o,value:i}=this.props,{inputValue:r}=this.state,n=g()("brz-control__select2-container",e);return c.a.createElement("div",{ref:this.selectRef,className:n},c.a.createElement(at.a,null,c.a.createElement(ot.a,{initialSelectedItem:i,selectedItem:i,onChange:this.handleChange,itemToString:this.itemToString},({getInputProps:e,getItemProps:i,getMenuProps:n,isOpen:a,highlightedIndex:l,selectedItem:s,toggleMenu:d})=>c.a.createElement("div",{className:"brz-control__select2"},this.renderInput({inputProps:e({ref:this.inputRef,placeholder:t,value:r,onKeyDown:this.handleInputKeyDown,onChange:this.handleInputChange}),multiple:o,selectedItem:s,isOpen:a,toggleMenu:d}),this.renderDropdown(dt(dt({},this.props),{},{inputValue:r,isOpen:a,highlightedIndex:l,selectedItem:s,getMenuProps:n,getItemProps:i}))))))}}Object(a.a)(ut,"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 bt=ut;const mt=e=>void 0===e.type||"input"===e.type,ht=e=>"select"===e.type,gt=e=>"switch"===e.type,vt=e=>"search"===e.type;class yt extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"renderSelect",({name:e,value:t,choices:o})=>{const i=o.map(({title:e,name:t},o)=>c.a.createElement(O.a,{key:`${t}-${o}`,value:t},e));return c.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-select"},c.a.createElement(S.a,{className:"brz-control__select--white",maxItems:"6",itemHeight:"30",inPortal:!0,defaultValue:t,onChange:t=>{this.props.onActive(e,t)}},i))}),Object(a.a)(this,"renderInput",({name:e,value:t})=>c.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-input"},c.a.createElement("input",{className:"brz-input",required:!0,type:"password"===e?"password":"text",value:null!=t?t:"",onChange:t=>{this.props.onActive(e,t.target.value)}}))),Object(a.a)(this,"renderSwitch",({name:e,value:t})=>c.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-input"},c.a.createElement(et.a,{className:"brz-ed-control__switch--light",defaultValue:t,onChange:t=>{this.props.onActive(e,t)}}))),Object(a.a)(this,"renderSearch",({name:e,multiple:t,value:o,choices:i})=>{const r=Boolean(o)&&t?null==o?void 0:o.split(","):o;return c.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-select"},c.a.createElement(bt,{className:"brz-control__select2--light",multiple:t,value:r,options:i,onChange:o=>{this.props.onActive(e,t?o.join(","):o.value)}}))}),Object(a.a)(this,"renderOption",Object(Qe.match)([mt,this.renderInput],[ht,this.renderSelect],[vt,this.renderSearch],[gt,this.renderSwitch]))}renderHead(){const{headTitle:e,headDescription:t}=this.props;if(e&&t)return c.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},e&&c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},e)),t&&c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},t)))}getHelper(e){switch(typeof e){case"string":return c.a.createElement("div",{className:"brz-ed-popup-integrations-fields__info",dangerouslySetInnerHTML:{__html:e}});case"function":return e(this.props.formFields);default:return e}}renderOptions(){const e=this.props.data.map((e,t)=>{const{title:o,required:i,helper:r}=e;return c.a.createElement("div",{key:t,className:"brz-ed-popup-integrations-step__fields-option"},c.a.createElement("div",{className:"brz-d-xs-flex brz-align-items-xs-center"},c.a.createElement("p",{className:"brz-p"},o,i&&c.a.createElement("strong",{className:"brz-strong brz--required"},"*")),r&&c.a.createElement(Oe.c,{className:"brz-ed-popup-integrations-fields__tooltip",openOnClick:!1,inPortal:!0,closeDelay:600,overlay:this.getHelper(r)},c.a.createElement(F.b,{icon:"nc-alert-circle-que"}))),this.renderOption(e))});return c.a.createElement(j.a,{autoHeight:!0,autoHeightMax:"100%",style:{height:"auto"}},e)}render(){const{description:e,error:t,prevLoading:o,nextLoading:i,onPrev:r,onNext:n}=this.props;return c.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__fields"},this.renderHead(),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},t&&c.a.createElement(be,{message:t,type:"error"}),this.renderOptions(),e&&c.a.createElement("p",{className:"brz-p brz-ed-popup-integrations__description"},e),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==o&&c.a.createElement(Ge,{size:3,leftIcon:"nc-arrow-left",loading:o,onClick:r},Object(ae.a)("Back")),null!==i&&c.a.createElement(Ge,{color:"teal",rightIcon:"nc-arrow-right",loading:i,onClick:n},Object(ae.a)("Continue")))))}}Object(a.a)(yt,"defaultProps",{formId:"",formFields:[],id:"",headTitle:"",headDescription:"",description:"",data:[],nextLoading:null,prevLoading:null,onPrev:v.default.noop,onNext:v.default.noop,onActive:v.default.noop});class ft extends l.Component{renderSelect(e,t){const{formFields:o,fields:i,restrictions:r,onActive:n}=this.props,a=v.default.pluck(o,"target");let l=i.filter(e=>-1===a.indexOf(e.slug)||e.slug===t);const s=i.length+(o.length-v.default.without(a,"_auto_generate").length);(!Le(s,r)||t&&"_auto_generate"===t)&&l.unshift({name:"Auto Generate",required:!1,slug:"_auto_generate"});const d=l.map(({required:e,name:t,slug:o})=>c.a.createElement(O.a,{key:o,value:o},c.a.createElement("span",{className:"brz-span"},t),e&&c.a.createElement("strong",{className:"brz-strong brz--required"},"*")));return c.a.createElement(S.a,{defaultValue:t,className:"brz-control__select--white",maxItems:"6",itemHeight:"30",inPortal:!0,onChange:t=>{n(e,t)}},d)}renderOptions(){const e=this.props.formFields.map(({sourceTitle:e,target:t,sourceId:o})=>c.a.createElement("div",{key:o,className:"brz-ed-popup-integrations-step__fields-option"},c.a.createElement("p",{className:"brz-p"},e),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-select"},this.renderSelect(o,t))));return c.a.createElement(j.a,{autoHeight:!0,autoHeightMax:"100%",style:{height:"auto"}},e)}renderError(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},c.a.createElement("span",{className:"brz-span"},this.props.error))}renderErrorEmpty(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},c.a.createElement("span",{className:"brz-span"},Object(ae.a)("Fields are empty. Please add fields and try again.")))}render(){const{title:e,error:t,formFields:o,prevLoading:i,nextLoading:r,onPrev:n,onNext:a}=this.props;return c.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__fields"},c.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},Object(ae.a)("FORM FIELDS"))),c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},e," ",Object(ae.a)("FIELDS")))),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},t&&this.renderError(),o.length?this.renderOptions():this.renderErrorEmpty(),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==i&&c.a.createElement(Ge,{size:3,leftIcon:"nc-arrow-left",loading:i,onClick:n},Object(ae.a)("Back")),null!==r&&c.a.createElement(Ge,{color:"teal",rightIcon:"nc-arrow-right",loading:r,onClick:a},Object(ae.a)("Continue")))))}}Object(a.a)(ft,"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 St=ft;class Ot extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"handleConfirmation",e=>{this.props.onConfirm("true"===e)})}renderError(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},c.a.createElement("span",{className:"brz-span"},this.props.error))}renderList(){const{active:e,lists:t,onActive:o}=this.props,i=t.map(({name:e,id:t})=>c.a.createElement($e.a,{value:t,key:t},e||"List "+t));return c.a.createElement(j.a,{autoHeight:!0,autoHeightMax:"100%",style:{height:"auto"}},c.a.createElement(De.b,{className:"brz-ed-popup-integrations-option__radio",name:"list",defaultValue:e,onChange:o},i))}renderConfirmation(){const{confirmationNeeded:e}=this.props;return c.a.createElement("div",{className:"brz-ed-popup-integrations__confirmation"},c.a.createElement("p",{className:"brz-p"},Object(ae.a)("Email confirmation to join the list")),c.a.createElement(S.a,{defaultValue:e?"true":"false",className:"brz-control__select--white",maxItems:"6",itemHeight:"30",onChange:this.handleConfirmation},c.a.createElement(O.a,{value:"false"},Object(ae.a)("Not Required")),c.a.createElement(O.a,{value:"true"},Object(ae.a)("Required"))))}renderCreateList(){const{createLoading:e,onCreateList:t}=this.props;return c.a.createElement("div",{className:"brz-ed-popup-integrations-new__option",onClick:t},c.a.createElement(F.b,{icon:e?"nc-circle-02":"nc-add",className:e?"brz-ed-animated--spin":""}),Object(ae.a)("Create a new list"))}renderProList(){return c.a.createElement(De.b,{className:"brz-ed-popup-integrations-option__radio",name:"proList",defaultValue:"none"},c.a.createElement($e.a,{value:"none"},Object(ae.a)("None")))}render(){const{listPro:e,lists:t,listsCreate:o,hasConfirmation:i,error:r,nextLoading:n,prevLoading:a,onPrev:l,onNext:s}=this.props,d=t.length>0,p=o&&o.length>0;return c.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__lists"},c.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},Object(ae.a)("SELECT LIST")))),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},r&&this.renderError(),d&&this.renderList(),e&&this.renderProList(),p&&this.renderCreateList(),i&&this.renderConfirmation(),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==a&&c.a.createElement(Ge,{size:3,leftIcon:"nc-arrow-left",loading:a,onClick:l},Object(ae.a)("Back")),null!==n&&c.a.createElement(Ge,{size:d||e?1:3,color:d||e?"teal":"gray",rightIcon:"nc-arrow-right",loading:n,onClick:d||e?s:null},Object(ae.a)("Continue")))))}}Object(a.a)(Ot,"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 xt=Ot;class Ct extends l.Component{render(){const{title:e,onNext:t}=this.props;return c.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__done"},c.a.createElement("div",{className:"brz-ed-popup-integrations-step__done-icon"},c.a.createElement(F.b,{icon:"nc-check-light"})),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__done-content"},c.a.createElement("p",{className:"brz-p"},Object(ae.a)("You have successfully connect the form with")," ",e)),c.a.createElement(Ge,{color:"teal",onClick:t},Object(ae.a)("Done")))}}Object(a.a)(Ct,"defaultProps",{title:"",onNext:v.default.noop});var wt=Ct;async function Bt(e){try{return await(t=e,fetch("https://graph.facebook.com/"+t).then(({status:e})=>200===e))}catch(e){return!1}var t}function jt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Tt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):jt(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Pt=[{name:"appid",title:"App ID"}];class Et extends l.Component{constructor(e,t){super(e),Object(a.a)(this,"handleChange",(e,t)=>{this.setState(({apiKeyValue:o})=>({apiKeyValue:Tt(Tt({},o),{},{[""+t]:e.trim()})}))}),Object(a.a)(this,"handleConnect",async()=>{const{app:e,onChangeNext:t}=this.context,{apiKeyValue:o}=this.state,i=Object.values(o);if(this.setState({nextLoading:!0,error:null}),i.some(e=>!e))await Object(ue.L)(),this.setState({error:"Fields are empty",nextLoading:!1});else{const{data:r,group:n,id:a}=e,[l]=i;if(!await Bt(l))return void this.setState({isValidate:!1,error:"Your AppId is no valid, re check and try again",nextLoading:!1});if(r&&r.id){const{status:e}=await Ve(r.id);200!==e&&this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")})}const{status:c}=await(e=>{const{api:t}=y.a.get("wp"),o=y.a.get("editorVersion"),i=ze(t.url,{action:t.addAccount,hash:t.hash,version:o});return Object(ue.O)(i,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(e)}).then(Fe).then(e=>e)})(Tt({service:a,group:n},o));200!==c?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):t()}}),Object(a.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(ue.L)(),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 Pt.reduce((e,{name:t})=>Tt(Tt({},e),{},{[""+t]:""}),{})}render(){const{app:e}=this.context,{apiKeyValue:t,nextLoading:o,prevLoading:i,error:r}=this.state,n=Pt.map(({title:e,name:o})=>({title:e,name:o,value:t[o]}));return c.a.createElement(Xe,Object(C.a)({},e,{data:n,nextLoading:o,prevLoading:i,error:r,onChange:this.handleChange,onNext:this.handleConnect,onPrev:this.handlePrev}))}}Object(a.a)(Et,"contextType",me);var _t=Et;class kt extends l.Component{constructor(e){super(e),Object(a.a)(this,"handleNext",async()=>{const{app:e,onChange:t,onDisconnectApp:o}=this.context;this.setState({nextLoading:!0,error:null});const{status:i}=await Ve(e.data.id);200===i?(o(e.id),t(e.id,null)):this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")})}),Object(a.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0,error:null}),await Object(ue.L)(),this.context.onChangePrev("appList")}),this.state={nextLoading:!1,prevLoading:!1,error:null}}render(){const{nextLoading:e,prevLoading:t,error:o}=this.state;return c.a.createElement(Ze,Object(C.a)({},this.context.app,{descriptions:Object(ae.a)("Are you want to delete account")+" ?",nextLoading:e,prevLoading:t,error:o,onPrev:this.handlePrev,onNext:this.handleNext}))}}Object(a.a)(kt,"contextType",me);var zt=kt;class Ft extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"handleClose",()=>{this.props.onClose()})}render(){const{app:e}=this.context;return c.a.createElement(wt,Object(C.a)({},e,{onNext:this.handleClose}))}}Object(a.a)(Ft,"contextType",me);var Rt=Ft;class Ht{}Object(a.a)(Ht,"connect",void 0),Object(a.a)(Ht,"account",void 0),Object(a.a)(Ht,"fields",void 0),Object(a.a)(Ht,"list",void 0),Object(a.a)(Ht,"done",void 0);class Lt extends Ht{}Object(a.a)(Lt,"connect",_t),Object(a.a)(Lt,"disconnect",zt),Object(a.a)(Lt,"done",Rt);var Mt=Lt;var It=class extends Ee{constructor(...e){super(...e),Object(a.a)(this,"appsData",[]),Object(a.a)(this,"appsComponent",i),Object(a.a)(this,"handleConnectApp",async e=>{const t=e.id,{stages:o}=this.appsData[0];await Object(ue.L)(),this.setState(Object(s.a)(i=>{i.stages=o,i.connectedApp=t,Object.assign(i.data[t],e)}),()=>{this.handleNext()})})}async componentDidMount(){const e=Object(pe.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:i}=await Ne({group:e,services:t});if(i&&i.length>0&&200===o){const e=i[0],{services:t}=e;this.setState(Object(s.a)(o=>{o.data[t]={data:e},o.loading=!1,o.connectedApps=[t]}))}else this.setState({loading:!1})}};const Wt=[{id:"app",title:Object(ae.a)("APPS"),icon:"nc-extensions-2",component:It}];class At extends l.Component{render(){const{service:e,group:t,opened:o,onClose:i}=this.props;return c.a.createElement(de,{currentTab:"app",service:e,group:t,opened:o,tabs:Wt,onClose:i})}}Object(a.a)(At,"defaultProps",{service:"facebook",group:"social",opened:!1,onClose:v.noop});var Nt=At,Vt=o(43),Dt=o.n(Vt),$t=o(47),Gt=o(6);function Ut(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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(a.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}class qt extends c.a.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{currentFilter:this.props.defaultFilter}),Object(a.a)(this,"setFilter",e=>{this.setState(t=>({currentFilter:Kt(Kt({},t.currentFilter),e)}))})}render(){const{filterFn:e,data:t,children:o}=this.props,{currentFilter:i}=this.state;return o(t.filter(t=>e(t,i)),i,this.setFilter)}}function Yt(e){const{className:t="",title:o="",separator:i=!1,children:r}=e,n=g()("brz-ed-popup-two-sidebar",t);return c.a.createElement("div",{className:n},o&&c.a.createElement("div",{className:"brz-ed-popup-two-sidebar-title"},o),i&&c.a.createElement("div",{className:"brz-ed-popup-two-sidebar-separator"},o),r)}function Xt(e){const{lists:t=[],counters:o={},value:i="",onChange:r=(()=>{})}=e;return t.map(({id:e,title:t,icon:n})=>null!=o[e]&&c.a.createElement("div",{key:e,title:Object(ae.a)(t),className:g()("brz-ed-popup-two-sidebar-list",{"brz-ed-popup-two-sidebar-list-active":e===i}),onClick:()=>r(e)},n&&c.a.createElement("span",{className:"brz-span brz-ed-popup-two-sidebar-list__span-icon"},c.a.createElement(F.b,{icon:n})),c.a.createElement("span",{className:"brz-span brz-ed-popup-two-sidebar-list__span-text"},t),c.a.createElement("span",{className:"brz-span brz-ed-popup-two-sidebar-list__span-new"},"new"),c.a.createElement("span",{className:"brz-span brz-ed-popup-two-sidebar-list__span-quantity"},o[e])))}function Jt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Zt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Jt(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Qt(e){const{className:t,children:o}=e,i=g()("brz-ed-popup-two-body__sidebar",t),r=e=>{let{style:t}=e,o=Object(x.a)(e,["style"]);return c.a.createElement("div",Object(C.a)({},o,{style:Zt(Zt({},t),{},{borderRadius:"inherit",backgroundColor:"rgba(129, 138, 145, 0.5)"})}))};return c.a.createElement("div",{className:i},c.a.createElement(j.a,{renderThumbHorizontal:r,renderThumbVertical:r},c.a.createElement("div",{className:"brz-ed-popup-two-sidebar-body"},o)))}class eo extends c.a.Component{constructor(...e){super(...e),Object(a.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 c.a.createElement("div",{className:o},c.a.createElement("input",{type:"text",className:"brz-input brz-ed-popup-two__input",placeholder:Object(ae.a)("Type to search"),value:t,onChange:this.handleInputChange}),c.a.createElement("div",{className:"brz-ed-popup-two-search-icon"},c.a.createElement(F.b,{icon:"nc-search"})))}}Object(a.a)(eo,"defaultProps",{className:"",value:"",onChange:v.default.noop});var to=o(9),oo=o.n(to),io=o(32),ro=o(52);let no=new Map,ao=null;class lo extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{imageFetched:!1,showSpinner:!1}),Object(a.a)(this,"content",c.a.createRef()),Object(a.a)(this,"handleIntersection",e=>{e.forEach(({isIntersecting:e,target:t})=>{if(e){const e=no.get(t);if(!e)return;const o=e.props.src;Object(ro.f)(o).then(()=>{ao&&ao.unobserve(t),e.mounted&&e.setState({imageFetched:!0,showSpinner:!1},e.props.onImageLoaded())})}})})}componentDidMount(){const e=this.content.current;if(this.mounted=!0,null===ao){const{observerRootSelector:t,observerRootMargin:o,observerThreshold:i}=this.props,r={root:e.ownerDocument.querySelector(t),rootMargin:o,threshold:i};ao=new e.ownerDocument.defaultView.IntersectionObserver(this.handleIntersection,r),ao.POLL_INTERVAL=200}ao.observe(e),no.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,ao.unobserve(e),no.delete(e),0===no.size&&(ao.disconnect(),ao=null)}render(){const{width:e,height:t,src:o,style:i}=this.props,{imageFetched:r,showSpinner:n}=this.state,a=Math.round(t/e*100*10)/10;return c.a.createElement("div",{ref:this.content,className:"brz-observer__image",style:{paddingTop:a+"%"}},n&&c.a.createElement("div",{className:"brz-ed-option__block-thumbnail-loading"},c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"})),r&&c.a.createElement("img",{className:"brz-img",style:i,src:o,alt:"lazyLoad Image"}))}}Object(a.a)(lo,"defaultProps",{width:100,height:100,src:"",observerRootSelector:null,observerRootMargin:"0px",observerThreshold:[0],spinnerDelay:250,style:{},onImageLoaded:v.default.noop});var co=o(17),so=o(18),po=o(69),uo=o(107),bo=o(80);function mo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}const ho=e=>"BLOCK"===e,go=e=>"POPUP"===e,vo=e=>"LAYOUT"===e,yo=(e,t)=>t?e+":1":e+":0",fo=(e,t,o)=>{const i=y.a.getAll(),{editorVersion:r}=i;if(Object(bo.a)(i)){const{url:n,hash:a,downloadBlocks:l,downloadLayouts:c}=i.wp.api,s=Object(Qe.match)([ho,()=>l],[vo,()=>c],[go,()=>l]),d=Object(uo.c)({hash:a,uid:yo(t,o),version:r,action:s(e),type:e.toLowerCase()});return Object(uo.e)(n)?`${n}&${d}`:`${n}?${d}`}const n=i.urls.api+"/zip_template/export",l=Object(uo.c)(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):mo(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({id:t,version:r,type:e.toLowerCase(),pro:o?"1":"0"},{}));return Object(uo.e)(n)?`${n}&${l}`:`${n}?${l}`},So=e=>"object"!=typeof e?Object(ae.a)("Something went wrong"):(e=>"data"in e)(e)?e.data:(e=>"errors"in e&&Array.isArray(e.errors))(e)?e.errors[0].message:Object(ae.a)("Something went wrong");var Oo=o(244),xo=o(59);const Co=e=>{var t,o;const i=null!==(t=e.component.resolve)&&void 0!==t?t:{};return{id:e.component.id,resolve:null!==(o=Object(tt.getIn)(i,["value","items",0]))&&void 0!==o?o:{}}},wo=["WPFeaturedImage"],Bo=["SectionPopup2","SectionPopup","SectionFooter","SectionHeader"],jo=({models:e,globalBlocks:t})=>{const o=Object.values(Oo.a).reduce((e,t)=>e.concat(t),[]).filter(e=>e.pro).map(Co),{obj:i}=Object(xo.a)(e,e=>{const i=String(e.type);if("GlobalBlock"===i&&t){const o=Object(tt.getIn)(e,["value","_id"]);if(o&&t[o])return jo({models:t[o],globalBlocks:t})}return!!Bo.includes(i)||o.find(({resolve:e,id:t})=>{const o=e.type===i;return(!o||!wo.includes(t))&&o})});return Object(so.o)(i)},To=e=>{const t=Object(Qe.match)([ho,()=>Object(ae.a)("Could not download Saved block")],[vo,()=>Object(ae.a)("Could not download Saved Layout")],[go,()=>Object(ae.a)("Could not download Saved Popup")]);po.a.error(t(e),{toastContainer:window.parent.document.body})},Po=e=>{const{id:t,type:o}=e,[i,r]=Object(l.useState)(!1),n=Object(l.useRef)(null),[a,s]=Object(l.useState)(void 0),d=Object(l.useCallback)(async()=>{r(!0),s(void 0);const e=Object(Qe.match)([ho,()=>Object(ue.D)(t)],[vo,()=>Object(ue.F)(t)],[go,()=>Object(ue.D)(t)]);try{const{data:i}=await e(o);if(n.current){const e=jo({models:i}),n=fo(o,t,e);s(n),r(!1)}}catch(e){0,n.current&&(r(!1),To(o))}},[t,o,n]),p=Object(l.useCallback)(()=>{To(o),s(void 0)},[o,a]);return c.a.createElement("div",{ref:n,title:Object(ae.a)("Download this block"),className:"brz-ed-popup-two-block-download",onClick:i?void 0:d},a&&c.a.createElement("iframe",{src:a,hidden:!0,onLoad:p}),i?c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}):c.a.createElement(F.b,{icon:"nc-down"}))},{upgradeToPro:Eo}=y.a.get("urls"),_o={animationName:"fadeIn",animationFillMode:"both",animationDelay:"200ms",animationDuration:"200ms"};class ko extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{tooltipOpen:!1}),Object(a.a)(this,"iconRef",c.a.createRef()),Object(a.a)(this,"handleTooltipOpen",()=>{this.setState({tooltipOpen:!0})}),Object(a.a)(this,"handleTooltipClose",()=>{this.setState({tooltipOpen:!1})}),Object(a.a)(this,"handleClick",()=>{const{data:e,onAdd:t}=this.props;e.loading||e.inactive||t(e)}),Object(a.a)(this,"handleRemove",()=>{const{data:e,onRemove:t}=this.props;t(e)}),Object(a.a)(this,"handleSync",()=>{const{data:e,onSync:t}=this.props;t(e)})}renderBlank(){var e,t;const{data:{pro:o}}=this.props,i=!N.g&&o,r=null!==(e=null===(t=this.props.data)||void 0===t?void 0:t.blankTitle)&&void 0!==e?e:Object(ae.a)("Create your own"),n=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":i});return i?c.a.createElement(Oe.c,{overlayClassName:"brz-ed-tooltip--delay-1",size:"small",offset:"5",openOnClick:!1,nodeRef:this.iconRef,overlay:c.a.createElement(xe.a,{text:Object(ae.a)("Upgrade to PRO to use this block"),url:Eo}),onOpen:this.handleTooltipOpen,onClose:this.handleTooltipClose},c.a.createElement("div",{className:n},c.a.createElement("p",{ref:this.iconRef,className:"brz-p brz-d-xs-flex brz-align-items-xs-center"},c.a.createElement(F.b,{icon:"nc-lock"})," ",r),c.a.createElement("p",{className:"brz-p brz-ed-badge brz-ed-badge--pro"},"pro"))):c.a.createElement("div",{onClick:this.handleClick,className:n},c.a.createElement("div",{className:"brz-ed-container-trigger brz-ed-container-trigger--small"}),c.a.createElement("p",{className:"brz-p"},r))}renderPro(){const{animation:e,isLayout:t,data:{thumbnailSrc:o,thumbnailWidth:i,thumbnailHeight:r},onImageLoaded:n}=this.props,{width:a,height:l}=Object(ro.e)(i,r,292),s=g()("brz-figure brz-ed-popup-two-block-item",this.state.tooltipOpen&&"brz-ed-popup-two-block-item--active"),d=c.a.createElement(c.a.Fragment,null,c.a.createElement(lo,{observerRootSelector:".brz-ed-popup-two-blocks-body",style:e?_o:{},src:o,width:a,height:l,onImageLoaded:n}),c.a.createElement("p",{className:"brz-p brz-ed-badge brz-ed-badge--pro"},"pro"));return t?c.a.createElement("figure",{className:s,onClick:this.handleClick},d):c.a.createElement(Oe.c,{overlayClassName:"brz-ed-tooltip--delay-1",size:"small",offset:"5",openOnClick:!1,nodeRef:this.iconRef,overlay:c.a.createElement(xe.a,{text:Object(ae.a)("Upgrade to PRO to use this block"),url:Eo}),onOpen:this.handleTooltipOpen,onClose:this.handleTooltipClose},c.a.createElement("figure",{className:s},d,c.a.createElement("span",{ref:this.iconRef,className:"brz-ed-popup-two-block__span-lock"},c.a.createElement(F.b,{icon:"nc-lock"}))))}renderFree(){const{animation:e,data:{thumbnailSrc:t,thumbnailWidth:o,thumbnailHeight:i},onImageLoaded:r}=this.props,{width:n,height:a}=Object(ro.e)(o,i,292);return c.a.createElement("figure",{className:"brz-figure brz-ed-popup-two-block-item",onClick:this.handleClick},c.a.createElement(lo,{observerRootSelector:".brz-ed-popup-two-blocks-body",style:e?_o:{},src:t,width:n,height:a,onImageLoaded:r}))}renderRemoveIcon(){return c.a.createElement("div",{className:"brz-ed-badge__delete brz-ed-popup-two-block-remove",onClick:this.handleRemove},c.a.createElement(F.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}),t=o?Object(ae.a)("Block is synchronized"):Object(ae.a)("Block will be synchronized");return c.a.createElement("div",{title:t,className:e,onClick:this.handleSync},c.a.createElement(F.b,{icon:o?"nc-check-circle-on":"nc-reverse-glyph"}))}}renderLoading(){return c.a.createElement("div",{className:"brz-ed-popup-two-block--loading"},c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))}renderDownloadIcon(){const{uid:e,type:t}=this.props.data;return c.a.createElement(Po,{id:e,type:t})}render(){const{isLayout:e,showSync:t,showDownload:o,data:{blank:i,showRemoveIcon:r,pro:n,loading:a,inactive:l,renderWrapper:s}}=this.props,d=!N.g&&n,p=i&&"blank"===i,u=g()("brz-ed-popup-two-block",so.d&&"brz-ed-popup-two-block-stories",d&&"brz-ed-popup-two-block--pro",e&&"brz-ed-popup-two-block--layout",l&&"inactive");let b;return p?b=this.renderBlank():(b=d?this.renderPro():this.renderFree(),s&&(b=s(b))),c.a.createElement("div",{className:u},b,r&&this.renderRemoveIcon(),a&&this.renderLoading(),(t||o)&&!p&&c.a.createElement("div",{className:"brz-ed-popup-two-block__bottom-control"},o&&this.renderDownloadIcon(),t&&this.renderSyncIcon()))}}Object(a.a)(ko,"defaultProps",{showRemoveIcon:!1,data:{},animation:!1,isLayout:!1,isAuthorized:!1,onAdd:v.default.noop,onRemove:v.default.noop,onImageLoaded:v.default.noop}),Object(a.a)(ko,"propTypes",{showRemoveIcon:oo.a.bool,blockData:oo.a.object,animation:oo.a.bool,isLayout:oo.a.bool,isAuthorized:oo.a.bool,showSync:oo.a.bool,showDownload:oo.a.bool,onAdd:oo.a.func,onRemove:oo.a.func,onImageLoaded:oo.a.func,onSync:oo.a.func});class zo extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{thumbnailLoaded:!1}),Object(a.a)(this,"handleLoaded",()=>{this.setState({thumbnailLoaded:!0})})}render(){const e=this.props,{data:{name:t,pages:o,color:i}}=e,r=Object(x.a)(e,["data"]),{thumbnailLoaded:n}=this.state,a=g()("brz-ed-popup-two-block-info",so.d&&"brz-ed-popup-two-block-info-stories");return c.a.createElement("div",{className:a,style:n?_o:{}},c.a.createElement(ko,Object(C.a)({},r,{data:this.props.data,isLayout:!0,onImageLoaded:this.handleLoaded})),n&&o.length>1&&c.a.createElement("span",{className:"brz-ed-popup-two-block-info-color",style:{backgroundColor:i}},c.a.createElement("span",{className:"brz-ed-popup-two-block-info-color-opacity",style:{backgroundColor:i}})),c.a.createElement("div",{className:"brz-ed-popup-two-block-info-downline"},c.a.createElement("div",{className:"brz-ed-popup-two-block-info-title"},t),c.a.createElement("div",{className:"brz-ed-popup-two-block-info-title"},o.length," ",o.length>1?so.d?Object(ae.a)("stories"):Object(ae.a)("layouts"):so.d?Object(ae.a)("story"):Object(ae.a)("layout"))))}}const Fo=e=>({isAuthorized:"connected"===Object(co.a)(e)}),Ro=Object(io.b)(Fo)(zo);var Ho=Object(io.b)(Fo)(ko);class Lo extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{currentColumns:this.props.columns}),Object(a.a)(this,"handleResize",()=>{const e=window.innerWidth,{responsive:t,columns:o}=this.props;if(t&&t.length){const i=t.reduce((t,o)=>o.breakpoint>e&&(void 0===t.breakpoint||t.breakpoint>o.breakpoint)?o:t,{});this.setState({currentColumns:i.settings&&i.settings.columns||o})}})}componentDidMount(){this.handleResize(),window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}render(){const{data:e,showSync:t,showDownload:o,onThumbnailAdd:i,onThumbnailRemove:r,ThumbnailComponent:n}=this.props,{currentColumns:a}=this.state,l=[];for(let e=0;e<a;e++)l.push([]);const s=g()("brz-ed-popup-two-blocks__grid__column",so.d&&"brz-ed-popup-two-blocks__grid__column-stories"),d=e.reduce((e,l,s)=>{var d;const p=null!==(d=l.type)&&void 0!==d?d:"block",u=c.a.createElement(n,{key:`${s}-${p}`,animation:!0,showSync:t,showDownload:o,data:l,onAdd:i,onRemove:r});return e[s%a].push(u),e},l).map((e,t)=>c.a.createElement("div",{key:t,className:s,style:{width:100/a+"%",flexBasis:100/a+"%"}},e));return c.a.createElement("div",{className:"brz-ed-popup-two-blocks__grid"},d)}}function Mo(e){const t=y.a.get("urls").templateThumbnails;return t?`${t}/${e.id}.jpg`:Object(pe.a)(`thumbs/${e.id}.jpg`)}Object(a.a)(Lo,"defaultProps",{columns:so.d?5:4,responsive:[{breakpoint:1460,settings:{columns:so.d?4:3}},{breakpoint:1200,settings:{columns:3}}],ThumbnailComponent:Ho});class Io extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{imageFetched:!1,showSpinner:!1}),Object(a.a)(this,"mounted",!1)}componentDidMount(){const{src:e,spinnerDelay:t}=this.props;this.mounted=!0,Object(ro.f)(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:i,style:r}=this.props,n=g()("brz-img",o);return c.a.createElement(l.Fragment,null,e&&c.a.createElement("img",{className:n,src:i,style:r}),t&&c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))}}Object(a.a)(Io,"defaultProps",{className:"",src:"",style:{},spinnerDelay:250});var Wo=o(102),Ao=o(40),No=o(54);function Vo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Do(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Vo(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const $o=y.a.get("urls"),Go={animationName:"fadeIn",animationFillMode:"both",animationDelay:"200ms",animationDuration:"200ms"},Uo=Object(io.b)(e=>({projectStyles:Object(co.N)(e),projectFonts:Object(co.o)(e)}));class Ko extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{active:this.props.data.pages[0].id,thumbnailHeight:0,transition:0,previewPointer:"none",replaceStyle:!1,loading:!1}),Object(a.a)(this,"thumbnailDetails",c.a.createRef()),Object(a.a)(this,"timeoutId",void 0),Object(a.a)(this,"handleUpdateThumbnail",()=>{var e,t;this.setState({thumbnailHeight:null!==(e=null===(t=this.thumbnailDetails.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0})}),Object(a.a)(this,"handleBack",()=>{this.props.onBack()}),Object(a.a)(this,"handleThumbnailAdd",async()=>{const{type:e,data:t,projectFonts:o,onAddBlocks:i,onClose:r}=this.props,{active:n,replaceStyle:a,loading:l}=this.state;if(l)return;this.setState({loading:!0});const c=await fetch(Object(No.h)(e,n)),{blocks:s}=await c.json(),d=Object(Wo.b)({models:s});let p;if(!this.hasStyleInProject()){p=Object(Ao.u)(t.styles);const e=Object(V.e)(p,({fontStyles:e})=>e),o=Object(Wo.d)(e);d.push(...o)}const u=await Object(Ao.t)(Object(Wo.a)(d,o));this.setState({loading:!1},()=>{var e,o;i({blocks:s,styles:p,fonts:u,currentStyleId:a?null===(e=t.styles)||void 0===e||null===(o=e[0])||void 0===o?void 0:o.id:void 0}),r()})}),Object(a.a)(this,"handleReplaceStyling",()=>{this.setState({replaceStyle:!this.state.replaceStyle})})}getTransition(e){return e/500}hasStyleInProject(){const{projectStyles:e,data:{styles:t}}=this.props;return e.find(({id:e})=>null==t?void 0:t.some(({id:t})=>t===e))}componentDidMount(){this.handleUpdateThumbnail(),window.addEventListener("resize",this.handleUpdateThumbnail);const e=setTimeout(()=>{this.setState({previewPointer:"auto"})},200);this.timeoutId=$.b(e)}componentWillUnmount(){window.removeEventListener("resize",this.handleUpdateThumbnail),clearTimeout(this.timeoutId)}renderSlotLeft(e){const{HeaderSlotLeft:t}=this.props;return t?c.a.createElement(t,null,e):e}render(){var e;const{type:t,data:{name:o,pages:i,styles:r=[],pro:n}}=this.props,{active:a,thumbnailHeight:l,previewPointer:s,replaceStyle:d,loading:p}=this.state,u="stories"===t,b=i.find(({id:e})=>e===a),m=Mo(b),h=i.map((e,t)=>{const o=g()("brz-ed-popup-two-details-page-select",u&&"brz-ed-popup-two-details-page-select-stories",{"brz-ed-popup-two-details-page-select-active-block":e.id===a}),i=Mo(e);return c.a.createElement("div",{key:t,className:o,onClick:()=>{this.setState({active:e.id})}},c.a.createElement(Io,{src:i,style:Go}),c.a.createElement("div",{className:"brz-ed-popup-two-details-page-select-active"},e.title))}),v=!N.g&&n,y=g()("brz-ed-popup-two-details-preview",u&&"brz-ed-popup-two-details-preview-stories"),f=g()("brz-ed-popup-two-details-right",u&&"brz-ed-popup-two-details-right-stories"),S=g()("brz-ed-popup-two-body__content brz-ed-popup-two-blocks__grid brz-ed-popup-two-details",u&&"brz-ed-popup-two-details-stories");return c.a.createElement(c.a.Fragment,null,this.renderSlotLeft(c.a.createElement("div",{className:"brz-ed-popup-two-header__search brz-ed-popup-two-header__search--hidden"})),c.a.createElement("div",{className:S},c.a.createElement("div",{className:"brz-ed-popup-two-details-left"},c.a.createElement("div",{className:"brz-ed-popup-two-details-back",onClick:this.handleBack},c.a.createElement(F.b,{icon:"nc-arrow-left",className:"brz-ed-popup-two-details-back-icon"}),u?Object(ae.a)("Back to Stories"):Object(ae.a)("Back to Layouts")),c.a.createElement("div",{ref:this.thumbnailDetails,className:y,style:{"--thumbnailHeight":l+"px","--previewPointer":""+s}},u?c.a.createElement(Io,{className:"brz-ed-popup-two-details-preview-img brz-ed-popup-two-details-preview-img-stories",src:m}):c.a.createElement(Io,{className:"brz-ed-popup-two-details-preview-img",src:m,style:Do(Do({},Go),{},{"--transitionPreview":`transform ${this.getTransition(null!==(e=null==b?void 0:b.thumbnailHeight)&&void 0!==e?e:0)}s linear`})}))),c.a.createElement("div",{className:f},c.a.createElement("div",{className:"brz-ed-popup-two-details-title"},c.a.createElement("h2",{className:"brz-ed-popup-two-details-title-name"},o),c.a.createElement("div",{className:"brz-ed-popup-two-details-title-count"},i.length," ",i.length>1?u?Object(ae.a)("stories"):Object(ae.a)("layouts"):u?Object(ae.a)("story"):Object(ae.a)("layout"))),c.a.createElement("div",{className:"brz-ed-popup-two-details-page"},c.a.createElement(j.a,null,h))),c.a.createElement("div",{className:"brz-ed-popup-two-details-footer"},c.a.createElement("div",{className:"brz-ed-popup-two-details-footer-grid"},c.a.createElement("div",{className:"brz-ed-popup-two-details-footer-render"},c.a.createElement("div",{className:"brz-ed-popup-two-details-footer-radio"},v?c.a.createElement("div",{className:"brz-ed-popup-two-details-footer-radio-button brz-ed-popup-two-details-footer-radio-button--pro"},u?Object(ae.a)("Upgrade to PRO to use this story"):Object(ae.a)("Upgrade to PRO to use this layout")):r.length>0&&c.a.createElement("div",{className:"brz-ed-popup-two-details-footer-radio-button",onClick:this.handleReplaceStyling},c.a.createElement(F.b,{icon:d?"nc-check":"nc-uncheck",className:"brz-ed-popup-two-details-footer-radio-icon"}),Object(ae.a)("Replace global styling"))),v?c.a.createElement(Ge,{type:"link",color:"pro",size:2,href:$o.upgradeToPro,target:"_blank",leftIcon:"nc-lock"},Object(ae.a)("Get a PRO plan")):c.a.createElement(Ge,{type:"button",color:"teal",size:2,loading:p,onClick:this.handleThumbnailAdd},u?Object(ae.a)("Import This Story"):Object(ae.a)("Import This Layout")))))))}}Object(a.a)(Ko,"defaultProps",{type:"templates",data:{name:"",color:"",cat:[],pages:[],pro:!1,keywords:""},onClose:v.default.noop,onAddBlocks:v.default.noop,onBack:v.default.noop});var qo=Uo(Ko);function Yo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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(a.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 Jo={category:"*",search:""};class Zo extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{data:void 0,detailsData:void 0}),Object(a.a)(this,"filterFn",(e,t)=>{var o;const i=new RegExp(null===(o=t.search)||void 0===o?void 0:o.replace(/[.*+?^${}()|[\]\\]/g,""),"i"),r="*"===t.category||e.cat.includes(Number(t.category)),n=""===t.search||i.test(e.keywords)||i.test(e.name);return r&&n}),Object(a.a)(this,"handleThumbnailAdd",e=>{this.setState({detailsData:e})}),Object(a.a)(this,"handleBlankThumbnailAdd",async e=>{const{onAddBlocks:t,onClose:o}=this.props;t({blocks:[Xo(Xo({},await this.getBlockResolve(e.id)),{},{blockId:e.id})],fonts:[]}),o()}),Object(a.a)(this,"renderThumbnail",e=>{let{data:t}=e,o=Object(x.a)(e,["data"]);const{type:i}=this.props;return"stories"===i&&t.blank?c.a.createElement(Ho,Object(C.a)({},o,{data:t.pages[0],onAdd:this.handleBlankThumbnailAdd})):c.a.createElement(Ro,Object(C.a)({data:t},o))})}async componentDidMount(){const e=await this.getData();this.setState({data:e})}async getData(){const e=Object(pe.a)(this.props.type+"/meta.json"),t=await fetch(e);return await t.json()}getLayoutData(e){return(e=>"stories"in e)(e)?e.stories:e.templates}async getBlockResolve(e){const t=Object(No.h)(this.props.type,e),o=await fetch(t);return await o.json()}renderSlotLeft(e){const{HeaderSlotLeft:t}=this.props;return t?c.a.createElement(t,null,e):e}renderLoading(){const{showSidebar:e,showSearch:t}=this.props;return c.a.createElement(c.a.Fragment,null,t&&this.renderSlotLeft(c.a.createElement(eo,{className:"brz-ed-popup-two-header__search"})),e&&c.a.createElement("div",{className:"brz-ed-popup-two-body__sidebar"},c.a.createElement("div",{className:"brz-ed-popup-two-sidebar-body"})),c.a.createElement("div",{className:"brz-ed-popup-two-body__content brz-ed-popup-two-body__content--loading"},c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"})))}renderList(e){const{showSidebar:t,showSearch:o}=this.props,i=this.getLayoutData(e),r=i.map(e=>Xo(Xo(Xo({},e),e.pages[0]),{},{thumbnailSrc:Mo(e.pages[0])})),n={};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];n["*"]=i.length,void 0===n[o]?n[o]=1:n[o]++}}const a=[{id:"*",title:Object(ae.a)("All Categories")}].concat(e.categories).filter(({hidden:e})=>!0!==e);return c.a.createElement(qt,{data:r,filterFn:this.filterFn,defaultFilter:Jo},(e,i,r)=>c.a.createElement(c.a.Fragment,null,o&&this.renderSlotLeft(c.a.createElement(eo,{className:"brz-ed-popup-two-header__search",value:i.search,onChange:e=>r({search:e})})),t&&c.a.createElement(Qt,null,c.a.createElement(Yt,{title:"CATEGORIES"},c.a.createElement(Xt,{lists:a,value:i.category,counters:n,onChange:e=>r({category:e})}))),c.a.createElement("div",{className:"brz-ed-popup-two-body__content brz-ed-popup-two-blocks-body-layouts"},c.a.createElement(j.a,null,e.length>0?c.a.createElement(Lo,{data:e,ThumbnailComponent:this.renderThumbnail,onThumbnailAdd:this.handleThumbnailAdd}):c.a.createElement("div",{className:"brz-ed-popup-two-blocks__grid brz-ed-popup-two-blocks__grid-clear"},c.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},Object(ae.a)("Nothing here, please refine your search.")))))))}renderDetails(e){const{type:t,onAddBlocks:o,onClose:i,HeaderSlotLeft:r}=this.props;return c.a.createElement(qo,{type:t,data:e,HeaderSlotLeft:r,onAddBlocks:o,onBack:()=>{this.setState({detailsData:void 0})},onClose:i})}render(){const{data:e,detailsData:t}=this.state;return e?t?this.renderDetails(t):this.renderList(e):this.renderLoading()}}Object(a.a)(Zo,"defaultProps",{type:"templates",showSidebar:!0,showSearch:!0,onAddBlocks:v.default.noop,onClose:v.default.noop,onNext:v.default.noop});var Qo=o(26);let ei={type:0,category:"*",search:""};class ti extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"filterData",(e,t)=>{const o=t.type===e.type,i="*"===t.category||e.cat.includes(Number(t.category)),r=""===t.search||new RegExp(t.search.replace(/[.*+?^${}()|[\]\\]/g,""),"i").test(e.keywords);return o&&i&&r})}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:i}=this.props,r=t.length;return i&&o.length&&(t=t.filter(t=>t.type===e),r=t.length),t.reduce((e,{cat:t})=>(t.forEach(t=>{e[t]?Object.assign(e,{[t]:++e[t]}):Object.assign(e,{[t]:1})}),e),{"*":r})}renderLoading(){const{showSidebar:e,showSearch:t,HeaderSlotLeft:o}=this.props;return c.a.createElement(c.a.Fragment,null,t&&c.a.createElement(o,null,c.a.createElement(eo,{className:"brz-ed-popup-two-header__search"})),e&&c.a.createElement("div",{className:"brz-ed-popup-two-body__sidebar"},c.a.createElement("div",{className:"brz-ed-popup-two-sidebar-body"})),c.a.createElement("div",{className:"brz-ed-popup-two-body__content brz-ed-popup-two-body__content--loading"},c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"})))}render(){const{loading:e,kits:t,blocks:o,types:i,categories:r,selectedKit:n,showSearch:a,showSidebar:l,HeaderSlotLeft:s,onChangeKit:d,onChange:p}=this.props;if(e)return this.renderLoading();const u=t.filter(({id:e})=>e!==n).length>0,b=i.length>0,m=r.length>0;return c.a.createElement(qt,{data:o,filterFn:this.filterData,defaultFilter:ei},(e,o,h)=>(ei.type=o.type,c.a.createElement(c.a.Fragment,null,a&&c.a.createElement(s,null,c.a.createElement(eo,{className:"brz-ed-popup-two-header__search",value:o.search,onChange:e=>h({search:e})})),l&&c.a.createElement(Qt,null,u&&c.a.createElement(Yt,{title:"BLOCKS"},c.a.createElement(S.a,{defaultValue:n,className:"brz-control__select--dark brz-control__select--full-width",maxItems:"6",itemHeight:"30",onChange:d},t.map(({id:e,name:t},o)=>c.a.createElement(O.a,{key:o,value:e},t)))),b&&c.a.createElement(Yt,{title:"STYLES"},c.a.createElement(Xt,{lists:i,counters:this.getTypesCounters(),value:o.type,onChange:e=>h({type:e})})),m&&c.a.createElement(Yt,{title:"CATEGORIES"},c.a.createElement(Xt,{lists:r,counters:this.getCategoriesCounter(o.type),value:o.category,onChange:e=>h({category:e})}))),c.a.createElement("div",{className:"brz-ed-popup-two-body__content"},c.a.createElement(j.a,null,e.length>0?c.a.createElement(Lo,{data:e,onThumbnailAdd:p}):c.a.createElement("div",{className:"brz-ed-popup-two-blocks__grid brz-ed-popup-two-blocks__grid-clear"},c.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},Object(ae.a)("Nothing here, please refine your search."))))))))}}Object(a.a)(ti,"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 oi=ti;function ii(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ri(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ii(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class ni extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{kits:[],loading:!0,styles:[],types:[],categories:[],blocks:[]}),Object(a.a)(this,"mounted",!1),Object(a.a)(this,"handleThumbnailAdd",async e=>{const{projectFonts:t,onAddBlocks:o,onClose:i}=this.props,r=ri(ri({},await this.getBlockResolve(e.id)),{},{blockId:e.id}),n=Object(Wo.a)(Object(Wo.b)({models:r}),t);o({block:r,fonts:await Object(Ao.t)(n)}),i()}),Object(a.a)(this,"handleImportKit",async e=>{const{selectedKit:t,projectFonts:o,projectStyles:i,dispatch:r}=this.props,{kits:n}=this.state;if(t===e)return;const a=this.getKitData(n,e),{styles:l}=a;if(this.setState(a),l.some(({id:e})=>!i.some(({id:t})=>t===e))){const t=l.reduce((e,{fontStyles:t})=>e.concat(Object(Wo.d)(t)),[]),i=await Object(Ao.t)(Object(Wo.a)(t,o));r(Object(Qo.s)({selectedKit:e,styles:l?Object(Ao.u)(l):void 0,fonts:i}))}else r(Object(Qo.H)(e))})}async getMeta(){const{type:e}=this.props;if("popup"===e){const e=await fetch(Object(pe.a)("popups/meta.json"));return await e.json()}{const e=await fetch(Object(pe.a)("kits/meta.json"));return await e.json()}}async getBlockResolve(e){const{type:t}=this.props;if("popup"===t){const t=await fetch(Object(No.h)("popups",e));return await t.json()}{const t=await fetch(Object(No.h)("kits",e));return await t.json()}}getKitData(e,t=this.props.selectedKit){const o=e.find(({id:e})=>e===t),{categories:i,blocks:r,styles:n,types:a}=o,l=[{id:"*",title:Object(ae.a)("All Categories")},...i],c=r.map(e=>ri(ri({},e),{},{thumbnailSrc:Object(No.a)(e)}));return{kits:e,styles:n,types:a,categories:l.filter(({hidden:e})=>!0!==e),blocks:c}}getPopupData({blocks:e,categories:t=[],types:o=[]}){const i=[{id:"*",title:Object(ae.a)("All Categories")},...t];return{types:o,blocks:e.map(e=>ri(ri({},e),{},{pro:(!so.a||"blank"!==e.blank)&&e.pro,thumbnailSrc:Object(No.a)(e)})),categories:i.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(ri(ri({},t),{},{loading:!1}))}}componentWillUnmount(){this.mounted=!1}render(){const{kits:e,types:t,blocks:o,categories:i,loading:r}=this.state,{showSearch:n,showSidebar:a,selectedKit:l,HeaderSlotLeft:s}=this.props;return c.a.createElement(oi,{loading:r,selectedKit:l,kits:e,blocks:o,categories:i,types:t,showSearch:n,showSidebar:a,HeaderSlotLeft:s,onChangeKit:this.handleImportKit,onChange:this.handleThumbnailAdd})}}Object(a.a)(ni,"defaultProps",{showSidebar:!0,showSearch:!0,showType:!0,showCategories:!0,type:"normal",HeaderSlotLeft:v.default.noop(),onAddBlocks:v.default.noop,onClose:v.default.noop});var ai=Object(io.b)(e=>({selectedKit:Object(co.H)(e).data.selectedKit,projectFonts:Object(co.o)(e),projectStyles:Object(co.N)(e)}),e=>({dispatch:e}))(ni);class li extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{search:""}),Object(a.a)(this,"handleThumbnailAdd",async e=>{const{globalBlocks:t,projectFonts:o,onAddBlocks:i,onClose:r}=this.props,{resolve:n}=e,a=Object(Wo.a)(Object(Wo.b)({models:n,globalBlocks:t}),o);i({block:n,fonts:await Object(Ao.t)(a)}),r()}),Object(a.a)(this,"handleThumbnailRemove",e=>{const{dispatch:t}=this.props,{id:o}=e;t(Object(Qo.q)({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 c.a.createElement(l.Fragment,null,o&&c.a.createElement(t,null,c.a.createElement(eo,{className:"brz-ed-popup-two-header__search",value:this.state.search,onChange:e=>this.setState({search:e})})),c.a.createElement("div",{className:"brz-ed-popup-two-body__content"},c.a.createElement(j.a,null,c.a.createElement(Lo,{data:e,onThumbnailAdd:this.handleThumbnailAdd,onThumbnailRemove:this.handleThumbnailRemove}))))}renderEmpty(){const{HeaderSlotLeft:e,showSearch:t,type:o}=this.props;let i,r=Object(ae.a)("Nothing here yet, make a global block first.");switch(o){case"popup":i=so.b?"editor/img/global_condition_popups_toolbar.gif":"editor/img/global_popups_toolbar.gif",r=Object(ae.a)("Nothing here yet, make a global popup first.");break;default:i="editor/img/global_toolbar.gif"}return c.a.createElement(l.Fragment,null,t&&c.a.createElement(e,null,c.a.createElement(eo,{className:"brz-ed-popup-two-header__search",value:this.state.search,onChange:e=>this.setState({search:e})})),c.a.createElement("div",{className:"brz-ed-popup-two-body__content brz-flex-xs-column"},c.a.createElement("div",{className:"brz-ed-popup-two-blocks__grid brz-ed-popup-two-blocks__grid-clear"},""!==this.state.search?c.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},Object(ae.a)("Nothing here, please refine your search.")):c.a.createElement(l.Fragment,null,c.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},r),c.a.createElement("img",{src:`${Object(pe.a)(i)}?${Math.random()}`,className:"brz-ed-popup-two-blocks__grid-clear-image-global",alt:"Global"})))))}renderProInfo(){return c.a.createElement("div",{className:"brz-ed-tooltip-content__pro"},c.a.createElement("p",{className:"brz-p brz-ed-tooltip-content__pro-title"},Object(ae.a)("You can't add it again")))}renderThumbnailTooltip(e){return c.a.createElement(Oe.c,{className:"brz-ed-global-tooltip",overlayClassName:"brz-ed-tooltip--delay-1",size:"small",offset:"5",openOnClick:!1,overlay:this.renderProInfo()},e)}render(){const{globalBlocksInPage:e}=this.props,t=this.getBlocks();if(0===t.length)return this.renderEmpty();const o=t.map(t=>{const{url:o,width:i,height:r}=Object(No.b)(t.data),{type:n,value:{_id:a}}=t.data,l=!so.b&&"SectionPopup"!==n&&"SectionPopup2"!==n&&e[a];return{id:a,thumbnailSrc:o,thumbnailWidth:i,thumbnailHeight:r,showRemoveIcon:!0,renderWrapper:e=>l?this.renderThumbnailTooltip(e):e,inactive:l,resolve:{type:"GlobalBlock",value:{_id:a}}}},[]);return this.renderThumbnails(o)}}Object(a.a)(li,"defaultProps",{type:"normal",showSearch:!0,onAddBlocks:v.default.noop,onClose:v.default.noop,HeaderSlotLeft:v.default.noop}),Object(a.a)(li,"propTypes",{type:oo.a.oneOf(["normal","popup"]),showSearch:oo.a.bool,showSidebar:oo.a.bool,onAddBlocks:oo.a.func,onClose:oo.a.func,HeaderSlotLeft:oo.a.func});var ci=Object(io.b)(e=>({globalBlocks:Object(co.r)(e),globalBlocksInPage:Object(co.s)(e),projectFonts:Object(co.o)(e)}),e=>({dispatch:e}))(li),si=o(55),di=o(31),pi=o(129),ui=o(302);const bi=()=>{const{hash:e,url:t,cloudSync:o}=y.a.get("wp").api,i=y.a.get("editorVersion"),r=ze(t,{hash:e,version:i,action:o});return new Promise((e,t)=>{Object(ue.O)(r,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(e=>Fe(e)).then(o=>{const{status:i,data:r}=o;if(!i||i>=400)throw o;{const{synchronized:i}=r;0===i?e(o):bi().then(e).catch(t)}}).catch(t)})},mi=()=>{const{hash:e,url:t,cloudSyncAllowed:o}=y.a.get("wp").api,i=y.a.get("editorVersion"),r=ze(t,{hash:e,version:i,action:o});return Object(ue.O)(r,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(Fe).then(e=>e)},hi=()=>{const[e,t]=Object(l.useState)(!1),[o,i]=Object(l.useState)(!1),[r,n]=Object(l.useState)(void 0);return Object(l.useEffect)(()=>{o&&(()=>{const{hash:e,url:t,cloudSignOut:o}=y.a.get("wp").api,i=y.a.get("editorVersion"),r=ze(t,{hash:e,version:i,action:o});return Object(ue.O)(r,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(Fe).then(e=>e)})().then(e=>{!e.status||e.status>=400?(n(e),po.a.error(Object(ae.a)("Something went wrong"),{toastContainer:window.parent.document.body})):(i(!1),t(!0))}).catch(e=>{i(!1),n(e),po.a.error(Object(ae.a)("Something went wrong"),{toastContainer:window.parent.document.body})})},[o]),Object(l.useEffect)(()=>{e&&t(!1)},[e]),{isDisconnect:e,error:r,loading:o,setDisconnect:()=>{i(!0)}}};var gi=o(178);const vi={updateAuthorization:Qo.F};var yi=Object(io.b)(e=>({isAuthorized:"connected"===Object(co.a)(e),syncAllowed:Object(co.O)(e)}),vi)(e=>{const{isAuthorized:t,syncAllowed:o,onSuccessSync:i,updateAuthorization:r}=e,{isSync:n,setSync:a,loading:s}=(()=>{const[e,t]=Object(l.useState)(!1),[o,i]=Object(l.useState)(!1),[r,n]=Object(l.useState)(void 0);return Object(l.useEffect)(()=>{o&&bi().then(e=>{!e.status||e.status>=400?(n(e),po.a.error(Object(ae.a)("Unsuccessful sync"),{toastContainer:window.parent.document.body})):(i(!1),t(!0),po.a.success(Object(ae.a)("Done, your library was synced"),{toastContainer:window.parent.document.body}))}).catch(e=>{i(!1),n(e),po.a.error(Object(ae.a)("Unsuccessful sync"),{toastContainer:window.parent.document.body})})},[o]),{isSync:e,error:r,loading:o,setSync:()=>{i(!0)}}})(),{isDisconnect:d,setDisconnect:p,loading:u}=hi();return Object(l.useEffect)(()=>{n&&i&&i()},[n]),Object(l.useEffect)(()=>{d&&(r("disconnect"),Object(gi.b)("disconnect"))},[d]),c.a.createElement("div",{className:"brz-ed-popup-two__cloud"},c.a.createElement("p",{className:"brz-p"},t?Object(ae.a)("Saved Library is syncing to your Account"):Object(ae.a)("Access your Library in any WP install by connecting your Account")),c.a.createElement("div",{className:"brz-ed-popup-two__cloud-icon"},c.a.createElement("div",{className:"brz-d-inline-block brz-p-relative"},c.a.createElement(F.b,{icon:"nc-upload"}),t&&c.a.createElement("div",{className:"brz-ed-popup-two__cloud-icon--connect"},c.a.createElement(F.b,{icon:"nc-check-circle-white"})))),c.a.createElement(Ge,{className:"brz-ed-popup-two__cloud-button",size:4,color:t?"gray":"teal",loading:u,onClick:()=>{t?p():os.open({mode:"stack",prompt:"authorization",props:{}})}},t?Object(ae.a)("Disconnect"):Object(ae.a)("Connect")),t&&o&&c.a.createElement(Ge,{className:"brz-ed-popup-two__cloud-button-sync",size:4,color:"teal",loading:s,onClick:()=>{a()}},Object(ae.a)("Sync Now")),!o&&c.a.createElement("p",{className:"brz-p"},Object(ae.a)("Your Plugin version is incompatible with Account version, please update plugin")))});const fi=e=>{const{alignX:t="top",alignY:o="left",className:i,children:r}=e,n=g()("brz-ed-popup-two__footer",i,{["brz-ed-popup-two__footer--x-"+t]:t,["brz-ed-popup-two__footer--y-"+o]:o});return c.a.createElement("div",{className:n},r)};function Si(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Oi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Si(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Si(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const xi={flex:1};class Ci extends l.Component{constructor(...e){var t,o;super(...e),Object(a.a)(this,"importRef",c.a.createRef()),Object(a.a)(this,"currentFilter",{type:null!==(t=null===(o=this.props.types[0])||void 0===o?void 0:o.id)&&void 0!==t?t:"BLOCK",search:""}),Object(a.a)(this,"getDefaultFilter",v.default.memoize(e=>({type:e.length?e[0].id:"BLOCK",search:""}))),Object(a.a)(this,"getTypesCounters",()=>{const{items:e,types:t}=this.props,o=Object.values(e).filter(Qe.isT).flatMap(e=>e),i=t.reduce((e,{id:t})=>Oi(Oi({},e),{},{[t]:0}),{});return o.forEach(({type:e})=>{i[e]++}),i}),Object(a.a)(this,"filterData",(e,t)=>{const o=t.type===e.type,i=""===t.search||new RegExp(t.search.replace(/[.*+?^${}()|[\]\\]/g,""),"i").test(e.keywords||"");return o&&i}),Object(a.a)(this,"handleImport",e=>{const{types:t,onImport:o}=this.props,i=e.target.files;if(null!=i&&i.length&&"function"==typeof o){const e=this.getActiveType(t),r=this.importRef.current;o(i,e),null!==r&&(r.value="")}}),Object(a.a)(this,"handleExport",()=>{const{items:e,types:t,onExport:o}=this.props,i=this.getActiveType(t),r=e[i];if("function"==typeof o&&r){o(r.filter(e=>this.filterData(e,this.currentFilter)).map(e=>e.uid),i)}})}getActiveType(e){return this.currentFilter.type||e[0].id}renderLoading(){return c.a.createElement("div",{className:"brz-ed-popup-two-body__content brz-ed-popup-two-body__content--loading"},c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}))}renderEmpty(){const{type:e,types:t,search:o,onImport:i}=this.props,r=this.getActiveType(t),n={width:"LAYOUT"===r?"524px":"322px"};let a="editor/img/save_toolbar.gif",l=Object(ae.a)("Nothing here yet, save a block first.");const s="function"==typeof i;return"popup"===e&&(a="editor/img/save_popups_toolbar.gif",l=Object(ae.a)("Nothing here yet, save a popup first.")),"LAYOUT"===r&&(l=Object(ae.a)("Nothing here yet, save a layout first."),a="editor/img/save_layout.gif"),c.a.createElement("div",{className:"brz-ed-popup-two-body__content brz-flex-xs-column"},c.a.createElement("div",{className:"brz-ed-popup-two-blocks__grid brz-ed-popup-two-blocks__grid-clear"},""!==o?c.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},Object(ae.a)("Nothing here, please refine your search.")):c.a.createElement(c.a.Fragment,null,c.a.createElement("p",{className:"brz-ed-popup-two-blocks__grid-clear-text"},l),c.a.createElement("img",{key:r,style:n,src:Object(pe.a)(a),className:"brz-ed-popup-two-blocks__grid-clear-image-saved",alt:"Saved"}))),s&&c.a.createElement(fi,{alignX:"middle",alignY:"middle"},this.renderImport()))}renderItems(e){const{thumbnailSync:t,thumbnailDownload:o,onChange:i,onDelete:r,onExport:n,onImport:a}=this.props,l="function"==typeof a,s="function"==typeof n,d=l||s;return c.a.createElement("div",{className:"brz-ed-popup-two-body__content brz-flex-xs-column"},c.a.createElement(j.a,{style:xi},c.a.createElement(Lo,{showSync:t,showDownload:o,data:e,onThumbnailAdd:i,onThumbnailRemove:r})),d&&c.a.createElement(fi,{alignX:"middle",alignY:"middle"},s&&this.renderExport(),l&&this.renderImport()))}renderImport(){const{importLoading:e,types:t}=this.props,o=this.getActiveType(t),i=g()("brz-label brz-ed-popup-two-body__content--import",{"brz-pointer-events-none":e}),r="POPUP"===o?Object(ae.a)("Import New Popup"):"BLOCK"===o?Object(ae.a)("Import New Block"):Object(ae.a)("Import New Layout");return c.a.createElement("label",{className:i},c.a.createElement(Ge,{type:"link",color:"teal",loading:e,size:2},r),c.a.createElement("input",{ref:this.importRef,hidden:!0,className:"brz-input",type:"file",accept:"zip,application/octet-stream,application/zip,application/x-zip,application/x-zip-compressed",onChange:this.handleImport}))}renderExport(){const{exportLoading:e,types:t}=this.props,o=this.getActiveType(t),i="POPUP"===o?Object(ae.a)("Export All Popups"):"BLOCK"===o?Object(ae.a)("Export All Blocks"):Object(ae.a)("Export All Layouts");return c.a.createElement(Ge,{color:"gray",loading:e,size:2,onClick:this.handleExport},i)}render(){const{loading:e,items:t,types:o,showSearch:i,sidebarSync:r,HeaderSlotLeft:n,onSuccessSync:a}=this.props,l=Object.values(t).filter(Qe.isT).flatMap(e=>e);return c.a.createElement(qt,{data:l,filterFn:this.filterData,defaultFilter:this.getDefaultFilter(o)},(t,l,s)=>c.a.createElement(c.a.Fragment,null,i&&c.a.createElement(n,null,c.a.createElement(eo,{className:"brz-ed-popup-two-header__search",value:l.search,onChange:e=>{s({search:e}),this.currentFilter.search=e}})),c.a.createElement(Qt,null,c.a.createElement(Yt,{title:"LIBRARY"},c.a.createElement(Xt,{lists:o,counters:this.getTypesCounters(),value:l.type,onChange:e=>{s({type:e}),this.currentFilter.type=e}})),r&&c.a.createElement(Yt,{separator:!0},c.a.createElement(yi,{onSuccessSync:a}))),e?this.renderLoading():0===t.length?this.renderEmpty():this.renderItems(t)))}}Object(a.a)(Ci,"defaultProps",{type:"normal",showSearch:!0,sidebarSync:!0,search:"",loading:!1,items:{},types:[],HeaderSlotLeft:l.Component,onChange:v.default.noop,onDelete:v.default.noop,onSuccessSync:v.default.noop});var wi=Ci;function Bi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ji(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(a.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}class Ti extends l.Component{constructor(...e){var t;super(...e),Object(a.a)(this,"state",{search:"",data:{BLOCK:void 0,LAYOUT:void 0,POPUP:void 0},loading:!0,importLoading:!1,exportLoading:!1,types:(t=this.props.type,"normal"===t?[{id:"BLOCK",title:Object(ae.a)("Blocks"),icon:"nc-blocks"},{id:"LAYOUT",title:Object(ae.a)("Layouts"),icon:"nc-pages"}]:[{id:"POPUP",title:Object(ae.a)("Popups"),icon:"nc-blocks"}])}),Object(a.a)(this,"pagination",{BLOCK:void 0,LAYOUT:void 0,POPUP:void 0}),Object(a.a)(this,"unMount",!1),Object(a.a)(this,"withImportExport",!0),Object(a.a)(this,"updateBlocks",async e=>{if("normal"===this.props.type){const t=await this.getBlocks(e),o=await this.getLayout(e);this.unMount||this.setState({data:{BLOCK:t,LAYOUT:o},loading:!1},()=>{const{BLOCK:e,LAYOUT:t}=this.pagination;e&&!e.done&&this.handleGetMoreBlocks(e.page+1,"BLOCK"),t&&!t.done&&this.handleGetMoreBlocks(t.page+1,"LAYOUT")})}else{const t=await this.getPopups(e);this.unMount||this.setState({data:{POPUP:t},loading:!1},()=>{const{POPUP:e}=this.pagination;e&&!e.done&&this.handleGetMoreBlocks(e.page+1,"POPUP")})}}),Object(a.a)(this,"handleGetMoreBlocks",async(e,t)=>{const o=Object(Qe.match)([ho,this.getBlocks.bind(this,e)],[go,this.getPopups.bind(this,e)],[vo,this.getLayout.bind(this,e)]),i=await o(t);this.setState(Object(s.a)(o=>{var r;null===(r=o.data[t])||void 0===r||r.push(...i),this.pagination[t]={page:e,done:i.length<200}}),()=>{const o=this.pagination[t];o&&!o.done&&this.handleGetMoreBlocks(e+1,t)})}),Object(a.a)(this,"handleAddItems",({type:e,uid:t})=>{switch(this.handleLoadingBlock(t,e,!0),e){case"BLOCK":this.handleAddBlock(t).catch(()=>{var o;this.handleLoadingBlock(t,e,!1);const{getParentNode:i}=this.props,r=null===(o=(i&&i()||document).ownerDocument)||void 0===o?void 0:o.body;po.a.error(Object(ae.a)("Unable to insert block. Please try again or contact support"),{toastContainer:r})});break;case"POPUP":this.handleAddPopup(t).catch(()=>{var o;this.handleLoadingBlock(t,e,!1);const{getParentNode:i}=this.props,r=null===(o=(i&&i()||document).ownerDocument)||void 0===o?void 0:o.body;po.a.error(Object(ae.a)("Unable to insert popup. Please try again or contact support"),{toastContainer:r})});break;case"LAYOUT":this.handleAddLayout(t).catch(()=>{var o;this.handleLoadingBlock(t,e,!1);const{getParentNode:i}=this.props,r=null===(o=(i&&i()||document).ownerDocument)||void 0===o?void 0:o.body;po.a.error(Object(ae.a)("Unable to insert layout. Please try again or contact support"),{toastContainer:r})})}}),Object(a.a)(this,"handleDeleteItem",({type:e,uid:t})=>{switch(e){case"BLOCK":case"POPUP":Object(ue.f)(t);break;case"LAYOUT":Object(ue.g)(t)}this.setState(({data:o})=>{var i;return{data:ji(ji({},o),{},{[e]:null===(i=o[e])||void 0===i?void 0:i.filter(e=>e.uid!==t)})}})}),Object(a.a)(this,"handleImport",async(e,t)=>{this.setState({importLoading:!0});const o=Object(Qe.match)([ho,()=>Object(ue.ib)(e)],[go,()=>Object(ue.kb)(e)],[vo,()=>Object(ue.jb)(e)]);try{const e=await o(t);if(e.success.length){const o=[],i=[],r=[];e.success.forEach(e=>{Object(pi.h)(e)&&i.push(ji(ji({},this.makeThumbsData(e)),{},{uid:e.uid,type:"LAYOUT",synchronized:e.synchronized||!1,synchronizable:e.synchronizable||!1})),Object(pi.g)(e)&&o.push(ji(ji({},this.makeThumbsData(e)),{},{uid:e.uid,type:"BLOCK",synchronized:e.synchronized||!1,synchronizable:e.synchronizable||!1})),Object(pi.i)(e)&&r.push(ji(ji({},this.makeThumbsData(e)),{},{uid:e.uid,type:"POPUP",synchronized:e.synchronized||!1,synchronizable:e.synchronizable||!1}))}),this.setState(Object(s.a)(e=>{var t,n,a;o.length>0&&(e.data.BLOCK=[...null!==(t=e.data.BLOCK)&&void 0!==t?t:[],...o]);r.length>0&&(e.data.POPUP=[...null!==(n=e.data.POPUP)&&void 0!==n?n:[],...r]);i.length>0&&(e.data.LAYOUT=[...null!==(a=e.data.LAYOUT)&&void 0!==a?a:[],...i])})),((e,t)=>{const o={toastContainer:window.parent.document.body,hideAfter:5};e.success.forEach(e=>{switch(t){case"BLOCK":Object(pi.h)(e)&&po.a.error("Your .zip contains layouts. We imported them in the Saved Layouts library",o),Object(pi.i)(e)&&po.a.error("Your .zip contains popups blocks. We imported them in the Saved Popups library",o);break;case"POPUP":Object(pi.h)(e)&&po.a.error("Your .zip contains layouts. We imported them in the Saved Layouts library",o),Object(pi.g)(e)&&po.a.error("Your .zip contains regular blocks. We imported them in the Saved Blocks library",o);break;case"LAYOUT":Object(pi.g)(e)&&po.a.error("Your .zip contains regular blocks. We imported them in the Saved Blocks library",o),Object(pi.i)(e)&&po.a.error("Your .zip contains popups blocks. We imported them in the Saved Popups library",o)}})})(e,t)}this.unMount||(this.setState({importLoading:!1}),e.errors.forEach(({message:e})=>{po.a.error(e,{toastContainer:window.parent.document.body})}))}catch(e){0,this.unMount||this.setState({importLoading:!1},()=>{const t=So(e);po.a.error(t,{toastContainer:window.parent.document.body})})}}),Object(a.a)(this,"handleSuccessSync",()=>{this.updateBlocks(1)})}async componentDidMount(){const e=y.a.getAll();Object(di.b)(e)&&(this.withImportExport=!e.user.isGuest),this.updateBlocks(1)}componentDidUpdate(e){e.isAuthorized!==this.props.isAuthorized&&this.updateBlocks(1)}componentWillUnmount(){this.unMount=!0}async getBlocks(e){const t=await Object(ue.E)({page:e,count:200});return this.pagination.BLOCK={page:e,done:t.length<200},t.filter(({meta:e})=>"normal"===(null==e?void 0:e.type)).map(e=>ji(ji({},this.makeThumbsData(e)),{},{uid:e.uid,type:"BLOCK",synchronized:e.synchronized||!1,synchronizable:e.synchronizable||!1}))}async getLayout(e){const t=await Object(ue.G)({page:e,count:200});return this.pagination.LAYOUT={page:e,done:t.length<200},t.map(e=>ji(ji({},this.makeThumbsData(e)),{},{uid:e.uid,type:"LAYOUT",synchronized:e.synchronized||!1,synchronizable:e.synchronizable||!1}))}async getPopups(e){const t=await Object(ue.E)({page:e,count:200});return this.pagination.POPUP={page:e,done:t.length<200},t.filter(({meta:e})=>"popup"===(null==e?void 0:e.type)).map(e=>ji(ji({},this.makeThumbsData(e)),{},{uid:e.uid,type:"POPUP",synchronized:e.synchronized||!1,synchronizable:e.synchronizable||!1}))}async getAssets(e){const{projectFonts:t,projectExtraFontStyles:o}=this.props,{extraFontStyles:i=[]}=e.meta||{},r=Object(Wo.b)({models:e}),n=Object(Wo.d)(i),a=await Object(Ao.t)(Object(Wo.a)([...r,...n],t)),l=i.filter(({id:e})=>!o.some(t=>t.id===e));return{fonts:a,extraFontStyles:Object(Ao.s)(l)}}async handleAddLayout(e){const{onAddBlocks:t,onClose:o}=this.props,{data:i,meta:r}=await Object(ue.F)(e),{fonts:n,extraFontStyles:a}=await this.getAssets({data:i,meta:r});this.unMount||(t({fonts:n,extraFontStyles:a,blocks:i.items}),o())}async handleAddBlock(e){const{onAddBlocks:t,onClose:o}=this.props,{data:i,meta:r}=await Object(ue.D)(e),{fonts:n,extraFontStyles:a}=await this.getAssets({data:i,meta:r});this.unMount||(t({fonts:n,extraFontStyles:a,blocks:[i]}),o())}async handleAddPopup(e){const{onAddBlocks:t,onClose:o}=this.props,{data:i,meta:r}=await Object(ue.D)(e),{fonts:n,extraFontStyles:a}=await this.getAssets({data:i,meta:r});this.unMount||(t({fonts:n,extraFontStyles:a,blocks:[i]}),o())}handleLoadingBlock(e,t,o){this.setState(Object(s.a)(i=>{var r;i.data[t]=null!==(r=i.data[t])&&void 0!==r?r:[],i.data[t].forEach((r,n)=>{r.uid==e&&(i.data[t][n].loading=o)})}))}makeThumbsData(e){const{url:t,width:o,height:i}=Object(No.b)(e),r="admin"===Object(si.b)();return{thumbnailSrc:t,thumbnailWidth:o,thumbnailHeight:i,showRemoveIcon:!0!==e.isCloudEntity&&r,loading:!1}}render(){const{loading:e,data:t,types:o,search:i,importLoading:r,exportLoading:n}=this.state,{type:a,HeaderSlotLeft:l,showSearch:s}=this.props,d=Object(ui.a)();return c.a.createElement(wi,{type:a,loading:e,items:t,types:o,showSearch:s,sidebarSync:!d,thumbnailSync:N.l,thumbnailDownload:this.withImportExport,search:i,importLoading:r,exportLoading:n,HeaderSlotLeft:l,onSuccessSync:this.handleSuccessSync,onChange:this.handleAddItems,onDelete:this.handleDeleteItem,onImport:this.withImportExport?this.handleImport:void 0})}}Object(a.a)(Ti,"defaultProps",{type:"normal",showSearch:!0,projectFonts:{},projectExtraFontStyles:[],isAuthorized:!1,onAddBlocks:v.default.noop,onClose:v.default.noop,HeaderSlotLeft:l.Component,getParentNode:()=>null});var Pi=Object(io.b)(e=>({projectFonts:Object(co.o)(e),projectExtraFontStyles:Object(co.n)(e),isAuthorized:"connected"===Object(co.a)(e)}))(Ti);const Ei=[{id:"template",title:so.d?Object(ae.a)("Stories"):Object(ae.a)("Layouts"),icon:"nc-pages",renderTab:e=>c.a.createElement(Zo,Object(C.a)({},e,{type:so.d?"stories":"templates"}))},{id:"blocks",title:so.b?Object(ae.a)("Popups"):Object(ae.a)("Blocks"),icon:"nc-blocks",renderTab:e=>c.a.createElement(ai,e)},{id:"saved",title:so.b?Object(ae.a)("Saved Popups"):Object(ae.a)("Saved"),icon:"nc-save-section",renderTab:e=>c.a.createElement(Pi,e)},{id:"global",title:so.b?Object(ae.a)("Global Popups"):Object(ae.a)("Global Blocks"),icon:"nc-global",renderTab:e=>c.a.createElement(ci,e)}];class _i extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{currentTab:this.props.activeTab||"blocks"}),Object(a.a)(this,"wrapper",c.a.createRef()),Object(a.a)(this,"mounted",!1),Object(a.a)(this,"getWrapper",()=>this.wrapper.current),Object(a.a)(this,"handleChange",e=>{const{currentTab:t}=this.state,{onChangeBlocks:o,onChangeGlobal:i,onChangeSaved:r,onChangeTemplate:n}=this.props;switch(t){case"blocks":null==o||o(e);break;case"template":null==n||n(e);break;case"saved":null==r||r(e);break;case"global":null==i||i(e)}}),Object(a.a)(this,"handleClose",()=>{var e,t;this.mounted&&(null===(e=(t=this.props).onClose)||void 0===e||e.call(t))})}componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}hasSearch(e){return!!Object($t.a)(e+"Search",this.props)}hasSidebar(e){return!!Object($t.a)(e+"Sidebar",this.props)}handleTabChange(e){this.setState({currentTab:e})}renderTabs(){const{currentTab:e}=this.state,t=Ei.filter(({id:e})=>{const t="show"+Object(Gt.c)(e);return!!Object($t.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 c.a.createElement("div",{key:t.id,className:o,onClick:()=>{this.handleTabChange(t.id)}},c.a.createElement("div",{className:"brz-ed-popup-two-tab-icon"},c.a.createElement(F.b,{icon:t.icon})),c.a.createElement("div",{className:"brz-ed-popup-two-tab-name"},t.title))});return c.a.createElement("div",{className:"brz-ed-popup-two-header"},c.a.createElement("div",{id:"brz-ed-popup-header-left-slot"}),c.a.createElement("div",{className:"brz-ed-popup-two-header__tabs"},t),c.a.createElement("div",{id:"brz-ed-popup-header-right-slot"}),c.a.createElement("div",{className:"brz-ed-popup-two-btn-close",onClick:this.props.onClose}))}renderContent(){const{currentTab:e}=this.state,{renderTab:t}=Ei.find(({id:t})=>t===e)||Ei[0];return t({HeaderSlotLeft:e=>c.a.createElement(ki,Object(C.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 c.a.createElement(f.a,{opened:this.props.opened,onClose:this.handleClose},c.a.createElement("div",{ref:this.wrapper,className:"brz-ed-popup-two-wrapper brz-ed-popup-two-blocks"},this.renderTabs(),c.a.createElement("div",{className:"brz-ed-popup-two-body"},this.renderContent())))}}Object(a.a)(_i,"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 ki extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{isMounted:!1}),Object(a.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&&Dt.a.createPortal(this.props.children,this.headerSlotNode)}}Object(a.a)(ki,"defaultProps",{slot:"left"});var zi=_i;const Fi=({formId:e})=>{const{api:t}=y.a.get("wp"),o=y.a.get("editorVersion"),i=ze(t.url,{formId:e,action:t.getForm,hash:t.hash,version:o});return Object(ue.O)(i,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(e=>Fe(e)).then(e=>e)},Ri=({formId:e})=>{const{api:t}=y.a.get("wp"),o=y.a.get("editorVersion"),i=ze(t.url,{action:t.createForm,hash:t.hash,version:o});return Object(ue.O)(i,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({id:e})}).then(e=>Fe(e))},Hi=({formId:e,id:t})=>{const{api:o}=y.a.get("wp"),i=y.a.get("editorVersion"),r=ze(o.url,{action:o.getIntegration,hash:o.hash,version:i,formId:e,integration:t});return Object(ue.O)(r,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(e=>Fe(e))},Li=({formId:e,id:t})=>{const{api:o}=y.a.get("wp"),i=y.a.get("editorVersion"),r=ze(o.url,{action:o.createIntegration,hash:o.hash,version:i,formId:e});return Object(ue.O)(r,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({id:t})}).then(e=>Fe(e))},Mi=e=>{let{formId:t}=e,o=Object(x.a)(e,["formId"]);const{api:i}=y.a.get("wp"),r=y.a.get("editorVersion"),n=ze(i.url,{action:i.updateIntegration,hash:i.hash,version:r,formId:t}),a=v.default.pick(o,["id","usedAccount","fieldsMap","usedList","confirmationNeeded","usedFolder","completed"]);return Object(ue.O)(n,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(a)}).then(e=>Fe(e))};function Ii(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Wi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ii(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Ai=(e,t)=>{const o=t.map(e=>e.title).join(" & ");switch(e.code){case 401:return`${Object(ae.a)("Incorrect")} ${o}`;case 400:return Object(ae.a)("Duplicate Account");default:return Object(ae.a)("Something went wrong")}};class Ni extends l.Component{constructor(e,t){super(e),Object(a.a)(this,"handleChange",(e,t)=>{this.setState(o=>({apiKeyValue:Wi(Wi({},o.apiKeyValue),{},{[""+t]:e.trim()})}))}),Object(a.a)(this,"handleConnect",async()=>{const{app:{id:e,data:t},formId:o,onChange:i,onChangeProgress:r,onChangeNext:n}=this.context,{apiKeyValue:a}=this.state,l=Object.values(a);if(this.setState({nextLoading:!0,error:null}),l.some(e=>!e))await Object(ue.L)(),this.setState({error:Object(ae.a)("Fields are empty"),nextLoading:!1});else{const{status:l,data:c}=await(({formId:e,id:t,data:o})=>{const{api:i}=y.a.get("wp"),r=y.a.get("editorVersion"),n=ze(i.url,{action:i.authenticateIntegration,hash:i.hash,version:r,formId:e,integration:t});return Object(ue.O)(n,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(o)}).then(e=>Fe(e))})(Wi(Wi({},t),{},{formId:o,data:a}));if(200!==l)this.setState({nextLoading:!1,error:Ai(c,t.accountApiKeys)});else{const o=t.accounts||[];i(e,Wi(Wi({},t),{},{accounts:[...o,c]})),r({showProgress:!0}),n()}}}),Object(a.a)(this,"handlePrev",async()=>{const{oldStage:e,onChangeNext:t,onChangePrev:o,onChangeProgress:i}=this.context;this.setState({error:null,prevLoading:!0}),await Object(ue.L)(),i({showProgress:!0}),"account"===e?t("account"):o()});const{data:{accountApiKeys:o}}=t.app,i=o.reduce((e,{name:t})=>Wi(Wi({},e),{},{[""+t]:""}),{});this.state={apiKeyValue:i,nextLoading:!1,prevLoading:!1,error:null}}static async onBeforeLoad(e,t){const{formId:o,app:{id:i,data:r},onChange:n,onChangeProgress:a,onError:l}=e;let{status:c,data:s}=await(({formId:e,id:t})=>{const{api:o}=y.a.get("wp"),i=y.a.get("editorVersion"),r=ze(o.url,{action:o.getAccountProperties,hash:o.hash,version:i,formId:e,integration:t});return Object(ue.O)(r,{method:"GET",headers:{"Content-Type":"application/json; charset=utf-8"}}).then(e=>Fe(e))})({id:i,formId:o});(!c||c>=400)&&(s=[],l("Something went wrong")),n(i,Wi(Wi({},r),{},{accountApiKeys:s})),r.usedAccount||r.accounts&&r.accounts.length?t.onChangeNext():a({showProgress:!1})}render(){const{app:e}=this.context,{apiKeyValue:t,error:o,nextLoading:i,prevLoading:r}=this.state,n=e.data.accountApiKeys.map(({title:e,name:o})=>({title:e,name:o,value:t[o]}));return c.a.createElement(Xe,Object(C.a)({},e,{data:n,error:o,nextLoading:i,prevLoading:r,onPrev:this.handlePrev,onNext:this.handleConnect,onChange:this.handleChange}))}}Object(a.a)(Ni,"contextType",me);var Vi=Ni;function Di(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function $i(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(a.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}class Gi extends l.Component{constructor(e,t){super(e),Object(a.a)(this,"handleActive",e=>{this.setState({active:e})}),Object(a.a)(this,"handleConnect",async()=>{const{onChangeProgress:e,onChangePrev:t}=this.context;this.setState({connectLoading:!0}),await Object(ue.L)(),e({showProgress:!1}),t("connect")}),Object(a.a)(this,"handleDisconnect",async()=>{const{app:{id:e,data:t},formId:o,onChange:i,onDisconnectApp:r,onChangeProgress:n}=this.context;this.setState({nextLoading:!0,error:null});const{status:a,data:l}=await Mi($i($i({},t),{},{formId:o,usedAccount:null}));200!==a?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(this.setState({mode:"account",nextLoading:!1}),i(e,$i($i({},t),l)),n({showProgress:!0}),r(e))}),Object(a.a)(this,"handleAccountMode",async()=>{this.setState({prevLoading:!0,error:null}),await Object(ue.L)(),this.context.onChangeProgress({showProgress:!0}),this.setState({mode:"account",prevLoading:!1})}),Object(a.a)(this,"handleDisconnectMode",async()=>{this.setState({disconnectLoading:!0,error:null}),await Object(ue.L)(),this.context.onChangeProgress({showProgress:!1}),this.setState({mode:"disconnect",disconnectLoading:!1})}),Object(a.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,onChange:i,onChangeNext:r}=this.context,{active:n}=this.state;if(this.setState({nextLoading:!0,error:null}),n!==t.usedAccount){const{status:a,data:l}=await Mi($i($i({},t),{},{formId:o,usedAccount:n}));200!==a?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(i(e,$i($i({},t),l)),r())}else await Object(ue.L)(),r()}),Object(a.a)(this,"handlePrev",async()=>{const{onChangePrev:e}=this.context;this.setState({prevLoading:!0}),await Object(ue.L)(),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?c.a.createElement(Ke,Object(C.a)({},e,this.state,{onActive:this.handleActive,onConnect:this.handleConnect,onDisconnect:this.handleDisconnectMode,onConfirm:this.handleConfirm,onPrev:this.handlePrev,onNext:this.handleNext})):c.a.createElement(Ze,Object(C.a)({},e,this.state,{descriptions:`Subscribers are automatically synced to your ${e.title} list`,onPrev:this.handleAccountMode,onNext:this.handleDisconnect}))}}Object(a.a)(Gi,"contextType",me);var Ui=Gi;function Ki(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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(a.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}class Yi extends l.Component{constructor(e,t){super(e),Object(a.a)(this,"handleActive",e=>{this.setState({active:e})}),Object(a.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,onChange:i,onChangeNext:r}=this.context,{active:n}=this.state;if(this.setState({nextLoading:!0,error:null}),n!==t.usedFolder){const{status:a,data:l}=await Mi(qi(qi({},t),{},{formId:o,usedFolder:n}));200!==a?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(i(e,qi(qi({},t),l)),r())}else await Object(ue.L)(),r()}),Object(a.a)(this,"handlePrev",async e=>{this.setState({prevLoading:!0,error:null}),await Object(ue.L)(),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,i=o.length?o[0].id:"";return t||i}render(){const{app:e}=this.context,{folders:t,accountPro:o}=e.data;return c.a.createElement(xt,Object(C.a)({},this.state,{listPro:o,lists:t,onActive:this.handleActive,onPrev:this.handlePrev,onNext:this.handleNext}))}}Object(a.a)(Yi,"contextType",me);var Xi=Yi;function Ji(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Zi(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(a.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 Qi extends l.Component{constructor(e,t){super(e),Object(a.a)(this,"handleActive",(e,t)=>{const{formFields:o}=this.state,i=o.findIndex(({sourceId:t})=>t===e);this.setState({formFields:Object(tt.replaceAt)(o,i,Zi(Zi({},o[i]),{},{target:t}))})}),Object(a.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0,error:null}),await Object(ue.L)(),this.context.onChangePrev()}),Object(a.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,onChange:i,onChangeNext:r}=this.context,{formFields:n}=this.state;if(this.setState({nextLoading:!0,error:null}),Ie(t.fields,n,"select")){const{status:a,data:l}=await Mi(Zi(Zi({},t),{},{formId:o,fieldsMap:JSON.stringify(n),completed:!0}));200!==a?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(i(e,Zi(Zi({},t),l)),r())}else await Object(ue.L)(),this.setState({error:Object(ae.a)("All fields marked with an asterisk ( * ) must be mapped."),nextLoading:!1})});const{app:{data:{fieldsMap:o,fields:i},restrictions:r},formFields:n}=t;this.state={formFields:He(o,i,n,r),prevLoading:!1,nextLoading:!1,error:null}}render(){const{app:e}=this.context,{formFields:t,error:o,nextLoading:i,prevLoading:r}=this.state;return c.a.createElement(St,Object(C.a)({},e,e.data,{formFields:t,error:o,nextLoading:i,prevLoading:r,onActive:this.handleActive,onPrev:this.handlePrev,onNext:this.handleNext}))}}Object(a.a)(Qi,"contextType",me);var er=Qi;function tr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function or(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class ir extends l.Component{constructor(e,t){super(e),Object(a.a)(this,"handleActive",(e,t)=>{const{formFields:o}=this.state,i=o.findIndex(({sourceId:t})=>t===e);this.setState({formFields:Object(tt.replaceAt)(o,i,or(or({},o[i]),{},{target:t}))})}),Object(a.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0,error:null}),await Object(ue.L)(),this.context.onChangePrev()}),Object(a.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,onChange:i,onChangeNext:r}=this.context,{formFields:n}=this.state;if(this.setState({error:null,nextLoading:!0}),Ie(t.fields,n,"input")){const{status:a,data:l}=await Mi(or(or({},t),{},{formId:o,fieldsMap:JSON.stringify(n),completed:!0}));200!==a?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(i(e,or(or({},t),l)),r())}else await Object(ue.L)(),this.setState({error:Object(ae.a)("All fields cannot be empty"),nextLoading:!1})});const{app:{data:o,restrictions:i},formFields:r}=t,{fieldsMap:n,fields:l}=o||{};this.state={formFields:He(n,l,r,i),prevLoading:!1,nextLoading:!1}}static async onBeforeLoad(e){const{app:{id:t,data:o},onChange:i}=e;i(t,or(or({},o),{},{fields:[]}))}render(){const{app:{title:e}}=this.context,{formFields:t,error:o,nextLoading:i,prevLoading:r}=this.state,n=t.map(({sourceTitle:e,sourceId:t,target:o})=>({title:e,name:t,value:"_auto_generate"===o?e:o}));return c.a.createElement(yt,{headTitle:Object(ae.a)("FORM FIELDS"),headDescription:`${e} ${Object(ae.a)("FIELDS")}`,data:n,error:o,nextLoading:i,prevLoading:r,onActive:this.handleActive,onPrev:this.handlePrev,onNext:this.handleNext})}}Object(a.a)(ir,"contextType",me);var rr=ir,nr=o(14);function ar(e){return"boolean"==typeof e}Object(nr.c)(ar);var lr=o(53);const cr=e=>"string"==typeof e||null===e,sr=e=>"function"==typeof e||cr(e),dr=Object(lr.d)({type:e=>"input"===e.type||void 0===e.type?"input":void 0,value:Object(nr.d)(Object($t.c)("value"),Object(Qe.pass)(e=>cr(e))),title:Object(Qe.mPipe)(Object($t.c)("title"),U.d),name:Object(Qe.mPipe)(Object($t.c)("name"),U.d),required:Object(Qe.optional)(Object(nr.d)(Object($t.c)("required"),Object(Qe.pass)(ar))),helper:Object(Qe.optional)(Object(nr.d)(Object($t.c)("helper"),Object(Qe.pass)(e=>sr(e))))}),pr=Object(Qe.parse)({type:e=>"select"===e.type?"select":void 0,choices:Object(Qe.mPipe)(Object($t.c)("choices"),e=>V.k(e)),value:Object(nr.d)(Object($t.c)("value"),Object(Qe.pass)(e=>"string"==typeof e||null===e)),title:Object(Qe.mPipe)(Object($t.c)("title"),U.d),name:Object(Qe.mPipe)(Object($t.c)("name"),U.d),required:Object(Qe.optional)(Object(nr.d)(Object($t.c)("required"),Object(Qe.pass)(ar))),helper:Object(Qe.optional)(Object(nr.d)(Object($t.c)("helper"),Object(Qe.pass)(e=>sr(e))))}),ur=Object(Qe.parse)({type:e=>"switch"===e.type?"switch":void 0,title:Object(Qe.mPipe)(Object($t.c)("title"),U.d),value:Object(nr.d)(Object($t.c)("value"),e=>!!ar(e)&&e),name:Object(Qe.mPipe)(Object($t.c)("name"),U.d),required:Object(Qe.optional)(Object(nr.d)(Object($t.c)("required"),Object(Qe.pass)(ar))),helper:Object(Qe.optional)(Object(nr.d)(Object($t.c)("helper"),Object(Qe.pass)(e=>sr(e))))}),br=Object(Qe.parse)({type:e=>"search"===e.type?"search":void 0,choices:Object(Qe.mPipe)(Object($t.c)("choices"),e=>V.k(e)),value:Object(nr.d)(Object($t.c)("value"),Object(Qe.pass)(e=>cr(e))),title:Object(Qe.mPipe)(Object($t.c)("title"),U.d),name:Object(Qe.mPipe)(Object($t.c)("name"),U.d),required:Object(Qe.optional)(Object(nr.d)(Object($t.c)("required"),Object(Qe.pass)(ar))),helper:Object(Qe.optional)(Object(nr.d)(Object($t.c)("helper"),Object(Qe.pass)(e=>sr(e)))),multiple:Object(nr.d)(Object($t.c)("multiple"),ar)}),mr=Object(Qe.match)([e=>"input"===e.type||void 0===e.type,dr],[e=>"select"===e.type,pr],[e=>"switch"===e.type,ur],[e=>"search"===e.type,br],[e=>!0,()=>{}]);function hr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function gr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?hr(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):hr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class vr extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{apiKeyValue:this.getDefaultValue(),prevLoading:!1,nextLoading:!1,error:null}),Object(a.a)(this,"handleChange",(e,t)=>{this.setState(({apiKeyValue:o})=>({apiKeyValue:gr(gr({},o),{},{[""+e]:t})}))}),Object(a.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,apiKeys:i,onChange:r,onChangeNext:n}=this.props,{apiKeyValue:a}=this.state;if(this.setState({nextLoading:!0,error:null}),i.find(({required:e,name:t})=>{var o;return e&&!a[null!==(o=U.d(t))&&void 0!==o?o:""]}))await Object(ue.L)(),this.setState({error:Object(ae.a)("All fields marked with an asterisk ( * ) must be completed."),nextLoading:!1});else{const{status:i,data:l}=await(e=>{let{formId:t}=e,o=Object(x.a)(e,["formId"]);const{api:i}=y.a.get("wp"),r=y.a.get("editorVersion"),n=ze(i.url,{action:i.updateIntegration,hash:i.hash,version:r,formId:t});return Object(ue.O)(n,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(o)}).then(e=>Fe(e))})(gr(gr(gr({},t),a),{},{formId:o,completed:!0}));200!==i?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(r(e,gr(gr({},t),l)),n())}}),Object(a.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(ue.L)(),this.props.onChangePrev()})}getDefaultValue(){const{app:{data:e},apiKeys:t}=this.props;return t.reduce((t,{name:o})=>{var i;return gr(gr({},t),{},{[""+o]:e[null!==(i=U.d(o))&&void 0!==i?i:""]||""})},{})}getValue(e){const{apiKeyValue:t}=this.state;return Object(nr.d)(t=>t[e])(t)}render(){const{app:e,apiKeys:t,formId:o,formFields:i}=this.props,{error:r,prevLoading:n,nextLoading:a}=this.state,l=t.map(e=>{return t=gr(gr({},e),{},{value:this.getValue(e.name)}),mr(t);var t}).filter(Qe.isT);return c.a.createElement(yt,Object(C.a)({},e,{formId:o,formFields:i,data:l,error:null!=r?r:void 0,prevLoading:n,nextLoading:a,onActive:this.handleChange,onPrev:this.handlePrev,onNext:this.handleNext}))}}var yr=vr;const fr=e=>{const{fields:t,descriptions:o}=e,[i,r]=Object(l.useState)(""),n=Object(l.useCallback)(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}}}`),r(e)},[]);return Object(l.useEffect)(()=>{const e=setTimeout(()=>{r("")},800);return()=>{clearTimeout(e)}},[i]),c.a.createElement("div",{className:"brz-helper__copy"},o&&c.a.createElement("p",{className:"brz-p brz-helper__copy-descriptions"},o),t.map((e,t)=>c.a.createElement("p",{key:t,title:"Click to copy",className:"brz-p brz-helper__copy--fields",onClick:()=>{n(e.label)}},c.a.createElement("span",{className:"brz-span"},`{{${e.label}}}`),c.a.createElement(F.b,{icon:"nc-duplicate"}),i===e.label&&c.a.createElement("span",{className:"brz-span brz-ed-animated brz-ed-animated--fadeIn"},"Copied"))))};function Sr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Or(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Sr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const xr={helper:e=>c.a.createElement(fr,{descriptions:Object(ae.a)("You can use these shortcodes in your email: "),fields:e})},Cr=[{name:"emailTo",title:Object(ae.a)("Email To"),required:!0,helper:`<p class="brz-p">${Object(ae.a)("If you need to have multiple emails you can separate them by commas")}:</p><p class="brz-p"><span class="brz-span">me@email.com,</span> <span class="brz-span">hi@email.com</span></p>`},Or({name:"subject",title:Object(ae.a)("Subject")},N.g?xr:{}),{name:"fromEmail",title:Object(ae.a)("From Email")},{name:"fromName",title:Object(ae.a)("From Name")},Or({name:"replayTo",title:Object(ae.a)("Reply-To")},N.g?xr:{}),{name:"cc",title:Object(ae.a)("Cc")},{name:"bcc",title:Object(ae.a)("Bcc")},{name:"metaData",title:Object(ae.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 wr extends l.Component{render(){return c.a.createElement(yr,Object(C.a)({},this.context,{apiKeys:Cr,onClose:this.props.onClose}))}}Object(a.a)(wr,"contextType",me);var Br=wr;class jr extends l.Component{renderError(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},c.a.createElement("span",{className:"brz-span"},this.props.error))}renderInput({name:e}){const{apiKeyValue:t,onChange:o}=this.props;return c.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-input"},c.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:i}=this.props,r=o[e],n=(r?t:[{id:"",name:"Please Select Folder"},...t]).map((e,t)=>{const{id:o,name:i}=e;return c.a.createElement(O.a,{key:t,value:o},i)});return c.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-select"},c.a.createElement(S.a,{defaultValue:r,className:"brz-control__select--white",maxItems:"6",itemHeight:"30",inPortal:!0,onChange:t=>{i(e,t)}},n))}renderTextarea({name:e}){const{apiKeyValue:t,onChange:o}=this.props;return c.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-input"},c.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:i}=e;return c.a.createElement("div",{key:t,className:"brz-ed-popup-integrations-step__fields-option"},c.a.createElement("p",{className:"brz-p"},o),this["render"+Object(Gt.c)(i)](e))});return c.a.createElement(ct.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:i,onPrev:r,onNext:n}=this.props;return c.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__lists-create"},i&&this.renderError(),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},Object(ae.a)("CREATE LIST")))),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},e.length>0&&this.renderApiKeys(),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},c.a.createElement(Ge,{size:3,leftIcon:"nc-arrow-left",loading:o,onClick:r},Object(ae.a)("Back")),c.a.createElement(Ge,{color:"teal",loading:t,onClick:n},Object(ae.a)("Create")))))}}function Tr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Pr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Tr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}Object(a.a)(jr,"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 Er=(e,t)=>{if("server"===e)return Object(ae.a)("List are not created please connect the support");const{data:{accountPro:o,lists:i},title:r}=t;return o?`Please upgrade your ${r} account to access your lists`:0===i.length?Object(ae.a)("Lists are empty. Please add a new list and try again."):void 0};class _r extends l.Component{constructor(e,t){super(e),Object(a.a)(this,"handleActive",e=>{this.setState({active:e})}),Object(a.a)(this,"handleKeysChange",(e,t)=>{this.setState(o=>({apiKeyValue:Pr(Pr({},o.apiKeyValue),{},{[""+e]:t})}))}),Object(a.a)(this,"handleConfirm",async e=>{const{app:{id:t,data:o},formId:i,onChange:r}=this.context,{status:n,data:a}=await Mi(Pr(Pr({},o),{},{formId:i,confirmationNeeded:e}));200!==n?this.setState({error:Object(ae.a)("Something went wrong")}):r(t,Pr(Pr({},o),a))}),Object(a.a)(this,"handleCreateMode",async()=>{this.setState({createLoading:!0}),await Object(ue.L)(),this.setState({mode:"create",createLoading:!1,error:null})}),Object(a.a)(this,"handleViewMode",async()=>{this.setState({prevLoading:!0,error:null}),await Object(ue.L)(),this.setState({prevLoading:!1,mode:"view"})}),Object(a.a)(this,"handleCreateList",async()=>{const{app:{id:e,data:t},formId:o,onChange:i}=this.context,{apiKeyValue:r}=this.state,n=Object.values(r);if(this.setState({nextLoading:!0,error:null}),n.some(e=>!e))await Object(ue.L)(),this.setState({nextLoading:!1,error:Object(ae.a)("All fields cannot be empty")});else{const{status:n,data:a}=await(({formId:e,id:t,data:o})=>{const{api:i}=y.a.get("wp"),r=y.a.get("editorVersion"),n=ze(i.url,{action:i.createIntegrationGroup,hash:i.hash,version:r,formId:e,integration:t});return Object(ue.O)(n,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(o)}).then(e=>Fe(e))})({formId:o,id:t.id,data:r,usedAccount:t.usedAccount});200!==n?this.setState({nextLoading:!1,error:Er("server")}):(i(e,Pr(Pr({},t),{},{lists:[...t.lists,a]})),this.setState({active:a.id,apiKeyValue:this.getApiKeyValue(t),mode:"view",nextLoading:!1,error:null}))}}),Object(a.a)(this,"handleNext",async()=>{const{app:{id:e,data:t},formId:o,onChange:i,onChangeNext:r}=this.context,{active:n}=this.state;if(this.setState({nextLoading:!0,error:null}),n!==t.usedList){const{status:a,data:l}=await Mi(Pr(Pr({},t),{},{formId:o,usedList:n}));200!==a?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(i(e,Pr(Pr({},t),l)),r())}else await Object(ue.L)(),r()}),Object(a.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0,error:null}),await Object(ue.L)(),this.context.onChangePrev()});const{data:o}=t.app;this.state={active:this.getActiveList(o),apiKeyValue:this.getApiKeyValue(o),mode:"view",error:Er("application",t.app),createLoading:!1,prevLoading:!1,nextLoading:!1}}static async onBeforeLoad(e){const{app:{id:t,data:o},onChange:i}=e;i(t,Pr(Pr({},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})=>Pr(Pr({},e),{},{[""+t]:""}),{}):[]}render(){const{app:e}=this.context,{lists:t,listProperties:o,hasConfirmation:i,accountPro:r,confirmationNeeded:n}=e.data;return"view"===this.state.mode?c.a.createElement(xt,Object(C.a)({},this.state,{lists:t,listsCreate:o,listPro:r,hasConfirmation:i,confirmationNeeded:n,onActive:this.handleActive,onConfirm:this.handleConfirm,onCreateList:this.handleCreateMode,onPrev:this.handlePrev,onNext:this.handleNext})):c.a.createElement(jr,Object(C.a)({},this.state,{listsCreate:o,onChange:this.handleKeysChange,onPrev:this.handleViewMode,onNext:this.handleCreateList}))}}Object(a.a)(_r,"contextType",me);var kr=_r;class zr extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"handleClose",()=>{this.props.onClose()})}render(){const{app:e}=this.context;return c.a.createElement(wt,Object(C.a)({},e,{onNext:this.handleClose}))}}Object(a.a)(zr,"contextType",me);var Fr=zr;function Rr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Hr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Rr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Lr={helper:e=>c.a.createElement(fr,{descriptions:Object(ae.a)("You can use these shortcodes in your email: "),fields:e})},Mr=[{name:"emailTo",title:Object(ae.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>'},Hr({name:"subject",title:Object(ae.a)("Subject")},N.g?Lr:{}),{name:"fromEmail",title:Object(ae.a)("From Email")},{name:"fromName",title:Object(ae.a)("From Name")},Hr({name:"replayTo",title:Object(ae.a)("Reply-To")},N.g?Lr:{}),{name:"cc",title:Object(ae.a)("Cc")},{name:"bcc",title:Object(ae.a)("Bcc")},{name:"metaData",title:Object(ae.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(ae.a)("Host"),required:!0},{name:"port",title:Object(ae.a)("Port"),required:!0},{name:"authentication",title:Object(ae.a)("Authentication"),type:"switch"},{name:"username",title:Object(ae.a)("Username"),required:!0},{name:"password",title:Object(ae.a)("Password"),required:!0},{name:"encryption",title:Object(ae.a)("Encryption"),type:"select",choices:[{title:"SSL",name:"ssl"},{title:"TLS",name:"tls"}]}];class Ir extends l.Component{render(){return c.a.createElement(yr,Object(C.a)({},this.props,this.context,{apiKeys:Mr}))}}Object(a.a)(Ir,"contextType",me);var Wr=Ir;function Ar(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Nr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ar(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Vr={helper:e=>c.a.createElement(fr,{descriptions:Object(ae.a)("You can use these shortcodes in your email: "),fields:e})},Dr=[{name:"emailTo",title:Object(ae.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>'},Nr({name:"subject",title:Object(ae.a)("Subject")},N.g?Vr:{}),{name:"fromEmail",title:Object(ae.a)("From Email")},{name:"fromName",title:Object(ae.a)("From Name")},Nr({name:"replayTo",title:Object(ae.a)("Reply-To")},N.g?Vr:{}),{name:"cc",title:Object(ae.a)("Cc")},{name:"bcc",title:Object(ae.a)("Bcc")},{name:"metaData",title:Object(ae.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(ae.a)("Username"),required:!0},{name:"password",title:Object(ae.a)("Password"),required:!0}];class $r extends l.Component{render(){return c.a.createElement(yr,Object(C.a)({},this.props,this.context,{apiKeys:Dr}))}}Object(a.a)($r,"contextType",me);var Gr=$r;class Ur extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"handleConfirmation",e=>{this.props.onChangeConfirmation(e.target.checked)}),Object(a.a)(this,"handleKeyDown",e=>{const{confirmed:t,onNext:o}=this.props;13===e.which&&t&&o()})}renderError(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},this.props.error)}renderValidationError(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error brz-ed-popup-recaptcha-validation-error"},c.a.createElement("p",{className:"brz-p"},Object(ae.a)("Verification process failed, please make sure you have done the following three things and try again in a few minutes.")),c.a.createElement("p",{className:"brz-p"},"1. ",Object(ae.a)("Inputted a valid site key"),". "),c.a.createElement("p",{className:"brz-p"},"2.",Object(ae.a)("Deselected the “Verify the origin of reCAPTCHA solutions” checkbox within your Google account.")),c.a.createElement("p",{className:"brz-p"},"3. ",Object(ae.a)("Established a stable internet connection"),"."))}renderItems(){const{data:e,onChange:t}=this.props;return e.map((e,o)=>{const{title:i,name:r,value:n}=e;return c.a.createElement(qe,{key:o,title:i,value:n,required:!0,onChange:e=>{t(e.target.value,r)}})})}renderDescriptions(){return c.a.createElement("div",{className:"brz-ed-popup-recaptcha__confirmation"},c.a.createElement("label",{className:"brz-label"},c.a.createElement("input",{className:"brz-input",type:"checkbox",value:this.props.confirmed,onChange:this.handleConfirmation}),'I have deselected "Verify the origins of reCAPTCHA solu-',c.a.createElement("br",{className:"brz-br"}),'tions and clicked "Save Changes" under "Key Settings >',c.a.createElement("br",{className:"brz-br"}),'Advanced Settings" in my Google reCAPTCHA page'))}render(){const{title:e,img:t,validated:o,confirmed:i,error:r,nextLoading:n,prevLoading:a,onRetry:l,onNext:s,onPrev:d}=this.props;return c.a.createElement(ct.a,{className:"brz-ed-popup-integrations-apps__scroll-pane",style:{height:"100%"}},c.a.createElement("div",{className:"brz-ed-popup-recaptcha__connect"},c.a.createElement("div",{className:"brz-ed-popup-recaptcha__container"},c.a.createElement("div",{className:"brz-ed-popup-integrations__connect-head"},c.a.createElement("img",{className:"brz-img",src:t,alt:e}),o?this.renderDescriptions():this.renderValidationError(),r&&this.renderError()),c.a.createElement("div",{className:"brz-ed-popup-integrations__connect-body"},this.renderItems(),o?c.a.createElement(Ge,{color:"teal",loading:n,disabled:!i,onClick:s},Object(ae.a)("Connect")):c.a.createElement(Ge,{color:"teal",loading:n,onClick:l},Object(ae.a)("Try Again")),c.a.createElement(Ge,{color:"default",loading:a,onClick:d},Object(ae.a)("Cancel"))))))}}Object(a.a)(Ur,"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 Kr=Ur;function qr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Yr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}async function Xr(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),i=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((r,n)=>{i.onload=()=>{const a=t.parent.grecaptcha;t.onloadRecaptchaCallback=()=>{const t=a.render(o,{sitekey:e.sitekey,size:"invisible",callback:async t=>{const{status:n}=await(({group:e,service:t,secretkey:o,sitekey:i,response:r})=>{const{api:n}=y.a.get("wp"),a=y.a.get("editorVersion"),l=ze(n.url,{action:n.addAccount,hash:n.hash,version:a,secretkey:o,response:r});return Object(ue.O)(l,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({group:e,service:t,sitekey:i,secretkey:o})}).then(Fe).then(e=>e)})(Yr(Yr({group:"recaptcha",service:"recaptcha"},e),{},{response:t}));o.remove(),i.remove(),r(200===n)},"error-callback":()=>{o.remove(),i.remove(),n(!1)}});a.reset(t),a.execute(t)}}})}(e)}catch(e){return e}}function Jr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Zr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Jr(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Jr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Qr=[{name:"sitekey",title:"Site Key"},{name:"secretkey",title:"Secret Key"}];class en extends l.Component{constructor(e,t){super(e),Object(a.a)(this,"handleChange",(e,t)=>{this.setState(({apiKeyValue:o})=>({apiKeyValue:Zr(Zr({},o),{},{[""+t]:e.trim()})}))}),Object(a.a)(this,"handleConfirmation",e=>{this.setState({confirmed:e})}),Object(a.a)(this,"handleNext",async()=>{const{app:e,onChangeNext:t}=this.context,{apiKeyValue:o}=this.state,i=Object.values(o);if(this.setState({nextLoading:!0,error:null}),i.some(e=>!e))await Object(ue.L)(),this.setState({error:"Fields are empty",nextLoading:!1});else{const{data:i}=e;if(i){const{status:e}=await Ve(i.id);200!==e&&this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")})}await Xr(o)?t():this.setState({nextLoading:!1,validated:!1})}}),Object(a.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(ue.L)(),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 Qr.reduce((e,{name:t})=>Zr(Zr({},e),{},{[""+t]:""}),{})}render(){const{apiKeyValue:e,nextLoading:t,prevLoading:o,confirmed:i,error:r,validated:n}=this.state,a=Qr.map(({title:t,name:o})=>({title:t,name:o,value:e[o]}));return c.a.createElement(Kr,Object(C.a)({},this.context.app,{data:a,validated:n,confirmed:i,nextLoading:t,prevLoading:o,error:r,onChange:this.handleChange,onChangeConfirmation:this.handleConfirmation,onNext:this.handleNext,onRetry:this.handleNext,onPrev:this.handlePrev}))}}Object(a.a)(en,"contextType",me);var tn=en;class on extends l.Component{constructor(e){super(e),Object(a.a)(this,"handleNext",async()=>{const{app:e,onChange:t,onDisconnectApp:o}=this.context;this.setState({nextLoading:!0,error:null});const{status:i}=await Ve(e.data.id);i<400?(o(e.id),t(e.id,null)):this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")})}),Object(a.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0,error:null}),await Object(ue.L)(),this.context.onChangePrev("appList")}),this.state={nextLoading:!1,prevLoading:!1,error:null}}render(){const{nextLoading:e,prevLoading:t,error:o}=this.state;return c.a.createElement(Ze,Object(C.a)({},this.context.app,{descriptions:Object(ae.a)("Are you want to delete account")+" ?",nextLoading:e,prevLoading:t,error:o,onPrev:this.handlePrev,onNext:this.handleNext}))}}Object(a.a)(on,"contextType",me);var rn=on;class nn extends Ht{}Object(a.a)(nn,"fields",Br),Object(a.a)(nn,"done",Fr);var an=nn;class ln extends Ht{}Object(a.a)(ln,"fields",Br),Object(a.a)(ln,"done",Fr);var cn=ln;class sn extends Ht{}Object(a.a)(sn,"connect",Vi),Object(a.a)(sn,"account",Ui),Object(a.a)(sn,"fields",er),Object(a.a)(sn,"list",kr),Object(a.a)(sn,"done",Fr);var dn=sn;class pn extends Ht{}Object(a.a)(pn,"connect",Vi),Object(a.a)(pn,"account",Ui),Object(a.a)(pn,"client",Xi),Object(a.a)(pn,"fields",er),Object(a.a)(pn,"list",kr),Object(a.a)(pn,"done",Fr);var un=pn;class bn extends Ht{}Object(a.a)(bn,"connect",Vi),Object(a.a)(bn,"account",Ui),Object(a.a)(bn,"fields",rr),Object(a.a)(bn,"done",Fr);var mn=bn;class hn extends Ht{}Object(a.a)(hn,"connect",Vi),Object(a.a)(hn,"account",Ui),Object(a.a)(hn,"client",Xi),Object(a.a)(hn,"fields",er),Object(a.a)(hn,"list",kr),Object(a.a)(hn,"done",Fr);var gn=hn;class vn extends Ht{}Object(a.a)(vn,"connect",Vi),Object(a.a)(vn,"account",Ui),Object(a.a)(vn,"fields",er),Object(a.a)(vn,"list",kr),Object(a.a)(vn,"done",Fr);var yn=vn;class fn extends Ht{}Object(a.a)(fn,"connect",Vi),Object(a.a)(fn,"account",Ui),Object(a.a)(fn,"fields",er),Object(a.a)(fn,"list",kr),Object(a.a)(fn,"done",Fr);var Sn=fn;class On extends Ht{}Object(a.a)(On,"connect",Vi),Object(a.a)(On,"account",Ui),Object(a.a)(On,"fields",er),Object(a.a)(On,"list",kr),Object(a.a)(On,"done",Fr);var xn=On;class Cn extends Ht{}Object(a.a)(Cn,"connect",Vi),Object(a.a)(Cn,"account",Ui),Object(a.a)(Cn,"fields",er),Object(a.a)(Cn,"list",kr),Object(a.a)(Cn,"done",Fr);var wn=Cn;class Bn extends Ht{}Object(a.a)(Bn,"connect",Vi),Object(a.a)(Bn,"account",Ui),Object(a.a)(Bn,"fields",er),Object(a.a)(Bn,"list",kr),Object(a.a)(Bn,"done",Fr);var jn=Bn;class Tn extends Ht{}Object(a.a)(Tn,"connect",Vi),Object(a.a)(Tn,"account",Ui),Object(a.a)(Tn,"list",kr),Object(a.a)(Tn,"fields",er),Object(a.a)(Tn,"done",Fr);var Pn=Tn;class En extends Ht{}Object(a.a)(En,"connect",Vi),Object(a.a)(En,"account",Ui),Object(a.a)(En,"fields",er),Object(a.a)(En,"list",kr),Object(a.a)(En,"done",Fr);var _n=En;class kn extends Ht{}Object(a.a)(kn,"connect",Vi),Object(a.a)(kn,"account",Ui),Object(a.a)(kn,"fields",er),Object(a.a)(kn,"done",Fr);var zn=kn;class Fn extends Ht{}Object(a.a)(Fn,"fields",Wr),Object(a.a)(Fn,"done",Fr);var Rn=Fn;class Hn extends Ht{}Object(a.a)(Hn,"fields",Gr),Object(a.a)(Hn,"done",Fr);var Ln=Hn;class Mn extends Ht{}Object(a.a)(Mn,"connect",Vi),Object(a.a)(Mn,"account",Ui),Object(a.a)(Mn,"fields",er),Object(a.a)(Mn,"list",kr),Object(a.a)(Mn,"done",Fr);var In=Mn;class Wn extends Ht{}Object(a.a)(Wn,"connect",Vi),Object(a.a)(Wn,"account",Ui),Object(a.a)(Wn,"list",kr),Object(a.a)(Wn,"fields",er),Object(a.a)(Wn,"done",Fr);var An=Wn;class Nn extends Ht{}Object(a.a)(Nn,"connect",Vi),Object(a.a)(Nn,"account",Ui),Object(a.a)(Nn,"fields",er),Object(a.a)(Nn,"list",kr),Object(a.a)(Nn,"done",Fr);var Vn=Nn;class Dn extends Ht{}Object(a.a)(Dn,"connect",Vi),Object(a.a)(Dn,"account",Ui),Object(a.a)(Dn,"fields",er),Object(a.a)(Dn,"list",kr),Object(a.a)(Dn,"done",Fr);var $n=Dn;class Gn extends Ht{}Object(a.a)(Gn,"connect",Vi),Object(a.a)(Gn,"account",Ui),Object(a.a)(Gn,"fields",er),Object(a.a)(Gn,"list",kr),Object(a.a)(Gn,"done",Fr);var Un=Gn;class Kn extends Ht{}Object(a.a)(Kn,"connect",Vi),Object(a.a)(Kn,"account",Ui),Object(a.a)(Kn,"fields",er),Object(a.a)(Kn,"list",kr),Object(a.a)(Kn,"done",Fr);var qn=Kn;class Yn extends Ht{}Object(a.a)(Yn,"connect",tn),Object(a.a)(Yn,"done",Fr),Object(a.a)(Yn,"disconnect",rn);var Xn=Yn;function Jn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Zn(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(a.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}const Qn=y.a.get("pro");var ea=class extends Ee{constructor(...e){super(...e),Object(a.a)(this,"appsData",[]),Object(a.a)(this,"appsComponent",r),Object(a.a)(this,"proExceptions",!Qn),Object(a.a)(this,"handleConnectApp",async e=>{const{id:t,stages:o}=e,{formId:i}=this.props;let{status:r,data:n}=await Hi({formId:i,id:t});if(200!==r){if(404!==r)return void this.setState({appError:Object(ae.a)("The integration is not responding, please try again or verify the account credentials")});if(({status:r,data:n}=await Li({formId:i,id:t})),200!==r)return void this.setState({appError:Object(ae.a)("The integration is not responding, please try again or verify the account credentials")})}this.setState(Object(s.a)(i=>{i.appError=null,i.stages=o,i.connectedApp=t,i.data[t]=e,i.data[t].data=n}),()=>{this.handleNext()})})}async componentDidMount(){const e=Object(pe.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 Fi({formId:e});if(200!==t)if(404===t){const{status:t}=await Ri({formId:e});t>=400?this.setState({error:Object(ae.a)("Something went wrong")}):this.setState({loading:!1})}else this.setState({error:Object(ae.a)("Something went wrong")});else o&&this.setState({connectedApps:this.getConnectedApps(o.integrations),loading:!1})}getContextValue(){const{formId:e,formFields:t}=this.props;return Zn(Zn({},super.getContextValue()),{},{formId:e,formFields:t})}},ta=o(309);function oa(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ia(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):oa(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var ra=class extends Ee{constructor(...e){super(...e),Object(a.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}),Object(a.a)(this,"appsData",[]),Object(a.a)(this,"appsComponent",r),Object(a.a)(this,"proExceptions",!N.g),Object(a.a)(this,"updateForm",v.default.debounce(()=>{(({formId:e,hasEmailTemplate:t,emailTemplate:o})=>{const{api:i}=y.a.get("wp"),r=y.a.get("editorVersion"),n=ze(i.url,{formId:e,action:i.updateForm,hash:i.hash,version:r});Object(ue.O)(n,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({hasEmailTemplate:t,emailTemplate:o})}).then(Fe).then(e=>e)})({formId:this.props.formId,hasEmailTemplate:this.state.hasEmailTemplate,emailTemplate:this.state.emailTemplate})},1e3)),Object(a.a)(this,"handleConnectApp",async e=>{const t=e.id,{formId:o}=this.props,{stages:i=[]}=this.appsData.find(e=>e.id===t)||{};let{status:r,data:n}=await((...e)=>Hi(...e))({formId:o,id:t});if(200!==r){if(404!==r)return void this.setState({error:Object(ae.a)("Something went wrong")});{const{status:e,data:i}=await((...e)=>Li(...e))({formId:o,id:t});if(200!==e)return void this.setState({error:Object(ae.a)("Something went wrong")});n=i}}this.setState(Object(s.a)(o=>{o.stages=i,o.connectedApp=t,o.data[t]=Object.assign(e,{data:n})}),()=>{this.handleNext()})}),Object(a.a)(this,"handleHtmlChange",e=>{this.setState({emailTemplate:e},this.updateForm)}),Object(a.a)(this,"handleEnableHtml",e=>{this.setState({hasEmailTemplate:e}),!1===e&&this.state.emailTemplate&&this.setState({emailTemplate:""},this.updateForm)})}async componentDidMount(){const e=Object(pe.a)("integrations.json"),t=await fetch(e),o=await t.json();N.l?this.appsData=o.wpEmail:this.appsData=o.cloudEmail,await this.getData()}async getData(){const{formId:e,onLoading:t}=this.props,{status:o,data:i}=await Fi({formId:e});if(200!==o)if(404===o){const{status:t,data:o}=await Ri({formId:e});t>=400||!o?this.setState({error:Object(ae.a)("Something went wrong")}):this.setState({connectedApps:this.getConnectedApps(o.integrations),loading:!1})}else this.setState({error:Object(ae.a)("Something went wrong")});else i&&this.setState({connectedApps:this.getConnectedApps(i.integrations),emailTemplate:i.emailTemplate||"",hasEmailTemplate:i.hasEmailTemplate,loading:!1});t(!1)}getContextValue(){const{formId:e,formFields:t}=this.props;return ia(ia({},super.getContextValue()),{},{formId:e,formFields:t})}renderFormInfo(){return c.a.createElement("div",{className:"brz-ed-popup-integration-email__info"},c.a.createElement(fr,{fields:this.props.formFields}))}renderApps(){const{error:e,emailTemplate:t,hasEmailTemplate:o}=this.state,i=g()("brz-ed-popup-integration-email__template",{"brz-ed-popup-integration-email__template--open":o});return c.a.createElement(c.a.Fragment,null,e&&super.renderError(),c.a.createElement(Te,{apps:this.appsData,proExceptions:this.proExceptions}),!this.proExceptions&&c.a.createElement("div",{className:i},c.a.createElement("div",{className:"brz-ed-popup-integration-email__template-head"},c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},Object(ae.a)("USE CUSTOM TEMPLATE"))),c.a.createElement(et.a,{className:"brz-ed-control__switch--light",defaultValue:o,onChange:this.handleEnableHtml})),c.a.createElement("div",{className:"brz-ed-popup-integration-email__template-body"},c.a.createElement(ta.a,{className:"brz-ed-popup-integration-email__codemirror",value:t,onChange:this.handleHtmlChange,language:"xml",theme:"idea"}),c.a.createElement("div",{className:"brz-d-xs-flex brz-align-items-xs-center"},c.a.createElement("p",{className:"brz-p"},Object(ae.a)("Tip: Use these shortcodes to populate your template")),c.a.createElement(Oe.c,{className:"brz-ed-popup-integration-email__tooltip",size:"small",openOnClick:!1,closeDelay:600,overlay:this.renderFormInfo()},c.a.createElement(F.b,{icon:"nc-alert-circle-que"}))))))}};function na(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function aa(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?na(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):na(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var la=class extends Ee{constructor(...e){super(...e),Object(a.a)(this,"appsData",[]),Object(a.a)(this,"appsComponent",r),Object(a.a)(this,"handleConnectApp",async e=>{const t=e.id;await Object(ue.L)(),this.setState(Object(s.a)(o=>{const i=o.data[t]||{};o.connectedApp=t,o.stages=e.stages,o.data[t]=aa(aa({},i),e)}),()=>{this.handleNext()})})}async componentDidMount(){const e=Object(pe.a)("integrations.json"),t=await fetch(e),{recaptcha:o}=await t.json(),{status:i,data:r}=await Ne({group:"recaptcha",services:"recaptcha"});this.appsData=o,200===i&&r&&r.length>0?this.setState(Object(s.a)(e=>{e.data={recaptcha:{data:r[0]}},e.connectedApps=this.getConnectedApps(r),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 ca=[{id:"email",title:Object(ae.a)("Email"),icon:"nc-email",component:ra},{id:"service",title:Object(ae.a)("APPS"),icon:"nc-extensions-2",component:ea},{id:"recaptcha",title:Object(ae.a)("ReCAPTCHA"),icon:"nc-captcha",component:la}];class sa extends l.Component{render(){const{formId:e,formFields:t,opened:o,onClose:i}=this.props;return c.a.createElement(de,{currentTab:"email",formId:e,formFields:t,opened:o,tabs:ca,onClose:i})}}Object(a.a)(sa,"defaultProps",{formId:"",formFields:[],opened:!1,onClose:v.default.noop});var da=sa,pa=o(84);class ua extends l.Component{render(){const{opened:e,onClose:t}=this.props,o="MacOS"===Object(pa.a)(),i=o?`${Object(pe.a)("editor/img/mac-keyboard1x.png")} 1x , ${Object(pe.a)("editor/img/mac-keyboard2x.png")} 2x`:`${Object(pe.a)("editor/img/pc-keyboard1x.png")} 1x , ${Object(pe.a)("editor/img/pc-keyboard2x.png")} 2x`;return c.a.createElement(f.a,{id:"key-helper",className:"brz-ed-hotkeys-overlay",opened:e,onClose:t},c.a.createElement("div",{className:"brz-ed-hotkeys-wrapper"},c.a.createElement(F.b,{icon:"nc-close-popup",className:"brz-ed-hotkeys-btn-close",onClick:t}),c.a.createElement("div",{className:"brz-ed-hotkeys-label"},Object(ae.a)("Keyboard Shortcuts")),c.a.createElement("div",{className:"brz-ed-hotkeys-image-container"},c.a.createElement("picture",null,c.a.createElement("img",{className:"brz-ed-hotkeys-image",srcSet:i}))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container"},c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column"},c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + C":"Ctrl + C"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Copy"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + V":"Ctrl + V"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Paste"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + shift + V":"Ctrl + Shift + V"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Paste Style"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + D":"Ctrl + D"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Duplicate"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + delete":"Delete"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Delete"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd +":"Ctrl +",c.a.createElement(F.b,{className:"brz-ed-hotkeys-icons",icon:"nc-arrow"}),c.a.createElement("span",{className:"divider"}," / "),c.a.createElement(F.b,{className:"brz-ed-hotkeys-icons brz-ed-deg180",icon:"nc-arrow"})),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Horizontal Align"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd +":"Ctrl +",c.a.createElement(F.b,{className:"brz-ed-hotkeys-icons brz-ed-deg90",icon:"nc-arrow"}),c.a.createElement("span",{className:"divider"}," / "),c.a.createElement(F.b,{className:"brz-ed-hotkeys-icons brz-ed-deg270",icon:"nc-arrow"})),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Vertical Align"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"esc":"Esc"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Select Parent Element")))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column"},c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + Z":"Ctrl + Z"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Undo"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + shift + Z":"Ctrl + Shift + Z"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Redo"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + S":"Ctrl + S"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Save Draft / Update Page"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd +":"Ctrl +",c.a.createElement(F.b,{className:"brz-ed-hotkeys-icons",icon:"nc-plus2"}),c.a.createElement("span",{className:"divider"}," / "),c.a.createElement(F.b,{className:"brz-ed-hotkeys-icons",icon:"nc-minus"})),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Responsive Zoom In / Out"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd +":"Ctrl +",c.a.createElement(F.b,{className:"brz-ed-hotkeys-icons",icon:"nc-alert-circle-que"})),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Shortcuts"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + shift + A":"Ctrl + Shift + A"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Add New Block / Layout"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + M":"Ctrl + M"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Styling"))),c.a.createElement("div",{className:"brz-ed-hotkeys-combination-container-column-list"},c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label"},o?"cmd + K":"Ctrl + K"),c.a.createElement("span",{className:"brz-ed-hotkeys-combination-container-column-label-2"},Object(ae.a)("Effects")))))))}}Object(a.a)(ua,"defaultProps",{opened:!1,onClose:v.noop});function ba(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ma(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ba(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const ha=(e,t)=>{const o=e.family.toUpperCase(),i=t.family.toUpperCase();return o<i?-1:o>i?1:0};function ga(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function va(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ga(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class ya extends l.Component{constructor(e){super(e),Object(a.a)(this,"handleAddNewFont",(e,t)=>{this.setState({selectedFont:t})}),Object(a.a)(this,"handleNext",async()=>{const{selectedFont:e}=this.state,{app:{data:{fonts:t}},onChangeNext:o}=this.context,i=t.find(({family:t})=>t===e);if(this.setState({nextLoading:!0,error:null}),await Object(ue.L)(),i){const e=Object(Ao.i)(this.props.fonts,Object(Ao.g)(i).id);e?this.props.addFonts([{type:e.group,fonts:[va(va({},e.font),{},{deleted:!1})]}]):this.props.addFonts([{type:"google",fonts:[i]}]),o()}else this.setState({error:`Font ${e} not found, please try again`,nextLoading:!1})}),Object(a.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(ue.L)(),this.context.onChangePrev()});const{config:t,blocks:o={},google:i={}}=this.props.fonts;this.usedFonts=[...t.data||[],...i.data||[],...o.data||[]],this.state={selectedFont:"",nextLoading:!1,prevLoading:!1,error:null}}static async onBeforeLoad(e){const{app:{id:t,data:o},onChange:i}=e,r=await Object(Ao.h)();i(t,va(va({},o),{},{fonts:r}))}render(){const{app:e}=this.context,{selectedFont:t,prevLoading:o,nextLoading:i,error:r}=this.state,n=e.data.fonts.filter(e=>{const{id:t}=Object(Ao.g)(e);return!this.usedFonts.some(e=>{const{id:o,deleted:i}=Object(Ao.g)(e);return!0!==i&&o===t})}).map(e=>({value:e.family,label:e.family})),a=[{title:Object(ae.a)("Font name"),type:"search",choices:n,value:t}],s=c.a.createElement(l.Fragment,null,Object(ae.a)("Tip: You can browse the Google font library")," ",c.a.createElement("a",{className:"brz-a",href:"https://fonts.google.com",target:"_blank",rel:"noopener noreferrer"},Object(ae.a)("here")),".");return c.a.createElement(yt,Object(C.a)({},e,{data:a,headTitle:Object(ae.a)("ADD GOOGLE FONT"),description:s,prevLoading:o,nextLoading:i,error:r,onActive:this.handleAddNewFont,onPrev:this.handlePrev,onNext:this.handleNext}))}}Object(a.a)(ya,"contextType",me);const fa={addFonts:Qo.n};var Sa=Object(io.b)(e=>({fonts:Object(co.o)(e)}),fa)(ya);class Oa extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"handleClose",()=>{this.props.onClose()})}render(){const{app:e}=this.context;return c.a.createElement(wt,Object(C.a)({},e,{onNext:this.handleClose}))}}Object(a.a)(Oa,"contextType",me);var xa=Oa;class Ca extends Ht{}Object(a.a)(Ca,"connect",Sa),Object(a.a)(Ca,"done",xa);var wa=Ca;function Ba(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ja(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ba(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Ta extends l.Component{constructor(e){super(e),Object(a.a)(this,"handleChange",(e,t)=>{t.length<=17&&this.setState({fontName:t})}),Object(a.a)(this,"handleNext",async()=>{const{fontName:e}=this.state,{app:{id:t,data:o={}},onChange:i,onChangeNext:r}=this.context;this.setState({nextLoading:!0}),await Object(ue.L)(),e.trim()?(i(t,ja(ja({},o),{},{fontName:e})),r()):this.setState({nextLoading:!1,error:Object(ae.a)("Font Name is Required")})}),Object(a.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(ue.L)(),this.context.onChangePrev()}),this.state={fontName:"",nextLoading:!1,prevLoading:!1,error:null}}render(){const{app:e}=this.context,{fontName:t,prevLoading:o,nextLoading:i,error:r}=this.state,n=[{title:Object(ae.a)("Font name"),value:t}];return c.a.createElement(yt,Object(C.a)({},e,{headTitle:Object(ae.a)("UPLOAD FONT"),data:n,error:r,prevLoading:o,nextLoading:i,onActive:this.handleChange,onNext:this.handleNext,onPrev:this.handlePrev}))}}Object(a.a)(Ta,"contextType",me);var Pa=Ta,Ea=o(62);class _a extends l.Component{renderError(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},c.a.createElement("span",{className:"brz-span"},this.props.error))}renderSelect({name:e,value:t,choices:o}){const i=o.map(({title:e,name:t})=>c.a.createElement(O.a,{key:t,value:t},e));return c.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-select"},c.a.createElement(S.a,{className:"brz-control__select--white",maxItems:"6",itemHeight:"30",inPortal:!0,defaultValue:t,onChange:t=>{this.props.onActive(e,t)}},i))}renderUpload({name:e,value:t,accept:o}){return c.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-upload"},t?c.a.createElement(l.Fragment,null,c.a.createElement("span",{className:"brz-span"},t.name),c.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(ae.a)("DELETE")," ")):c.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},c.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(ae.a)("UPLOAD")))}renderOptions(){const e=this.props.data.map((e,t)=>{const{title:o,type:i,helper:r}=e;return c.a.createElement("div",{key:t,className:"brz-ed-popup-integrations-step__fields-option"},c.a.createElement("div",{className:"brz-d-xs-flex brz-align-items-xs-center"},c.a.createElement("p",{className:"brz-p"},o),r&&c.a.createElement(Oe.c,{className:"brz-ed-popup-integrations-fields__tooltip",openOnClick:!1,inPortal:!0,overlay:c.a.createElement("div",{className:"brz-ed-popup-integrations-fields__info",dangerouslySetInnerHTML:{__html:r}})},c.a.createElement(F.b,{icon:"nc-alert-circle-que"}))),"select"===i&&this.renderSelect(e),"upload"===i&&this.renderUpload(e))});return c.a.createElement(ct.a,{style:{maxHeight:255},className:"brz-ed-popup-integrations__scroll-pane"},e)}render(){const{error:e,prevLoading:t,nextLoading:o,onPrev:i,onNext:r}=this.props;return c.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__fields"},e&&this.renderError(),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},Object(ae.a)("ADD FONT VARIATION")))),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},this.renderOptions(),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==t&&c.a.createElement(Ge,{size:3,leftIcon:"nc-arrow-left",loading:t,onClick:i},Object(ae.a)("Back")),null!==o&&c.a.createElement(Ge,{color:"teal",loading:o,onClick:r},Object(ae.a)("Add Font")))))}}Object(a.a)(_a,"defaultProps",{data:[{title:"",value:"",name:"",helper:null}],nextLoading:null,prevLoading:null,onPrev:v.default.noop,onNext:v.default.noop,onActive:v.default.noop});var ka=_a;class za extends l.Component{renderError(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-error"},c.a.createElement("span",{className:"brz-span"},this.props.error))}renderOptions(){const{data:e,onActive:t}=this.props,o=e.map((e,o)=>{const{id:i,title:r,type:n}=e;return c.a.createElement("div",{key:o,className:"brz-ed-popup-integrations-step__fields-option brz-ed-popup-integrations-step__fields-option--big"},c.a.createElement("p",{className:"brz-p brz-ed-popup-integration__font-name"},r),c.a.createElement("p",{className:"brz-p",style:{fontWeight:i,flexBasis:"60%"}},n),c.a.createElement("div",{title:"Disconnect",className:"brz-ed-popup-integrations--delete",onClick:()=>{t(i)}},c.a.createElement(F.b,{icon:"nc-trash"})))});return c.a.createElement(ct.a,{style:{maxHeight:255},className:"brz-ed-popup-integrations__scroll-pane"},o)}render(){const{error:e,prevLoading:t,nextLoading:o,createLoading:i,onPrev:r,onNext:n,onCreate:a}=this.props;return c.a.createElement("div",{className:"brz-ed-popup-integrations-step brz-ed-popup-integrations-step__fields"},e&&this.renderError(),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__head"},c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},Object(ae.a)("FONT VARIATION")))),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__body"},this.renderOptions(),c.a.createElement("div",{className:"brz-ed-popup-integrations-new__option",onClick:a},c.a.createElement(F.b,{icon:i?"nc-circle-02":"nc-add",className:i?"brz-ed-animated--spin":""}),Object(ae.a)("Add new font variation")),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__buttons"},null!==t&&c.a.createElement(Ge,{size:3,leftIcon:"nc-arrow-left",loading:t,onClick:r},Object(ae.a)("Back")),null!==o&&c.a.createElement(Ge,{color:"teal",loading:o,onClick:n},Object(ae.a)("Continue")))))}}Object(a.a)(za,"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 Fa=za;function Ra(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Ha(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(a.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}const La=v.default.memoize(e=>Object.entries(e).map(([e,t])=>({title:t,name:e})));class Ma extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{mode:"add",keyValue:this.getDefaultData(),nextLoading:!1,prevLoading:!1,addLoading:!1,error:null}),Object(a.a)(this,"handleChangeAddMode",async()=>{this.setState({addLoading:!0}),await Object(ue.L)(),this.setState({mode:"add",addLoading:!1})}),Object(a.a)(this,"handleUploadFonts",(e,t)=>{this.setState(({keyValue:o})=>({error:null,keyValue:Ha(Ha({},o),{},{[""+e]:t})}))}),Object(a.a)(this,"handleAddFonts",async()=>{const{app:{id:e,data:t},onChange:o}=this.context,i=this.state.keyValue,{weight:r}=i,n=Object(x.a)(i,["weight"]);if(this.setState({nextLoading:!0,error:null}),await Object(ue.L)(),!Object.values(n).some(e=>Boolean(e)))return void this.setState({nextLoading:!1,error:Object(ae.a)("You must be have one font added")});let a=new Set([...t.weights||[],Number(r)]);o(e,Object.assign({},t,{weights:[...a],files:Ha(Ha({},t.files||[]),{},{[r]:n})})),this.setState({mode:"edit",keyValue:this.getDefaultData(),nextLoading:!1})}),Object(a.a)(this,"handleRemoveFonts",e=>{const{app:{id:t,data:o},onChange:i}=this.context;i(t,Object.assign({},o,{weights:v.default.without(o.weights,e),files:v.default.omit(o.files,e)}))}),Object(a.a)(this,"handleNext",async()=>{const{app:{data:{files:e,fontName:t}},onChangeNext:o}=this.context;this.setState({nextLoading:!0});const{status:i,data:r}=await(({id:e,name:t,files:o})=>{const{api:i}=y.a.get("wp"),r=y.a.get("editorVersion"),n=ze(i.url,{action:i.createFont,hash:i.hash,version:r}),a=new FormData;return a.append("id",e),a.append("family",t),Object.entries(o).forEach(([e,t])=>{Object.entries(t).forEach(([t,o])=>{o&&a.append(`fonts[${e}][${t}]`,o,o.name)})}),Object(ue.O)(n,{method:"POST",body:a}).then(Fe).then(e=>e)})({id:Object(Ea.a)(),name:t,files:e});200!==i?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(this.props.dispatch(Object(Qo.n)([{type:"upload",fonts:[r]}])),o())}),Object(a.a)(this,"handlePrev",async()=>{this.setState({prevLoading:!0}),await Object(ue.L)(),this.context.onChangePrev()})}getDefaultData(){return{weight:"400",ttf:"",eot:"",woff:"",woff2:""}}getAddData(){const{weight:e,ttf:t,eot:o,woff:i,woff2:r}=this.state.keyValue;return[{title:Object(ae.a)("Font weight"),name:"weight",type:"select",value:e,choices:La(Ao.w)},{title:Object(ae.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(ae.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(ae.a)("WOFF File"),name:"woff",value:i,type:"upload",accept:".woff",helper:"The Web Open Font Format (WOFF) is a format used in web pages by modern browsers."},{title:Object(ae.a)("WOFF2 File"),name:"woff2",value:r,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:Ao.w[t]}))}render(){const{mode:e,nextLoading:t,prevLoading:o,addLoading:i,error:r}=this.state;return"add"===e?c.a.createElement(ka,{data:this.getAddData(),error:r,nextLoading:t,prevLoading:o,onNext:this.handleAddFonts,onPrev:this.handlePrev,onActive:this.handleUploadFonts}):c.a.createElement(Fa,{data:this.getEditData(),error:r,nextLoading:t,prevLoading:o,createLoading:i,onNext:this.handleNext,onPrev:this.handlePrev,onCreate:this.handleChangeAddMode,onActive:this.handleRemoveFonts})}}Object(a.a)(Ma,"contextType",me);var Ia=Object(io.b)()(Ma);class Wa extends Ht{}Object(a.a)(Wa,"upload",Pa),Object(a.a)(Wa,"variation",Ia),Object(a.a)(Wa,"done",xa);var Aa=Wa;const Na=y.a.get("pro");var Va=class extends Ee{constructor(...e){super(...e),Object(a.a)(this,"appsData",[]),Object(a.a)(this,"appsComponent",n),Object(a.a)(this,"proExceptions",!Na),Object(a.a)(this,"handleConnectApp",async e=>{const t=e.id,{stages:o=[]}=this.appsData.find(e=>e.id===t)||{};await Object(ue.L)(),this.setState(Object(s.a)(i=>{i.stages=o,i.connectedApp=t,i.data[t]=e}),()=>{this.handleNext()})})}async componentDidMount(){const e=Object(pe.a)("integrations.json"),t=await fetch(e),{fonts:o}=await t.json();this.appsData=o,this.setState({loading:!1})}};const Da=[{id:"upload",title:Object(ae.a)("Add New"),icon:"nc-add",component:Va},{id:"fonts",title:Object(ae.a)("Fonts"),icon:"nc-font",component:()=>{const[e,t]=Object(l.useState)(""),o=Object(io.d)(co.S),i=Object(io.d)(co.j),r=Object(io.c)(),n=Object(l.useCallback)(e=>{r(Object(Qo.I)(e))},[]),a=Object(l.useCallback)(async(e,o)=>{t(o.brizyId),"upload"===e?await(e=>{const{api:t}=y.a.get("wp"),o=y.a.get("editorVersion"),i=ze(t.url,{action:t.deleteFont,hash:t.hash,version:o,id:e});return Object(ue.O)(i,{method:"POST"}).then(Fe).then(e=>e)})(o.id):await Object(ue.L)(),t(""),r(Object(Qo.p)({type:e,fonts:[o]}))},[]),s=Object(l.useMemo)(()=>(e=>Object.entries(e).map(([e,t])=>{const{data:o=[]}=null!=t?t:{data:[]};return o.map(t=>ma(ma({},t),{},{fontGroupType:e}))}).reduce((e,t)=>e.concat(t),[]).sort(ha))(o),[o]);return c.a.createElement(j.a,null,c.a.createElement("div",{className:"brz-ed-popup-fonts__lists brz-d-xs-flex brz-flex-xs-wrap"},s.map(t=>{let{fontGroupType:o}=t,r=Object(x.a)(t,["fontGroupType"]);const{id:l,brizyId:s,title:d,family:p}=Ao.b[o](r),u=i===l,b=e===s,m=g()("brz-ed-popup-fonts__item",u&&"brz-ed-popup-fonts__item--selected");return c.a.createElement("div",{key:s,className:m},c.a.createElement("div",{className:"brz-ed-popup-fonts__item-logo",style:{fontFamily:p},onClick:()=>{n(l)}},"Aa",!u&&!b&&c.a.createElement("div",{className:"brz-ed-badge__delete brz-ed-popup-fonts__delete",onClick:e=>{e.stopPropagation(),a(o,r)}},c.a.createElement(F.b,{icon:"nc-trash"}))),c.a.createElement("div",{className:"brz-ed-popup-fonts__item-title"},d),b&&c.a.createElement("span",{className:"brz-span brz-ed-popup-integrations__app-icon"},c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"})),u&&!b&&c.a.createElement("span",{title:Object(ae.a)("Default font (can’t be deleted)"),className:"brz-span brz-ed-popup-integrations__app-icon"},c.a.createElement(F.b,{icon:"nc-check-small"})))})))}}];class $a extends l.Component{render(){const{opened:e,onClose:t}=this.props;return c.a.createElement(de,{opened:e,tabs:Da,currentTab:"upload",blockTabsWhenLoading:!1,onClose:t})}}Object(a.a)($a,"defaultProps",{opened:!1,onClose:v.noop});var Ga=$a,Ua=o(136),Ka=o(82),qa=o(127);var Ya=e=>c.a.createElement("div",{className:"brz-ed-popup-conditions__buttons"},c.a.createElement("button",{className:"brz-button brz-button__cancel",onClick:e.onClose},Object(ae.a)("Cancel")),c.a.createElement("button",{className:"brz-button brz-button__save",onClick:e.onChange},e.loading?c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}):Object(ae.a)("Save")));function Xa({showTypeButton:e=!0,active:t,children:o,onChange:i,onRemove:r}){const n=t?"include":"exclude",a=t?c.a.createElement(F.b,{icon:"nc-include"}):c.a.createElement(F.b,{icon:"nc-none"}),l=g()("brz-ed-popup-conditions__type","brz-ed-popup-conditions__type-"+n);return c.a.createElement("div",{className:"brz-ed-popup-conditions__condition brz-d-xs-flex"},e&&c.a.createElement("div",{className:l,onClick:()=>i({active:!t})},c.a.createElement("span",{className:"brz-ed-popup-conditions__type-text"},a,Object(Gt.c)(n))),c.a.createElement("div",{className:"brz-ed-popup-conditions__select brz-d-xs-flex"},o),c.a.createElement("div",{className:"brz-ed-popup-conditions__remove",onClick:r},c.a.createElement(F.b,{icon:"nc-trash"})))}var Ja=o(152);const Za=({status:e})=>{const t=g()("brz-badge",{["brz-badge__"+e]:e});return c.a.createElement("div",{title:e,className:t})};function Qa(e,{appliedFor:t,entityType:o}){return e.findIndex(({groupValue:e,value:i})=>e===t&&i===o)}function el(e,t){if(0===t.length)return t;let o=t;return e.forEach(e=>{if(!Object(No.k)(e))return;const i=Qa(t,e);if(-1!==i)if(e.appliedFor!==Ka.e&&e.appliedFor!==Ka.a)o=Object(tt.setIn)(o,[i,"disabled"],!0);else{const{items:t}=o[i];if(t&&e.entityValues.length){const r=t.findIndex(({value:t})=>e.entityValues.includes(t));-1!==r&&(o=Object(tt.setIn)(o,[i,"items",r,"disabled"],!0))}}}),o}function tl(e){const t=new Map;return e.forEach(e=>{let o=null;if(Object(No.j)(e)&&(o="type|"+e.type),Object(No.l)(e)&&(o=`type|${e.type};appliedFor|${e.appliedFor};entityType|${e.entityType}`),Object(No.k)(e)&&(o=`type|${e.type};appliedFor|${e.appliedFor};entityType|${e.entityType};entityValues|${e.entityValues.join(",")}`),null===o)throw new Error("Smth. went wrong. Rule can be one of type or all|collectionType|collectionItem");t.set(o,e)}),[...t.values()]}class ol extends c.a.Component{renderGroupOptions(e){return[c.a.createElement(O.a,{key:"all",value:null},"All"),...e.map(({title:e,value:t,groupValue:o,disabled:i})=>c.a.createElement(O.a,{key:"key-"+t,value:`${o}|||${t}`,disabled:i},e))]}renderTypeOptions(e){return[c.a.createElement(O.a,{key:"all",value:null},"All"),...e.map(e=>(e=>void 0!==e.items)(e)?c.a.createElement(Ja.a,{key:e.value,title:e.title,items:e.items.map(({value:t,title:o})=>c.a.createElement(O.a,{key:e.value,value:`${e.mode}|||${t}`},o,e.status&&c.a.createElement(Za,{status:e.status})))},c.a.createElement("span",{className:"brz-span"},e.title)):c.a.createElement(O.a,{key:e.value,value:"specific|||"+e.value},e.title,e.status&&c.a.createElement(Za,{status:e.status})))]}render(){const{rulesList:e,rule:t,onGroupChange:o,onTypeChange:i}=this.props;let r=null,n=null;if(Object(No.k)(t)||Object(No.l)(t)){r=e[Qa(e,t)],n=`${t.appliedFor}|||${t.entityType}`}return c.a.createElement("div",{className:"brz-ed-popup-conditions__select brz-d-xs-flex"},c.a.createElement(S.a,{className:"brz-control__select--white",maxItems:6,itemHeight:30,defaultValue:n,inPortal:!0,onChange:o},this.renderGroupOptions(e)),r&&r.items&&c.a.createElement(S.a,{defaultValue:Object(No.k)(t)?`${t.mode}|||${t.entityValues[0]}`:null,className:"brz-control__select--white",maxItems:6,itemHeight:30,inPortal:!0,onChange:i},this.renderTypeOptions(r.items)))}}var il=ol;class rl extends c.a.Component{constructor(...e){super(...e),Object(a.a)(this,"handleRemove",e=>{this.props.onChange(Object(tt.removeAt)(this.props.rules,e))}),Object(a.a)(this,"handleVisibilityTypeChange",(e,t)=>{const{rules:o,onChange:i}=this.props,r=t?Ua.a.include:Ua.a.exclude;i(Object(tt.setIn)(o,[e,"type"],r))}),Object(a.a)(this,"handleGroupChange",(e,t)=>{const{rules:o,onChange:i}=this.props;let r;if(null===e)r={type:o[t].type};else{const[i,n]=e.split("|||");r={type:o[t].type,entityType:n,appliedFor:""===i||null===i?null:Number(i)}}i(Object(tt.setIn)(o,[t],r))}),Object(a.a)(this,"handleTypeChange",(e,t)=>{const{rules:o,onChange:i}=this.props;let r;if(null===e){const{type:e,appliedFor:i,entityType:n}=o[t];r={type:e,appliedFor:i,entityType:n}}else{const[i,n]=e.split("|||"),{type:a,appliedFor:l,entityType:c}=o[t];r={type:a,appliedFor:l,entityType:c,mode:"reference"===i?"reference":"specific",entityValues:n?[n]:[]}}i(Object(tt.setIn)(o,[t],r))})}render(){const{rules:e,rulesList:t}=this.props;return e.map((e,o)=>{const i=e.type===Ua.a.include;return c.a.createElement(Xa,{key:o,active:i,onChange:()=>this.handleVisibilityTypeChange(o,!i),onRemove:()=>this.handleRemove(o)},c.a.createElement(il,{rule:e,rulesList:t,onGroupChange:e=>this.handleGroupChange(e,o),onTypeChange:e=>this.handleTypeChange(e,o)}))})}}var nl=rl;var al=e=>{const{context:t,value:o=[],asyncGetValue:i,onClose:r=v.noop,onChange:n=v.noop}=e,[a,s]=Object(l.useState)(o),[d,p]=Object(l.useState)(!1),[u,b]=Object(l.useState)(null),[m,h]=function(e,t){const[o,i]=Object(l.useState)([]),[r,n]=Object(l.useState)(!0);return Object(l.useEffect)(()=>{!async function(){n(!0);const e=(await Object(ue.r)(t)||[]).map(({items:e})=>e).flat();n(!1),i(e)}()},[]),Object(l.useEffect)(()=>{null!==e&&o.length&&async function(){const t=tl(e);let r=o;for(const a of t)if(Object(No.k)(a)||Object(No.l)(a)){var n;const t=Qa(o,a),l=a.appliedFor;if(!(null===(n=o[t])||void 0===n?void 0:n.items)&&null!==l&&[Ka.e,Ka.a,Ka.f].includes(l)){let o=[];switch(l){case Ka.e:case Ka.f:o=(await Object(ue.B)(a.entityType)).map(({value:e,title:t,items:o,status:i})=>Array.isArray(o)?{title:t,items:o.map(({title:e,value:t})=>({title:e,value:""+t})),value:""+e,status:i,mode:o.find(e=>a.entityType===e.groupValue)?"specific":"reference"}:{title:t,value:""+e});break;case Ka.a:o=(await Object(ue.I)(a.entityType)).map(({name:e,term_id:t})=>({title:e,value:""+t,mode:"specific"}));break}r=Object(tt.setIn)(r,[t,"items"],o),i(el(e,r))}}}()},[e,o]),[r,o]}(a,t),g=Object(io.d)(co.F);return Object(l.useEffect)(()=>{i&&async function(e){let t=await e();N.b&&!t?t=[{type:1}]:t||(t=[]),s(t)}(i)},[]),c.a.createElement(c.a.Fragment,null,m?c.a.createElement("div",{className:"brz-ed-popup-conditions__spin"},c.a.createElement(F.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"})):c.a.createElement(ct.a,{style:{overflow:"hidden",height:"350px"},className:"brz-ed-scroll--medium brz-ed-scroll--new-dark"},null!==a&&c.a.createElement(nl,{rules:a,rulesList:h,onChange:function(e){N.g&&s(e)}}),c.a.createElement("div",{className:"brz-ed-popup-conditions__add-condition",onClick:function(){if(N.g){const e=y.a.getAll();if(so.b){const e={type:Ua.a.include};s([...a,e])}else{const t={type:Ua.a.include,appliedFor:Ka.e,entityType:"page"};Object(di.d)(g)&&qa.a(g.collectionType.id)&&(t.entityType=g.collectionType.id),Object(di.h)(g)&&(t.entityType=Ka.d),Object(di.g)(g)&&(t.entityType=Ka.c),Object(di.b)(e)&&Object(di.a)(e)&&Object(di.e)(e)&&(t.entityType=Ka.b),s([...a,t])}}}},c.a.createElement(F.b,{icon:"nc-add"})," ",Object(ae.a)("Add new display condition"))),u&&c.a.createElement("div",{className:"error"},u),c.a.createElement(Ya,{loading:d,onChange:function(){N.g&&(p(!0),b(null),n({data:{rules:tl(a)},meta:{syncSuccess:()=>p(!1),syncFail:e=>{var t,o;p(!1),b(null!==(t=null===(o=e.responseJSON)||void 0===o?void 0:o.data.message)&&void 0!==t?t:Object(ae.a)("Something went wrong"))}}}))},onClose:r}))},ll=o(48);function cl(e){const{className:t,type:o="text",placeholder:i="",value:r="",onChange:n=(()=>{})}=e,a=g()("brz-input",t);return c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:a,type:o,placeholder:i,value:r,onChange:({target:{value:e}})=>n(e)}))}function sl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function dl(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?sl(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):sl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function pl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ul(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pl(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):pl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function bl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ml(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?bl(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):bl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const hl={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"},gl={social_networks:"Any Social Networks",facebook:"Facebook",pinterest:"Pinterest",twitter:"Twitter",linkedin:"LinkedIn"},vl={external:"External Links",internal:"Internal Links"};function yl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function fl(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?yl(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):yl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Sl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Ol(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Sl(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Sl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}o(351);function xl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Cl(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?xl(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):xl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function wl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Bl(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?wl(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):wl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function jl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Tl(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?jl(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):jl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Pl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function El(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Pl(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Pl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function _l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function kl(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}const zl={android:"Android",bada:"Bada",blackberry:"BlackBerry OS",chromeOs:"Chrome OS",firefoxOs:"Firefox OS",ios:"IOS",linux:"Linux",mac:"Mac OS",windows:"Windows"};function Fl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Rl(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Fl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Hl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Ll(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Hl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Ml=[{id:"pageLoad",title:"On Page Load",type:"number",placeholder:"After (sec)",Component:cl},{id:"scrolling",title:"On Scroll",defaultValue:{value:"down",within:"",toElement:""},duplicatesAmount:1/0,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:e=>o(dl(dl({},t),{},{value:e}))},c.a.createElement(O.a,{key:"down",value:"down"},"Down"),c.a.createElement(O.a,{key:"up",value:"up"},"Up"),c.a.createElement(O.a,{key:"toElement",value:"toElement"},"To element")),"down"===t.value&&c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:"brz-input",type:"number",placeholder:"% of page height",value:t.within,onChange:({target:{value:e}})=>o(dl(dl({},t),{},{within:e}))})),"toElement"===t.value&&c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:"brz-input",type:"text",placeholder:".my-class",value:t.toElement||"",onChange:({target:{value:e}})=>o(dl(dl({},t),{},{toElement:e}))})))}},{id:"click",title:"On Click",type:"number",placeholder:"clicks",Component:cl},{id:"inactivity",title:"After Inactivity",type:"number",placeholder:"After (sec)",Component:cl},{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 c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:e=>o(ul(ul({},t),{},{value:e}))},c.a.createElement(O.a,{key:"views",value:"views"},"viewed pages"),c.a.createElement(O.a,{key:"sessions",value:"sessions"},"Sessions")),c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(ul(ul({},t),{},{type:e}))},c.a.createElement(O.a,{key:"is fewer",value:"is fewer"},"is fewer than"),c.a.createElement(O.a,{key:"equals",value:"equals"},"equals"),c.a.createElement(O.a,{key:"is more",value:"is more"},"is more than")),c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:"brz-input",type:"number",placeholder:"Number of",value:t[t.value],onChange:({target:{value:e}})=>o(ul(ul({},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 c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:e=>o(ml(ml({},t),{},{value:e}))},c.a.createElement(O.a,{key:"show",value:"show"},"Show"),c.a.createElement(O.a,{key:"hide",value:"hide"},"Hide"),c.a.createElement(O.a,{key:"regex",value:"regex"},"Regex"),c.a.createElement(O.a,{key:"source",value:"source"},"Source")),"source"===t.value?[c.a.createElement(S.a,{key:"type",className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(ml(ml({},t),{},{type:e}))},c.a.createElement(O.a,{key:"is",value:"is"},"is"),c.a.createElement(O.a,{key:"is not",value:"is not"},"is not")),c.a.createElement(S.a,{className:"brz-control__select--light",key:"source",itemHeight:30,defaultValue:t.source,onChange:e=>o(ml(ml({},t),{},{source:e}))},c.a.createElement(Ja.a,{key:"Organic",title:"Organic",items:i(hl)},c.a.createElement("span",{className:"brz-span"},"Organic")),c.a.createElement(Ja.a,{key:"Social Networks",title:"Social Networks",items:i(gl)},c.a.createElement("span",{className:"brz-span"},"Networks")),c.a.createElement(Ja.a,{key:"Other",title:"Other",items:i(vl)},c.a.createElement("span",{className:"brz-span"},"Other")))]:c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:"brz-input",type:"text",placeholder:"URL",value:t.url,onChange:({target:{value:e}})=>o(ml(ml({},t),{},{url:e}))})));function i(e){return Object.entries(e).map(([e,t])=>c.a.createElement(O.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:i}=y.a.get("wp");let r=null;return"custom"===t.value&&(r=Array.isArray(i)&&i.length?c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.user,onChange:e=>o(fl(fl({},t),{},{user:e}))},i.map(({role:e,name:t})=>c.a.createElement(O.a,{key:e,value:e},t))):c.a.createElement("span",null,"There are no available users. Add user first")),c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:function(e){var t;const r="all"===e?{value:e}:{value:e,user:null==i||null===(t=i[0])||void 0===t?void 0:t.role};o(r)}},c.a.createElement(O.a,{key:"all",value:"all"},"All users"),c.a.createElement(O.a,{key:"custom",value:"custom"},"Custom")),r)}},{id:"devices",title:"Show on devices",defaultValue:"desktop",duplicatesAmount:3,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t,onChange:e=>o(e)},c.a.createElement(O.a,{key:"desktop",value:"desktop"},"Desktop"),c.a.createElement(O.a,{key:"tablet",value:"tablet"},"Tablet"),c.a.createElement(O.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 c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Ol(Ol({},t),{},{type:e}))},c.a.createElement(O.a,{key:"matches",value:"matches"},"matches"),c.a.createElement(O.a,{key:"contains",value:"contains"},"contains"),c.a.createElement(O.a,{key:"does not contain",value:"does not contain"},"does not contain"),c.a.createElement(O.a,{key:"does not match",value:"does not match"},"does not match")),c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:"brz-input",type:"text",placeholder:"URL",value:t.value,onChange:({target:{value:e}})=>o(Ol(Ol({},t),{},{value:e}))})))}},{id:"currentDate",title:"Current Date",defaultValue:{type:"matches",value:""},duplicatesAmount:1/0,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e,i=(new Date).toJSON().slice(0,10).split("-").reverse().join("/");return c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Cl(Cl({},t),{},{type:e}))},c.a.createElement(O.a,{key:"before",value:"before"},"is before"),c.a.createElement(O.a,{key:"matches",value:"matches"},"matches"),c.a.createElement(O.a,{key:"after",value:"after"},"is after")),c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:"brz-input",type:"text",placeholder:i,value:t.value,onChange:({target:{value:e}})=>o(Cl(Cl({},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,i=(new Date).toJSON().slice(0,10).split("-").reverse().join("/");return c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Bl(Bl({},t),{},{type:e}))},c.a.createElement(O.a,{key:"before",value:"before"},"is before"),c.a.createElement(O.a,{key:"matches",value:"matches"},"matches"),c.a.createElement(O.a,{key:"after",value:"after"},"is after")),c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:"brz-input",type:"text",placeholder:i,value:t.value,onChange:({target:{value:e}})=>o(Bl(Bl({},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 c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.visit,onChange:e=>o(Tl(Tl({},t),{},{visit:e}))},c.a.createElement(O.a,{key:"first",value:"first"},"the first visit"),c.a.createElement(O.a,{key:"last",value:"last"},"the last visit")),c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Tl(Tl({},t),{},{type:e}))},c.a.createElement(O.a,{key:"greater",value:"greater"},"is greater than"),c.a.createElement(O.a,{key:"less",value:"less"},"is less than")),c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:"brz-input",type:"number",placeholder:"Number of",value:t.value,onChange:({target:{value:e}})=>o(Tl(Tl({},t),{},{value:e}))})),c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.time,onChange:e=>o(Tl(Tl({},t),{},{time:e}))},c.a.createElement(O.a,{key:"days",value:"days"},"days"),c.a.createElement(O.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 c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:"brz-input",type:"text",placeholder:"param",value:t.param,onChange:({target:{value:e}})=>o(El(El({},t),{},{param:e}))})),c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(El(El({},t),{},{type:e}))},c.a.createElement(O.a,{key:"matches",value:"matches"},"matches"),c.a.createElement(O.a,{key:"contains",value:"contains"},"contains"),c.a.createElement(O.a,{key:"does not contain",value:"does not contain"},"does not contain"),c.a.createElement(O.a,{key:"does not match",value:"does not match"},"does not match")),c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:"brz-input",type:"text",placeholder:"value",value:t.value,onChange:({target:{value:e}})=>o(El(El({},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 c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(kl(kl({},t),{},{type:e}))},c.a.createElement(O.a,{key:"is",value:"is"},"is"),c.a.createElement(O.a,{key:"is not",value:"is not"},"is not")),c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:e=>o(kl(kl({},t),{},{value:e}))},(i=zl,Object.entries(i).map(([e,t])=>c.a.createElement(O.a,{key:e,value:e},t)))));var i}},{id:"otherPopups",title:"No other popup",defaultValue:{type:"was",value:"page"},duplicatesAmount:1,Component:function(e){const{value:t="",onChange:o=(()=>{})}=e;return c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Rl(Rl({},t),{},{type:e}))},c.a.createElement(O.a,{key:"was",value:"was"},"was shown"),c.a.createElement(O.a,{key:"was not",value:"was not"},"was not shown")),c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.value,onChange:e=>o(Rl(Rl({},t),{},{value:e}))},c.a.createElement(O.a,{key:"page",value:"page"},"on the same page"),c.a.createElement(O.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 c.a.createElement(c.a.Fragment,null,c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:t.type,onChange:e=>o(Ll(Ll({},t),{},{type:e}))},c.a.createElement(O.a,{key:"was",value:"was"},"was shown"),c.a.createElement(O.a,{key:"was not",value:"was not"},"was not shown")),c.a.createElement("div",{className:"brz-control__select"},c.a.createElement("input",{className:"brz-input",type:"text",placeholder:"#popup-id",value:t.value,onChange:({target:{value:e}})=>o(Ll(Ll({},t),{},{value:e}))})))}}];function Il(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Wl(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Il(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Al extends c.a.Component{constructor(e){super(e),Object(a.a)(this,"handleChange",()=>{if(N.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(ll.E)([...e,o],t))})}}),Object(a.a)(this,"handleTriggerOnceChange",e=>{N.g&&this.setState({triggerOnce:e})}),Object(a.a)(this,"handleWrapperTriggerChange",(e,t)=>{N.g&&this.setState({values:Object(tt.setIn)(this.state.values,[e],Wl(Wl({},this.state.values[e]),t))})}),Object(a.a)(this,"handleWrapperTriggerRemove",e=>{N.g&&this.setState({values:Object(tt.removeAt)(this.state.values,e)})}),Object(a.a)(this,"handleValueChange",(e,t)=>{N.g&&this.setState({values:Object(tt.setIn)(this.state.values,[e,"value"],t)})}),Object(a.a)(this,"handleAdd",()=>{if(N.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(tt.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:i}=Ml.find(({id:e})=>e===t),r=Object(tt.setIn)(o,[e],Wl(Wl({},o[e]),{},{id:t,value:i}));this.setState({values:r})}getAvailableItems(e){const{values:t}=this.state;let o=t.reduce((e,{id:t})=>(e[t]?e[t]++:e[t]=1,e),{});return Ml.filter(({id:i,duplicatesAmount:r=1})=>{const n=t.find(e=>e.id===i),a=o[i]&&r>o[i];return e===i||a||!n}).sort(({id:e,duplicatesAmount:o=0},{id:i,duplicatesAmount:r=0})=>{const n=t.find(t=>t.id===e),a=t.find(e=>e.id===i);return n?1:a?-1:o>r?1:o<r?-1:0})}renderTriggers(e){const{values:t}=this.state,o=t[e].id,i=this.getAvailableItems(o).map(({id:e,title:t},o)=>c.a.createElement(O.a,{key:o,value:e},t));return c.a.createElement(S.a,{className:"brz-control__select--light",itemHeight:30,defaultValue:o,onChange:t=>this.handleTriggerChange(e,t)},i)}render(){const{values:e,triggerOnce:t}=this.state,o=e.map((e,t)=>{const o=Ml.find(({id:t})=>t===e.id)||{},{Component:i}=o,r=Object(x.a)(o,["Component"]),n=i?c.a.createElement(i,Object(C.a)({},r,e,{onChange:e=>this.handleValueChange(t,e)})):null;return c.a.createElement(Xa,{showTypeButton:!1,key:t,active:e.active,onChange:e=>this.handleWrapperTriggerChange(t,e),onRemove:()=>this.handleWrapperTriggerRemove(t)},this.renderTriggers(t),n)});return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"brz-ed-popup-conditions__trigger-once"},c.a.createElement("div",null,Object(ae.a)("Trigger Popup Only Once")),c.a.createElement(et.a,{defaultValue:t,onChange:this.handleTriggerOnceChange})),c.a.createElement(ct.a,{style:{overflow:"hidden",height:"350px"},className:"brz-ed-scroll--medium brz-ed-scroll--new-dark"},o,c.a.createElement("div",{className:"brz-ed-popup-conditions__add-condition",onClick:this.handleAdd},c.a.createElement(F.b,{icon:"nc-add"})," ",Object(ae.a)("Add new trigger condition"))),c.a.createElement(Ya,{loading:this.state.loading,onChange:this.handleChange,onClose:this.props.onClose}))}}var Nl={rules:al,triggers:Object(io.b)(e=>({values:Object(co.Q)(e)}),e=>({dispatch:e}))(Al)};const Vl=y.a.get("urls");class Dl extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{activeTab:this.props.options[0].type}),Object(a.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 c.a.createElement("div",{key:e.type,className:o,onClick:()=>this.handleTabChange(e.type)},c.a.createElement("div",{className:"brz-ed-popup-tab-icon"},c.a.createElement(F.b,{icon:e.icon})),c.a.createElement("div",{className:"brz-ed-popup-tab-name"},e.label))})}renderProException(){return c.a.createElement("div",{className:"brz-ed-alert brz-ed-alert-pro brz-mb-lg-0"},c.a.createElement("span",{className:"brz-span"},Object(ae.a)("Block conditions are available only in PRO")),c.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:Vl.upgradeToPro,target:"_blank"},c.a.createElement(F.b,{icon:"nc-lock"}),Object(ae.a)("Get a PRO plan")))}render(){const{options:e,opened:t,onClose:o}=this.props,{activeTab:i}=this.state,r=Nl[i],n=e.find(({type:e})=>e===i),{type:a,icon:l,label:s,title:d}=n,p=Object(x.a)(n,["type","icon","label","title"]);return c.a.createElement(f.a,{opened:t,onClose:o},c.a.createElement("div",{className:"brz-ed-popup-wrapper"},c.a.createElement("div",{className:"brz-ed-popup-header"},c.a.createElement("div",{className:"brz-ed-popup-header__tabs"},this.renderIcons()),c.a.createElement("div",{className:"brz-ed-popup-btn-close",onClick:o})),c.a.createElement("div",{className:"brz-ed-popup-content brz-ed-popup-pane brz-ed-popup-icons"},c.a.createElement("div",{className:"brz-ed-popup-body"},!N.g&&this.renderProException(),c.a.createElement("div",{className:g()("brz-ed-popup-conditions",{"brz-ed-popup-conditions__free":!N.g})},c.a.createElement("div",{className:"brz-ed-popup-conditions__head"},c.a.createElement("h3",null,d)),c.a.createElement("div",{className:"brz-ed-popup-conditions__body"},c.a.createElement(r,Object(C.a)({},p,{onClose:o}))))))))}}Object(a.a)(Dl,"defaultProps",{options:[],onChange:()=>{},onClose:()=>{}});const $l=({space:e})=>c.a.createElement("div",{style:{paddingBottom:e}}),Gl={updateAuthorization:Qo.F,updateSyncAllowed:Qo.R},Ul=Object(io.b)(null,Gl),Kl=[{title:"username",name:"username",required:!0},{title:"password",name:"password",type:"password",required:!0}];class ql extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{data:null,loading:!0,nextLoading:!1,prevLoading:!1,recoverLoading:!1,notice:null,formData:{username:"",password:"",recoverEmail:""}}),Object(a.a)(this,"handleChange",(e,t)=>{this.setState(Object(s.a)(o=>{o.formData[e]=t}))}),Object(a.a)(this,"handleConnect",()=>{const{username:e,password:t}=this.state.formData,{onSuccess:o,onClose:i,updateAuthorization:r,updateSyncAllowed:n}=this.props;this.setState({notice:null,nextLoading:!0}),e.trim()&&t.trim()?(e=>{const{hash:t,url:o,cloudSignIn:i}=y.a.get("wp").api,r=y.a.get("editorVersion"),n=ze(o,{hash:t,version:r,action:i});return Object(ue.O)(n,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(e)}).then(Fe).then(e=>e)})({password:t,email:e}).then(e=>{if(!e.status||e.status>=400)throw e;r("connected"),Object(gi.b)("connected"),Object(y.b)(y.a.getAll())&&mi().then(e=>{const{status:t,data:o}=e||{};!t||t>=400?console.warn("Something went wrong",e):null!=o&&o.isSyncAllowed&&n(!0)}),null==o||o(),null==i||i()}).catch(e=>{this.setState({nextLoading:!1,notice:{message:Object(ae.a)("Incorrect username or password"),type:"error"}})}):this.setState({nextLoading:!1,notice:{message:Object(ae.a)("Incorrect username or password"),type:"error"}})}),Object(a.a)(this,"handleSkip",async()=>{const{onSkip:e,onClose:t,updateAuthorization:o}=this.props;this.setState({prevLoading:!0}),await Object(ue.L)(),this.setState({prevLoading:!1}),o("pending"),Object(gi.b)("pending"),e&&e(),t&&t()}),Object(a.a)(this,"handleRecover",async()=>{const{recoverEmail:e}=this.state.formData;this.setState({notice:null,recoverLoading:!0}),We(e)?e.trim()?(e=>{const{hash:t,url:o,cloudResetPassword:i}=y.a.get("wp").api,r=y.a.get("editorVersion"),n=ze(o,{hash:t,version:r,action:i});return Object(ue.O)(n,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({email:e})}).then(Fe).then(e=>e)})(e).then(e=>{if(!e.status||e.status>=400)throw e;this.setState({recoverLoading:!1,notice:{message:Object(ae.a)("Check your email address"),type:"success"}})}).catch(e=>{this.setState({recoverLoading:!1,notice:{message:Object(ae.a)("Failed to reset password"),type:"error"}})}):(await Object(ue.L)(),this.setState({recoverLoading:!1,notice:{message:Object(ae.a)("Email to recover password cannot be empty"),type:"error"}})):this.setState({recoverLoading:!1,notice:{message:Object(ae.a)("The email address format is not valid"),type:"error"}})})}async componentDidMount(){const e=Object(pe.a)("integrations.json"),t=await fetch(e),{cloudAuthorization:o}=await t.json(),{onLoading:i}=this.props;this.setState({data:o,loading:!1}),i&&i(!1)}renderLoading(){return c.a.createElement(he,null)}renderNotice(){const{notice:e}=this.state;if(null!==e){const{message:t,type:o}=e;return c.a.createElement(be,{message:t,type:o})}}renderContent(){if(this.state.data){const{data:{signInDescription:e},formData:{recoverEmail:t},notice:o,nextLoading:i,prevLoading:r,recoverLoading:n}=this.state;return c.a.createElement(j.a,{className:"brz-text-lg-center"},c.a.createElement("div",{className:"brz-ed-popup-integrations__connect-head"},c.a.createElement($l,{space:"73px"}),c.a.createElement("p",{className:"brz-p"},e)),c.a.createElement("div",{className:"brz-ed-popup-integrations__connect-body"},o&&this.renderNotice(),Kl.map(({title:e,name:t,required:o,type:i="text"},r)=>{var n;return c.a.createElement(qe,{key:r,title:e,type:i,value:""+(null!==(n=this.state.formData[t])&&void 0!==n?n:""),required:o,onChange:({target:e})=>{this.handleChange(t,e.value)}})}),c.a.createElement("div",{className:"brz-ed-popup-authorization__buttons"},c.a.createElement(Ge,{color:"teal",loading:i,onClick:this.handleConnect},Object(ae.a)("Connect")),c.a.createElement(Ge,{color:"default",loading:r,onClick:this.handleSkip},Object(ae.a)("Skip"))),c.a.createElement(qe,{title:"Email to recover password",icon:"nc-right-arrow-tail",loading:n,value:t,onChange:({target:e})=>{this.handleChange("recoverEmail",e.value)},onClickIcon:this.handleRecover})))}}render(){const e=g()("brz-ed-popup-authorization",this.props.className);return c.a.createElement("div",{className:e},this.state.loading?this.renderLoading():this.renderContent())}}Object(a.a)(ql,"defaultProps",{className:"",onSuccess:v.noop,onSkip:v.noop,onClose:v.noop,onLoading:v.noop});var Yl=Ul(ql),Xl=o(100);const Jl=[{title:"first name",name:"firstName",required:!0},{title:"last name",name:"lastName",required:!0},{title:"email",name:"email",required:!0},{title:"password",name:"password",type:"password",required:!0},{title:"Confirm Password",name:"confirmPassword",type:"password",required:!0}],Zl={updateAuthorization:Qo.F,updateSyncAllowed:Qo.R},Ql=Object(io.b)(null,Zl);class ec extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{data:null,notice:null,nextLoading:!1,loading:!0,formData:{firstName:"",lastName:"",email:"",password:"",confirmPassword:"",termsCondition:!1}}),Object(a.a)(this,"handleChange",(e,t)=>{this.setState(Object(s.a)(o=>{o.formData[e]=t}))}),Object(a.a)(this,"handleConnect",async()=>{const{onSuccess:e,onClose:t,updateAuthorization:o,updateSyncAllowed:i}=this.props,{email:r,password:n,confirmPassword:a,firstName:l,lastName:c,termsCondition:s}=this.state.formData;s?We(r)?n===a?(this.setState({notice:null,nextLoading:!0}),r.trim()&&n.trim()&&a.trim()&&l.trim()&&c.trim()?(e=>{const{hash:t,url:o,cloudSignUp:i}=y.a.get("wp").api,r=y.a.get("editorVersion"),n=ze(o,{hash:t,version:r,action:i});return Object(ue.O)(n,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(e)}).then(Fe).then(e=>e)})({firstName:l,lastName:c,email:r,password:n,confirmPassword:a}).then(r=>{if(!r.status||r.status>=400)throw r;o("connected"),Object(gi.b)("connected"),Object(y.b)(y.a.getAll())&&mi().then(e=>{const{status:t,data:o}=e||{};!t||t>=400?console.warn("Something went wrong",e):null!=o&&o.isSyncAllowed&&i(!0)}),null==e||e(),null==t||t()}).catch(e=>{this.setState({nextLoading:!1,notice:{message:Object(ae.a)("Something went wrong"),type:"error"}})}):this.setState({nextLoading:!1,notice:{message:Object(ae.a)("All fields cannot be empty"),type:"error"}})):this.setState({nextLoading:!1,notice:{message:Object(ae.a)("Password and confirm password is not the same"),type:"error"}}):this.setState({nextLoading:!1,notice:{message:Object(ae.a)("The email address format is not valid"),type:"error"}}):this.setState({nextLoading:!1,notice:{message:Object(ae.a)("Agree Terms & Conditions"),type:"error"}})})}async componentDidMount(){const e=Object(pe.a)("integrations.json"),t=await fetch(e),{cloudAuthorization:o}=await t.json(),{onLoading:i}=this.props;this.setState({data:o,loading:!1}),i&&i(!1)}renderLoading(){return c.a.createElement(he,null)}renderNotice(){const{notice:e}=this.state;if(e){const{message:t,type:o}=e;return c.a.createElement(be,{message:t,type:o})}}renderContent(){if(this.state.data){const{data:{signUpDescription:e},nextLoading:t}=this.state;return c.a.createElement(j.a,{className:"brz-text-lg-center"},c.a.createElement("div",{className:"brz-ed-popup-integrations__connect-head"},c.a.createElement($l,{space:"17px"}),c.a.createElement("p",{className:"brz-p"},e)),c.a.createElement("div",{className:"brz-ed-popup-integrations__connect-body"},this.renderNotice(),Jl.map(({title:e,name:t,required:o,type:i="text"},r)=>{var n;return c.a.createElement(qe,{key:r,title:e,type:i,value:""+(null!==(n=this.state.formData[t])&&void 0!==n?n:""),required:o,onChange:({target:e})=>{this.handleChange(t,e.value)}})}),c.a.createElement(Xl.c,{className:"brz-ed-popup-authorization__terms",defaultValue:{termsCondition:this.state.formData.termsCondition},onChange:({termsCondition:e})=>{this.handleChange("termsCondition",e)}},c.a.createElement(Xl.b,{value:"termsCondition",renderIcons:({active:e})=>e?c.a.createElement(F.b,{icon:"nc-check-alt"}):c.a.createElement(F.b,{icon:"nc-uncheck-alt"})},c.a.createElement("a",{className:"brz-a",href:"https://www.brizy.io/terms-and-conditions",target:"_blank",rel:"noreferrer"},Object(ae.a)("I agree with Terms & Conditions")))),c.a.createElement("div",{className:"brz-ed-popup-authorization__buttons"},c.a.createElement(Ge,{color:"teal",loading:t,onClick:this.handleConnect},Object(ae.a)("Create Account & Connect")))))}}render(){const e=g()("brz-ed-popup-authorization",this.props.className);return c.a.createElement("div",{className:e},this.state.loading?this.renderLoading():this.renderContent())}}Object(a.a)(ec,"defaultProps",{className:"",onSuccess:v.noop,onSkip:v.noop,onClose:v.noop,onLoading:v.noop});var tc=Ql(ec);const oc=[{id:"signIn",title:Object(ae.a)("Cloud"),icon:"nc-upload",component:Yl},{id:"signUp",title:Object(ae.a)("SignUp"),icon:"nc-add",component:tc}];var ic=({opened:e,onClose:t})=>c.a.createElement(de,{opened:e,tabs:oc,currentTab:"signIn",onClose:t});const rc=e=>{const{head:t,loading:o,error:i,children:r,spacing:n=!0,height:a=!0,footer:l,inlineFooter:s}=e,d=g()("brz-ed-popup-content",{"brz-ed-popup-content--spacing":n,"brz-ed-popup-content--height":a}),p=g()("brz-ed-popup-content__footer",{"brz-ed-popup-content__footer--inline":s});return o?c.a.createElement("div",{className:d},c.a.createElement(he,null)):c.a.createElement("div",{className:d},t&&c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"brz-ed-popup-content__head"},c.a.createElement("p",{className:"brz-p"},c.a.createElement("strong",{className:"brz-strong"},t)),c.a.createElement($l,{space:"19px"}))),i&&c.a.createElement(be,{message:i,type:"error"}),c.a.createElement(j.a,{autoHeight:!0,autoHeightMax:"100%",style:{height:"auto"}},r),l&&c.a.createElement(c.a.Fragment,null,c.a.createElement($l,{space:"35px"}),c.a.createElement("div",{className:p},l)))},nc=({id:e,active:t,icon:o,title:i,onClick:r,onClose:n})=>{const a=Object(l.useCallback)(()=>null==r?void 0:r(e),[r,e]);return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{onClick:a,className:g()("brz-ed-popup-tab-item",{active:t})},c.a.createElement("div",{className:"brz-ed-popup-tab-icon"},c.a.createElement(F.b,{icon:o})),c.a.createElement("div",{className:"brz-ed-popup-tab-name"},i)),c.a.createElement("div",{className:"brz-ed-popup-btn-close",onClick:n}))},ac=({tabs:e,onClose:t})=>c.a.createElement("div",{className:"brz-ed-popup-header"},e.map(e=>c.a.createElement(nc,Object(C.a)({key:e.id},e,{onClose:t}))));let lc;var cc;(cc=lc||(lc={})).page="page-tab",cc.settings="settings-tab";const sc=[{id:lc.page,icon:"nc-eye-17",title:Object(ae.a)("Page")},{id:lc.settings,icon:"nc-settings",title:Object(ae.a)("Settings")}],dc=({children:e,label:t,required:o})=>c.a.createElement("div",{className:"brz-ed-popup-integrations-step__fields-option brz-d-xs-flex brz-align-items-xs-center brz-justify-content-xs-between"},c.a.createElement("p",{className:"brz-p"},t,o?c.a.createElement("strong",{className:"brz-strong brz--required"},"*"):null),c.a.createElement("div",{className:"brz-ed-popup-integrations-step__field"},e)),pc=({headTitle:e,inlineFooter:t,footer:o,value:i,error:r,onChange:n,layouts:a})=>{const s=Object(l.useMemo)(()=>a.map(({id:e,title:t})=>c.a.createElement(O.a,{key:e,value:e},t)),[a]);return c.a.createElement(rc,{head:e,inlineFooter:t,footer:o,error:r},c.a.createElement(dc,{label:Object(ae.a)("Page Layout"),required:!0},c.a.createElement(S.a,{className:"brz-control__select--white",maxItems:"6",itemHeight:"30",inPortal:!0,defaultValue:i,onChange:n},s)))},uc=({value:e,onChange:t,placeholder:o})=>{const i=Object(l.useCallback)(e=>t(e.target.value),[t]);return c.a.createElement(dc,{label:Object(ae.a)("Page Title"),required:!0},c.a.createElement("input",{className:"brz-input",required:!0,type:"text",value:e,onChange:i,placeholder:o}))},bc=e=>({payload:e,type:"Ready"}),mc=e=>({payload:e,type:"Saving"});let hc;!function(e){e.FetchError="FetchError",e.FetchSuccess="FetchSuccess",e.Save="Save",e.SaveError="SaveError",e.SaveSuccess="SaveSuccess",e.Cancel="Cancel",e.Canceled="Canceled",e.SwitchTab="SwitchTab"}(hc||(hc={}));const gc=()=>({type:hc.Save}),vc=e=>({payload:e,type:hc.SwitchTab}),yc=()=>({type:hc.Cancel});var fc=o(755),Sc=o(758),Oc=o(382),xc=o(1009),Cc=o(1010),wc=o(1014);function Bc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function jc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Bc(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Bc(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Tc=(e,t,o,i)=>{const[r,n]=Object(l.useReducer)(e,{payload:{activeTab:lc.page},type:"Loading"});return Object(l.useEffect)(()=>{const e=Object(fc.a)(t()).pipe(Object(Oc.a)(e=>(e=>({type:hc.FetchSuccess,payload:e}))(jc(jc({},e),{},{activeTab:lc.page}))),Object(xc.a)(()=>Object(Sc.a)({type:hc.FetchError}))).subscribe(n);return()=>null==e?void 0:e.unsubscribe()},["Loading"===r.type]),Object(l.useEffect)(()=>{let e;return"Saving"===r.type&&(e=Object(fc.a)(o(r.payload)).pipe(Object(Cc.a)({type:hc.SaveSuccess}),Object(xc.a)(()=>Object(Sc.a)({type:hc.SaveError}))).subscribe(n)),()=>{var t;return null===(t=e)||void 0===t?void 0:t.unsubscribe()}},["Saving"===r.type]),Object(l.useEffect)(()=>{let e;return"Canceling"===r.type&&(e=Object(Sc.a)(1).pipe(Object(wc.a)(650),Object(Cc.a)({type:hc.Canceled})).subscribe(n)),()=>{var t;return null===(t=e)||void 0===t?void 0:t.unsubscribe()}},["Canceling"===r.type]),Object(l.useEffect)(()=>{"Canceled"===r.type&&i()},["Canceled"===r.type]),[r,n]};function Pc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Ec(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Pc(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Pc(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const _c=e=>Object.values(hc).includes(e.type),kc=e=>!_c(e),zc=(e,t)=>(o,i)=>Object(Qe.match)([_c,e=>{switch(e.type){case hc.FetchError:return"Loading"===o.type?{type:"Err",payload:Ec(Ec({},o.payload),{},{message:Object(ae.a)("Something went wrong")})}:o;case hc.FetchSuccess:return"Loading"===o.type?bc(Ec(Ec({},e.payload),{},{activeTab:o.payload.activeTab})):o;case hc.Save:if("Ready"!==o.type)return o;{const e=t(o.payload);switch(e.type){case"left":return bc(e.value);case"right":return mc(e.value)}}case hc.SaveError:return"Saving"===o.type?bc(Ec(Ec({},o.payload),{},{error:Object(ae.a)("Something went wrong")})):o;case hc.SaveSuccess:return"Saving"===o.type?bc(o.payload):o;case hc.SwitchTab:return"Ready"===o.type?bc(Ec(Ec({},o.payload),{},{activeTab:e.payload})):"Saving"===o.type?mc(Ec(Ec({},o.payload),{},{activeTab:e.payload})):o;case hc.Cancel:switch(o.type){case"Loading":case"Err":case"Canceling":return o;case"Ready":case"Saving":return(e=>({payload:e,type:"Canceling"}))(o.payload)}case hc.Canceled:return"Canceling"===o.type?(e=>({payload:e,type:"Canceled"}))(o.payload):o}}],[kc,t=>{switch(o.type){case"Loading":case"Err":case"Saving":case"Canceling":case"Canceled":return o;case"Ready":return bc(e(o.payload,t))}}])(i),Fc=e=>({type:"left",value:e}),Rc=e=>({type:"right",value:e});function Hc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Lc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Hc(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Hc(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Mc=zc((e,t)=>{var o;switch(t.type){case"SetLayout":return Lc(Lc({},e),{},{layout:t.payload});case"SetBlog":return Lc(Lc({},e),{},{selected:null!==(o=e.items.find(e=>e.id===t.payload))&&void 0!==o?o:e.selected});case"SetTitle":return Lc(Lc({},e),{},{title:t.payload})}},e=>{const{title:t,selected:o}=e;return t&&qa.a(t)?o?Rc({title:t,items:e.items,selected:o,activeTab:e.activeTab,layout:e.layout,layouts:e.layouts,error:void 0}):Fc(Lc(Lc({},e),{},{error:Object(ae.a)("You must be have one selected item")})):Fc(Lc(Lc({},e),{},{error:Object(ae.a)("You must specify a title")}))}),Ic=e=>!!e.length,Wc=e=>e.templates.map(({id:e})=>({title:e,id:e}));function Ac(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Nc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ac(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ac(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Vc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Dc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Vc(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const $c=zc((e,t)=>{switch(t.type){case"SetLayout":return Dc(Dc({},e),{},{layout:t.payload});case"SetRules":return Dc(Dc({},e),{},{items:e.items.map(e=>Dc(Dc({},e),{},{selected:t.payload.includes(e.id.toString())}))});case"SetTitle":return Dc(Dc({},e),{},{title:t.payload})}},e=>{const{title:t,items:o}=e;return t&&qa.a(t)?o.filter(e=>e.selected).length?Rc({title:t,items:e.items,activeTab:e.activeTab,layout:e.layout,layouts:e.layouts,error:void 0}):Fc(Dc(Dc({},e),{},{error:Object(ae.a)("You must be have one selected item")})):Fc(Dc(Dc({},e),{},{error:Object(ae.a)("You must specify a title")}))});function Gc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Uc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Gc(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Gc(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Kc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function qc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Kc(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Yc=zc((e,t)=>{switch(t.type){case"SetLayout":return qc(qc({},e),{},{layout:t.payload});case"SetTitle":return qc(qc({},e),{},{title:t.payload})}},e=>{const{title:t}=e;return t&&qa.a(t)?Rc({title:t,activeTab:e.activeTab,layout:e.layout,layouts:e.layouts,error:void 0}):Fc(qc(qc({},e),{},{error:Object(ae.a)("You must specify a title")}))});function Xc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Jc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Xc(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Xc(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Zc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Qc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Zc(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Zc(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const es={icon:ie,apps:Nt,blocks:zi,form:da,keyHelper:ua,fonts:Ga,conditions:Dl,authorization:ic,pageRules:e=>{const{headTitle:t,pageTitle:o,opened:i,selectedLayout:r,onClose:n,onSave:a}=e,s=Object(io.c)(),d=Object(l.useCallback)(({items:e,title:t,layout:o})=>(s(Object(Qo.N)(o)),s(Object(Qo.P)(t)),a().then(()=>Object(ue.shopifySyncRules)(e.filter(e=>e.selected),t)).then(()=>{})),[s]),p=Object(l.useCallback)(async()=>{const e=y.a.getAll();if(Object(di.b)(e)&&Object(di.i)(e)){const i=Object(ue.getPageRelations)(e).then(e=>e.map(e=>e.id)),n=Object(ue.getCollectionSourceItemsById)(e.templateType.id),a=await Promise.all([n,i]).then(([e,t])=>e.map(e=>Uc(Uc({},e),{},{selected:t.includes(e.id)}))),l=Wc(e);var t;if(Ic(a)&&Ic(l))return{items:a,layouts:l,title:o,layout:null!==(t=null==r?void 0:r.value)&&void 0!==t?t:l[0].id,error:void 0}}return Promise.reject()},[]),[u,b]=Tc($c,p,d,n),m=Object(l.useMemo)(()=>c.a.createElement(c.a.Fragment,null,c.a.createElement(Ge,{size:3,loading:"Canceling"===u.type,onClick:()=>b(yc())},Object(ae.a)("Cancel")),c.a.createElement(Ge,{color:"teal",size:3,loading:"Saving"===u.type,onClick:()=>b(gc())},Object(ae.a)("Save"))),[b,u.type]);return c.a.createElement(f.a,{opened:i,onClose:n},c.a.createElement("div",{className:"brz-ed-popup-wrapper"},c.a.createElement(ac,{tabs:sc.map(e=>Uc(Uc({},e),{},{active:e.id===u.payload.activeTab,onClick:e=>b(vc(e))})),onClose:n}),(()=>{switch(u.type){case"Loading":return c.a.createElement(rc,{head:t,loading:!0});case"Err":return c.a.createElement(rc,{head:t,error:u.payload.message});case"Ready":case"Saving":case"Canceling":case"Canceled":{const{items:e,title:o}=u.payload,i=e.filter(e=>e.selected).reduce((e,t)=>(e[t.id]=!0,e),{}),r=(e=>{switch(e.type){case"Loading":case"Err":case"Saving":return;case"Ready":case"Canceling":case"Canceled":return e.payload.error}})(u);switch(u.payload.activeTab){case lc.page:return c.a.createElement(rc,{head:t,error:r,inlineFooter:!0,footer:m},c.a.createElement(uc,{value:null!=o?o:"",onChange:e=>b({payload:e,type:"SetTitle"}),placeholder:Object(ae.a)("Page title")}),c.a.createElement(Xl.c,{defaultValue:i,onChange:e=>b({payload:Object.entries(e).filter(([,e])=>e).map(([e])=>e),type:"SetRules"})},e.map(e=>c.a.createElement(Xl.b,{key:e.id,divider:!0,inline:!0,value:e.id,renderIcons:Xl.a},e.title))));case lc.settings:return c.a.createElement(pc,{layouts:u.payload.layouts,headTitle:t,value:u.payload.layout,inlineFooter:!0,footer:m,onChange:e=>b({payload:e,type:"SetLayout"}),error:r})}}}})()))},pageTemplate:e=>{const{headTitle:t,pageTitle:o,selectedLayout:i,opened:r,onClose:n,onSave:a}=e,s=Object(io.c)(),d=Object(l.useCallback)(({title:e,layout:t})=>(s(Object(Qo.N)(t)),s(Object(Qo.P)(e)),a().then(()=>Object(ue.shopifySyncPage)(e)).then(()=>{})),[s]),p=Object(l.useCallback)(async()=>{const e=y.a.getAll();if(Object(di.b)(e)&&Object(di.i)(e)){const r=Wc(e);var t;if(Ic(r))return{layouts:r,title:o,layout:null!==(t=null==i?void 0:i.value)&&void 0!==t?t:r[0].id,error:void 0}}return Promise.reject()},[]),[u,b]=Tc(Yc,p,d,n),m=c.a.createElement(c.a.Fragment,null,c.a.createElement(Ge,{size:3,loading:"Canceling"===u.type,onClick:()=>b(yc())},Object(ae.a)("Cancel")),c.a.createElement(Ge,{color:"teal",size:3,loading:"Saving"===u.type,onClick:()=>b(gc())},Object(ae.a)("Save")));return c.a.createElement(f.a,{opened:r,onClose:n},c.a.createElement("div",{className:"brz-ed-popup-wrapper"},c.a.createElement(ac,{tabs:sc.map(e=>Jc(Jc({},e),{},{active:e.id===u.payload.activeTab,onClick:()=>b(vc(e.id))})),onClose:n}),(()=>{var e;switch(u.type){case"Loading":return c.a.createElement(rc,{head:t,loading:!0});case"Err":return c.a.createElement(rc,{head:t,error:u.payload.message});case"Ready":case"Saving":case"Canceling":case"Canceled":switch(u.payload.activeTab){case lc.page:return c.a.createElement(rc,{head:t,inlineFooter:!0,footer:m,error:u.payload.error},c.a.createElement(uc,{value:null!==(e=u.payload.title)&&void 0!==e?e:"",onChange:e=>b({payload:e,type:"SetTitle"}),placeholder:Object(ae.a)("Page title")}));case lc.settings:return c.a.createElement(pc,{layouts:u.payload.layouts,headTitle:t,value:u.payload.layout,inlineFooter:!0,footer:m,onChange:e=>b({payload:e,type:"SetLayout"}),error:u.payload.error})}}})()))},pageArticle:e=>{const{headTitle:t,pageTitle:o,opened:i,selectedLayout:r,onClose:n,onSave:a}=e,s=Object(io.c)(),d=Object(l.useCallback)(({selected:e,title:t,layout:o})=>(s(Object(Qo.N)(o)),s(Object(Qo.P)(t)),a().then(()=>Object(ue.shopifySyncArticle)(e.id,e.title,t)).then(()=>{})),[s]),p=Object(l.useCallback)(async()=>{const e=y.a.getAll();if(Object(di.b)(e)&&Object(di.i)(e)){const i=Object(ue.getPageRelations)(e).then(e=>e.map(e=>e.id)),n=Object(ue.shopifyBlogItems)(),[a,l]=await Promise.all([n,i]),c=Wc(e);var t;if(Ic(a)&&Ic(c))return{items:a,layouts:c,selected:a.find(e=>e.id===l[0]),title:o,layout:null!==(t=null==r?void 0:r.value)&&void 0!==t?t:c[0].id,error:void 0}}return Promise.reject()},[]),[u,b]=Tc(Mc,p,d,n),m=c.a.createElement(c.a.Fragment,null,c.a.createElement(Ge,{size:3,loading:"Canceling"===u.type,onClick:()=>b(yc())},Object(ae.a)("Cancel")),c.a.createElement(Ge,{color:"teal",size:3,loading:"Saving"===u.type,onClick:()=>b(gc())},Object(ae.a)("Save")));return c.a.createElement(f.a,{opened:i,onClose:n},c.a.createElement("div",{className:"brz-ed-popup-wrapper"},c.a.createElement(ac,{tabs:sc.map(e=>Nc(Nc({},e),{},{active:e.id===u.payload.activeTab,onClick:()=>b(vc(e.id))})),onClose:n}),(()=>{var e,o;switch(u.type){case"Loading":return c.a.createElement(rc,{head:t,loading:!0});case"Err":return c.a.createElement(rc,{head:t,error:u.payload.message});case"Ready":case"Saving":case"Canceling":case"Canceled":switch(u.payload.activeTab){case lc.page:return c.a.createElement(rc,{head:t,error:u.payload.error,inlineFooter:!0,footer:m},c.a.createElement(uc,{value:null!==(e=u.payload.title)&&void 0!==e?e:"",onChange:e=>b({payload:e,type:"SetTitle"}),placeholder:Object(ae.a)("Page title")}),c.a.createElement(De.b,{className:"brz-ed-popup-integrations-option__radio",defaultValue:null===(o=u.payload.selected)||void 0===o?void 0:o.id,onChange:e=>b({payload:e,type:"SetBlog"})},u.payload.items.map(({title:e,id:t})=>c.a.createElement(De.a,{checkIcon:"active",value:t,key:t},e))));case lc.settings:return c.a.createElement(pc,{layouts:u.payload.layouts,headTitle:t,value:u.payload.layout,inlineFooter:!0,footer:m,onChange:e=>b({payload:e,type:"SetLayout"}),error:u.payload.error})}}})()))}};class ts extends l.Component{constructor(...e){super(...e),Object(a.a)(this,"state",{prompts:[]}),Object(a.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(s.a)(t=>{t.prompts[e].opened=!1}),()=>{this.setState(Object(s.a)(t=>{t.prompts.splice(e,1)}))})}open(e){const{mode:t="single"}=e,{prompts:o}=this.state,i=o.findIndex(({prompt:t})=>t==e.prompt);-1===i?this.setState(Object(s.a)(t=>{t.prompts.push(e)}),()=>{this.setState(Object(s.a)(e=>{const t=e.prompts.length;e.prompts[t-1].opened=!0}))}):"stack"===t?this.setState(Object(s.a)(t=>{t.prompts[i]=Qc(Qc({},e),{},{opened:!0})})):this.setState(Object(s.a)(t=>{t.prompts.forEach((e,o)=>{t.prompts[o].opened=!1}),t.prompts[i]=Qc(Qc({},e),{},{opened:!0})}))}getComponent(e,t){const o=es[e];return c.a.createElement(o,t)}render(){const{prompts:e}=this.state;return e.length?e.map(({opened:e,prompt:t,props:o={}},i)=>this.getComponent(t,Qc(Qc({},o),{},{opened:e,key:i,onClose:()=>{this.close(i),o.onClose&&o.onClose()}}))):null}}var os=t.a=ts},function(e,t,o){"use strict";o.d(t,"a",(function(){return f}));var i=o(1),r=o.n(i),n=o(32),a=o(137),l=o(13),c=o(48),s=o(17),d=o(71),p=o(0),u=o(21),b=o(2),m=o(213),h=o(16);function g(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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 y=e=>{let t=null;if(e){const o=e.querySelector("#ct-container");o?t=o:(t=document.createElement("div"),t.id="ct-container"),e.append(t)}return t},f={error:(e,t={})=>{m.a.error(e,v(v({renderIcon:()=>r.a.createElement(h.b,{icon:"nc-info"}),bar:{size:"2px",style:"solid",color:"currentColor"}},t),{},{toastContainer:y(t.toastContainer)}))},success:(e,t={})=>{m.a.success(e,v(v({renderIcon:()=>r.a.createElement(h.b,{icon:"nc-info"}),bar:{size:"2px",style:"solid",color:"currentColor"}},t),{},{toastContainer:y(t.toastContainer)}))},info:(e,t={})=>{m.a.info(e,v(v({renderIcon:()=>r.a.createElement(h.b,{icon:"nc-info"}),bar:{size:"2px",style:"solid",color:"currentColor"}},t),{},{toastContainer:y(t.toastContainer)}))},warn:(e,t={})=>{m.a.warn(e,v(v({renderIcon:()=>r.a.createElement(h.b,{icon:"nc-info"}),bar:{size:"2px",style:"solid",color:"currentColor"}},t),{},{toastContainer:y(t.toastContainer)}))}},S=e=>e.lockedBy.user_email,O=({children:e})=>r.a.createElement("div",{className:"brz-ed-notification"},r.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)),x=({children:e})=>r.a.createElement("div",{className:"brz-ed-notification__head"},e),C=({children:e})=>r.a.createElement("div",{className:"brz-ed-notification__content"},e),w=({children:e})=>r.a.createElement("div",{className:"brz-ed-notification__footer brz-d-xs-flex brz-align-items-xs-center"},e);t.b=Object(n.b)(e=>({error:Object(s.m)(e)}))(({error:e,dispatch:t})=>{const{code:o,data:i}=e||{};let n;switch(o){case d.c:n=r.a.createElement(O,null,r.a.createElement(x,null,r.a.createElement(h.b,{icon:"nc-warning",className:"brz-ed-notification__warning"})),r.a.createElement(C,null,i.lockedBy?`${S(i)} ${Object(p.a)("is already editing project")}`:i.statusText||Object(p.a)("Something went wrong")),r.a.createElement(w,null,r.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(p.a)("Refresh"))));break;case d.f:{const e=l.a.get("urls");n=r.a.createElement(O,null,r.a.createElement(x,null,r.a.createElement(h.b,{icon:"nc-warning",className:"brz-ed-notification__warning"})),r.a.createElement(C,null,i.lockedBy?`${Object(p.a)("You can’t make changes")}.\n ${S(i)} ${Object(p.a)("is currently working on this page. Do you want to take over")} ?`:i),r.a.createElement(w,null,r.a.createElement("a",{className:"brz-a brz-d-xs-flex brz-align-items-xs-center brz-ed-notification__to-dashboard",href:e.backToDashboard},Object(p.a)("To Dashboard")),r.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(c.B)(null)),Object(u.P)().catch(()=>{f.error(Object(p.a)("Take over failed please refresh the page"))})}},Object(p.a)("Take over"))));break}case d.e:n=r.a.createElement(O,null,r.a.createElement(x,null,r.a.createElement(h.b,{icon:"nc-warning",className:"brz-ed-notification__warning"})),r.a.createElement(C,null,i),r.a.createElement(w,null,r.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(p.a)("Refresh"))));break;default:n=null}return r.a.createElement(a.CSSTransition,{in:Boolean(n),timeout:300,classNames:"brz-ed-fade",unmountOnExit:!0},n||r.a.createElement("span",null))})},function(e,t,o){"use strict";o.d(t,"d",(function(){return O})),o.d(t,"b",(function(){return f})),o.d(t,"a",(function(){return x}));var i=o(2),r=o(1),n=o.n(r),a=o(10),l=o(5),c=o.n(l),s=o(301),d=o(1008),p=o(105),u=o(85),b=o(1012),m=o(209),h=o(42);function g(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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(i.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 y extends n.a.Component{constructor(e){super(e),Object(i.a)(this,"isRepositioning",void 0),Object(i.a)(this,"contentRef",void 0);const{placement:t,arrowPlacement:o}=e;this.state={placement:null!=t?t:y.defaultProps.placement,placementStyle:y.defaultProps.placementStyle,arrowPlacement:null!=o?o:y.defaultProps.arrowPlacement,arrowPlacementStyle:y.defaultProps.arrowPlacementStyle},this.isRepositioning=!1,this.contentRef=n.a.createRef()}componentDidMount(){const{isOpen:e,toolbar:t}=this.props;e&&t&&this.repositionByToolbar(t)}repositionByToolbar(e){const{toolbarRef:t,toolbarCSSPosition:o,toolbarItemIndex:i}=e,r=t.current,n=null==r?void 0:r.querySelector(`.brz-ed-toolbar__items > .brz-ed-toolbar__item:nth-child(${i})`),a=null==n?void 0:n.getBoundingClientRect();if(!(t.current&&this.contentRef.current&&a&&r))return;const l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,s=document.documentElement.scrollTop,d=document.documentElement.classList.contains("brz-ow-hidden"),p=Object(m.a)(),u=r.getBoundingClientRect(),b=this.contentRef.current.getBoundingClientRect(),g=(d?0:s)+u.bottom+14+Math.max(b.height,300)<=(d?c:Math.max(c,document.body.clientHeight)),v=(d?0:s)+u.top-14-b.height>=0,y="fixed"===o?0:s;let f={};const S=()=>{const e=l-b.width-2,t=a.left+a.width/2-b.width/2;return Object(h.b)(t,2,e)},O=()=>{const e=`calc(100% - ${y}px - ${u.top}px + 14px)`;f={position:o,top:"unset",bottom:e,left:S()}},x=()=>{const e=y+u.top+u.height+14;f={position:o,top:e,left:S()}};let C;"above"===p&&(v?(C="above",O()):(C="below",x())),"below"===p&&(g?(C="below",x()):(C="above",O()));const w="above"===C?"top":"bottom",B={left:a.left+a.width/2-(Number(f.left)||0)};this.isRepositioning=!0,this.setState({placementStyle:f,arrowPlacement:w,arrowPlacementStyle:B},()=>this.isRepositioning=!1)}renderInToolbar(){const{className:e,isOpen:t,size:o,arrow:i,children:r}=this.props,{placementStyle:a,arrowPlacement:l,arrowPlacementStyle:s}=this.state,d=c()("brz-ed-animated brz-ed-animated--fadeInUp","brz-ed-tooltip__overlay",{["brz-ed-tooltip--"+o]:o},{"brz-invisible":!t},e),p=c()("brz-ed-arrow","brz-ed-arrow--"+l);return n.a.createElement("div",{ref:this.contentRef,className:d,style:a},i&&n.a.createElement("div",{className:p,style:s}),r)}renderSimple(){const{className:e,size:t,arrow:o,node:i,placement:r,offset:a,children:l}=this.props,s=c()("brz-ed-animated brz-ed-animated--fadeInUp","brz-ed-tooltip__overlay",{["brz-ed-tooltip--"+t]:t},e);return n.a.createElement(b.a,{referenceElement:i,placement:r,modifiers:[{name:"offset",options:{offset:[0,a]}},{name:"computeStyles",options:{gpuAcceleration:!1}}]},({ref:e,style:t,arrowProps:i,placement:r})=>n.a.createElement("div",{ref:e,className:s,style:t},o&&n.a.createElement("div",{className:"brz-ed-arrow brz-ed-arrow--"+r,ref:i.ref,style:v(v({},i.style),{},{margin:"0"})}),l))}render(){return this.props.toolbar?this.renderInToolbar():this.renderSimple()}}Object(i.a)(y,"defaultProps",{className:"",isOpen:!1,placement:"top",placementStyle:{},arrow:!0,arrowPlacement:"top",arrowPlacementStyle:{},size:void 0,offset:15,toolbar:void 0,inPortal:!1,node:void 0});const f=e=>{const{className:t,children:o,onClick:i}=e,r=c()("brz-ed-tooltip__item",t);return n.a.createElement("div",{className:r,onClick:i},o)},S=[],O=()=>S[S.length-1];class x extends n.a.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{isOpen:!1,isHidden:!1,needClose:!1}),Object(i.a)(this,"contentRef",n.a.createRef()),Object(i.a)(this,"timeout",void 0),Object(i.a)(this,"handleClickOutside",()=>{const{isOpen:e}=this.state;e&&this.close()}),Object(i.a)(this,"handleContentClick",()=>{const{isOpen:e,isHidden:t}=this.state;e?t?this.show():this.close():this.open()}),Object(i.a)(this,"handleMouseEnter",()=>{this.setState({needClose:!1}),this.open()}),Object(i.a)(this,"handleMouseLeave",()=>{this.setState({needClose:!0}),this.timeout=setTimeout(()=>{this.state.needClose&&this.close()},this.props.closeDelay)})}componentWillUnmount(){const e=S.indexOf(this);-1!==e&&S.splice(e),clearTimeout(this.timeout)}open(){const{isOpen:e}=this.state;e||this.setState({isOpen:!0},()=>{var e,t;S.push(this),null===(e=(t=this.props).onOpen)||void 0===e||e.call(t)})}close(){const{isOpen:e}=this.state;e&&this.setState({isOpen:!1},()=>{var e,t;S.pop(),null===(e=(t=this.props).onClose)||void 0===e||e.call(t)})}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:i,overlay:r,arrow:a,placement:l,size:s,offset:d,toolbar:u,inPortal:b,portalNode:m}=this.props,h=i&&i.current||this.contentRef.current,g=m||(null==h?void 0:h.ownerDocument.body),v=n.a.createElement(y,{className:o,node:null!=h?h:void 0,arrow:a,placement:l,size:s,offset:d,isOpen:e,toolbar:u,inPortal:b},r);return(b||u)&&g?n.a.createElement(p.a,{node:g,className:c()("brz-reset-all","brz-ed-tooltip__content-portal",{"brz-invisible":t})},v):v}renderInToolbar(){const{title:e,children:t,openOnClick:o}=this.props;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{title:e,ref:this.contentRef,className:"brz-ed-tooltip__content",onClick:o?this.handleContentClick:a.default.noop},t),this.renderOverlay())}renderSimple(){const{title:e,children:t,openOnClick:o}=this.props;return n.a.createElement(s.a,null,n.a.createElement(d.a,null,()=>n.a.createElement("div",{title:e,ref:this.contentRef,className:"brz-ed-tooltip__content",onClick:o?this.handleContentClick:a.default.noop},t)),this.renderOverlay())}render(){const{toolbar:e,openOnClick:t,className:o,clickOutsideExceptions:i}=this.props,r=c()("brz-ed-tooltip",{"brz-ed-tooltip__static":!e},{"brz-ed-tooltip--opened":this.state.isOpen},o),l=[...null!=i?i:[],".brz-ed-tooltip__content-portal"];return n.a.createElement(u.a,{onClickOutside:this.handleClickOutside,exceptions:l},n.a.createElement("div",{className:r,onMouseEnter:t?a.default.noop:this.handleMouseEnter,onMouseLeave:t?a.default.noop:this.handleMouseLeave},e?this.renderInToolbar():this.renderSimple()))}}Object(i.a)(x,"defaultProps",{arrow:!0,placement:"top",openOnClick:!0,closeDelay:0,overlay:"",size:void 0,offset:15,toolbar:void 0,inPortal:!1,portalNode:void 0,clickOutsideExceptions:[],nodeRef:void 0,onOpen:()=>{},onClose:()=>{}});t.c=x},function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"h",(function(){return n})),o.d(t,"g",(function(){return a})),o.d(t,"i",(function(){return l})),o.d(t,"b",(function(){return c})),o.d(t,"j",(function(){return s})),o.d(t,"c",(function(){return d})),o.d(t,"f",(function(){return p})),o.d(t,"e",(function(){return u})),o.d(t,"d",(function(){return b}));var i=o(2);class r{constructor(e){Object(i.a)(this,"name","CustomError"),Object(i.a)(this,"date",new Date),Object(i.a)(this,"message",void 0),this.message=e}getName(){return this.name}getMessage(){return this.message}getDate(){return this.date}}class n extends r{constructor(...e){super(...e),Object(i.a)(this,"name","Project")}}class a extends r{constructor(...e){super(...e),Object(i.a)(this,"name","Page")}}class l extends r{constructor(...e){super(...e),Object(i.a)(this,"name","SavedBlocks")}}class c extends r{constructor(...e){super(...e),Object(i.a)(this,"name","GlobalBlocks")}}class s extends r{constructor(...e){super(...e),Object(i.a)(this,"name","SavedLayout")}}const d=1,p=2,u=3,b=[d,u]},function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));const i=e=>{switch(typeof e){case"string":{const t=""!==e?Number(e):NaN;return isNaN(t)?void 0:t}case"number":return isNaN(e)?void 0:e;default:return}}},function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));const i=e=>t=>t(e)},function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"a",(function(){return r}));const i=e=>e.target.value;function r(e,t){"function"==typeof t?t(e):t&&e&&(t.current=e)}},function(e,t,o){"use strict";var i=o(138);const r={};let n,a={},l={};const c={registerComponent(e){r[e.componentId]=e},getComponents:()=>r,getComponent:e=>r[e]||null,registerNotFoundComponent(e){n=e},getNotFoundComponent(){if(!n)throw new Error("NotFoundComponent not registered");return n},registerShortcode(e){a=e},registerShopifyShortcode(e){l=e},getShortcodes:()=>Object(i.b)("getShortcodes",a),getShopifyShortcodes:()=>Object(i.b)("getShopifyShortcodes",l)};t.a=c},function(e,t,o){"use strict";o.d(t,"j",(function(){return d})),o.d(t,"i",(function(){return p})),o.d(t,"a",(function(){return u})),o.d(t,"l",(function(){return b})),o.d(t,"f",(function(){return m})),o.d(t,"e",(function(){return h})),o.d(t,"m",(function(){return g})),o.d(t,"k",(function(){return v})),o.d(t,"n",(function(){return f})),o.d(t,"d",(function(){return S})),o.d(t,"g",(function(){return O})),o.d(t,"c",(function(){return x})),o.d(t,"b",(function(){return C})),o.d(t,"h",(function(){return w}));var i=o(2),r=o(101),n=o(79),a=o(40),l=o(31);function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function s(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(i.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 d=e=>e.project,p=e=>e.page,u=e=>e.authorized,b=e=>e.syncAllowed,m=e=>e.fonts,h=e=>e.extraFontStyles,g=e=>e.ui,v=e=>e.storeWasChanged||r.a.unchanged,y=e=>!0!==e.deleted,f=Object(n.createSelector)(m,e=>Object.entries(e).reduce((e,t)=>{const[o,{data:i=[]}={data:[]}]=t;return s(s({},e),{},{[""+o]:{data:i.filter(y)}})},{})),S=Object(n.createSelector)(d,e=>e.data.font),O=Object(n.createSelector)(S,m,(e,t)=>{const o=Object(a.i)(t,e);if(o)return o;const[[i,{data:r=[]}]]=Object.entries(t);return{group:i,font:r[0]}}),x=Object(n.createSelector)(g,e=>e.currentRole),C=Object(n.createSelector)(g,e=>e.currentLanguage),w=Object(n.createSelector)(g,e=>e.leftSidebar);Object(n.createSelector)(p,e=>{if(Object(l.j)(e))return e.layout})},function(e,t,o){"use strict";o.d(t,"a",(function(){return X})),o.d(t,"c",(function(){return J})),o.d(t,"b",(function(){return Z})),o.d(t,"f",(function(){return Q})),o.d(t,"d",(function(){return ee})),o.d(t,"e",(function(){return te}));var i=o(0),r=o(6),n=o(2),a=o(1),l=o.n(a),c=o(83),s=o(118),d=o(91),p=o(14),u=o(151),b=o(114);const m=({label:e,value:t,onChange:o})=>{const[i,r]=Object(b.d)(t,o,500),n=Object(a.useCallback)(Object(p.b)(e=>e.number/10,c.c,r),[r]);return l.a.createElement(d.a,{className:"brz-ed-option"},l.a.createElement(s.a,{label:e}),l.a.createElement(u.a,{value:{number:10*i,unit:""},onChange:n,step:.1,min:0,max:10,units:[]}))};var h=o(133),g=o(106);function v({value:e,onChange:t,directions:o,label:i}){return l.a.createElement(d.a,{className:"brz-ed-option"},l.a.createElement(s.a,{label:i}),l.a.createElement(h.a,{value:e,onChange:t,editable:!1},o.map(([e,t])=>l.a.createElement(g.a,{key:e,value:e},t))))}var y=o(19),f=o(310),S=o(104);const O=e=>e/100;function x({value:{top:e,bottom:t},onChange:o}){const r=Object(a.useCallback)(Object(y.mPipe)(O,Object(y.pass)(c.d),e=>Object(S.a)(e,t),o),[o,t]),n=Object(a.useCallback)(Object(y.mPipe)(O,Object(y.pass)(c.d),t=>Object(S.a)(e,t),o),[o,e]),[s,p]=Object(b.b)(100*e,r,100),[u,m]=Object(b.b)(100*t,n,100);return l.a.createElement(d.a,{className:"brz-ed-option"},l.a.createElement(f.a,{start:Math.trunc(s),onChangeStart:p,end:Math.trunc(u),onChangeEnd:m,step:1,min:0,max:100,startLabel:Object(i.a)("Start"),endLabel:Object(i.a)("End")}))}function C(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function w(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 B=({value:e,onChange:t})=>{const o=Object(a.useCallback)(o=>t(w(w({},e),{},{direction:o})),[e,t]),r=Object(a.useCallback)(o=>t(w(w({},e),{},{level:o})),[e,t]),n=Object(a.useCallback)(o=>t(w(w({},e),{},{viewport:o})),[e,t]),c=Object(a.useMemo)(()=>[["in",Object(i.a)("In")],["out",Object(i.a)("Out")],["inOut",Object(i.a)("InOut")],["outIn",Object(i.a)("OutIn")]],[]);return l.a.createElement(l.a.Fragment,null,l.a.createElement(v,{label:Object(i.a)("Direction"),value:e.direction,onChange:o,directions:c}),l.a.createElement(m,{label:Object(i.a)("Level"),value:e.level,onChange:r}),l.a.createElement(x,{value:e.viewport,onChange:n}))};function j(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function T(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}const P=({value:e,onChange:t})=>{const o=Object(a.useCallback)(o=>t(T(T({},e),{},{direction:o})),[e,t]),r=Object(a.useCallback)(o=>t(T(T({},e),{},{speed:o})),[e,t]),n=Object(a.useMemo)(()=>[["left",Object(i.a)("Left")],["right",Object(i.a)("Right")]],[]),c=Object(a.useCallback)(o=>t(T(T({},e),{},{viewport:o})),[e,t]);return l.a.createElement(l.a.Fragment,null,l.a.createElement(v,{label:Object(i.a)("Direction"),value:e.direction,onChange:o,directions:n}),l.a.createElement(m,{label:Object(i.a)("Speed"),value:e.speed,onChange:r}),l.a.createElement(x,{value:e.viewport,onChange:c}))};function E(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function _(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?E(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):E(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const k=({value:e,onChange:t})=>{const o=Object(a.useCallback)(o=>t(_(_({},e),{},{direction:o})),[e,t]),r=Object(a.useCallback)(o=>t(_(_({},e),{},{speed:o})),[e,t]),n=Object(a.useMemo)(()=>[["direct",Object(i.a)("Direct")],["opposite",Object(i.a)("Opposite")]],[]);return l.a.createElement(l.a.Fragment,null,l.a.createElement(v,{label:Object(i.a)("Direction"),value:e.direction,onChange:o,directions:n}),l.a.createElement(m,{label:Object(i.a)("Speed"),value:e.speed,onChange:r}))};function z(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function F(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}const R=({value:e,onChange:t})=>{const o=Object(a.useCallback)(o=>t(F(F({},e),{},{direction:o})),[e,t]),r=Object(a.useCallback)(o=>t(F(F({},e),{},{x:o})),[e,t]),n=Object(a.useCallback)(o=>t(F(F({},e),{},{y:o})),[e,t]),c=Object(a.useCallback)(o=>t(F(F({},e),{},{speed:o})),[e,t]),s=Object(a.useCallback)(o=>t(F(F({},e),{},{viewport:o})),[e,t]),d=Object(a.useMemo)(()=>[["left",Object(i.a)("Left")],["right",Object(i.a)("Right")]],[]),p=Object(a.useMemo)(()=>[["left",Object(i.a)("Left")],["center",Object(i.a)("Center")],["right",Object(i.a)("Right")]],[]),u=Object(a.useMemo)(()=>[["top",Object(i.a)("Top")],["center",Object(i.a)("Center")],["bottom",Object(i.a)("Bottom")]],[]);return l.a.createElement(l.a.Fragment,null,l.a.createElement(v,{label:Object(i.a)("Direction"),value:e.direction,onChange:o,directions:d}),l.a.createElement(v,{label:Object(i.a)("X"),value:e.x,onChange:r,directions:p}),l.a.createElement(v,{label:Object(i.a)("Y"),value:e.y,onChange:n,directions:u}),l.a.createElement(m,{label:Object(i.a)("Speed"),value:e.speed,onChange:c}),l.a.createElement(x,{value:e.viewport,onChange:s}))};var H=o(311);function L(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function M(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}const I={up:Object(i.a)("Up"),down:Object(i.a)("Down"),downUp:Object(i.a)("DownUp"),upDown:Object(i.a)("UpDown")},W={left:Object(i.a)("Left"),center:Object(i.a)("Center"),right:Object(i.a)("Right")},A={top:Object(i.a)("Top"),center:Object(i.a)("Center"),bottom:Object(i.a)("Bottom")},N=({value:e,onChange:t})=>{const o=Object(a.useCallback)(o=>t(M(M({},e),{},{direction:o})),[e,t]),r=Object(a.useCallback)(o=>t(M(M({},e),{},{x:o})),[e,t]),n=Object(a.useCallback)(o=>t(M(M({},e),{},{y:o})),[e,t]),c=Object(a.useCallback)(Object(y.mPipe)(H.a,o=>t(M(M({},e),{},{speed:o}))),[e,t]),[p,m]=Object(b.b)(e.speed,c,500),h=Object(a.useCallback)(o=>t(M(M({},e),{},{viewport:o})),[e,t]),g=Object(a.useMemo)(()=>Object.entries(I),[]),f=Object(a.useMemo)(()=>Object.entries(W),[]),S=Object(a.useMemo)(()=>Object.entries(A),[]);return l.a.createElement(l.a.Fragment,null,l.a.createElement(v,{label:Object(i.a)("Direction"),value:e.direction,onChange:o,directions:g}),l.a.createElement(v,{label:Object(i.a)("X"),value:e.x,onChange:r,directions:f}),l.a.createElement(v,{label:Object(i.a)("Y"),value:e.y,onChange:n,directions:S}),l.a.createElement(d.a,{className:"brz-ed-option"},l.a.createElement(s.a,{label:Object(i.a)("Speed")}),l.a.createElement(u.a,{value:{number:p,unit:""},onChange:({number:e})=>m(e),step:1,min:-10,max:10,units:[]})),l.a.createElement(x,{value:e.viewport,onChange:h}))},V=k;function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function $(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 G={in:Object(i.a)("In"),out:Object(i.a)("Out"),inOut:Object(i.a)("InOut"),outIn:Object(i.a)("OutIn")},U=({value:e,onChange:t})=>{const o=Object(a.useCallback)(o=>t($($({},e),{},{direction:o})),[e,t]),r=Object(a.useCallback)(o=>t($($({},e),{},{level:o})),[e,t]),n=Object(a.useCallback)(o=>t($($({},e),{},{viewport:o})),[e,t]),c=Object(a.useMemo)(()=>Object.entries(G),[]);return l.a.createElement(l.a.Fragment,null,l.a.createElement(v,{label:Object(i.a)("Direction"),value:e.direction,onChange:o,directions:c}),l.a.createElement(m,{label:Object(i.a)("Level"),value:e.level,onChange:r}),l.a.createElement(x,{value:e.viewport,onChange:n}))};function K(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function q(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(n.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 Y=({value:e,onChange:t})=>{const o=Object(a.useCallback)(o=>t(q(q({},e),{},{direction:o})),[e,t]),r=Object(a.useCallback)(o=>t(q(q({},e),{},{speed:o})),[e,t]),n=Object(a.useCallback)(o=>t(q(q({},e),{},{viewport:o})),[e,t]),c=Object(a.useMemo)(()=>[["up",Object(i.a)("Up")],["down",Object(i.a)("Down")]],[]);return l.a.createElement(l.a.Fragment,null,l.a.createElement(v,{label:Object(i.a)("Direction"),value:e.direction,onChange:o,directions:c}),l.a.createElement(m,{label:Object(i.a)("Speed"),value:e.speed,onChange:r}),l.a.createElement(x,{value:e.viewport,onChange:n}))},X=e=>{switch(e){case"blur":return"nc-blur";case"horizontal":return"nc-scroll-horizontal";case"mouseTrack":return"nc-mouse";case"rotate":return"nc-captcha";case"scale":return"nc-scroll-scale";case"mouseTilt":return"nc-cube";case"transparency":return"nc-scroll-transparency";case"vertical":return"nc-scroll-vertical"}},J=e=>{switch(e){case"blur":return Object(i.a)("Blur");case"mouseTrack":return Object(i.a)("MouseTrack");case"rotate":return Object(i.a)("Rotate");case"scale":return Object(i.a)("Scale");case"horizontal":return Object(i.a)("Horizontal");case"mouseTilt":return Object(i.a)("3D Tilt");case"transparency":return Object(i.a)("Transparency");case"vertical":return Object(i.a)("Vertical")}};function Z(e){switch(e){case"blur":return B;case"horizontal":return P;case"mouseTrack":return k;case"rotate":return R;case"scale":return N;case"mouseTilt":return V;case"transparency":return U;case"vertical":return Y}}const Q=(e,t)=>{const o={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[Object(r.b)(e,i)]=t[i]);return o},ee=e=>{const t={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&Object.assign(t,Q(o,e[o]));return t},te=e=>!!e("enabled")},function(e,t,o){"use strict";o.d(t,"a",(function(){return r}));var i=o(20);function r(...[e,...t]){return(...o)=>t.reduce((e,t)=>Object(i.b)(e)?void 0:t(e),e(...o))}},,function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));const i=e=>!0},,function(e,t,o){"use strict";o.d(t,"e",(function(){return v})),o.d(t,"a",(function(){return y})),o.d(t,"f",(function(){return f})),o.d(t,"g",(function(){return S})),o.d(t,"b",(function(){return O})),o.d(t,"d",(function(){return x})),o.d(t,"c",(function(){return C})),o.d(t,"m",(function(){return j})),o.d(t,"n",(function(){return T})),o.d(t,"k",(function(){return P})),o.d(t,"j",(function(){return E})),o.d(t,"h",(function(){return _})),o.d(t,"i",(function(){return k})),o.d(t,"l",(function(){return z}));var i=o(2),r=o(38),n=o(13),a=o(31),l=o(80),c=o(17),s=o(27),d=o(136),p=o(18),u=o(127),b=o(176),m=o(121);function h(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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(i.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}const v=1,y=2,f=16,S="editor-template",O="customer",x="ecwid-product",C="ecwid-product-category";function w(e,t){var o;if(!e.length&&null!==(o=t[""])&&void 0!==o&&o.after)return t[""].after;e.length&&t[""]&&(t[e[0].globalBlockId]=t[""],delete t[""]);return e.reduce((e,o)=>{var i,r;const n=o.globalBlockId;return null!==(i=t[n])&&void 0!==i&&i.before&&e.push(...t[n].before),e.push(o),null!==(r=t[n])&&void 0!==r&&r.after&&e.push(...t[n].after),e},[])}function B(e,t,o){const i=[...t];return e.reduce((e,r)=>{if(t.includes(r.globalBlockId)){const t=i.shift();t&&e.push({globalBlockId:t,align:o.includes(t)?"top":"bottom"})}else e.push(r);return e},[])}function j(e,t){const o=Object.entries(t).reduce((e,[t,o])=>(o.position&&(e[t]=o.position),e),{}),i=function(e){const{top:t,bottom:o}=Object.entries(e).reduce((e,[t,o])=>(e.top.push(g(g({},o),{},{globalBlockId:t,align:o.align||"top"})),e.bottom.push(g(g({},o),{},{globalBlockId:t,align:o.align||"top"})),e),{top:[],bottom:[]});return{top:i(t,"top"),bottom:i(o,"bottom")};function i(e,t){return e.sort((e,o)=>e[t]-o[t]).map(({globalBlockId:e,align:t})=>({globalBlockId:e,align:t}))}}(o),{top:r}=T(e,t),n=function(e,t){return e.filter(e=>t[e])}(e,t),a=n.filter(e=>o[e]),l=function(e,t,o){const i={};let r=[],n="";return e.forEach((e,a,l)=>{const c=t.includes(e);c&&(i[e]=g(g({},i[e]),{},{before:r}),n=e,r=[]),c||r.push({globalBlockId:e,align:o.includes(e)?"top":"bottom"}),a===l.length-1&&r.length&&(i[n]=g(g({},i[n]),{},{after:r}))}),i}(n,a,r);return function(e,t){const o={};return i(e,"top",o),i(t,"bottom",o),o;function i(e,t,o){return e.reduce((e,{globalBlockId:o,align:i},r)=>(e[o]=g(g({},e[o]),{},{align:i,[t]:r}),e),o)}}(w(B(i.top,a,r),l),w(B(i.bottom,a,r),l))}const T=(e,t)=>{const o=Object.keys(t),i={top:[],bottom:[]};if(e.length>0){if(e.every(e=>o.includes(e)))e.forEach(e=>{const o=t[e];if(null!=o&&o.position&&o.position.align){const{position:t}=o;i[t.align].push(e)}});else{let t=0;for(;t<=e.length-1;){const r=e[t];if(!o.includes(r))break;i.top.push(r),t++}for(t=0;t<=e.length-1;){const r=e[e.length-1-t];if(!o.includes(r))break;i.bottom.push(r),t++}}}return i};const P=(e=Object(c.F)(Object(s.b)().getState()))=>{const t=n.a.getAll();let o=v,i="page",r=e.id;if(Object(a.d)(e)&&(i=e.collectionType.id),Object(a.b)(t)&&Object(a.a)(t)&&Object(a.e)(t)&&(i=O),Object(a.h)(e)&&(i=x,r=e.productId),Object(a.g)(e)&&(i=C,r=e.categoryId),Object(l.a)(t))if(p.e)o=f,i=S;else{var d;const{ruleMatches:e}=t.wp,r=null!==(d=e[0])&&void 0!==d?d:{group:v,entityType:"page"};o=r.group,i=r.entityType}return{group:o,type:u.a(i)?i:"page",id:r}},E=(e,t,o)=>{const i=e[t-1],r=e[t+1],{top:n,bottom:a}=((e,t)=>{const o={top:[],bottom:[]};if(e.length>0){let i=0;for(;i<=e.length-1;){const r=e[i];if(!t.includes(r))break;o.top.push(r),i++}for(i=0;i<=e.length-1;){const r=e[e.length-1-i];if(!t.includes(r))break;o.bottom.push(r),i++}}return o})(e,o);let l="center";return!i||o.includes(i)&&n.includes(i)?l="top":(!r||o.includes(r)&&a.includes(r))&&(l="bottom"),l},_=(e,t,o)=>{const i=P(o),n=g(g({},e),{},{rules:e.rules.filter(e=>!Object(m.b)(e)||!e.entityValues.some(e=>String(e)===String(i.id)))}),a=Object(b.a)(n,o);return!t&&a||t&&!a?Object(r.a)(n,e=>{e.rules.push({type:t?d.a.include:d.a.exclude,mode:"specific",appliedFor:i.group,entityType:i.type,entityValues:[i.id]})}):n},k=e=>`${e.fieldId}:${e.collectionId}`,z=e=>{const[t,o]=e.split(":");if(t)return o?{fieldId:t,collectionId:o}:{fieldId:t}}},function(e,t,o){"use strict";o.d(t,"d",(function(){return n})),o.d(t,"c",(function(){return a})),o.d(t,"b",(function(){return l})),o.d(t,"a",(function(){return c}));var i,r=o(14);!function(e){e.positive="unit"}(i||(i={}));const n=e=>e>=0&&e<=1,a=Object(r.c)(n),l=0,c=1},function(e,t,o){"use strict";function i(){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 i}))},function(e,t,o){"use strict";o.d(t,"a",(function(){return p}));var i=o(2),r=o(1),n=o.n(r),a=o(43),l=o.n(a),c=o(49),s=o.n(c);let d=[];class p extends n.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleAll",e=>{d.forEach(t=>{const{exceptions:o,onClickOutside:i}=t.props;let r=0;if(o.length>0){const{functionExceptions:t,stringExceptions:i}=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&&(r+=t.filter(t=>!0===t(e.target)).length),0===r&&i.length>0&&(r+=s()(e.target).closest(i.join(",")).length)}if(0===r){const o=l.a.findDOMNode(t);o&&!o.contains(e.target)&&i(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 n.a.Children.only(this.props.children)}}Object(i.a)(p,"defaultProps",{exceptions:[]})},function(e,t,o){"use strict";o.d(t,"c",(function(){return a})),o.d(t,"b",(function(){return l})),o.d(t,"a",(function(){return c}));var i=o(14);const r=/^#(?:[A-Fa-f0-9]{3}){1,2}$/;var n;!function(e){e.hex="hex"}(n||(n={}));const a=e=>r.test(e),l=Object(i.b)(Object(i.c)(a)),c="#000000"},function(e,t,o){"use strict";o.d(t,"e",(function(){return a})),o.d(t,"a",(function(){return c})),o.d(t,"k",(function(){return s})),o.d(t,"i",(function(){return p})),o.d(t,"g",(function(){return u})),o.d(t,"j",(function(){return b})),o.d(t,"d",(function(){return m})),o.d(t,"h",(function(){return h})),o.d(t,"f",(function(){return g})),o.d(t,"c",(function(){return v})),o.d(t,"b",(function(){return y}));var i=o(10),r=o(20),n=o(24);const a=(e,t)=>e.reduce((e,o)=>{const i=t(o);return Array.isArray(i)?e.push(...i):e.push(i),e},[]),l=(e,t)=>[...e,...t],c=e=>e.reduce(l,[]);function s(e){return Array.isArray(e)?e:[]}const d=(e,t)=>void 0!==t[e]?e:void 0,p=(e,t)=>Object(r.d)(e=>(e+1)%t.length,d(e,t));function u(e,t){const o=t.indexOf(e);return o<0?void 0:o}const b=(e,t)=>{if(!Array.isArray(t))return;const o=[];for(let i=0;i<t.length;i++){const r=e(t[i]);if(void 0===r)return;o.push(r)}return o},m=(e,t)=>Object(r.f)(-1,Object(i.findIndex)(t,e),void 0);function h(e,t,o){if(0===o.length||e===t||e<0||e>o.length-1||t<0||t>o.length||o[e]===o[t])return o;const i=e>t?t:t+1,r=e<t?e:e+1;return Object(n.removeAt)(Object(n.insert)(o,i,o[e]),r)}const g=(e,t)=>{try{return b(e,JSON.parse(t))}catch(e){return}},v=(e,t,o)=>{if(t.length!==o.length)return!1;for(let i=0;i<t.length;i++)if(!e(t[i],o[i]))return!1;return!0},y=(e,t)=>e.filter(e=>!t.includes(e))},function(e,t,o){"use strict";o.d(t,"a",(function(){return h})),o.d(t,"e",(function(){return g})),o.d(t,"d",(function(){return v})),o.d(t,"g",(function(){return y})),o.d(t,"c",(function(){return f})),o.d(t,"b",(function(){return S})),o.d(t,"f",(function(){return O}));var i=o(14),r=o(33),n=o(2);function a(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function l(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){Object(n.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var c=o(177),s=o(214),d=o(148),p=o(215),u=o(216),b=o(186),m=o(29);const h=e=>t=>t(e),g=(e,t)=>Object(i.d)(t=>{return o=t,l(l({},e),{},{direction:o});var o},t);function v(e){switch(e){case r.a.Bounce:return Object.values(s.a).map(e=>[e,s.c(e)]);case r.a.Fade:case r.a.Fade2:return Object.values(d.a).map(e=>[e,d.c(e)]);case r.a.Rotate:return Object.values(p.a).map(e=>[e,p.c(e)]);case r.a.Slide:return Object.values(u.a).map(e=>[e,u.c(e)]);case r.a.Zoom:return Object.values(b.a).map(e=>[e,b.c(e)]);case r.a.Zoom2:return[b.a.none].map(e=>[e,b.c(e)]);case r.a.None:case r.a.Attention:case r.a.Attention2:return[]}}const y=(e,t)=>{switch(t.type){case r.a.Attention:return e.includes(r.a.Attention)?r.a.Attention:e.includes(r.a.Attention2)?r.a.Attention2:r.a.None;case r.a.Fade:return e.includes(r.a.Fade)?r.a.Fade:e.includes(r.a.Fade2)?r.a.Fade2:r.a.None;case r.a.Zoom:return e.includes(r.a.Zoom)?r.a.Zoom:e.includes(r.a.Zoom2)?r.a.Zoom2:r.a.None;case r.a.None:case r.a.Rotate:case r.a.Slide:case r.a.Bounce:return e.includes(t.type)?t.type:r.a.None}},f=e=>{switch(e){case r.a.Attention:return c.d;case r.a.Attention2:return[m.a.flash,m.a.pulse];case r.a.Slide:case r.a.Rotate:case r.a.None:case r.a.Fade:case r.a.Bounce:case r.a.Fade2:case r.a.Zoom2:case r.a.Zoom:return[]}},S=[r.a.Bounce,r.a.Fade,r.a.Rotate,r.a.Slide,r.a.Zoom,r.a.Attention],O=[r.a.Fade2,r.a.Zoom2,r.a.Attention2]},,,function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));var i=o(1),r=o.n(i),n=o(5),a=o.n(n);const l=({children:e,className:t,display:o="inline"})=>{const i=a()("brz-ed-option-wrapper","brz-ed-option__"+o,t);return r.a.createElement("div",{className:i},e)}},,,,function(e,t,o){"use strict";o.d(t,"d",(function(){return d})),o.d(t,"b",(function(){return p})),o.d(t,"a",(function(){return u})),o.d(t,"c",(function(){return b}));var i=o(73),r=o(6),n=o(19),a=o(25),l=o(83),c=o(14),s=o(104);const d=e=>t=>o=>t(Object(r.b)(e,o)),p=Object(n.or)(Object(n.mPipe)(Object(i.a)("speed"),a.b,l.c),()=>0),u=Object(n.or)(Object(n.mPipe)(Object(i.a)("level"),a.b,l.c),()=>0),b=Object(c.d)(d("viewport"),s.b)},function(e,t,o){"use strict";var i=o(2),r=o(1),n=o.n(r),a=o(9),l=o.n(a),c=o(234);class s extends n.a.Component{render(){const{data:e,className:t,optionClassName:o,toolbar:i,location:r,wrapOptions:a}=this.props,l=e.map((e,t)=>n.a.createElement(c.a,{key:e.id||t,className:o,toolbar:i,data:e,location:r}));return a?n.a.createElement("div",{className:t},l):l}}Object(i.a)(s,"propTypes",{wrapOptions:l.a.bool}),Object(i.a)(s,"defaultProps",{className:"",optionClassName:"",location:"",data:null,toolbar:null,wrapOptions:!0}),t.a=s},function(e,t,o){"use strict";o.d(t,"a",(function(){return b})),o.d(t,"e",(function(){return m})),o.d(t,"f",(function(){return h})),o.d(t,"c",(function(){return g})),o.d(t,"b",(function(){return v})),o.d(t,"d",(function(){return y}));var i=o(2),r=o(24),n=o(10),a=o(244),l=o(45),c=o(6),s=(o(30),o(23));s.a.eq;var d=o(36);function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function u(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(i.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 b=(e,t)=>{const o=t.startsWith("temp")?"temp":"",i=o.length?t.substr(4):t,r="value"===i||"Value"===i?"":i;return Object(c.a)([o,e,r])},m=e=>String(e).endsWith("-dev"),h=e=>{var t,o,i,r,n,a,l,c,s,d,p;const b=null===(t=e.allowExtend)||void 0===t||t,m=null!==(o=e.allowExtendFromParent)&&void 0!==o?o:b,h=null!==(i=e.allowExtendFromChild)&&void 0!==i?i:b,g=null!==(r=e.allowExtendFromThirdParty)&&void 0!==r?r:b,v=null!==(n=e.allowSidebarExtend)&&void 0!==n?n:b,y=null!==(a=null!==(l=e.allowSidebarExtendFromParent)&&void 0!==l?l:e.allowSidebarExtend)&&void 0!==a?a:m,f=null!==(c=null!==(s=e.allowSidebarExtendFromChild)&&void 0!==s?s:e.allowSidebarExtend)&&void 0!==c?c:h,S=null!==(d=null!==(p=e.allowSidebarExtendFromThirdParty)&&void 0!==p?p:e.allowSidebarExtend)&&void 0!==d?d:g;return u(u({},e),{},{allowExtend:b,allowExtendFromParent:m,allowExtendFromChild:h,allowExtendFromThirdParty:g,allowSidebarExtend:v,allowSidebarExtendFromParent:y,allowSidebarExtendFromChild:f,allowSidebarExtendFromThirdParty:S})},g=(e=>{const t=e.reduce((e,t)=>(e[t]=!0,e),{});return function e(o){const i={};for(const[r,n]of Object.entries(o))t[r]&&l.b(n)?Object.assign(i,e(n)):i[r]=n;return i}})(["animation","content","families","images","link","style","styles","symbols","toolbar"]),v=(e,t)=>o=>{const{type:i,disabled:r,devices:n,roles:a}=o;if(!i)return!1;if(!0===r)return!1;if(n&&"all"!==n){if("desktop"===n&&"desktop"!==e)return!1;if("responsive"===n&&"desktop"===e)return!1}return!(Array.isArray(a)&&!a.includes(t))},y=(e,t)=>{const o=Object.values(a.a).flat().filter(e=>e.pro).map(e=>{var t;return{title:e.component.title,type:null!==(t=Object(r.getIn)(e.component.resolve,["value","items",0,"type"]))&&void 0!==t?t:""}}).filter(e=>"Image"!==e.type||Array.isArray(t._styles)&&Object(n.intersection)(t._styles,["image--dynamic"]).length>0).find(t=>t.type===e);if(void 0!==o&&!d.g)return o.title}},,function(e,t,o){"use strict";o.d(t,"c",(function(){return s})),o.d(t,"a",(function(){return p})),o.d(t,"b",(function(){return u})),o.d(t,"e",(function(){return b})),o.d(t,"g",(function(){return m})),o.d(t,"f",(function(){return h})),o.d(t,"h",(function(){return g})),o.d(t,"d",(function(){return v}));var i=o(2),r=o(50),n=o(45),a=o(6);function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function c(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(i.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}const s=e=>e.endsWith("Population"),d=e=>Object(a.a)([e,"population"]),p=e=>e.slice(0,-10),u=(e,t)=>!!r.b(e[d(t)]),b=(e,t)=>{var o;const i=e[t],l=null!==(o=r.b(e[d(t)]))&&void 0!==o?o:"",c=e[(e=>Object(a.a)([e,"populationFallback2"]))(t)],s=n.c(e[(e=>Object(a.a)([e,"populationAttr"]))(t)]);return{key:t,hasDC:""!==l,staticValue:i,dcValue:l,attr:s?Object.fromEntries(Object.entries(s).map(([t,o])=>[t,e[o]])):{},fallback:c}};function m(e){const t=/^{{\s*([\w-]+)(.*?)\s*}}$/.exec(e);if(!t)return;const[,o,i]=t;if(""===i)return{name:o};const r=/(\w+)=("|'|&quot;|&apos;)(.*?)\2/g;let n,a=void 0;for(;n=r.exec(i.trim());){var l;a=null!==(l=a)&&void 0!==l?l:{},a[n[1]]=n[3]}return a?{name:o,attr:a}:{name:o}}function h(e){if(!e.hasDC)return;const t=m(e.dcValue);return t?((e.fallback||e.attr)&&(t.attr=c(c(c({},t.attr),e.attr),e.fallback?{_fallback:e.fallback}:{})),t):void 0}function g(e){const{name:t,attr:o}=e,i=o?Object.keys(o).sort().flatMap(e=>{const t=r.b(o[e]);return void 0!==t?`${e}='${t}'`:[]}).join(" "):"";return i.length>0?`{{${t} ${i}}}`:`{{${t}}}`}function v(e){return void 0!==m(e)}},function(e,t,o){"use strict";o.d(t,"b",(function(){return p.a})),o.d(t,"a",(function(){return b})),o.d(t,"c",(function(){return g}));var i=o(2),r=o(1),n=o.n(r),a=o(10),l=o(9),c=o.n(l),s=o(5),d=o.n(s),p=o(298),u=o(16);const b=({active:e})=>n.a.createElement("div",{className:"brz-control__check-group-option-icon"},n.a.createElement(u.b,{icon:e?"nc-check-square-on":"nc-check-square-off"}));function m(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function h(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?m(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class g extends n.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleChange",e=>{const{defaultValue:t,onChange:o}=this.props;o(h(h({},t),{},{[e]:!t[e]}))})}renderOptions(){const{defaultValue:e,children:t}=this.props;return n.a.Children.map(t,(t,o)=>n.a.cloneElement(t,h(h({},t.props),{},{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 n.a.createElement("div",{className:e},this.renderOptions())}}Object(i.a)(g,"propTypes",{name:c.a.string,className:c.a.string,defaultValue:c.a.object,onChange:c.a.func}),Object(i.a)(g,"defaultProps",{name:"defaultName",className:"",defaultValue:{},onChange:a.default.noop})},function(e,t,o){"use strict";let i;o.d(t,"a",(function(){return i})),function(e){e.pending="pending",e.changed="changed",e.unchanged="unchanged"}(i||(i={}))},function(e,t,o){"use strict";o.d(t,"e",(function(){return i})),o.d(t,"f",(function(){return r})),o.d(t,"b",(function(){return b})),o.d(t,"d",(function(){return m})),o.d(t,"a",(function(){return h})),o.d(t,"c",(function(){return v}));const i=(e,t)=>{for(let o in e){if(!e.hasOwnProperty(o))continue;e[o]&&"object"==typeof e[o]&&i(e[o],t);const r=t[e.type]||t.Component;"function"==typeof r&&e.type&&e.value&&r(e)}},r=(e,t)=>{for(let o in e)e.hasOwnProperty(o)&&"function"==typeof t[o]&&t[o](e[o])};o(65);var n=o(2),a=o(260),l=o(146),c=o(40),s=o(50),d=o(125);function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function u(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 b=({models:e={},globalBlocks:t={}})=>{const o=new Set;return i(e,{Component({type:e,value:t}){const i=Object(d.a)(e).style||{},r=u(u({},i),t);Object.entries(i.families||{}).forEach(e=>{const[n,a]=e,l={type:s.b(t[n+"Type"]||i[n+"Type"]),family:s.b(t[n]||a)},c=n.replace("Family","Style");s.b(r[c])||l.type&&l.family&&o.add(Object(d.b)({type:l.type,family:l.family}))})},RichText({type:e,value:t}){const i=Object(d.a)(e).content||{},r=t.text||i.text;Object(a.b)(r,e=>{const t=Object(l.b)(e),{typographyFontFamily:i,typographyFontFamilyType:r}=t;i&&(r?o.add(Object(d.b)({type:r,family:i})):o.add(Object(d.b)({family:i,type:"unknowns"})))})},GlobalBlock({value:{_id:e}}){const i=s.b(e),r=i?t[i]:void 0;if(r){b({models:r,globalBlocks:t}).forEach(e=>{o.add(Object(d.b)(e))})}}}),[...o].map(d.c)},m=e=>{const t=new Set;return e.forEach(e=>{r(e,{fontFamily(o){t.add(Object(d.b)({type:e.fontFamilyType,family:o}))}})}),[...t].map(d.c)},h=(e,t)=>{const o=e.reduce((e,t)=>e.some(({family:e})=>e===t.family)?e:[...e,t],[]),i=Object(c.v)(t);return o.reduce((e,t)=>{const{type:o,family:r}=t;switch(o){case"unknowns":return Object.entries(i).find(([e,t])=>Object(c.a)(t,r,e))?e:[...e,t];case"google":case"upload":return Object(c.a)(i[o],r,o)?e:[...e,t]}},[])};var g=o(6);const v=({models:e,globalBlocks:t})=>{const o=new Set;return i(e,{Component({type:e,value:t}){const i=Object(d.a)(e).link||{},r=t.linkType||i.linkType,n=t.linkUpload||i.linkUpload;"upload"===r&&n&&o.add(n)},RichText({type:e,value:t}){const i=Object(d.a)(e).content||{},r=/href="(.+?)"/g,n=t.text||i.text;let a;for(;a=r.exec(n);)try{const[e,t]=a,{type:i,upload:r}=Object(g.d)(t);"upload"===i&&r&&o.add(r)}catch(e){0}},Lottie({type:e,value:t}){const i=Object(d.a)(e).content||{},r=Object(d.a)(e).link||{},n=t.animationFile||i.animationFile,a=t.linkType||r.linkType,l=t.linkUpload||r.linkUpload;"upload"===a&&l&&o.add(l),n&&o.add(n)},Video({type:e,value:t}){const i=Object(d.a)(e).content||{},r=t.custom||i.custom;"custom"===(t.type||i.type)&&r&&o.add(r)},Audio({type:e,value:t}){const i=Object(d.a)(e).content||{},r=t.audio||i.audio;r&&o.add(r)},GlobalBlock({value:{_id:e}}){const i=t&&t[e];i&&v({models:i}).forEach(e=>{o.add(e)})}}),[...o]}},function(e,t,o){"use strict";o.d(t,"a",(function(){return h}));var i=o(2),r=o(1),n=o.n(r),a=o(43),l=o.n(a),c=o(5),s=o.n(c),d=o(10);class p extends r.Component{constructor(...e){super(...e),Object(i.a)(this,"content",n.a.createRef()),Object(i.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,i,r){const n=Math.max(o,e),a=n-e,l=e/n*r,c=r-l;return{client:e,offset:t,position:i,track:r,overflow:a,thumb:l,piece:c,shift:0===a?0:i/a*c,scroll:n}}render(){return n.a.createElement("div",{ref:this.content,className:this.props.className,style:this.props.style,onScroll:this.updateDOM},this.props.children)}}p.defaultProps={onUpdateDOM:d.default.noop};var u=o(49),b=o.n(u);class m extends r.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=n.a.Children.only(this.props.children);return n.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 r.Component{constructor(e){super(e),Object(i.a)(this,"captureStart",()=>{this._start=!1}),Object(i.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(i.a)(this,"handleMouseDown",e=>{const t=l.a.findDOMNode(this.wideTrack),o=t.getBoundingClientRect(),i=(e.clientX-o.left-this._wide.thumb/2)/this._wide.piece*this._wide.overflow;e.target===t&&(l.a.findDOMNode(this.scrollable).scrollLeft=i)}),Object(i.a)(this,"handleMouseDown2",e=>{const t=l.a.findDOMNode(this.tallTrack),o=t.getBoundingClientRect(),i=(e.clientY-o.top-this._tall.thumb/2)/this._tall.piece*this._tall.overflow;e.target===t&&(l.a.findDOMNode(this.scrollable).scrollTop=i,this.handleChange({top:i}))}),Object(i.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(i.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(i.a)(this,"handleResize",()=>{this.forceUpdate()}),Object(i.a)(this,"handleUpdateDOM",(e,t)=>{let o,i,r=l.a.findDOMNode(this.wideTrack),n=this.wideThumb,a=l.a.findDOMNode(this.tallTrack),c=this.tallThumb,s={overflow:Math.max(0,t.scrollWidth-t.clientWidth)},d={overflow:Math.max(t.scrollHeight-t.clientHeight)};r.style.position="absolute",a.style.position="absolute",n.style.position="relative",c.style.position="relative",r.style.display="block",o=r.offsetHeight,a.style.display="block",i=a.offsetWidth,t.style.overflow="hidden",t.style.borderBottomWidth=o+"px",t.style.borderBottomStyle=s.overflow?"solid":"none",t.style.borderRightWidth=i+"px",t.style.borderRightStyle=d.overflow?"solid":"none",s.overflow=Math.max(0,t.scrollWidth-t.clientWidth),d.overflow=Math.max(0,t.scrollHeight-t.clientHeight),r.style.display=s.overflow?"block":"none",r.style.width=t.clientWidth+"px",r.style.left=0,r.style.top=t.offsetHeight-o+"px",a.style.display=d.overflow?"block":"none",a.style.height=t.clientHeight+"px",a.style.top=0,this._wide=s=e(t.clientWidth,t.offsetWidth,t.scrollWidth,t.scrollLeft,r.clientWidth),this._tall=d=e(t.clientHeight,t.offsetHeight,t.scrollHeight,t.scrollTop,a.clientHeight),n.style.left=s.shift+"px",n.style.width=s.thumb+"px",c.style.top=d.shift+"px",c.style.height=d.thumb+"px"}),Object(i.a)(this,"handleWheel",e=>{e.stopPropagation();let t=l.a.findDOMNode(this.scrollable);const o=t.scrollTop,i=t.scrollLeft,r=navigator.userAgent.toLowerCase();let n=1;/firefox/.test(r)&&(n=20),/chrome/.test(r)&&(n=.8),this.props.onlyWide?t.scrollLeft=i+(e.deltaX?e.deltaX:e.deltaY*n):(e.preventDefault(),t.scrollTop=o+e.deltaY*n,t.scrollLeft=i+e.deltaX),(t.scrollTop!=o||t.scrollLeft!=i||this.props.onlyWide)&&e.preventDefault(),this.handleChange({left:t.scrollLeft,top:t.scrollTop})}),this.handleRef=n.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=s()("brz-ed-scroll-pane",this.props.className);return n.a.createElement("div",{ref:this.handleRef,className:e,style:{position:"relative",width:this.props.style.width,height:this.props.style.height}},n.a.createElement(p,{ref:e=>{this.scrollable=e},className:"brz-ed-scroll-inner",style:this.props.style,onUpdateDOM:this.handleUpdateDOM},this.props.children),n.a.createElement(m,{ref:e=>{this.wideTrack=e},onDragStart:this.captureStart,onDragMove:this.handleMove},n.a.createElement("div",{className:"brz-ed-wide-track",onMouseDown:this.handleMouseDown},n.a.createElement("div",{ref:e=>{this.wideThumb=e},className:"brz-ed-wide-thumb"}))),n.a.createElement(m,{ref:e=>{this.tallTrack=e},onDragStart:this.captureStart,onDragMove:this.handleMove2},n.a.createElement("div",{className:"brz-ed-tall-track",onMouseDown:this.handleMouseDown2},n.a.createElement("div",{ref:e=>{this.tallThumb=e},className:"brz-ed-tall-thumb"}))))}}Object(i.a)(h,"defaultProps",{className:"",style:{},window:null,onlyWide:!1,wrapScrollable:e=>e,onChange:()=>{}})},function(e,t,o){"use strict";o.d(t,"d",(function(){return p})),o.d(t,"a",(function(){return u})),o.d(t,"b",(function(){return b})),o.d(t,"c",(function(){return m}));var i,r=o(2),n=o(83),a=o(73),l=o(14),c=o(25),s=o(19);function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}!function(e){e.type="viewport"}(i||(i={}));const p=(e,t)=>({type:i.type,bottom:t,top:e}),u=(e,t)=>t>=e?p(e,t):void 0,b=Object(s.parseStrict)({type:()=>i.type,bottom:Object(s.or)(Object(l.b)(Object(a.a)("bottom"),c.b,n.c),()=>1),top:Object(s.or)(Object(l.b)(Object(a.a)("top"),c.b,n.c),()=>0)}),m=e=>function(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(r.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}({},e)},function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var i=o(1),r=o(43);function n({className:e,node:t,children:o}){const n=Object(i.useRef)(null);if(null===n.current||n.current.parentElement!==t){const o=t.ownerDocument.createElement("div");e&&(o.className=e),t.appendChild(o),n.current=o}return Object(i.useEffect)(()=>(n.current&&!t.contains(n.current)&&t.appendChild(n.current),()=>{n.current&&t.removeChild(n.current)}),[t]),Object(i.useEffect)(()=>{n.current&&(e?n.current.className=e:n.current.removeAttribute("class"))},[e]),n.current?Object(r.createPortal)(o,n.current):null}},function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var i=o(1),r=o.n(i);function n({children:e}){return r.a.createElement(r.a.Fragment,null,e)}},function(e,t,o){"use strict";o.d(t,"c",(function(){return i.a})),o.d(t,"d",(function(){return r})),o.d(t,"b",(function(){return n})),o.d(t,"e",(function(){return a})),o.d(t,"a",(function(){return l}));var i=o(293);function r(e){return e.split("&").reduce((e,t)=>{const[o,i]=t.split("=");return e[o]=i,e},{})}function n(e){return/^(https?:)?\/\//.test(e)}const a=e=>e.includes("?"),l=(e,t)=>{var o;if(e&&t)return null===(o=r(e.split("?")[1]))||void 0===o?void 0:o[t]}},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 c}));var i=o(14),r=o(25),n=o(44);const a=Object(i.b)(e=>e.duration,r.b,n.b),l=Object(i.b)(e=>e.delay,r.b,n.b),c=Object(i.b)(e=>e.infiniteAnimation,e=>Boolean(e))},,,,function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var i=o(14);const r=["px","%"],n=Object(i.c)(e=>r.includes(e))},,function(e,t,o){"use strict";o.d(t,"a",(function(){return b})),o.d(t,"c",(function(){return m})),o.d(t,"b",(function(){return g})),o.d(t,"d",(function(){return v}));var i=o(1),r=o(263),n=o(1003),a=o(1e3),l=o(382),c=o(761),s=o(1001),d=o(1002),p=o(1004);const u=(e,t)=>e===t;function b(e,t,o){const r=Object(i.useRef)();Object(i.useEffect)(()=>(clearTimeout(r.current),r.current=setTimeout(e,t),()=>clearTimeout(r.current)),[o,e,t])}function m(e,t,o){const{current:r}=Object(i.useRef)({f:e});Object(i.useEffect)(()=>{r.f=e,void 0===r.t&&(r.t=setTimeout(()=>{r.f(),r.t=void 0},t))},[o,r,e,t])}const h=e=>(t,o,d,p=u)=>{const b=Object(i.useRef)({fn:p});b.current.fn=p;const m=Object(i.useRef)(d);m.current=d;const h=Object(i.useRef)({fn:o});h.current.fn=o;const[g,v]=Object(i.useState)(t),y=Object(i.useMemo)(()=>new r.a,[]),f=Object(i.useMemo)(()=>new r.a,[]),S=Object(i.useMemo)(()=>new r.a,[]);return Object(i.useEffect)(()=>{y.next(t)},[t]),Object(i.useEffect)(()=>{const t=y.pipe(Object(n.a)(f),Object(a.a)(([e,t])=>!b.current.fn(e,t)),Object(l.a)(([e])=>e)).subscribe(S),o=S.pipe(Object(c.a)((e,t)=>b.current.fn(e,t)),Object(s.a)(v),e(m.current)).subscribe(f),i=f.pipe(Object(c.a)((e,t)=>b.current.fn(e,t))).subscribe(e=>h.current.fn(e));return()=>{t.unsubscribe(),o.unsubscribe(),i.unsubscribe()}},[]),[g,S.next.bind(S)]},g=h(d.a),v=h(e=>Object(p.a)(e,void 0,{leading:!1,trailing:!0}))},,function(e,t,o){"use strict";function i(...[e,...t]){return(...o)=>t.reduce((e,t)=>t(e),e(...o))}o.d(t,"a",(function(){return i}))},,function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));o(65);var i=o(1),r=o.n(i),n=o(16),a=o(70);const l=({label:e,icon:t,helper:o,helperPlacement:i})=>e||t||o?r.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__focal-point__label"},t?r.a.createElement(n.b,{className:"brz-ed-option__label__icon",icon:t}):null,e?r.a.createElement("span",{className:"brz-ed-option__label__text"},null==e?void 0:e.replace("-","‑")):null,o&&r.a.createElement("div",{className:"brz-ed-option__helper"},r.a.createElement(a.a,{placement:i,openOnClick:!1,overlay:r.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})},r.a.createElement(n.b,{icon:"nc-alert-circle-que"})))):r.a.createElement(r.a.Fragment,null)},,,function(e,t,o){"use strict";o.d(t,"b",(function(){return r})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return a}));var i=o(127);function r(e){const t="appliedFor"in e,o="entityType"in e,i="entityValues"in e&&e.entityValues.length>0;return t&&o&&i}function n(e){const t="appliedFor"in e&&null!==e.appliedFor,o="entityType"in e&&i.a(e.entityType);return t&&o&&!("entityValues"in e)}function a(e){return!("appliedFor"in e)&&!("entityType"in e)&&!("entityValues"in e)}},function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"d",(function(){return a})),o.d(t,"b",(function(){return l})),o.d(t,"c",(function(){return c}));var i=o(14),r=o(44);let n;!function(e){e[e.THIN=100]="THIN",e[e.EXTRA_LIGHT=200]="EXTRA_LIGHT",e[e.LIGHT=300]="LIGHT",e[e.NORMAL=400]="NORMAL",e[e.MEDIUM=500]="MEDIUM",e[e.SEMI_BOLD=600]="SEMI_BOLD",e[e.BOLD=700]="BOLD",e[e.EXTRA_BOLD=800]="EXTRA_BOLD",e[e.BLACK=900]="BLACK"}(n||(n={}));const a=Object.values(n).filter(e=>r.c(Number(e))),l=n.NORMAL,c=Object(i.c)(e=>a.includes(e))},function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));const i=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(e){return}}},function(e,t,o){"use strict";o.d(t,"c",(function(){return r})),o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return a}));var i=o(2);const r="UNDO",n="REDO";class a{constructor(e){Object(i.a)(this,"snapshots",[]),Object(i.a)(this,"config",{maxSize:20,collapseFrequency:2e3}),Object(i.a)(this,"currentIndex",-1),Object(i.a)(this,"previousIndex",-1),Object(i.a)(this,"lastSnapshotTimestamp",0),Object(i.a)(this,"canUndo_",!1),Object(i.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,i=Date.now();if(null!=t&&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(i-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=i}}}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 r})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return a}));var i=o(75);const r=({type:e,family:t})=>`${e}|${t}`,n=e=>{const[t,o]=e.split("|");return{type:t,family:o}},a=e=>{const t=i.a.getComponent(e);return t?t.defaultValue:{}}},function(e,t,o){"use strict";o.d(t,"d",(function(){return l})),o.d(t,"e",(function(){return c})),o.d(t,"c",(function(){return s})),o.d(t,"a",(function(){return d})),o.d(t,"b",(function(){return p})),o.d(t,"i",(function(){return u})),o.d(t,"f",(function(){return b})),o.d(t,"g",(function(){return m})),o.d(t,"h",(function(){return h}));var i=o(13);const r=()=>i.a.get("mode")||"page",n="internal_story"===r(),a="external_story"===r(),l=n||a,c="template"===r(),s="internal_popup"===r(),d="external_popup"===r(),p=s||d,u=e=>(({mode:e})=>"external_story"===e)(e)||(({mode:e})=>"internal_story"===e)(e),b=({mode:e})=>"external_popup"===e,m=({mode:e})=>"internal_popup"===e,h=e=>b(e)||m(e)},function(e,t,o){"use strict";var i;o.d(t,"a",(function(){return r})),i||(i={});const r=e=>!!e.length},function(e,t,o){"use strict";var i=o(1),r=o.n(i),n=o(10),a=o(137),l=o(5),c=o.n(l),s=o(60),d=o(105);const p=e=>{const{className:t,opened:o,children:i,onClose:n}=e,l=c()("brz-ed-fixed",t);return r.a.createElement(d.a,{node:window.parent.document.body},r.a.createElement(a.CSSTransition,{in:o,classNames:"brz-ed-fade",timeout:150},o?r.a.createElement("div",{className:l},r.a.createElement(s.a,{keyNames:["esc"],id:"key-helper-prompt-esc",onKeyUp:n}),r.a.createElement("div",{className:"brz-ed-fixed-overlay",onClick:n}),r.a.createElement("div",{className:"brz-ed-fixed-scroll"},i)):r.a.createElement("span",null)))};p.defaultProps={className:"",opened:!1,onClose:n.default.noop},t.a=p},function(e,t,o){"use strict";o.d(t,"h",(function(){return i})),o.d(t,"g",(function(){return r})),o.d(t,"i",(function(){return n})),o.d(t,"a",(function(){return a})),o.d(t,"d",(function(){return l})),o.d(t,"c",(function(){return c})),o.d(t,"f",(function(){return s})),o.d(t,"b",(function(){return d})),o.d(t,"e",(function(){return p}));const i=e=>"items"in e.data,r=e=>"value"in e.data&&"normal"===e.meta.type,n=e=>"value"in e.data&&"popup"===e.meta.type,a=e=>{if("string"!=typeof e||!e.startsWith("author|"))return!1;const[t,o]=e.split("|");return""===o},l=e=>{if("string"!=typeof e)return!1;if(!e.startsWith("author|"))return!1;const[t,o]=e.split("|");return""!==o},c=e=>{if("string"!=typeof e)return!1;if(!e.startsWith("in|"))return!1;const[t,o,i]=e.split("|");return""!==o&&void 0===i},s=e=>{if("string"!=typeof e)return!1;if(!e.startsWith("in|"))return!1;const[t,o,i]=e.split("|");return""!==o&&void 0!==i},d=e=>{if("string"!=typeof e)return!1;if(!e.startsWith("child|"))return!1;const[t,o,i]=e.split("|");return""!==o&&void 0===i},p=e=>{if("string"!=typeof e)return!1;if(!e.startsWith("child|"))return!1;const[t,o,i]=e.split("|");return""!==o&&void 0!==i}},function(e,t,o){"use strict";o.d(t,"b",(function(){return d}));var i=o(2),r=o(10),n=o(1),a=o.n(n),l=o(5),c=o.n(l),s=o(207);o.d(t,"a",(function(){return s.a}));class d extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{currentValue:this.props.defaultValue}),Object(i.a)(this,"onItemClick",e=>{this.setState({currentValue:e}),this.props.onChange(e)}),Object(i.a)(this,"getCurrent",()=>r.default.find(this.props.children,e=>e.props.value===this.state.currentValue)||this.props.children[0])}renderOptions(){return a.a.Children.map(this.props.children,(e,t)=>a.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,i=c()("brz-control__radio",e);return a.a.createElement("div",{className:i},this.renderOptions(),a.a.createElement("input",{className:"brz-input",name:t,type:"hidden",value:o}))}renderForView(){const e=c()("brz-control__radio",this.props.className);return a.a.createElement("div",{className:e},this.renderOptions())}render(){return this.renderForEdit()}}Object(i.a)(d,"defaultProps",{name:"defaultName",defaultValue:"",onChange:r.default.noop})},,,function(e,t,o){"use strict";o.d(t,"a",(function(){return w}));var i=o(12),r=o(37),n=o(1),a=o.n(n),l=o(10),c=o(5),s=o.n(c),d=o(16);const p=({onRemove:e,children:t})=>{const o="string"==typeof t?t:"";return a.a.createElement("div",{className:"brz-ed-control__multiSelect--tag"},a.a.createElement("div",{className:"brz-ed-control__multiSelect--tag--value",title:o},t),a.a.createElement(d.b,{icon:"nc-trash",onClick:e}))};function u(e,t){if(t.length<=1)return t[0]?t[0]:void 0;const o=t.indexOf(e);return-1===o?t[0]:0===o?t[t.length-1]:o>=t.length?t[t.length-2]:t[o-1]}function b(e,t){if(t.length<=1)return t[0]?t[0]:void 0;const o=t.indexOf(e);return-1===o||o>=t.length-1?t[0]:t[o+1]}var m=o(323),h=o(301),g=o(1008),v=o(1012),y=o(63),f=o(23);function S(e){let{children:t,active:o,disabled:n}=e,l=Object(r.a)(e,["children","active","disabled"]);const c=s()({"brz-ed-control__multiSelect__option":!0,"brz-ed-control__multiSelect__option--active":o,"brz-ed-control__multiSelect__option--disabled":n}),d="string"==typeof t?t:"";return a.a.createElement("li",Object(i.a)({className:c,title:d},l),t)}var O=o(20);function x({className:e,placeholder:t="",children:o,tags:r,editable:c,size:p,onKeyDown:u,onType:b,onSelect:x,inputValue:C,scroll:w=5,onOpen:B}){const j=Object(n.useRef)(null),T=Object(n.useRef)(null),[P,E]=Object(n.useState)(0),[_,k]=Object(n.useState)(!1);Object(n.useEffect)(()=>E(0),[o.length]);const z=({scrollHeight:e})=>{var t,i,r;P||E((t=e,(i=o.length)<=(r=w)?t:t/i*r))},F=Object(n.useCallback)(Object(O.e)(x,Object(l.property)("value"),Object(l.property)("props")),[x]);Object(n.useEffect)(()=>{k(!0)},[]);const R=s()("brz-ed-control__multiSelect","brz-ed-control__multiSelect--size-"+p,e);return a.a.createElement("div",{ref:j,className:R},a.a.createElement(h.a,null,a.a.createElement(m.a,{key:Number(_),environment:(H=j.current,(null==H||null===(L=H.ownerDocument)||void 0===L?void 0:L.defaultView)||window),onChange:F,itemToString:e=>f.c(null==e?void 0:e.key)},({openMenu:e,isOpen:n,getMenuProps:l,getItemProps:s})=>{const p=()=>{var t;n||(B&&B(),e()),null===(t=T.current)||void 0===t||t.focus()};return a.a.createElement("div",null,a.a.createElement(g.a,null,({ref:e})=>a.a.createElement("div",{ref:e,className:"brz-ed-control__multiSelect--value-container",onClick:()=>p()},r,c&&a.a.createElement("input",{placeholder:t,ref:T,value:C,size:(null==C?void 0:C.length)||1,onChange:({target:e})=>{null==b||b(e.value),p()},onKeyDown:u,onFocus:()=>{p()},className:"brz-input brz-ed-control__multiSelect--value"}),!c&&a.a.createElement(a.a.Fragment,null,0===r.length&&a.a.createElement("span",{className:"brz-ed-control__multiSelect--placeholder"},t),a.a.createElement(d.b,{icon:"nc-stre-down",className:"brz-control__select--arrow"})))),a.a.createElement("div",{className:"brz-ed-control__multiSelect__menu-container"},a.a.createElement(v.a,null,({ref:e,style:t,placement:r})=>{if(!n)return null;const c=o.map((e,t)=>{const o=s({item:e,key:t,disabled:e.props.disabled});return a.a.createElement(S,Object(i.a)({key:t},o,e.props))});return c.length?a.a.createElement("div",{ref:e,style:t,className:"brz-ed-control__multiSelect__menu","data-placement":r},a.a.createElement(y.Scrollbars,{onUpdate:z,autoHeight:!0,autoHeightMax:P,renderThumbVertical:e=>a.a.createElement("div",Object(i.a)({className:"brz-ed-control__multiSelect__scroll-thumb"},e))},a.a.createElement("ul",Object(i.a)({},l(),{className:"brz-ul"}),c))):null})))})));var H,L}function C({className:e,value:t,children:o,onChange:r,scroll:c,editable:s=!0,size:d="medium",placeholder:m="",hideSelected:h=!0,onOpen:g,inputValue:v,onInputChange:y}){const[f,O]=Object(n.useState)();Object(n.useEffect)(()=>{void 0!==f&&O(void 0)},[o]);const C=t.reduce((e,i)=>{const n=o.find(e=>e.props.value===i);return void 0!==n&&e.push(a.a.createElement(p,{key:n.props.value,onRemove:()=>(e=>{r(t.filter(t=>t!==e))})(n.props.value)},n.props.children)),e},[]),w=o.filter(({props:e})=>!(h&&t.includes(e.value)));return a.a.createElement(x,{className:e,placeholder:m,size:d,inputValue:v,tags:C,editable:s,scroll:c,onSelect:e=>{r(Object(l.uniq)([...t,e])),null==y||y("")},onKeyDown:e=>{const o=e.key;switch(o){case"ArrowDown":case"ArrowUp":{const t=w.filter(e=>!e.props.disabled);if(t.length>0){const i=void 0!==f?("ArrowDown"===o?b:u)(f,t.map(e=>e.props.value)):t[0].props.value;O(i),e.preventDefault()}break}case"Enter":void 0!==f&&(r(Object(l.uniq)([...t,f])),null==y||y(""));break;case"Backspace":null!=v&&v.length||!t.length||r(Object(l.initial)(t))}},onType:y,onOpen:g},w.map(({props:e})=>{return a.a.createElement(S,Object(i.a)({},e,{active:(o=e.value,f===o||t.includes(o)),key:e.value}));var o}))}function w(e){let{value:t,onChange:o,children:c,className:d}=e,p=Object(r.a)(e,["value","onChange","children","className"]);const u=void 0!==t?[t]:[],b=Object(n.useCallback)(Object(O.e)(o,l.last),[o]);return a.a.createElement(C,Object(i.a)({},p,{className:s()(d,"brz-ed-control__select-single"),onChange:b,value:u,hideSelected:!1}),c)}},function(e,t,o){"use strict";o.d(t,"a",(function(){return m}));var i=o(2),r=o(1),n=o.n(r),a=o(10),l=o(42);function c(e,t){const o=s(t);return o>0?e.toFixed(o):String(e)}function s(e){const[,t]=String(e).split(".");return t?t.length:0}function d(e,t,o,i){return function(e,t,o=0){const i=10**s(t);e*=i,t*=i,o*=i;return(Math.ceil((e-o)/t)*t+o)/i}(Object(l.b)(e,t,o),i,t)}const p=b.bind(null,"add"),u=b.bind(null,"sub");function b(e,t,o){const i=s(t),r=s(o),n=10**Math.max(i,r),a=t*n,l=o*n;let c;switch(e){case"add":c=a+l;break;case"sub":c=a-l;break;default:throw new Error("operation type unknown "+e)}return c/n}class m extends n.a.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{text:c(this.props.value,this.props.step),value:this.props.value,prevPropsValue:this.props.value}),Object(i.a)(this,"handleChange",e=>{this.setState({text:e.target.value},()=>{this.props.onTextChange(this.state.text),this.debouncedOnChange()})}),Object(i.a)(this,"debouncedOnChange",a.default.debounce(()=>{this.setState((e,t)=>{const{min:o,max:i,step:r}=t,{text:n,value:a}=e,l=parseFloat(n),s=d("number"!=typeof l||Number.isNaN(l)?a:l,o,i,r);return{text:c(s,r),value:s}},()=>{this.props.onTextChange(this.state.text),this.props.onChange(this.state.value)})},1e3))}static getDerivedStateFromProps(e,t){return e.value!==t.prevPropsValue?{text:c(e.value,e.step),value:e.value,prevPropsValue:e.value}:null}componentWillUnmount(){this.debouncedOnChange.cancel()}increment(){this.setState((e,t)=>{const{min:o,max:i,step:r}=t,{text:n,value:a}=e,l=Number(n),s=d(p(l,r),o,i,r);return s!==a?{text:c(s,r),value:s}:null},()=>{this.props.onTextChange(this.state.text),this.props.onChange(this.state.value)})}decrement(){this.setState((e,t)=>{const{min:o,max:i,step:r}=t,{text:n,value:a}=e,l=Number(n),s=d(u(l,r),o,i,r);return s!==a?{text:c(s,r),value:s}:null},()=>{this.props.onTextChange(this.state.text),this.props.onChange(this.state.value)})}getText(){return this.state.text}render(){const{className:e,min:t,max:o,step:i,onFocus:r,onBlur:a,onMouseEnter:l,onMouseLeave:c,size:s}=this.props,{text:d}=this.state;return n.a.createElement("input",{className:e,type:"number",value:d,min:t,max:o,step:i,size:s,onFocus:r,onBlur:a,onChange:this.handleChange,onMouseEnter:l,onMouseLeave:c})}}Object(i.a)(m,"defaultProps",{className:"",value:0,min:0,max:100,step:1,round:!0,onFocus:a.default.noop,onBlur:a.default.noop,onTextChange:a.default.noop,onChange:a.default.noop})},function(e,t,o){"use strict";o.d(t,"a",(function(){return p})),o.d(t,"b",(function(){return f}));o(253);var i=o(13),r=o(62),n=o(107);function a(e,t,o=[]){const i=window.getComputedStyle(t);if(o.push({clone:e,originalStyle:i}),!(t instanceof HTMLIFrameElement))for(let i=0;i<e.children.length;i++)a(e.children[i],t.children[i],o);return o}function l(e){const{clone:t,originalStyle:o}=e;if(o.cssText)t.style.cssText=o.cssText;else for(let e=0;e<o.length;e++){const i=o[e];t.style.setProperty(i,o.getPropertyValue(i),o.getPropertyPriority(i))}}class c{constructor({tasks:e,taskCb:t,msPerFrame:o}){this._tasks=e,this._taskCb=t,this._msPerFrame=o,this._process=this._process.bind(this)}schedule(){return this._currentTaskIndex=0,new Promise((e,t)=>{this._resolve=e,this._reject=t,requestAnimationFrame(this._process)})}_process(e){do{if(this._taskCb(this._tasks[this._currentTaskIndex]),this._currentTaskIndex===this._tasks.length-1)return void requestAnimationFrame(this._resolve);this._currentTaskIndex++}while(performance.now()-e<this._msPerFrame);requestAnimationFrame(this._process)}}var s=o(57);let d;const p=()=>{if(d)return Promise.resolve(!0);if(!1===d)return Promise.reject(!1);const e=document.createElement("canvas");e.width=100,e.height=100;const t=e.getContext("2d");t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,100,100);const o=e.toDataURL();t.fillStyle="red",t.fillRect(0,0,100,100);const i=new Image;i.src=o;const r=u(100,100,0,0,i);return b(r).then(e=>{t.drawImage(e,0,0);const i=t.getImageData(0,0,100,100).data;if(!m(i))return d=!1,Promise.reject(d);t.fillStyle="red",t.fillRect(0,0,100,100);const r=document.createElement("div");r.style.backgroundImage=`url(${o})`,r.style.height="100px";const n=u(100,100,0,0,r);return b(n)}).then(e=>{t.drawImage(e,0,0);const o=t.getImageData(0,0,100,100).data;return d=m(o),d}).catch(()=>(d=!1,d))},u=(e,t,o,i,r)=>{const n="http://www.w3.org/2000/svg",a=document.createElementNS(n,"svg"),l=document.createElementNS(n,"foreignObject");return a.setAttributeNS(null,"width",e),a.setAttributeNS(null,"height",t),l.setAttributeNS(null,"width","100%"),l.setAttributeNS(null,"height","100%"),l.setAttributeNS(null,"x",o),l.setAttributeNS(null,"y",i),l.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(l),l.appendChild(r),a},b=e=>new Promise((t,o)=>{const i=new Image;i.onload=()=>t(i),i.onerror=o,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}),m=e=>0===e[0]&&255===e[1]&&0===e[2]&&255===e[3],h={},g=new Worker((v=i.a.getAll(),(null!==(y=v.urls.worker)&&void 0!==y?y:Object(s.a)("editor/js"))+"/screenshots.worker.js"),{type:"module"});var v,y;async function f(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 async function(e){const t=e,o=e.cloneNode(!0),i=new c({tasks:a(o,t),taskCb:l,msPerFrame:10});return await i.schedule(),o}(e)}catch(e){console.error("cloneinline",e)}const n=function(e){let{width:t,height:o}=e.getBoundingClientRect();return{width:t,height:o}}(e),s=new Blob([o.outerHTML],{type:"text/plain"}),d=URL.createObjectURL(s);return new Promise((e,t)=>{const o=Object(r.a)(3),{assets:a,site:l}=i.a.get("urls");h[o]=[e,t,n,d],g.postMessage({id:o,url:d,assetUrl:a,siteUrl:l,options:n,proxyUrl:S()})})}function S(){{var e;const t=i.a.get("urls").site,o=null!==(e=i.a.get("prefix"))&&void 0!==e?e:"brizy";return Object(n.e)(t)?`${t}&${o}_file=`:`${t}?${o}_file=`}}g.onmessage=async e=>{const{id:t,url:o}=e.data,i=await fetch(o),r=await i.text(),[n,a,l,c]=h[t];URL.revokeObjectURL(c),URL.revokeObjectURL(o);const s=document.createElement("img");s.onload=async()=>{let e=s.width,t=s.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(s,0,0,e,t);const i=o.toDataURL("image/jpeg",1);n({src:i,width:e,height:t})},s.onerror=a,s.crossOrigin="anonymous",s.src=r,delete h[t]}},function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return a}));var i=o(13),r=o(80);let n;!function(e){e[e.include=1]="include",e[e.exclude=2]="exclude"}(n||(n={}));const a=e=>Object(r.a)(i.a.getAll())},,function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"b",(function(){return n}));const i={};function r(e,t,o=10){void 0===i[e]&&(i[e]=[]);const r={cb:t,priority:o},n=i[e].findIndex(({priority:e})=>r.priority<e);-1!==n?i[e].splice(n,0,r):i[e].push(r)}function n(e,t,...o){return void 0===i[e]?t:i[e].reduce((e,{cb:t})=>t(e,...o),t)}},,,,function(e,t,o){"use strict";o.d(t,"b",(function(){return r})),o.d(t,"a",(function(){return l})),o.d(t,"c",(function(){return c}));var i=o(10);function r(e,t){let o=!1;for(let i=0;i<t.length;i++){for(let l=0;l<e.length;l++){if(r=e[l],a=t[i],r.type===a.type&&r.id&&a.id&&r.id===a.id){e[l]=n(e[l],t[i]),o=!0;break}o=!1}o||e.push(t[i])}var r,a;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 i.default.sortBy(t,"position")}(e)}function n(e,t){for(const o of Object.keys(t))"columns"===o||"options"===o||"tabs"===o?e[o]=r(e[o]||[],t[o]||[]):"disabled"===o&&!0===t[o]&&(e[o]=t[o]);return e}var a=o(59);const l=e=>Object(a.b)(["id","type"],e),c=(e,t)=>l(t)?Object(a.c)(c.bind(null,e),e(t)):Object(a.c)(c.bind(null,e),t)},,,function(e,t,o){"use strict";o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){return l})),o.d(t,"d",(function(){return c})),o.d(t,"b",(function(){return s}));var i=o(14);let r;!function(e){e.px="px",e.em="em",e.rem="rem",e.vw="vw"}(r||(r={}));const n=Object.values(r),a=n.map(e=>({title:e,value:e})),l=r.px,c=e=>n.includes(e),s=Object(i.c)(c)},function(e,t,o){"use strict";o.d(t,"a",(function(){return a})),o.d(t,"g",(function(){return l})),o.d(t,"d",(function(){return c})),o.d(t,"h",(function(){return n})),o.d(t,"b",(function(){return m})),o.d(t,"c",(function(){return h})),o.d(t,"f",(function(){return g})),o.d(t,"e",(function(){return y}));o(65);var i=o(2),r=o(120);const n={class:{typographyFontStyle:{prefix:"brz-tp",defaultValue:"paragraph"},tabletTypographyFontSize:{prefix:"brz-fs-sm-im",defaultValue:null},mobileTypographyFontSize:{prefix:"brz-fs-xs-im",defaultValue:null},tabletTypographyFontSizeSuffix:{prefix:"brz-fs-s-sm-im",defaultValue:null},mobileTypographyFontSizeSuffix:{prefix:"brz-fs-s-xs-im",defaultValue:null},tabletTypographyLineHeight:{prefix:"brz-lh-sm-im",defaultValue:null},mobileTypographyLineHeight:{prefix:"brz-lh-xs-im",defaultValue:null},tabletTypographyFontWeight:{prefix:"brz-fw-sm-im",defaultValue:null},mobileTypographyFontWeight:{prefix:"brz-fw-xs-im",defaultValue:null},tabletTypographyLetterSpacing:{prefix:"brz-ls-sm-im",defaultValue:null},mobileTypographyLetterSpacing:{prefix:"brz-ls-xs-im",defaultValue:null}},style:{},attribute:{}},a={class:{typographyFontStyle:{prefix:"brz-tp-lg",defaultValue:""},tabletTypographyFontStyle:{prefix:"brz-tp-sm",defaultValue:null},mobileTypographyFontStyle:{prefix:"brz-tp-xs",defaultValue:null},typographyFontFamily:{prefix:"brz-ff",defaultValue:"lato"},typographyFontFamilyType:{prefix:"brz-ft",defaultValue:"google"},typographyFontSize:{prefix:"brz-fs-lg",defaultValue:16},tabletTypographyFontSize:{prefix:"brz-fs-sm",defaultValue:null},mobileTypographyFontSize:{prefix:"brz-fs-xs",defaultValue:null},typographyFontSizeSuffix:{prefix:"brz-fss-lg",defaultValue:"px"},tabletTypographyFontSizeSuffix:{prefix:"brz-fss-sm",defaultValue:null},mobileTypographyFontSizeSuffix:{prefix:"brz-fss-xs",defaultValue:null},typographyFontWeight:{prefix:"brz-fw-lg",defaultValue:400},tabletTypographyFontWeight:{prefix:"brz-fw-sm",defaultValue:null},mobileTypographyFontWeight:{prefix:"brz-fw-xs",defaultValue:null},typographyLineHeight:{prefix:"brz-lh-lg",defaultValue:1.3},tabletTypographyLineHeight:{prefix:"brz-lh-sm",defaultValue:null},mobileTypographyLineHeight:{prefix:"brz-lh-xs",defaultValue:null},typographyLetterSpacing:{prefix:"brz-ls-lg",defaultValue:0},tabletTypographyLetterSpacing:{prefix:"brz-ls-sm",defaultValue:null},mobileTypographyLetterSpacing:{prefix:"brz-ls-xs",defaultValue:null},contentHorizontalAlign:{prefix:"brz-text-lg",defaultValue:"left"},tabletContentHorizontalAlign:{prefix:"brz-text-sm",defaultValue:null},mobileContentHorizontalAlign:{prefix:"brz-text-xs",defaultValue:null},marginTop:{prefix:"brz-mt-lg",defaultValue:0},tabletMarginTop:{prefix:"brz-mt-sm",defaultValue:null},mobileMarginTop:{prefix:"brz-mt-xs",defaultValue:null},marginBottom:{prefix:"brz-mb-lg",defaultValue:0},tabletMarginBottom:{prefix:"brz-mb-sm",defaultValue:null},mobileMarginBottom:{prefix:"brz-mb-xs",defaultValue:null},"block-colorPalette":{prefix:"brz-bcp",defaultValue:""}},style:{},attribute:{}},l={class:{colorPalette:{prefix:"brz-cp",defaultValue:""},shadowColorPalette:{prefix:"brz-scp",defaultValue:""},prepopulation:{prefix:"brz-pre-population",defaultValue:""},capitalize:{prefix:"brz-capitalize",defaultValue:"off"}},style:{opacity:{prefix:"opacity",defaultValue:1},shadow:{prefix:"text-shadow",defaultValue:""}},attribute:{populationColor:{prefix:"data-color",defaultValue:""}}},c=r.a.all([a,{}]),s=r.a.all([c,l]);r.a.all([s,n]);var d=o(50),p=o(42);function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function b(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(i.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}const m=e=>h(e).v,h=e=>{const t=g(),o=v(e);return{v:b(b({},t),o),vs:{},vd:t}},g=()=>{const e={};return Object.entries(c).forEach(([,t])=>{Object.entries(t).forEach(([t,{defaultValue:o}])=>{e[t]=o})}),e},v=e=>{const t={},o=d.b(e.attr("class"));if(o){const e=new RegExp("^(.*)-(.*$)");o.split(" ").forEach(o=>{const i=o.match(e);if(i){const[,e,o]=i,r=function(e){const t={};return Object.entries(s).forEach(([,e])=>{Object.entries(e).forEach(([e,{prefix:o}])=>{t[o]=e})}),Object.entries(n).forEach(([,e])=>{Object.entries(e).forEach(([e,{prefix:o}])=>{t[o]=e})}),t[e]}(e);t[r]=function(e){if("empty"===e)return"";if(void 0===e)return null;e.includes(",")&&(e=e.split(",")[0]);return Object(p.e)(e.replace("m_","-").replace("_","."))?(t=e,Number(t.replace("m_","-").replace("_","."))):e;var t}(o)}})}return t};function y(e){return""===e?"empty":Object(p.e)(e)?String(e).replace(".","_").replace("-","m_"):e}},,function(e,t,o){"use strict";o.d(t,"a",(function(){return d})),o.d(t,"b",(function(){return p})),o.d(t,"d",(function(){return b})),o.d(t,"c",(function(){return m}));var i=o(14),r=o(0),n=o(47),a=o(53),l=o(108),c=o(33),s=o(29);let d;!function(e){e.none="none",e.down="down",e.right="right",e.up="up",e.left="left"}(d||(d={}));const p=a.d({type:Object(i.b)(Object(n.c)("name"),c.d,Object(i.c)(Object(c.e)(c.a.Fade))),direction:a.b([Object(i.b)(Object(n.c)("name"),s.b,e=>{switch(e){case s.a.fadeIn:return d.none;case s.a.fadeInDown:case s.a.fadeInDownBig:return d.down;case s.a.fadeInRight:case s.a.fadeInRightBig:return d.right;case s.a.fadeInUp:case s.a.fadeInUpBig:return d.up;case s.a.fadeInLeft:case s.a.fadeInLeftBig:return d.left}}),()=>d.none]),big:Object(i.b)(Object(n.c)("name"),s.b,e=>{switch(e){case s.a.fadeIn:case s.a.fadeInDown:case s.a.fadeInRight:case s.a.fadeInUp:case s.a.fadeInLeft:return!1;case s.a.fadeInDownBig:case s.a.fadeInRightBig:case s.a.fadeInUpBig:case s.a.fadeInLeftBig:return!0}}),duration:l.b,delay:l.a,infiniteAnimation:l.c}),u=e=>{switch(e.direction){case d.none:return s.a.fadeIn;case d.down:switch(e.big){case!0:return s.a.fadeInDownBig;case!1:return s.a.fadeInDown}case d.right:switch(e.big){case!0:return s.a.fadeInRightBig;case!1:return s.a.fadeInRight}case d.up:switch(e.big){case!0:return s.a.fadeInUpBig;case!1:return s.a.fadeInUp}case d.left:switch(e.big){case!0:return s.a.fadeInLeftBig;case!1:return s.a.fadeInLeft}}},b=e=>({name:u(e),duration:e.duration,delay:e.delay,infiniteAnimation:e.infiniteAnimation}),m=e=>{switch(e){case d.none:return Object(r.a)("None");case d.up:return Object(r.a)("Up");case d.right:return Object(r.a)("Right");case d.down:return Object(r.a)("Down");case d.left:return Object(r.a)("Left")}}},function(e,t,o){"use strict";var i=o(279);o.d(t,"a",(function(){return i.a})),o.d(t,"b",(function(){return i.b})),o.d(t,"c",(function(){return i.c})),o.d(t,"d",(function(){return i.d})),o.d(t,"e",(function(){return i.e})),o.d(t,"f",(function(){return i.f})),o.d(t,"g",(function(){return i.g})),o.d(t,"h",(function(){return i.h})),o.d(t,"i",(function(){return i.i})),o.d(t,"j",(function(){return i.j})),o.d(t,"k",(function(){return i.k}))},,function(e,t,o){"use strict";o.d(t,"a",(function(){return d}));var i=o(1),r=o.n(i),n=o(5),a=o.n(n),l=o(262),c=o(134);function s({value:{number:e,unit:t},onChange:o,className:i,min:n=-99999,max:l=99999,step:s,units:d}){const p=i=>{i!==t&&o({number:e,unit:i})};return r.a.createElement("div",{className:a()("brz-ed-control__number-unit",i)},r.a.createElement("div",{className:"brz-ed-control__number-unit__input"},r.a.createElement("div",{className:"brz-invisible",style:{width:(u=e,24*Math.min(1,Math.max(1,String(u).length-4)))}},e),r.a.createElement(c.a,{className:"brz-input",value:e,onChange:i=>{i!==e&&o({number:i,unit:t})},min:n,max:l,step:s})),d.map(({value:e,title:o},i)=>{const n=a()({"brz-ed-control__number-unit__unit":!0,"brz-ed-control__number-unit__unit--active":d.length>1&&e===t});return r.a.createElement("div",{key:i,className:n,onClick:p.bind(null,e)},o)}));var u}function d({value:{number:e,unit:t},onChange:o,className:n,min:c,max:d,inputMin:p,inputMax:u,step:b,units:m}){const h=Object(i.useCallback)((e,i)=>o({number:e,unit:t},i),[o,t]),g=Object(i.useCallback)(e=>o(e,{editing:!1}),[o]);return r.a.createElement("div",{className:a()("brz-ed__control--number-slider",n)},r.a.createElement(l.a,{value:e,onChange:h,step:b,min:c,max:d}),r.a.createElement(s,{units:m,step:b,min:p?Math.min(c,p):void 0,max:u?Math.max(d,u):void 0,value:{number:e,unit:t},onChange:g}))}},function(e,t,o){"use strict";var i=o(2),r=o(1),n=o.n(r);class a extends r.Component{render(){const{title:e,items:t,children:o}=this.props;return n.a.createElement("div",{title:e,className:"brz-control__select-optgroup"},n.a.createElement("div",{className:"brz-control__select-optgroup-label"},o),t)}}Object(i.a)(a,"defaultProps",{title:"",active:"",items:[]}),t.a=a},function(e,t,o){"use strict";o.d(t,"b",(function(){return d})),o.d(t,"c",(function(){return p})),o.d(t,"a",(function(){return u}));var i=o(2),r=o(38),n=o(10),a=o(18);function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function c(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(i.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}const s=["id","itemId","title","url","target","items","megaMenuItems","attrTitle","classes","current"];function d(e){return Object(a.s)(Object(a.r)(({type:e,value:t})=>({type:e,value:n.default.pick(t,s)}),e))}function p(e,t){return e.map(e=>Object(r.a)(e,o=>{if(Object.assign(o.value,t[e.value.id]),!o.value.megaMenuItems){const e=Object(a.s)({type:"SectionMegaMenu",value:{items:[]}});o.value.megaMenuItems=[e]}o.value.items=p(e.value.items,t)}))}function u(e){return e.reduce((e,t)=>c(c({},e),{},{[t.value.id]:n.default.omit(t.value,[...s.filter(e=>"megaMenuItems"!==e),"_id"])},t.value.items.length>0?u(t.value.items):{}),{})}},,function(e,t,o){"use strict";o.d(t,"b",(function(){return u})),o.d(t,"d",(function(){return b})),o.d(t,"a",(function(){return m})),o.d(t,"c",(function(){return h})),o.d(t,"g",(function(){return g})),o.d(t,"f",(function(){return v})),o.d(t,"e",(function(){return y}));var i=o(23),r=o(25),n=o(53),a=o(14),l=o(20),c=o(112),s=o(238),d=o(149);const p=e=>t=>t(e),u=Object(n.c)({type:Object(a.d)(Object(a.b)(p("type"),i.d,s.a),Object(l.g)("grouped")),value:Object(a.d)(Object(a.b)(p("value"),r.b),Object(l.g)(0)),tempValue:Object(a.d)(Object(a.b)(p("tempValue"),r.b),Object(l.g)(0)),unit:Object(a.d)(Object(a.b)(p("suffix"),i.d,c.a),Object(l.g)("px")),tempUnit:Object(a.d)(Object(a.b)(p("tempSuffix"),i.d,c.a),Object(l.g)("px")),top:Object(a.d)(Object(a.b)(p("top"),r.b),Object(l.g)(0)),tempTop:Object(a.d)(Object(a.b)(p("tempTop"),r.b),Object(l.g)(0)),topUnit:Object(a.d)(Object(a.b)(p("topSuffix"),i.d,c.a),Object(l.g)("px")),tempTopUnit:Object(a.d)(Object(a.b)(p("tempTopSuffix"),i.d,c.a),Object(l.g)("px")),right:Object(a.d)(Object(a.b)(p("right"),r.b),Object(l.g)(0)),tempRight:Object(a.d)(Object(a.b)(p("tempRight"),r.b),Object(l.g)(0)),rightUnit:Object(a.d)(Object(a.b)(p("rightSuffix"),i.d,c.a),Object(l.g)("px")),tempRightUnit:Object(a.d)(Object(a.b)(p("tempRightSuffix"),i.d,c.a),Object(l.g)("px")),bottom:Object(a.d)(Object(a.b)(p("bottom"),r.b),Object(l.g)(0)),tempBottom:Object(a.d)(Object(a.b)(p("tempBottom"),r.b),Object(l.g)(0)),bottomUnit:Object(a.d)(Object(a.b)(p("bottomSuffix"),i.d,c.a),Object(l.g)("px")),tempBottomUnit:Object(a.d)(Object(a.b)(p("tempBottomSuffix"),i.d,c.a),Object(l.g)("px")),left:Object(a.d)(Object(a.b)(p("left"),r.b),Object(l.g)(0)),tempLeft:Object(a.d)(Object(a.b)(p("tempLeft"),r.b),Object(l.g)(0)),leftUnit:Object(a.d)(Object(a.b)(p("leftSuffix"),i.d,c.a),Object(l.g)("px")),tempLeftUnit:Object(a.d)(Object(a.b)(p("tempLeftSuffix"),i.d,c.a),Object(l.g)("px"))}),b=e=>({type:e.type,value:e.value,tempValue:e.tempValue,suffix:e.unit,tempSuffix:e.tempUnit,top:e.top,tempTop:e.tempTop,topSuffix:e.topUnit,tempTopSuffix:e.tempTopUnit,right:e.right,tempRight:e.tempRight,rightSuffix:e.rightUnit,tempRightSuffix:e.tempRightUnit,bottom:e.bottom,tempBottom:e.tempBottom,bottomSuffix:e.bottomUnit,tempBottomSuffix:e.tempBottomUnit,left:e.left,tempLeft:e.tempLeft,leftSuffix:e.leftUnit,tempLeftSuffix:e.tempLeftUnit}),m={type:"grouped",value:0,tempValue:0,unit:"px",tempUnit:"px",top:0,tempTop:0,topUnit:"px",tempTopUnit:"px",right:0,tempRight:0,rightUnit:"px",tempRightUnit:"px",bottom:0,tempBottom:0,bottomUnit:"px",tempBottomUnit:"px",left:0,tempLeft:0,leftUnit:"px",tempLeftUnit:"px"},h=(Object(n.d)({number:e=>e.number,unit:e=>e.unit}),e=>{switch(e){case"grouped":return"nc-styling-all";case"ungrouped":return"nc-styling-individual";case"top":return"nc-styling-top";case"right":return"nc-styling-right";case"bottom":return"nc-styling-bottom";case"left":return"nc-styling-left"}}),g=e=>{switch(e){case"all":return d.k;case"top":return d.g;case"right":return d.e;case"bottom":return d.a;case"left":return d.c}},v=e=>{switch(e){case"all":return d.j;case"top":return d.h;case"right":return d.f;case"bottom":return d.b;case"left":return d.d}};function y(e,t){switch(e){case"all":return{all:{number:t.value,unit:t.unit},top:{number:t.top,unit:t.topUnit},right:{number:t.right,unit:t.rightUnit},bottom:{number:t.bottom,unit:t.bottomUnit},left:{number:t.left,unit:t.leftUnit}};case"vertical":return{all:{number:t.value,unit:t.unit},top:{number:t.top,unit:t.topUnit},bottom:{number:t.bottom,unit:t.bottomUnit}};case"horizontal":return{all:{number:t.value,unit:t.unit},right:{number:t.right,unit:t.rightUnit},left:{number:t.left,unit:t.leftUnit}}}}},,,,,,function(e,t,o){"use strict";o.d(t,"a",(function(){return y})),o.d(t,"b",(function(){return f}));var i=o(19),r=o(312),n=o(313),a=o(314),l=o(315),c=o(316),s=o(317),d=o(318),p=o(319),u=o(53),b=o(73),m=o(77),h=o(95),g=o(83),v=o(104);const y=["vertical","horizontal","transparency","blur","rotate","scale","mouseTrack","mouseTilt"],f=(g.b,v.d(g.b,g.a),g.b,v.d(g.b,g.a),g.b,g.b,v.d(g.b,g.a),v.d(g.b,g.a),g.b,g.b,v.d(g.b,g.a),g.b,v.d(g.b,g.a),Object(u.c)({active:Object(u.a)(Object(i.mPipe)(Object(b.a)("active"),Object(i.pass)(e=>y.includes(e)))),vertical:Object(u.a)(Object(i.mPipe)(Object(h.d)("vertical"),Object(i.pass)(m.e),r.a)),horizontal:Object(u.a)(Object(i.mPipe)(Object(h.d)("horizontal"),Object(i.pass)(m.e),n.a)),transparency:Object(u.a)(Object(i.mPipe)(Object(h.d)("transparency"),Object(i.pass)(m.e),a.a)),blur:Object(u.a)(Object(i.mPipe)(Object(h.d)("blur"),Object(i.pass)(m.e),l.a)),rotate:Object(u.a)(Object(i.mPipe)(Object(h.d)("rotate"),Object(i.pass)(m.e),c.a)),scale:Object(u.a)(Object(i.mPipe)(Object(h.d)("scale"),Object(i.pass)(m.e),s.a)),mouseTrack:Object(u.a)(Object(i.mPipe)(Object(h.d)("mouseTrack"),Object(i.pass)(m.e),d.a)),mouseTilt:Object(u.a)(Object(i.mPipe)(Object(h.d)("mouseTilt"),Object(i.pass)(m.e),p.a))}))},function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));const i=e=>t=>e.includes(t)?t:void 0},,,,,,,function(e,t,o){"use strict";o.d(t,"a",(function(){return d}));var i=o(2),r=o(1),n=o.n(r),a=o(10),l=o(5),c=o.n(l),s=o(16);class d extends n.a.Component{constructor(...e){super(...e),Object(i.a)(this,"onChange",e=>{const{valueMap:t,onChange:o}=this.props,i=a.default.isObject(t)?t[e.target.checked]:e.target.checked;setTimeout(o,200,i)})}render(){const{className:e,defaultValue:t,valueMap:o,arrowCheck:i,arrowUnCheck:r}=this.props,l=a.default.isObject(o)?"true"===a.default.findKey(o,e=>e===t):t,d=c()("brz-ed-control__switch",e);return n.a.createElement("div",{className:d},n.a.createElement("label",{className:"brz-label brz-ed-control__switch-label"},n.a.createElement("input",{type:"checkbox",className:"brz-input brz-ed-control__switch-input",defaultChecked:l,onChange:this.onChange}),n.a.createElement("span",{className:"brz-span brz-ed-control__switch-arrows"},n.a.createElement(s.b,{className:"brz-ed-control__switch--check",icon:i}),n.a.createElement(s.b,{className:"brz-icon-svg brz-ed-control__switch--un-check",icon:r})),n.a.createElement("span",{className:"brz-span brz-ed-control__switch--handle"})))}}Object(i.a)(d,"defaultProps",{className:"",arrowCheck:"nc-check-small",arrowUnCheck:"nc-remove",defaultValue:!1,valueMap:null})},function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return a}));var i=o(37),r=o(97);const n=e=>{const{population:t,label:o,icon:n,helper:a,position:l}=e,c=Object(i.a)(e,["population","label","icon","helper","position"]);return void 0!==t&&Object(r.e)(c.type)?{id:c.id,label:o,icon:n,disabled:c.disabled,display:c.display,devices:c.devices,states:c.states,helper:a,position:l,className:c.className,type:"population-dev",config:{choices:t},options:[c]}:e},a=e=>"optgroup"in e},,,function(e,t,o){"use strict";o.d(t,"a",(function(){return c}));var i=o(2),r=o(585),n=o.n(r),a=o(21);class l{constructor({fetcher:e,useCache:t=!0,cacheLvl1MaxSize:o=500}){Object(i.a)(this,"fetcher",void 0),Object(i.a)(this,"cache",void 0),Object(i.a)(this,"useCache",void 0),Object(i.a)(this,"cacheMaxSize",void 0),this.fetcher=e,this.useCache=t,this.cacheMaxSize=o,this.cache=new n.a({maxSize:this.useCache?this.cacheMaxSize:1})}static makeCacheKey(e,t){return`${t.postId}-${e}`}getFromCache(e,t){return this.cache.get(l.makeCacheKey(e,t))}clearCache(){this.cache.clear()}setInCache(e,t,o){this.cache.set(l.makeCacheKey(e,o),t)}getDC(e,t){if(0===e.length)return Promise.resolve([]);return this.useCache&&e.every(e=>void 0!==this.getFromCache(e,t))?Promise.resolve(e.map(e=>this.getFromCache(e,t))):this.fetcher.getDC(e,t).then(o=>{var i;if(this.useCache&&(null===(i=t.cache)||void 0===i||i)&&e.length===o.length)for(let i=0;i<e.length;i++)this.setInCache(e[i],o[i],t);return o})}}const c=new l({fetcher:new class{constructor(e,t=2e3){Object(i.a)(this,"fetcher",void 0),Object(i.a)(this,"waitTime",void 0),Object(i.a)(this,"promise",void 0),Object(i.a)(this,"promiseResolve",void 0),Object(i.a)(this,"timeoutId",0),Object(i.a)(this,"count",0),Object(i.a)(this,"requestMapper",new Map),Object(i.a)(this,"buffer",new Map),this.fetcher=e,this.waitTime=t}getDC(e,t){var o,i;this.promise||(this.promise=new Promise(e=>{this.promiseResolve=e}).then(()=>{const e={};for(const[t,o]of this.buffer.entries())e[t]=Array.from(o.keys());return this.buffer.clear(),this.promise=void 0,this.fetcher({placeholders:e})}));const r=t.postId,n=this.count,a=null!==(o=this.buffer.get(r))&&void 0!==o?o:new Map,l=null!==(i=this.requestMapper.get(n))&&void 0!==i?i:[];if(e.forEach(e=>{const t=a.get(e);if(void 0===t){const t=a.size;a.set(e,t),l.push(t)}else l.push(t)}),this.buffer.set(r,a),this.requestMapper.set(n,l),this.count++,clearTimeout(this.timeoutId),!this.promiseResolve)throw new Error("should not get here");return this.timeoutId=window.setTimeout(this.promiseResolve,this.waitTime),this.promise.then(e=>{const t=e[r],o=this.requestMapper.get(n);return this.requestMapper.delete(n),void 0===t||void 0===o?new Array(100).fill(""):o.map(e=>{var o;return null!==(o=t[e])&&void 0!==o?o:""})})}}(a.n)})},,function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));var i=o(1),r=o.n(i),n=o(5),a=o.n(n);const l=({className:e,children:t})=>{const o=a()("brz-ed-component__label",e);return r.a.createElement("div",{className:o},t)}},function(e,t,o){"use strict";o.d(t,"b",(function(){return b})),o.d(t,"a",(function(){return m}));var i=o(19),r=o(10),n=o(13),a=o(31),l=o(136),c=o(129),s=o(18),d=o(82),p=o(121),u=o(292);const b=(e,t,o)=>Object.entries(t).reduce((t,[i,r])=>(!e.includes(i)&&m(r,o)&&t.push(i),t),[]);function m(e,t){return!!Object(u.a)(e.data)||(s.e?function({rules:e},t){const o=n.a.getAll();if(!Object(n.b)(o))return!1;const{ruleMatches:i}=o.wp,a=e.find(e=>{if(Object(p.b)(e))return e.appliedFor===d.f&&e.entityType===d.g&&e.entityValues.some(e=>String(e)===t.id)});if(a)return g(a);const l=i.map(({type:e,group:t,entityType:o,values:i})=>i.length?{type:e,entityType:o,mode:"specific",appliedFor:t,entityValues:i}:0===i.length?{type:e,entityType:o,appliedFor:t}:{type:e}),c=h(e),s=h(l),u=c.level1.find(e=>s.level1.find(({entityType:t,appliedFor:o,entityValues:i})=>o===e.appliedFor&&t===e.entityType&&r.default.intersection(i,e.entityValues).length));if(u)return g(u);const b=c.level2.find(e=>s.level2.find(({entityType:t,appliedFor:o})=>o===e.appliedFor&&t===e.entityType)),m=e.find(e=>{if(Object(p.c)(e))return e.appliedFor===d.f&&e.entityType===d.g});if(m)return g(m);if(b)return g(b);if(c.level3.length)return g(c.level3[0]);return!1}(e,t):function(e,t){if(!e)throw Error("GlobalBlock should exist");const{rules:o}=e,{level1:s,level2:u,level3:b}=function(e=[],t){const o=Object(d.k)(t);return e.reduce((e,t)=>(Object(p.b)(t)?"specific"===t.mode&&t.appliedFor===o.group&&t.entityType===o.type&&t.entityValues.some(e=>String(e)===String(o.id))&&(e.level1=t):Object(p.c)(t)?t.appliedFor===o.group&&t.entityType===o.type&&(e.level2=t):Object(p.a)(t)&&(e.level3=t),e),{level1:void 0,level2:void 0,level3:void 0})}(o,t),m=function(e=[],t){const o={referenceAll:void 0,referenceSingle:void 0};if(!Object(a.d)(t))return o;const{fields:i}=t,n=function(e){if(null===e)return;return e.filter(e=>"CollectionItemFieldReference"===e.__typename||"CollectionItemFieldMultiReference"===e.__typename).map(e=>{switch(e.__typename){case"CollectionItemFieldReference":return{appliedFor:1,entityType:e.type.collectionType.id,entityValues:[Object(d.i)({fieldId:e.type.id,collectionId:e.referenceValues.collectionItem.id})],fieldId:e.type.id};case"CollectionItemFieldMultiReference":return{appliedFor:1,entityType:e.type.collectionType.id,entityValues:e.multiReferenceValues.collectionItems.map(({id:t})=>Object(d.i)({fieldId:e.type.id,collectionId:t})),fieldId:e.type.id}}})}(i);if(void 0===n||0===n.length)return o;const l=e.filter(e=>Object(p.b)(e)&&"reference"===e.mode&&n.filter(t=>t.entityType===e.entityType).length>0);if(0===l.length)return o;const c=l.filter(e=>e.entityValues.some(e=>{var t;return null===(t=Object(d.l)(""+e))||void 0===t?void 0:t.collectionId})),s=c.find(e=>n.map(t=>r.default.intersection(t.entityValues,e.entityValues)).flat().length),u=r.default.difference(l,c).find(e=>n.filter(t=>e.entityValues.some(e=>t.fieldId===e)).length);return{referenceSingle:s,referenceAll:u}}(o,t),h=function(e=[],t){const o=n.a.getAll(),r={referenceAll:void 0,referenceSingle:void 0};if(!Object(n.b)(o)||!Object(l.b)(t))return r;const a=Object(d.k)(t),{postAuthor:s,postTermParents:u,postTerms:b}=o.wp,m=e.filter(e=>Object(p.b)(e)&&"reference"===e.mode&&e.entityType===a.type);if(0===m.length)return r;const h=m.find(e=>e.entityValues.some(e=>{if(Object(c.d)(e)){const t=e.split("|");return t[t.length-1]===""+s}return Object(c.f)(e)?b.some(({taxonomy:t,term_id:o})=>`in|${t}|${o}`===e):Object(c.e)(e)?u.some(({taxonomy:t,term_id:o})=>`child|${t}|${o}`===e):void 0}));return{referenceAll:m.find(e=>e.entityValues.some(e=>{if(Object(c.a)(e))return Object(i.isT)(s);if(Object(c.c)(e)){const[t,o]=e.split("|");return b.filter(e=>e.taxonomy===o).length>0}if(Object(c.b)(e)){const[t,o]=e.split("|");return u.filter(e=>e.taxonomy===o).length>0}})),referenceSingle:h}}(o,t),v=function(e,t){if(!Object(a.f)(t))return;const{groups:o}=t;if(0===o.length)return;const i=o.map(e=>e.id);return e.filter(e=>Object(p.b)(e)&&e.entityType===d.b).find(e=>r.default.intersection(i,e.entityValues).length>0)}(o,t);if(s)return g(s);if(m.referenceSingle)return g(m.referenceSingle);if(m.referenceAll)return g(m.referenceAll);if(v)return g(v);if(h.referenceSingle)return g(h.referenceSingle);if(h.referenceAll)return g(h.referenceAll);if(u)return g(u);if(b)return g(b);return!1}(e,t))}function h(e){return e.reduce((e,t)=>((Object(p.b)(t)||Object(p.c)(t))&&t.entityType===d.g||(Object(p.b)(t)?e.level1.push(t):Object(p.c)(t)?e.level2.push(t):Object(p.a)(t)&&(console.log("rule",t),e.level3.push(t))),e),{level1:[],level2:[],level3:[]})}function g(e){return 1===e.type}},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 g})),o.d(t,"c",(function(){return v})),o.d(t,"b",(function(){return y}));var i=o(2),r=o(14),n=o(0),a=o(47),l=o(53),c=o(108),s=o(33),d=o(29);function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function u(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(i.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 b=[d.a.flash,d.a.jackInTheBox,d.a.jello,d.a.lightSpeedIn,d.a.pulse,d.a.rollIn,d.a.rubberBand,d.a.tada,d.a.shake,d.a.swing,d.a.wobble],m=l.d({type:Object(r.b)(Object(a.c)("name"),s.d,Object(r.c)(Object(s.e)(s.a.Attention))),style:l.b([Object(r.b)(Object(a.c)("name"),e=>{switch(e){case d.a.flash:case d.a.jackInTheBox:case d.a.jello:case d.a.lightSpeedIn:case d.a.pulse:case d.a.rollIn:case d.a.rubberBand:case d.a.tada:case d.a.shake:case d.a.swing:case d.a.wobble:return e;default:return}}),()=>d.a.flash]),duration:c.b,delay:c.a,infiniteAnimation:c.c}),h=e=>e.style,g=e=>({name:h(e),duration:e.duration,delay:e.delay,infiniteAnimation:e.infiniteAnimation}),v=e=>{switch(e){case d.a.flash:return Object(n.a)("Flash");case d.a.jackInTheBox:return Object(n.a)("JackInTheBox");case d.a.jello:return Object(n.a)("Jello");case d.a.lightSpeedIn:return Object(n.a)("LightSpeedIn");case d.a.pulse:return Object(n.a)("Pulse");case d.a.rollIn:return Object(n.a)("RollIn");case d.a.rubberBand:return Object(n.a)("RubberBand");case d.a.shake:return Object(n.a)("Shake");case d.a.swing:return Object(n.a)("Swing");case d.a.tada:return Object(n.a)("Tada");case d.a.wobble:return Object(n.a)("Wobble")}},y=(e,t)=>t.style===e?t:u(u({},t),{},{style:e})},function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"b",(function(){return n}));var i=o(13);const r=()=>i.a.get("user").isAuthorized?"connected":(()=>{switch(localStorage.getItem("brz-authorized")){case"pending":return"pending";case"connected":return"connected";default:return"disconnect"}})(),n=e=>{(e=>{localStorage.setItem("brz-authorized",e)})(e)}},,,function(e,t,o){"use strict";o.d(t,"d",(function(){return iu})),o.d(t,"b",(function(){return ru})),o.d(t,"c",(function(){return nu}));var i=o(2),r=o(47),n=o(1),a=o.n(n),l=o(5),c=o.n(l),s=o(16),d=o(27),p=o(26),u=o(17);function b(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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(i.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}class h extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{isSidebarOpen:!1}),Object(i.a)(this,"handleLabelClick",()=>{const e=Object(d.b)(),{rightSidebar:t}=Object(u.R)(e.getState());t.isOpen||this.setState({isSidebarOpen:!0},()=>{e.dispatch(Object(p.S)("rightSidebar",m(m({},t),{},{isOpen:!0})))})})}componentWillUnmount(){const e=Object(d.b)(),{rightSidebar:t}=Object(u.R)(e.getState());this.state.isSidebarOpen&&void 0===t.lock&&e.dispatch(Object(p.S)("rightSidebar",m(m({},t),{},{isOpen:!1})))}renderIcon(){const{icon:e}=this.props;return a.a.createElement("div",{className:"brz-ed-option__icon"},a.a.createElement(s.b,{icon:e}))}renderLabel(){const{label:e,helper:t,helperContent:o}=this.props;return a.a.createElement("div",{className:"brz-ed-option__label"},e,t&&a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})))}render(){const{className:e,icon:t,label:o,helper:i,attr:r,title:n}=this.props,l=c()("brz-ed-option__advanced","brz-ed-option__inline",e,r.className);return a.a.createElement("div",{className:l,title:n,onClick:this.handleLabelClick},t&&this.renderIcon(),(o||i)&&this.renderLabel())}}Object(i.a)(h,"defaultProps",{className:"",icon:"nc-cog",title:"",label:"",sidebarLabel:"",helper:!1,helperContent:"",attr:{}});var g=o(12),v=o(38),y=o(10),f=o(32),S=o(103),O=o(54),x=o(52),C=o(0);function w(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function B(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}class j extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"anchorInputRefs",[]),Object(i.a)(this,"handleThumbnailClick",e=>{this.props.value===e?this.props.onChange(""):this.props.onChange(e)}),Object(i.a)(this,"handleInputChange",y.default.debounce((e,t)=>{const{pageBlocks:o,globalBlocks:i,dispatch:r}=this.props,n=encodeURIComponent(e);let a=n;if(""!==a){const e=o.filter(e=>e.value._id!==t).map(e=>("GlobalBlock"===e.type&&(e=i[e.value._id].data),e.value.anchorName));let r=!1,l=0;do{r=!1;for(let t of e)if(a===t){r=!0,a=n+"-"+(1+ ++l);break}}while(r)}const l=o.find(({type:e,value:o})=>"GlobalBlock"===e?i[o._id].data.value._id===t:o._id===t);if("GlobalBlock"!==l.type){const e=o.map(e=>e.value._id===t?B(B({},e),{},{value:B(B({},e.value),{},{anchorName:a})}):e);r(Object(p.G)({blocks:e}))}else{const e=l.value._id,t=Object(v.a)(i[e],e=>{e.data.value.anchorName=a});r(Object(p.M)(t))}this.anchorInputRefs[t].setValue(a)},1e3))}componentWillUnmount(){this.handleInputChange.cancel(),this.anchorInputRefs=null}renderLabel(){const{label:e,helper:t,helperContent:o}=this.props,i=t?a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})):null;return a.a.createElement("div",{className:"brz-ed-option__label"},e,i)}renderThumbnails(){const{value:e,pageBlocksAssembled:t,globalBlocks:o}=this.props;return t.filter(e=>"unlisted"!==e.value._blockVisibility).map(t=>{"GlobalBlock"===t.type&&(t=o[t.value._id].data);const{_id:i,anchorName:r}=t.value,n=c()("brz-ed-option__block-thumbnail-item",{active:i===e}),l=r?decodeURIComponent(r):"";return a.a.createElement("div",{key:i,className:n,onClick:()=>this.handleThumbnailClick(i)},a.a.createElement(T,{blockData:t}),a.a.createElement(P,{ref:e=>{e&&(this.anchorInputRefs[i]=e)},id:i,value:l,onChange:e=>this.handleInputChange(e,i)}))})}render(){const{className:e,attr:t,label:o,helper:i,display:r}=this.props,n=c()("brz-ed-option__block-thumbnail","brz-ed-option__"+r,e,t.className);return a.a.createElement("div",Object(g.a)({},t,{className:n}),o||i?this.renderLabel():null,a.a.createElement(S.a,{style:{height:"100%",overflow:"hidden"},className:"brz-ed-scroll-pane brz-ed-scroll--small brz-ed-scroll--darker"},this.renderThumbnails()))}}Object(i.a)(j,"defaultProps",{label:"",className:"",attr:{},helper:!1,helperContent:"",display:"inline",value:""});class T extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{blockData:this.props.blockData,imageFetched:!1,showSpinner:!0})}componentDidMount(){this.mounted=!0,this.preloadThumbnail(this.state.blockData)}preloadThumbnail(e){let t=!1;const{url:o}=Object(O.b)(e);return Object(x.f)(o).then(()=>{this.mounted&&!t&&this.setState({imageFetched:!0,showSpinner:!1,blockData:e})}),()=>t=!0}render(){const{blockData:e,imageFetched:t,showSpinner:o}=this.state,{url:i,width:r,height:n}=Object(O.b)(e),l={width:132,height:132*n/r},c=o?{}:{display:"none"};return a.a.createElement("div",{className:"brz-ed-option__block-thumbnail-image",style:l},a.a.createElement("div",{className:"brz-ed-option__block-thumbnail-loading",style:c},a.a.createElement(s.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"})),t&&a.a.createElement("img",{className:"brz-img",src:i}))}}class P extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{inputValue:this.props.value}),Object(i.a)(this,"handleContainerClick",e=>{e.stopPropagation()}),Object(i.a)(this,"handleInputChange",e=>{this.setState({inputValue:e.target.value},()=>{this.props.onChange(this.state.inputValue)})})}setValue(e){this.state.inputValue!==e&&this.setState({inputValue:e})}render(){const{id:e}=this.props,t="anchor-"+e;return a.a.createElement("div",{className:"brz-ed-option__block-thumbnail-anchor",onClick:this.handleContainerClick},a.a.createElement("span",{className:"brz-span"},"#"),a.a.createElement("input",{className:"brz-input",type:"text",autoComplete:"off",placeholder:Object(C.a)("block-name"),value:this.state.inputValue,onChange:this.handleInputChange,id:t}),a.a.createElement("label",{className:"brz-label",htmlFor:t},a.a.createElement(s.b,{icon:"nc-pen"})))}}var E=Object(f.b)(e=>({pageBlocks:Object(u.C)(e),pageBlocksAssembled:Object(u.y)(e),globalBlocks:Object(u.q)(e)}))(j);class _ extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleMouseDown",e=>{e.preventDefault(),this.props.onChange(!this.props.value)})}render(){const{className:e,attr:t,value:o,icon:i,title:r}=this.props,n=c()("brz-ed-option__button",{"brz-ed-toolbar--active":o},e,t.className),l=y.default.omit(t,"className");return a.a.createElement("div",Object(g.a)({className:n,title:r,onMouseDown:this.handleMouseDown},l),a.a.createElement(s.b,{icon:i}))}}Object(i.a)(_,"defaultProps",{className:"",attr:{},icon:"nc-circle-add",title:"Add",value:!1});var k=_,z=o(68),F=o(135),R=o(69),H=o(21),L=o(59),M=o(62),I=o(302),W=o(42);const A=({value:e},t)=>!!e&&e._id===t;class N extends n.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{loading:!1,active:!1}),Object(i.a)(this,"mounted",!1),Object(i.a)(this,"handleCreateSaveBlock",async()=>{const{blockType:e,extraFontStyles:t,value:{blockId:o}}=this.props,i={extraFontStyles:t,type:e},r=this.getBlock();if(!r){const t="normal"===e?Object(C.a)("Could not Create Saved Block"):Object(C.a)("Could not Create Saved Popup");return R.a.error(t),void(this.mounted&&this.state.loading&&this.setState({loading:!1}))}let n;try{n=await Object(F.a)()}catch(e){n=!1}if(n){const e=document.getElementById(o);if(e){const{src:t,width:o,height:r}=await Object(F.b)(e).catch(()=>({src:void 0,width:void 0,height:void 0}));if(t&&Object(W.d)(o)&&Object(W.d)(r)){const{id:e}=await Object(H.b)({base64:t,blockType:"saved"}).catch(()=>({id:void 0}));e&&(i._thumbnailSrc=e,i._thumbnailWidth=o,i._thumbnailHeight=r,i._thumbnailTime=Date.now())}}}await Object(H.d)({data:r,meta:i,uid:Object(M.a)(),dataVersion:1}).catch(t=>{"normal"===e?R.a.error(Object(C.a)("Could not Create Saved Block")):R.a.error(Object(C.a)("Could not Create Saved Popup")),console.error(t)}),n||R.a.warn(Object(C.a)("Your block was saved without screenshot, browser is not compatible"),{hideAfter:5}),this.mounted&&this.setState({loading:!1})}),Object(i.a)(this,"handleClick",async()=>{if(this.state.loading)return;this.setState({loading:!0});if(Object(I.a)()||this.props.isAuthorized)await this.handleCreateSaveBlock();else{const e={mode:"stack",prompt:"authorization",props:{onClose:this.handleCreateSaveBlock,onSkip:this.handleCreateSaveBlock,onSuccess:this.handleCreateSaveBlock}};z.a.open(e)}})}componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}getBlock(){const{blockType:e,pageBlocks:{items:t},value:{blockId:o}}=this.props;let i;return i="normal"===e?t.find(e=>A(e,o)):Object(L.a)(t,e=>A(e,o)).obj,i}renderTooltip(){const{tooltipContent:e}=this.props,{loading:t,active:o}=this.state,i=c()("brz-ed-toolbar__item__tooltip",{"brz-ed-animated brz-ed-animated--fadeIn active":o});return!t&&a.a.createElement("div",{className:i},e)}render(){const{attr:e,icon:t,title:o,tooltipContent:i,className:r}=this.props,{loading:n}=this.state,l=c()("brz-ed-option__button",r,e.className);return a.a.createElement("div",Object(g.a)({},e,{className:l,title:o,onClick:this.handleClick}),i&&this.renderTooltip(),n?a.a.createElement(s.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}):a.a.createElement(s.b,{icon:t,className:"brz-ed-animated brz-ed-animated--fadeIn"}))}}Object(i.a)(N,"defaultProps",{className:"",attr:{},icon:"nc-circle-add",title:"Add",tooltipContent:"",blockType:"normal",value:{blockId:""},pageBlocks:{items:[]},extraFontStyles:[],isAuthorized:!1});var V=Object(f.b)(e=>({isAuthorized:"connected"===e.authorized||"pending"===e.authorized,pageBlocks:Object(u.E)(e),extraFontStyles:Object(u.n)(e)}))(N),D=o(13),$=o(48),G=o(36),U=o(18);function K(e,t){let o=[];switch(e){case"block":{const e=Object(d.b)().getState(),i=Object(u.u)(e),{rules:r}=i[t];o=[{id:"rules",type:"rules",icon:"nc-eye-17",label:Object(C.a)("Conditions"),title:Object(C.a)("WHERE DO YOU WANT TO DISPLAY IT?"),value:r,context:"block",onChange:({data:{rules:e},meta:o})=>{Object(d.b)().dispatch(Object(p.L)({data:{rules:e,id:t},meta:o}))}}];break}case"popup":if(o=[{id:"triggers",type:"triggers",icon:"nc-triggers",label:Object(C.a)("Triggers"),context:"popup",title:Object(C.a)("WHAT WILL TRIGGER THE POPUP TO OPEN")}],!U.a){const e=G.b?()=>{var e;return Object(H.C)(null===(e=D.a.get("page"))||void 0===e?void 0:e.id)}:()=>Object(H.C)("");o.push({id:"rules",type:"rules",icon:"nc-eye-17",label:Object(C.a)("Conditions"),title:Object(C.a)("WHERE DO YOU WANT TO DISPLAY IT?"),context:"popup",asyncGetValue:e,onChange:e=>{Object(d.b)().dispatch(Object($.C)(e))}})}break;default:console.error("type should be given!!!")}return o}const q=({children:e,value:t,context:o})=>a.a.cloneElement(a.a.Children.only(e),{onMouseDown:()=>{z.a.open({prompt:"conditions",mode:"single",props:{options:K(o,t)}})}});var Y=o(169),X=o(183),J=o(184),Z=o(43),Q=o.n(Z);class ee{static render(e){const t=e||document.body,o=t&&t.ownerDocument;if(t&&o){const e=a.a.createElement(s.b,{icon:"nc-circle-02",className:"brz-ed-animated--spin"}),i=o.createElement("div");return i.className="brz-ed-portal__loading",t.append(i),ee.opened.add(i),Q.a.render(e,i),i}}static close(e){e&&(e.remove(),ee.opened.delete(e))}static closeAll(){ee.opened.forEach(e=>{e.remove()}),ee.opened.clear()}}Object(i.a)(ee,"opened",new Set);const te=e=>{switch(e){case"externalPopup":case"popup":return"popup";case"normal":return"normal"}};function oe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ie(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(i.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}const re=()=>{let e="";return new Map([...X.a,...J.a]).forEach(t=>{t.state.isOpened&&(e=t.instanceKey)}),e},ne=e=>{const t=new Map([...X.a,...J.a]).get(e);t&&t.open()};class ae extends n.Component{constructor(...e){super(...e),Object(i.a)(this,"mounted",!1),Object(i.a)(this,"switchKey",Math.random()),Object(i.a)(this,"isGlobalBlock",()=>{const{value:{_id:e},globalBlocks:t}=this.props;return Object.keys(t).includes(e)}),Object(i.a)(this,"handleChange",async e=>{const{blockType:t,extraFontStyles:o,pageBlocks:i,page:r,makeNormalToGlobalBlock:n,makeGlobalToNormalBlock:a,makePopupToGlobalBlock:l,makeGlobalBlockToPopup:c,value:{_id:s,parentId:d}}=this.props,p=document.querySelector(`[id='${s}']`),u=ee.render(p),b=Object(U.h)(i,s);if(e){if(p&&b){const e=await(async e=>{if(await Object(F.a)()){const{src:t,width:o,height:i}=await Object(F.b)(e),{id:r}=await Object(H.b)({base64:t,blockType:"global"});return{_thumbnailSrc:r,_thumbnailWidth:o,_thumbnailHeight:i,_thumbnailTime:Date.now()}}})(p),i={extraFontStyles:o,type:te(t)};e&&(i._thumbnailSrc=e._thumbnailSrc,i._thumbnailWidth=e._thumbnailWidth,i._thumbnailHeight=e._thumbnailHeight,i._thumbnailTime=e._thumbnailTime),Object.prototype.hasOwnProperty.call(b,"deleted")&&(b.deleted=!1);let a={meta:i,status:"draft",data:b,rules:[],position:{align:"bottom",top:0,bottom:0}};!Object(O.m)(b)&&r&&(a=Object(O.d)(a,!0,r)),await Object(H.c)(a).then(e=>{if(!e||!e.data)throw e;switch(ee.close(u),t){case"popup":case"externalPopup":{const e="popup"===t&&re();l(a),e&&ne(e),"externalPopup"===t&&this.openPromptCondition("popup");break}case"normal":n(a),this.openPromptCondition("block")}}).catch(e=>{switch(ee.close(u),this.switchKey=Math.random(),this.mounted&&this.forceUpdate(),t){case"popup":case"externalPopup":R.a.error(Object(C.a)("Could not Create Global Popup"));break;case"normal":R.a.error(Object(C.a)("Could not Create Global Block"))}console.error(e)})}}else if(await Object(H.L)(),this.isGlobalBlock()){const e=Object(U.s)(this.props.blocksData[s]);ee.close(u);const o={block:e,fromBlockId:s};switch(t){case"popup":{const e=re();d&&c(ie(ie({},o),{},{parentId:d})),e&&ne(e);break}case"normal":case"externalPopup":a(o)}}})}componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}openPromptCondition(e){z.a.open({prompt:"conditions",mode:"single",props:{options:K(e,this.props.value._id)}})}renderLabel(){const{label:e,helper:t,helperContent:o}=this.props;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__switch__label"},e,t&&a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})))}render(){const{label:e,display:t,helper:o,attr:i={},className:r}=this.props,n=c()("brz-ed-option__global-block","brz-ed-option__"+t,r,i.className);return a.a.createElement("div",Object(g.a)({},i,{className:n}),(e||o)&&this.renderLabel(),a.a.createElement(Y.a,{key:this.switchKey,defaultValue:this.isGlobalBlock(),onChange:this.handleChange}))}}Object(i.a)(ae,"defaultProps",{blockType:"normal",className:"",label:"",display:"inline",attr:{},helper:!1,helperContent:"",extraFontStyles:[],pageBlocks:[],blocksData:{},globalBlocks:{},page:void 0,value:{_id:"",parentId:void 0},makeNormalToGlobalBlock:y.noop,makeGlobalToNormalBlock:y.noop,makePopupToGlobalBlock:y.noop,makeGlobalBlockToPopup:y.noop});var le=Object(f.b)(e=>({extraFontStyles:Object(u.n)(e),pageBlocks:Object(u.A)(e),globalBlocks:Object(u.q)(e),blocksData:Object(u.b)(e),page:Object(u.F)(e)}),e=>({makeNormalToGlobalBlock:t=>e(Object(p.x)(t)),makeGlobalToNormalBlock:t=>e(Object(p.w)(t)),makePopupToGlobalBlock:t=>e(Object(p.y)(t)),makeGlobalBlockToPopup:t=>e(Object(p.v)(t))}))(ae),ce=o(70);let se;se=o(412),o(414),o(200);class de extends a.a.Component{constructor(e){super(e),Object(i.a)(this,"state",{value:""}),Object(i.a)(this,"lastUpdatedValue",""),Object(i.a)(this,"onChange",e=>this.setState({value:e},this.onChangeDebounced)),Object(i.a)(this,"onChangeDebounced",y.default.debounce(()=>{this.props.onChange(this.state.value),this.lastUpdatedValue=this.state.value},1e3)),this.state={value:e.value}}renderLabel(){const{label:e,helper:t,helperContent:o}=this.props,i=t?a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(ce.c,{placement:"bottom",openOnClick:!1,overlay:a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}))):null;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__code__label"},e,i)}render(){const{label:e,className:t,helper:o,display:i,lineNumbers:r,attr:n,placeholder:l}=this.props,s=c()("brz-ed-option__code","brz-ed-option__"+i,t,n.className),d=y.default.omit(n,"className"),p={lineNumbers:r,tabSize:2,placeholder:l,mode:"css"};return a.a.createElement("div",Object(g.a)({className:s},d),e||o?this.renderLabel():null,a.a.createElement(se,{value:this.state.value,onChange:this.onChange,options:p}))}}Object(i.a)(de,"defaultProps",{className:"",label:"",placeholder:"",helper:!1,helperContent:"",attr:{},display:"inline",lineNumbers:!1,value:"",onChange:y.default.noop});var pe=de,ue=o(324),be=o.n(ue);function me(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}var he={simpleCheckForValidColor(e){let t=0,o=0;return y.default.each(["r","g","b","a","h","s","l","v"],i=>{if(e[i]&&(t+=1,isNaN(e[i])||(o+=1),"s"===i||"l"===i)){/^\d+%$/.test(e[i])&&(o+=1)}}),t===o&&e},toState(e,t,o){const r=e.hex?be()(e.hex):be()(e),n=r.toHsl(),a=r.toHsv(),l=r.toRgb(),c=r.toHex();0===n.s&&(n.h=t||0,a.h=t||0);let s={};return e.hex||0===a.v||(s={hsv:a}),o||(s={hsv:a}),"saturation"===e.wasChanged&&(s={hsv:{h:a.h,s:0===a.s?e.s/100:a.s,v:a.v}}),"hue"!==e.wasChanged&&"opacity"!==e.wasChanged||(s={}),function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?me(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):me(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({hsl:n,hex:"#"+c,rgb:l,oldHue:e.h||t||n.h,source:e.source},s)},isValidHex:e=>be()(e).isValid(),getContrastingColor(e){if(!e)return"#fff";const t=this.toState(e);if("transparent"===t.hex)return"rgba(0,0,0,0.4)";return(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"}};class ge extends n.Component{constructor(e){super(e),Object(i.a)(this,"onHexChange",({target:{value:e}})=>{const{value:{opacity:t},onChange:o}=this.props;this.setState({hex:e}),e.length<6||!he.isValidHex(e)||o({hex:(e="#"===e[0]?e:"#"+e).toLowerCase(),opacity:t,isChanged:"hex"})}),this.state={hex:e.value.hex||"#000000"}}componentDidUpdate(e){var t;e.value.hex!==this.props.value.hex&&this.setState({hex:null!==(t=this.props.value.hex)&&void 0!==t?t:"#000000"})}render(){return a.a.createElement("input",{id:"hex",className:"brz-input",autoComplete:"off",value:this.state.hex,onChange:this.onHexChange})}}Object(i.a)(ge,"defaultProps",{value:{hex:"#000000"}}),ge.defaultProps={value:{hex:"#000000",opacity:1},onChange:y.default.noop};class ve extends a.a.Component{render(){const{className:e,attr:t,value:o,onChange:i}=this.props,r=c()("brz-ed-option__color-picker__hex",e,t.className),n=y.default.omit(t,"className");return a.a.createElement("div",Object(g.a)({className:r},n),a.a.createElement(ge,{value:o,onChange:i}))}}Object(i.a)(ve,"defaultProps",{className:"",attr:{},value:{hex:"#000000",opacity:1},onChange:y.default.noop});var ye=ve,fe=o(11);class Se extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleSidebarOpen",()=>{Object(d.b)().dispatch(Object(p.S)("leftSidebar",{isOpen:!0,drawerContentType:"styling"}))})}render(){const{className:e,colors:t,value:o,onChange:i}=this.props,r=c()("brz-ed-option__color-palette",e),n=(t||Object(fe.c)()).map(e=>{const t=c()("brz-ed-option__color-palette__item",{active:e.id===o}),r={backgroundColor:e.hex};return a.a.createElement("div",{key:e.id,className:t,style:r,onClick:()=>i(e.id)})});return a.a.createElement("div",{className:r},n,a.a.createElement("div",{className:"brz-ed-option__color-palette__icon",onClick:this.handleSidebarOpen},a.a.createElement(s.b,{icon:"nc-cog"})))}}Object(i.a)(Se,"defaultProps",{className:"",colors:null,value:"",onChange:()=>console.log("ColorPalette default onChange")});var Oe=Se;class xe extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleSidebarOpen",()=>{Object(d.b)().dispatch(Object(p.S)("leftSidebar",{isOpen:!0,drawerContentType:"styling"}))})}render(){const{className:e,colors:t,value:o,onChange:i}=this.props,r=c()("brz-ed-option__color-palette2",e),n=(t||Object(fe.c)()).map(e=>{const t=c()("brz-ed-option__color-palette2__item",{active:e.id===o}),r={backgroundColor:e.hex};return a.a.createElement("div",{key:e.id,className:t,style:r,onClick:()=>i(e.id)})});return a.a.createElement("div",{className:r},n,a.a.createElement("div",{className:"brz-ed-option__color-palette2__icon",onClick:this.handleSidebarOpen},a.a.createElement(s.b,{icon:"nc-cog"})))}}Object(i.a)(xe,"defaultProps",{className:"",colors:null,value:"",onChange:()=>console.log("ColorPalette default onChange")});var Ce=xe,we=o(8);function Be(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function je(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Be(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Te extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{active:null}),Object(i.a)(this,"handleToolbarOpen",e=>{this.setState({active:e})}),Object(i.a)(this,"handleToolbarClose",()=>{this.setState({active:null})}),Object(i.a)(this,"renderLabel",()=>{const{label:e,helper:t,helperContent:o}=this.props,i=t?a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})):null;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__color-palette-editor__label"},e,i)})}handleColorChange(e,t){const o=this.props.value.map((o,i)=>i===t?je(je({},o),{},{hex:e.hex}):o);this.props.onChange(o)}render(){const{className:e,attr:t,label:o,helper:i,value:r}=this.props,n=r.map((e,t)=>{const o=c()("brz-ed-option__color-palette-editor__item",{active:t===this.state.active}),i={backgroundColor:e.hex};return a.a.createElement(we.c,{key:t,getItems:()=>[{id:"settings",type:"popover",icon:"nc-cog",display:"inside",size:"auto",onOpenDirect:!0,position:90,options:[{id:"backgroundColor",type:"colorPicker2",label:"Color HEX",disableOpacity:!0,select:{show:!1},picker:{showOpacity:!1},palette:{show:!1},value:{hex:e.hex,opacity:1},onChange:e=>this.handleColorChange(e,t)},{type:"grid",className:"brz-ed-grid__color-fileds",columns:[{width:100,options:[{id:"backgroundColorFields",type:"colorFields",disableOpacity:!0,value:{hex:e.hex,opacity:1},onChange:e=>this.handleColorChange(e,t)}]}]}]}],onOpen:()=>this.handleToolbarOpen(t),onClose:this.handleToolbarClose},a.a.createElement("div",{className:o,style:i}))}),l=c()("brz-ed-option__color-palette-editor",e,t.className);return a.a.createElement("div",Object(g.a)({},t,{className:l}),o||i?this.renderLabel():null,n)}}Object(i.a)(Te,"defaultProps",{className:"",helperContent:"",helper:!1,attr:{},value:[]});var Pe=Te,Ee=o(37);const _e={},ke=(e,t,o,i)=>{const r=`${e}-${t}-${o}${i?"-server":""}`,n=((e,t,o,i)=>{if("undefined"==typeof document&&!i)return null;const r=i?new i:document.createElement("canvas");r.width=2*o,r.height=2*o;const n=r.getContext("2d");return n?(n.fillStyle=e,n.fillRect(0,0,r.width,r.height),n.fillStyle=t,n.fillRect(0,0,o,o),n.translate(o,o),n.fillRect(0,0,o,o),r.toDataURL()):null})(e,t,o,i);return _e[r]?_e[r]:(_e[r]=n,n)},ze=({white:e,grey:t,size:o,renderers:i,borderRadius:r,boxShadow:n})=>{const l={borderRadius:r,boxShadow:n,absolute:"0px 0px 0px 0px",background:`url(${ke(e,t,o,i.canvas)}) center left`};return a.a.createElement("div",{style:l})};ze.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var Fe=ze;function Re(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function He(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(i.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}class Le extends n.Component{constructor(e){super(e),Object(i.a)(this,"change",null),Object(i.a)(this,"handleChange",(e,t)=>{const o=this.props.contentWindow();this.change=((e,t,o,i)=>{e.preventDefault();const r=i.clientWidth,n=i.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=a-(i.getBoundingClientRect().left+t.pageXOffset),s=l-(i.getBoundingClientRect().top+t.pageYOffset);if("vertical"===o.direction){let e;if(e=s<0?0:s>n?1:Math.round(100*s/n)/100,o.hsl.a!==e)return{h:o.hsl.h,s:o.hsl.s,l:o.hsl.l,a:e,source:"rgb"}}else{let e;if(e=c<0?0:c>r?1:Math.round(100*c/r)/100,o.a!==e)return{h:o.hsl.h,s:o.hsl.s,l:o.hsl.l,a:e,source:"rgb"}}return null})(e,o,this.props,this.container)||this.change,this.change&&(this.change.a=1-this.change.a,this.props.onChange&&this.props.onChange(He(He({},this.change),{},{opacityDragEnd:t,wasChanged:"opacity"}),e))}),Object(i.a)(this,"handleMouseDown",e=>{this.handleChange(e);const t=this.props.contentWindow();t.addEventListener("mousemove",this.handleChange),t.addEventListener("mouseup",this.handleMouseUp),this.setState({showTooltip:!0,isChangeing:!0})}),Object(i.a)(this,"handleMouseUp",e=>{this.handleChange(e,!0),this.unbindEventListeners();const t=e.composedPath().find(e=>e===this.container);this.setState({showTooltip:!!t,isChangeing:!1}),this.change=null}),Object(i.a)(this,"handleMouseEnter",()=>{this.setState({showTooltip:!0})}),Object(i.a)(this,"handleMouseLeave",()=>{this.state.isChangeing||this.setState({showTooltip:!1})}),Object(i.a)(this,"unbindEventListeners",()=>{const e=this.props.contentWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}),this.state={showTooltip:!1,isChangeing:!1}}componentWillUnmount(){this.unbindEventListeners()}render(){const{direction:e,rgb:t}=this.props,o={background:`linear-gradient(${"vertical"===e?"to top":"to right"}, rgba(${t.r},${t.g},${t.b}, 0) 0%,\n rgba(${t.r},${t.g},${t.b}, 1) 100%)`,boxShadow:this.props.shadow,borderRadius:this.props.radius},i="vertical"===e?{left:0,top:100*(1-t.a)+"%"}:{left:100*t.a+"%"};return a.a.createElement("div",{className:"color-picker2-alpha-body",style:{borderRadius:this.props.radius}},a.a.createElement("div",{className:"color-picker2-alpha-checkboard"},a.a.createElement(Fe,{renderers:this.props.renderers})),a.a.createElement("div",{className:"color-picker2-alpha-gradient",style:o}),a.a.createElement("div",{className:"color-picker2-alpha-container",ref:e=>this.container=e,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},a.a.createElement("div",{className:"color-picker2-alpha-pointer",style:i},this.props.pointer?this.props.pointer(this.props,this.state.showTooltip):a.a.createElement("div",{className:"color-picker2-alpha-slider"}))))}}Object(i.a)(Le,"defaultProps",{contentWindow:()=>window});function Me(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Ie(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Me(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const We=e=>{class t extends n.Component{constructor(e){super(),Object(i.a)(this,"handleChange",(e,t)=>{if(he.simpleCheckForValidColor(e)){const o=he.toState(e,e.h||this.state.oldHue,e.hsv||this.state.hsv);this.setState(o),this.props.onChangeComplete&&this.debounce(this.props.onChangeComplete,o,t),this.props.onChange&&this.props.onChange(Ie(Ie({},o),{},{wasChanged:e.wasChanged,opacityDragEnd:e.opacityDragEnd}),t)}}),Object(i.a)(this,"handleSwatchHover",(e,t)=>{if(he.simpleCheckForValidColor(e)){const o=he.toState(e,e.h||this.state.oldHue,e.hsv||this.state.hsv);this.setState(o),this.props.onSwatchHover&&this.props.onSwatchHover(o,t)}}),this.state=Ie(Ie({},he.toState(e.color,0,null)),{},{prevColor:e.color}),this.debounce=y.default.debounce((e,t,o)=>{e(t,o)},100)}static getDerivedStateFromProps(e,t){return t.prevColor!==e.color?Ie(Ie({},he.toState(e.color,t.oldHue)),{},{prevColor:e.color}):null}render(){const t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),a.a.createElement(e,Object(g.a)({},this.props,this.state,{onChange:this.handleChange},t))}}return t.propTypes=Ie({},e.propTypes),t.defaultProps=Ie(Ie({},e.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),t};function Ae(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Ne(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ae(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Ve extends n.Component{constructor(...e){super(...e),Object(i.a)(this,"handleChange",e=>{const t=((e,t,o,i)=>{e.preventDefault();const r=i.clientWidth,n=i.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=a-(i.getBoundingClientRect().left+t.pageXOffset),s=l-(i.getBoundingClientRect().top+t.pageYOffset);if("vertical"===o.direction){let e;if(s<0)e=359;else if(s>n)e=0;else{e=360*(-100*s/n+100)/100}if(o.hsl.h!==e)return{h:e,s:o.hsl.s,l:o.hsl.l,a:o.hsl.a,source:"rgb"}}else{let e;if(c<0)e=0;else if(c>r)e=359;else{e=360*(100*c/r)/100}if(o.hsl.h!==e)return{h:e,s:o.hsl.s,l:o.hsl.l,a:o.hsl.a,source:"rgb"}}return null})(e,this.props.contentWindow(),this.props,this.container);t&&this.props.onChange&&this.props.onChange(Ne(Ne({},t),{},{wasChanged:"hue"}),e)}),Object(i.a)(this,"handleMouseDown",e=>{this.handleChange(e,!0);const t=this.props.contentWindow();t.addEventListener("mousemove",this.handleChange),t.addEventListener("mouseup",this.handleMouseUp)}),Object(i.a)(this,"handleMouseUp",()=>{this.unbindEventListeners()})}componentWillUnmount(){this.unbindEventListeners()}unbindEventListeners(){const e=this.props.contentWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}render(){const{direction:e="horizontal"}=this.props,t={hue:{borderRadius:this.props.radius,boxShadow:this.props.shadow},pointer:{left:100*this.props.hsl.h/360+"%"}},o={left:"0px",top:-100*this.props.hsl.h/360+100+"%"};return a.a.createElement("div",{className:"hue",style:t.hue},a.a.createElement("div",{className:c()("hue-"+e,"hue-container"),style:t.container,ref:e=>this.container=e,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.a.createElement("div",{style:o,className:"hue-pointer"},this.props.pointer?a.a.createElement(this.props.pointer,this.props):a.a.createElement("div",{className:"hue-slider"}))))}}Object(i.a)(Ve,"defaultProps",{contentWindow:()=>window});function De(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function $e(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?De(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):De(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Ge extends n.Component{constructor(e){super(e),Object(i.a)(this,"handleChange",e=>{const t=this.props.contentWindow();this.props.onChange&&this.throttle(this.props.onChange,((e,t,o,i)=>{e.preventDefault();const{width:r,height:n}=i.getBoundingClientRect(),a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY;let c=a-(i.getBoundingClientRect().left+t.pageXOffset),s=l-(i.getBoundingClientRect().top+t.pageYOffset);c<0?c=0:c>r?c=r:s<0?s=0:s>n&&(s=n);const d=100*c/r,p=-100*s/n+100;return{h:o.hsl.h,s:d,v:p,a:o.hsl.a,source:"rgb"}})(e,t,this.props,this.container),e)}),Object(i.a)(this,"handleMouseDown",e=>{this.handleChange(e,!0);const t=this.props.contentWindow();t.addEventListener("mousemove",this.handleChange),t.addEventListener("mouseup",this.handleMouseUp)}),Object(i.a)(this,"handleMouseUp",()=>{this.unbindEventListeners()}),this.throttle=y.default.throttle((e,t,o)=>{e($e($e({},t),{},{wasChanged:"saturation"}),o)},50)}componentWillUnmount(){this.unbindEventListeners()}unbindEventListeners(){const e=this.props.contentWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}render(){const e={color:{background:`hsl(${this.props.hsl.h},100%, 50%)`,borderRadius:this.props.radius},white:{borderRadius:this.props.radius},black:{boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%"}};return a.a.createElement("div",{style:e.color,className:"color-picker2-saturation-body",ref:e=>this.container=e,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.a.createElement("div",{style:e.white,className:"saturation-white"},a.a.createElement("div",{style:e.black,className:"saturation-black"}),a.a.createElement("div",{style:e.pointer,className:"saturation-pointer"},this.props.pointer?a.a.createElement(this.props.pointer,this.props):a.a.createElement("div",{className:"saturation-circle"}))))}}Object(i.a)(Ge,"defaultProps",{contentWindow:()=>window});class Ue extends n.Component{constructor(...e){super(...e),Object(i.a)(this,"renderPointer",()=>a.a.createElement("div",{className:"color-picker2-pointer"})),Object(i.a)(this,"renderPointerOpacity",({rgb:{a:e}},t)=>(e*=100,a.a.createElement("div",{className:"color-picker2-pointer"},t&&a.a.createElement("div",{className:"color-picker2-pointer-tooltip"},Math.round(e),"%"))))}render(){const{className:e,contentWindow:t,disableOpacity:o,hsl:i,hsv:r,rgb:n,renderers:l,onChange:s}=this.props,d=c()("brz-ed-control__colorPicker2",e);return a.a.createElement("div",{className:d,ref:this.props.domRef},a.a.createElement("div",{className:"color-picker2-body"},a.a.createElement("div",{className:"color-picker2-saturation"},a.a.createElement(Ge,{hsl:i,hsv:r,contentWindow:t,pointer:this.renderPointer,onChange:s})),a.a.createElement("div",{className:"color-picker2-hue"},a.a.createElement(Ve,{direction:"vertical",hsl:i,contentWindow:t,pointer:this.renderPointer,onChange:s})),!o&&a.a.createElement("div",{className:"color-picker2-alpha"},a.a.createElement(Le,{direction:"vertical",rgb:n,hsl:i,contentWindow:t,renderers:l,pointer:this.renderPointerOpacity,onChange:s}))))}}Ue.defaultProps={disableOpacity:!1,onChange:y.default.noop,domRef:null};var Ke=We(Ue);var qe=function({value:e,disableOpacity:t,onChange:o}){const i=Object(n.useRef)(null),r=o&&y.default.throttle(o,500,{leading:!1,trailing:!0}),l=Object(fe.f)(e.hex)?e.hex:"#000000",c=isNaN(Number(e.opacity))?1:e.opacity;return a.a.createElement(Ke,{domRef:e=>{var t;e&&(i.current=null!==(t=e.ownerDocument.defaultView)&&void 0!==t?t:null)},color:Object(fe.e)(l,c),opacity:c,disableOpacity:t,contentWindow:()=>i.current,onChange:e=>{const{hex:t,rgb:{a:o},wasChanged:i,opacityDragEnd:n}=e,a=t.toLowerCase();null==r||r({hex:a,opacity:Number(Number(o).toFixed(2)),isChanged:"opacity"===i?"opacity":"hex",opacityDragEnd:!!n})}})},Ye=o(51),Xe=o(152),Je=o(39),Ze=o(172);var Qe=({className:e,min:t,max:o,step:i,startPointer:r,finishPointer:n,allowCross:l,handle:s,railStyle:d,onChange:p})=>{const u=c()("brz-ed-control__range",e);return a.a.createElement("div",{className:u},a.a.createElement(Ze.b,{count:1,defaultValue:[r,n],min:t,max:o,step:i,allowCross:l,handle:s,railStyle:d,onChange:p}))};function et(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function tt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?et(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):et(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const ot=Ze.c.Handle;class it extends a.a.Component{constructor(e){super(e),Object(i.a)(this,"handleOnMouseDown",e=>{this.handleChange({activePointer:0===e?"startPointer":"finishPointer",isChanged:"activePointer"})}),Object(i.a)(this,"handleRangeChange",([e,t])=>{this.handleChange({startPointer:e,finishPointer:t,isChanged:e===this.state.startPointer?"finishPointer":"startPointer"})}),Object(i.a)(this,"handleChange",e=>{const t=tt(tt({},this.state),e);this.setState(t),this.props.onChange(t)}),Object(i.a)(this,"handle",e=>{const{className:t,dragging:o,value:i,index:r}=e,n=Object(Ee.a)(e,["className","dragging","value","index"]),l=c()(t,{"brz-ed-rc-slider-handle--active":"startPointer"===this.state.activePointer&&0===r||"finishPointer"===this.state.activePointer&&1===r});return a.a.createElement(ot,Object(g.a)({key:r,value:i,onMouseDown:()=>this.handleOnMouseDown(r)},n,{className:l}))});const t=e.value;this.state=tt({},t)}componentDidUpdate(e){y.default.isEqual(e.value,this.props.value)||this.setState(tt({},this.props.value))}render(){const{className:e,config:{range:{min:t,max:o,step:i}},attr:r}=this.props,n=c()("brz-ed-option__range",e,r.className),l=y.default.omit(r,"className"),{startPointer:s,finishPointer:d,hex:p,gradientColorHex:u}=this.state;return a.a.createElement("div",Object(g.a)({className:n},l),a.a.createElement("div",{className:"brz-ed-option__range__content"},a.a.createElement(Qe,{id:this.props.id,min:t,max:o,step:i,startPointer:s,finishPointer:d,handle:this.handle,railStyle:{backgroundImage:`linear-gradient(to right, ${p}, ${u})`},onChange:this.handleRangeChange})))}}Object(i.a)(it,"defaultProps",{className:"",attr:{},config:{range:{min:0,max:100,step:1}},value:{startPointer:0,finishPointer:100,activePointer:"startPointer",hex:"#000000",gradientColorHex:"#000000"},onChange:y.default.noop});var rt=it,nt=o(31);function at(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function lt(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}const ct=D.a.getAll(),st=Object(nt.b)(ct)&&Object(nt.i)(ct);class dt extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleChange",e=>{const{value:t,onChange:o}=this.props,i="gradient"===t.select&&"finishPointer"===t.activePointer;let r={};if("hex"===e.isChanged){const{hex:t}=e;r=i?{gradientColorHex:t}:{hex:t}}let n={};if("opacity"===e.isChanged){const{opacity:t}=e;n=i?{gradientColorOpacity:t}:{opacity:t}}o(lt(lt(lt(lt({},t),e),r),n))})}renderPalette(){const{palette:{choices:e},value:{palette:t,gradientColorPalette:o,select:i,activePointer:r}}=this.props,n="gradient"===i&&"finishPointer"===r?o:t;return a.a.createElement(Ce,{choices:e,value:n,onChange:e=>{this.handleChange({palette:e,isChanged:"palette"})}})}renderGradient(){const e=this.props,{gradient:{show:t},value:{startPointer:o,finishPointer:i,activePointer:r,hex:n,gradientColorHex:l}}=e,c=Object(Ee.a)(e.gradient,["show"]);return a.a.createElement(rt,{config:{range:c},value:{startPointer:o,finishPointer:i,activePointer:r,hex:n,gradientColorHex:l},onChange:this.handleChange})}renderSelectChoices(e){return e.map((e,t)=>{const{title:o,icon:i,optgroup:r,value:n}=e;let l;if(y.default.isObject(i)){const e=c()("brz-control__select-option__bg",i.className);l=a.a.createElement("div",Object(g.a)({},i,{className:e}))}else i&&(l=a.a.createElement(s.b,{icon:i}));return r&&r.length?a.a.createElement(Xe.a,{key:t,title:o,items:this.renderSelectChoices(r)},l,o&&a.a.createElement("span",{className:"brz-span"},o)):a.a.createElement(Je.a,{key:t,value:n,title:o},l,o&&a.a.createElement("span",{className:"brz-span"},o))})}renderSelect(){const{select:e,value:t}=this.props;return a.a.createElement(Ye.a,{className:"brz-control__select--dark brz-control__select__auto",defaultValue:t.select,itemHeight:e.itemHeight||24,onChange:e=>{this.handleChange({select:e,isChanged:"select"})}},this.renderSelectChoices(e.choices))}render(){const{className:e,picker:{showOpacity:t=!0},palette:{show:o=!0},gradient:{show:i=!0},select:{show:r=!0},attr:n,value:{hex:l,opacity:s,select:d,activePointer:p,gradientColorHex:u,gradientColorOpacity:b}}=this.props,m=c()("brz-ed-option__colorPicker2",e,n.className),h="gradient"===d&&"finishPointer"===p?{hex:u,opacity:b}:{hex:l,opacity:s};return a.a.createElement("div",Object(g.a)({},n,{className:m}),i&&this.renderGradient(),r&&this.renderSelect(),a.a.createElement(qe,{value:h,disableOpacity:!t,onChange:this.handleChange}),!st&&o&&this.renderPalette())}}Object(i.a)(dt,"defaultProps",{className:"",attr:{},picker:{showOpacity:!0},palette:{show:!0,choices:[]},select:{show:!0,itemHeight:24,choices:[]},gradient:{show:!1,min:0,max:100,step:1},value:{select:"",hex:"#000000",opacity:1,palette:"",gradientColorHex:"#000000",gradientColorOpacity:1,gradientColorPalette:"",startPointer:0,finishPointer:100,activePointer:"startPointer"},onChange:y.default.noop});var pt=dt,ut=o(55),bt=o(40),mt=o(76);function ht(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function gt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ht(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const vt={default:"17px",great_vibes:"18px",alex_brush:"18px",allura:"18px",parisienne:"18px"};class yt extends n.Component{constructor(...e){super(...e),Object(i.a)(this,"handleOpenFonts",e=>{e.preventDefault(),z.a.open({prompt:"fonts",mode:"single"})})}checkCurrentFont(){const{fonts:e,value:t}=this.props;return Object.entries(e).some(e=>{const[o,i]=e;return i.data.some(e=>bt.b[o](e).id===t)})}renderFontList(e,t,o){const{value:i,defaultFont:r,onChange:n}=this.props;return e.map(e=>{const l=bt.b[t](e),{id:s,family:d,title:p}=l,u=c()("brz-ed-font__name",{active:o?s===i:s===r}),b={fontFamily:d,fontSize:vt[s]||vt.default};return a.a.createElement("div",{key:s,className:u,style:b,onClick:()=>n(gt(gt({},l),{},{type:t}))},p)})}render(){const{config:e={},blocks:t={},google:o={},upload:i={}}=this.props.fonts,r=this.checkCurrentFont(),n=i.data&&i.data.length>0||o.data&&o.data.length>0;return a.a.createElement("div",{className:"brz-ed-font__typography"},a.a.createElement(S.a,{className:"brz-ed-scroll--dark brz-ed-scroll--small",style:{height:"100%"}},i.data&&i.data.length>0&&this.renderFontList(i.data,"upload",r),o.data&&o.data.length>0&&this.renderFontList(o.data,"google",r),n&&a.a.createElement("hr",{className:"brz-hr brz-ed-font__separator"}),t.data&&this.renderFontList(t.data,"google",r),this.renderFontList(e.data,"google",r)),a.a.createElement(ut.a,{allow:["admin"]},a.a.createElement("div",{className:"brz-ed-font__typography-adder",onClick:this.handleOpenFonts},a.a.createElement(s.b,{icon:"nc-add"}),Object(C.a)("Add New Font"))))}}Object(i.a)(yt,"defaultProps",{defaultFont:"",value:"lato",fonts:{},onChange:y.default.noop});var ft=Object(f.b)(e=>({fonts:Object(mt.n)(e),defaultFont:Object(u.H)(e).data.font}),null)(yt);class St extends a.a.Component{renderLabel(){const{label:e,helper:t,helperContent:o,helperPlacement:i}=this.props;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__select__label"},e,t&&a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(ce.c,{placement:i,openOnClick:!1,overlay:a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}))))}renderChoices(e=this.props.choices){return e.map((e,t)=>{const{title:o,icon:i,optgroup:r,value:n}=e;let l;if(y.default.isObject(i)){const e=c()("brz-control__select-option__bg",i.className);l=a.a.createElement("div",Object(g.a)({},i,{className:e}))}else i&&(l=a.a.createElement(s.b,{icon:i}));return r&&r.length?a.a.createElement(Xe.a,{key:t,title:o,items:this.renderChoices(r)},l,o&&a.a.createElement("span",{className:"brz-span"},o)):a.a.createElement(Je.a,{key:t,value:n,title:o},l,o&&a.a.createElement("span",{className:"brz-span"},o))})}renderAfterSelect(){}render(){const{label:e,display:t,itemHeight:o,helper:i,value:r,className:n,attr:l,onChange:s}=this.props,d=c()("brz-ed-option__select","brz-ed-option__"+t,n,l.className);return a.a.createElement("div",Object(g.a)({},l,{className:d}),e||i?this.renderLabel():null,a.a.createElement("div",{className:"brz-d-xs-flex brz-align-items-xs-center"},a.a.createElement(Ye.a,{className:"brz-control__select--dark",defaultValue:r,itemHeight:o,onChange:s},this.renderChoices()),this.renderAfterSelect()))}}Object(i.a)(St,"defaultProps",{label:"",display:"inline",className:"",itemHeight:30,icon:"",choices:[],attr:{},helper:!1,helperContent:"",helperPlacement:"top",onChange:y.default.noop});var Ot=St;var xt=class extends Ot{handleSidebarOpen(){Object(d.b)().dispatch(Object(p.S)("leftSidebar",{isOpen:!0,drawerContentType:"styling"}))}renderChoices(){return[{id:"",title:"Custom"},...Object(bt.f)()].map(({id:e,title:t})=>a.a.createElement(Je.a,{key:e,value:e},t))}renderAfterSelect(){return a.a.createElement("div",{className:"brz-ed-option__select__after",onClick:this.handleSidebarOpen},a.a.createElement(s.b,{icon:"nc-cog"}))}},Ct=o(63),wt=o.n(Ct),Bt=o(56),jt=o(145),Tt=o(6);function Pt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Et(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Pt(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class _t extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{device:"desktop",active:!1}),Object(i.a)(this,"handleToolbarOpen",()=>{this.setState({active:!0})}),Object(i.a)(this,"handleToolbarClose",()=>{this.setState({active:!1})}),Object(i.a)(this,"handleTabsChange",e=>{this.setState({device:e})}),Object(i.a)(this,"handleTextChange",e=>{this.props.onChange({title:e})}),Object(i.a)(this,"handleDelete",()=>{Object(we.d)(),this.props.onChange({deleted:!0})})}render(){const{title:e,fontFamily:t,fontFamilyType:o,fontSize:i,fontSizeSuffix:r,fontWeight:n,lineHeight:l,letterSpacing:d,tabletFontSize:p,tabletFontSizeSuffix:u,tabletFontWeight:b,tabletLineHeight:m,tabletLetterSpacing:h,mobileFontSize:g,mobileFontSizeSuffix:v,mobileFontWeight:y,mobileLineHeight:f,mobileLetterSpacing:S,showDeleteIcon:O,deletable:x,onChange:w}=this.props,{device:B,active:j}=this.state,T=c()("brz-ed-option__font-style-editor",{active:j}),P={fontFamily:Object(bt.c)({family:t,type:o}).family,fontWeight:"desktop"===B?n:"tablet"===B?b:y};return a.a.createElement("div",{className:T},O?a.a.createElement("div",{className:"brz-ed-option__font-style-editor--delete",onClick:this.handleDelete},a.a.createElement(s.b,{icon:"nc-remove"})):null,a.a.createElement(we.c,{getItems:()=>[{id:"toolbarTypography",type:"popover",icon:"nc-font",size:"large",display:"inside",onOpenDirect:!0,options:[{type:"grid",className:"brz-ed-grid__typography brz-ed-grid__typography--sidebar",columns:[{width:54,options:[{id:"fontFamily",label:"Font Family",type:"fontFamily",value:t,onChange:({id:e,type:t})=>w({fontFamily:e,fontFamilyType:t})}]},{width:46,className:"brz-ed-popover__typography",options:[{id:"fontDevices",type:"tabs",align:"start",tabsClassName:"brz-ed-control__tabs__editor",tabs:[{id:"desktop",tabIcon:"nc-desktop",options:[{type:"grid",className:"brz-ed-grid__typography",columns:[{width:50,options:[{id:"fontSizeSuffix",type:"select",label:"Size",className:"brz-control__typography-suffix",disabled:U.d,choices:jt.c,value:r,onChange:e=>w({fontSizeSuffix:e})},{id:"fontSize",type:"stepper",label:U.d?"Size":"",display:"block",min:1,max:300,step:1,value:i,onChange:e=>w({fontSize:e})},{id:"lineHeight",label:"Line Hgt.",type:"stepper",display:"block",min:1,max:10,step:.1,value:l,onChange:e=>w({lineHeight:e})}]},{width:50,options:[{id:"fontWeight",label:"Weight",type:"select",display:"block",choices:Object(bt.m)({family:t,type:o}),value:n,onChange:e=>w({fontWeight:e})},{id:"letterSpacing",label:"Letter Sp.",type:"stepper",display:"block",min:-20,max:20,step:.5,value:d,onChange:e=>w({letterSpacing:e})}]}]}]},{id:"tablet",tabIcon:"nc-tablet",options:[{type:"grid",disabled:U.d,className:"brz-ed-grid__typography",columns:[{width:50,options:[{id:"tabletFontSizeSuffix",type:"select",label:"Size",className:"brz-control__typography-suffix",choices:jt.c,value:u,onChange:e=>w({tabletFontSizeSuffix:e})},{id:"tabletFontSize",type:"stepper",display:"block",min:1,max:100,step:1,value:p,onChange:e=>w({tabletFontSize:e})},{id:"tabletLineHeight",label:"Line Hgt.",type:"stepper",display:"block",min:1,max:10,step:.1,value:m,onChange:e=>w({tabletLineHeight:e})}]},{width:50,options:[{id:"tabletFontWeight",label:"Weight",type:"select",display:"block",choices:Object(bt.m)({family:t,type:o}),value:b,onChange:e=>w({tabletFontWeight:e})},{id:"tabletLetterSpacing",label:"Letter Sp.",type:"stepper",display:"block",min:-20,max:20,step:.5,value:h,onChange:e=>w({tabletLetterSpacing:e})}]}]}]},{id:"mobile",tabIcon:"nc-phone",options:[{type:"grid",disabled:U.d,className:"brz-ed-grid__typography",columns:[{width:50,options:[{id:"mobileFontSizeSuffix",type:"select",label:"Size",className:"brz-control__typography-suffix",choices:jt.c,value:v,onChange:e=>w({mobileFontSizeSuffix:e})},{id:"mobileFontSize",type:"stepper",display:"block",min:1,max:100,step:1,value:g,onChange:e=>w({mobileFontSize:e})},{id:"mobileLineHeight",label:"Line Hgt.",type:"stepper",display:"block",min:1,max:10,step:.1,value:f,onChange:e=>w({mobileLineHeight:e})}]},{width:50,options:[{id:"mobileFontWeight",label:"Weight",type:"select",display:"block",choices:Object(bt.m)({family:t,type:o}),value:y,onChange:e=>w({mobileFontWeight:e})},{id:"mobileLetterSpacing",label:"Letter Sp.",type:"stepper",display:"block",min:-20,max:20,step:.5,value:S,onChange:e=>w({mobileLetterSpacing:e})}]}]}]}],value:B,onChange:this.handleTabsChange}]}]}]}],onOpen:this.handleToolbarOpen,onClose:this.handleToolbarClose},a.a.createElement("div",{className:"brz-ed-option__font-style-editor__container"},a.a.createElement("p",{className:"brz-p brz-ed-option__font-style-editor__title"},"on"===x?a.a.createElement(Bt.a,{value:e,onChange:this.handleTextChange}):e),a.a.createElement("p",{className:"brz-p brz-ed-option__font-style-editor__sample",style:P},Object(C.a)("It's a sample")))))}}Object(i.a)(_t,"defaultProps",{title:"Title",fontFamily:"",fontSize:12,fontSizeSuffix:"px",fontWeight:300,lineHeight:1,letterSpacing:1,tabletFontSize:12,tabletFontSizeSuffix:"px",tabletFontWeight:300,tabletLineHeight:1,tabletLetterSpacing:1,mobileFontSize:12,mobileFontSizeSuffix:"px",mobileFontWeight:300,mobileLineHeight:1,mobileLetterSpacing:1,showDeleteIcon:!1});class kt extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleChange",(e,t)=>{const{value:o,onChange:i}=this.props;i(o.map(o=>e===o.id?Et(Et({},o),t):o))}),Object(i.a)(this,"handleAddNew",()=>{const{value:e,onChange:t}=this.props,o=Et(Et({},e[0]),{},{deletable:"on",id:Object(M.a)(),title:Object(Tt.f)(Object(C.a)("New Style #%s"),e.length)});t([...e,o])}),Object(i.a)(this,"renderThumbs",e=>{let{style:t}=e,o=Object(Ee.a)(e,["style"]);return a.a.createElement("div",Object(g.a)({},o,{style:Et(Et({},t),{},{borderRadius:"inherit",backgroundColor:"#3f4652"})}))})}render(){const{value:e}=this.props,t=e.filter(e=>!0!==e.deleted).map(e=>a.a.createElement(_t,Object(g.a)({key:e.id,showDeleteIcon:"on"===e.deletable},e,{onChange:this.handleChange.bind(null,e.id)})));return a.a.createElement("div",{className:"brz-ed-option__font-styles"},a.a.createElement("div",{className:"brz-ed-option__font-styles--scroll-pane"},a.a.createElement(wt.a,{renderThumbHorizontal:this.renderThumbs,renderThumbVertical:this.renderThumbs},t)),a.a.createElement("div",{className:"brz-ed-option__font-styles--add",onClick:this.handleAddNew},a.a.createElement(s.b,{icon:"nc-add"}),a.a.createElement("span",{className:"brz-span"},Object(C.a)("Add New"))))}}Object(i.a)(kt,"defaultProps",{value:{}});var zt=kt;class Ft extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleMouseDown",e=>{e.preventDefault();const{value:t}=this.props;z.a.open({prompt:"form",mode:"single",props:{formId:t.id,formFields:t.fields}})})}render(){const{className:e,attr:t,icon:o}=this.props,i=c()("brz-ed-option__button",e,t.className);return a.a.createElement("div",Object(g.a)({},t,{className:i,onMouseDown:this.handleMouseDown}),a.a.createElement(s.b,{icon:o}))}}Object(i.a)(Ft,"defaultProps",{className:"",attr:{},icon:"nc-cog",value:!1});var Rt=Ft,Ht=o(96),Lt=o(20);function Mt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function It(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Mt(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Wt=["top","center","bottom"];class At extends a.a.Component{static filter(e,t){var o,i;return It(It({},t),{},{columns:null!==(o=null===(i=t.columns)||void 0===i?void 0:i.map(t=>It(It({},t),{},{options:t.options.map(e).filter(Lt.c)})).filter(e=>e.options.length>0))&&void 0!==o?o:[]})}static reduce(e,t,o){var i,r;return null!==(i=null===(r=o.columns)||void 0===r?void 0:r.reduce((t,{options:o})=>o.reduce(e,t),t))&&void 0!==i?i:t}static map(e,t){var o;return It(It({},t),{},{columns:null===(o=t.columns)||void 0===o?void 0:o.map(t=>It(It({},t),{},{options:t.options.map(e)}))})}render(){const{className:e,attr:t,columns:o,location:i,toolbar:r,separator:n}=this.props,l=c()("brz-d-xs-flex brz-flex-xs-no-wrap brz-ed-grid",{"brz-ed-grid--separator":!!n},e),s=o.map(({className:e,width:t,options:o,vAlign:n},l,s)=>{const d=c()("brz-ed-grid-option__column",(p=n,Wt.includes(p)?"brz-ed-grid-option__column--"+p:""),e);var p;const u=1===s.length,b={width:u?"100%":t+"%",flexBasis:u?"100%":t+"%"};return a.a.createElement("div",{key:l,className:d,style:b},a.a.createElement(Ht.a,{className:"brz-ed-grid__options",optionClassName:"brz-ed-grid__option",data:o,location:i,toolbar:r}))});return a.a.createElement("div",Object(g.a)({},t,{className:l}),s)}}Object(i.a)(At,"defaultProps",{className:"",location:"",attr:{},toolbar:null,columns:[],separator:!1});var Nt=At,Vt=o(235),Dt=o(23);var $t=({value:e,onChange:t})=>a.a.createElement("div",{className:"brz-ed-control__population__input",title:e},a.a.createElement("span",{className:"brz-span"},e),a.a.createElement(s.b,{icon:"nc-circle-remove",onClick:()=>t(Dt.b)})),Gt=o(170);const Ut=(e,t)=>e.map(e=>{if(Object(Gt.b)(e)){const{title:o,icon:i,optgroup:r}=e;return a.a.createElement(Xe.a,{key:o||i,title:o,items:Ut(r,t)},i&&a.a.createElement(s.b,{icon:i}),a.a.createElement("span",{className:"brz-span"},o))}const{value:o,title:i,icon:r}=e;return a.a.createElement(Je.a,{key:o,value:o,title:i,active:o===t},r&&a.a.createElement(s.b,{icon:r}),a.a.createElement("span",{className:"brz-span"},i))});function Kt({choices:e,value:t,onChange:o,className:i}){const r=c()("brz-control__select--dark","brz-control__select__auto","brz-control__select-population",{"brz-control__select--active":Boolean(t)},i);return a.a.createElement(Ye.a,{className:r,defaultValue:t,itemHeight:30,labelType:"icon",labelIcon:"nc-dynamic",onChange:o},Ut(e,t))}function qt({choices:e,value:t,renderUnset:o,onChange:i}){let r;if(t){var n;const o=Object(L.a)(e,e=>!Object(Gt.b)(e)&&e.value===t).obj;r=a.a.createElement($t,{value:null!==(n=null==o?void 0:o.title)&&void 0!==n?n:"",onChange:i})}else r=null==o?void 0:o();return a.a.createElement(a.a.Fragment,null,r,a.a.createElement(Kt,{choices:e,value:t,onChange:i}))}function Yt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Xt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Yt(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Jt extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handlePopulationChange",e=>{const{value:t,onChange:o}=this.props;o(Xt(Xt({},t),{},{population:e}),{isChanged:"population"})}),Object(i.a)(this,"renderImageSetter",()=>{const{value:e,onlyPointer:t,showPointer:o,onChange:i}=this.props;return a.a.createElement(Vt.a,Object(g.a)({},e,{onlyPointer:t,showPointer:o,onChange:i}))})}renderLabel(){const{label:e,helper:t,helperContent:o}=this.props,i=t?a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})):null;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__focal-point__label"},e,i)}render(){const{className:e,label:t,attr:o,display:i,helper:r,population:{choices:n,show:l},value:{population:s}}=this.props,d=c()("brz-ed-option__focal-point","brz-ed-option__"+i,e,o.className),p=l?a.a.createElement(qt,{choices:n,value:s,renderUnset:this.renderImageSetter,onChange:this.handlePopulationChange}):this.renderImageSetter();return a.a.createElement("div",Object(g.a)({},o,{className:d}),(t||r)&&this.renderLabel(),p)}}Object(i.a)(Jt,"defaultProps",{label:"",className:"",attr:{},helper:!1,helperContent:"",onlyPointer:!1,showPointer:!0,display:"inline",population:{show:!1,choices:[]},value:{},onChange:y.default.noop});var Zt=Jt,Qt=o(41);class eo extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleClick",()=>{const{value:e,onChange:t}=this.props;z.a.open({prompt:"icon",mode:"single",props:{onChange:t,name:e.name,type:e.type}})}),Object(i.a)(this,"handleRemove",()=>{this.props.onChange({name:"",type:""})}),Object(i.a)(this,"renderSelectIcon",()=>a.a.createElement("div",{className:"brz-ed-control__icon-setter__box",onClick:this.handleClick},a.a.createElement(s.b,{icon:"nc-add"}))),Object(i.a)(this,"renderRemoveIcon",()=>this.props.canDelete?a.a.createElement("div",{key:"second",className:"brz-ed-control__focal-point__delete",onClick:this.handleRemove},a.a.createElement(s.b,{icon:"nc-circle-remove"})):null),Object(i.a)(this,"renderIcon",()=>{const{name:e,type:t}=this.props.value;return[a.a.createElement("div",{key:"first",className:"brz-ed-control__icon-setter__box",onClick:this.handleClick},a.a.createElement("div",{className:"brz-ed-control__icon-setter--active"},a.a.createElement(Qt.a,{className:"grid-16 stroke-2",name:e,type:t}))),this.renderRemoveIcon()]})}render(){const{name:e}=this.props.value,t=c()("brz-ed-control__icon-setter",this.props.className);return a.a.createElement("div",{className:t},e?this.renderIcon():this.renderSelectIcon())}}Object(i.a)(eo,"defaultProps",{className:"",canDelete:!1,value:{},onChange:y.default.noop});class to extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"renderLabel",()=>{const{label:e,helper:t,helperContent:o}=this.props,i=t?a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})):null;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__focal-point__label"},e,i)})}render(){const{className:e,label:t,attr:o,value:i,helper:r,onChange:n,canDelete:l}=this.props,s=c()("brz-ed-option__icon-setter","brz-ed-option__inline",e,o.className),d=y.default.omit(o,"className");return a.a.createElement("div",Object(g.a)({className:s},d),t||r?this.renderLabel():null,a.a.createElement(eo,{value:i,onChange:n,canDelete:l}))}}Object(i.a)(to,"defaultProps",{label:"",className:"",attr:{},helper:!1,helperContent:"",canDelete:!1,value:{},onChange:y.default.noop});var oo=to,io=o(134);class ro extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{activeIcon:this.getInitialIcon(),focusedIcon:0,focused:!1}),Object(i.a)(this,"handleInputValueChange",(e,t)=>{const{value:o,onChange:i}=this.props;i(o.map((o,i)=>i===e?t:o))})}getInitialIcon(){const{defaultIcon:e,icons:t}=this.props.config;return e||t[0]}handleMouseEnter(e){const{icons:t}=this.props.config;this.setState({activeIcon:t[e]})}handleMouseLeave(){const{icons:e}=this.props.config,{focusedIcon:t,focused:o}=this.state;this.setState({activeIcon:o?e[t]:this.getInitialIcon()})}onFocus(e){const{icons:t}=this.props.config;this.setState({activeIcon:t[e],focusedIcon:e,focused:!0})}onBlur(e){this.setState({activeIcon:this.getInitialIcon(),focusedIcon:e,focused:!1})}render(){const{className:e,attr:t,min:o,max:i,step:r,value:n,display:l}=this.props,{activeIcon:d}=this.state,p=c()("brz-ed-option__input-outline","brz-ed-option__multi-input","brz-ed-option__"+l,"brz-ed-option__input-number-wrap",e,t.className),u=n.map((e,t)=>a.a.createElement("div",{key:t,className:"brz-ed-option__multi-input-container",onMouseEnter:()=>this.handleMouseEnter(t),onMouseLeave:()=>this.handleMouseLeave(t)},a.a.createElement(io.a,{className:"brz-input",min:o,max:i,step:r,value:e,onFocus:()=>this.onFocus(t),onBlur:()=>this.onBlur(t),onChange:e=>this.handleInputValueChange(t,e)})));return a.a.createElement("div",Object(g.a)({className:p},t),a.a.createElement(s.b,{icon:d,className:"brz-icon"}),u)}}Object(i.a)(ro,"defaultProps",{className:"",display:"inline",config:{defaultIcon:null,icons:["nc-settings"]},min:-9999,max:9999,step:1,value:null,attr:{},onChange:y.default.noop});var no=ro,ao=o(234);class lo extends a.a.Component{render(){const{className:e,choices:t,picker:o,attr:i,location:r,toolbar:n}=this.props,l=c()("brz-ed-option__multiPicker","brz-ed-option__inline",e,i.className),s=t[o.value]&&t[o.value].length>0;return a.a.createElement("div",Object(g.a)({},i,{className:l}),a.a.createElement("div",{className:"brz-ed-multiPicker__head"},a.a.createElement(ao.a,{className:"brz-ed-multiPicker__head__option",data:o})),a.a.createElement("div",{className:"brz-ed-multiPicker__body"},s&&a.a.createElement(Ht.a,{optionClassName:"brz-ed-multiPicker__option",data:t[o.value],location:r,toolbar:n})))}}Object(i.a)(lo,"defaultProps",{className:"",attr:{},picker:{},choices:{},location:"",toolbar:null});var co=lo,so=o(14);const po=["grouped","ungrouped"],uo=Object(so.c)(e=>po.includes(e));class bo extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleClick",()=>{const{value:{type:e,grouped:t,ungrouped:o},onChange:i}=this.props;i({type:"grouped"===e?"ungrouped":"grouped",grouped:t,ungrouped:o,isChanged:"type",isChangedIndex:0})}),Object(i.a)(this,"handleInputValueChange",(e,t)=>{const{value:{type:o,grouped:i,ungrouped:r},onChange:n}=this.props,a=this.props.value[o].map((o,i)=>i===e?t:o);n({type:o,grouped:"grouped"===o?a:i,ungrouped:"ungrouped"===o?a:r,isChanged:"value",isChangedIndex:e})})}render(){const{className:e,attr:t,min:o,max:i,step:r,value:{type:n},label:l,display:d,icon:p}=this.props,u=c()("brz-ed-option__multi-border","brz-ed-option__"+d,e,t.className),b=c()("brz-button",{"brz-ed-option__multi-border--active":"grouped"===n});return a.a.createElement("div",Object(g.a)({},t,{className:u}),l&&a.a.createElement("div",{className:"brz-label"},l),this.props.value[n].map((e,t)=>a.a.createElement(io.a,{className:"brz-input brz-ed-option__multi-input",key:t,min:o,max:i,step:r,value:e,onChange:e=>this.handleInputValueChange(t,e)})),a.a.createElement("button",{className:b,onClick:this.handleClick},a.a.createElement(s.b,{icon:p,className:"brz-icon"})))}}Object(i.a)(bo,"defaultProps",{className:"",display:"inline",icon:"nc-combined-shape",label:"Size",min:-9999,max:9999,step:1,attr:{},value:{type:"grouped",grouped:[],ungrouped:[]},onChange:y.default.noop});var mo=bo;function ho(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function go(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ho(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class vo extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"lastChange",this.props.value.value),Object(i.a)(this,"state",{value:this.props.value.value}),Object(i.a)(this,"isFocused",!1),Object(i.a)(this,"handleInputChange",e=>{const t=e.target.value;this.setState({value:t},()=>{this.debouncedHandleChange()})}),Object(i.a)(this,"handlePopulationChange",e=>{this.setState({value:""},()=>{const t={population:e};this.handleChange(t,{changed:"population"})})}),Object(i.a)(this,"handleChange",(e={},t={})=>{const o=go({value:this.state.value,population:this.props.value.population},e),i=go({changed:"value",changeEvent:"change"},t);this.props.onChange(o,i),this.lastChange=this.state.value}),Object(i.a)(this,"debouncedHandleChange",y.default.debounce((...e)=>this.isFocused&&this.handleChange(...e),1e3)),Object(i.a)(this,"handleInputFocus",()=>{this.isFocused=!0}),Object(i.a)(this,"handleInputBlur",()=>{if(this.isFocused=!1,this.props.value.value!==this.state.value){const e={},t={changed:"value",changeEvent:"blur"};this.handleChange(e,t)}}),Object(i.a)(this,"renderInput",()=>{const{inputSize:e,inputType:t,placeholder:o,population:i}=this.props,r=c()("brz-input brz-ed-control__input","brz-ed-control__input--"+e,{"brz-ed-control__input--dynamic":i&&i.show});return a.a.createElement("input",{className:r,placeholder:o,type:t,value:this.state.value,onChange:this.handleInputChange,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur})})}componentWillUnmount(){this.isFocused&&this.handleInputBlur()}renderLabel(){const{label:e,helper:t,helperContent:o,helperPlacement:i,population:r}=this.props;return a.a.createElement("div",{className:c()("brz-ed-option__label brz-ed-option__input__label",{"brz-ed-option__input__label--dynamic":r&&r.show})},e,t&&a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(ce.c,{placement:i,openOnClick:!1,overlay:a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}))))}render(){const{className:e,helper:t,label:o,display:i,population:{choices:r,show:n},value:{population:l}}=this.props,s=c()("brz-ed-option__input","brz-ed-option__"+i,e,{"brz-ed-option-input--dynamic":n}),d=n?a.a.createElement("div",{className:"brz-d-xs-flex brz-align-items-xs-center"},a.a.createElement(qt,{choices:r,value:l,renderUnset:this.renderInput,onChange:this.handlePopulationChange})):this.renderInput();return a.a.createElement("div",{className:s},(o||t)&&this.renderLabel(),d)}}Object(i.a)(vo,"defaultProps",{className:"",label:"",placeholder:"",helper:!1,helperContent:"",helperPlacement:"top",display:"inline",value:{value:"",population:""},inputType:"text",inputSize:"large",population:{show:!1,choices:[]},onChange:y.default.noop});var yo=vo;class fo extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"onChangeDebounced",y.default.debounce(e=>{this.props.onChange(e)},1e3)),Object(i.a)(this,"handleChance",e=>{this.onChangeDebounced(e.target.value)}),Object(i.a)(this,"handleFocus",()=>{this.textarea.focus()}),Object(i.a)(this,"renderLabel",()=>{const{label:e,helper:t,helperContent:o}=this.props,i=t?a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})):null;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__textarea__label"},e,i)})}render(){const{label:e,className:t,helper:o,placeholder:i,attr:r,value:n}=this.props,l=c()("brz-ed-option__textarea","brz-ed-option__inline",t,r.className),s=y.default.omit(r,"className");return a.a.createElement("div",Object(g.a)({className:l},s),e||o?this.renderLabel():null,a.a.createElement("textarea",{ref:e=>{this.textarea=e},type:"text",className:"brz-textarea brz-ed-control__textarea",placeholder:i,defaultValue:n,onClick:this.handleFocus,onChange:this.handleChance}))}}Object(i.a)(fo,"defaultProps",{className:"",label:"",placeholder:"",helper:!1,helperContent:"",attr:{},value:"",onChange:y.default.noop});var So=fo;function Oo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function xo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Oo(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Co extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleTooltipOpen",()=>{this.props.onChange(void 0,{isOpen:!0})}),Object(i.a)(this,"handleTooltipClose",()=>{this.props.onChange(void 0,{isOpen:!1})}),Object(i.a)(this,"switchToEdit",e=>{e.stopPropagation(),this.props.toolbar.setItemsRenderer(this.renderToolbarItems)}),Object(i.a)(this,"renderToolbarItems",e=>{const t=e.find(({id:e})=>e===this.props.id),o=c()("brz-ed-popover__inner",{["brz-ed-tooltip--"+t.size]:t.size});return a.a.createElement("div",{className:o},this.renderContent(t))}),Object(i.a)(this,"renderContent",e=>{const{toolbar:t,location:o}=this.props,{options:i,key:r}=e||this.props;return a.a.createElement("div",{key:r,className:"brz-d-xs-flex brz-flex-xs-wrap"},a.a.createElement(Ht.a,{className:"brz-ed-popover__options",optionClassName:"brz-ed-popover__option",data:i,location:o,toolbar:t}))})}static filter(e,t){var o;return xo(xo({},t),{},{options:null===(o=t.options)||void 0===o?void 0:o.map(e).filter(Lt.c)})}static reduce(e,t,o){var i,r;return null!==(i=null===(r=o.options)||void 0===r?void 0:r.reduce(e,t))&&void 0!==i?i:t}static map(e,t){var o;return xo(xo({},t),{},{options:null===(o=t.options)||void 0===o?void 0:o.map(e)})}componentDidMount(){const{display:e,onOpenDirect:t}=this.props;"inside"===e&&t&&this.props.toolbar.setItemsRenderer(this.renderToolbarItems)}getClickOutSideExceptions(){let e=[".brz-ed-fixed",".media-modal",".media-modal-backdrop"];return"toolbar"===this.props.location&&e.push(".brz-ed-sidebar__right"),e}renderIcon(){const{icon:e}=this.props;if(y.default.isObject(e)){const t=c()("brz-ed-popover__tooltip--icon-custom",e.className);return a.a.createElement("div",Object(g.a)({},e,{className:t}))}return a.a.createElement(s.b,{icon:e})}renderLabelHelper(){const{label:e,helper:t,helperContent:o}=this.props;return e||t?a.a.createElement("div",{key:"label",className:"brz-ed-option__label brz-ed-option__popover__label"},e,t&&a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}}))):null}renderInside(){const{className:e,icon:t,title:o}=this.props,i=c()("brz-ed-popover__inner--icon",e),r=y.default.omit(t,"className"),n=c()("brz-ed-popover__tooltip--icon-custom",t.className);return a.a.createElement("div",{className:i,title:o,onMouseDown:this.switchToEdit},y.default.isObject(t)?a.a.createElement("div",Object(g.a)({className:n},r)):a.a.createElement(s.b,{icon:t}))}renderOutside(){const{className:e,title:t,size:o,location:i,toolbar:r}=this.props,n=c()("brz-ed-popover",e);let l=r,s="top";return"rightSidebar"===i&&(l=null,s="bottom"),a.a.createElement("div",{className:n},this.renderLabelHelper(),a.a.createElement(ce.c,{className:"brz-ed-popover__tooltip",placement:s,overlay:this.renderContent(),title:t,size:o,toolbar:l,clickOutsideExceptions:this.getClickOutSideExceptions(),onOpen:this.handleTooltipOpen,onClose:this.handleTooltipClose},this.renderIcon()))}render(){const{display:e}=this.props;return"outside"===e?this.renderOutside():this.renderInside()}}Object(i.a)(Co,"defaultProps",{className:"",icon:"nc-cog",size:"medium",title:"Settings",label:"",helperContent:"",helper:!1,display:"outside",onOpenDirect:!1,location:"",toolbar:null,options:[]});var wo=Co;class Bo extends a.a.Component{calConditionsAmount(){const e=Object(d.b)().getState();let t=0;U.a||(t=Object(u.I)(e),t=null===t?1:t);const o=Object(u.Q)(e);return t+(o.find(({id:e})=>"triggerOnce"===e)?o.length:o.length+1)}render(){const{className:e,attr:t}=this.props,o=c()("brz-ed-option__popup_conditions",e,t.className),i=y.default.omit(t,"className");return a.a.createElement(q,{context:"popup"},a.a.createElement("div",Object(g.a)({className:o},i),a.a.createElement("span",{className:"brz-ed-option__popup_conditions-count"},this.calConditionsAmount()),Object(C.a)(" Display Conditions")))}}Object(i.a)(Bo,"defaultProps",{className:"",attr:{}});var jo=Bo;var To=({className:e="",value:t,context:o,attr:i={}})=>{const r=c()("brz-ed-option__popup_conditions",e,i.className),n=y.default.omit(i,"className"),l=Object(d.b)().getState(),s=Object(u.u)(l),{rules:p}=s[t];return a.a.createElement(q,{context:o,value:t},a.a.createElement("div",Object(g.a)({className:r},n),a.a.createElement("span",{className:"brz-ed-option__popup_conditions-count"},p.length),Object(C.a)(" Display Conditions")))},Po=o(120),Eo=o(24),_o=o(206);class ko extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleCreate",()=>{const e={prompt:"blocks",mode:"single",props:{type:"popup",showTemplate:!1,blocksType:!1,globalSearch:!1,onChangeBlocks:this.handleAddBlocks,onChangeGlobal:this.handleAddBlocks,onChangeSaved:this.handleAddSavedBlock}};z.a.open(e)}),Object(i.a)(this,"handleAddBlocks",e=>{const{value:{popups:t},globalBlocks:o,onChange:i,dispatch:r}=this.props;let{block:n}=e;const{fonts:a}=e;let l;null!=a&&a.length&&r(Object(p.n)(a));let c=[];if("GlobalBlock"!==n.type)l=Object(M.a)(),n=Object(Po.a)(n,{value:{_blockVisibility:"unlisted",popupId:l}}),c=Object(_o.a)(t,t.length,n);else{const{_id:e}=n.value,i=o[e].data;i.value.popupId?l=i.value.popupId:(l=Object(M.a)(),r(Object(p.M)({id:e,data:Object(Po.a)(i,{value:{popupId:l}}),meta:{is_autosave:0}}))),c=Object(Eo.insert)(t,t.length,n)}i({value:l,popups:c})}),Object(i.a)(this,"handleAddSavedBlock",e=>{const{fonts:t,blocks:o,extraFontStyles:i=[]}=e,{value:{popups:r},dispatch:n,onChange:a}=this.props,l=Object(M.a)(),c=Object(Po.a)(o[0],{value:{_blockVisibility:"unlisted",popupId:l}});t.length&&n(Object(p.n)(t)),i.length&&n(Object(p.K)(i)),a({value:l,popups:Object(_o.a)(r,r.length,c)})}),Object(i.a)(this,"handleEdit",()=>{const{popupKey:e,value:{value:t}}=this.props;new Map([...X.a,...J.a]).get(e||t).open(),Object(we.d)()}),Object(i.a)(this,"handleDelete",()=>{const{value:{value:e,popups:t},globalBlocks:o}=this.props;this.props.onChange({value:"",popups:t.filter(t=>{if("GlobalBlock"!==t.type)return t.value.popupId!==e;{const{_id:i}=t.value,r=o[i].data;return!r||r.value.popupId!==e}})})})}getPopupBlock(){const{globalBlocks:e,pageBlocks:t,value:{value:o,popups:i}}=this.props;let r;return r=i.find(t=>("GlobalBlock"===t.type&&(t=e[t.value._id].data),t.value.popupId===o)),r||(r=t.find(e=>e.value._id===o)),r}renderLabel(){const{label:e,helper:t,helperContent:o}=this.props;return a.a.createElement("div",{className:"brz-ed-option__label"},e,t&&a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})))}renderThumbnail(e){const{canDelete:t}=this.props,{url:o,width:i,height:r}=Object(O.b)(e,{searchScreenshotInStoreFirst:!0}),{width:n,height:l}=Object(x.e)(i,r,140),c={width:n+"px",height:l+"px"};return a.a.createElement("figure",{className:"brz-figure brz-ed-option__prompt-popup__image",style:c},a.a.createElement("img",{src:o,className:"brz-img",onClick:this.handleEdit,alt:"Popup Thumbnail"}),t&&a.a.createElement("div",{className:"brz-ed-option__prompt-popup-remove",onClick:this.handleDelete},a.a.createElement(s.b,{icon:"nc-circle-remove"})))}renderAdder(){return a.a.createElement("div",{className:"brz-ed-control__focal-point__label"},a.a.createElement("div",{className:"brz-ed-control__focal-point__upload",onClick:this.handleCreate},a.a.createElement(s.b,{icon:"nc-add"})))}render(){const{className:e,attr:t,label:o,helper:i,display:r,value:n}=this.props,l=c()("brz-ed-option__prompt-popup","brz-ed-option__"+r,e,t.className),s=n.value&&this.getPopupBlock();return a.a.createElement("div",Object(g.a)({},t,{className:l}),o||i?this.renderLabel():null,s?this.renderThumbnail(s):this.renderAdder())}}Object(i.a)(ko,"defaultProps",{label:"",className:"",attr:{},helper:!1,helperContent:"",display:"inline",canDelete:!0,popupKey:"",value:{value:"",popups:[]},onChange:y.default.noop});var zo=Object(f.b)(e=>({pageBlocks:Object(u.C)(e),globalBlocks:Object(u.u)(e)}))(ko);class Fo extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleClick",()=>{const{value:e,onChange:t}=this.props;z.a.open({prompt:"icon",mode:"single",props:{onChange:t,name:e.name,type:e.type}})})}render(){const{className:e,attr:t,icon:o}=this.props,i=c()("brz-ed-option__prompt-icon",e,t.className),r=y.default.omit(t,"className");return a.a.createElement("div",Object(g.a)({className:i,onClick:this.handleClick},r),a.a.createElement(s.b,{icon:o}))}}Object(i.a)(Fo,"defaultProps",{className:"",attr:{},icon:"nc-grid-45",value:null,onChange:y.default.noop});var Ro=Fo;class Ho extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"onClick",e=>{this.props.onChange(e)}),Object(i.a)(this,"getCurrent",()=>y.default.find(this.props.children,e=>e.props.value===this.props.defaultValue)||this.props.children[0]),Object(i.a)(this,"renderOptions",()=>y.default.map(this.props.children,(e,t)=>a.a.cloneElement(e,{key:t,active:this.props.defaultValue===e.props.value,onClick:e.props.disabled?null:this.onClick.bind(null,e.props.value)})))}render(){const{className:e,name:t,defaultValue:o}=this.props,i=c()("brz-ed-control__radio-group",e);return a.a.createElement("div",{className:i},this.renderOptions(),a.a.createElement("div",null,a.a.createElement("input",{className:"brz-input",name:t,type:"hidden",value:o})))}}Object(i.a)(Ho,"defaultProps",{name:"defaultName",className:"",defaultValue:"",onChange:y.default.noop});class Lo extends a.a.Component{render(){const{className:e,active:t,children:o,onClick:i}=this.props,r=c()("brz-control__radio-option",{active:t},e);return a.a.createElement("div",{className:r,onClick:i},o)}}class Mo extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"renderIcon",e=>a.a.createElement("div",{className:"brz-ed-option__radio-group__icon"},a.a.createElement(s.b,{icon:e}))),Object(i.a)(this,"renderLabel",()=>{const{label:e,helper:t,helperContent:o}=this.props,i=t?a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})):null;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__radio-group__label"},e,i)}),Object(i.a)(this,"renderRadioChoices",e=>e.map(({value:e,title:t,icon:o})=>{const i=c()({"brz-ed-option__radio-group--boxed":o});return a.a.createElement(Lo,{key:e,value:e,className:i},o?this.renderIcon(o):null,t?this.renderTitle(t):null)})),Object(i.a)(this,"renderTitle",e=>a.a.createElement("div",{className:"brz-ed-option__radio-group__title"},e))}render(){const{label:e,display:t,className:o,helper:i,choices:r,attr:n,value:l,onChange:s}=this.props,d=c()("brz-ed-option__radio-group","brz-ed-option__"+t,o,n.className),p=y.default.omit(n,"className");return a.a.createElement("div",Object(g.a)({className:d},p),e||i?this.renderLabel():null,a.a.createElement(Ho,{defaultValue:l,onChange:s},this.renderRadioChoices(r)))}}Object(i.a)(Mo,"defaultProps",{label:"",display:"inline",icon:"",title:"",className:"",value:"",helper:!1,helperContent:"",attr:{},choices:[],onChange:y.default.noop});var Io=Mo,Wo=o(9),Ao=o.n(Wo),No=o(100),Vo=o(298);class Do extends a.a.Component{renderLabel(){const{label:e,helper:t,helperContent:o}=this.props,i=t?a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})):null;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__check-group__label"},e,i)}renderChoices(){const{choices:e}=this.props;return e.map(({value:e,title:t,icon:o})=>{const i=c()({"brz-ed-option__check-group--boxed":o});return a.a.createElement(Vo.a,{key:e,className:i,name:t||o,value:e},o&&a.a.createElement("div",{className:"brz-ed-option__check-group__icon"},a.a.createElement(s.b,{icon:o})),t&&a.a.createElement("div",{className:"brz-ed-option__check-group__title"},t))})}render(){const{label:e,display:t,className:o,helper:i,attr:r,value:n,onChange:l}=this.props,s=c()("brz-ed-option__check-group","brz-ed-option__"+t,o,r.className);return a.a.createElement("div",Object(g.a)({},r,{className:s}),e||i?this.renderLabel():null,a.a.createElement(No.c,{defaultValue:n,onChange:l},this.renderChoices()))}}Object(i.a)(Do,"propTypes",{label:Ao.a.string,display:Ao.a.string,icon:Ao.a.string,title:Ao.a.string,className:Ao.a.string,helper:Ao.a.bool,helperContent:Ao.a.string,attr:Ao.a.object,choices:Ao.a.array.isRequired,value:Ao.a.object.isRequired,onChange:Ao.a.func.isRequired}),Object(i.a)(Do,"defaultProps",{label:"",display:"inline",icon:"",title:"",className:"",value:{},helper:!1,helperContent:"",attr:{},choices:[],onChange:y.default.noop});var $o=Do;class Go extends n.Component{render(){const{className:e,value:t,min:o,max:i,step:r}=this.props,n=c()("brz-ed-control__slider",e);return a.a.createElement("div",{className:n},a.a.createElement(Ze.c,{value:t,min:o,max:i,step:r,onChange:this.props.onChange,onAfterChange:this.props.onChangeEnd}))}}Object(i.a)(Go,"defaultProps",{value:100,min:0,max:100,step:1,onChange:y.default.noop,onChangeEnd:y.default.noop});class Uo extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"state",{inputText:""}),Object(i.a)(this,"inputRef",a.a.createRef()),Object(i.a)(this,"handleInputTextChange",e=>{this.setState({inputText:e})}),Object(i.a)(this,"handleInputValueChange",e=>{const{suffixValue:t,onChange:o}=this.props;o({value:e,suffixValue:t})}),Object(i.a)(this,"handleSuffixChange",e=>{const{value:t,onChange:o}=this.props;o({value:t,suffixValue:e})})}componentDidMount(){this.setState({inputText:this.inputRef.current.getText()})}componentDidUpdate(){this.state.inputText!==this.inputRef.current.getText()&&this.setState({inputText:this.inputRef.current.getText()})}renderSuffix(){const{suffixes:e,suffixValue:t}=this.props;return e.map(o=>{const{title:i,value:r}=o,n=c()("brz-ed-option__text-box__helper",{"brz-ed-option__text-box__helper--active":r===t}),l=e.length>1?()=>{this.handleSuffixChange(r)}:null;return a.a.createElement("div",{key:r,className:n,onClick:l},i)})}render(){const{className:e,attr:t,min:o,max:i,step:r,value:n,suffixes:l,suffixValue:s}=this.props,{inputText:d}=this.state,p=null!==s&&l.length>1,u=c()("brz-ed-option__text-box",{"brz-ed-option__text-box--fixed-width":p},e,t.className),b=d.slice(0,-1)+"9";return a.a.createElement("div",Object(g.a)({},t,{className:u}),a.a.createElement("label",{className:"brz-label"},a.a.createElement("div",{className:"brz-ed-option__text-box__input"},!p&&a.a.createElement("div",{className:"brz-invisible"},b),a.a.createElement(io.a,{ref:this.inputRef,className:"brz-input brz-ed-control__text-box--resizer",min:o,max:i,step:r,value:n,onTextChange:this.handleInputTextChange,onChange:this.handleInputValueChange})),l.length>0&&this.renderSuffix()))}}Object(i.a)(Uo,"defaultProps",{className:"",attr:{},suffixes:[{title:"px",value:"px"}],min:0,max:0,step:0,value:0,suffixValue:null,onChange:y.default.noop});var Ko=Uo;function qo(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Yo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qo(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Xo extends a.a.Component{constructor(e){super(e),Object(i.a)(this,"handleSliderChange",e=>{this.handleChange({value:e},{sliderDragEnd:!1})}),Object(i.a)(this,"handleSliderChangeEnd",e=>{this.handleChange({value:e},{sliderDragEnd:!0})}),Object(i.a)(this,"handleInputChange",({value:e,suffixValue:t})=>{this.handleChange({value:e,suffix:t},{sliderDragEnd:!0})}),Object(i.a)(this,"handleChange",(e,t)=>{const{onChange:o}=this.props,i=Yo(Yo({},this.state),e);this.setState(i),o(i,t)});const t=e.value;this.state=Yo({},t)}static getDerivedStateFromProps({value:e},t){return e.value!==t.value||e.suffix!==t.suffix?Yo({},e):null}renderLabel(){const{label:e,helper:t,helperContent:o}=this.props;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__slider__label"},e,t&&a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})))}renderIcon(){const{icon:e,title:t}=this.props;return a.a.createElement("div",{className:"brz-ed-option__slider__icon",title:t},a.a.createElement(s.b,{icon:e}))}renderInput(){const e=this.constructor.defaultProps,t=this.props,{suffix:{show:o=e.suffix.show,choices:i=e.suffix.choices},input:{min:r=(null!=e.input.min?e.input.min:null!=t.slider.min?t.slider.min:e.slider.min),max:n=(null!=e.input.max?e.input.max:null!=t.slider.max?t.slider.max:e.slider.max),step:l=(null!=e.input.step?e.input.step:null!=t.slider.step?t.slider.step:e.slider.step)}}=this.props,{value:c,suffix:s}=this.state;return a.a.createElement(Ko,{min:Number(r),max:Number(n),step:Number(l),suffixes:o?i:[],suffixValue:o?s:null,value:Number(c),onChange:this.handleInputChange})}render(){const e=this.constructor.defaultProps,{className:t,label:o,display:i,slider:{min:r=e.slider.min,max:n=e.slider.max,step:l=e.slider.step},input:s,suffix:d,helper:p,attr:u,icon:b}=this.props,m=c()("brz-ed-option__slider","brz-ed-option__"+i,{"brz-ed-option__slider-suffix":d.length>0},t,u.className),h=y.default.omit(u,"className"),v=Object(W.b)(this.state.value,r,n);return a.a.createElement("div",Object(g.a)({className:m},h),o||p?this.renderLabel():null,a.a.createElement("div",{className:"brz-ed-option__slider__content"},b&&this.renderIcon(),a.a.createElement(Go,{id:this.props.id,min:Number(r),max:Number(n),step:Number(l),value:Number(v),onChange:this.handleSliderChange,onChangeEnd:this.handleSliderChangeEnd}),s.show&&this.renderInput()))}}Object(i.a)(Xo,"defaultProps",{label:"",title:"",display:"inline",className:"",helperContent:"",helper:!1,icon:"",attr:{},slider:{min:0,max:100,step:1},input:{show:!1,min:-9999,max:9999,step:null},suffix:{show:!1,choices:[]},value:{value:0,suffix:null},onChange:y.default.noop});var Jo=Xo;class Zo extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"nodeRef",a.a.createRef()),Object(i.a)(this,"inputRef",a.a.createRef()),Object(i.a)(this,"mounted",!1),Object(i.a)(this,"mouseDown",!1),Object(i.a)(this,"timeoutId",null),Object(i.a)(this,"intervalId",null),Object(i.a)(this,"handleDocumentMouseUp",()=>{this.mouseDown&&(this.mouseDown=!1,clearTimeout(this.timeoutId),clearInterval(this.intervalId))}),Object(i.a)(this,"handleIncrement",()=>{this.emulateNativeInput(this.handleIncrementCb)}),Object(i.a)(this,"handleIncrementCb",()=>{this.inputRef.current.increment()}),Object(i.a)(this,"handleDecrement",()=>{this.emulateNativeInput(this.handleDecrementCb)}),Object(i.a)(this,"handleDecrementCb",()=>{this.inputRef.current.decrement()})}componentDidMount(){this.mounted=!0,this.nodeRef.current.ownerDocument.addEventListener("mouseup",this.handleDocumentMouseUp)}componentWillUnmount(){this.mounted=!1,this.nodeRef.current.ownerDocument.removeEventListener("mouseup",this.handleDocumentMouseUp),clearTimeout(this.timeoutId),clearInterval(this.intervalId)}emulateNativeInput(e){e(),this.mouseDown=!0,this.timeoutId=setTimeout(()=>{this.mounted&&this.mouseDown&&(this.intervalId=setInterval(()=>{this.mounted&&this.mouseDown&&e()},50))},400)}render(){const{className:e,value:t,min:o,max:i,step:r,onChange:n}=this.props,l=c()("brz-ed-control__stepper",e);return a.a.createElement("div",{ref:this.nodeRef,className:l},a.a.createElement("div",{className:"brz-ed-control__stepper--value"},a.a.createElement(io.a,{ref:this.inputRef,className:"brz-input brz-ed-control__input",value:t,min:o,max:i,step:r,onChange:n})),a.a.createElement("div",{className:"brz-ed-control__stepper--arrows"},a.a.createElement("div",{className:"brz-ed-control__stepper--up",onMouseDown:this.handleIncrement},a.a.createElement(s.b,{icon:"nc-stre-up"})),a.a.createElement("div",{className:"brz-ed-control__stepper--down",onMouseDown:this.handleDecrement},a.a.createElement(s.b,{icon:"nc-stre-down"}))))}}Object(i.a)(Zo,"propTypes",{className:Ao.a.string,min:Ao.a.number,max:Ao.a.number,step:Ao.a.number,value:Ao.a.number,onChange:Ao.a.func}),Object(i.a)(Zo,"defaultProps",{className:"",min:0,max:10,step:1,value:1,onChange:y.default.noop});class Qo extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"renderLabel",()=>{const{label:e,helper:t,helperContent:o}=this.props,i=t?a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})):null;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__stepper__label"},e,i)})}render(){const{label:e,display:t,min:o,max:i,step:r,helper:n,value:l,className:s,attr:d,onChange:p}=this.props,u=c()("brz-ed-option__stepper","brz-ed-option__"+t,s,d.className),b=y.default.omit(d,"className");return a.a.createElement("div",Object(g.a)({className:u},b),e||n?this.renderLabel():null,a.a.createElement(Zo,{value:Number(l),min:Number(o),max:Number(i),step:Number(r),onChange:p}))}}Object(i.a)(Qo,"defaultProps",{label:"",display:"inline",min:0,max:10,step:1,value:5,className:"",attr:{},helper:!1,helperContent:"",onChange:y.default.noop});var ei=Qo;class ti extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleChange",e=>{const{closeTooltip:t,showHiddenElements:o,onChange:i}=this.props;if("off"===e&&t&&!o){const e=Object(ce.d)();e&&e.state.isOpen&&e.close()}i(e)})}renderLabel(){const{label:e,helper:t,helperContent:o}=this.props;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__switch__label"},e,t&&a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})))}render(){const{label:e,display:t,helper:o,value:i,valueMap:r,attr:n,className:l}=this.props,s=c()("brz-ed-option__switch","brz-ed-option__"+t,l,n.className);return a.a.createElement("div",Object(g.a)({},n,{className:s}),e||o?this.renderLabel(e):null,a.a.createElement(Y.a,{key:i,defaultValue:i,valueMap:r,onChange:this.handleChange}))}}Object(i.a)(ti,"defaultProps",{label:"",display:"inline",className:"",closeTooltip:!1,value:"off",valueMap:{true:"on",false:"off"},attr:{},helper:!1,helperContent:"",onChange:y.default.noop});var oi=Object(f.b)(e=>({showHiddenElements:Object(u.L)(e)}))(ti);class ii extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"renderTabs",()=>{const{value:e,hideHandlesWhenOne:t,align:o,tabsPosition:i,tabsClassName:r,children:n,onChange:l}=this.props,d=a.a.Children.toArray(n);if(0===d.length||1===d.length&&t)return null;const p=c()("brz-ul brz-ed-control__tabs","brz-justify-content-xs-"+o,"brz-ed-control__tabs__"+i,r),u=d.map((t,o)=>{const{icon:i,value:r,title:n,label:d}=t.props,p=c()("brz-li brz-ed-control__tab",{"brz-ed-control__tab__icon":i,active:e===r});return a.a.createElement("li",{key:o,title:n,className:p,onClick:()=>l(r)},i&&a.a.createElement(s.b,{icon:i}),a.a.createElement("span",{className:"brz-span"},d))});return a.a.createElement("ul",{className:p},u)}),Object(i.a)(this,"renderTabContent",()=>{const{value:e,tabsPosition:t,children:o}=this.props,i=a.a.Children.toArray(o),r=c()("brz-ed-control__tab__content","brz-ed-control__tabs__content__"+t),n=i.find(t=>e===t.props.value);return n&&a.a.createElement("div",{className:r},n.props.children)})}render(){return a.a.createElement("div",{className:this.props.className},this.props.helper,this.renderTabs(),this.renderTabContent())}}Object(i.a)(ii,"propTypes",{align:Ao.a.string,className:Ao.a.string,tabsClassName:Ao.a.string,tabsPosition:Ao.a.string,value:Ao.a.string,hideHandlesWhenOne:Ao.a.bool,onChange:Ao.a.func}),Object(i.a)(ii,"defaultProps",{align:"",className:"",tabsClassName:"",tabsPosition:"top",value:"",hideHandlesWhenOne:!0,onChange:y.default.noop,helper:null});class ri extends a.a.Component{render(){return this.props.children}}function ni(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}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}class li extends a.a.Component{static filter(e,t){var o,i;return ai(ai({},t),{},{tabs:null!==(o=null===(i=t.tabs)||void 0===i?void 0:i.map(t=>{var o;return ai(ai({},t),{},{options:null==t||null===(o=t.options)||void 0===o?void 0:o.map(e).filter(Lt.c)})}).filter(e=>{var t;return(null==e||null===(t=e.options)||void 0===t?void 0:t.length)>0}))&&void 0!==o?o:[]})}static reduce(e,t,o){var i,r;return null!==(i=null===(r=o.tabs)||void 0===r?void 0:r.reduce((t,o)=>{var i;return null==o||null===(i=o.options)||void 0===i?void 0:i.reduce(e,t)},t))&&void 0!==i?i:t}static map(e,t){var o;return ai(ai({},t),{},{tabs:null===(o=t.tabs)||void 0===o?void 0:o.map(t=>ai(ai({},t),{},{options:t.options.map(e)}))})}constructor(e){super(e),Object(i.a)(this,"handleTabChange",e=>{this.isControlled?this.props.onChange(e):e!==this.state.activeTab&&this.setState({activeTab:e},()=>{const e=Object(ce.d)();e&&e.reposition()})});const[t]=e.tabs;this.state={activeTab:t&&(t.id||t.label||t.tabIcon)},this.isControlled=null!==e.value}getActiveTab(){const{tabs:e,value:t}=this.props,o=e.some(({id:e})=>e===t);return this.isControlled&&o?t:this.state.activeTab}sortTabs(e){for(const t of e)if(void 0!==t.position)return[...e].sort((e,t)=>(e.position||100)-(t.position||100));return e}render(){const{tabs:e,className:t,tabsPosition:o,tabsClassName:i,hideHandlesWhenOne:r,align:n,location:l,toolbar:c}=this.props,s=this.sortTabs(e).map(({id:e,title:o,label:i,options:r,tabIcon:n})=>{const s=e||i||n;return a.a.createElement(ri,{key:s,title:o,label:i,icon:n,value:s},a.a.createElement(Ht.a,{className:"brz-ed-tabs__options",optionClassName:t,data:r,toolbar:c,location:l}))});return a.a.createElement(ii,{className:"brz-ed-tabs__option--inline",tabsClassName:i,tabsPosition:o,value:this.getActiveTab(),align:n,hideHandlesWhenOne:r,onChange:this.handleTabChange},s)}}Object(i.a)(li,"defaultProps",{align:"center",hideHandlesWhenOne:!0,tabs:[],location:"",value:null,toolbar:null});var ci=li,si=o(87);function di({className:e,children:t,value:o,onChange:i}){var r;const n=c()("brz-ed-control__icon-carousel",e),l=null!==(r=t.find(e=>e.props.value===o))&&void 0!==r?r:t[0],s=t.map(e=>e.props.value);return a.a.createElement("div",{className:n,title:l.props.title,onClick:()=>{const e=Object(si.g)(o,s),t=void 0!==e?Object(si.i)(e,s):void 0;void 0!==t&&i(s[t])}},l)}var pi=di;function ui({className:e,icon:t}){return a.a.createElement(s.a,{className:e,icon:t})}var bi=ui;class mi extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleChange",e=>{const{closeTooltip:t,showHiddenElements:o,onChange:i}=this.props;if("off"===e&&t&&!o){const e=Object(ce.d)();e&&e.close()}i(e)})}getTitle(){const{choices:e,value:t}=this.props,o=e.find(e=>e.value===t);return o?o.title:""}render(){const{className:e,attr:t,choices:o,value:i}=this.props,r=y.default.map(o,({icon:e,value:t})=>a.a.createElement(bi,{key:e,value:t,icon:e})),n=c()("brz-ed-option__toggle",e,t.className);return a.a.createElement(pi,Object(g.a)({value:i,title:this.getTitle(),onChange:this.handleChange},t,{className:n}),r)}}Object(i.a)(mi,"defaultProps",{className:"",attr:{},closeTooltip:!1,value:"",choices:[]}),Object(i.a)(mi,"propTypes",{className:Ao.a.string,attr:Ao.a.object,closeTooltip:Ao.a.bool,value:Ao.a.any,choices:Ao.a.array.isRequired});var hi=Object(f.b)(e=>({showHiddenElements:Object(u.L)(e)}))(mi);class gi extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleInputValueChange",e=>{this.props.onChange(e)})}renderLabel(){const{label:e,helper:t,helperContent:o}=this.props;return a.a.createElement("div",{className:"brz-ed-option__label brz-ed-option__input-number__label"},e,t&&a.a.createElement("div",{className:"brz-ed-option__helper"},a.a.createElement(s.b,{icon:"nc-alert-circle-que"}),a.a.createElement("div",{className:"brz-ed-option__helper__content",dangerouslySetInnerHTML:{__html:o}})))}render(){const{className:e,label:t,helper:o,attr:i,min:r,max:n,step:l,value:s}=this.props,d=c()("brz-ed-option__inline","brz-ed-option__input-number",e,i.className);return a.a.createElement("div",Object(g.a)({},i,{className:d}),(t||o)&&this.renderLabel(),a.a.createElement("div",{className:"brz-ed-option__input-number-wrap"},a.a.createElement(io.a,{className:"brz-input",min:r,max:n,step:l,value:s,onChange:this.handleInputValueChange})))}}Object(i.a)(gi,"defaultProps",{className:"",label:"",placeholder:"",helper:!1,helperContent:"",attr:{},min:-9999,max:9999,step:1,value:0,onChange:y.default.noop});var vi=gi;function yi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function fi(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}const Si=Ze.c.Handle;class Oi extends a.a.Component{constructor(e){super(e),Object(i.a)(this,"handleOnMouseDown",e=>{const t=0===e?"startPointer":"finishPointer";this.handleChange({activePointer:t})}),Object(i.a)(this,"handleRangeChange",e=>{this.handleChange({startPointer:e[0],finishPointer:e[1]})}),Object(i.a)(this,"handleChange",e=>{const t=fi(fi({},this.state),e);this.setState(t),this.props.onChange(t)}),Object(i.a)(this,"handle",e=>{const{className:t,dragging:o,value:i,index:r}=e,n=Object(Ee.a)(e,["className","dragging","value","index"]),l=c()(t,{"brz-ed-rc-slider-handle--active":"startPointer"===this.state.activePointer&&0===r||"finishPointer"===this.state.activePointer&&1===r});return a.a.createElement(Si,Object(g.a)({key:r,value:i,onMouseDown:()=>this.handleOnMouseDown(r)},n,{className:l}))});const t=e.value;this.state=fi({},t)}render(){const{className:e,config:{range:{min:t,max:o,step:i}},attr:r}=this.props,n=c()("brz-ed-option__range",e,r.className),l=y.default.omit(r,"className"),{startPointer:s,finishPointer:d,bgColorHex:p,gradientColorHex:u}=this.state;return a.a.createElement("div",Object(g.a)({className:n},l),a.a.createElement("div",{className:"brz-ed-option__range__content"},a.a.createElement(Qe,{id:this.props.id,min:t,max:o,step:i,startPointer:s,finishPointer:d,handle:this.handle,railStyle:{backgroundImage:`linear-gradient(to right, ${p}, ${u})`},onChange:this.handleRangeChange})))}}Object(i.a)(Oi,"defaultProps",{className:"",attr:{},config:{range:{min:0,max:100,step:1}},value:{startPointer:0,finishPointer:100,activePointer:"startPointer",bgColorHex:"#000000",gradientColorHex:"#000000"},onChange:y.default.noop});var xi=Oi;class Ci extends a.a.Component{constructor(...e){super(...e),Object(i.a)(this,"handleMouseDown",e=>{e.preventDefault(),z.a.open({prompt:"apps",mode:"single",props:this.props.value})})}render(){const{className:e,attr:t,icon:o}=this.props,i=c()("brz-ed-option__button",e,t.className);return a.a.createElement("div",Object(g.a)({},t,{className:i,onMouseDown:this.handleMouseDown}),a.a.createElement(s.b,{icon:o}))}}Object(i.a)(Ci,"defaultProps",{className:"",attr:{},icon:"nc-cog",value:{service:"facebook",group:"social"}});var wi=Ci,Bi=o(577),ji=o(19),Ti=o(236),Pi=o(303);const Ei=e=>{const t=Object(Pi.b)((e,t)=>{var o;return[...e,...null!==(o=t.states)&&void 0!==o?o:[]]},[],e);return t.length?Object(y.unique)(t):["normal"]},_i=(e,t)=>Object(Ti.a)(t=>Ei(t).includes(e),t),ki=e=>{switch(e){case"normal":return"nc-circle";case"hover":return"nc-hover";case"active":return"nc-target"}},zi=e=>{switch(e){case"normal":return Object(C.a)("Normal");case"hover":return Object(C.a)("Hover");case"active":return Object(C.a)("Active")}};var Fi=o(4),Ri=o(73);function Hi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Li(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}const Mi=(e,t)=>{var o;const i=null===(o=t.options)||void 0===o?void 0:o.map(e).filter(Lt.c);return null!=i&&i.length?Li(Li({},t),{},{options:i}):void 0},Ii=(e,t)=>{var o,i;const r=null===(o=t.tabs)||void 0===o?void 0:o.map(t=>{var o;return Li(Li({},t),{},{options:null===(o=t.options)||void 0===o?void 0:o.map(e).filter(Lt.c)})}).filter(e=>{var t,o;return(null!==(t=null===(o=e.options)||void 0===o?void 0:o.length)&&void 0!==t?t:0)>0});return(null!==(i=null==r?void 0:r.reduce((e,t)=>{var o,i;return(null!==(o=null===(i=t.options)||void 0===i?void 0:i.length)&&void 0!==o?o:0)+e},0))&&void 0!==i?i:0)>0?Li(Li({},t),{},{tabs:r}):void 0};function Wi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Ai(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 Ni=({options:e,states:t,className:o,toolbar:i,location:r,onChange:l,value:{value:c}})=>{const s=e.reduce((e,t)=>[...e,...Ei(t)],[]),d=t.filter(e=>s.includes(e)),p=Object(n.useCallback)(e=>l({value:e}),[l]);switch(Object(n.useEffect)(()=>()=>l({value:Fi.d}),[]),d.length){case 0:return null;case 1:return a.a.createElement(Ht.a,{className:"brz-ed-tabs__options",optionClassName:o,data:e.map(e=>_i(t[0],e)).filter(Lt.c),toolbar:i,location:r});default:return a.a.createElement(ii,{tabsPosition:"left",value:c,onChange:p,className:"brz-ed-tabs__options"},d.map(t=>a.a.createElement(ri,{key:t,active:c===t,title:zi(t),icon:ki(t),value:t},a.a.createElement(Ht.a,{className:"brz-ed-tabs__options",optionClassName:o,data:e.map(e=>_i(t,e)).filter(Lt.c),toolbar:i,location:r}))))}};Ni.defaultValue={value:Fi.d},Ni.fromElementModel=Object(so.d)(Object(Ri.a)("value"),Dt.d,Object(ji.mPipe)(Fi.e),Object(Lt.g)(Fi.d),e=>({value:e})),Ni.toElementModel=e=>e,Ni.filter=Mi,Ni.reduce=(e,t,o)=>o.options.reduce(e,t),Ni.map=(e,t)=>Ai(Ai({},t),{},{options:t.options.map(e)});const Vi=({className:e="",palette:t,onChange:o,openSettings:i,value:r=""})=>{const l=c()("brz-ed-control__color-palette",e);return a.a.createElement("div",{className:l},t.map(({id:e,hex:t})=>{const i=Object(n.useCallback)(()=>o(e),[o]),l=c()({"brz-ed-control__color-palette__item":!0,active:e===r});return a.a.createElement("div",{key:e,className:l,style:{backgroundColor:t},onClick:i})}),a.a.createElement("div",{className:"brz-ed-control__color-palette__icon",onClick:i},a.a.createElement(s.b,{icon:"nc-cog"})))};function Di(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function $i(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}const Gi=D.a.getAll(),Ui=(e,t,o)=>((e,t)=>{var o;return null===(o=t.find(t=>t.id===e))||void 0===o?void 0:o.hex})(t,o)||e,Ki=({className:e,opacity:t=!0,palette:o=[],paletteOpenSettings:i,value:r,onChange:n})=>{const l=c()("brz-ed-control__colorPicker3",e),s={opacity:r.opacity,hex:Ui(r.hex,r.palette,o)};return a.a.createElement("div",{className:l},a.a.createElement(qe,{value:s,disableOpacity:!t,onChange:({hex:e,opacity:t,isChanged:o,opacityDragEnd:i})=>{n({hex:e,opacity:t,palette:r.palette},{isChanged:o,opacityDragEnd:i})}}),Object(nt.b)(Gi)&&Object(nt.i)(Gi)?null:a.a.createElement(Vi,{palette:o,onChange:e=>{n($i($i({},r),{},{palette:e}),{isChanged:"palette"})},openSettings:i,value:r.palette}))},qi=["color1","color2","color3","color4","color5","color6","color7","color8"],Yi=Object(so.b)(Object(so.c)(e=>qi.includes(e))),Xi=e=>""===e?"":Yi(e),Ji=(e,t)=>""===e?t:e;var Zi=o(25),Qi=o(86);function er(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function tr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?er(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):er(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function or(e,t,o){return Object(Lt.h)(t[e],o)}function ir(e,t,o){return Object(Lt.b)(t)||t===or(e,o)?o:tr(tr({},Object(L.g)(o)),{},{[e]:t})}function rr(e,t){return Object(si.k)(e).reduce((e,[t,...o])=>t&&t(...o,e)||e,t)}function nr(e,t,o){return(i,r)=>void 0===e(i)||t(r)===i?r:o(i,r)}function ar(e,t){return(o,i)=>e(i)===o?i:t(o,i)}const lr=e=>e.opacity,cr=ar(lr,(e,t)=>{const o=Ji(t.palette,t.tempPalette);return rr([[ir,"tempOpacity",0===e?lr(t):void 0],[ir,"opacity",e],[ir,"palette",e?o:""],[ir,"tempPalette",e?void 0:o]],t)}),sr=e=>e.hex,dr=ar(sr,(e,t)=>rr([[ir,"hex",e],[ir,"opacity",e?t.opacity||t.tempOpacity||1:0],[ir,"tempOpacity",e?void 0:t.opacity],[ir,"palette",e?"":void 0],[ir,"tempPalette",e?"":void 0]],t)),pr=e=>e.palette,ur=ar(pr,(e,t)=>{const o=pr(t)||t.tempPalette,i=lr(t)||t.tempOpacity;return rr([[ir,"tempPalette",e?void 0:o],[ir,"palette",e],[ir,"opacity",e?lr(t)||i:void 0]],t)});function br(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function mr(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 hr=(e,t,o,i)=>mr(mr({},e(t,o)),{},{tempOpacity:0!==t&&i?o.opacity:o.tempOpacity}),gr=(e,t)=>{const o=e?lr(t)||or("tempOpacity",t):0,i=e?pr(t)||or("tempPalette",t):"";return rr([[cr,o],[ur,i]],t)},vr=(e,t)=>{var o;return null===(o=t.find(t=>t.id===e))||void 0===o?void 0:o.hex},yr=({className:e="",value:t,onChange:o,onBlur:i,size:r="auto",placeholder:n=""})=>{const l=c()("brz-ed-control__input2",e,"brz-ed-control__input2--"+r);return a.a.createElement("div",{className:l},a.a.createElement("input",{type:"text",value:t,placeholder:n,onChange:({target:{value:e}})=>o(e),onBlur:i}))};var fr=o(114);const Sr=({className:e,value:t,onChange:o})=>{const[i,r]=Object(n.useState)(t);return Object(fr.a)(()=>{t!==i&&Object(Lt.d)(o,Object(Qi.b)(i))},1e3,[i]),Object(n.useEffect)(()=>r(t),[t]),a.a.createElement(yr,{className:c()("brz-ed-control__input-hex",e),value:i,onChange:r})},Or=({value:e,onChange:t,children:o})=>a.a.createElement("div",{className:"brz-ed-control__color-picker-inputs"},a.a.createElement(Sr,{value:e,onChange:t}),o);var xr;(xr||(xr={})).opacity="opacity";const Cr=Object(so.b)(Object(so.c)(e=>Object(W.c)(0,1,e))),wr=hr.bind(null,cr),Br=({className:e,attr:t,onChange:o,value:i,config:r})=>{var l;const s=Object(f.c)(),d=c()("brz-ed-option__colorPicker",e,null==t?void 0:t.className),u=Object(n.useCallback)(()=>s(Object(p.S)("leftSidebar",{isOpen:!0,drawerContentType:"styling"})),[s]),b=Object(n.useCallback)((e,t)=>{switch(t.isChanged){case"palette":Object(so.b)(()=>e.palette,Xi,e=>ur(e,i),o)();break;case"hex":Object(so.b)(()=>e.hex,Qi.b,e=>dr(e,i),o)();break;case"opacity":Object(so.b)(()=>e.opacity,Cr,e=>wr(e,i,!!t.opacityDragEnd),o)()}},[i,o]),m=Object(n.useCallback)(e=>o(dr(e,i)),[i,o]);return a.a.createElement("div",Object(g.a)({},t,{className:d}),a.a.createElement(Ki,{value:i,opacity:null===(l=null==r?void 0:r.opacity)||void 0===l||l,onChange:b,palette:Object(fe.c)(),paletteOpenSettings:u}),a.a.createElement(Or,{value:i.hex,onChange:m}))},jr={hex:Qi.a,opacity:1,tempOpacity:1,palette:"",tempPalette:""};Br.defaultValue=jr,Br.fromElementModel=e=>{var t,o,i,r,n,a;const l=null!==(t=Object(so.b)(()=>e("palette"),Dt.d,Xi)())&&void 0!==t?t:jr.palette;return{hex:null!==(o=null!==(i=vr(l,Object(fe.c)()))&&void 0!==i?i:Object(so.b)(e,Dt.d,Qi.b)("hex"))&&void 0!==o?o:jr.hex,opacity:null!==(r=Object(so.b)(()=>e("opacity"),Zi.b,Cr)())&&void 0!==r?r:jr.opacity,palette:l,tempOpacity:null!==(n=Object(so.b)(()=>e("tempOpacity"),Zi.b,Cr)())&&void 0!==n?n:jr.tempOpacity,tempPalette:null!==(a=Object(so.b)(e,Dt.d,Xi)("tempPalette"))&&void 0!==a?a:jr.palette}},Br.toElementModel=e=>({hex:e.hex,opacity:e.opacity,palette:e.palette,tempOpacity:e.tempOpacity,tempPalette:e.tempPalette});var Tr=o(133);function Pr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Er(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}function _r(e){const t=c()(e.className,"brz-ed-control__colorPickerSelect");return a.a.createElement("div",{className:t},e.children.length&&a.a.createElement(Tr.a,{className:"brz-control__select--dark brz-control__select__auto brz-ed-control__colorPickerSelect--select",value:e.value.select,editable:!1,onChange:t=>{e.onChange(Er(Er({},e.value),{},{select:t}),{isChanged:"select"})},size:"short"},e.children),a.a.createElement(Ki,{onChange:(t,o)=>{e.onChange(Er(Er({},t),{},{select:e.value.select}),o)},palette:e.palette,paletteOpenSettings:e.paletteOpenSettings,opacity:e.opacity,value:e.value}))}var kr=o(106);const zr=({start:e,end:t,active:o,onStartChange:i,onEndChange:r,onActiveChange:n,hex1:l,hex2:s})=>a.a.createElement(Qe,{onChange:t=>{(t[0]===e?r:i)(t[0]===e?t[1]:t[0])},min:0,max:100,step:1,startPointer:e,finishPointer:t,railStyle:{backgroundImage:`linear-gradient(to right, ${l}, ${s})`},handle:e=>{const t=e,{className:i,index:r,dragging:l}=t,s=Object(Ee.a)(t,["className","index","dragging"]),d=0===r?"start":"end",p=c()(i,{"brz-ed-rc-slider-handle":!0,"brz-ed-rc-slider-handle--active":0===r&&"start"===o||1===r&&"end"===o});return a.a.createElement(Ze.a,Object(g.a)({},s,{key:r,className:p,onMouseDown:()=>n(d)}))}});function Fr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Rr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Fr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Hr=({className:e,onChange:t,value:o,paletteOpenSettings:i,palette:r,opacity:n,gradientColors:[l,s]})=>{const d=c()("brz-ed-control__backgroundColor",e);return a.a.createElement("div",{className:d},"gradient"===o.type?a.a.createElement(zr,{start:o.start,end:o.end,active:o.active,hex1:l,hex2:s,onStartChange:e=>t(Rr(Rr({},o),{},{start:e}),{isChanged:"start"}),onEndChange:e=>t(Rr(Rr({},o),{},{end:e}),{isChanged:"end"}),onActiveChange:e=>t(Rr(Rr({},o),{},{active:e}),{isChanged:"active"})}):null,a.a.createElement(_r,{palette:r,opacity:n,value:{hex:o.hex,palette:o.palette,opacity:o.opacity,select:o.type},onChange:(e,i)=>{t({type:e.select,hex:e.hex,opacity:e.opacity,palette:e.palette,gradientType:o.gradientType,start:o.start,end:o.end,active:o.active,degree:o.degree},(e=>({isChanged:"select"===e.isChanged?"type":e.isChanged,opacityDragEnd:e.opacityDragEnd}))(i))},paletteOpenSettings:i},a.a.createElement(kr.a,{value:"none"},Object(C.a)("None")),a.a.createElement(kr.a,{value:"solid"},Object(C.a)("Solid")),a.a.createElement(kr.a,{value:"gradient"},Object(C.a)("Gradient"))),a.a.createElement(Or,{value:o.hex,onChange:e=>t(Rr(Rr({},o),{},{hex:e}),{isChanged:"hex"})},"gradient"===o.type?a.a.createElement(a.a.Fragment,null,a.a.createElement(Tr.a,{editable:!1,className:c()("brz-ed-control__backgroundColor__gradientType","brz-ed-control__backgroundColor__gradientType--"+o.gradientType),onChange:e=>t(Rr(Rr({},o),{},{gradientType:e}),{isChanged:"gradientType"}),value:o.gradientType},a.a.createElement(kr.a,{value:"linear"},Object(C.a)("Linear")),a.a.createElement(kr.a,{value:"radial"},Object(C.a)("Radial"))),a.a.createElement("div",{className:"brz-ed-control__backgroundColor--degree"},a.a.createElement(io.a,{className:"brz-input",min:-359,max:359,step:1,value:o.degree,onChange:e=>t(Rr(Rr({},o),{},{degree:e}),{isChanged:"degree"})}))):null))},Lr=e=>"none"===e||"solid"===e||"gradient"===e?e:void 0,Mr=(e,t)=>"none"===e?t:e,Ir=e=>"linear"===e||"radial"===e?e:void 0,Wr=e=>"start"===e||"end"===e?e:void 0,Ar={type:"none",tempType:"solid",hex:Qi.a,opacity:0,tempOpacity:1,palette:"",tempPalette:"",gradientHex:Qi.a,gradientOpacity:1,tempGradientOpacity:1,gradientPalette:"",tempGradientPalette:"",gradientType:"linear",start:0,end:100,active:"start",linearDegree:0,radialDegree:0},Nr=e=>{const t="gradient"===e.type&&"end"===e.active;return{hex:t?e.gradientHex:e.hex,opacity:t?e.gradientOpacity:e.opacity,palette:t?e.gradientPalette:e.palette,type:e.type,start:e.start,end:e.end,active:e.active,degree:(e.gradientType,e.linearDegree),gradientType:e.gradientType}},Vr=e=>({hex:e.gradientHex,opacity:e.gradientOpacity,tempOpacity:e.tempGradientOpacity,palette:e.gradientPalette,tempPalette:e.tempGradientPalette}),Dr=e=>({gradientHex:e.hex,gradientOpacity:e.opacity,tempGradientOpacity:e.tempOpacity,gradientPalette:e.palette,tempGradientPalette:e.tempPalette}),$r=e=>Object(Lt.d)(e=>Object(W.c)(0,100,e)?e:void 0,Zi.b(e));function Gr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Ur(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Gr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Kr=(e,t)=>{const o=e?Mr(t.type,t.tempType):"none";return en(o,t)},qr=(e,t)=>Kr(!0,Ur(Ur({},t),dr(e,t))),Yr=(e,t)=>Kr(e>0,Ur(Ur({},t),cr(e,t))),Xr=(e,t)=>Kr(""!==e,Ur(Ur({},t),ur(e,t))),Jr=(Object(Lt.e)(sr,Vr),(e,t)=>Kr(!0,Ur(Ur({},t),Dr(dr(e,Vr(t)))))),Zr=(Object(Lt.e)(lr,Vr),(e,t)=>Kr(e>0,Ur(Ur({},t),Dr(cr(e,Vr(t)))))),Qr=(Object(Lt.e)(pr,Vr),(e,t)=>Kr(""!==e,Ur(Ur({},t),Dr(ur(e,Vr(t)))))),en=(e,t)=>Ur(Ur(Ur({},t),gr("none"!==e,t)),{},{type:e,tempType:Mr(e,t.tempType)}),tn=e=>e.start,on=nr($r,tn,(e,t)=>Ur(Ur({},t),{},{start:e})),rn=nr($r,tn,(e,t)=>Ur(Ur({},t),{},{end:e})),nn=(e,t)=>Ur(Ur({},t),{},{linearDegree:e}),an=(e,t)=>Ur(Ur({},t),{},{radialDegree:e});function ln(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function cn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ln(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const sn=()=>{Object(d.b)().dispatch(Object(p.S)("leftSidebar",{isOpen:!0,drawerContentType:"styling"}))},dn=({value:e,onChange:t,config:o})=>{var i,r,n;const l=Object(fe.c)(),c=cn(cn({},e),{},{hex:null!==(i=vr(e.palette,l))&&void 0!==i?i:e.hex,gradientHex:null!==(r=vr(e.gradientPalette,l))&&void 0!==r?r:e.gradientHex});return a.a.createElement(Hr,{value:Nr(c),onChange:(o,i)=>{const r=!("gradient"===e.type&&"end"===e.active);switch(i.isChanged){case"type":t(en(o.type,e));break;case"gradientType":t(((e,t)=>Ur(Ur({},t),{},{gradientType:e}))(o.gradientType,e));break;case"start":t(on(o.start,e));break;case"end":t(rn(o.end,e));break;case"active":t(((e,t)=>Ur(Ur({},t),{},{active:e}))(o.active,e));break;case"degree":if("gradient"===e.type){const i="radial"===e.gradientType?an:nn;t(i(o.degree,e))}break;case"hex":{const i=r?qr:Jr,n=Qi.b(o.hex);void 0!==n&&t(i(n,e));break}case"opacity":{const n=r?Yr:Zr,a=Cr(o.opacity);void 0!==a&&t(hr(n,a,e,!!i.opacityDragEnd));break}case"palette":{const i=r?Xr:Qr,n=Xi(o.palette);void 0!==n&&t(i(n,e));break}}},paletteOpenSettings:sn,palette:Object(fe.c)(),opacity:null===(n=null==o?void 0:o.opacity)||void 0===n||n,gradientColors:[c.hex,c.gradientHex]})};dn.fromElementModel=e=>{var t,o,i,r,n,a,l,c,s,d,p,u,b,m,h;const g=e("gradientActivePointer"),v="startPointer"===g?"start":"finishPointer"===g?"end":g;return{type:Lr(e("bgColorType")),tempType:Lr(e("tempBgColorType")),hex:null!==(t=Object(so.b)(()=>e("bgColorHex"),Dt.d,Qi.b)())&&void 0!==t?t:Ar.hex,opacity:null!==(o=Object(so.b)(()=>e("bgColorOpacity"),Zi.b,Cr)())&&void 0!==o?o:Ar.opacity,tempOpacity:null!==(i=Object(so.b)(()=>e("tempBgColorOpacity"),Zi.b,Cr)())&&void 0!==i?i:Ar.tempOpacity,palette:null!==(r=Object(so.b)(()=>e("bgColorPalette"),Dt.d,Xi)())&&void 0!==r?r:Ar.palette,tempPalette:null!==(n=Object(so.b)(()=>e("tempPalette"),Dt.d,Xi)())&&void 0!==n?n:Ar.tempPalette,gradientHex:null!==(a=Object(so.b)(()=>e("gradientColorHex"),Dt.d,Qi.b)())&&void 0!==a?a:Ar.gradientHex,gradientOpacity:null!==(l=Object(so.b)(()=>e("gradientColorOpacity"),Zi.b,Cr)())&&void 0!==l?l:Ar.gradientOpacity,tempGradientOpacity:null!==(c=Object(so.b)(()=>e("tempGradientColorOpacity"),Zi.b,Cr)())&&void 0!==c?c:Ar.tempGradientOpacity,gradientPalette:null!==(s=Object(so.b)(()=>e("gradientColorPalette"),Dt.d,Xi)())&&void 0!==s?s:Ar.gradientPalette,tempGradientPalette:null!==(d=Object(so.b)(()=>e("tempGradientColorPalette"),Dt.d,Xi)())&&void 0!==d?d:Ar.tempGradientPalette,gradientType:null!==(p=Ir(e("gradientType")))&&void 0!==p?p:Ar.gradientType,start:null!==(u=W.h(e("gradientStartPointer")))&&void 0!==u?u:Ar.start,end:null!==(b=W.h(e("gradientFinishPointer")))&&void 0!==b?b:Ar.end,active:Wr(v),linearDegree:null!==(m=Zi.b(e("gradientLinearDegree")))&&void 0!==m?m:Ar.linearDegree,radialDegree:null!==(h=Zi.b(e("gradientRadialDegree")))&&void 0!==h?h:Ar.radialDegree}},dn.toElementModel=e=>{const t="start"===e.active?"startPointer":"finishPointer";return{bgColorType:e.type,tempBgColorType:e.tempType,bgColorHex:e.hex,bgColorOpacity:e.opacity,tempBgColorOpacity:e.tempOpacity,bgColorPalette:e.palette,tempBgColorPalette:e.tempPalette,gradientColorHex:e.gradientHex,gradientColorOpacity:e.gradientOpacity,tempGradientColorOpacity:e.tempGradientOpacity,gradientColorPalette:e.gradientPalette,tempGradientColorPalette:e.tempGradientPalette,gradientType:e.gradientType,gradientStartPointer:e.start,gradientFinishPointer:e.end,gradientActivePointer:t,gradientLinearDegree:e.linearDegree,gradientRadialDegree:e.radialDegree}},dn.defaultValue=Ar;function pn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function un(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):pn(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const bn=e=>{let{value:t,types:o,onChange:i}=e,r=Object(Ee.a)(e,["value","types","onChange"]);const l=c()("brz-ed-control__boxShadow",r.className),s=Object(n.useCallback)(e=>i(un(un({},t),{},{hex:e}),{isChanged:"hex"}),[i]),d=Object(n.useCallback)(e=>{const[o,r,n,a]=e,l=(([e,t,o,i],[r,n,a,l])=>e!==r?"blur":t!==n?"spread":o!==a?"vertical":i!==l?"horizontal":void 0)(e,[t.blur,t.spread,t.vertical,t.horizontal]);l&&i(un(un({},t),{},{blur:o,spread:r,vertical:n,horizontal:a}),{isChanged:l})},[i]);return a.a.createElement("div",{className:l},a.a.createElement(_r,{onChange:(e,o)=>{let{select:r}=e,n=Object(Ee.a)(e,["select"]);i(un(un({},t),{},{hex:n.hex,opacity:n.opacity,palette:n.palette,type:r}),un(un({},o),{},{isChanged:"select"===o.isChanged?"type":o.isChanged}))},value:{select:t.type,hex:t.hex,opacity:t.opacity,palette:t.palette},opacity:r.opacity,palette:r.palette,paletteOpenSettings:r.paletteOpenSettings},o.map(({id:e,title:t})=>a.a.createElement(kr.a,{value:e,key:e},a.a.createElement("span",null,t)))),a.a.createElement(Or,{value:t.hex,onChange:s},a.a.createElement(no,{config:{defaultIcon:["nc-shadow"],icons:["nc-blur","nc-size","nc-vertical","nc-horizontal"]},value:[t.blur,t.spread,t.vertical,t.horizontal],onChange:d})))},mn=["none","inset","outset"],hn=e=>mn.includes(e)?e:void 0,gn=e=>e.type,vn=(e,t)=>{if(void 0===hn(e)||gn(t)===e)return t;const o="none"===e;return rr([[ir,"tempType",o?or("type",t):void 0],[ir,"type",e],[Ln,!o],[Rn,!o]],t)},yn=(e,t)=>{if(lr(t)===e)return t;return rr([[cr,e],[Hn,e>0]],t)},fn=(e,t)=>{if(pr(t)===e)return t;return rr([[ur,e],[Hn,""!==e]],t)},Sn=e=>e.blur,On=(e,t,o)=>ir("temp"+Object(Tt.c)(e),t||(Mn(o)?0:o[e]||void 0),o),xn=ar(Sn,(e,t)=>rr([[ir,"blur",e],[On,"blur",e],[e=>Hn(Mn(e),e)]],t)),Cn=e=>e.spread,wn=ar(Cn,(e,t)=>rr([[ir,"spread",e],[On,"spread",e],[e=>Hn(Mn(e),e)]],t)),Bn=e=>e.horizontal,jn=ar(Bn,(e,t)=>rr([[ir,"horizontal",e],[ir,"tempHorizontal",e]],t)),Tn=e=>e.vertical,Pn=ar(Tn,(e,t)=>rr([[ir,"vertical",e],[ir,"tempVertical",e]],t));var En;(En||(En={})).blur="blur";const _n=Object(so.b)(Object(so.c)(e=>e>=0));function kn(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function zn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):kn(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Fn={type:"none",tempType:"outset",hex:Qi.a,opacity:0,tempOpacity:1,palette:"",tempPalette:"",blur:0,tempBlur:4,spread:0,tempSpread:2,vertical:0,tempVertical:0,horizontal:0,tempHorizontal:0},Rn=(e,t)=>{const o=e?lr(t)||or("tempOpacity",t):0,i=e?pr(t)||or("tempPalette",t):"";return rr([[yn,o],[fn,i]],t)},Hn=(e,t)=>{var o;const i=e?null!==(o="none"===(r=gn(t))?void 0:r)&&void 0!==o?o:t.tempType:"none";var r;return vn(i,t)},Ln=(e,t)=>{const o=(i=t.blur,r=t.tempBlur,i||r);var i,r;const n=t.spread||t.tempSpread,a=Bn(t)||t.tempHorizontal,l=Tn(t)||t.tempVertical;return zn(zn({},t),{},{blur:e?o:0,tempBlur:o,spread:e?n:0,tempSpread:n,vertical:e?l:0,tempVertical:l,horizontal:e?a:0,tempHorizontal:a})},Mn=e=>!(!Sn(e)&&!Cn(e)),In=e=>{switch(e){case"none":return Object(C.a)("None");case"inset":return Object(C.a)("Inset");case"outset":return Object(C.a)("Outset")}},Wn=e=>e.map(e=>({id:e,title:In(e)})),An=e=>{return"on"===e?"outset":""===e?"none":(t=e,mn.includes(t)?t:void 0);var t},Nn=e=>{switch(e){case"none":return"";case"outset":return"on";default:return e}},Vn=({onChange:e,value:t,className:o,config:i})=>{var r;const l=Object(f.c)(),s=c()("brz-ed-option__boxShadow",o),d=Object(n.useMemo)(Object(so.d)(()=>null==i?void 0:i.type,hn,e=>e?["none",e]:mn,Wn),[null==i?void 0:i.type]),u=Object(n.useCallback)((o,i)=>{switch(i.isChanged){case"opacity":{const r=Cr(o.opacity);void 0!==r&&e(((e,t,o)=>hr(yn,e,t,o))(r,t,!!i.isChanged));break}case"type":e(vn(o.type,t));break;case"blur":{const i=_n(o.blur);i&&e(xn(i,t));break}case"hex":{const i=Qi.b(o.hex);i&&e(((e,t)=>{if(sr(t)===e)return t;return rr([[dr,e],[Hn,""!==e]],t)})(i,t));break}case"spread":e(wn(o.spread,t));break;case"palette":e(fn(o.palette,t));break;case"horizontal":e(jn(o.horizontal,t));break;case"vertical":e(Pn(o.vertical,t))}},[e,t]),b=Object(n.useCallback)(()=>l(Object(p.S)("leftSidebar",{isOpen:!0,drawerContentType:"styling"})),[l]);return a.a.createElement(bn,{opacity:null===(r=null==i?void 0:i.opacity)||void 0===r||r,className:s,value:t,onChange:u,types:d,palette:Object(fe.c)(),paletteOpenSettings:b})};Vn.fromElementModel=e=>{var t,o,i,r,n,a,l,c,s,d,p,u,b,m,h;const g={type:null!==(t=Object(so.b)(()=>e("value"),Dt.d,An)())&&void 0!==t?t:"none",opacity:null!==(o=Object(so.b)(()=>e("colorOpacity"),Zi.b,Cr)())&&void 0!==o?o:0,blur:null!==(i=Object(so.b)(()=>e("blur"),Zi.b,_n)())&&void 0!==i?i:0,spread:null!==(r=Object(so.b)(()=>e("spread"),Zi.b)())&&void 0!==r?r:0},v="none"===g.type||0===g.opacity||0===g.blur&&0===g.spread;return{type:v?Fn.type:g.type,tempType:null!==(n=Object(so.b)(()=>e("tempValue"),Dt.d,An)())&&void 0!==n?n:Fn.tempType,hex:null!==(a=Object(so.b)(()=>e("colorHex"),Dt.d,Qi.b)())&&void 0!==a?a:Fn.hex,opacity:v?Fn.opacity:g.opacity,tempOpacity:null!==(l=Object(so.b)(()=>e("tempColorOpacity"),Zi.b,Cr)())&&void 0!==l?l:Fn.tempOpacity,palette:v?Fn.palette:null!==(c=Object(so.b)(()=>e("colorPalette"),Dt.d,Xi)())&&void 0!==c?c:"",tempPalette:null!==(s=Object(so.b)(()=>e("tempColorPalette"),Dt.d,Xi)())&&void 0!==s?s:Fn.tempPalette,blur:v?Fn.blur:g.blur,tempBlur:null!==(d=Object(so.b)(()=>e("tempBlur"),Zi.b,_n)())&&void 0!==d?d:Fn.tempBlur,spread:v?Fn.spread:g.spread,tempSpread:null!==(p=Object(so.b)(()=>e("tempSpread"),Zi.b)())&&void 0!==p?p:Fn.tempSpread,vertical:v?0:null!==(u=Zi.b(e("vertical")))&&void 0!==u?u:Fn.vertical,tempVertical:null!==(b=Zi.b(e("tempVertical")))&&void 0!==b?b:Fn.tempVertical,horizontal:v?0:null!==(m=Zi.b(e("horizontal")))&&void 0!==m?m:Fn.horizontal,tempHorizontal:null!==(h=Zi.b(e("tempHorizontal")))&&void 0!==h?h:Fn.tempHorizontal}},Vn.toElementModel=e=>({value:Nn(e.type),tempValue:Nn(e.tempType),colorHex:e.hex,colorPalette:e.palette,tempColorPalette:e.tempPalette,colorOpacity:e.opacity,tempColorOpacity:e.tempOpacity,blur:e.blur,tempBlur:e.tempBlur,spread:e.spread,tempSpread:e.tempSpread,vertical:e.vertical,tempVertical:e.tempVertical,horizontal:e.horizontal,tempHorizontal:e.tempHorizontal}),Vn.defaultValue=Fn;const Dn=["none","solid","dashed","dotted","double","groove","ridge","inset","outset"],$n=Object(so.c)(e=>Dn.includes(e)),Gn=Object(so.b)(Dt.d,$n),Un=e=>"none"===e?void 0:e;var Kn;!function(e){e.borderWidth="borderWidth"}(Kn||(Kn={}));const qn=Object(so.c)(e=>e>=0),Yn=(e,t)=>0===e?t:e,Xn={style:"none",tempStyle:"solid",hex:Qi.a,opacity:0,tempOpacity:1,palette:"",tempPalette:"",widthType:"grouped",width:0,tempWidth:1,topWidth:0,tempTopWidth:1,rightWidth:0,tempRightWidth:1,bottomWidth:0,tempBottomWidth:1,leftWidth:0,tempLeftWidth:1},Jn=e=>"grouped"===ca(e)?0===da(e):0===ua(e)&&0===ba(e)&&0===ma(e)&&0===ha(e),Zn=e=>[e.topWidth,e.rightWidth,e.bottomWidth,e.leftWidth].every((e,t,o)=>e===o[0]),Qn=(e,t)=>t[e],ea=(e,t)=>{var o;const i=e?null!==(o=Object(Lt.d)(Un,ra(t)))&&void 0!==o?o:Gn(null==t?void 0:t.tempStyle):"none";return rr([[na,i]],t)},ta=(e,t,o)=>{if(Qn(e,o)===t)return o;const i=["topWidth","rightWidth","bottomWidth","leftWidth"].reduce((e,t)=>{var o;const i=null!==(o=Qn(t,e))&&void 0!==o?o:0;return ir(Object(Tt.b)("temp",t),i,e)},o),r=(n=e,Object(Tt.b)("temp",n));var n;const a=rr([[ir,Object(Tt.b)("temp",e),t],[ir,e,t],[t=>ir(r,Zn(t)?o[e]:t[e],t)],[e=>t>0&&Zn(e)?ir("width",t,e):e]],i),l=!Jn(a);return rr([[ea,l],[gr,l]],a)},oa=(e,t)=>["width","topWidth","rightWidth","bottomWidth","leftWidth"].reduce((t,o)=>{const i=Object(Tt.b)("temp",o),r=Qn(o,t),n=Qn(i,t);return rr([[ir,i,e||0===r?void 0:r],[ir,o,e?Yn(r,n):0]],t)},t),ia=e=>{switch(e){case"none":return{id:"none",title:Object(C.a)("None")};case"solid":return{id:"solid",icon:"nc-solid"};case"dashed":return{id:"dashed",icon:"nc-dashed"};case"dotted":return{id:"dotted",icon:"nc-dotted"};case"double":return{id:"double",icon:"nc-double"};case"groove":return{id:"groove",icon:"nc-groove"};case"ridge":return{id:"ridge",icon:"nc-ridge"};case"inset":return{id:"inset",icon:"nc-inset"};case"outset":return{id:"outset",icon:"nc-outset"}}},ra=e=>e.style,na=ar(ra,(e,t)=>rr([[ir,"tempStyle",Object(Lt.d)(Un,t.style)],[ir,"style",e],[gr,"none"!==e],[oa,"none"!==e]],t)),aa=ar(lr,(e,t)=>rr([[cr,e],[ea,!0],[oa,!0]],t)),la=ar(pr,(e,t)=>{const o=""!==e;return rr([[ur,e],[ea,o],[oa,o]],t)}),ca=e=>e.widthType,sa=ar(ca,(e,t)=>ir("widthType",e,t)),da=e=>e.width,pa=ar(da,(e,t)=>rr([[ir,"width",e],[ir,"tempWidth",e>0?e:void 0],[ir,"topWidth",e>0?e:void 0],[ir,"rightWidth",e>0?e:void 0],[ir,"bottomWidth",e>0?e:void 0],[ir,"leftWidth",e>0?e:void 0],[ea,e>0],[gr,e>0]],t)),ua=e=>e.topWidth,ba=e=>e.rightWidth,ma=e=>e.bottomWidth,ha=e=>e.leftWidth;var ga=o(299);const va=({onChange:e,value:t})=>a.a.createElement(io.a,{className:"brz-input",min:0,max:9999,step:1,value:t,onChange:e}),ya=e=>{let{className:t,widthTypes:o,styles:i,hex:r,onChangeHex:l,palette:d,onChangePalette:p,opacity:u,onChangeOpacity:b,style:m,onChangeStyle:h,widthType:g,onChangeWidthType:v,width:y,onChangeWidth:f,topWidth:S,onChangeTopWidth:O,rightWidth:x,onChangeRightWidth:C,bottomWidth:w,onChangeBottomWidth:B,leftWidth:j,onChangeLeftWidth:T}=e,P=Object(Ee.a)(e,["className","widthTypes","styles","hex","onChangeHex","palette","onChangePalette","opacity","onChangeOpacity","style","onChangeStyle","widthType","onChangeWidthType","width","onChangeWidth","topWidth","onChangeTopWidth","rightWidth","onChangeRightWidth","bottomWidth","onChangeBottomWidth","leftWidth","onChangeLeftWidth"]);const E=c()("brz-ed-control__border",t),_=Object(n.useCallback)((e,t)=>{var o;switch(t.isChanged){case"select":Object(Lt.d)(h,e.select);break;case"hex":l(e.hex);break;case"opacity":b(e.opacity,null===(o=null==t?void 0:t.opacityDragEnd)||void 0===o||o);break;case"palette":p(e.palette)}},[r,l,d,p,u,b,m,h]),k=Object(n.useCallback)(()=>v("grouped"===g?"ungrouped":"grouped"),[g,v]),z=c()("brz-button",{"brz-ed-control__border__widthType":!0,"brz-ed-control__border__widthType--active":"grouped"===g}),F="grouped"===g||!o.includes("ungrouped");return a.a.createElement("div",{className:E},a.a.createElement(_r,{onChange:_,value:{select:m,hex:r,opacity:u,palette:d},opacity:P.enableOpacity,palette:P.paletteList,paletteOpenSettings:P.paletteOpenSettings},i.map(({id:e,title:t,icon:o})=>a.a.createElement(kr.a,{key:e,value:e},t&&a.a.createElement("span",null,t),o&&a.a.createElement(s.b,{icon:o,className:"brz-icon"})))),a.a.createElement(Or,{value:r,onChange:l},F?a.a.createElement("div",{className:"brz-ed-control__border__width"},a.a.createElement("div",{className:"brz-label"},Object(ga.a)("Size")),a.a.createElement(va,{value:y,onChange:f})):a.a.createElement("div",{className:"brz-ed-control__border__width"},a.a.createElement(va,{value:S,onChange:O}),a.a.createElement(va,{value:x,onChange:C}),a.a.createElement(va,{value:w,onChange:B}),a.a.createElement(va,{value:j,onChange:T})),o.length<2?null:a.a.createElement("button",{className:z,onClick:k},a.a.createElement(s.b,{icon:"nc-combined-shape",className:"brz-icon"}))))},fa=({value:e,onChange:t,className:o,config:i})=>{var r,l,c;const s=Object(f.c)(),d=null!==(r=null==i?void 0:i.styles)&&void 0!==r?r:Dn,u=d.includes("none"),b=Object(n.useMemo)(()=>u?y.identity:e=>Math.max(1,e),[u,y.identity]),m=Object(n.useCallback)(o=>t(na(o,e)),[t,e]),h=Object(n.useCallback)(o=>{const i=Qi.b(o);void 0!==i&&t(((e,t)=>{if(void 0===Qi.b(e)||sr(t)===e)return t;const o=""!==e;return rr([[dr,e],[ea,o],[oa,o]],t)})(i,e))},[t,e]),g=Object(n.useCallback)((o,i)=>{const r=Cr(o);void 0!==r&&t(((e,t,o)=>hr(aa,e,t,o))(r,e,i))},[t,e]),v=Object(n.useCallback)(o=>t(la(o,e)),[t,e]),S=Object(n.useCallback)(o=>t(sa(o,e)),[t,e]),O=Object(n.useCallback)(o=>{const i=qn(b(o));void 0!==i&&t(pa(i,e))},[t,e]),x=Object(n.useCallback)(o=>{const i=qn(b(o));void 0!==i&&t(((e,t)=>ta("topWidth",e,t))(i,e))},[t,e]),C=Object(n.useCallback)(o=>{const i=qn(b(o));void 0!==i&&t(((e,t)=>ta("rightWidth",e,t))(i,e))},[t,e]),w=Object(n.useCallback)(o=>{const i=qn(b(o));void 0!==i&&t(((e,t)=>ta("bottomWidth",e,t))(i,e))},[t,e]),B=Object(n.useCallback)(o=>{const i=qn(b(o));void 0!==i&&t(((e,t)=>ta("leftWidth",e,t))(i,e))},[t,e]),j=Object(n.useCallback)(()=>s(Object(p.S)("leftSidebar",{isOpen:!0,drawerContentType:"styling"})),[s]);return a.a.createElement(ya,{className:o,paletteList:Object(fe.c)(),paletteOpenSettings:j,enableOpacity:null===(l=null==i?void 0:i.opacity)||void 0===l||l,styles:d.map(ia).filter(Boolean),widthTypes:null!==(c=null==i?void 0:i.width)&&void 0!==c?c:["grouped","ungrouped"],style:e.style,onChangeStyle:m,hex:e.hex,onChangeHex:h,opacity:e.opacity,onChangeOpacity:g,palette:e.palette,onChangePalette:v,widthType:e.widthType,onChangeWidthType:S,width:e.width,onChangeWidth:O,topWidth:e.topWidth,onChangeTopWidth:x,rightWidth:e.rightWidth,onChangeRightWidth:C,bottomWidth:e.bottomWidth,onChangeBottomWidth:w,leftWidth:e.leftWidth,onChangeLeftWidth:B})};fa.fromElementModel=e=>{var t,o,i,r,n,a,l,c,s,d,p,u,b,m,h,g,v,y,f;const S={style:null!==(t=Object(so.b)(()=>e("style"),Dt.d,$n)())&&void 0!==t?t:Xn.style,opacity:null!==(o=Object(so.b)(()=>e("colorOpacity"),Zi.b,Cr)())&&void 0!==o?o:Xn.opacity,widthType:null!==(i=Object(so.b)(()=>e("widthType"),Dt.d,uo)())&&void 0!==i?i:Xn.widthType,width:null!==(r=Object(so.b)(()=>e("width"),Zi.b,qn)())&&void 0!==r?r:Xn.width,topWidth:null!==(n=Object(so.b)(()=>e("topWidth"),Zi.b,qn)())&&void 0!==n?n:Xn.topWidth,rightWidth:null!==(a=Object(so.b)(()=>e("rightWidth"),Zi.b,qn)())&&void 0!==a?a:Xn.rightWidth,bottomWidth:null!==(l=Object(so.b)(()=>e("bottomWidth"),Zi.b,qn)())&&void 0!==l?l:Xn.bottomWidth,leftWidth:null!==(c=Object(so.b)(()=>e("leftWidth"),Zi.b,qn)())&&void 0!==c?c:Xn.leftWidth},O="none"===S.style||Jn(S);return{style:O?"none":S.style,tempStyle:null!==(s=Object(so.b)(()=>e("tempStyle"),Dt.d,$n)())&&void 0!==s?s:Xn.tempStyle,hex:null!==(d=Object(so.b)(()=>e("colorHex"),Dt.d,Qi.b)())&&void 0!==d?d:Xn.hex,opacity:O?0:S.opacity,tempOpacity:null!==(p=Object(so.b)(()=>e("tempColorOpacity"),Zi.b,Cr)())&&void 0!==p?p:Xn.tempOpacity,palette:O?"":null!==(u=Object(so.b)(()=>e("colorPalette"),Dt.d,Xi)())&&void 0!==u?u:Xn.palette,tempPalette:O?"":null!==(b=Object(so.b)(()=>e("tempColorPalette"),Dt.d,Xi)())&&void 0!==b?b:Xn.tempPalette,widthType:null!==(m=Object(so.b)(()=>e("widthType"),Dt.d,uo)())&&void 0!==m?m:Xn.widthType,width:O?0:S.width,tempWidth:null!==(h=Object(so.b)(()=>e("tempWidth"),Zi.b,qn)())&&void 0!==h?h:Xn.tempWidth,topWidth:O?0:S.topWidth,tempTopWidth:null!==(g=Object(so.b)(()=>e("tempTopWidth"),Zi.b,qn)())&&void 0!==g?g:Xn.tempTopWidth,rightWidth:O?0:S.rightWidth,tempRightWidth:null!==(v=Object(so.b)(()=>e("tempRightWidth"),Zi.b,qn)())&&void 0!==v?v:Xn.tempRightWidth,bottomWidth:O?0:S.bottomWidth,tempBottomWidth:null!==(y=Object(so.b)(()=>e("tempBottomWidth"),Zi.b,qn)())&&void 0!==y?y:Xn.tempBottomWidth,leftWidth:O?0:S.leftWidth,tempLeftWidth:null!==(f=Object(so.b)(()=>e("tempLeftWidth"),Zi.b,qn)())&&void 0!==f?f:Xn.tempLeftWidth}},fa.toElementModel=e=>({style:e.style,tempStyle:e.tempStyle,colorHex:e.hex,colorOpacity:e.opacity,tempColorOpacity:e.tempOpacity,colorPalette:e.palette,tempColorPalette:e.tempPalette,widthType:e.widthType,width:e.width,tempWidth:e.tempWidth,topWidth:e.topWidth,tempTopWidth:e.tempTopWidth,rightWidth:e.rightWidth,tempRightWidth:e.tempRightWidth,bottomWidth:e.bottomWidth,tempBottomWidth:e.tempBottomWidth,leftWidth:e.leftWidth,tempLeftWidth:e.tempLeftWidth}),fa.defaultValue=Xn;const Sa=({className:e,onClick:t,icon:o,label:i,reverse:r,align:n="center"})=>i||o?a.a.createElement("div",{className:c()("brz-ed-control__button","brz-ed-control__button-"+n,e,{reverse:!!r}),onClick:t},o&&a.a.createElement(s.b,{icon:o}),a.a.createElement("span",{className:"brz-ed-control__label"},i)):null,Oa=({label:e,onClick:t,config:o})=>a.a.createElement(a.a.Fragment,null,e,a.a.createElement(Sa,{onClick:t,label:null==o?void 0:o.text,icon:null==o?void 0:o.icon,reverse:null==o?void 0:o.reverse}));Oa.fromElementModel=()=>{},Oa.toElementModel=()=>({}),Oa.defaultValue=void 0;const xa=({className:e,children:t,grid:o,separator:i})=>{const r={gridTemplateColumns:o.map(e=>{switch(e){case"auto":return e;default:return e+"fr"}}).join(" ")};return a.a.createElement("div",{className:c()("brz-ed-control__grid",e,{"brz-ed-control__grid--separator":i}),style:r},t)},Ca={start:"brz-ed-control__grid__column--align-start",center:"brz-ed-control__grid__column--align-center",end:"brz-ed-control__grid__column--align-end"},wa=({className:e,children:t,align:o})=>a.a.createElement("div",{className:c()("brz-ed-control__grid__column",e,Ca[o])},t);function Ba(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function ja(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ba(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Ta=({className:e,columns:t,toolbar:o,config:i})=>{var r;const l=Object(n.useMemo)(()=>{var e;return null!==(e=null==t?void 0:t.map(e=>{var t;return null!==(t=e.size)&&void 0!==t?t:"auto"}))&&void 0!==e?e:[]},[t]);return t?a.a.createElement(xa,{className:e,grid:l,separator:null!==(r=null==i?void 0:i.separator)&&void 0!==r&&r},t.map((e,t)=>{var i;return a.a.createElement(wa,{key:t,align:null!==(i=e.align)&&void 0!==i?i:"start"},a.a.createElement(Ht.a,{wrapOptions:!1,data:e.options,toolbar:o}))})):null};Ta.fromElementModel=()=>{},Ta.toElementModel=()=>({}),Ta.defaultValue=void 0,Ta.filter=(e,t)=>{var o,i;const r=null===(o=t.columns)||void 0===o?void 0:o.map(t=>{var o;return Li(Li({},t),{},{options:null===(o=t.options)||void 0===o?void 0:o.map(e).filter(Lt.c)})}).filter(e=>{var t,o;return(null!==(t=null===(o=e.options)||void 0===o?void 0:o.length)&&void 0!==t?t:0)>0});return(null!==(i=null==r?void 0:r.reduce((e,t)=>{var o,i;return(null!==(o=null===(i=t.options)||void 0===i?void 0:i.length)&&void 0!==o?o:0)+e},0))&&void 0!==i?i:0)>0?Li(Li({},t),{},{columns:r}):void 0},Ta.reduce=(e,t,o)=>{var i,r;return null!==(i=null===(r=o.columns)||void 0===r?void 0:r.reduce((o,i)=>{var r,n;return null!==(r=null===(n=i.options)||void 0===n?void 0:n.reduce(e,o))&&void 0!==r?r:t},t))&&void 0!==i?i:t},Ta.map=(e,t)=>{var o;return ja(ja({},t),{},{columns:null===(o=t.columns)||void 0===o?void 0:o.map(t=>{var o;return ja(ja({},t),{},{options:null===(o=t.options)||void 0===o?void 0:o.map(e)})})})};const Pa=({className:e,children:t})=>a.a.createElement("div",{className:c()("brz-ed-control__group",e)},t);function Ea(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function _a(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ea(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ea(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const ka=({className:e,options:t,toolbar:o})=>a.a.createElement(Pa,{className:e},a.a.createElement(Ht.a,{wrapOptions:!1,data:t,toolbar:o}));ka.fromElementModel=()=>{},ka.toElementModel=()=>({}),ka.defaultValue=void 0,ka.filter=Mi,ka.reduce=(e,t,o)=>{var i,r;return null!==(i=null===(r=o.options)||void 0===r?void 0:r.reduce(e,t))&&void 0!==i?i:t},ka.map=(e,t)=>{var o;return _a(_a({},t),{},{options:null===(o=t.options)||void 0===o?void 0:o.map(e)})};const za=D.a.getAll(),Fa=Object(nt.b)(za)&&Object(nt.i)(za),Ra=e=>{const t=c()("brz-ed-control__font-style",e.className);return a.a.createElement("div",{className:t},a.a.createElement(Ye.a,{className:"brz-control__select--dark",defaultValue:e.value,itemHeight:30,onChange:e.onChange},e.styles.map(({id:t,title:o})=>a.a.createElement(Je.a,{key:t,active:e.value===t,value:t},o))),!Fa&&e.openSettings&&a.a.createElement("div",{className:"brz-ed-control__font-style--settings",onClick:e.openSettings},a.a.createElement(s.b,{icon:"nc-cog"})))};Ra.propTypes={className:Ao.a.string,styles:Ao.a.arrayOf(Ao.a.shape({id:Ao.a.string,title:Ao.a.string})).isRequired,label:Ao.a.string,value:Ao.a.string.isRequired,onChange:Ao.a.func.isRequired,openSettings:Ao.a.func},Ra.defaultProps={className:""};var Ha=o(175);function La(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function Ma(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?La(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):La(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Ia={default:"17px",great_vibes:"18px",alex_brush:"18px",allura:"18px",parisienne:"18px"};class Wa extends n.Component{constructor(...e){super(...e),Object(i.a)(this,"handleOpenFonts",e=>{e.preventDefault(),this.props.addFont()})}renderFontList(e,t){const{value:o,onChange:i}=this.props;return e.map(e=>{const{id:r,family:n,title:l}=e,s=c()("brz-ed-font__name",{active:r===o}),d={fontFamily:n,fontSize:Ia[r]||Ia.default};return a.a.createElement("div",{key:r,className:s,style:d,onClick:()=>i(Ma(Ma({},e),{},{type:t}))},l)})}render(){const{config:e=[],blocks:t=[],google:o=[],upload:i=[]}=this.props.fonts,r=i.length>0||o.length>0,n=c()("brz-ed-font__typography",this.props.className);return a.a.createElement("div",{className:n},a.a.createElement(S.a,{className:"brz-ed-scroll--dark brz-ed-scroll--small",style:{height:"100%"}},i.length>0&&this.renderFontList(i,"upload"),o.length>0&&this.renderFontList(o,"google"),r&&a.a.createElement("hr",{className:"brz-hr brz-ed-font__separator"}),t&&this.renderFontList(t,"google"),this.renderFontList(e,"google")),this.props.addFont&&a.a.createElement("div",{className:"brz-ed-font__typography-adder",onClick:this.handleOpenFonts},a.a.createElement(s.b,{icon:"nc-add"}),this.props.addFontLabel))}}const Aa=Ao.a.shape({id:Ao.a.string,family:Ao.a.string,title:Ao.a.string,size:Ao.a.string});Wa.propTypes={className:Ao.a.string,addFont:Ao.a.func,a