Brizy – Page Builder - Version 2.4.12

Version Description

  • 2022-10-27 =
  • New: Alert element
  • Improved: Icon styles
  • Improved: DnD Performance
  • Improved: Hover Transitions
  • Improved: LeftSidebar new section MEDIA
  • Improved: Accordion - icon size
  • Improved: Undo-Redo blue on hover
  • Fixed: Form select color opacity
  • Fixed: Animation delay and durations when is 0
  • Fixed: Button and Icon context menu
  • Fixed: Forms input type file Allowed File Types
  • Fixed: Background image specific size
  • Fixed: Fonts prefetch
  • Fixed: RichText external link text-decoration in preview
  • Fixed: Fatal error when disabling Brizy Pro
  • Fixed: Duplicate post groups when creating global block rule
Download this release

Release Info

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

Code changes from version 2.4.11 to 2.4.12

.github/.build-env DELETED
@@ -1,4 +0,0 @@
1
- BUILD_ENVIRONMENT=fixes
2
- FREE_BRANCH=fixes-2.2.8
3
- PRO_BRANCH=fixes-2.2.5
4
- EDITOR_BRANCH=fixes-170
 
 
 
 
.github/workflows/run-containers.yml DELETED
@@ -1,59 +0,0 @@
1
- name: Brizy Free
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- - beta-*
8
- - fixes-*
9
- - develop
10
-
11
- jobs:
12
- base:
13
- environment: Build
14
- runs-on: ubuntu-latest
15
- steps:
16
- - name: Checkout
17
- uses: actions/checkout@v2
18
- with:
19
- fetch-depth: '1'
20
- - name: Load Build Evnrorment Data
21
- uses: falti/dotenv-action@master
22
- id: env
23
- with:
24
- path: .github/.build-env
25
- - name: Declare some variables
26
- id: vars
27
- shell: bash
28
- run: |
29
- echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
30
- - name: Intialize the containers
31
- uses: appleboy/ssh-action@master
32
- with:
33
- host: ${{ secrets.HOST }}
34
- username: ${{ secrets.USERNAME }}
35
- key: ${{ secrets.KEY }}
36
- port: ${{ secrets.PORT }}
37
- command_timeout: 200m
38
- passphrase: ${{ secrets.KEY_PASSPHRASE }}
39
- script: |
40
- ./BB/build/run-editor-instance.sh \
41
- -c ${{ steps.vars.outputs.sha_short }} \
42
- -v ${{ steps.env.outputs.build_environment }} \
43
- -f ${{ steps.env.outputs.free_branch }} \
44
- -p ${{ steps.env.outputs.pro_branch }} \
45
- -e ${{ steps.env.outputs.editor_branch }} \
46
- -n traefik \
47
- -t ${{ secrets.COMPOSER_TOKEN }}
48
- - name: Clean context folder
49
- uses: appleboy/ssh-action@master
50
- if: ${{ always() }}
51
- with:
52
- host: ${{ secrets.HOST }}
53
- username: ${{ secrets.USERNAME }}
54
- key: ${{ secrets.KEY }}
55
- port: ${{ secrets.PORT }}
56
- command_timeout: 200m
57
- passphrase: ${{ secrets.KEY_PASSPHRASE }}
58
- script:
59
- ./BB/build/clean-context-folder.sh -c ${{ steps.vars.outputs.sha_short }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,9 +1,9 @@
1
  # Brizy - Page Builder
2
  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.11<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -118,6 +118,24 @@ $bodyHtml = apply_filters( 'brizy_content', $html->get_body(), Brizy_Editor_Proj
118
 
119
  ## Changelog
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  ### 2.4.11 - 2022-10-12
122
  * Fixed: Images URL
123
 
1
  # Brizy - Page Builder
2
  Contributors: themefuse<br>
3
  Requires at least: 4.5<br>
4
+ Tested up to: 6.0.3<br>
5
  Requires PHP: 5.6.20<br>
6
+ Stable tag: 2.4.12<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.12 - 2022-10-27
122
+ * New: Alert element
123
+ * Improved: Icon styles
124
+ * Improved: DnD Performance
125
+ * Improved: Hover Transitions
126
+ * Improved: LeftSidebar new section MEDIA
127
+ * Improved: Accordion - icon size
128
+ * Improved: Undo-Redo blue on hover
129
+ * Fixed: Form select color opacity
130
+ * Fixed: Animation delay and durations when is 0
131
+ * Fixed: Button and Icon context menu
132
+ * Fixed: Forms input type file Allowed File Types
133
+ * Fixed: Background image specific size
134
+ * Fixed: Fonts prefetch
135
+ * Fixed: RichText external link text-decoration in preview
136
+ * Fixed: Fatal error when disabling Brizy Pro
137
+ * Fixed: Duplicate post groups when creating global block rule
138
+
139
  ### 2.4.11 - 2022-10-12
140
  * Fixed: Images URL
141
 
admin/rules/api.php CHANGED
@@ -449,7 +449,8 @@ class Brizy_Admin_Rules_Api extends Brizy_Admin_AbstractApi {
449
  return array(
450
  'title' => $v->post_title,
451
  'value' => $v->ID,
452
- 'groupValue' => $v->post_type
 
453
  );
454
  };
455
 
449
  return array(
450
  'title' => $v->post_title,
451
  'value' => $v->ID,
452
+ 'groupValue' => $v->post_type,
453
+ 'status' => $v->post_status
454
  );
455
  };
456
 
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.11
9
  * Text Domain: brizy
10
  * License: GPLv3
11
  * Domain Path: /languages
@@ -13,111 +13,122 @@
13
  /**
14
  * This will fix the url protocol for websites that are working behind a load balancer
15
  */
16
- if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && stripos( $_SERVER['HTTP_X_FORWARDED_PROTO'], 'https' ) !== false ) {
17
- $_SERVER['HTTPS'] = 'on';
18
  }
19
 
20
- define( 'BRIZY_DEVELOPMENT', false );
21
- define( 'BRIZY_LOG', false );
22
- define( 'BRIZY_VERSION', '2.4.11' );
23
- define( 'BRIZY_MINIMUM_PRO_VERSION', '2.4.0' );
24
- define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '247-wp' );
25
- define( 'BRIZY_SYNC_VERSION', '246' );
26
- define( 'BRIZY_FILE', __FILE__ );
27
- define( 'BRIZY_PLUGIN_BASE', plugin_basename( BRIZY_FILE ) );
28
- define( 'BRIZY_PLUGIN_PATH', dirname( BRIZY_FILE ) );
29
- define( 'BRIZY_PLUGIN_URL', rtrim( plugin_dir_url( BRIZY_FILE ), "/" ) );
30
- define( 'BRIZY_MAX_REVISIONS_TO_KEEP', 30 );
31
-
32
- include_once rtrim( BRIZY_PLUGIN_PATH, "/" ) . '/autoload.php';
33
- include_once rtrim( BRIZY_PLUGIN_PATH, "/" ) . '/languages/main.php';
34
-
35
- if ( BRIZY_DEVELOPMENT ) {
36
- $dotenv = new \Symfony\Component\Dotenv\Dotenv('APP_ENV');
37
- $dotenv->loadEnv( __DIR__ . '/.env' );
38
  }
39
 
40
- add_action( 'plugins_loaded', 'brizy_load' );
41
- add_action( 'init', 'brizy_load_text_domain' );
42
- add_action( 'upgrader_process_complete', 'brizy_upgrade_completed', 10, 2 );
43
 
44
- register_activation_hook( BRIZY_FILE, 'brizy_install' );
45
- register_deactivation_hook( BRIZY_FILE, 'brizy_clean' );
46
 
47
- function brizy_load() {
 
48
 
49
- try {
50
- $instance = Brizy_Editor::get();
51
  } catch (Exception $e) {
52
- add_action( 'admin_notices', 'brizy_fail_notices' );
53
- return;
 
54
  }
55
 
56
- if ( apply_filters( 'brizy_allow_plugin_included', true ) ) {
57
- do_action( 'brizy_plugin_included' );
58
  }
59
  }
60
 
61
- function brizy_notices() {
62
- ?>
 
63
  <div class="notice notice-error is-dismissible">
64
  <p>
65
- <?php
66
- printf(
67
- __( '%1$s requires PHP version 5.6+, you currently running PHP %2$s. <b>%3$s IS NOT RUNNING.</b>', 'brizy' ),
68
- __bt( 'brizy', 'Brizy' ),
69
- PHP_VERSION,
70
- strtoupper( __bt( 'brizy', 'Brizy' ) )
71
- );
72
- ?>
 
 
 
73
  </p>
74
  </div>
75
- <?php
76
  }
77
 
78
- function brizy_fail_notices() {
79
- ?>
 
80
  <div class="notice notice-error is-dismissible">
81
  <p>
82
- <?php
83
- printf(
84
- __( '%1$s failed to start. Please contact the support <a href="%s">here</a>.', 'brizy' ),
85
- __bt( 'brizy', 'Brizy' ),
86
- apply_filters( 'brizy_support_url', Brizy_Config::getSupportUrl() ),
87
- strtoupper( __bt( 'brizy', 'Brizy' ) )
88
- );
89
- ?>
90
  </p>
91
  </div>
92
- <?php
93
  }
94
 
95
 
96
- function brizy_upgrade_completed( $upgrader_object, $options ) {
97
- if ( $options['action'] == 'update' && $options['type'] == 'plugin' && isset( $options['plugins'] ) ) {
98
- foreach ( $options['plugins'] as $plugin ) {
99
- if ( $plugin == BRIZY_PLUGIN_BASE ) {
100
- add_option( 'brizy-regenerate-permalinks', 1 );
101
- do_action( 'brizy-updated' );
102
- }
103
- }
104
- }
 
105
  }
106
 
107
- function brizy_install() {
108
- Brizy_Logger::install();
109
- add_option( 'brizy-regenerate-permalinks', 1 );
110
- do_action( 'brizy-activated' );
 
111
  }
112
 
113
- function brizy_clean() {
114
- Brizy_Logger::clean();
115
- add_option( 'brizy-regenerate-permalinks', 1 );
116
- do_action( 'brizy-deactivated' );
 
117
  }
118
 
119
- function brizy_load_text_domain() {
120
- load_plugin_textdomain( 'brizy', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
 
121
  }
122
 
123
  new Brizy_Compatibilities_Init();
5
  * Plugin URI: https://brizy.io/
6
  * Author: Brizy.io
7
  * Author URI: https://brizy.io/
8
+ * Version: 2.4.12
9
  * Text Domain: brizy
10
  * License: GPLv3
11
  * Domain Path: /languages
13
  /**
14
  * This will fix the url protocol for websites that are working behind a load balancer
15
  */
16
+ if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && stripos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) {
17
+ $_SERVER['HTTPS'] = 'on';
18
  }
19
 
20
+ define('BRIZY_DEVELOPMENT', false );
21
+ define('BRIZY_LOG', false );
22
+ define('BRIZY_VERSION', '2.4.12');
23
+ define('BRIZY_MINIMUM_PRO_VERSION', '2.4.4');
24
+ define('BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '248-wp' );
25
+ define('BRIZY_SYNC_VERSION', '248');
26
+ define('BRIZY_FILE', __FILE__);
27
+ define('BRIZY_PLUGIN_BASE', plugin_basename(BRIZY_FILE));
28
+ define('BRIZY_PLUGIN_PATH', dirname(BRIZY_FILE));
29
+ define('BRIZY_PLUGIN_URL', rtrim(plugin_dir_url(BRIZY_FILE), "/"));
30
+ define('BRIZY_MAX_REVISIONS_TO_KEEP', 30);
31
+
32
+ include_once rtrim(BRIZY_PLUGIN_PATH, "/").'/autoload.php';
33
+ include_once rtrim(BRIZY_PLUGIN_PATH, "/").'/languages/main.php';
34
+
35
+ if (BRIZY_DEVELOPMENT) {
36
+ $dotenv = new \Symfony\Component\Dotenv\Dotenv('APP_ENV');
37
+ $dotenv->load(__DIR__.'/.env');
38
  }
39
 
40
+ add_action('plugins_loaded', 'brizy_load');
41
+ add_action('init', 'brizy_load_text_domain');
42
+ add_action('upgrader_process_complete', 'brizy_upgrade_completed', 10, 2);
43
 
44
+ register_activation_hook(BRIZY_FILE, 'brizy_install');
45
+ register_deactivation_hook(BRIZY_FILE, 'brizy_clean');
46
 
47
+ function brizy_load()
48
+ {
49
 
50
+ try {
51
+ $instance = Brizy_Editor::get();
52
  } catch (Exception $e) {
53
+ add_action('admin_notices', 'brizy_fail_notices');
54
+
55
+ return;
56
  }
57
 
58
+ if (apply_filters('brizy_allow_plugin_included', true)) {
59
+ do_action('brizy_plugin_included');
60
  }
61
  }
62
 
63
+ function brizy_notices()
64
+ {
65
+ ?>
66
  <div class="notice notice-error is-dismissible">
67
  <p>
68
+ <?php
69
+ printf(
70
+ __(
71
+ '%1$s requires PHP version 5.6+, you currently running PHP %2$s. <b>%3$s IS NOT RUNNING.</b>',
72
+ 'brizy'
73
+ ),
74
+ __bt('brizy', 'Brizy'),
75
+ PHP_VERSION,
76
+ strtoupper(__bt('brizy', 'Brizy'))
77
+ );
78
+ ?>
79
  </p>
80
  </div>
81
+ <?php
82
  }
83
 
84
+ function brizy_fail_notices()
85
+ {
86
+ ?>
87
  <div class="notice notice-error is-dismissible">
88
  <p>
89
+ <?php
90
+ printf(
91
+ __('%1$s failed to start. Please contact the support <a href="%s">here</a>.', 'brizy'),
92
+ __bt('brizy', 'Brizy'),
93
+ apply_filters('brizy_support_url', Brizy_Config::getSupportUrl()),
94
+ strtoupper(__bt('brizy', 'Brizy'))
95
+ );
96
+ ?>
97
  </p>
98
  </div>
99
+ <?php
100
  }
101
 
102
 
103
+ function brizy_upgrade_completed($upgrader_object, $options)
104
+ {
105
+ if ($options['action'] == 'update' && $options['type'] == 'plugin' && isset($options['plugins'])) {
106
+ foreach ($options['plugins'] as $plugin) {
107
+ if ($plugin == BRIZY_PLUGIN_BASE) {
108
+ add_option('brizy-regenerate-permalinks', 1);
109
+ do_action('brizy-updated');
110
+ }
111
+ }
112
+ }
113
  }
114
 
115
+ function brizy_install()
116
+ {
117
+ Brizy_Logger::install();
118
+ add_option('brizy-regenerate-permalinks', 1);
119
+ do_action('brizy-activated');
120
  }
121
 
122
+ function brizy_clean()
123
+ {
124
+ Brizy_Logger::clean();
125
+ add_option('brizy-regenerate-permalinks', 1);
126
+ do_action('brizy-deactivated');
127
  }
128
 
129
+ function brizy_load_text_domain()
130
+ {
131
+ load_plugin_textdomain('brizy', false, dirname(plugin_basename(__FILE__)).'/languages');
132
  }
133
 
134
  new Brizy_Compatibilities_Init();
editor/post.php CHANGED
@@ -764,7 +764,8 @@ class Brizy_Editor_Post extends Brizy_Editor_Entity {
764
  LEFT JOIN $wpdb->postmeta pm ON pm.post_id=p.ID and pm.meta_key='brizy_post_uid'
765
  WHERE
766
  p.post_type='%s' and p.post_status IN ($postStatus) $searchQuery
767
- ORDER BY p.post_title ASC
 
768
  LIMIT %d,%d
769
  SQL;
770
  $posts = $wpdb->get_results( $wpdb->prepare( $query, $postType, $postLabel, $postType, $offset, $limit ) );
764
  LEFT JOIN $wpdb->postmeta pm ON pm.post_id=p.ID and pm.meta_key='brizy_post_uid'
765
  WHERE
766
  p.post_type='%s' and p.post_status IN ($postStatus) $searchQuery
767
+ GROUP BY p.ID
768
+ ORDER BY p.post_title ASC
769
  LIMIT %d,%d
770
  SQL;
771
  $posts = $wpdb->get_results( $wpdb->prepare( $query, $postType, $postLabel, $postType, $offset, $limit ) );
public/editor-build/247-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([768,1]),o()}([function(e,t,o){"use strict";var i=o(300);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 N})),o.d(t,"onChangeColorPalette",(function(){return A})),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 Ne})),o.d(t,"onChangeBgColorHexButton2",(function(){return Ae})),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 Nt})),o.d(t,"onChangeActiveColorPaletteSubMenu2",(function(){return At})),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 N})),o.d(i,"onChangeColorPalette",(function(){return A})),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 Ne})),o.d(i,"onChangeBgColorHexButton2",(function(){return Ae})),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 Nt})),o.d(i,"onChangeActiveColorPaletteSubMenu2",(function(){return At})),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(29);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 N({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 A({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 Ne({v:e,hex:t,opacity:o,isChanged:i="hex"}){return{hoverBorderColorPalette:"hex"===i?"":e.hoverBorderColorPalette,hoverBorderColorHex:t,hoverBorderColorOpacity:o}}function Ae({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 Nt({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 At({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(64);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(295),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(218);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(54);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(235);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(211);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(237),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 N=Object(d.b)(e=>({device:e.ui.deviceMode}),null,null,{forwardRef:!0})(W),A=o(5),V=o.n(A),D=o(136),$=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=N;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(64);var i=o(13),r=o(86),n=o(10),a=o(126),l=o(61);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(182),p=o(141),u=o(582),b=o(17),m=o(27),h=o(137),g=o(29),v=o(583),y=o(74),f=o(50),S=o(28),O=o(4),x=o(584),C=o(61),w=o(585),B=o(99),j=o(241),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(183);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 N})),o.d(t,"E",(function(){return A})),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(53),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)})),N=Object(r.createSelector)(C,M,(e,t)=>Object(n.a)(e,e=>{e.items=t})),A=Object(r.createSelector)(N,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)(A,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(208);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(232),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(61);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 D})),o.d(t,"L",(function(){return G})),o.d(t,"A",(function(){return U})),o.d(t,"fb",(function(){return K})),o.d(t,"a",(function(){return q})),o.d(t,"N",(function(){return Y})),o.d(t,"u",(function(){return X})),o.d(t,"db",(function(){return J})),o.d(t,"n",(function(){return Z})),o.d(t,"b",(function(){return Q})),o.d(t,"X",(function(){return ee})),o.d(t,"E",(function(){return te})),o.d(t,"D",(function(){return oe})),o.d(t,"d",(function(){return ie})),o.d(t,"f",(function(){return re})),o.d(t,"ib",(function(){return ne})),o.d(t,"kb",(function(){return ae})),o.d(t,"G",(function(){return le})),o.d(t,"F",(function(){return ce})),o.d(t,"e",(function(){return se})),o.d(t,"g",(function(){return de})),o.d(t,"jb",(function(){return pe})),o.d(t,"eb",(function(){return ue})),o.d(t,"C",(function(){return be})),o.d(t,"r",(function(){return me})),o.d(t,"q",(function(){return he})),o.d(t,"c",(function(){return ge})),o.d(t,"bb",(function(){return ve})),o.d(t,"cb",(function(){return ye})),o.d(t,"s",(function(){return fe})),o.d(t,"Z",(function(){return Se})),o.d(t,"ab",(function(){return Oe})),o.d(t,"M",(function(){return xe})),o.d(t,"H",(function(){return Ce})),o.d(t,"W",(function(){return we})),o.d(t,"t",(function(){return Be})),o.d(t,"K",(function(){return je})),o.d(t,"h",(function(){return Te})),o.d(t,"Q",(function(){return Pe})),o.d(t,"P",(function(){return Ee})),o.d(t,"w",(function(){return _e})),o.d(t,"i",(function(){return ke})),o.d(t,"I",(function(){return ze})),o.d(t,"J",(function(){return Fe})),o.d(t,"y",(function(){return Re})),o.d(t,"x",(function(){return He})),o.d(t,"l",(function(){return Le})),o.d(t,"j",(function(){return Me})),o.d(t,"B",(function(){return Ie})),o.d(t,"z",(function(){return We}));o(64),o(253);var i,r=o(13);o(135);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(72),l=o(193),c=o(46),s=o(50),d=o(2),p=o(19),u=o(53),b=o(78),m=o(116),h=o(123),g=o(71),v=o(52),y=o(162),f=o(102),S=o(125);const O=({models:e,globalBlocks:t})=>{const o=new Set;return Object(f.e)(e,{Component({type:e,value:t}){const i=Object(S.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&&O({models:i}).forEach(e=>{o.add(e)})}}),[...o]};var x=o(20),C=o(36);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(d.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):w(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const j=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 B(B({},e),{},{data:t})},T=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=C.l?e.rules:JSON.parse(e.rules)}catch(e){throw new a.b("globalBlock rules are wrong")}else i=[];if(e.position)try{r=C.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",B(B({},e),{},{data:t,meta:o,position:r,status:n,rules:i.map(M)})},P=e=>{const t=JSON.stringify(e.data),o=JSON.stringify(e.meta),i=JSON.stringify(e.rules.map(I));return B(B({},e),{},{data:t,meta:o,rules:i})};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(d.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=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 _(_({},e),{},{data:t,meta:o})},z=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 _(_({},e),{},{data:t,meta:o})},F=e=>{const t=JSON.stringify(e.data),o=JSON.stringify(e.meta);return _(_({},e),{},{data:t,meta:o})},R=e=>{let t;if(e.meta)try{t=JSON.parse(e.meta)}catch(e){t={}}else t={};return _(_({},e),{},{meta:t})},H=e=>{const{data:t,meta:o}=e,{extraFontStyles:i}=o,r=Object(f.b)({models:t}),n=O({models:t}),a=Object(f.d)(i),l=Object(f.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]})},L=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(x.g)({items:[]})),dataVersion:Object(m.a)(c.d("dataVersion"),g.a,Object(x.g)(0)),slug:Object(m.a)(c.d("slug"),s.b,Object(x.g)("")),title:Object(m.a)(c.d("title"),s.b,Object(x.g)("")),status:Object(m.a)(c.d("status"),y.a(["draft","publish"]),Object(x.g)("draft")),is_index:Object(m.a)(c.d("is_index"),y.a([!0,!1]),Object(x.g)(!1)),template:Object(m.a)(c.d("template"),s.b,Object(x.g)("")),url:Object(m.a)(c.d("url"),s.b,Object(x.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(x.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(x.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(x.g)(""))});const M=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=>"appliedFor"in e&&null!==e.appliedFor&&"entityValues"in e&&0===e.entityValues.length&&void 0!==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})]),I=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:[]})]),W=(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),A=e=>c.b(e),V=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}],[A,o=>{Object.entries(o).forEach(([o,r])=>{N(r)&&(t[`${e}[${i}][${o}]`]=""+r)})}])(o)})}),t};function D(e,t={}){const{fetch:o}=window.parent||window;return o(e,t)}function $(e,t={}){return new Promise((o,i)=>{let r=0;const n=(e,t)=>D(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 G(e=650){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}function U(){const{wp:{api:{url:e,hash:t,getProject:o}},editorVersion:i}=r.a.getAll();return $(W(e,{action:o,version:i,hash:t}),{method:"GET"}).then(({data:e})=>e).then(j).catch(()=>{throw new a.h("Failed to get Project")})}function K(e,t={}){const{wp:{api:{url:o,hash:i,setProject:n}},editorVersion:l}=r.a.getAll(),c=W(o,{action:n,version:l,hash:i}),{is_autosave:s=1}=t,{data:d,dataVersion:p}=(e=>{let t=JSON.stringify(e.data);return B(B({},e),{},{data:t})})(e);return $(c,{method:"POST",body:new URLSearchParams({data:d,dataVersion:""+p,is_autosave:""+s})}).catch(()=>{throw new a.h("Failed to update project")})}function q(){const{url:e,hash:t,lockProject:o}=r.a.get("wp").api,i=r.a.get("editorVersion");return D(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 Y(){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 X(e){return function(){const{wp:{page:e,api:{url:t,hash:o,getPage:i}},editorVersion:n}=r.a.getAll();return $(W(t,{action:i,version:n,hash:o,id:e}),{method:"GET"}).then(({data:e})=>e.map(L)).catch(()=>{throw new a.g("Failed to get page")})}().then(t=>t.find(t=>t.id===""+e))}function J(e,t={}){const{wp:{api:{url:o,hash:i,updatePage:n}},editorVersion:l}=r.a.getAll(),c=W(o,{action:n,version:l,hash:i}),{is_autosave:s=1}=t,{id:d,status:p,data:u,dataVersion:b}=function(e){return _(_({},e),{},{data:JSON.stringify(e.data)})}(e);return $(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 Z=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 D(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},Q=({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 D(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})},ee=({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 D(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})},te=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 D(W(t,V({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(R))},oe=e=>{const{wp:{api:{url:t,hash:o,getSavedBlockByUid:i}},editorVersion:n}=r.a.getAll();return D(W(t,{uid:e,hash:o,action:i,version:n}),{method:"GET"}).then(e=>e.json()).then(({data:e})=>k(e))},ie=e=>{const{wp:{api:{url:t,hash:o,createSavedBlock:i}},editorVersion:n}=r.a.getAll(),a=W(t,{hash:o,action:i,version:n}),{uid:l,data:c,dataVersion:s,meta:d}=F(e),p=H(e);return $(a,{method:"POST",body:new URLSearchParams({uid:l,data:c,meta:d,media:p,dataVersion:""+s})})},re=e=>{const{wp:{api:{url:t,hash:o,deleteSavedBlock:i}},editorVersion:n}=r.a.getAll();return D(W(t,{action:i,version:n,hash:o,uid:e}),{method:"DELETE"})},ne=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 D(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(k)};throw s},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 D(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(k)};throw s},le=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 D(W(t,V({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(R))},ce=e=>{const{wp:{api:{url:t,hash:o,getLayoutByUid:i}},editorVersion:n}=r.a.getAll();return D(W(t,{hash:o,uid:e,action:i,version:n}),{method:"GET"}).then(e=>e.json()).then(({data:e})=>z(e))},se=e=>{const{wp:{api:{url:t,hash:o,createLayout:i}},editorVersion:n}=r.a.getAll(),a=W(t,{hash:o,action:i,version:n}),{data:l,dataVersion:c,uid:s,meta:d}=F(e),p=H(e);return $(a,{method:"POST",body:new URLSearchParams({uid:s,data:l,meta:d,media:p,dataVersion:""+c})})},de=e=>{const{wp:{api:{url:t,hash:o,deleteLayout:i}},editorVersion:n}=r.a.getAll();return D(W(t,{hash:o,uid:e,action:i,version:n}),{method:"DELETE"})},pe=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 D(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};function ue(e){const{api:{updateRules:t,hash:o,url:i},page:n}=r.a.get("wp"),{rules:a,dataVersion:l}=e;return D(`${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(I))})}function be(){const{api:{getRuleList:e,hash:t,url:o},page:i}=r.a.get("wp"),n=r.a.get("editorVersion");return D(o,{method:"POST",body:new URLSearchParams({action:e,post:i,version:n,hash:t})}).then(e=>e.json()).then(({data:e})=>e.map(M))}async function me(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 D(o,{method:"POST",body:a}),c=await l.json();if(c.success)return c.data;throw c}function he(){const{wp:{api:{url:e,hash:t,getGlobalBlockList:o}},editorVersion:i}=r.a.getAll();return $(W(e,{hash:t,action:o,version:i}),{method:"GET"}).then(({data:e})=>e.map(T).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 ge(e){const{wp:{api:{url:t,hash:o,createGlobalBlock:i}},editorVersion:n}=r.a.getAll(),l=W(t,{hash:o,action:i,version:n}),c=e.data.value._id,{data:s,rules:d,meta:p}=P(e),u=H(e);return $(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 ve(e,t,o={}){const{wp:{api:{url:i,hash:n,updateGlobalBlock:l}},editorVersion:c}=r.a.getAll(),s=W(i,{hash:n,action:l,version:c}),{is_autosave:d=1}=o,{data:p,rules:u,meta:b,status:m}=P(t);return $(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 ye(e,t={}){const{wp:{api:{url:o,hash:i,updateGlobalBlocks:n}},editorVersion:l}=r.a.getAll(),c=W(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}=P(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=V({uid:d.uid,status:d.status,data:d.data,position:d.position,rules:d.rules,meta:d.meta,is_autosave:""+s});return $(c,{method:"POST",body:new URLSearchParams(p)}).catch(()=>{throw new a.g("Failed to update Global blocks")})}async function fe(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 D(i,{method:"POST",body:l}),s=await c.json();if(s.success)return s.data;throw s}async function Se(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 D(i,{method:"POST",body:l}),s=await c.json();if(s.success)return s.data;throw s}async function Oe(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 D(a,{method:"POST",body:s}),p=await d.json();if(p.success)return p.data;throw p}async function xe(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 D(o,{method:"POST",body:a}),c=await l.json();if(c.success)return c.data;throw c}async function Ce(){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 D(t,{method:"POST",body:n}),l=await a.json();if(l.success)return l.data;throw l}async function we(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 D(o,{method:"POST",body:a}),c=await l.json();if(c.success)return c.data;throw c}async function Be(){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 D(t,{method:"POST",body:n}),l=await a.json();if(l.success)return l.data;throw l}async function je(){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 D(t,{method:"POST",body:n}),l=await a.json();if(l.success)return l.data;throw l}async function Te(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 D(o,{method:"POST",body:a}),c=await l.json();if(c.success)return c.data;throw c}function Pe(){const{url:e,hash:t,heartBeat:o}=r.a.get("wp").api,i=r.a.get("editorVersion");return D(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 Ee(){const{url:e,hash:t,takeOver:o}=r.a.get("wp").api,i=r.a.get("editorVersion");return D(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 _e(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 D(o,{method:"POST",body:a}),c=await l.json();if(c.success)return c.data;throw c}const ke=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 D(i,{method:"POST",body:c,signal:o}),d=await s.json();if(d.success)return d.data;throw d},ze=async e=>{const{url:t,hash:o,getTerms:i}=r.a.get("wp").api,n=r.a.get("editorVersion");return D(t,{method:"POST",body:new URLSearchParams({hash:o,version:n,taxonomy:e,action:i})}).then(e=>e.json()).then(({data:e})=>e)},Fe=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 D(i,{method:"POST",body:c,signal:o}),d=await s.json();if(d.success)return d.data;throw d},Re=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 D(a,{method:"POST",body:d,signal:n}),u=await p.json();if(u.success)return u.data;throw u},He=async({taxonomy:e,abortSignal:t})=>{const{url:o,hash:i,getPostTaxonomies:n}=r.a.get("wp").api,a=r.a.get("editorVersion");return D(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=>[])},Le=async()=>{const e=r.a.getAll().wp.postTypes;return Promise.resolve(e)},Me=async e=>{const t=r.a.getAll(),{wp:o,editorVersion:i}=t,{url:n,hash:a,getPostObjects:l}=o.api;return await D(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=>[])},Ie=async e=>{const t=r.a.getAll(),{wp:o,editorVersion:i}=t,{url:n,hash:a,rulePostsGroupList:l}=o.api;return await D(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=>[])},We=()=>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 N})),o.d(t,"Y",(function(){return A})),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(47);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 N({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 A({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(295);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 N})),o.d(t,"m",(function(){return A})),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(61);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}})}),N=e=>({type:"UPDATE_PAGE_LAYOUT",payload:{layout:e}});function A(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 A})),o.d(t,"b",(function(){return V}));var i=o(246),r=o(567),n=o(2),a=o(38),l=o(17),c=o(59),s=o(72),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(381);var g=o(18),v=o(31);var y=o(24),f=o(53);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 N;function A({middleware:e=[]}={}){if(N)throw new Error("store is already created");return N=Object(i.d)(W,Object(i.c)(r.reduxBatch,Object(i.a)(...e))),N}function V(){if(!N)throw new Error("store is not yet created");return N}},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,"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(28),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 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(30),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(587),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 A})),o.d(t,"g",(function(){return N})),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=A[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 A[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,A[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(64);var y=o(13),f=o(107);const S=e=>`https://fonts.bunny.net/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(28),T=o(61);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]})},{}),N=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})},A={config:N,google:N,blocks:N,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(183),d=o(570);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,"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,"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,"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";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(177),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(293)},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";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,"g",(function(){return i})),o.d(t,"d",(function(){return m})),o.d(t,"h",(function(){return h})),o.d(t,"b",(function(){return y})),o.d(t,"e",(function(){return v})),o.d(t,"a",(function(){return S})),o.d(t,"f",(function(){return O})),o.d(t,"c",(function(){return g}));o(297);var r=o(2),n=o(37),a=o(99),l=o(13),c=o(23),s=o(107),d=o(10);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(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}const b={iW:5e3,iH:"any"};var m=(e,t=b)=>{if(Object(s.b)(e)||Object(a.d)(e))return e;if(e){var o;const i=l.a.getAll(),r=null!==(o=i.prefix)&&void 0!==o?o:"brizy",a=i.urls.site,c=Object(s.e)(a)?a+"&":a+"/?",{fileName:p}=t,m=Object(n.a)(t,["fileName"]),h=(e=>{const t=d.default.mapObject(e,e=>"number"==typeof e?Math.round(e):e);return Object(s.c)(t)})(u(u({},b),m));return`${c}${Object(s.c)({[r+"_media"]:e,[r+"_crop"]:h})}`}return null};const h=e=>{const t=c.d(e);if(t){return`${l.a.getAll().urls.customFile}${t}`}return null},g=(e,t)=>{var o;const i=l.a.getAll(),r=i.urls.site,{size:n}=t,a=Object(s.e)(r)?r+"&":r+"/?",c=null!==(o=i.prefix)&&void 0!==o?o:"brizy";return`${a}${Object(s.c)({[c+"_media"]:e,[c+"_crop"]:n})}`};function v(e,t,o){const i=e>t?e/o:t/o;return{width:Math.round(e/i),height:Math.round(t/i)}}o(64);function y(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}'}}`}const f=/\.[^.]+$/;function S(e){const t=f.exec(e);if(t&&t.length){const[e]=t;return e.replace(".","").toLowerCase()}}function O(e){return"svg"===S(e)}},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(54),u=o(18),b=o(17),m=o(760),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 r}));var i=o(566);const r=(e=36)=>Object(i.a)("abcdefghijklmnopqrstuvwxyz",e)(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 ln})),o.d(r,"wordpress",(function(){return sn})),o.d(r,"mailchimp",(function(){return pn})),o.d(r,"sendinblue",(function(){return bn})),o.d(r,"zapier",(function(){return hn})),o.d(r,"campaignmonitor",(function(){return vn})),o.d(r,"convertkit",(function(){return fn})),o.d(r,"activecampaign",(function(){return On})),o.d(r,"getresponse",(function(){return Cn})),o.d(r,"mailjet",(function(){return Bn})),o.d(r,"egoi",(function(){return Tn})),o.d(r,"hubspot",(function(){return En})),o.d(r,"mailerlite",(function(){return kn})),o.d(r,"drip",(function(){return Fn})),o.d(r,"smtp",(function(){return Hn})),o.d(r,"gmail_smtp",(function(){return Mn})),o.d(r,"mailgun",(function(){return Wn})),o.d(r,"madmimi",(function(){return An})),o.d(r,"constantcontact",(function(){return Dn})),o.d(r,"aweber",(function(){return Gn})),o.d(r,"salesforce",(function(){return Kn})),o.d(r,"sendgrid",(function(){return Yn})),o.d(r,"recaptcha",(function(){return Jn}));var n={};o.r(n),o.d(n,"google",(function(){return Ba})),o.d(n,"uploader",(function(){return Na}));var a=o(2),l=o(1),c=o.n(l),s=o(38),d=o(301);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(64),o(5)),g=o.n(h),v=o(10),y=o(13),f=o(127),S=o(51),O=o(39),x=o(37),C=o(12),w=o(761),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(571);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"}],N=[{id:0,name:"outline",title:"Outline",icon:"nc-cube"},{id:1,name:"glyph",title:"Glyph",icon:"nc-full-cube"}];var A=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,1016,3)).then(q);case 1:return o.e(4).then(o.t.bind(null,1017,3)).then(q);case 2:return o.e(3).then(o.t.bind(null,1018,3)).then(q)}},X=()=>A.l?A.g?[...N,...W]:W:N,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(212);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!A.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 Ne(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 Ae=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?Ne(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ne(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(129),$e=o(209);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(324),it=o(321),rt=o(1009),nt=o(1013),at=o(302),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 Ae({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 Nt 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)(Nt,"defaultProps",{service:"facebook",group:"social",opened:!1,onClose:v.noop});var At=Nt,Vt=o(43),Dt=o.n(Vt),$t=o(45),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(55);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.g)(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=!A.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=!A.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.g)(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),No=o(40),Ao=o(53);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(Ao.h)(e,n)),{blocks:s}=await c.json(),d=Object(Wo.b)({models:s});let p;if(!this.hasStyleInProject()){p=Object(No.u)(t.styles);const e=Object(V.e)(p,({fontStyles:e})=>e),o=Object(Wo.d)(e);d.push(...o)}const u=await Object(No.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=!A.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(Ao.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(No.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(No.t)(Object(Wo.a)(t,o));r(Object(Qo.s)({selectedKit:e,styles:l?Object(No.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(Ao.h)("popups",e));return await t.json()}{const t=await fetch(Object(Ao.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(Ao.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(Ao.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),li=o(61);class ci 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(No.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)}?${Object(li.a)(4)}`,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(Ao.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)(ci,"defaultProps",{type:"normal",showSearch:!0,onAddBlocks:v.default.noop,onClose:v.default.noop,HeaderSlotLeft:v.default.noop}),Object(a.a)(ci,"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 si=Object(io.b)(e=>({globalBlocks:Object(co.r)(e),globalBlocksInPage:Object(co.s)(e),projectFonts:Object(co.o)(e)}),e=>({dispatch:e}))(ci),di=o(54),pi=o(31),ui=o(128),bi=o(303);const mi=()=>{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):mi().then(e).catch(t)}}).catch(t)})},hi=()=>{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)},gi=()=>{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 vi=o(179);const yi={updateAuthorization:Qo.F};var fi=Object(io.b)(e=>({isAuthorized:"connected"===Object(co.a)(e),syncAllowed:Object(co.O)(e)}),yi)(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&&mi().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}=gi();return Object(l.useEffect)(()=>{n&&i&&i()},[n]),Object(l.useEffect)(()=>{d&&(r("disconnect"),Object(vi.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 Si=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 Oi(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 xi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Oi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Ci={flex:1};class wi 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})=>xi(xi({},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(Si,{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:Ci},c.a.createElement(Lo,{showSync:t,showDownload:o,data:e,onThumbnailAdd:i,onThumbnailRemove:r})),d&&c.a.createElement(Si,{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(fi,{onSuccessSync:a}))),e?this.renderLoading():0===t.length?this.renderEmpty():this.renderItems(t)))}}Object(a.a)(wi,"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 Bi=wi;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 Ti(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 Pi 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:Ti(Ti({},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(ui.h)(e)&&i.push(Ti(Ti({},this.makeThumbsData(e)),{},{uid:e.uid,type:"LAYOUT",synchronized:e.synchronized||!1,synchronizable:e.synchronizable||!1})),Object(ui.g)(e)&&o.push(Ti(Ti({},this.makeThumbsData(e)),{},{uid:e.uid,type:"BLOCK",synchronized:e.synchronized||!1,synchronizable:e.synchronizable||!1})),Object(ui.i)(e)&&r.push(Ti(Ti({},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(ui.h)(e)&&po.a.error("Your .zip contains layouts. We imported them in the Saved Layouts library",o),Object(ui.i)(e)&&po.a.error("Your .zip contains popups blocks. We imported them in the Saved Popups library",o);break;case"POPUP":Object(ui.h)(e)&&po.a.error("Your .zip contains layouts. We imported them in the Saved Layouts library",o),Object(ui.g)(e)&&po.a.error("Your .zip contains regular blocks. We imported them in the Saved Blocks library",o);break;case"LAYOUT":Object(ui.g)(e)&&po.a.error("Your .zip contains regular blocks. We imported them in the Saved Blocks library",o),Object(ui.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(pi.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=>Ti(Ti({},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=>Ti(Ti({},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=>Ti(Ti({},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(No.t)(Object(Wo.a)([...r,...n],t)),l=i.filter(({id:e})=>!o.some(t=>t.id===e));return{fonts:a,extraFontStyles:Object(No.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(Ao.b)(e),r="admin"===Object(di.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(bi.a)();return c.a.createElement(Bi,{type:a,loading:e,items:t,types:o,showSearch:s,sidebarSync:!d,thumbnailSync:A.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)(Pi,"defaultProps",{type:"normal",showSearch:!0,projectFonts:{},projectExtraFontStyles:[],isAuthorized:!1,onAddBlocks:v.default.noop,onClose:v.default.noop,HeaderSlotLeft:l.Component,getParentNode:()=>null});var Ei=Object(io.b)(e=>({projectFonts:Object(co.o)(e),projectExtraFontStyles:Object(co.n)(e),isAuthorized:"connected"===Object(co.a)(e)}))(Pi);const _i=[{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(Ei,e)},{id:"global",title:so.b?Object(ae.a)("Global Popups"):Object(ae.a)("Global Blocks"),icon:"nc-global",renderTab:e=>c.a.createElement(si,e)}];class ki 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=_i.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}=_i.find(({id:t})=>t===e)||_i[0];return t({HeaderSlotLeft:e=>c.a.createElement(zi,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)(ki,"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 zi 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)(zi,"defaultProps",{slot:"left"});var Fi=ki;const Ri=({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)},Hi=({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))},Li=({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))},Mi=({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))},Ii=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 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 Ni(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(a.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 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 Vi extends l.Component{constructor(e,t){super(e),Object(a.a)(this,"handleChange",(e,t)=>{this.setState(o=>({apiKeyValue:Ni(Ni({},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))})(Ni(Ni({},t),{},{formId:o,data:a}));if(200!==l)this.setState({nextLoading:!1,error:Ai(c,t.accountApiKeys)});else{const o=t.accounts||[];i(e,Ni(Ni({},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})=>Ni(Ni({},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,Ni(Ni({},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)(Vi,"contextType",me);var Di=Vi;function $i(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 Gi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):$i(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Ui 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 Ii(Gi(Gi({},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,Gi(Gi({},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 Ii(Gi(Gi({},t),{},{formId:o,usedAccount:n}));200!==a?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(i(e,Gi(Gi({},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)(Ui,"contextType",me);var Ki=Ui;function qi(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 Yi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qi(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Xi 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 Ii(Yi(Yi({},t),{},{formId:o,usedFolder:n}));200!==a?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(i(e,Yi(Yi({},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)(Xi,"contextType",me);var Ji=Xi;function Zi(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?Zi(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Zi(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class er 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,Qi(Qi({},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 Ii(Qi(Qi({},t),{},{formId:o,fieldsMap:JSON.stringify(n),completed:!0}));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)(),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)(er,"contextType",me);var tr=er;function or(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 ir(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?or(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):or(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class rr 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,ir(ir({},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 Ii(ir(ir({},t),{},{formId:o,fieldsMap:JSON.stringify(n),completed:!0}));200!==a?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(i(e,ir(ir({},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,ir(ir({},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)(rr,"contextType",me);var nr=rr,ar=o(14);function lr(e){return"boolean"==typeof e}Object(ar.c)(lr);var cr=o(52);const sr=e=>"string"==typeof e||null===e,dr=e=>"function"==typeof e||sr(e),pr=Object(cr.d)({type:e=>"input"===e.type||void 0===e.type?"input":void 0,value:Object(ar.d)(Object($t.c)("value"),Object(Qe.pass)(e=>sr(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(ar.d)(Object($t.c)("required"),Object(Qe.pass)(lr))),helper:Object(Qe.optional)(Object(ar.d)(Object($t.c)("helper"),Object(Qe.pass)(e=>dr(e))))}),ur=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(ar.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(ar.d)(Object($t.c)("required"),Object(Qe.pass)(lr))),helper:Object(Qe.optional)(Object(ar.d)(Object($t.c)("helper"),Object(Qe.pass)(e=>dr(e))))}),br=Object(Qe.parse)({type:e=>"switch"===e.type?"switch":void 0,title:Object(Qe.mPipe)(Object($t.c)("title"),U.d),value:Object(ar.d)(Object($t.c)("value"),e=>!!lr(e)&&e),name:Object(Qe.mPipe)(Object($t.c)("name"),U.d),required:Object(Qe.optional)(Object(ar.d)(Object($t.c)("required"),Object(Qe.pass)(lr))),helper:Object(Qe.optional)(Object(ar.d)(Object($t.c)("helper"),Object(Qe.pass)(e=>dr(e))))}),mr=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(ar.d)(Object($t.c)("value"),Object(Qe.pass)(e=>sr(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(ar.d)(Object($t.c)("required"),Object(Qe.pass)(lr))),helper:Object(Qe.optional)(Object(ar.d)(Object($t.c)("helper"),Object(Qe.pass)(e=>dr(e)))),multiple:Object(ar.d)(Object($t.c)("multiple"),lr)}),hr=Object(Qe.match)([e=>"input"===e.type||void 0===e.type,pr],[e=>"select"===e.type,ur],[e=>"switch"===e.type,br],[e=>"search"===e.type,mr],[e=>!0,()=>{}]);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 vr(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(a.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}class yr 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:vr(vr({},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))})(vr(vr(vr({},t),a),{},{formId:o,completed:!0}));200!==i?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(r(e,vr(vr({},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 vr(vr({},t),{},{[""+o]:e[null!==(i=U.d(o))&&void 0!==i?i:""]||""})},{})}getValue(e){const{apiKeyValue:t}=this.state;return Object(ar.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=vr(vr({},e),{},{value:this.getValue(e.name)}),hr(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 fr=yr;const Sr=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 Or(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 xr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Or(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Cr={helper:e=>c.a.createElement(Sr,{descriptions:Object(ae.a)("You can use these shortcodes in your email: "),fields:e})},wr=[{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>`},xr({name:"subject",title:Object(ae.a)("Subject")},A.g?Cr:{}),{name:"fromEmail",title:Object(ae.a)("From Email")},{name:"fromName",title:Object(ae.a)("From Name")},xr({name:"replayTo",title:Object(ae.a)("Reply-To")},A.g?Cr:{}),{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 Br extends l.Component{render(){return c.a.createElement(fr,Object(C.a)({},this.context,{apiKeys:wr,onClose:this.props.onClose}))}}Object(a.a)(Br,"contextType",me);var jr=Br;class Tr 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 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(a.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}Object(a.a)(Tr,"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 _r=(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 kr 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:Er(Er({},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 Ii(Er(Er({},o),{},{formId:i,confirmationNeeded:e}));200!==n?this.setState({error:Object(ae.a)("Something went wrong")}):r(t,Er(Er({},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?a.message?this.setState({nextLoading:!1,error:a.message}):this.setState({nextLoading:!1,error:_r("server")}):(i(e,Er(Er({},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 Ii(Er(Er({},t),{},{formId:o,usedList:n}));200!==a?this.setState({nextLoading:!1,error:Object(ae.a)("Something went wrong")}):(i(e,Er(Er({},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:_r("application",t.app),createLoading:!1,prevLoading:!1,nextLoading:!1}}static async onBeforeLoad(e){const{app:{id:t,data:o},onChange:i}=e;i(t,Er(Er({},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})=>Er(Er({},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(Tr,Object(C.a)({},this.state,{listsCreate:o,onChange:this.handleKeysChange,onPrev:this.handleViewMode,onNext:this.handleCreateList}))}}Object(a.a)(kr,"contextType",me);var zr=kr;class Fr 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)(Fr,"contextType",me);var Rr=Fr;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 Lr(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}const Mr={helper:e=>c.a.createElement(Sr,{descriptions:Object(ae.a)("You can use these shortcodes in your email: "),fields:e})},Ir=[{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>'},Lr({name:"subject",title:Object(ae.a)("Subject")},A.g?Mr:{}),{name:"fromEmail",title:Object(ae.a)("From Email")},{name:"fromName",title:Object(ae.a)("From Name")},Lr({name:"replayTo",title:Object(ae.a)("Reply-To")},A.g?Mr:{}),{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 Wr extends l.Component{render(){return c.a.createElement(fr,Object(C.a)({},this.props,this.context,{apiKeys:Ir}))}}Object(a.a)(Wr,"contextType",me);var Nr=Wr;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 Vr(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 Dr={helper:e=>c.a.createElement(Sr,{descriptions:Object(ae.a)("You can use these shortcodes in your email: "),fields:e})},$r=[{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>'},Vr({name:"subject",title:Object(ae.a)("Subject")},A.g?Dr:{}),{name:"fromEmail",title:Object(ae.a)("From Email")},{name:"fromName",title:Object(ae.a)("From Name")},Vr({name:"replayTo",title:Object(ae.a)("Reply-To")},A.g?Dr:{}),{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 Gr extends l.Component{render(){return c.a.createElement(fr,Object(C.a)({},this.props,this.context,{apiKeys:$r}))}}Object(a.a)(Gr,"contextType",me);var Ur=Gr;class Kr 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)(Kr,"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 qr=Kr;function Yr(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 Xr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Yr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}async function Jr(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)})(Xr(Xr({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 Zr(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 Qr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Zr(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const en=[{name:"sitekey",title:"Site Key"},{name:"secretkey",title:"Secret Key"}];class tn extends l.Component{constructor(e,t){super(e),Object(a.a)(this,"handleChange",(e,t)=>{this.setState(({apiKeyValue:o})=>({apiKeyValue:Qr(Qr({},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 Jr(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 en.reduce((e,{name:t})=>Qr(Qr({},e),{},{[""+t]:""}),{})}render(){const{apiKeyValue:e,nextLoading:t,prevLoading:o,confirmed:i,error:r,validated:n}=this.state,a=en.map(({title:t,name:o})=>({title:t,name:o,value:e[o]}));return c.a.createElement(qr,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)(tn,"contextType",me);var on=tn;class rn 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)(rn,"contextType",me);var nn=rn;class an extends Ht{}Object(a.a)(an,"fields",jr),Object(a.a)(an,"done",Rr);var ln=an;class cn extends Ht{}Object(a.a)(cn,"fields",jr),Object(a.a)(cn,"done",Rr);var sn=cn;class dn extends Ht{}Object(a.a)(dn,"connect",Di),Object(a.a)(dn,"account",Ki),Object(a.a)(dn,"fields",tr),Object(a.a)(dn,"list",zr),Object(a.a)(dn,"done",Rr);var pn=dn;class un extends Ht{}Object(a.a)(un,"connect",Di),Object(a.a)(un,"account",Ki),Object(a.a)(un,"client",Ji),Object(a.a)(un,"fields",tr),Object(a.a)(un,"list",zr),Object(a.a)(un,"done",Rr);var bn=un;class mn extends Ht{}Object(a.a)(mn,"connect",Di),Object(a.a)(mn,"account",Ki),Object(a.a)(mn,"fields",nr),Object(a.a)(mn,"done",Rr);var hn=mn;class gn extends Ht{}Object(a.a)(gn,"connect",Di),Object(a.a)(gn,"account",Ki),Object(a.a)(gn,"client",Ji),Object(a.a)(gn,"fields",tr),Object(a.a)(gn,"list",zr),Object(a.a)(gn,"done",Rr);var vn=gn;class yn extends Ht{}Object(a.a)(yn,"connect",Di),Object(a.a)(yn,"account",Ki),Object(a.a)(yn,"fields",tr),Object(a.a)(yn,"list",zr),Object(a.a)(yn,"done",Rr);var fn=yn;class Sn extends Ht{}Object(a.a)(Sn,"connect",Di),Object(a.a)(Sn,"account",Ki),Object(a.a)(Sn,"fields",tr),Object(a.a)(Sn,"list",zr),Object(a.a)(Sn,"done",Rr);var On=Sn;class xn extends Ht{}Object(a.a)(xn,"connect",Di),Object(a.a)(xn,"account",Ki),Object(a.a)(xn,"fields",tr),Object(a.a)(xn,"list",zr),Object(a.a)(xn,"done",Rr);var Cn=xn;class wn extends Ht{}Object(a.a)(wn,"connect",Di),Object(a.a)(wn,"account",Ki),Object(a.a)(wn,"fields",tr),Object(a.a)(wn,"list",zr),Object(a.a)(wn,"done",Rr);var Bn=wn;class jn extends Ht{}Object(a.a)(jn,"connect",Di),Object(a.a)(jn,"account",Ki),Object(a.a)(jn,"fields",tr),Object(a.a)(jn,"list",zr),Object(a.a)(jn,"done",Rr);var Tn=jn;class Pn extends Ht{}Object(a.a)(Pn,"connect",Di),Object(a.a)(Pn,"account",Ki),Object(a.a)(Pn,"list",zr),Object(a.a)(Pn,"fields",tr),Object(a.a)(Pn,"done",Rr);var En=Pn;class _n extends Ht{}Object(a.a)(_n,"connect",Di),Object(a.a)(_n,"account",Ki),Object(a.a)(_n,"fields",tr),Object(a.a)(_n,"list",zr),Object(a.a)(_n,"done",Rr);var kn=_n;class zn extends Ht{}Object(a.a)(zn,"connect",Di),Object(a.a)(zn,"account",Ki),Object(a.a)(zn,"fields",tr),Object(a.a)(zn,"done",Rr);var Fn=zn;class Rn extends Ht{}Object(a.a)(Rn,"fields",Nr),Object(a.a)(Rn,"done",Rr);var Hn=Rn;class Ln extends Ht{}Object(a.a)(Ln,"fields",Ur),Object(a.a)(Ln,"done",Rr);var Mn=Ln;class In extends Ht{}Object(a.a)(In,"connect",Di),Object(a.a)(In,"account",Ki),Object(a.a)(In,"fields",tr),Object(a.a)(In,"list",zr),Object(a.a)(In,"done",Rr);var Wn=In;class Nn extends Ht{}Object(a.a)(Nn,"connect",Di),Object(a.a)(Nn,"account",Ki),Object(a.a)(Nn,"list",zr),Object(a.a)(Nn,"fields",tr),Object(a.a)(Nn,"done",Rr);var An=Nn;class Vn extends Ht{}Object(a.a)(Vn,"connect",Di),Object(a.a)(Vn,"account",Ki),Object(a.a)(Vn,"fields",tr),Object(a.a)(Vn,"list",zr),Object(a.a)(Vn,"done",Rr);var Dn=Vn;class $n extends Ht{}Object(a.a)($n,"connect",Di),Object(a.a)($n,"account",Ki),Object(a.a)($n,"fields",tr),Object(a.a)($n,"list",zr),Object(a.a)($n,"done",Rr);var Gn=$n;class Un extends Ht{}Object(a.a)(Un,"connect",Di),Object(a.a)(Un,"account",Ki),Object(a.a)(Un,"fields",tr),Object(a.a)(Un,"list",zr),Object(a.a)(Un,"done",Rr);var Kn=Un;class qn extends Ht{}Object(a.a)(qn,"connect",Di),Object(a.a)(qn,"account",Ki),Object(a.a)(qn,"fields",tr),Object(a.a)(qn,"list",zr),Object(a.a)(qn,"done",Rr);var Yn=qn;class Xn extends Ht{}Object(a.a)(Xn,"connect",on),Object(a.a)(Xn,"done",Rr),Object(a.a)(Xn,"disconnect",nn);var Jn=Xn;function Zn(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 Qn(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Zn(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const ea=y.a.get("pro");var ta=class extends Ee{constructor(...e){super(...e),Object(a.a)(this,"appsData",[]),Object(a.a)(this,"appsComponent",r),Object(a.a)(this,"proExceptions",!ea),Object(a.a)(this,"handleConnectApp",async e=>{const{id:t,stages:o}=e,{formId:i}=this.props;let{status:r,data:n}=await Li({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 Mi({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 Ri({formId:e});if(200!==t)if(404===t){const{status:t}=await Hi({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 Qn(Qn({},super.getContextValue()),{},{formId:e,formFields:t})}},oa=o(310);function ia(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 ra(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ia(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var na=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",!A.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)=>Li(...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)=>Mi(...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();A.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 Ri({formId:e});if(200!==o)if(404===o){const{status:t,data:o}=await Hi({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 ra(ra({},super.getContextValue()),{},{formId:e,formFields:t})}renderFormInfo(){return c.a.createElement("div",{className:"brz-ed-popup-integration-email__info"},c.a.createElement(Sr,{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(oa.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 aa(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 la(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):aa(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var ca=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]=la(la({},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 Ae({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 sa=[{id:"email",title:Object(ae.a)("Email"),icon:"nc-email",component:na},{id:"service",title:Object(ae.a)("APPS"),icon:"nc-extensions-2",component:ta},{id:"recaptcha",title:Object(ae.a)("ReCAPTCHA"),icon:"nc-captcha",component:ca}];class da 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:sa,onClose:i})}}Object(a.a)(da,"defaultProps",{formId:"",formFields:[],opened:!1,onClose:v.default.noop});var pa=da,ua=o(84);class ba extends l.Component{render(){const{opened:e,onClose:t}=this.props,o="MacOS"===Object(ua.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)(ba,"defaultProps",{opened:!1,onClose:v.noop});function ma(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?ma(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ma(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const ga=(e,t)=>{const o=e.family.toUpperCase(),i=t.family.toUpperCase();return o<i?-1:o>i?1:0};function va(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 ya(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?va(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):va(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class fa 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(No.i)(this.props.fonts,Object(No.g)(i).id);e?this.props.addFonts([{type:e.group,fonts:[ya(ya({},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(No.h)();i(t,ya(ya({},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(No.g)(e);return!this.usedFonts.some(e=>{const{id:o,deleted:i}=Object(No.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)(fa,"contextType",me);const Sa={addFonts:Qo.n};var Oa=Object(io.b)(e=>({fonts:Object(co.o)(e)}),Sa)(fa);class xa 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)(xa,"contextType",me);var Ca=xa;class wa extends Ht{}Object(a.a)(wa,"connect",Oa),Object(a.a)(wa,"done",Ca);var Ba=wa;function ja(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 Ta(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ja(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}class Pa 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,Ta(Ta({},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)(Pa,"contextType",me);var Ea=Pa;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(li.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(No.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:No.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",Ea),Object(a.a)(Wa,"variation",Ia),Object(a.a)(Wa,"done",Ca);var Na=Wa;const Aa=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",!Aa),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=>ha(ha({},t),{},{fontGroupType:e}))}).reduce((e,t)=>e.concat(t),[]).sort(ga))(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}=No.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(135),Ka=o(82),qa=o(142);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(Ao.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(Ao.j)(e)&&(o="type|"+e.type),Object(Ao.l)(e)&&(o=`type|${e.type};appliedFor|${e.appliedFor};entityType|${e.entityType}`),Object(Ao.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(Ao.k)(t)||Object(Ao.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(Ao.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(Ao.k)(a)||Object(Ao.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();A.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){A.g&&s(e)}}),c.a.createElement("div",{className:"brz-ed-popup-conditions__add-condition",onClick:function(){if(A.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(pi.d)(g)&&qa.a(g.collectionType.id)&&(t.entityType=g.collectionType.id),Object(pi.h)(g)&&(t.entityType=Ka.d),Object(pi.g)(g)&&(t.entityType=Ka.c),Object(pi.b)(e)&&Object(pi.a)(e)&&Object(pi.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(){A.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(352);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 Nl extends c.a.Component{constructor(e){super(e),Object(a.a)(this,"handleChange",()=>{if(A.g){const{values:e,triggerOnce:t}=this.state,o={id:"triggerOnce",active:!0,value:t};this.setState({loading:!0},()=>{const t={syncSuccess:()=>this.setState({loading:!1}),syncFail:()=>this.setState({loading:!1})};this.props.dispatch(Object(ll.E)([...e,o],t))})}}),Object(a.a)(this,"handleTriggerOnceChange",e=>{A.g&&this.setState({triggerOnce:e})}),Object(a.a)(this,"handleWrapperTriggerChange",(e,t)=>{A.g&&this.setState({values:Object(tt.setIn)(this.state.values,[e],Wl(Wl({},this.state.values[e]),t))})}),Object(a.a)(this,"handleWrapperTriggerRemove",e=>{A.g&&this.setState({values:Object(tt.removeAt)(this.state.values,e)})}),Object(a.a)(this,"handleValueChange",(e,t)=>{A.g&&this.setState({values:Object(tt.setIn)(this.state.values,[e,"value"],t)})}),Object(a.a)(this,"handleAdd",()=>{if(A.g){const{values:e}=this.state,t=this.getAvailableItems();t[0]&&this.setState({values:[...e,{id:t[0].id,active:!0,value:t[0].defaultValue}]})}});const t=e.values.find(({id:e})=>"triggerOnce"===e)||{},o=Object(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 Al={rules:al,triggers:Object(io.b)(e=>({values:Object(co.Q)(e)}),e=>({dispatch:e}))(Nl)};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=Al[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"},!A.g&&this.renderProException(),c.a.createElement("div",{className:g()("brz-ed-popup-conditions",{"brz-ed-popup-conditions__free":!A.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(vi.b)("connected"),Object(y.b)(y.a.getAll())&&hi().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(vi.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(vi.b)("connected"),Object(y.b)(y.a.getAll())&&hi().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(756),Sc=o(759),Oc=o(384),xc=o(1010),Cc=o(1011),wc=o(1015);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 Nc(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 Ac(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Nc(Object(o),!0).forEach((function(t){Object(a.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Nc(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:At,blocks:Fi,form:pa,keyHelper:ba,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(pi.b)(e)&&Object(pi.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(pi.b)(e)&&Object(pi.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(pi.b)(e)&&Object(pi.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=>Ac(Ac({},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(136),l=o(13),c=o(48),s=o(17),d=o(72),p=o(0),u=o(21),b=o(2),m=o(174),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(302),d=o(1009),p=o(105),u=o(85),b=o(1013),m=o(211),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 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 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=>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(137);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(132),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(311),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(312);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")},N={top:Object(i.a)("Top"),center:Object(i.a)("Center"),bottom:Object(i.a)("Bottom")},A=({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(N),[]);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 A;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(135),p=o(18),u=o(142),b=o(177),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(178),s=o(215),d=o(148),p=o(216),u=o(217),b=o(187),m=o(30);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(235);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(46),c=o(6),s=(o(28),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(46),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(299),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(64);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){var i;t.add(Object(d.b)({type:null!==(i=e.fontFamilyType)&&void 0!==i?i:"google",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(294);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(1004),a=o(1001),l=o(384),c=o(762),s=o(1002),d=o(1003),p=o(1005);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(64);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";function i(e){const t="appliedFor"in e,o="entityType"in e,i="entityValues"in e&&e.entityValues.length>0;return t&&o&&i}function r(e){return"appliedFor"in e&&null!==e.appliedFor&&"entityType"in e&&!("entityValues"in e)}function n(e){return!("appliedFor"in e)&&!("entityType"in e)&&!("entityValues"in e)}o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){return n}))},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(1),r=o.n(i),n=o(10),a=o(136),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(209);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(324),h=o(302),g=o(1009),v=o(1013),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(61),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";var i;o.d(t,"a",(function(){return r})),i||(i={});const r=e=>!!e.length},,,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(64);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(45),a=o(52),l=o(108),c=o(33),s=o(30);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(133);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(52),a=o(14),l=o(20),c=o(112),s=o(239),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(313),n=o(314),a=o(315),l=o(316),c=o(317),s=o(318),d=o(319),p=o(320),u=o(52),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(586),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(135),c=o(128),s=o(18),d=o(82),p=o(121),u=o(293);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)&&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(45),l=o(52),c=o(108),s=o(33),d=o(30);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(45),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(53),x=o(55),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.g)(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(134),R=o(69),H=o(21),L=o(59),M=o(61),I=o(303),W=o(42);const N=({value:e},t)=>!!e&&e._id===t;class A 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=>N(e,o)):Object(L.a)(t,e=>N(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)(A,"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)}))(A),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(184),J=o(185),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",Object(M.a)(4)),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=Object(M.a)(4),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(414),o(416),o(202);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(325),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 Ne(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 Ae(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ne(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(Ae(Ae({},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(54),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 Nt 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)(Nt,"defaultProps",{className:"",location:"",attr:{},toolbar:null,columns:[],separator:!1});var At=Nt,Vt=o(236),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(133);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(235);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(208);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),No=o.n(Wo),Ao=o(100),Vo=o(299);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(Ao.c,{defaultValue:n,onChange:l},this.renderChoices()))}}Object(i.a)(Do,"propTypes",{label:No.a.string,display:No.a.string,icon:No.a.string,title:No.a.string,className:No.a.string,helper:No.a.bool,helperContent:No.a.string,attr:No.a.object,choices:No.a.array.isRequired,value:No.a.object.isRequired,onChange:No.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:No.a.string,min:No.a.number,max:No.a.number,step:No.a.number,value:No.a.number,onChange:No.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:No.a.string,className:No.a.string,tabsClassName:No.a.string,tabsPosition:No.a.string,value:No.a.string,hideHandlesWhenOne:No.a.bool,onChange:No.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:No.a.string,attr:No.a.object,closeTooltip:No.a.bool,value:No.a.any,choices:No.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(578),ji=o(19),Ti=o(237),Pi=o(304);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 Ni(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 Ai=({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}))))}};Ai.defaultValue={value:Fi.d},Ai.fromElementModel=Object(so.d)(Object(Ri.a)("value"),Dt.d,Object(ji.mPipe)(Fi.e),Object(Lt.g)(Fi.d),e=>({value:e})),Ai.toElementModel=e=>e,Ai.filter=Mi,Ai.reduce=(e,t,o)=>o.options.reduce(e,t),Ai.map=(e,t)=>Ni(Ni({},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(132);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,Nr={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},Ar=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:Ar(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:Nr.hex,opacity:null!==(o=Object(so.b)(()=>e("bgColorOpacity"),Zi.b,Cr)())&&void 0!==o?o:Nr.opacity,tempOpacity:null!==(i=Object(so.b)(()=>e("tempBgColorOpacity"),Zi.b,Cr)())&&void 0!==i?i:Nr.tempOpacity,palette:null!==(r=Object(so.b)(()=>e("bgColorPalette"),Dt.d,Xi)())&&void 0!==r?r:Nr.palette,tempPalette:null!==(n=Object(so.b)(()=>e("tempPalette"),Dt.d,Xi)())&&void 0!==n?n:Nr.tempPalette,gradientHex:null!==(a=Object(so.b)(()=>e("gradientColorHex"),Dt.d,Qi.b)())&&void 0!==a?a:Nr.gradientHex,gradientOpacity:null!==(l=Object(so.b)(()=>e("gradientColorOpacity"),Zi.b,Cr)())&&void 0!==l?l:Nr.gradientOpacity,tempGradientOpacity:null!==(c=Object(so.b)(()=>e("tempGradientColorOpacity"),Zi.b,Cr)())&&void 0!==c?c:Nr.tempGradientOpacity,gradientPalette:null!==(s=Object(so.b)(()=>e("gradientColorPalette"),Dt.d,Xi)())&&void 0!==s?s:Nr.gradientPalette,tempGradientPalette:null!==(d=Object(so.b)(()=>e("tempGradientColorPalette"),Dt.d,Xi)())&&void 0!==d?d:Nr.tempGradientPalette,gradientType:null!==(p=Ir(e("gradientType")))&&void 0!==p?p:Nr.gradientType,start:null!==(u=W.h(e("gradientStartPointer")))&&void 0!==u?u:Nr.start,end:null!==(b=W.h(e("gradientFinishPointer")))&&void 0!==b?b:Nr.end,active:Wr(v),linearDegree:null!==(m=Zi.b(e("gradientLinearDegree")))&&void 0!==m?m:Nr.linearDegree,radialDegree:null!==(h=Zi.b(e("gradientRadialDegree")))&&void 0!==h?h:Nr.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=Nr;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)})),Nn=e=>{return"on"===e?"outset":""===e?"none":(t=e,mn.includes(t)?t:void 0);var t},An=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,Nn)())&&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,Nn)())&&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:An(e.type),tempValue:An(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(300);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:No.a.string,styles:No.a.arrayOf(No.a.shape({id:No.a.string,title:No.a.string})).isRequired,label:No.a.string,value:No.a.string.isRequired,onChange:No.a.func.isRequired,openSettings:No.a.func},Ra.defaultProps={className:""};var Ha=o(176);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 Na=No.a.shape({id:No.a.string,family:No.a.string,title:No.a.string,size:No.a.string});Wa.propTypes={className:No.a.string,addFont:No.a.func,addFontLabel:No.a.string,fonts:No.a.shape({config:No.a.arrayOf(Na),blocks:No.a.arrayOf(Na),google:No.a.arrayOf(Na),upload:No.a.arrayOf(Na)}).isRequired,value:No.a.string.isRequired,onChange:No.a.func.isRequired},Wa.defaultProps={className:"",addFontLabel:Object(C.a)("Add New Font")};class Aa extends n.PureComponent{constructor(...e){super(...e),Object(i.a)(this,"onFontFamily",e=>this.props.onChange(e,{isChanged:"fontFamily"})),Object(i.a)(this,"onFontStyle",e=>this.props.onChange(e,{isChanged:"fontStyle"})),Object(i.a)(this,"onFontSize",e=>this.props.onChange(e,{isChanged:"fontSize"})),Object(i.a)(this,"onFontSizeSuffix",e=>this.props.onChange(e,{isChanged:"fontSizeSuffix"})),Object(i.a)(this,"onFontWeight",e=>this.props.onChange(e,{isChanged:"fontWeight"})),Object(i.a)(this,"onLineHeight",e=>this.props.onChange(e,{isChanged:"lineHeight"})),Object(i.a)(this,"onLetterSpacing",e=>this.props.onChange(e,{isChanged:"letterSpacing"}))}render(){const e=this.props,t=c()("brz-ed-control__typography",e.className);return a.a.createElement("div",{className:t},e.fontFamily&&a.a.createElement(Wa,{onChange:this.onFontFamily,value:e.font,fonts:e.fonts,addFont:e.fontAdd,addFontLabel:e.fontAddLabel}),a.a.createElement("div",{className:"brz-ed-control__typography-styles"},a.a.createElement("div",{className:"brz-ed__col brz-ed__col-1-1"},a.a.createElement(Ha.a,null,e.styleLabel),a.a.createElement(Ra,{styles:e.styles,openSettings:e.styleOpenSettings,onChange:this.onFontStyle,value:e.style})),a.a.createElement("div",{className:"brz-ed__col brz-ed__col-1-2"},U.d?a.a.createElement(Ha.a,null,e.sizeLabel):a.a.createElement("div",{className:"brz-control__typography-suffix"},a.a.createElement(Ha.a,null,e.sizeLabel),a.a.createElement(Ye.a,{className:"brz-control__select--dark",defaultValue:e.sizeSuffix,itemHeight:30,onChange:this.onFontSizeSuffix},e.sizeSuffixes.map(({value:t,title:o})=>a.a.createElement(Je.a,{key:t,value:t,title:o,active:t===e.sizeSuffix},o)))),a.a.createElement(Zo,{min:e.sizeMin,max:e.sizeMax,step:e.sizeStep,value:e.size,onChange:this.onFontSize})),a.a.createElement("div",{className:"brz-ed__col brz-ed__col-1-2"},a.a.createElement(Ha.a,null,e.weightLabel),a.a.createElement(Ye.a,{className:"brz-control__select--dark",defaultValue:e.weight,itemHeight:30,onChange:this.onFontWeight},e.weights.map(({value:t,title:o})=>a.a.createElement(Je.a,{key:t,value:t,title:o,active:t===e.weight},o)))),a.a.createElement("div",{className:"brz-ed__col brz-ed__col-1-2"},a.a.createElement(Ha.a,null,e.lineHeightLabel),a.a.createElement(Zo,{min:e.lineHeightMin,max:e.lineHeightMax,step:e.lineHeightStep,value:e.lineHeight,onChange:this.onLineHeight})),a.a.createElement("div",{className:"brz-ed__col brz-ed__col-1-2"},a.a.createElement(Ha.a,null,e.letterSpacingLabel),a.a.createElement(Zo,{min:e.letterSpacingMin,max:e.letterSpacingMax,step:e.letterSpacingStep,value:e.letterSpacing,onChange:this.onLetterSpacing}))))}}let Va;Aa.propTypes={className:No.a.string,onChange:No.a.func.isRequired,fontFamily:No.a.bool,fonts:Wa.propTypes.fonts,font:No.a.string.isRequired,fontAdd:Wa.propTypes.addFont,fontAddLabel:Wa.propTypes.addFontLabel,styles:Ra.propTypes.styles,style:No.a.string.isRequired,styleLabel:Ra.propTypes.label,styleOpenSettings:Ra.propTypes.openSettings,size:No.a.number.isRequired,sizeSuffix:No.a.string.isRequired,sizeMin:No.a.number,sizeMax:No.a.number,sizeStep:No.a.number,sizeLabel:No.a.string,weights:No.a.arrayOf(No.a.shape({value:No.a.number,title:No.a.string})).isRequired,weight:No.a.number.isRequired,weightLabel:No.a.string,lineHeight:No.a.number.isRequired,lineHeightMin:No.a.number,lineHeightMax:No.a.number,lineHeightStep:No.a.number,lineHeightLabel:No.a.string,letterSpacing:No.a.number.isRequired,letterSpacingMin:No.a.number,letterSpacingMax:No.a.number,letterSpacingStep:No.a.number,letterSpacingLabel:No.a.string},Aa.defaultProps={className:"",styleLabel:Object(C.a)("Typography"),sizeLabel:Object(C.a)("Size"),weightLabel:Object(C.a)("Weight"),lineHeightLabel:Object(C.a)("Line Hgt."),letterSpacingLabel:Object(C.a)("Letter Sp."),fontFamily:!0,sizeMin:0,sizeMax:100,sizeStep:1,lineHeightMin:1,lineHeightMax:10,lineHeightStep:.1,letterSpacingMin:-20,letterSpacingMax:20,letterSpacingStep:.5},function(e){e.google="google",e.upload="upload"}(Va||(Va={}));Va.google,Va.upload;const Da=Object.values(Va),$a=e=>Da.includes(e),Ga=Object(so.c)($a);var Ua=o(122),Ka=o(44),qa=o(3);function Ya(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 Xa(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ya(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Ja=e=>({fontFamilyType:e.fontFamilyType,fontWeight:e.fontWeight,fontFamily:e.fontFamily}),Za=e=>$a(e.fontFamilyType),Qa=e=>({fontSize:e.fontSize,fontWeight:e.fontWeight,fontSizeSuffix:e.fontSizeSuffix,letterSpacing:e.letterSpacing,lineHeight:e.lineHeight}),el=e=>jt.d(e.fontSizeSuffix);function tl(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?tl(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const il={fontFamily:"",fontFamilyType:Va.google,fontStyle:"",fontSize:Ka.d(17),fontSizeSuffix:jt.a,fontWeight:Ua.b,letterSpacing:0,lineHeight:Ka.d(1)},rl=e=>{var t,o,i,r,n,a,l,c;return{fontFamily:null!==(t=Object(so.b)(()=>e("fontFamily"),Dt.d)())&&void 0!==t?t:il.fontFamily,fontFamilyType:null!==(o=Object(so.b)(()=>e("fontFamilyType"),Dt.d,Ga)())&&void 0!==o?o:il.fontFamilyType,fontStyle:null!==(i=Object(so.b)(()=>e("fontStyle"),Dt.d)())&&void 0!==i?i:il.fontStyle,fontSize:null!==(r=Object(so.b)(()=>e("fontSize"),Zi.b,Ka.b)())&&void 0!==r?r:il.fontSize,fontSizeSuffix:null!==(n=Object(so.b)(()=>e("fontSizeSuffix"),Dt.d,jt.b)())&&void 0!==n?n:il.fontSizeSuffix,fontWeight:null!==(a=Object(so.b)(()=>e("fontWeight"),Zi.b,Ua.c)())&&void 0!==a?a:il.fontWeight,letterSpacing:null!==(l=Object(so.b)(()=>e("letterSpacing"),Zi.b)())&&void 0!==l?l:il.letterSpacing,lineHeight:null!==(c=Object(so.b)(()=>e("lineHeight"),Zi.b,Ka.b)())&&void 0!==c?c:il.lineHeight}},nl=(e,t,o,i)=>{const r=Object(bt.e)(i.fontStyle)||i,n=ol(ol({},il),rl(t=>"fontStyle"===t?i.fontStyle:Object(qa.defaultValueValue)({key:t,v:r,device:e})));if(((e,t)=>Object.values(e).some(e=>null==e?void 0:e.some(e=>e.id===t)))(t,n.fontFamily))return n;const{group:a,font:l}=o,c=(0,bt.b[a])(l).id;switch(a){case"config":case"blocks":case"google":return ol(ol({},n),{},{fontFamilyType:Va.google,fontFamily:c});case"upload":return ol(ol({},n),{},{fontFamilyType:Va.upload,fontFamily:c})}};function al(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?al(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):al(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const cl=()=>{z.a.open({prompt:"fonts",mode:"single"})},sl=({value:e,onChange:t,config:o})=>{var i,r,l,c,s,d,b,m,h,g,v,y;const S=Object(f.c)(),O=Object(f.d)(u.S),x=Object(f.d)(u.k),w=Object(f.d)(u.p),B=Object(n.useMemo)(()=>Object.entries(O).reduce((e,[t,o])=>(e[t]=null==o?void 0:o.data.map(bt.b[t]),e),{}),[O]),j=nl(x,B,w,e),T=Object(n.useCallback)((e,i)=>{const r=!1!==(null==o?void 0:o.fontFamily);switch(i.isChanged){case"fontFamily":{const{id:o,type:i,weights:n}=e,a=Ja(ll(ll({},j),{},{fontFamily:o,fontWeight:n.includes(j.fontWeight)?j.fontWeight:Ua.b,fontFamilyType:i}));return t(r?ll(ll({},j),a):a)}case"fontStyle":return t((e=>({fontStyle:e}))(e));case"fontSize":case"fontWeight":case"letterSpacing":case"lineHeight":case"fontSizeSuffix":{const o=r?(e=>Xa(Xa({},Ja(e)),Qa(e)))(ll(ll({},j),{},{[i.isChanged]:e})):Qa(ll(ll({},j),{},{[i.isChanged]:e}));return t(o)}}},[t,j]),P=Object(n.useCallback)(()=>{S(Object(p.S)("leftSidebar",{isOpen:!0,drawerContentType:"styling"}))},[]),E=[{id:"",title:Object(C.a)("Custom")},...Object(bt.f)()],_=Object(bt.m)({type:j.fontFamilyType,family:j.fontFamily});return a.a.createElement(Aa,{onChange:T,fontFamily:null==o?void 0:o.fontFamily,fonts:B,font:j.fontFamily,fontAdd:"admin"===Object(ut.b)()?cl:void 0,fontAddLabel:Object(C.a)("Add New Font"),styles:E,style:j.fontStyle,styleOpenSettings:P,size:j.fontSize,sizeSuffix:j.fontSizeSuffix,sizeSuffixes:jt.c,weights:_,weight:j.fontWeight,lineHeight:j.lineHeight,letterSpacing:j.letterSpacing,letterSpacingMin:null!==(i=null==o||null===(r=o.letterSpacing)||void 0===r?void 0:r.min)&&void 0!==i?i:-20,letterSpacingMax:null!==(l=null==o||null===(c=o.letterSpacing)||void 0===c?void 0:c.max)&&void 0!==l?l:20,letterSpacingStep:.1,lineHeightMin:null!==(s=null==o||null===(d=o.lineHeight)||void 0===d?void 0:d.min)&&void 0!==s?s:1,lineHeightMax:null!==(b=null==o||null===(m=o.lineHeight)||void 0===m?void 0:m.max)&&void 0!==b?b:10,lineHeightStep:.1,sizeMin:null!==(h=null==o||null===(g=o.fontSize)||void 0===g?void 0:g.min)&&void 0!==h?h:0,sizeMax:null!==(v=null==o||null===(y=o.fontSize)||void 0===y?void 0:y.max)&&void 0!==v?v:100,sizeStep:1})};sl.fromElementModel=rl,sl.toElementModel=e=>{return Za(t=e)&&el(t)?{fontStyle:"",fontFamily:e.fontFamily,fontFamilyType:e.fontFamilyType,fontSize:e.fontSize,fontSizeSuffix:e.fontSizeSuffix,fontWeight:e.fontWeight,letterSpacing:e.letterSpacing,lineHeight:e.lineHeight}:Za(e)?{fontStyle:"",fontFamily:e.fontFamily,fontFamilyType:e.fontFamilyType,fontWeight:e.fontWeight}:el(e)?{fontStyle:"",fontSize:e.fontSize,fontSizeSuffix:e.fontSizeSuffix,fontWeight:e.fontWeight,letterSpacing:e.letterSpacing,lineHeight:e.lineHeight}:(e=>"string"==typeof e.fontStyle)(e)?{fontStyle:e.fontStyle}:{};var t},sl.defaultValue=il;const dl={src:"",fileName:"",extension:"",width:0,height:0,x:50,y:50,sizeType:"custom"},pl=Object(ji.match)([e=>"imageSrc"in e,e=>({imageSrc:e.imageSrc,imageFileName:e.imageFileName,imageExtension:e.imageExtension,imageWidth:e.imageWidth,imageHeight:e.imageHeight})],[e=>"positionX"in e,e=>({positionX:e.positionX,positionY:e.positionY})],[e=>"sizeType"in e,e=>({sizeType:e.sizeType})]),ul=e=>({value:e.name,label:e.label}),bl=({onChange:e,value:t,config:o,label:i})=>{var r,l,s;const d=c()("brz-ed-option__focal-point","brz-ed-option__inline"),p=null!==(r=null==o?void 0:o.disableSizes)&&void 0!==r&&r,u=Object(n.useMemo)(()=>{var e;return[{value:"custom",label:Object(C.a)("Custom")},...(null!==(e=D.a.getAll().imageSizes)&&void 0!==e?e:[]).map(ul)]},[]),b=Object(n.useCallback)((t,o)=>{switch(o.isChanged){case"image":e({imageSrc:t.src,imageFileName:t.fileName,imageExtension:t.extension,imageWidth:t.width,imageHeight:t.height});break;case"pointer":e({positionX:t.x,positionY:t.y})}},[e]),m=Object(n.useCallback)(t=>e({sizeType:t}),[e]);return a.a.createElement(a.a.Fragment,null,i,a.a.createElement(Vt.a,{className:d,onlyPointer:!(null===(l=null==o?void 0:o.edit)||void 0===l||l),showPointer:"custom"===t.sizeType&&"svg"!==t.extension&&(null===(s=null==o?void 0:o.pointer)||void 0===s||s),extension:t.extension,x:t.x,y:t.y,width:t.width,height:t.height,src:t.src,fileName:t.fileName,onChange:b,size:t.sizeType,sizes:p||"svg"===t.extension?void 0:u,onSizeChange:m}))};bl.fromElementModel=e=>{var t;return{src:Tt.g(e("imageSrc")),fileName:Tt.g(e("imageFileName")),extension:Tt.g(e("imageExtension")),width:W.h(e("imageWidth")),height:W.h(e("imageHeight")),x:W.h(e("positionX")),y:W.h(e("positionY")),sizeType:null!==(t=Tt.g(e("sizeType")))&&void 0!==t?t:dl.sizeType}},bl.toElementModel=pl,bl.defaultValue=dl;const ml=e=>{if("object"==typeof e){const t=Dt.a.read(Object(r.a)("population",e));return void 0===t?void 0:{population:t}}if("string"==typeof e)return{population:e}},hl={population:""},gl=(e,t)=>Dt.a.eq(e.population,t.population);function vl(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 yl(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):vl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const fl=({config:e,value:t=hl,onChange:o,options:i=[],className:r,label:n})=>{let l;const s=[...null!=e&&e.iconOnly?[{title:Object(C.a)("Custom Text"),value:hl.population}]:[],...(null==e?void 0:e.choices)||[]],d=e=>{o(ml(e)||hl)},p=c()(r,"brz-ed-option-population",{"brz-control__select-population--only-icon":!(null==e||!e.iconOnly)});if(gl(t,hl))l=a.a.createElement(Ht.a,{data:i,wrapOptions:!1,optionClassName:"brz-ed-option-population"});else{const o=Object(L.a)(s,e=>!Object(Gt.b)(e)&&e.value===t.population).obj;null!=e&&e.iconOnly?o||s.push({title:Object(C.a)("N/A"),value:t.population}):l=a.a.createElement($t,{value:o?o.title:Object(C.a)("N/A"),onChange:d})}return a.a.createElement(a.a.Fragment,null,n,a.a.createElement("div",{className:"brz-ed-control__population"},l,s.length>0?a.a.createElement(Kt,{className:p,choices:s,value:t.population,onChange:d}):null))};fl.fromElementModel=e=>({population:Dt.a.read(e("population"))}),fl.toElementModel=e=>({population:e.population}),fl.defaultValue={population:""},fl.filter=(e,t)=>{var o;return yl(yl({},t),{},{options:null===(o=t.options)||void 0===o?void 0:o.map(e).filter(ji.isT)})},fl.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},fl.map=(e,t)=>{var o;return yl(yl({},t),{},{options:null===(o=t.options)||void 0===o?void 0:o.map(e)})};const Sl=({className:e,onChange:t,value:{value:o},config:i={},placeholder:r,label:l})=>{var c;const[s,d]=Object(n.useState)(o),p=Object(n.useRef)(s);Object(n.useEffect)(()=>{p.current!==o&&(p.current=o,d(o))},[o]),Object(fr.a)(()=>{p.current!==s&&(p.current=s,t({value:s}))},1e3,[t,s]);const u=Object(n.useCallback)(()=>{p.current!==s&&(p.current=s,t({value:s}))},[t,s]);return a.a.createElement(a.a.Fragment,null,l,a.a.createElement(yr,{className:e,onChange:d,onBlur:u,value:s,size:null!==(c=i.size)&&void 0!==c?c:"auto",placeholder:r}))};Sl.defaultValue={value:""},Sl.fromElementModel=e=>({value:Dt.a.read(e("value"))}),Sl.toElementModel=e=>({value:e.value});var Ol=o(149),xl=o(155),Cl=o(91);function wl({children:e,onChange:t,className:o}){const i="brz-ed-control__radio-group2",r=c()(i,o);return a.a.createElement("div",{className:r},e.map((e,o)=>{const r=c()(i+"__item",{[i+"__item--active"]:e.props.active});return a.a.createElement("div",{className:r,key:o,onClick:()=>t(e.props.value),title:e.props.title},e)}))}function Bl({icon:e}){return a.a.createElement(s.a,{icon:e})}var jl=o(151),Tl=o(118);function Pl({value:e,unit:t,onUnit:o,onValue:i,label:r,icon:l,units:s,min:d,max:p,step:u,className:b}){const m=Object(n.useMemo)(()=>({number:e,unit:t}),[e,t]),h=Object(n.useCallback)(r=>{r.number!==e&&i(r.number),r.unit!==t&&o(r.unit)},[e,t,i,o]);return a.a.createElement(Cl.a,{className:c()("brz-ed-option",b),display:"inline"},a.a.createElement(Tl.a,{label:r,icon:l}),a.a.createElement(jl.a,{value:m,onChange:h,step:u,min:d,max:p,units:s}))}const El=["all","top","right","bottom","left"],_l=["grouped","ungrouped"];function kl({className:e,label:t,type:o,value:i,onType:r,onValue:l,onUnit:s,units:d,getIcon:p,min:u,max:b,step:m}){const h=Object(n.useMemo)(()=>El.reduce((e,t)=>(e[t]={onValue:l.bind(null,t),onUnit:s.bind(null,t)},e),{}),[l,s]);return a.a.createElement(Pa,{className:c()("brz-ed-control__spacing",e)},a.a.createElement(Cl.a,{display:"inline",className:"brz-ed-option"},t,a.a.createElement(wl,{onChange:r},_l.map(e=>a.a.createElement(Bl,{key:e,icon:p(e),value:e,active:e===o})))),"grouped"===o&&a.a.createElement(Pl,{value:i.all.number,unit:i.all.unit,onValue:h.all.onValue,onUnit:h.all.onUnit,units:d,step:m,min:u,max:b}),"ungrouped"===o&&Object.keys(i).filter(e=>"all"!==e).map(e=>a.a.createElement(Pl,{key:e,icon:p(e),value:i[e].number,unit:i[e].unit,onValue:h[e].onValue,onUnit:h[e].onUnit,units:d,step:m,min:u,max:b})))}const zl=({value:e,onChange:t,label:o,config:i})=>{var r;const l=null!==(r=null==i?void 0:i.edges)&&void 0!==r?r:"all",c=Object(n.useCallback)(Object(so.d)(t=>Ol.i(t,e),t),[e,t]),s=Object(n.useMemo)(()=>Object(xl.e)(l,e),[e]),d=Object(n.useCallback)(Object(so.d)((t,o)=>Object(xl.g)(t)(o,e),t),[t,e]),p=Object(n.useCallback)(Object(so.d)((t,o)=>Object(xl.f)(t)(o,e),t),[t,e]),u=Object(n.useMemo)(()=>{var e;return(null!==(e=null==i?void 0:i.units)&&void 0!==e?e:["px","%"]).map(e=>({value:e,title:e}))},[i]);return a.a.createElement(kl,{label:o,type:e.type,value:s,units:u,onType:c,onValue:d,onUnit:p,getIcon:xl.c,step:1,min:-100,max:100})};zl.fromElementModel=xl.b,zl.toElementModel=xl.d,zl.defaultValue=xl.a;var Fl=o(50);const Rl=e=>"number"==typeof e?Zi.a.read(e):Dt.a.read(e),Hl={value:[]};function Ll(e,t){return y.default.difference(e,y.default.pluck(t,"value")).map(e=>{var t;return{title:Object(Tt.f)(Object(C.a)("? (%s)"),null!==(t=Fl.b(e))&&void 0!==t?t:"?"),value:e}})}function Ml(e,t,...o){const i=new Set,r=[];for(const n of[e,t,...o])for(const e of n)i.has(e.value)||(i.add(e.value),r.push(e));return r}var Il=o(302),Wl=o(1009),Nl=o(1013),Al=o(85);const Vl=(Dl=C.a,(e,t)=>{const o=e.filter(e=>t.includes(e.value));return 1===o.length?o[0].title:o.length>1?Object(Tt.f)(Dl("%s Selected"),String(o.length)):void 0});var Dl;function $l(e){return a.a.createElement("span",e)}function Gl({value:e,valueIsLoading:t,children:o,className:i,placeholder:r,search:l,searchIsEmpty:s,searchIsLoading:d,onChange:p,onSearchChange:u}){const[b,m]=Object(n.useState)(!1),h=o.map(({props:e})=>({title:e.title,value:e.value})),g=c()("brz-ed-control__multiSelect2",i);return a.a.createElement(Al.a,{onClickOutside:()=>m(!1)},a.a.createElement("div",{className:g},a.a.createElement(Il.a,null,a.a.createElement(Wl.a,null,({ref:o})=>a.a.createElement(Ul,{customRef:o,items:h,value:e,valueIsLoading:t,placeholder:r,onClick:()=>m(!b)})),a.a.createElement("div",{className:"brz-ed-control__multiSelect2__dropdown-container"},a.a.createElement(Nl.a,null,({ref:t,style:o})=>b?a.a.createElement(Kl,{customRef:t,items:h,value:e,style:o,search:l,searchIsEmpty:s,searchIsLoading:d,onItemClick:t=>p(((e,t)=>t.includes(e.value)?t.filter(t=>t!==e.value):t.concat(e.value))(t,e)),onSearchChange:u&&(e=>u(e))}):null)))))}function Ul({customRef:e,items:t,value:o,valueIsLoading:i,placeholder:r,onClick:n}){if(null!=i&&i)return a.a.createElement("div",{ref:e,className:"brz-ed-control__multiSelect2__value brz-ed-control__multiSelect2__value--loading"},a.a.createElement(s.b,{icon:"nc-circle-02",className:"brz-ed-control__multiSelect2__spinner brz-ed-animated--spin"}));const l=Vl(t,o),d=c()("brz-ed-control__multiSelect2__value",{"brz-ed-control__multiSelect2__value--placeholder":void 0===l&&void 0!==r});return a.a.createElement("div",{ref:e,className:d,onClick:n},a.a.createElement("span",{className:"brz-span"},null!=l?l:r))}function Kl({customRef:e,items:t,value:o,style:i,search:r,searchIsEmpty:l,searchIsLoading:d,onItemClick:p,onSearchChange:u}){Object(n.useEffect)(()=>()=>{null==u||u("")},[]);const b=c()("brz-ed-control__multiSelect2__dropdown",{"brz-ed-control__multiSelect2__dropdown--with-search":r,"brz-ed-control__multiSelect2__dropdown--search-loading":d}),m=c()("brz-ed-control__multiSelect2__spinner",{"brz-ed-control__multiSelect2__spinner--hidden":!d,"brz-ed-animated--spin":d});return a.a.createElement("div",{ref:e,className:b,style:i},r&&a.a.createElement("div",{className:"brz-ed-control__multiSelect2__search"},a.a.createElement("input",{className:"brz-input",placeholder:Object(C.a)("Type to Search ..."),autoFocus:!0,spellCheck:!1,onChange:u&&(e=>u(e.target.value))}),a.a.createElement(s.b,{icon:"nc-circle-02",className:m})),a.a.createElement(Ct.Scrollbars,{autoHeight:!0,autoHeightMax:150,renderThumbVertical:e=>a.a.createElement("div",Object(g.a)({className:"brz-ed-control__multiSelect__scroll-thumb"},e))},a.a.createElement("ul",{className:"brz-ul"},t.map(e=>a.a.createElement(ql,{key:String(e.value),title:e.title,value:e.value,active:o.includes(e.value),onClick:()=>p(e)})),r&&l&&a.a.createElement(Yl,null))))}function ql({title:e,active:t=!1,onClick:o}){const i=c()("brz-ed-control__multiSelect2__option",{"brz-ed-control__multiSelect2__option--active":t}),r=t?"nc-check-square-on":"nc-check-square-off";return a.a.createElement("li",{className:i,title:e,onClick:o},a.a.createElement(s.b,{icon:r,className:"brz-ed-control__multiSelect2__option-checkbox"}),a.a.createElement("span",{className:"brz-ed-control__multiSelect2__option-text"},e))}function Yl(){return a.a.createElement("li",{className:"brz-ed-control__multiSelect2__option brz-ed-control__multiSelect2__option--disabled"},Object(C.a)("No results"))}function Xl({value:e,title:t}){return a.a.createElement($l,{key:e,title:t,value:e})}const Jl=({choices:e,value:{value:t},placeholder:o,config:i,onChange:r})=>{var l;const[c,s]=Object(n.useState)(""),d=function(e,t){return""===e?t:t.filter(({title:t})=>t.toLowerCase().includes(e.toLowerCase()))}(c,e),p=Object(n.useCallback)(e=>r({value:e}),[r]);return a.a.createElement(Gl,{value:t,placeholder:o,search:null!==(l=null==i?void 0:i.search)&&void 0!==l&&l,searchIsEmpty:0===d.length,onChange:p,onSearchChange:s},d.map(Xl))};function Zl(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 Ql(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Zl(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function ec(e,t){switch(e.state){case"INACTIVE":switch(t.type){case"idle":case"loading":return Ql(Ql({},e),{},{state:"idle"===t.type?"IDLE":"LOADING"})}break;case"LOADING":switch(t.type){case"load_success":case"load_fail":return Ql(Ql({},e),{},{state:"IDLE",vChoices:"load_success"===t.type?t.choices:[]})}break;case"IDLE":switch(t.type){case"search_changed":return Ql(Ql({},e),{},{state:"HAS_INPUT",sChoices:[],search:t.search});case"value_changed":return Ql(Ql({},e),{},{vChoices:t.choices})}break;case"HAS_INPUT":switch(t.type){case"search_erased":return Ql(Ql({},e),{},{state:"IDLE",sChoices:[],search:""});case"search_changed":return Ql(Ql({},e),{},{sChoices:[],search:t.search});case"search_debounce_success":return Ql(Ql({},e),{},{state:"FETCHING"})}break;case"FETCHING":switch(t.type){case"fetch_found":return Ql(Ql({},e),{},{state:"FETCH_FOUND",sChoices:t.choices});case"fetch_not_found":return Ql(Ql({},e),{},{state:"FETCH_NOT_FOUND",sChoices:[]});case"search_erased":return Ql(Ql({},e),{},{state:"IDLE",sChoices:[],search:""});case"search_changed":return Ql(Ql({},e),{},{state:"HAS_INPUT",sChoices:[],search:t.search})}break;case"FETCH_FOUND":switch(t.type){case"value_changed":return Ql(Ql({},e),{},{state:"SELECTED",vChoices:t.choices});case"search_erased":return Ql(Ql({},e),{},{state:"IDLE",sChoices:[],search:""});case"search_changed":return Ql(Ql({},e),{},{state:"HAS_INPUT",sChoices:[],search:t.search})}break;case"FETCH_NOT_FOUND":switch(t.type){case"search_erased":return Ql(Ql({},e),{},{state:"IDLE",sChoices:[],search:""});case"search_changed":return Ql(Ql({},e),{},{state:"HAS_INPUT",sChoices:[],search:t.search})}break;case"SELECTED":switch(t.type){case"value_changed":return Ql(Ql({},e),{},{vChoices:t.choices});case"search_erased":return Ql(Ql({},e),{},{state:"IDLE",sChoices:[],search:""});case"search_changed":return Ql(Ql({},e),{},{state:"HAS_INPUT",sChoices:[],search:t.search})}}return e}const tc={state:"INACTIVE",vChoices:[],sChoices:[],search:""};function oc({value:e,title:t}){return a.a.createElement($l,{key:e,title:t,value:e})}const ic=({placeholder:e,choices:t,value:{value:o},onChange:i})=>{const[r,l]=Object(n.useReducer)(ec,tc),c=function(e,t){const[o,i]=Object(n.useState)(e);return Object(n.useEffect)(()=>{const o=setTimeout(()=>{i(e)},t);return()=>{clearTimeout(o)}},[e]),o}(r.search,1e3),s=Object(n.useRef)(),d=Object(n.useRef)([]),{vChoices:p,sChoices:u}=r,b=Object(n.useCallback)(e=>{const t=d.current,o=[...p,...u],r=e.map(e=>o.find(t=>t.value===e)).filter(e=>void 0!==e),n=y.default.difference(e,y.default.pluck(u,"value"));(0===u.length||n.length>0||r.length<t.length)&&(d.current=r),l({type:"value_changed",choices:r}),i({value:e})},[i,p,u]);Object(n.useEffect)(()=>{let e;return 0===o.length?l({type:"idle"}):o.length>0&&(l({type:"loading"}),e=new AbortController,t.load(o,e.signal).then(t=>{e.signal.aborted||(d.current=t,l({type:"load_success",choices:t}))}).catch(()=>{e.signal.aborted||l({type:"load_fail"})})),()=>{var t;null===(t=e)||void 0===t||t.abort()}},[]),Object(n.useEffect)(()=>{if(""!==c){l({type:"search_debounce_success"});const e=new AbortController;s.current=e,t.search(c,e.signal).then(t=>{e.signal.aborted||(t.length>0?l({type:"fetch_found",choices:t}):l({type:"fetch_not_found"}))}).catch(()=>{e.signal.aborted||l({type:"fetch_not_found"})})}},[c]),Object(n.useEffect)(()=>{"IDLE"===r.state&&(d.current=r.vChoices)},["IDLE"===r.state]);const m="SELECTED"===r.state?Ml(Ll(o,r.vChoices),d.current,r.sChoices):Ml(Ll(o,r.vChoices),r.vChoices,r.sChoices);return a.a.createElement(Gl,{value:o,valueIsLoading:"LOADING"===r.state,placeholder:e,search:!0,searchIsLoading:"FETCHING"===r.state,searchIsEmpty:"FETCH_NOT_FOUND"===r.state,onChange:b,onSearchChange:e=>{var t;null===(t=s.current)||void 0===t||t.abort(),l(""===e?{type:"search_erased"}:{type:"search_changed",search:e})}},m.map(oc))},rc=e=>{return t=e.choices,Array.isArray(t)?a.a.createElement(a.a.Fragment,null,e.label,a.a.createElement(Jl,Object(g.a)({},e,{choices:e.choices}))):a.a.createElement(a.a.Fragment,null,e.label,a.a.createElement(ic,Object(g.a)({},e,{choices:e.choices})));var t};rc.fromElementModel=e=>{let t;try{var o;t=JSON.parse(null!==(o=Fl.b(e("value")))&&void 0!==o?o:"[]")}catch(e){t=Hl.value}if(!Array.isArray(t)||!t.length)return Hl;return{value:t.reduce((e,t)=>{const o=Rl(t);return o&&e.push(o),e},[])}},rc.toElementModel=e=>({value:JSON.stringify(e.value)}),rc.defaultValue=Hl;const nc=({config:e,value:{value:t},placeholder:o,choices:i,onChange:r})=>{var n;return a.a.createElement(Tr.a,{placeholder:o,size:null==e?void 0:e.size,value:t,editable:null!==(n=null==e?void 0:e.search)&&void 0!==n&&n,onChange:e=>{r({value:e})}},i.map(({title:e,icon:t,value:o},i)=>a.a.createElement(kr.a,{key:i,value:o},t&&a.a.createElement(s.a,{icon:t,className:"brz--space-right"}),e)))},ac=e=>{var t,o;const[i,r]=Object(n.useState)(!1),[l,c]=Object(n.useState)([]),[d,p]=Object(n.useState)(!1);if(Object(n.useEffect)(()=>{const t=new AbortController;return e.choices.load(t.signal).then(e=>{t.signal.aborted||(r(!0),c(e))}).catch(()=>{t.signal.aborted||p(!0)}),()=>{null==t||t.abort()}},[e.choices]),!i)return a.a.createElement("div",{className:"brz-ed-option-type__select-dev__spinner-container"},a.a.createElement(s.b,{icon:"nc-circle-02",className:"brz-ed-option-type__select-dev__spinner brz-ed-animated--spin"}));if(d)return a.a.createElement("p",{style:{color:"white"}},"Error");if(l.length)return a.a.createElement(nc,Object(g.a)({},e,{choices:l}));const u=[{title:null!==(t=null===(o=e.choices.emptyLoad)||void 0===o?void 0:o.title)&&void 0!==t?t:Object(C.a)("Don't have items"),value:""}];return a.a.createElement(nc,Object(g.a)({},e,{choices:u}))},lc=e=>{return t=e.choices,Array.isArray(t)?a.a.createElement(a.a.Fragment,null,e.label,a.a.createElement(nc,Object(g.a)({},e,{choices:e.choices}))):a.a.createElement(a.a.Fragment,null,e.label,a.a.createElement(ac,Object(g.a)({},e,{choices:e.choices})));var t};function cc({className:e,value:t,onChange:o}){const i=Object(n.useCallback)(()=>o(!t),[o,t]),r=c()({[e||""]:!0,"brz-ed-control__switch2":!0,"brz-ed-control__switch2--on":t});return a.a.createElement("div",{className:r,onClick:i},a.a.createElement("label",{className:"brz-label brz-ed-control__switch2-label"},a.a.createElement("span",{className:"brz-span brz-ed-control__switch2-arrows"},a.a.createElement(s.b,{className:"brz-ed-control__switch2--check",icon:"nc-check-small"}),a.a.createElement(s.b,{className:"brz-icon-svg brz-ed-control__switch2--un-check",icon:"nc-remove"}),a.a.createElement("span",{className:"brz-span brz-ed-control__switch2--handle"}))))}lc.fromElementModel=e=>({value:Rl(e("value"))}),lc.toElementModel=e=>({value:e.value}),lc.defaultValue={value:""};const sc=({onChange:e,config:t,className:o,value:{value:i},label:r})=>{var n,l;const c=null!==(n=null==t?void 0:t.on)&&void 0!==n?n:"on",s=null!==(l=null==t?void 0:t.off)&&void 0!==l?l:"off";return a.a.createElement(a.a.Fragment,null,r,a.a.createElement(cc,{className:o,value:i===c,onChange:t=>e({value:t?c:s})}))};sc.fromElementModel=e=>({value:Rl(e("value"))}),sc.toElementModel=e=>({value:e.value}),sc.defaultValue={value:""};const dc=(e,t)=>e.value===t.value&&e.unit===t.unit,pc=({className:e,onChange:t,value:o,config:i={},label:r})=>{var l,c,s,d,p,u;const b=null!==(l=i.debounceUpdate)&&void 0!==l&&l,m=Object(n.useRef)(),[h,g]=Object(n.useState)(o),[v,y]=Object(n.useState)(!1),f=Object(n.useCallback)((e,t)=>{g({value:e.number,unit:e.unit}),y(t.editing)},[g,y]);return Object(fr.c)(()=>{dc(o,h)||b&&v||(t(h),m.current=h)},Math.max(0,null!==(c=null==i?void 0:i.updateRate)&&void 0!==c?c:16),[h.value,h.unit,b,v]),Object(n.useEffect)(()=>{m.current&&dc(o,m.current)||g(o)},[o.value,o.unit]),a.a.createElement(a.a.Fragment,null,r,a.a.createElement(jl.a,{className:e,min:null!==(s=i.min)&&void 0!==s?s:0,max:null!==(d=i.max)&&void 0!==d?d:100,inputMin:null==i?void 0:i.inputMin,inputMax:null==i?void 0:i.inputMax,step:null!==(p=i.step)&&void 0!==p?p:1,value:{number:h.value,unit:h.unit},onChange:f,units:null!==(u=i.units)&&void 0!==u?u:[]}))};pc.fromElementModel=e=>({value:Zi.a.read(e("value")),unit:Dt.a.read(e("suffix"))}),pc.toElementModel=e=>({value:e.value,suffix:e.unit}),pc.defaultValue={value:0,unit:""};const uc=({className:e,choices:t,value:{value:o},onChange:i,label:r})=>{const n=c()("brz-ed-option__toggle",e);return t.length?a.a.createElement(a.a.Fragment,null,r,a.a.createElement(di,{value:o,onChange:e=>i({value:e}),className:n},t.map(({icon:e,value:t,title:o},i)=>a.a.createElement(ui,{key:i,value:t,icon:e,title:o})))):null};uc.fromElementModel=e=>({value:Rl(e("value"))}),uc.toElementModel=e=>({value:e.value}),uc.defaultValue={value:""};var bc=o(279),mc=o(112),hc=o(239),gc=o(52);const vc=e=>t=>t(e),yc=Object(gc.c)({type:Object(so.d)(Object(so.b)(vc("type"),Dt.d,hc.a),Object(Lt.g)("grouped")),value:Object(so.d)(Object(so.b)(vc("value"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),tempValue:Object(so.d)(Object(so.b)(vc("tempValue"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),unit:Object(so.d)(Object(so.b)(vc("suffix"),Dt.d,mc.a),Object(Lt.g)("px")),tempUnit:Object(so.d)(Object(so.b)(vc("tempSuffix"),Dt.d,mc.a),Object(Lt.g)("px")),top:Object(so.d)(Object(so.b)(vc("top"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),tempTop:Object(so.d)(Object(so.b)(vc("tempTop"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),topUnit:Object(so.d)(Object(so.b)(vc("topSuffix"),Dt.d,mc.a),Object(Lt.g)("px")),tempTopUnit:Object(so.d)(Object(so.b)(vc("tempTopSuffix"),Dt.d,mc.a),Object(Lt.g)("px")),right:Object(so.d)(Object(so.b)(vc("right"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),tempRight:Object(so.d)(Object(so.b)(vc("tempRight"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),rightUnit:Object(so.d)(Object(so.b)(vc("rightSuffix"),Dt.d,mc.a),Object(Lt.g)("px")),tempRightUnit:Object(so.d)(Object(so.b)(vc("tempRightSuffix"),Dt.d,mc.a),Object(Lt.g)("px")),bottom:Object(so.d)(Object(so.b)(vc("bottom"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),tempBottom:Object(so.d)(Object(so.b)(vc("tempBottom"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),bottomUnit:Object(so.d)(Object(so.b)(vc("bottomSuffix"),Dt.d,mc.a),Object(Lt.g)("px")),tempBottomUnit:Object(so.d)(Object(so.b)(vc("tempBottomSuffix"),Dt.d,mc.a),Object(Lt.g)("px")),left:Object(so.d)(Object(so.b)(vc("left"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),tempLeft:Object(so.d)(Object(so.b)(vc("tempLeft"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),leftUnit:Object(so.d)(Object(so.b)(vc("leftSuffix"),Dt.d,mc.a),Object(Lt.g)("px")),tempLeftUnit:Object(so.d)(Object(so.b)(vc("tempLeftSuffix"),Dt.d,mc.a),Object(Lt.g)("px"))}),fc={type:"grouped",value:Ka.a,tempValue:Ka.a,unit:"px",tempUnit:"px",top:Ka.a,tempTop:Ka.a,topUnit:"px",tempTopUnit:"px",right:Ka.a,tempRight:Ka.a,rightUnit:"px",tempRightUnit:"px",bottom:Ka.a,tempBottom:Ka.a,bottomUnit:"px",tempBottomUnit:"px",left:Ka.a,tempLeft:Ka.a,leftUnit:"px",tempLeftUnit:"px"},Sc=(Object(gc.d)({number:Object(so.b)(Object(r.c)("number"),Ka.b),unit:e=>e.unit}),xl.c),Oc=({value:e,onChange:t,label:o,config:i})=>{const r=Object(n.useCallback)(Object(so.d)(t=>bc.i(t,e),t),[e,t]),{value:l,unit:c,top:s,topUnit:d,right:p,rightUnit:u,bottom:b,bottomUnit:m,left:h,leftUnit:g}=e,v=Object(n.useMemo)(()=>({all:{number:l,unit:c},top:{number:s,unit:d},right:{number:p,unit:u},bottom:{number:b,unit:m},left:{number:h,unit:g}}),[e,s,p,b,h,c,d,u,m,g]),y=Object(n.useCallback)(Object(so.b)((t,o)=>Object(so.b)(Ka.b,o=>(e=>{switch(e){case"all":return bc.k;case"top":return bc.g;case"right":return bc.e;case"bottom":return bc.a;case"left":return bc.c}})(t)(o,e))(o),t),[t,e]),f=Object(n.useMemo)(()=>{var e;return(null!==(e=null==i?void 0:i.units)&&void 0!==e?e:["px","%"]).map(e=>({value:e,title:e}))},[i]),S=Object(n.useCallback)(Object(so.d)((t,o)=>(e=>{switch(e){case"all":return bc.j;case"top":return bc.h;case"right":return bc.f;case"bottom":return bc.b;case"left":return bc.d}})(t)(o,e),t),[t,e]);return a.a.createElement(kl,{label:o,type:e.type,value:v,units:f,onType:r,onValue:y,onUnit:S,getIcon:Sc,step:1,min:0,max:100})};Oc.fromElementModel=yc,Oc.toElementModel=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}),Oc.defaultValue=fc;const xc=({className:e,title:t,size:o,placement:i,onOpen:r,onClose:n,children:l,trigger:s,toolbar:d,clickOutsideExceptions:p=[]})=>{const u=c()("brz-ed-control__popover",e),b=a.a.createElement("div",{className:"brz-ed-control__popover--content"},l);return a.a.createElement("div",{className:u},a.a.createElement(ce.a,{className:"brz-ed-control__popover--tooltip",placement:i,overlay:b,title:t,size:o,onOpen:r,onClose:n,openOnClick:!0,toolbar:d,clickOutsideExceptions:p},s))},Cc=e=>{let{className:t,content:o}=e,i=Object(Ee.a)(e,["className","content"]);const r=c()("brz-ed-popover__tooltip--icon-custom",t);return a.a.createElement("div",Object(g.a)({},i,{className:r,dangerouslySetInnerHTML:{__html:null!=o?o:""}}))},wc=({icon:e})=>a.a.createElement(s.b,{icon:e});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(i.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=>{switch(typeof e){case"object":return a.a.createElement(Cc,e);case"string":return a.a.createElement(wc,{icon:e})}},Pc=({className:e,config:t,options:o,toolbar:i})=>{var r,n,l;return null!=o&&o.length?a.a.createElement(xc,{title:null==t?void 0:t.title,trigger:Tc(null!==(r=null==t?void 0:t.icon)&&void 0!==r?r:"nc-cog"),className:e,placement:null!==(n=null==t?void 0:t.placement)&&void 0!==n?n:"top",size:null!==(l=null==t?void 0:t.size)&&void 0!==l?l:"medium",toolbar:i,clickOutsideExceptions:[".brz-ed-fixed",".media-modal",".media-modal-backdrop",...i?[".brz-ed-sidebar__right"]:[]]},a.a.createElement(Ht.a,{wrapOptions:!1,data:o,toolbar:i})):null};function Ec({className:e,active:t,onChange:o,align:i,position:r,children:n}){const l=c()("brz-ul brz-ed-control__tabs","brz-justify-content-xs-"+i,"brz-ed-control__tabs__"+r,e),d=n.map((e,i)=>{const{icon:r,value:n,title:l,label:d}=e.props,p=c()("brz-li brz-ed-control__tab",{"brz-ed-control__tab__icon":r,active:t===n});return a.a.createElement("li",{key:i,title:l,className:p,onClick:()=>o(n)},r&&a.a.createElement(s.b,{icon:r}),a.a.createElement("span",{className:"brz-span"},d))});return a.a.createElement("ul",{className:l},d)}function _c({className:e,showSingle:t,children:o,value:i,onChange:r,align:n,position:l}){var s;const d=c()("brz-ed-control__tabs-wrapper",e);if(0===o.length)return null;const p=o.length>1||t&&1===o.length,u=null!==(s=o.find(e=>e.props.value===i))&&void 0!==s?s:o[0],b=a.a.createElement("div",{className:c()("brz-ed-control__tab__content","brz-ed-control__tabs__content__"+l,u.props.className)},u.props.children);return p?a.a.createElement("div",{className:d},a.a.createElement(Ec,{active:u.props.value,align:n,position:l,onChange:r},o),b):b}function kc({children:e}){return a.a.createElement(a.a.Fragment,null,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 Fc(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(i.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}Pc.fromElementModel=()=>{},Pc.toElementModel=()=>({}),Pc.defaultValue=void 0,Pc.filter=Mi,Pc.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},Pc.map=(e,t)=>{var o;return jc(jc({},t),{},{options:null===(o=t.options)||void 0===o?void 0:o.map(e)})};const Rc=({tabs:e=[],onChange:t,value:{value:o},config:i,toolbar:r,className:l})=>{var c,s,d;const[p,u]=Object(n.useState)(o),b=null!==(c=null==i?void 0:i.position)&&void 0!==c?c:"top",m=null!==(s=null==i?void 0:i.align)&&void 0!==s?s:"center",h=Object(n.useCallback)(u,[o]);return Object(n.useEffect)(()=>{null!=i&&i.saveTab&&t({value:p})},[p]),a.a.createElement(_c,{align:m,value:p,onChange:h,position:b,showSingle:null!==(d=null==i?void 0:i.showSingle)&&void 0!==d&&d,className:l},Object(y.sortBy)(e,({position:e=100})=>e).map(({id:e,title:t,label:o,options:i,className:n})=>a.a.createElement(kc,{key:e,value:e,title:t,label:o,className:n},a.a.createElement(Ht.a,{wrapOptions:!1,data:i,toolbar:r}))))};Rc.fromElementModel=e=>({value:Rl(e("value"))}),Rc.toElementModel=e=>({value:e.value}),Rc.defaultValue={value:""},Rc.filter=Ii,Rc.reduce=(e,t,o)=>{var i,r;return null!==(i=null===(r=o.tabs)||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},Rc.map=(e,t)=>{var o;return Fc(Fc({},t),{},{tabs:null===(o=t.tabs)||void 0===o?void 0:o.map(t=>{var o;return Fc(Fc({},t),{},{options:null===(o=t.options)||void 0===o?void 0:o.map(e)})})})};var Hc=o(74);const Lc=({className:e="",value:t,onChange:o,size:i="auto",placeholder:r="",rows:l=5})=>{const s=c()("brz-ed-control__textarea2",e,"brz-ed-control__textarea2--"+i),d=Object(n.useCallback)(Object(Lt.e)(o,Hc.b),[t]);return a.a.createElement("textarea",{rows:l,className:s,value:t,placeholder:r,onChange:d})},Mc=({className:e,onChange:t,value:{value:o},config:i={},placeholder:r,label:l})=>{var c;const[s,d]=Object(n.useState)(o);return Object(fr.a)(()=>{o!==s&&t({value:s})},1e3,[s]),a.a.createElement(a.a.Fragment,null,l,a.a.createElement(Lc,{className:e,onChange:d,value:s,size:null!==(c=i.size)&&void 0!==c?c:"auto",placeholder:r,rows:i.lines}))};Mc.fromElementModel=e=>({value:Dt.a.read(e("value"))}),Mc.toElementModel=e=>({value:e.value}),Mc.defaultValue={value:""};var Ic=o(310);const Wc=({className:e,onChange:t,value:{value:o},config:i={},placeholder:r,label:l})=>{const[c,s]=Object(n.useState)(o),d=Object(n.useRef)();let p;var u;(Object(fr.a)(()=>{o!==c&&(t({value:c}),d.current=c)},1e3,[c]),Object(n.useEffect)(()=>{o!==d.current&&s(o)},[o]),"html"===(null==i?void 0:i.language))?p="htmlmixed":p=null!==(u=null==i?void 0:i.language)&&void 0!==u?u:"css";return a.a.createElement(a.a.Fragment,null,l,a.a.createElement(Ic.a,{className:e,onChange:s,value:c,language:p,placeholder:r}))};Wc.defaultValue={value:""},Wc.fromElementModel=e=>({value:Dt.a.read(e("value"))}),Wc.toElementModel=e=>({value:e.value});const Nc=({value:{value:e},choices:t,onChange:o,label:i})=>{const r=Object(n.useCallback)(e=>o({value:e}),[o,e]);return a.a.createElement(a.a.Fragment,null,i,a.a.createElement(wl,{onChange:r},t.map(({value:t,icon:o,title:i},r)=>{return a.a.createElement(Bl,{title:null!=i?i:"",key:r,icon:o,value:t,active:(n=t,l=e,n===l)});var n,l})))};Nc.fromElementModel=e=>({value:Rl(e("value"))}),Nc.toElementModel=e=>({value:e.value}),Nc.defaultValue={value:""};const Ac=({value:e,onChange:t,className:o,size:i="auto",spinner:r=!0,onIncrease:l,onDecrease:d})=>{const p=Object(n.useRef)(),[u,b]=Object(n.useState)("none"),m="brz-ed-control__number",h=c()(m,`${m}--${i}`,o),g=Object(n.useCallback)(()=>b("none"),[b]),v=Object(n.useCallback)(()=>b("increase"),[b]),y=Object(n.useCallback)(()=>b("decrease"),[b]),f=Object(n.useCallback)(Object(so.d)(Hc.b,Zi.b,t),[t]);return Object(n.useEffect)(()=>{switch(u){case"increase":return p.current&&clearInterval(p.current),void(p.current=setInterval(l,150));case"decrease":return p.current&&clearInterval(p.current),void(p.current=setInterval(d,150));case"none":return void(p.current&&clearInterval(p.current))}},[u,e,t]),a.a.createElement("div",{className:h},a.a.createElement("input",{className:"brz-input",type:"number",value:e,min:-999999,max:999999,onChange:f}),r?a.a.createElement("div",{className:m+"--arrows"},a.a.createElement("div",{className:m+"--up",onClick:l,onMouseDown:v,onMouseUp:g},a.a.createElement(s.b,{icon:"nc-stre-up"})),a.a.createElement("div",{className:m+"--down",onClick:d,onMouseDown:y,onMouseUp:g},a.a.createElement(s.b,{icon:"nc-stre-down"}))):null)},Vc=({className:e,onChange:t,value:{value:o},config:i,label:l})=>{var c,s,d,p,u,b;const m=null!==(c=null==i?void 0:i.updateRate)&&void 0!==c?c:16,h=null!==(s=null==i?void 0:i.min)&&void 0!==s?s:0,g=null!==(d=null==i?void 0:i.max)&&void 0!==d?d:100,v=null!==(p=null==i?void 0:i.step)&&void 0!==p?p:1,y=null!==(u=null==i?void 0:i.size)&&void 0!==u?u:"short",f=null===(b=null==i?void 0:i.spinner)||void 0===b||b,S=Object(n.useCallback)(Object(so.d)(Object(r.d)("value"),t),[t]),O=Object(n.useCallback)(e=>Object(W.b)(e,h,g),[h,g]),x=Object(n.useCallback)(Object(ji.mPipe)(O,S),[O,S]),[C,w]=Object(fr.b)(o,x,m),B=Object(n.useCallback)(Object(ji.mPipe)(()=>C,Object(W.a)(v),O,w),[C,v]),j=Object(n.useCallback)(Object(ji.mPipe)(()=>C,Object(W.g)(v),O,w),[C,v]);return a.a.createElement(a.a.Fragment,null,l,a.a.createElement(Ac,{className:e,onChange:w,onIncrease:B,onDecrease:j,value:C,size:y,spinner:f}))};Vc.fromElementModel=e=>({value:Zi.a.read(e("value"))}),Vc.toElementModel=e=>({value:e.value}),Vc.defaultValue={value:0};const Dc=Object(Lt.e)(Object(y.partial)(si.j,e=>{if("object"!=typeof e)return;const t=Zi.a.read(e.ID),o=Dt.a.read(e.title);return t&&o?{id:t,title:o}:void 0}),Object(y.property)("posts"),L.g);let $c,Gc=0;const Uc=()=>$c||($c=Object(H.w)().then(Dc).then((e=[])=>(Gc||setTimeout(()=>{$c=void 0,Gc=0},6e4),e)).catch(e=>{throw $c=void 0,e})),Kc=({className:e,onChange:t,value:o,config:i,label:r})=>{var l,c;let s=!1;const d=Object(n.useRef)(),[p,u]=Object(n.useState)(o?[o]:[]),b=Object(n.useCallback)(Object(so.d)(e=>p.find(t=>t.id===e),t),[t,p]);return Object(n.useEffect)(()=>()=>{s=!0},[]),a.a.createElement(a.a.Fragment,null,r,a.a.createElement(Tr.a,{className:e,onChange:b,size:null!==(l=null==i?void 0:i.size)&&void 0!==l?l:"auto",editable:!0,value:null!==(c=null==o?void 0:o.id)&&void 0!==c?c:0,onOpen:()=>{d.current||Uc().then(e=>{s||(u(e),d.current=!0)}).catch(()=>u([]))}},p.map(({id:e,title:t})=>{return a.a.createElement(kr.a,{value:e,key:e},(o=t).length>24?o.slice(0,23)+"...":o);var o})))};Kc.fromElementModel=e=>(e=>{if("object"!=typeof e)return;const t=Zi.a.read(null==e?void 0:e.id),o=Dt.a.read(null==e?void 0:e.title);return t&&o?{id:t,title:o}:void 0})({id:e("value"),title:e("title")}),Kc.toElementModel=e=>({value:null==e?void 0:e.id,title:null==e?void 0:e.title}),Kc.defaultValue={id:null,title:""};const qc=({config:e,label:t})=>a.a.createElement(a.a.Fragment,null,t,a.a.createElement("div",{style:{width:"100%"},dangerouslySetInnerHTML:{__html:(null==e?void 0:e.html)||""}}));function Yc(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 Xc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Yc(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Yc(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}qc.fromElementModel=()=>{},qc.toElementModel=()=>({}),qc.defaultValue=void 0;function Jc(e,t){switch(e){case"ungrouped":return"grouped"===t.type?(e=>Xc(Xc({},e),{},{type:"ungrouped"}))(t):t;case"grouped":return"ungrouped"===t.type?(e=>Xc(Xc({},e),{},{type:"grouped"}))(t):t}}const Zc=(e,t)=>Xc(Xc({},t),{},{value:e,topLeft:e,topRight:e,bottomRight:e,bottomLeft:e,tempTopLeft:e,tempTopRight:e,tempBottomRight:e,tempBottomLeft:e,tempTopLeftUnit:t.unit,tempTopRightUnit:t.unit,tempBottomRightUnit:t.unit,tempBottomLeftUnit:t.unit}),Qc=(e,t)=>Xc(Xc({},t),{},{unit:e,topLeftUnit:e,topRightUnit:e,bottomRightUnit:e,bottomLeftUnit:e,tempTopLeft:t.value,tempTopRight:t.value,tempBottomRight:t.value,tempBottomLeft:t.value,tempTopLeftUnit:e,tempTopRightUnit:e,tempBottomRightUnit:e,tempBottomLeftUnit:e}),es=(e,t)=>Xc(Xc({},t),{},{topLeft:e,tempTopLeft:e}),ts=(e,t)=>Xc(Xc({},t),{},{topLeftUnit:e,tempTopLeftUnit:e}),os=(e,t)=>Xc(Xc({},t),{},{topRight:e,tempTopRight:e}),is=(e,t)=>Xc(Xc({},t),{},{topRightUnit:e,tempTopRightUnit:e}),rs=(e,t)=>Xc(Xc({},t),{},{bottomRight:e,tempBottomRight:e}),ns=(e,t)=>Xc(Xc({},t),{},{bottomRightUnit:e,tempBottomRightUnit:e}),as=(e,t)=>Xc(Xc({},t),{},{bottomLeft:e,tempBottomLeft:e}),ls=(e,t)=>Xc(Xc({},t),{},{bottomLeftUnit:e,tempBottomLeftUnit:e}),cs=Object(so.c)(e=>"px"===e||"%"===e),ss=e=>t=>t(e),ds=Object(gc.c)({type:Object(so.d)(Object(so.b)(ss("radiusType"),Dt.d,hc.a),Object(Lt.g)("grouped")),value:Object(so.d)(Object(so.b)(ss("radius"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),unit:Object(so.d)(Object(so.b)(ss("radiusSuffix"),Dt.d,cs),Object(Lt.g)("px")),topLeft:Object(so.d)(Object(so.b)(ss("topLeftRadius"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),tempTopLeft:Object(so.d)(Object(so.b)(ss("tempTopLeft"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),topLeftUnit:Object(so.d)(Object(so.b)(ss("topLeftRadiusSuffix"),Dt.d,cs),Object(Lt.g)("px")),tempTopLeftUnit:Object(so.d)(Object(so.b)(ss("tempTopLeftRadiusSuffix"),Dt.d,cs),Object(Lt.g)("px")),topRight:Object(so.d)(Object(so.b)(ss("topRightRadius"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),tempTopRight:Object(so.d)(Object(so.b)(ss("tempTopRightRadius"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),topRightUnit:Object(so.d)(Object(so.b)(ss("topRightRadiusSuffix"),Dt.d,cs),Object(Lt.g)("px")),tempTopRightUnit:Object(so.d)(Object(so.b)(ss("tempTopRightRadiusSuffix"),Dt.d,cs),Object(Lt.g)("px")),bottomRight:Object(so.d)(Object(so.b)(ss("bottomRightRadius"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),tempBottomRight:Object(so.d)(Object(so.b)(ss("tempBottomRight"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),bottomRightUnit:Object(so.d)(Object(so.b)(ss("bottomRightRadiusSuffix"),Dt.d,cs),Object(Lt.g)("px")),tempBottomRightUnit:Object(so.d)(Object(so.b)(ss("tempBottomRightRadiusSuffix"),Dt.d,cs),Object(Lt.g)("px")),bottomLeft:Object(so.d)(Object(so.b)(ss("bottomLeftRadius"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),tempBottomLeft:Object(so.d)(Object(so.b)(ss("tempBottomLeftRadius"),Zi.b,Ka.b),Object(Lt.g)(Ka.a)),bottomLeftUnit:Object(so.d)(Object(so.b)(ss("bottomLeftRadiusSuffix"),Dt.d,cs),Object(Lt.g)("px")),tempBottomLeftUnit:Object(so.d)(Object(so.b)(ss("tempBottomLeftRadiusSuffix"),Dt.d,cs),Object(Lt.g)("px"))}),ps={type:"grouped",value:Ka.a,unit:"px",topLeft:Ka.a,tempTopLeft:Ka.a,topLeftUnit:"px",tempTopLeftUnit:"px",topRight:Ka.a,tempTopRight:Ka.a,topRightUnit:"px",tempTopRightUnit:"px",bottomRight:Ka.a,tempBottomRight:Ka.a,bottomRightUnit:"px",tempBottomRightUnit:"px",bottomLeft:Ka.a,tempBottomLeft:Ka.a,bottomLeftUnit:"px",tempBottomLeftUnit:"px"},us=(Object(gc.d)({number:e=>e.number,unit:e=>e.unit}),e=>{switch(e){case"grouped":return"nc-corners-all";case"ungrouped":return"nc-corners-individual";case"top":return"nc-corners-top-left";case"right":return"nc-corners-top-right";case"bottom":return"nc-corners-bottom-right";case"left":return"nc-corners-bottom-left"}}),bs=e=>{switch(e){case"%":case"px":return e}},ms=({value:e,onChange:t,label:o,config:i})=>{const r=Object(n.useCallback)(Object(so.d)(t=>Jc(t,e),t),[e,t]),{value:l,unit:c,topLeft:s,topLeftUnit:d,topRight:p,topRightUnit:u,bottomRight:b,bottomRightUnit:m,bottomLeft:h,bottomLeftUnit:g}=e,v=Object(n.useMemo)(()=>({all:{number:l,unit:c},top:{number:s,unit:d},right:{number:p,unit:u},bottom:{number:b,unit:m},left:{number:h,unit:g}}),[e,s,p,b,h,c,d,u,m,g]),y=Object(n.useCallback)(Object(so.b)((t,o)=>Object(so.b)(Ka.b,o=>(e=>{switch(e){case"all":return Zc;case"top":return es;case"right":return os;case"bottom":return rs;case"left":return as}})(t)(o,e))(o),t),[t,e]),f=Object(n.useCallback)(Object(so.d)((t,o)=>(e=>{switch(e){case"all":return Qc;case"top":return ts;case"right":return is;case"bottom":return ns;case"left":return ls}})(t)(o,e),t),[t,e]),S=Object(n.useMemo)(()=>{var e;return(null!==(e=null==i?void 0:i.units)&&void 0!==e?e:["px","%"]).map(e=>({value:e,title:bs(e)}))},[null==i?void 0:i.units]);return a.a.createElement(kl,{label:o,type:e.type,value:v,units:S,onType:r,onValue:y,onUnit:f,getIcon:us,step:1,min:0,max:100})};ms.fromElementModel=ds,ms.toElementModel=e=>({radiusType:e.type,radius:e.value,radiusSuffix:e.unit,topLeftRadius:e.topLeft,tempTopLeftRadius:e.tempTopLeft,topLeftRadiusSuffix:e.topLeftUnit,tempTopLeftRadiusSuffix:e.tempTopLeftUnit,topRightRadius:e.topRight,tempTopRightRadius:e.tempTopRight,topRightRadiusSuffix:e.topRightUnit,tempTopRightRadiusSuffix:e.tempTopRightUnit,bottomRightRadius:e.bottomRight,tempBottomRightRadius:e.tempBottomRight,bottomRightRadiusSuffix:e.bottomRightUnit,tempBottomRightRadiusSuffix:e.tempBottomRightUnit,bottomLeftRadius:e.bottomLeft,tempBottomLeftRadius:e.tempBottomLeft,bottomLeftRadiusSuffix:e.bottomLeftUnit,tempBottomLeftRadiusSuffix:e.tempBottomLeftUnit}),ms.defaultValue=ps;const hs=(e,t)=>"all"===t||t===e,gs=e=>{switch(e){case"horizontal":return Object(C.a)("Move left");case"vertical":return Object(C.a)("Move up")}},vs=e=>{switch(e){case"horizontal":return Object(C.a)("Move right");case"vertical":return Object(C.a)("Move down")}},ys=e=>{switch(e){case"horizontal":return"nc-left-arrow-heavy";case"vertical":return"nc-arrow-up"}},fs=e=>{switch(e){case"horizontal":return"nc-right-arrow-heavy";case"vertical":return"nc-down-arrow-heavy"}},Ss=()=>{},Os=({className:e,config:t,label:o})=>{var i,r,l;const d=null!==(i=null==t?void 0:t.onChange)&&void 0!==i?i:Ss,p=null!==(r=null==t?void 0:t.disable)&&void 0!==r?r:"none",u=Object(n.useCallback)(()=>!hs("prev",p)&&d("prev"),[d,p]),b=Object(n.useCallback)(()=>!hs("next",p)&&d("next"),[d,p]),m=null!==(l=null==t?void 0:t.align)&&void 0!==l?l:"horizontal";return a.a.createElement("div",{className:c()(e,"brz-ed-option__order","brz-ed-option__order__"+m)},o,a.a.createElement("span",{title:gs(m),onClick:u},a.a.createElement(s.b,{icon:ys(m),className:c()({"brz-ed__disabled":hs("prev",p)})})),a.a.createElement("span",{title:vs(m),onClick:b},a.a.createElement(s.b,{icon:fs(m),className:c()({"brz-ed__disabled":hs("next",p)})})))};Os.fromElementModel=()=>{},Os.toElementModel=()=>({}),Os.defaultValue=void 0;const xs=({active:e,className:t,icon:o,label:i,onClick:r})=>a.a.createElement("div",{className:c()(t,"brz-ed--fat-icon",{"brz-ed--fat-icon__active":!!e}),onClick:r},a.a.createElement("div",{className:"brz-ed--fat-icon__wrapper"},a.a.createElement(s.a,{icon:o})),a.a.createElement("div",{className:"brz-ed--fat-icon__label"},i)),Cs=({children:e})=>a.a.createElement("div",{className:"brz-ed--fat-icons-grid"},e),ws=({className:e,choices:t,label:o,onChange:i,value:r})=>{const l=Object(n.useMemo)(()=>null==t?void 0:t.map(({icon:e,title:t,value:o})=>a.a.createElement(xs,{key:o,icon:e,label:t,active:o===r,onClick:()=>i(o)})),[t]);return a.a.createElement("div",{className:c()(e,"brz-ed-option__icon-picker")},o,a.a.createElement(Cs,null,l))};ws.fromElementModel=e=>Dt.d(e("value")),ws.toElementModel=e=>({value:e}),ws.defaultValue=void 0;const Bs=Object(gc.c)({value:e=>{var t,o;return null!==(t=si.f(Rl,null!==(o=Dt.d(e("value")))&&void 0!==o?o:""))&&void 0!==t?t:[]},active:Object(gc.a)(e=>Rl(e("active")))}),js=({checked:e,onClick:t,className:o})=>a.a.createElement("span",{className:c()("brz-ed--check-mark",o,{checked:e}),onClick:t},a.a.createElement(s.b,{icon:"nc-check-circle"})),Ts=({active:e,checked:t,className:o,icon:i,label:r,onCheck:l,onClick:d,disabled:p})=>{const u=Object(n.useCallback)(e=>{l&&e.stopPropagation(),null==l||l()},[l]);return a.a.createElement("div",{className:c()(o,"brz-ed--fat-icon","brz-ed--fat-check-icon",{"brz-ed--fat-icon__active":!!e,"brz-ed--fat-icon__disabled":!!p}),onClick:d,title:r},a.a.createElement("div",{className:"brz-ed--fat-icon__wrapper"},a.a.createElement(js,{checked:!!t,onClick:u,className:"brz-ed--fat-check-icon__check"}),a.a.createElement(s.a,{icon:i})),a.a.createElement("div",{className:"brz-ed--fat-icon__label"},r))},Ps=({className:e,choices:t,label:o,onChange:i,value:r})=>{const l=Object(n.useMemo)(()=>null==t?void 0:t.map(({icon:e,title:t,value:o})=>{const n=r.active===o,l=r.value.includes(o);return a.a.createElement(Ts,{key:o,icon:e,label:t,active:n,checked:l,onClick:()=>i({value:l?r.value:[...r.value,o],active:n?void 0:o}),onCheck:()=>{i({value:l?r.value.filter(e=>e!==o):[...r.value,o],active:l?void 0:r.active})}})}),[t,r]);return a.a.createElement("div",{className:c()(e,"brz-ed-option__icon-picker")},o,a.a.createElement(Cs,null,l))};function Es({active:e,onClick:t,checked:o,onCheck:i,label:r,icon:l,id:c}){const s=Object(n.useCallback)(()=>t(c),[t,c]),d=Object(n.useCallback)(()=>i(c),[i,c]);return a.a.createElement(Ts,{active:e,icon:l,label:r,onClick:s,checked:o,onCheck:d})}function _s({label:e,icon:t}){return a.a.createElement(Ts,{icon:t,label:e,disabled:!0})}Ps.fromElementModel=Bs,Ps.toElementModel=({value:e,active:t})=>({value:JSON.stringify(e),active:t}),Ps.defaultValue=void 0;var ks,zs=o(77),Fs=o(161),Rs=o(313),Hs=o(314),Ls=o(315),Ms=o(316),Is=o(317),Ws=o(318),Ns=o(319),As=o(320);function Vs(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 Ds(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Vs(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Vs(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}!function(e){e.active="active",e.enable="enable",e.effect="effect"}(ks||(ks={}));const $s=e=>({type:ks.active,active:e}),Gs=e=>(e=>"mouseTilt"===e||"mouseTrack"===e)(e)?{verticalEnabled:!1,horizontalEnabled:!1,transparencyEnabled:!1,blurEnabled:!1,rotateEnabled:!1,scaleEnabled:!1}:{mouseTrackEnabled:!1,mouseTiltEnabled:!1},Us=({className:e,label:t,value:o,onChange:i,config:r})=>{var l;const{active:c}=o,s=null!==(l=null==r?void 0:r.disabled)&&void 0!==l?l:[],d=c?o[c]:void 0,p=c&&Object(zs.b)(c),u=Object(n.useCallback)(e=>i(((e,t,o)=>({type:ks.enable,effect:e,value:t,active:o}))(e,!o[e],c===e)),[o,i]),b=Object(n.useCallback)(Object(so.d)($s,i),[i]),m=Object(n.useMemo)(()=>c?e=>i(((e,t)=>({type:ks.effect,effect:e,value:t}))(c,e)):y.identity,[c,i]);return a.a.createElement("div",{className:e},a.a.createElement(Cl.a,{display:"block",className:"brz-ed-option"},t,a.a.createElement(Cs,null,Fs.a.map(e=>s.includes(e)?a.a.createElement(_s,{key:e,icon:Object(zs.a)(e),label:Object(zs.c)(e)}):a.a.createElement(Es,{key:e,id:e,active:c===e,checked:!!o[e],icon:Object(zs.a)(e),label:Object(zs.c)(e),onClick:b,onCheck:u})))),d&&p?a.a.createElement(Cl.a,{className:"brz-ed-option"},a.a.createElement(Pa,null,a.a.createElement(p,{value:d,onChange:m}))):null)};Us.defaultValue={active:void 0,vertical:void 0,horizontal:void 0,blur:void 0,mouseTrack:void 0,rotate:void 0,scale:void 0,mouseTilt:void 0,transparency:void 0},Us.fromElementModel=Fs.b,Us.toElementModel=e=>{switch(e.type){case ks.active:return Ds(Ds({active:e.active},e.active?{[Object(Tt.b)(e.active,"enabled")]:!0}:{}),e.active?Gs(e.active):{});case ks.enable:return Ds(Ds({[Object(Tt.b)(e.effect,"enabled")]:e.value},e.active&&!e.value?{active:void 0}:{}),Gs(e.effect));case ks.effect:switch(e.effect){case"vertical":return Object(zs.d)({vertical:Rs.b(e.value)});case"horizontal":return Object(zs.d)({horizontal:Hs.b(e.value)});case"transparency":return Object(zs.d)({transparency:Ls.b(e.value)});case"blur":return Object(zs.d)({blur:Ms.b(e.value)});case"rotate":return Object(zs.d)({rotate:Is.b(e.value)});case"scale":return Object(zs.d)({scale:Ws.b(e.value)});case"mouseTrack":return Object(zs.d)({mouseTrack:Ns.b(e.value)});case"mouseTilt":return Object(zs.d)({mouseTilt:As.b(e.value)})}}};const Ks=e=>{switch(e){case"right":return"nc-hrz-align-right";case"left":return"nc-hrz-align-left"}},qs=e=>{switch(e){case"right":return Object(C.a)("Aligned Right");case"left":return Object(C.a)("Aligned Left")}},Ys=e=>{switch(e){case!0:return"nc-lock";case!1:return"nc-unlock"}},Xs=e=>{switch(e){case!0:return Object(C.a)("Locked");case!1:return Object(C.a)("Unlocked")}},Js=({icon:e,title:t,onClick:o})=>a.a.createElement("div",{className:"brz-ed-control__right-sidebar-tabs__icon"},a.a.createElement(s.b,{icon:e,onClick:o}),a.a.createElement("div",{className:"brz-ed-control__right-sidebar-tabs__icon__tooltip"},t));function Zs({children:e,value:t,onChange:o,align:i,onAlign:r,locked:l,onLock:s}){const d=Object(n.useMemo)(()=>{var o;return null!==(o=e.find(e=>e.props.value===t))&&void 0!==o?o:e[0]},[e]),p=Object(n.useMemo)(()=>d?a.a.createElement("div",{className:c()("brz-ed-control__tab__content",d.props.className)},d.props.children):null,[d]);return a.a.createElement("div",{className:"brz-ed-control__right-sidebar-tabs"},a.a.createElement("div",{className:"brz-ed-control__right-sidebar-tabs__header"},a.a.createElement(Ec,{onChange:o,active:null==d?void 0:d.props.value,align:"start",position:"top"},e),r&&a.a.createElement(Js,{icon:Ks(i),title:qs(i),onClick:r}),s&&a.a.createElement(Js,{icon:Ys(l),title:Xs(l),onClick:s})),p)}const Qs=e=>{switch(e){case"right":return"left";case"left":return"right"}};function ed(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 td(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ed(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const od=Object(so.d)(mt.m,Object(r.c)("rightSidebar")),id=({tabs:e,toolbar:t})=>{var o;const{alignment:i,lock:r,isOpen:l,activeTab:c}=Object(f.d)(od),s=Object(f.c)(),d=Object(n.useCallback)(Object(so.d)(()=>r?void 0:"manual",e=>Object(p.S)("rightSidebar",{alignment:i,isOpen:l,lock:e,activeTab:c}),s),[s,i,l,r,c]),u=Object(n.useCallback)(Object(so.d)(Object(so.a)(i),Qs,e=>Object(p.S)("rightSidebar",{alignment:e,isOpen:l,lock:r,activeTab:c}),s),[s,i,l,r,c]),b=Object(n.useCallback)(Object(so.d)(e=>Object(p.S)("rightSidebar",{alignment:i,isOpen:l,lock:r,activeTab:e}),s),[s,i,l,r]);return a.a.createElement(Zs,{value:null!=c?c:null===(o=e[0])||void 0===o?void 0:o.id,onChange:b,align:i,onAlign:u,locked:!!r,onLock:d},e.map(({id:e,title:o,label:i,className:r,options:n})=>a.a.createElement(kc,{key:e,value:e,title:o,label:i,className:r},a.a.createElement(Ht.a,{wrapOptions:!1,data:n,toolbar:t}))))};function rd(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 nd(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):rd(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}id.defaultValue=void 0,id.fromElementModel=()=>{},id.toElementModel=()=>({}),id.filter=Ii,id.reduce=(e,t,o)=>{var i,r;return null!==(i=null===(r=o.tabs)||void 0===r?void 0:r.reduce((t,{options:o})=>o.reduce(e,t),t))&&void 0!==i?i:t},id.map=(e,t)=>{var o;return td(td({},t),{},{tabs:null===(o=t.tabs)||void 0===o?void 0:o.map(t=>td(td({},t),{},{options:t.options.map(e)}))})};const ad=Object(so.d)(mt.m,Object(r.c)("rightSidebar")),ld=({config:e})=>{const t=Object(f.c)(),o=Object(f.d)(ad),i=Object(n.useCallback)(Object(so.d)(()=>null==e?void 0:e.tabId,e=>Object(p.S)("rightSidebar",nd(nd({},o),{},{isOpen:!0,activeTab:e})),t),[t,o]);return a.a.createElement(a.a.Fragment,null,a.a.createElement(Sa,{onClick:i,label:null==e?void 0:e.text,icon:null==e?void 0:e.icon,align:null==e?void 0:e.align}))};ld.fromElementModel=()=>{},ld.toElementModel=()=>({}),ld.defaultValue=void 0;const cd=({className:e,onClick:t})=>a.a.createElement(Sa,{className:c()("brz-ed-control__reload-button",e),icon:"nc-reverse",label:Object(C.a)("Replay Animation"),onClick:t});var sd=o(178);function dd({styles:e,value:t,onChange:o}){return a.a.createElement(Cl.a,{display:"inline",className:"brz-ed-option"},a.a.createElement(Tl.a,{label:Object(C.a)("Style")}),a.a.createElement(Tr.a,{value:t,onChange:o,editable:!1},e.map(e=>a.a.createElement(kr.a,{key:e,value:e},Object(sd.c)(e)))))}const pd=[{title:"s",value:"s"}],ud=({value:e,onChange:t})=>{const o=Object(n.useMemo)(()=>({number:e/1e3,unit:"s"}),[e]),i=Object(n.useCallback)(e=>t(1e3*e.number),[t]);return a.a.createElement(Cl.a,{display:"inline",className:"brz-ed-option"},a.a.createElement(Tl.a,{label:Object(C.a)("Delay")}),a.a.createElement(jl.a,{value:o,onChange:i,step:.1,min:0,max:5,units:pd}))};function bd({value:e,onChange:t,directions:o}){return o.length>1?a.a.createElement(Cl.a,{display:"inline",className:"brz-ed-option"},a.a.createElement(Tl.a,{label:Object(C.a)("Direction")}),a.a.createElement(Tr.a,{value:e,onChange:t,editable:!1},o.map(([e,t])=>a.a.createElement(kr.a,{key:e,value:e},t)))):null}const md=[{title:"s",value:"s"}],hd=({value:e,onChange:t})=>{const o=Object(n.useMemo)(()=>({number:e/1e3,unit:"s"}),[e]),i=Object(n.useCallback)(e=>t(1e3*e.number),[t]);return a.a.createElement(Cl.a,{display:"inline",className:"brz-ed-option"},a.a.createElement(Tl.a,{label:Object(C.a)("Duration")}),a.a.createElement(jl.a,{value:o,onChange:i,step:.1,min:0,max:5,units:md}))};function gd({active:e,onClick:t,label:o,icon:i,id:r}){const l=Object(n.useCallback)(()=>t(r),[t,r]);return a.a.createElement(xs,{active:e,icon:i,label:o,onClick:l})}const vd=({value:e,onChange:t,label:o})=>a.a.createElement(Cl.a,{display:"inline",className:"brz-ed-option"},a.a.createElement(Tl.a,{label:o}),a.a.createElement(cc,{value:e,onChange:t}));var yd=o(33),fd=o(215),Sd=o(148),Od=o(30);const xd=Object(gc.d)({type:Object(so.b)(e=>e.name,yd.d,Object(so.c)(Object(yd.e)(yd.a.None))),duration:e=>e.duration,delay:e=>e.delay,infiniteAnimation:e=>e.infiniteAnimation});var Cd=o(216),wd=o(217),Bd=o(187);const jd=e=>!(e=>e.type===yd.a.None)(e),Td=gc.b([sd.a,xd,fd.b,Sd.b,Cd.b,wd.b,Bd.b]);var Pd=o(88);const Ed=Object(gc.c)({name:Object(gc.b)([Object(so.b)(Object(Pd.a)("name"),Dt.d,Od.c),()=>Od.a.none]),duration:Object(gc.b)([Object(so.b)(Object(Pd.a)("duration"),Zi.b,Ka.b),()=>Ka.a]),delay:Object(gc.b)([Object(so.b)(Object(Pd.a)("delay"),Zi.b,Ka.b),()=>Ka.a]),infiniteAnimation:Object(gc.b)([Object(so.b)(Object(Pd.a)("infiniteAnimation"),e=>Boolean(e)),()=>!1])}),_d=Object(so.d)(Object(so.b)(Ed,Td),e=>null!=e?e:{type:yd.a.None}),kd=Object(so.d)(e=>{switch(e.type){case yd.a.Attention:return sd.e(e);case yd.a.None:return(e=>({name:Od.a.none,duration:e.duration,delay:e.delay,infiniteAnimation:e.infiniteAnimation}))(e);case yd.a.Bounce:return fd.d(e);case yd.a.Fade:return Sd.d(e);case yd.a.Rotate:return Cd.d(e);case yd.a.Slide:return wd.d(e);case yd.a.Zoom:return Bd.d(e)}},e=>({name:e.name,duration:e.duration,delay:e.delay,infiniteAnimation:e.infiniteAnimation}));function zd(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 Fd(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?zd(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):zd(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Rd(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 Hd(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Rd(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Ld=(e,t)=>Hd(Hd({},t),{},{duration:e});function Md(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 Id(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Md(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Md(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Wd(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 Nd(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Wd(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Ad=({label:e,value:t,onChange:o,className:i,config:r})=>{const l=Object(n.useMemo)(()=>{var e;return Object(y.unique)([yd.a.None,...null!==(e=null==r?void 0:r.types)&&void 0!==e?e:Pd.b])},[null==r?void 0:r.types]),c=Object(Pd.g)(l,t),s=Object(n.useCallback)(e=>o(function(e,t){if(e===t.type)return t;switch(e){case yd.a.Attention:case yd.a.Attention2:return{type:yd.a.Attention,style:Od.a.flash,duration:t.duration,delay:t.delay,infiniteAnimation:t.infiniteAnimation};case yd.a.Bounce:return{type:yd.a.Bounce,direction:fd.a.none,duration:t.duration,delay:t.delay,infiniteAnimation:t.infiniteAnimation};case yd.a.Fade:case yd.a.Fade2:return{type:yd.a.Fade,direction:Sd.a.none,big:!1,duration:t.duration,delay:t.delay,infiniteAnimation:t.infiniteAnimation};case yd.a.None:return{type:yd.a.None,duration:t.duration,delay:t.delay,infiniteAnimation:t.infiniteAnimation};case yd.a.Rotate:return{type:yd.a.Rotate,direction:Cd.a.none,duration:t.duration,delay:t.delay,infiniteAnimation:t.infiniteAnimation};case yd.a.Slide:return{type:yd.a.Slide,direction:wd.a.up,duration:t.duration,delay:t.delay,infiniteAnimation:t.infiniteAnimation};case yd.a.Zoom:case yd.a.Zoom2:return{type:yd.a.Zoom,direction:Bd.a.none,duration:t.duration,delay:t.delay,infiniteAnimation:t.infiniteAnimation}}}(e,t)),[t]),d=Object(n.useCallback)(Object(so.b)(Ka.b,e=>jd(t)&&o(Ld(e,t))),[t]),p=Object(n.useCallback)(Object(so.b)(Ka.b,e=>{return jd(t)&&o((i=e,Fd(Fd({},t),{},{delay:i})));var i}),[t]),u=Object(n.useCallback)(()=>jd(t)&&o((e=>Id(Id({},e),{},{infiniteAnimation:!e.infiniteAnimation}))(t)),[t]),b=Object(n.useCallback)(Object(so.b)(Object(so.a)(t.duration),e=>e+1e-5,Ka.b,e=>jd(t)&&o(Ld(e,t))),[t]),m=Object(n.useMemo)(()=>{switch(t.type){case yd.a.None:return null;case yd.a.Attention:{const e=e=>o(sd.b(e,t));return a.a.createElement(dd,{styles:Object(Pd.c)(c),value:t.style,onChange:e})}case yd.a.Bounce:case yd.a.Rotate:case yd.a.Slide:case yd.a.Zoom:return a.a.createElement(bd,{directions:Object(Pd.d)(c),value:t.direction,onChange:Object(Pd.e)(t,o)});case yd.a.Fade:switch(t.direction){case Sd.a.none:return a.a.createElement(bd,{directions:Object(Pd.d)(t.type),value:t.direction,onChange:Object(Pd.e)(t,o)});case Sd.a.up:case Sd.a.down:case Sd.a.left:case Sd.a.right:return a.a.createElement(a.a.Fragment,null,a.a.createElement(bd,{directions:Object(Pd.d)(t.type),value:t.direction,onChange:Object(Pd.e)(t,o)}),c===yd.a.Fade?a.a.createElement(vd,{value:t.big,onChange:()=>o(Nd(Nd({},t),{},{big:!t.big})),label:Object(C.a)("Big")}):null)}}},[t,c]);return a.a.createElement("div",{className:i},a.a.createElement(Cl.a,{display:"block",className:"brz-ed-option"},e,a.a.createElement(Cs,null,l.map(e=>a.a.createElement(gd,{key:e,id:e,active:c===e,icon:Object(yd.b)(e),label:Object(yd.c)(e),onClick:s})))),c!==yd.a.None&&a.a.createElement(a.a.Fragment,null,a.a.createElement(Cl.a,{className:"brz-ed-option"},a.a.createElement(Pa,null,m,a.a.createElement(hd,{value:t.duration,onChange:d}),a.a.createElement(ud,{value:t.delay,onChange:p}),a.a.createElement(vd,{value:t.infiniteAnimation,onChange:u,label:Object(C.a)("Infinite Animation")}))),a.a.createElement(Cl.a,{className:"brz-ed-option brz-justify-content-xs-center"},!t.infiniteAnimation&&a.a.createElement(cd,{onClick:b}))))};Ad.defaultValue={type:yd.a.None,duration:Ka.a,delay:Ka.a,infiniteAnimation:!1},Ad.toElementModel=kd,Ad.fromElementModel=_d;function Vd(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 Dd(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Vd(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Vd(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const $d={defaultIcon:["nc-shadow"],icons:["nc-blur","nc-vertical","nc-horizontal"]};function Gd(e){let{value:t,onChange:o,options:i}=e,r=Object(Ee.a)(e,["value","onChange","options"]);const l=c()("brz-ed-control__textShadow",r.className),s=Object(n.useCallback)((e,i)=>{o(Dd(Dd(Dd({},t),e),{},{hex:e.hex,palette:e.palette}),i)},[o,t]),d=Object(n.useCallback)(e=>o(Dd(Dd({},t),{},{hex:e}),{isChanged:"hex"}),[o]),p=Object(n.useCallback)(e=>{const[i,r,n]=e,a=(([e,t,o],[i,r,n])=>e!==i?"blur":t!==r?"vertical":o!==n?"horizontal":void 0)(e,[t.blur,t.vertical,t.horizontal]);a&&o(Dd(Dd({},t),{},{blur:i,vertical:r,horizontal:n}),{isChanged:a})},[o,t]),u=Object(n.useMemo)(()=>{var e;return{hex:t.hex,opacity:t.opacity,select:t.select,palette:null!==(e=t.palette)&&void 0!==e?e:""}},[t.hex,t.opacity,t.palette]),b=Object(n.useMemo)(()=>[t.blur,t.vertical,t.horizontal],[t.blur,t.vertical,t.horizontal]);return a.a.createElement("div",{className:l},a.a.createElement(_r,{onChange:s,value:u,opacity:r.opacity,palette:r.palette,paletteOpenSettings:r.paletteOpenSettings},i.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:d},a.a.createElement(no,{config:$d,value:b,onChange:p})))}function Ud(...e){return t=>{for(let o=0;o<e.length;o++)if(e[o][0](t))return e[o][1](t)}}function Kd(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 qd(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Kd(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Kd(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const Yd=e=>0===e.opacity,Xd=e=>({opacity:0,blur:0,vertical:0,horizontal:0,hex:e.hex,tempVertical:e.vertical,tempHorizontal:e.horizontal,tempBlur:e.blur,tempOpacity:e.opacity,tempPalette:e.palette}),Jd=e=>0!==e.opacity,Zd=e=>({opacity:e.tempOpacity,blur:e.tempBlur,horizontal:e.tempHorizontal,vertical:e.tempVertical,hex:e.hex,palette:e.tempPalette}),Qd=e=>0===e,ep=e=>0!==e,tp=e=>0!==e;var op;!function(e){e.noEmptyBlur="noEmptyBlur"}(op||(op={}));const ip=e=>0!==e?e:void 0;var rp;!function(e){e.noEmptyOpacity="noEmptyOpacity"}(rp||(rp={}));const np=e=>0!==e?e:void 0,ap={blur:0,opacity:0,hex:Qi.a,horizontal:0,vertical:0,tempPalette:void 0,tempBlur:1,tempOpacity:1,tempHorizontal:0,tempVertical:0},lp=Object(gc.d)({opacity:Object(so.b)(Object(Pd.a)("colorOpacity"),Zi.b,Cr,np),blur:Object(so.b)(Object(Pd.a)("blur"),Zi.b,_n,ip),palette:Object(gc.a)(Object(so.b)(Object(Pd.a)("colorPalette"),Dt.d,Yi)),hex:Object(so.b)(Object(Pd.a)("colorHex"),Dt.d,Qi.b),horizontal:Object(so.b)(Object(Pd.a)("horizontal"),Zi.b),vertical:Object(so.b)(Object(Pd.a)("vertical"),Zi.b)}),cp=Object(gc.c)({opacity:()=>0,tempOpacity:Object(so.d)(Object(so.b)(Object(Pd.a)("tempColorOpacity"),Zi.b,Cr,np),Object(Lt.g)(ap.tempOpacity)),blur:()=>0,tempBlur:Object(so.d)(Object(so.b)(Object(Pd.a)("tempBlur"),Zi.b,_n,ip),Object(Lt.g)(ap.tempBlur)),tempPalette:Object(gc.a)(Object(so.b)(Object(Pd.a)("tempColorPalette"),Dt.d,Yi)),hex:Object(so.d)(Object(so.b)(Object(Pd.a)("colorHex"),Dt.d,Qi.b),Object(Lt.g)(ap.hex)),horizontal:()=>0,tempHorizontal:Object(so.d)(Object(so.b)(Object(Pd.a)("tempHorizontal"),Zi.b),Object(Lt.g)(ap.tempHorizontal)),vertical:()=>0,tempVertical:Object(so.d)(Object(so.b)(Object(Pd.a)("tempVertical"),Zi.b),Object(Lt.g)(ap.tempVertical))}),sp=Ud([Yd,e=>({colorHex:e.hex,colorOpacity:e.opacity,colorPalette:void 0,blur:e.blur,horizontal:e.horizontal,vertical:e.vertical})],[Jd,e=>({colorHex:e.hex,colorOpacity:e.opacity,colorPalette:e.palette,blur:e.blur,horizontal:e.horizontal,vertical:e.vertical,tempBlur:e.blur,tempHorizontal:e.horizontal,tempColorOpacity:e.opacity,tempColorPalette:e.palette,tempVertical:e.vertical})]),dp=Ud([Yd,()=>{}],[Jd,e=>e.palette]),pp=[{id:"none",title:Object(C.a)("None")},{id:"shadow",title:Object(C.a)("Shadow")}],up=Ud([Yd,()=>"none"],[Jd,()=>"shadow"]),bp=Object(ji.or)(Object(ji.match2)([Object(Lt.a)("shadow"),Yd,(e,t)=>Zd(t)],[Object(Lt.a)("none"),Jd,(e,t)=>Xd(t)]),(e,t)=>t);function mp(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 hp(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?mp(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):mp(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const gp=({onChange:e,value:t,className:o})=>{const i=Object(f.c)(),r=c()("brz-ed-option__textShadow",o),l=Object(n.useCallback)(Object(so.b)((e,o)=>{switch(o.isChanged){case"opacity":return((e,t)=>Ud([Yd,t=>Ud([Qd,()=>t],[ep,e=>qd(qd({},Zd(t)),{},{opacity:e})])(e)],[Jd,t=>Ud([Qd,()=>Xd(t)],[ep,e=>qd(qd({},t),{},{opacity:e})])(e)])(t))(e.opacity,t);case"blur":return((e,t)=>Ud([Yd,t=>Ud([Qd,()=>t],[tp,e=>qd(qd({},Zd(t)),{},{blur:e})])(e)],[Jd,t=>Ud([Qd,()=>Xd(t)],[tp,e=>qd(qd({},t),{},{blur:e})])(e)])(t))(e.blur,t);case"hex":return((e,t)=>Ud([Yd,t=>({palette:void 0,horizontal:t.tempHorizontal,vertical:t.tempVertical,blur:t.tempBlur,opacity:t.tempOpacity,hex:e})],[Jd,t=>qd(qd({},t),{},{hex:e,palette:void 0})])(t))(e.hex,t);case"palette":return e.palette?((e,t)=>Ud([Yd,t=>({palette:e,horizontal:t.tempHorizontal,vertical:t.tempVertical,blur:t.tempBlur,opacity:t.tempOpacity,hex:t.hex})],[Jd,t=>qd(qd({},t),{},{palette:e})])(t))(e.palette,t):t;case"horizontal":return((e,t)=>Ud([Yd,t=>0==e?t:qd(qd({},Zd(t)),{},{horizontal:e})],[Jd,t=>qd(qd({},t),{},{horizontal:e})])(t))(e.horizontal,t);case"vertical":return((e,t)=>Ud([Yd,t=>0==e?t:qd(qd({},Zd(t)),{},{vertical:e})],[Jd,t=>qd(qd({},t),{},{vertical:e})])(t))(e.vertical,t);case"select":return bp(e.select,t)}},e),[e,t]),s=Object(n.useCallback)(()=>i(Object(p.S)("leftSidebar",{isOpen:!0,drawerContentType:"styling"})),[i]),d=Object(n.useMemo)(()=>hp(hp({},t),{},{palette:dp(t),select:up(t)}),[t]);return a.a.createElement(Gd,{opacity:!0,className:r,value:d,onChange:l,palette:Object(fe.c)(),paletteOpenSettings:s,options:pp})};gp.fromElementModel=e=>{var t;return null!==(t=lp(e))&&void 0!==t?t:cp(e)},gp.toElementModel=sp,gp.defaultValue=ap;var vp=o(175);const yp=e=>{e.stopPropagation()};function fp({id:e,onRemove:t,children:o,className:i}){const r=Object(n.useCallback)(()=>t(e),[e,t]);return a.a.createElement("div",{className:c()("brz-ed-control__gallery__item",i)},a.a.createElement("button",{onMouseDown:yp,onClick:r,className:"brz-ed-control__gallery__item__remove"},a.a.createElement(s.a,{icon:"nc-circle-remove",className:"brz-ed-control__gallery__item__remove__icon",onClick:r})),o)}function Sp({id:e,onRemove:t}){return a.a.createElement(fp,{className:"brz-ed-control__gallery__item--loading",id:e,onRemove:t},a.a.createElement(s.a,{icon:"nc-circle-02",className:"brz-ed-animated--spin brz-ed-control__gallery__item__icon"}))}function Op({id:e,onRemove:t,src:o}){const i=Object(n.useMemo)(()=>({backgroundImage:`url(${o})`}),[o]);return a.a.createElement(fp,{id:e,className:"brz-ed-control__gallery__item--thumbnail",onRemove:t},a.a.createElement("span",{style:i,className:"brz-ed-control__gallery__item--thumbnail__image"}))}function xp({id:e,onRemove:t,message:o}){return a.a.createElement(ce.c,{overlay:a.a.createElement("div",null,o),openOnClick:!0},a.a.createElement(fp,{className:"brz-ed-control__gallery__item--error",id:e,onRemove:t},a.a.createElement(s.a,{icon:"nc-warning",className:"brz-ed-control__gallery__item__icon"})))}var Cp=o(580);const wp=Object(vp.b)((function({item:e,onRemove:t}){const o=Object(n.useCallback)(()=>t(e.id),[e.id,t]);switch(e.__type){case"thumbnail":return a.a.createElement("div",{className:"brz-ed-control__gallery__draggable"},a.a.createElement(Op,{onRemove:o,id:e.id,src:e.payload}));case"error":return a.a.createElement("div",{className:"brz-ed-control__gallery__draggable"},a.a.createElement(xp,{onRemove:o,id:e.id,message:e.payload}));case"loading":return a.a.createElement("div",{className:"brz-ed-control__gallery__draggable"},a.a.createElement(Sp,{onRemove:o,id:e.id}))}})),Bp=Object(vp.a)((function({allowedExtensions:e,items:t,onAdd:o,onRemove:i,className:r}){return a.a.createElement("div",{className:c()("brz-ed-control__gallery",r)},t.map((e,t)=>a.a.createElement(wp,{key:e.id,index:t,item:e,onRemove:i})),a.a.createElement(Cp.ImageUpload,{onChange:o,allowedExtensions:e,className:"brz-ed-control__gallery__item brz-ed-control__gallery__item--add"},a.a.createElement(s.a,{icon:"nc-add",className:"brz-ed-control__gallery__item__icon"})))}));function jp({className:e,items:t,onSort:o,onAdd:i,onRemove:r,allowedExtensions:l}){const c=Object(n.useCallback)(({oldIndex:e,newIndex:t})=>o(e,t),[o]);return a.a.createElement(Bp,{axis:"xy",allowedExtensions:l,onAdd:i,onSortEnd:c,onRemove:r,className:e,items:t})}const Tp=Object(gc.d)({name:Object(so.b)(Object(r.c)("name"),Dt.d),fileName:Object(so.b)(Object(r.c)("fileName"),Dt.d)}),Pp=(e,t)=>e.name===t.name;var Ep=o(123),_p=o(46);const kp=Object(so.d)(Object(so.b)(Object(Ri.a)("value"),Ep.a,Object(so.c)(Array.isArray),e=>e.filter(_p.b).map(Tp).filter(Lt.c)),Object(Lt.g)([])),zp=e=>"thumbnail"===e.__type,Fp=(e,t)=>({id:e,payload:t,__type:"thumbnail"}),Rp=e=>"loading"===e.__type,Hp=e=>{var t,o,i;switch(e.__type){case"thumbnail":return o=e.id,i=null!==(t=Object(x.d)(e.payload.name,{iW:100,iH:100}))&&void 0!==t?t:"",{id:o,payload:i,__type:"thumbnail"};case"loading":return(e=>({id:e,__type:"loading"}))(e.id);case"error":return((e,t)=>({id:e,payload:t,__type:"error"}))(e.id,e.payload)}},Lp=["jpeg","jpg","png","gif","svg"],Mp=e=>e.reduce((e,t)=>t.id>e?t.id:e,0),Ip=({label:e,value:t,onChange:o})=>{const[i,l]=Object(n.useState)(t.map((e,t)=>Fp(t,e))),c=Object(n.useCallback)(e=>{const t=Mp(i);l([...i,...e.map((e,o)=>({id:o+t+1,payload:e,__type:"loading"}))])},[i,l]),s=Object(n.useCallback)(e=>l(i.filter(t=>t.id!==e)),[i,l]),d=Object(n.useCallback)((e,t)=>{const o=si.d(e=>e.id===t,i);void 0!==o&&l(Object(Eo.replaceAt)(i,o,Fp(t,{name:e.name,fileName:e.fileName})))},[i,l]),p=Object(n.useCallback)((e,t)=>{const o="string"==typeof e?e:Object(C.a)("Unable to upload"),r=si.d(e=>e.id===t,i);void 0!==r&&l(Object(Eo.replaceAt)(i,r,((e,t)=>({id:e,payload:t,__type:"error"}))(t,o)))},[i,l]),u=Object(n.useCallback)((e,t)=>l(si.h(e,t,i)),[i,l]);Object(n.useEffect)(()=>{const e=i.filter(zp).map(Object(r.c)("payload"));if(!si.c(Pp,t,e)){const e=Mp(i);l([...t.map((t,o)=>Fp(o+e+1,t),...i.filter(e=>!zp(e)))])}},[t,l]),Object(n.useEffect)(()=>{const e=i.filter(zp).map(Object(r.c)("payload"));si.c(Pp,t,e)||o(e)},[i,o]),Object(n.useEffect)(()=>{let e=!0;return i.filter(Rp).map(t=>t.payload.then(o=>(e&&d(o,t.id),o)).catch(o=>{throw e&&p(o,t.id),o})),()=>{e=!1}},[i,p,d]);const b=Object(n.useMemo)(()=>i.map(Hp),[i]);return a.a.createElement(a.a.Fragment,null,e,a.a.createElement(jp,{allowedExtensions:Lp,onSort:u,onAdd:c,items:b,onRemove:s}))};function Wp(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 Np(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Wp(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Wp(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}Ip.defaultValue=[],Ip.fromElementModel=kp,Ip.toElementModel=e=>({value:JSON.stringify(e)});const Ap=e=>t=>t(e),Vp=Object(ji.parseStrict)({hue:Object(ji.or)(Object(ji.mPipe)(Ap("hue"),Zi.b),Object(so.a)(0)),brightness:Object(ji.or)(Object(ji.mPipe)(Ap("brightness"),Zi.b,Ka.b),Object(so.a)(0)),contrast:Object(ji.or)(Object(ji.mPipe)(Ap("contrast"),Zi.b,Ka.b),Object(so.a)(0)),saturation:Object(ji.or)(Object(ji.mPipe)(Ap("saturation"),Zi.b,Ka.b),Object(so.a)(0))}),Dp=()=>{},$p=(e,t)=>o=>Np(Np({},t),{},{[e]:o}),Gp=[{value:"%",title:"%"}],Up=({icon:e,value:t,onChange:o,className:i})=>a.a.createElement(Pl,{className:i,icon:e,value:t,unit:"%",onValue:o,onUnit:Dp,units:Gp,step:1,min:0,max:200}),Kp=({value:e,onChange:t})=>a.a.createElement("div",{className:"brz-ed-control__filters"},a.a.createElement(Pl,{className:"brz-ed-control__filters__hue",icon:"nc-hue",value:e.hue,unit:"deg",onValue:Object(ji.mPipe)($p("hue",e),t),onUnit:Dp,units:[{value:"deg",title:"deg"}],step:1,min:0,max:360}),a.a.createElement(Up,{className:"brz-ed-control__filters__saturation",icon:"nc-saturation",value:e.saturation,onChange:Object(ji.mPipe)(Ka.b,$p("saturation",e),t)}),a.a.createElement(Up,{className:"brz-ed-control__filters__brightness",icon:"nc-brightness",value:e.brightness,onChange:Object(ji.mPipe)(Ka.b,$p("brightness",e),t)}),a.a.createElement(Up,{className:"brz-ed-control__filters__contrast",icon:"nc-contrast",value:e.contrast,onChange:Object(ji.mPipe)(Ka.b,$p("contrast",e),t)}));Kp.defaultValue={hue:0,saturation:0,contrast:0,brightness:0},Kp.fromElementModel=Vp,Kp.toElementModel=e=>Np({},e);var qp=o(311);const Yp=(e,t)=>e.from===t.from&&e.to===t.to;function Xp(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 Jp={from:0,to:100},Zp=Object(ji.parseStrict)({from:Object(ji.or)(Object(ji.mPipe)(Object(Ri.a)("from"),Zi.b),Object(so.a)(Jp.from)),to:Object(ji.or)(Object(ji.mPipe)(Object(Ri.a)("to"),Zi.b),Object(so.a)(Jp.to))}),Qp=({className:e,onChange:t,value:o,config:i={},label:r})=>{var l,c,s,d;const[p,u]=Object(fr.d)(o,t,null!==(l=i.updateRate)&&void 0!==l?l:10,Yp),b=Object(n.useCallback)(e=>u({from:e,to:p.to}),[u,p.to]),m=Object(n.useCallback)(e=>u({to:e,from:p.from}),[u,p.from]);return a.a.createElement(a.a.Fragment,null,r,a.a.createElement(qp.a,{className:e,min:null!==(c=i.min)&&void 0!==c?c:0,max:null!==(s=i.max)&&void 0!==s?s:100,step:null!==(d=i.step)&&void 0!==d?d:1,start:p.from,end:p.to,unit:i.unit,onChangeStart:b,onChangeEnd:m,startLabel:i.startLabel,endLabel:i.endLabel}))};function eu(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 tu(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):eu(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}Qp.defaultValue=Jp,Qp.fromElementModel=Zp,Qp.toElementModel=e=>function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Xp(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Xp(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},e);const ou={"alert-dev":qc,"animation-dev":Ad,"backgroundColor-dev":dn,"button-dev":Oa,"order-dev":Os,"codeMirror-dev":Wc,"colorPicker-dev":Br,"corners-dev":ms,"boxShadow-dev":Vn,"border-dev":fa,"filters-dev":Kp,"group-dev":ka,"grid-dev":Ta,"imageUpload-dev":bl,"iconPicker-dev":ws,"iconsPicker-dev":Ps,"inputText-dev":Sl,"internalLink-dev":Kc,"margin-dev":zl,"motion-dev":Us,"multiSelect-dev":rc,"number-dev":Vc,"textarea-dev":Mc,"radioGroup-dev":Nc,"range-dev":Qp,"padding-dev":Oc,"popover-dev":Pc,"population-dev":fl,"select-dev":lc,"sidebarTabs-dev":id,"sidebarTabsButton-dev":ld,"slider-dev":pc,"switch-dev":sc,"tabs-dev":Rc,"toggle-dev":uc,"typography-dev":sl,"textShadow-dev":gp,"gallery-dev":Ip,"stateMode-dev":Ai},iu=tu(tu({},{advancedSettings:h,blockThumbnail:E,button:k,savedBlock:V,globalBlock:le,codeMirror:pe,colorFields:ye,colorPaletteEditor:Pe,colorPalette:Oe,colorPalette2:Ce,colorPicker2:pt,fontFamily:ft,fontStyle:xt,fontStyleEditor:zt,formApps:Rt,grid:At,iconSetter:oo,imageSetter:Zt,input:yo,multiInput:no,multiInputPicker:mo,multiPicker:co,textarea:So,popover:wo,popupConditions:jo,gbConditions:To,promptAddPopup:zo,promptIcon:Ro,radioGroup:Io,checkGroup:$o,select:Ot,slider:Jo,stepper:ei,switch:oi,tabs:ci,toggle:hi,inputNumber:vi,range:xi,range2:rt,integrationsApps:wi,fileUpload:Bi.a}),ou);const ru=e=>t=>{const o=iu[e];return function(e,t){const o=ou[t];return o.defaultValue?Object.entries(o.defaultValue).reduce((t,[o,i])=>(t[o]=Object.prototype.hasOwnProperty.call(e,o)?e[o]:i,t),e):e}(Object(r.b)(()=>({}),"fromElementModel",o)(t),e)},nu=(e,t)=>o=>{const i=iu[e],n=Object(r.b)(()=>({}),"toElementModel",i);return Object.entries(n(o)).reduce((e,[o,i])=>(e[t(o)]=i,e),{})};t.a=iu},function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"c",(function(){return a})),o.d(t,"b",(function(){return c}));var i=o(13),r=o(57);function n(e){const t=i.a.get("urls").editorIcons;return t?`${t}/icons.svg#${e}`:Object(r.a)("editor/icons/icons.svg#"+e)}function a(e,t){const o=i.a.getAll().urls;return"templateIcons"in o?`${o.templateIcons}/${e}/${t}.txt`:Object(r.a)(`editor/icons/${e}/${t}.txt`)}var l=o(569);function c(e,t){const o={1:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 .023L0 200V0h1920z" fill="${i=t}" fill-rule="nonzero"/></svg>`,2:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path d="M0 200V0h1920z"/><path opacity=".251" d="M0 240V0h1920L137.195 222.85z"/></g></svg>`,3:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 200L1374.256 11.518 0 200V0h1920z" fill="${i}" fill-rule="nonzero"/></svg>`,4:`<svg viewBox="0 0 1920 250" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path opacity=".25" d="M1920 240L1374.256 11.518 0 250V0h1920z"/><path d="M1920 200L1374.256 11.518 0 200V0h1920z"/></g></svg>`,5:`<svg viewBox="0 0 1920 69" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 32.332L1872.003 69l-47.999-36.668L1776.008 69l-47.997-36.668-48 36.668-47.998-36.668L1584.016 69l-47.997-36.668L1488.02 69l-47.999-36.668L1392.022 69l-48-36.668-48 36.668-48-36.668L1200.025 69l-47.999-36.668-48 36.668-48-36.668-48 36.668-48-36.668L912.027 69l-48-36.668L816.032 69l-47.997-36.668L720.033 69l-47.998-36.668-48 36.668-47.998-36.668L528.04 69l-48-36.668L432.036 69l-48.004-36.668-48 36.668-48.005-36.668-48 36.668-48.003-36.668L144.02 69 96.018 32.332 48.01 69 0 32.332V0h1920z" fill="${i}" fill-rule="nonzero"/></svg>`,6:`<svg viewBox="0 0 1919 100" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1865.687 100c-26.657 0-26.657-33.314-53.315-33.314-26.654 0-26.654 33.314-53.308 33.314s-26.654-33.314-53.31-33.314c-26.653 0-26.653 33.314-53.306 33.314s-26.653-33.314-53.306-33.314c-26.655 0-26.655 33.314-53.31 33.314-26.652 0-26.652-33.314-53.305-33.314-26.654 0-26.654 33.314-53.31 33.314-26.653 0-26.653-33.314-53.307-33.314-26.652 0-26.652 33.314-53.305 33.314-26.652 0-26.652-33.314-53.304-33.314-26.651 0-26.651 33.314-53.303 33.314-26.653 0-26.653-33.314-53.305-33.314-26.65 0-26.65 33.314-53.301 33.314-26.653 0-26.653-33.314-53.307-33.314-26.65 0-26.65 33.314-53.301 33.314-26.654 0-26.654-33.314-53.306-33.314-26.652 0-26.653 33.314-53.305 33.314s-26.653-33.314-53.305-33.314S826.216 100 799.564 100c-26.654 0-26.654-33.314-53.306-33.314-26.652 0-26.652 33.314-53.304 33.314-26.653 0-26.653-33.314-53.306-33.314-26.652 0-26.652 33.314-53.304 33.314-26.653 0-26.653-33.314-53.304-33.314-26.65 0-26.652 33.314-53.304 33.314s-26.652-33.314-53.305-33.314S399.778 100 373.126 100c-26.653 0-26.653-33.314-53.306-33.314-26.652 0-26.652 33.314-53.304 33.314s-26.652-33.314-53.304-33.314c-26.651 0-26.651 33.314-53.302 33.314s-26.651-33.314-53.303-33.314c-26.65 0-26.65 33.314-53.302 33.314C26.652 100 26.652 66.686 0 66.686V0h1919.003L1919 66.686c-26.657 0-26.657 33.314-53.314 33.314z" fill="${i}" fill-rule="nonzero"/></svg>`,7:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0 111.22c39.924 57.863 43.635-81.12 86.057-49.377 22.96 17.18 28.423 139.795 63.67 131.577 29.69-6.92 46.923-44.683 62.128-71.756 31.87-50.039 80.334 24.686 134.72 4.477 43.687-16.232 35.42-36.266 70.842-.398 38.085 38.563 65.343-59.381 92.63-51.265 52.535 15.626 66.523 175.912 107.386 83.442 21.395-48.414 68.874-121.81 103.424-45.875 45.148 99.23 54.337 15.01 73.935-36.992 27.286-72.402 47.559 50.828 90.996 61.402 25.52 6.212 43.74-24.442 56.396-47.275 50.19-67.647 72.223 38.517 105.804 42.913 33.582 4.395 43.952-40.933 78.17-31.257 38.657 10.932 44.729 99.625 75.705 98.585 32.066-1.077 10.475-113.292 58.263-131.984 37.054-14.492 44.996 46.504 87.28 45.715 42.285-.789 53.14-137.725 95.082-44.886 9.373 20.75 16.322 103.621 43.433 109.406 35.063 7.48 43.86-81.364 90.923-81.714 68.327 5.077 61.933 82.101 96.71 70.335 29.87-10.106 49.187-131.546 72.779-122.802 26.43 9.797 29.214 119.883 77.916 70.624 23.122-23.385 34.37-82.184 69.35-36.356 21.163 27.726 4.003 7.799 26.401 35.202V0H0v111.22z" fill="${i}" fill-rule="nonzero"/></svg>`,8:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path d="M0 111.22c39.924 57.863 43.635-81.12 86.057-49.377 22.96 17.18 28.423 139.795 63.67 131.577 29.69-6.92 46.923-44.683 62.128-71.756 31.87-50.039 80.334 24.686 134.72 4.477 43.687-16.232 35.42-36.266 70.842-.398 38.085 38.563 65.343-59.381 92.63-51.265 52.535 15.626 66.523 175.912 107.386 83.442 21.395-48.414 68.874-121.81 103.424-45.875 45.148 99.23 54.337 15.01 73.935-36.992 27.286-72.402 47.559 50.828 90.996 61.402 25.52 6.212 43.74-24.442 56.396-47.275 50.19-67.647 72.223 38.517 105.804 42.913 33.582 4.395 43.952-40.933 78.17-31.257 38.657 10.932 44.729 99.625 75.705 98.585 32.066-1.077 10.475-113.292 58.263-131.984 37.054-14.492 44.996 46.504 87.28 45.715 42.285-.789 53.14-137.725 95.082-44.886 9.373 20.75 16.322 103.621 43.433 109.406 35.063 7.48 43.86-81.364 90.923-81.714 68.327 5.077 61.933 82.101 96.71 70.335 29.87-10.106 49.187-131.546 72.779-122.802 26.43 9.797 29.214 119.883 77.916 70.624 23.122-23.385 34.37-82.184 69.35-36.356 21.163 27.726 4.003 7.799 26.401 35.202V0H0v111.22z"/><path d="M1920 111.22c-39.924 57.863-113.614-125.271-101.202-93.282C1832 51.96 1784.872 112.96 1758 112.96s-60.795-67.95-76-95.023c-31.87-50.04-69.614 138.725-124 118.517-43.688-16.233-19.995-46.58-55.417-10.712-38.085 38.563-65.343-59.381-92.63-51.265-52.535 15.626-70.09 139.656-110.953 47.186-21.395-48.414-65.307-56.142-99.857 19.793-16.433 36.118-28.102 47.932-37.243 45.841-15.973-3.652-24.227-49.759-36.692-82.834-27.286-72.4-47.559 21.417-90.996 31.99-25.52 6.213-43.74-24.44-56.396-47.274-50.19-67.647-75.234 42.88-108.816 47.275-33.582 4.395-40.94-45.295-75.159-35.619-38.656 10.932-35.865 78.636-66.841 77.595-32.066-1.077-19.338-92.302-67.126-110.994C622.82 52.945 610.284 172.357 568 171.57c-42.285-.79-33-144.118-70-104.132-19.133 20.677-28.889 84.699-56 90.483-35.063 7.48-59.936-56.734-107-57.084-68.327 5.078-56.327 40.621-95 40.621s-48.408-37.24-72-28.496c-26.431 9.796-25.751 94.007-62 36.554-14.795-23.45-44.62-117.584-79.6-71.756C5.239 105.485 22.399 85.558 0 112.96V0h1920v111.22z" opacity=".25"/></g></svg>`,9:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path d="M1000.521.023L0 200V0h1000.521z"/><path d="M919.479.023L1920 200V0H919.479z"/></g></svg>`,10:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path opacity=".25" d="M1920 0v240L959.944 9.734 0 240V0z"/><path d="M1920 0v198.347L959.944 8.044 0 198.347V0z"/></g></svg>`,11:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 5.206c-320 1.996-640 21.432-960 58.308C640 100.39 320 159.22 0 240V0h1920v5.206z" fill="${i}" fill-rule="nonzero"/></svg>`,12:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path d="M0 240V0h1920v4.538c-312.667-.827-632.667 14.938-960 47.295C632.667 84.191 312.667 146.913 0 240z" opacity=".15"/><path d="M0 210.704V0h1920v4.507c-332 1.2-652 16.735-960 46.605C652 80.982 332 134.18 0 210.704z" opacity=".3"/><path d="M0 4.507V0h1920v4.507c-320 1.494-640 16.045-960 43.651C640 75.765 320 119.806 0 180.282V4.507z"/></g></svg>`,13:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 5.206V240c-160-80.78-320-139.61-480-176.486-160-36.876-320-56.312-480-58.308-160 1.996-320 21.432-480 58.308C320 100.39 160 159.22 0 240V0h1920v5.206z" fill="${i}" fill-rule="nonzero"/></svg>`,14:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path d="M0 240V0l960 .03V4C754 7.849 600 23.182 498 50 354.334 87.773 188.334 151.106 0 240z" opacity=".15"/><path d="M0 211V0h960v5C794 1.667 634 17.187 480 51.56 326 85.935 166 139.08 0 211z" opacity=".3"/><path d="M0 4.5V0h960v5C800 6.158 640 20.52 480 48.083 320 75.647 160 119.62 0 180V4.5z"/><g><path d="M1920 240V0L960 .03V4c206 3.849 360 19.182 462 46 143.666 37.773 309.666 101.106 498 190z" opacity=".15"/><path d="M1920 211V0H960v5c166-3.333 326 12.187 480 46.56 154 34.374 314 87.52 480 159.44z" opacity=".3"/><path d="M1920 4.5V0H960v5c160 1.158 320 15.52 480 43.083C1600 75.647 1760 119.62 1920 180V4.5z"/></g></g></svg>`,15:`<svg viewBox="0 0 1920 200" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0 0h1920v200l-160-15.833L1438 70 707 184.167 211 90 0 200z" fill="${i}" fill-rule="nonzero"/></svg>`,16:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path d="M0 0h1920v198.347L1760 182 1438 70 707 183 211 89 0 198.347z"/><path opacity=".2" d="M0 0h1920v228.1L1721 240 1438 70l-283 122.397-347.347-25.04L707 183l-81.92-15.517L383 192.397 211 89 0 228.1z"/><path opacity=".25" d="M1920 0H0v228.1l193 9.917L390 123l317 60 67-11.43 477-23.801 271 44.628L1616 132l144 50 110 12 50 34.1z"/></g></svg>`,17:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 0H0v144.419L640 240l640-189.197 640 93.616z" fill="${i}" fill-rule="nonzero"/></svg>`,18:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path opacity=".25" d="M0 0h1920v144.419L1277 221l-286-85-351 104L0 144.419z"/><path opacity=".2" d="M1920 0H0v144.419L640 240l167.811-49.89L1038 240l393-167 489 71.419z"/><path d="M1920 0H0v144.419L640 240l640-189.197 640 93.616z"/></g></svg>`,19:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0 172.043C160 217.348 320 240 480 240c240 0 720-138.495 960-136.774 160 1.147 320 24.086 480 68.817V0H0v172.043z" fill="${i}" fill-rule="nonzero"/></svg>`,20:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path d="M1920 129.751C1760 191.917 1600 223 1440 223c-152.892 0-399.532-31.384-620.475-53.784C687 191 557.108 205.465 470 206c-162-2-318.667-21.333-470-58V0h1920v129.751z" opacity=".203"/><path d="M230 190c160 33.333 320 50 480 50 240 0 776-105 923-115 98-6.667 193.667 1 287 23V0H0v148c45.073 10.416 81.073 18.083 108 23 26.927 4.917 67.594 11.25 122 19z" opacity=".3"/><path d="M0 148c160 38.476 320 57.714 480 57.714 240 0 720-118.71 960-117.235 160 .983 320 20.824 480 59.521V0H0v148z"/></g></svg>`,21:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g stroke="none" fill="none" fill-rule="evenodd"><g transform="translate(0.000000, -8261.000000)" fill="${i}" fill-rule="nonzero"><g id="21" transform="translate(0.000000, 8261.000000)"><path d="M0,168.988943 C80.5473907,217.603736 160.512186,220.954929 239.894386,179.042522 C358.967686,116.173913 359.812598,59.826087 443.76887,59.826087 C527.725143,59.826087 547.8693,208.397586 697.791216,199.354108 C847.713131,190.310629 776.750091,26.8323684 937.666281,1.78889015 C1098.58247,-23.2545881 1239.52127,223.162118 1417.41641,209.093238 C1553.34561,198.343244 1504.21655,68.173913 1615.15877,45.2173913 C1689.12025,29.9130435 1790.73399,71.5072464 1920,170 L1920,240 L0,240 L0,168.988943 Z" transform="translate(960.000000, 120.000000) scale(1, -1) translate(-960.000000, -120.000000) "></path></g></g></g></svg>`,22:`<svg viewBox="0 0 1919 255" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(0.000000, -8701.000000)" fill="${i}" fill-rule="nonzero"><g transform="translate(959.500000, 8828.500000) scale(1, -1) translate(-959.500000, -8828.500000) translate(0.000000, 8701.000000)"><path d="M0,183.988943 C80.5473907,232.603736 160.512186,235.954929 239.894386,194.042522 C358.967686,131.173913 359.812598,74.826087 443.76887,74.826087 C527.725143,74.826087 547.8693,223.397586 697.791216,214.354108 C847.713131,205.310629 776.750091,41.8323684 937.666281,16.7888902 C1098.58247,-8.25458811 1239.52127,238.162118 1417.41641,224.093238 C1553.34561,213.343244 1504.21655,83.173913 1615.15877,60.2173913 C1689.12025,44.9130435 1790.40066,86.1702275 1919,183.988943 L1919,255 L0,255 L0,183.988943 Z"></path><path d="M0,184 C55.2272449,222.607421 122.531967,220.954929 201.914167,179.042522 C320.987468,116.173913 321.832379,59.826087 405.788652,59.826087 C489.744925,59.826087 509.889081,208.397586 659.810997,199.354108 C809.732913,190.310629 738.769873,26.8323684 899.686062,1.78889015 C1060.60225,-23.2545881 1201.54105,223.162118 1379.43619,209.093238 C1515.3654,198.343244 1466.23634,68.173913 1577.17855,45.2173913 C1651.14003,29.9130435 1765.08051,76.173913 1919,184 L1919,255 L0,255 L0,184 Z" opacity="0.3"></path></g></g></g></svg>`,23:`<svg viewBox="0 0 1920 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 0v131.144c-95.98 0-96.336 108.856-192.319 108.856-95.982 0-95.982-108.856-191.969-108.856-95.986 0-95.986 54.68-191.969 54.68-95.986 0-95.986-125.11-191.969-125.11-95.982 0-95.982 173.868-191.965 173.868s-95.983-103.438-191.965-103.438c-95.98 0-95.98 70.933-191.959 70.933s-95.979-98.021-191.958-98.021-95.979 81.768-191.958 81.768c-95.986 0-95.986-54.68-191.969-54.68V0h1920z" fill="${i}" fill-rule="nonzero"/></svg>`,24:`<svg viewBox="0 0 1920 398" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path d="M1920 0v198.247c-95.98 0-96.336 114.753-192.319 114.753-95.982 0-95.982-114.753-191.969-114.753-95.986 0-95.986 57.642-191.969 57.642-95.986 0-95.986-131.885-191.969-131.885-95.982 0-95.982 183.285-191.965 183.285s-95.983-109.042-191.965-109.042c-95.98 0-95.98 74.776-191.959 74.776s-95.979-103.33-191.958-103.33-95.979 86.196-191.958 86.196c-95.986 0-95.986-57.642-191.969-57.642V0h1920z" opacity=".25"/><path d="M1920 0v158.358c-95.98 0-96.336 81.642-192.319 81.642-95.982 0-95.982-81.642-191.969-81.642-95.986 0-95.986 41.01-191.969 41.01-95.986 0-95.986-93.832-191.969-93.832-95.982 0-95.982 130.4-191.965 130.4s-95.983-77.578-191.965-77.578c-95.98 0-95.98 53.2-191.959 53.2s-95.979-73.516-191.958-73.516-95.979 61.326-191.958 61.326c-95.986 0-95.986-41.01-191.969-41.01V0h1920z" opacity=".35"/><path d="M0 0v244.694C95.98 244.694 96.336 398 192.319 398c95.982 0 95.982-153.306 191.969-153.306 95.986 0 95.986 77.008 191.969 77.008 95.986 0 95.986-176.195 191.969-176.195 95.982 0 95.982 244.863 191.965 244.863s95.983-145.676 191.965-145.676c95.98 0 95.98 99.897 191.959 99.897s95.979-138.046 191.958-138.046 95.979 115.157 191.958 115.157c95.986 0 95.986-77.008 191.969-77.008V0H0z" opacity=".134"/><path d="M1920 0v131.144c-95.98 0-96.336 108.856-192.319 108.856-95.982 0-95.982-108.856-191.969-108.856-95.986 0-95.986 54.68-191.969 54.68-95.986 0-95.986-125.11-191.969-125.11-95.982 0-95.982 173.868-191.965 173.868s-95.983-103.438-191.965-103.438c-95.98 0-95.98 70.933-191.959 70.933s-95.979-98.021-191.958-98.021-95.979 81.768-191.958 81.768c-95.986 0-95.986-54.68-191.969-54.68V0h1920z"/></g></svg>`,25:`<svg viewBox="0 0 1920 788" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 0H0v173c48-38.667 95.667-75.333 143-110 71-51 110-58 206-40 366 84 1154 243 1293 297 58 22 88 44 121 101 23.333 52 75.667 174.333 157 367V0z" fill="${i}" fill-rule="nonzero"/></svg>`,26:`<svg viewBox="0 0 1920 798" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path d="M1920 0H0v189c24-18 60.347-41.755 109.04-71.264C207.368 57.772 261.38 50.915 394.33 78.549 902 172 1349 270 1534.999 319.512c80.324 21.553 121.87 53.106 167.572 108.947C1734.886 479.402 1807.361 602.583 1920 798V0z" opacity=".25"/><path d="M1920 0H0v173c48-38.667 95.667-75.333 143-110 71-51 110-58 206-40 366 84 1154 243 1293 297 58 22 88 44 121 101 23.333 52 75.667 174.333 157 367V0z"/></g></svg>`,27:`<svg viewBox="0 0 1920 800" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1920 0H0v12.984c1029.719 130.503 1587.292 213.733 1672.719 249.688 53.468 21.972 81.125 43.945 111.547 100.874C1805.776 415.48 1851.02 560.966 1920 800V0z" fill="${i}" fill-rule="nonzero"/></svg>`,28:`<svg viewBox="0 0 1920 800" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="nonzero"><path d="M1920 0H0v12.984c1029.719 130.503 1587.292 213.733 1672.719 249.688 53.468 21.972 81.125 43.945 111.547 100.874C1805.776 415.48 1851.02 560.966 1920 800V0z"/><path d="M1920 0H0v13c996.788 159.826 1536.916 257.717 1620.386 293.672 52.243 21.972 79.265 43.945 108.99 100.874L1920 800V0z" opacity=".25"/></g></svg>`,29:`<svg viewBox="0 0 1920 144" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0 0h1920v70c-96-31-184 1.639-289 21-145 28-245 41-373 50-66 4-150 7-327-30-171-31-301-83-399-83-114 4-258 70-362 77-44 .667-100.667-11-170-35V0z" fill="${i}" fill-rule="nonzero"/></svg>`,30:`<svg viewBox="0 0 1920 99" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M781.659 67.679c5.394-.297 18.088 1.159 22.66-1.526-2.846 1.667-19.23.32-21.954.394-5.954.164-11.903.198-17.902.532-10.396.578-20.684.776-31.023 1.7-30.343 2.713-60.606 3.909-90.983 4.702-.776.26-6.442-.068-9.11 1.099.969-.476 2.062-.742 3.212-.923-12.678.311-25.374.572-38.12.821-18.571.363-37.346.906-55.894 2.175-13.194.907-26.309 1.303-39.486 2.204-8.555.584-28.417 4.827-35.323 1.094 13.602-3.898 29.658-1.78 43.702-2.742 9.608-.663 19.108-.765 28.694-1.422 19.601-1.343 38.993-2.793 58.737-3.473 37.118-1.275 75.018-5.218 112.006-5.382 23.33-.102 47.316-2.974 70.504-3.501 16.673-.38 33.646-.816 50.137-2.232 36.036-3.093 72.702-.93 108.795-3.853 12.588-1.02 25.703 1.79 38.359-.204 7.177-1.133 13.97-2.045 21.873-2.039 11.795.006 23.403-.85 35.357-.872 8.514-.017 17.868.702 26.167-1.541-15.942-2.187-31.974.39-48.012.238-20.367-.199-40.835-.3-61.264.611-34.348 1.53-69.042 1.292-103.509 3.014-116.714 5.824-233.554 11.914-350.342 16.225-61.75 2.278-123.75 7.45-185.28 10.475-27.222 1.343-54.086 3.938-81.29 5.36-10.345.538-97.176 10.905-98.564 6.175 14.543-4.782 33.057-2.963 48.398-3.949 11.025-.708 22.032-1.983 33.051-2.884 29.414-2.402 59.428-4.005 89.034-5.772 77.2-4.612 154.037-11.557 231.305-14.09 35.64-1.167 71.336-3.2 106.987-4.436 25.947-.9 51.82-3.603 77.784-4.231 16.236-.391 33.232.203 49.4-2.51-27.453-2.93-57.241 2.187-84.847 3.104-21.766.726-45.282 5.564-66.827 3.337 2.577-1.15 7.755.77 9.778-1.2-.011.005-14.713-.879-16.237-.743-4.214.38-8.424 1.042-12.707 1.32-13.947.906-27.799.855-41.74 1.796a1687.78 1687.78 0 0 1-58.766 2.934c-70.226 2.278-140.865 8.544-211.154 13.444-33.6 2.345-66.962 2.748-100.602 5.846-5.292.488-55.961 3.405-89.006 6.442 4.005-.465 7.127-.884 8.078-1.23-6.158-.645 6.787-1.45 9.795-1.625 7.666-.448 15.297-1.57 22.967-2.04 5.773-.351 11.37-.799 17.098-1.479 11.868-1.405 33.623 1.45 43.713-4.713a5.205 5.205 0 0 1-1.966-.397c4.86-2.237 11.84-.215 16.927-1.852-14.191-3.348-29.827 2.674-43.203 3.444-12.837.743-26.06 1.87-38.863 3.388a1546.6 1546.6 0 0 1-39.815 4.192c-9.704.901-19.069 2.827-28.915 3.75-9.976.936-19.953 1.865-29.93 2.8-2.798.26-16.372-.307-19.216 1.217 2.47-2.243 15.79-1.988 18.656-2.996-5.58-.697-12.81.373-18.469.94-2.49.25-10.413-.36-13.559.166C.342 96.926.024 64.672 0 0h1920v25c-1.187.402-.707.537-.245.687-3.116-.769-12.798 2.086-16.785 2.523-10.299 1.122-21.3.992-31.55 1.014-15.239.034-30.353 3.858-45.933 4.793-14.174.85-28.643 2.034-42.664 2.43-5.966.17-12.571-.589-18.554.38-1.575.255-17.992 3.037-11.313 1.348-32.298-1.847-65.824 1.819-98.139 2.13-13.998.136-28.2 1.275-42.12.788-13.047-.459-33.374-3.507-45.424 1.586 5.569-2.35 21.114.725 28.252.46 9.66-.363 19.075-.771 28.683-.941 21.386-.38 42.705-.516 64.164-1.145 28.32-.833 56.279 2.567 84.877 1.558 11.137-.396 21.408-.334 32.625-.668 6.852-.203 20.95-4.053 27.32-.207-2.45-1.183-23.322 1.227-26.283 1.272-4.504.068-32.07-1.711-33.94.895.787-.952 7.387 1.382 7.909 1.609-2.182.3-8.034 1.393-9.847.612 2.074 1.02 4.674 1.507 7.54 1.7-1.455.243-2.786.424-3.914.498 3.96.13 10.13-.425 11.212-.544 3.25-.257 6.224-.57 9.14-.922l.11-.002c.403-.05.8-.096 1.202-.147a2.793 2.793 0 0 0-.009-.008c4.738-.572 8.317-.986 11.249-1.023 8.509-.108 16.304-.793 24.592.266-19.21 6.164-43.916 3.875-64.05 4.68-17.285.691-34.677.663-52.035 1.382-28.173 1.167-56.392.748-84.616 1.875-10.061.403-20.344.38-30.456.873-14.776.718-35.283 5.175-49.465 1.064 1.823.39 13.264.051 20.669-.792-8.186.277-21.726-1.326-25.375-1.088-3.116.204-19.601 1.966-14.457.493-15.93-2.634-34.87.736-51.05.714-16.904-.023-33.243 1.49-50.091 1.512-15.914.023-31.6.255-47.531.64-21.21.516-42.416 1.02-63.626 1.61-11.585.317-23.165.656-34.74 1.013-2.554.08-21.289-1.036-25.311.142 3.722-1.79 15.08-1.405 18.633-2.272-3.213-6.078-58.539-.985-64.6-.436-18.917 1.717-37.102 2.22-55.758 1.853-63.342-1.258-127.586 1.161-191.155 3.461-32.082 1.161-64.34 1.314-96.512 2.912-14.34.708-28.36.844-42.756 1.632-5.601.305-45.334 3.228-46.227.471a5.557 5.557 0 0 0 .013-.002zm-559.447 11.45c8.345-2.776 19.947-2.804 28.864-3.263.25.023-26.462 3.518-28.864 3.263zm48.25-4.583c5.065-.991 10.413-1.161 15.512-.73-4.521 1.46-10.792 1.342-15.511.73zM630.34 61.822c.895 2.249 11.036-1.042 12.497-.584-1.427-.566-4.934-.164-6.31-.328-.363-.012-6.42.334-6.187.912zm18.429-.952zm14.242-.453c5.099-.159 11.336.56 16.531-.606-2.356.096-5.886-.47-7.03-.606-5.039.316-19.504-1.012-23.706 1.641 2.032-1.256 11.193-.339 14.205-.43zm139.092-4.951c1.394.113 1.15.243-.72.396-1.399-.102-1.155-.238.72-.396zm12.82-.833a1.207 1.207 0 0 0 0 0zm31.833-.895c-4.152-.244-8.798-.068-12.905.657 2.906.606 6.09-.153 9.053.283 1.28-.311 2.566-.629 3.852-.94zm10.294-.006c-1.988.425-3.84.646-5.297-.244 2.244-.453 3.705.046 5.297.244zm-44.934 11.71c-1.052.02-2.09.127-2.076.465.555.068 1.518-.077 2.39-.216l-.314-.249zm20.54-.736c-1.383-.97-11.642-.618-12.741.657-.204.362 8.39.09 9.177.192 1.808.686 2.992.403 3.564-.85zm27.986-.998c-4.974-.764-17.806-1.235-22.338.986 2.759-1.286 10.786-.26 14.033.176 2.923.102 5.512-.391 8.305-1.162zm208.644-11.24c-.737.409-3.224-.65-4.346.018.499.583 3.881.294 4.346-.017zm46.777-1.206c-8.962-2.481-24.666-1.076-33.85-.074.64 1.116-.056 1.547-2.095 1.286 1.535 1.983 33.215.918 35.945-1.212zm25.431-.946c-1.41-.924-13.064 1.41-11.024 1.58.668-.022 11.194-1.467 11.024-1.58zm56.607-.98c-.402-1.74-11.421-1.054-12.367.25l3.484.662c.753-.028 9.07-.113 8.883-.912zm28.043-.958c.062.844 8.447.777 9.24.93 3.807-.669-9.495-3.502-9.24-.93zm35.713-.657c-4.674-.957-11.993-.833-16.525.182-.068.005-4.306.583-3.269.929 4.442 1.49 15.534.696 19.794-1.11zm18.078-.606c-3.2-1.173-4.515.074-7.438.737.696 2.096 8.934-1.117 7.438-.737zm19.89.09c-1.971.035-2.3-.073-.985-.328 1.949-.04 2.277.068.985.329zm6.311 8.011c-5.63-.147-12.208-1.127-17.709.63 0 1.495 5.971.237 6.696.084 3.58-.017 7.694.578 11.013-.714zm22.248-.362c-1.932.04-2.26-.068-.986-.323 1.988-.023 2.317.085.986.323zm12.837-.13c-1.852.096-2.09.22-.708.373 1.88-.107 2.119-.232.708-.374zm18.429-8.73c-1.734-2.488-9.251-1.162-11.886-.539-13.596.334-28.615-.974-41.967 1.377 7.97 1.631 16.53.56 24.57.119 9.727-.538 19.714.968 29.283-.958zm7.348-.414c-1.745.124-4.572.272-5.195-.402-.306-.335 2.81.113 5.195.402zm.589-.102c-.142.013-.198.037-.198.068.204-.017.392-.031.548-.042l-.35-.026zm.935.36c.409.038.827.028 1.065-.083-.071.04-.322.041-.689.017l-.376.066zm9.925.439c-3.875-1.893 16.628-1.167 16.514-1.11-4.107 2.124-12.01 1.002-16.514 1.11zm19.522 7.172c-1.223-.221-2.453-.436-3.676-.657-.391-.023-6.481-.006-6.306.68.357 1.41 8.963.345 9.982-.023zm3.847.13c-1.388-.153-1.144-.278.73-.374 1.412.153 1.162.278-.73.374zm17.964-1.422c4.42 1.156-5.512 2.668-6.05 1.144-.255-.725 5.337-1.155 6.05-1.144zm2.017-7.438c2.827-.595 5.903-1.145 8.787-.539-5.886 1.473-10.418 1.32-16.384.726 2.527-.063 5.07-.193 7.597-.187zm12.407 8.435c-1.564.623-9.5 1.603-10.288-.294 3.501-.856 7.376-1.598 10.288.294zm4.997-8.107c-1.61-.255-2.997-.782-5.297-.402 1.45.946 3.28.76 5.297.402zm9.88 7.325c-.674-.447-1.445-.544-2.306-.3a4.858 4.858 0 0 0-1.756.133c.976-.14 3.035.68 4.062.167zm-4.328-.09a5.2 5.2 0 0 1 .266-.077.874.874 0 0 0-.266.077zm16.141.202a3.06 3.06 0 0 0-.726.189c.26-.046.52-.09.782-.134l-.056-.055zm1.007-.106l.42-.068c-.114.006-.182.006-.278.006-.051.017-.09.04-.142.062zm-.934.436c.237-.147.566-.272.872-.402.714-.011.969.13-.872.402zm6.112-.9c-1.342-.556-3.37-.238-4.906.34 1.745-.097 5.116-.256 4.906-.34zm7.507-7.439c-4.266 1.745-16.197-4.651-20.117-.833-.136.12 8.123 1.031 9.25 1.218 2.216-.04 8.51.697 10.867-.385zm23.17-.47c-.555.277-2.453-.096-2.17-.238 1.185.113 2.216.22 2.17.238zm-3.133-.521c-.356-.063-.73-.04-1.082-.142-.062-.09.539.017 1.082.142zm-1.404 8.039c3.132 1.11 8.067.753 11.319.005 2.128-.04 11.108-1.363 13.483-.59-7.455-2.427-17.615 2.85-24.802.585zm35.48-8.136c-2.13-1.779-8.118-.651-10.576-.453 2.034 1.847 8.384 1.043 10.577.453zm4.97-.402c-.414-.821 8.916-1.218 9.432-1.184 2.056 2.572-8.764 2.51-9.433 1.184zm237.717 2.232c-1.394-.175-1.156-.294.714-.345 1.41.164 1.172.277-.714.345zm-70.978 2.064a2.374 2.374 0 0 0-.545.259c.173-.09.355-.177.545-.26zm0 0c3.221-1.087 11.33 2.36 14.06 2.604 6.118.556 12.242-.464 18.326-.617 7.592-.187 15.908.26 23.579-.737-7.931-.402-17.313-1.439-20.655-1.416-8.98.055-27.991-3.006-35.31.166zm-67.14 1.403c2.538-.187 5.801-.708 7.914.555-2.056.476-7.081 1.881-7.914-.555zm-20.485.403c5.421-1.434 12.525-.8 18.032.305-5.914.726-12.192.595-18.032-.305zm.028 3.96c-2.181.022-6.215.674-8.436-.074.04.006 10.69-.232 8.436.073zm-10.038-3.596c-1.046-.026-2.083.038-2.086.378.573.104 1.52-.002 2.38-.109l-.294-.27zm-12.696 3.725c-1.562.13-3.028.194-3.61.006 1.09.296 2.352.326 3.688.234l-.078-.24zm-33.34-3.138c.9-.073 1.915-.164 2.94-.22-4.18.453-9.093 2.203-12.622.741 1.79.499 7.982-.487 9.682-.52z" fill="${i}" fill-rule="evenodd"/></svg>`,31:`<svg viewBox="0 0 1920 359" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1900.821 32.686c-8.161 5.646-17.284 11.593-25.72 16.295-7.624 4.25-11.488 9.048-18.584 13.977-5.919 4.109-10.999 9.104-16.88 13.298-13.43 9.594-27.453 20.046-41.722 27.566-5.032 2.649-10.602 4.59-15.682 7.596-5.956 3.525-4.967 6.324-11.658 9.547-.773-.895-.226-1.686 1.65-2.384-18.077 6.503-35.286 17.746-52.787 26.85-13.788 7.182-27.765 12.535-41.901 18.378-13.242 5.476-25.192 13.402-38.782 16.992-7.134 1.885-13.157 4.977-19.716 8.115-3.619 1.734-7.172 2.328-10.687 4.486-2.931 1.79-9.274 4.166-11.234 6.946-.32.462 11.29-3.695 12.515-4.119 4.618-1.592 9.67-3.345 14.24-5.504 8.86-4.194 17.323-8.387 26.069-12.534 18.811-8.925 39.253-14.467 57.941-24.221 9.161-4.778 17.172-9.962 26.662-13.76 16.342-6.54 32.402-10.612 48.715-18.443 5.41-2.602 11.526-4.854 16.578-8.087 2.554-1.64 4.938-5.127 7.577-6.399 1.386-.669 5.57-.952 7.191-1.517 4.203-1.48 7.954-4.307 11.611-6.588 5.193-3.242 16.512-14.598 23.326-12.516 1.78.84-9.49 6.767-10.33 7.257-4.184 2.432-8.52 5.334-12.902 7.728-2.86 1.564-28.342 13.533-30.951 16.368 1.421-1.03 7.593-1.03 8.408-.695-1.338 1.027-7.672 5.448-8.868 5.268 2.035.481 6.851-1.592 11.799-4.156-5.136 3.384-9.905 6.805-10.395 6.362 1.216 1.102 12.336-5.25 13.816-6.277.961-1.037 9.227-6.22 9.622-5.928-1.507-.622-.282-1.338.472-1.762 3.317-1.876 6.54-4.354 10-6.249 7.925-4.354 13.1-8.67 21.364-11.224-2.818 4.1-12.138 10.763-16.276 14.212-5.833 4.853-13.194 8.727-19.81 12.402-8.246 4.58-16.512 9.293-24.664 13.826-15.098 8.388-31.242 14.75-46.415 23.175-26.021 14.448-53.654 25.399-80.485 38.197-9.312 4.43-19.509 7.144-28.679 11.856a259.32 259.32 0 0 1-18.802 8.765c-5.871 2.45-11.714 4.957-17.652 7.247-.688.274-10.442 3.412-10.235 3.082 3.1-4.91 21.582-6.427 25.145-12.11-3.27 2.667-24.334 8.66-27.35 9.82-5.843 2.243-12.045 8.576-19.17 8.143.575-.528 1.15-1.046 1.725-1.574-5.965.33-13.203 4.693-19.094 6.38-4.985 1.433-10.357 3.46-14.966 5.297-8.2 3.26-16.719 5.975-24.786 8.897-23.995 8.68-47.64 18.227-72.644 24.06-17.718 4.138-35.342 9.406-52.947 14.59-8.387 2.46-16.737 5.08-25.163 7.398-10.97 3.025-22.12 5.503-33.193 8.133-2.036.48-13.91 2.563-22.732 4.43 7.248-2.837 14.024-8.549 1.33-6.579-10.349 1.612-21.121 3.977-31.168 6.4-11.507 2.78-22.628 5.305-34.088 8.208-4.533 1.15-8.5 2.545-13.477 2.931-7.483.575-11.837 3.553-18.5 4.184-30.96 2.922-64.303 8.35-96.073 12.648-7.992 1.084-14.4 3.874-22.704 3.968-4.552.056-8.039 1.074-12.365 1.63-4.721.603-9.188-1.121-13.75-.839-18.265 1.15-36.209 6.598-54.897 6.701-17.181.085-35.22 2.818-52.363 4.241-14.09 1.169-29.037.396-42.89 1.527-15.673 1.282-31.968 1.687-47.415 3.016-2.875.245-69.977 2.158-70.712-1.932 4.967-.141 19.952 2.243 23.816-1.103 1.63-1.413-7.125-.358-6.918-.358-6.04.066-12.647-.17-18.84-.32-5.946-.151-12.034-.424-18.15-.255-10.575.292-20.876-.085-31.384.81-13.487 1.15-26.917-1.903-40.365-1.988-12.3-.085-21.507.142-33.533-.839-10.828-.876-21.393-2.016-32.297-1.64-12.921.453-25.512-2.195-38.367-3.873-20.367-2.658-40.893-4.948-61.363-6.503-11.413-.867-22.468-2.535-33.872-3.411-8.086-.623-31.996.179-36.529-5.797 7.521-1.47 18.689 1.292 26.257 2.347 5.834.81 11.13 1.536 16.85 2.158 8.37.915 16.626 1.574 24.834 2.8 26.351 3.91 52.711 4.928 79.345 7.294 11.743 1.037 24.004-.18 35.813 1.725 8.604 1.376 18.16.433 26.878.64 21.743.519 42.335 2.432 64.219 1.848 23.09-.613 45.105-.424 67.828-1.056 7.87-.226 14.975-.047 22.873.245 10.263.387 21.016-1.074 31.327-.763 34.88 1.055 69.835-4.873 104.329-5.702 13.024-.311 25.512-.066 37.405-4.08 5.702-1.923 14.392-2.036 21.064-2.922 12.092-1.603 23.75-2.102 36.313-2.573 7.671-.283 18.01-1.093 24.833-4.6-15.692-2.374-31.035 2.319-46.755 3.073-20.752.99-42.589 1.395-63.313 4.656-15.014 2.365-30.696 1.47-46.058 2.695-18.34 1.46-36.99 1.197-55.36 1.838-54.84 1.913-110.275 2.535-165.342 1.084-28.217-.745-57-1.706-85.367-3.808-26.238-1.95-52.193-5.56-78.506-7.568-14.212-1.083-29.696-1.96-43.861-4.184-68.591-10.772-137.57-22.44-205.538-34.927-27.633-5.08-54.907-11.121-82.314-17.473-10.49-2.432-86.893-22.6-86.44-25.569 8.66-.999 21.232 4.694 29.724 6.739 5.457 1.31 10.404 3.204 15.71 4.655 9.368 2.554 18.934 4.543 28.378 6.814 24.654 5.928 49.082 12.752 74.368 17.407 85.3 15.72 170.583 34.513 257.08 41.091 35.748 2.724 71.023 8.708 106.987 9.877 32.006 1.037 64.718 5.589 96.78 4.118 14.495-.669 30.762 1.753 45.473-1.272-15.362-3.581-32.213-.283-47.537-.876-14.334-.556-28.895-.198-43.324-1.65-9.302-.933-18.802-.01-28.132-.66-11.13-.782-27.661.962-38.697-2.28 2.545-1.395 8.425 1.583 10.273-.735 1.564-1.734-21.846-2.696-24.39-2.62-13.883.396-27.417-3.176-41.026-4.6-20.554-2.139-41.891-3.43-62.21-5.984-19.264-2.422-38.876-3.544-57.358-8.397-17.69-4.646-36.727-6.484-54.973-8.84-17.869-2.31-34.277-3.29-51.325-5.664-17.247-2.404-33.787-10.179-50.959-12.045-39.733-4.316-75.744-20.489-114.93-28.028-10.905-2.092-21.734-6.597-32.487-9.632-7.766-2.196-16.7-2.582-24.683-5.042-5.72-1.762-55.41-16.859-55.783-16.06 1.094-2.355 32.9 8.162 37.707 7.634-1.291-.31-2.026-1.008-2.224-2.092 3.534-2.11 14.269 4.486 17.897 5.457 8.755 2.337 17.586 4.854 26.21 7.172 7.85 2.12 16.21 2.997 24.258 4.929 7.38 1.772 22.26 8.708 29.093 5.523a3.961 3.961 0 0 1-1.715-1.376c5.052-1.508 11.96 4.109 17.256 3.506-5.211-4.59-16.247-6.41-22.948-7.446-7.747-1.197-11.913-1.385-19.858-3.383-12.996-3.27-26.595-7.2-39.856-9.575-6.418-1.15-13.119-1.678-19.254-3.13-7.323-1.733-13.854-4.985-20.866-7.19-10.555-3.308-21.412-4.6-32.41-7.888-8.294-2.48-16.587-4.967-24.881-7.446-1.187-.348-20.96-7.323-21.412-6.89 1.724-2.016 16.964 3.563 19.998 3.309-4.015-2.969-12.977-5.372-17.84-6.776-2.488-.717-5.485-.415-7.85-1.423.047.013-4.306-2.565-6.089-3.814V0h1920v14l-7.987 8.713c2.323-1.072 3.867-1.758 3.85-1.694-.319 1.441-3.15 2.449-5.387 3.37L1909 26l-2.882 1.589c-1.546 1.69-3.095 3.574-5.297 5.097zM258.347 249.41l.01.043c.835.17 1.669.34 2.503.496a85.479 85.479 0 0 0-2.513-.539zm0 0a95.544 95.544 0 0 0-2.492-.46c.835.16 1.669.332 2.503.503l-.01-.043zM1795.36 118.013c-.143.155-.217.282-.215.38.005-.153.1-.29.268-.412l-.053.032zM257.646 237.197c-1.187-.631-2.384-1.423-3.628-1.932-7.973-1.526-19.094-1.13-26.549-4.599 4.6 3.308 13.147 3.506 18.613 4.675 2.592.556 9.302 2.865 11.564 1.856zm41.204 8.558c-5.485-3.384-11.752-4.392-17.775-5.099-3.59-.414-8.444-.348-11.714-2.592-1.725-.31-6.918-2.28-8.53-1.244-.706.547 15.947 4.77 17.615 5.165 5.664 1.338 14.269 4.505 20.404 3.77zm-61.89 1.8c.96-.198 1.8-.01 2.506.594-.951.207-1.79.01-2.507-.594zm30.912 17.906c-.49-2.808-14.759-2.78-16.983-3.901-4.006-1.282-8.953-1.574-13.034-2.413-5.221-1.074-11.036-3.355-16.559-2.62 3.148 1.875 46.651 9.632 46.576 8.934zm33.306-5.74c-.208.123-19.622-3.382-19.905-3.665 1.64 1.668 6.513 1.696 8.709 2.818 1.96.612 9.34 1.828 11.196.848zm192.447 28.566c.18-.113-.735-.376-1.979-.688-.395.038.65 1.48 1.98.688zm26.474 2.78c-.782-.49-1.63-.546-2.545-.178.792.461 1.64.527 2.545.179zm117.391 39.517c.471 3.13 11.913-.075 12.977.623-1.225-.971-4.74-.736-6.465-1.348-.5-.113-6.71-.594-6.512.725zm53.135 2.498c-3.12-.34-6.22-.48-9.264-1.451-4.543-.104-21.271-3.176-24.73-.274.726-.622 13.458.971 14.768 1.065 5.693.424 13.703 3.007 19.226.66zm142.894 2.865c-1.602-.122-3.694.198-4.675.226-1.145.028-7.896 1.116-8.779.855 3.264 1.336 9.876-1.306 13.454-1.081zm-13.515 1.056a3.7 3.7 0 0 1 0 0zm42.41-.82c-4.391-.33-9.075-.057-13.41.735 2.817 1.055 6.465.141 9.424.83 1.329-.529 2.658-1.047 3.986-1.565zm10.697-.029c-1.46-1.394-3.1-1.168-5.504-.395.066.292.132.574.208.857 1.819.48 3.59.33 5.296-.462zm-44.578 17.992c-.292-.189-4.457-.613-4.439.396.934.235 4.722-.17 4.44-.396zm19.292-.18c-1.244-1.45-12.45-1.328-13.364.283-.556 1.48 8.718.67 9.623.905-.424.038 4.769.038 3.741-1.187zm29.292-1.206c-4.006-.97-20-.923-23.383 1.546 1.63-1.093 12.233-.396 14.712.386 3.26.16 5.749-.64 8.67-1.932zm265.345-33.136c-5.71-1.706-13.76.923-19.282 1.074-5.023.142-10.96 1.621-15.786 3.148-2.186 2.441 7.71-3.44-1.923 2.394 2.083 3.242 16.107-1.659 19.99-2.375 3.572-.66 14.994-.943 17.001-4.241zm84.585-13.722c-.697-2.14-12.073-.51-12.76 2.007 1.262.217 2.535.424 3.797.641.773-.141 9.49-1.037 8.963-2.648zm44.823-10.216c.528-.735 16.615-1.046 20.102-4.543-4.363-.565-13.279 1.357-16.888 3.468-.67.17-2.78.349-3.214 1.075zm13.364-61.523c3.94-.943 17.378-1.263 18.18-6.022.366-1.12-21.57 4.895-22.529 4.938 1.881-.083 2.663 1.008 4.349 1.084zm17.718 55.152c1.263 2.827 6.003-1.744 7.389-2.63l-.396-.848c-4.826.16-3.968 1.687-6.993 3.478zm159.83-102.774c6.031-.189 15.21-2.064 19.772-6.003-5.777-.066-14.825 2.95-19.773 6.003zm-37.548 10.848c.613.197 1.216.395 1.82.593 1.945-.306 11.61-3.273 12.64-4.922-1.286 2.024-13.967.508-14.46 4.329zm-88.543 23.72c3.337 3.365 8.633 1.273 11.668-1.696 7.238-2.77 15.71-3.666 23.08-5.88 2.253-.679 20.508-3.808 18.237-6.748-1.33-1.838-26.7 6.653-30.46 7.54-3.233.763-23.128 6.116-22.525 6.785zm3.506 73.663c-5.786.848-13.222.706-18.066 4.457.716 2.224 5.767-.49 6.955-1.159 3.967-1.48 7.86-.264 11.111-3.298zm50.94-27.737c-2.385-3.09-9.764.443-12.233 2.159-5.542 1.63-11.065 3.28-16.295 4.825-8.398 2.478-18.161 3.43-25.833 7.228 9.029 1.113 18.66-2.704 27.039-5.758 9.057-3.308 18.971-3.251 27.321-8.454zm31.524-68.13c-1.856 1.763-13.495.604-17.19 4.138 1.31.057 2.62.104 3.92.151 4.524-1.338 9.727-.763 13.27-4.288zm-12.365 63.786c3.808-1.122 13.732-2.554 16.239-6.004.245-.33-23.297 2.931-16.239 6.004zm22.892 6.521a573.079 573.079 0 0 1-4.024-.103c-.697.085-6.625 1.564-6.126 2.705.82 1.866 9.255-1.725 10.15-2.602zm23.42-7.162c-.603-.16-1.197-.33-1.8-.5-.97.142-6.314 2.12-5.645 3.384 1.112 2.082 7.992-1.848 7.445-2.884zm27.953-8.265c-.782-.462-1.592-.377-2.45.254a3.433 3.433 0 0 0-1.914.971c.239-.237 3.722-.304 4.364-1.225zm6.755-2.088c.307-.057.577-.25.813-.58-.372-.212-.711-.287-1.018-.23l.205.81zm6.196-1.415c.008.048.13-.079.385-.475.042-.056.04-.082.018-.094l-.403.57zm-1.541.292a.9.9 0 0 0-.204.148.699.699 0 0 0 .32-.18l-.116.032zm6.346-3.264c.547.15-2.271 1.272-4.222 2.017.791-1.065 2.346-2.545 4.222-2.017zm3.826-14.222c-2.205 2.743-18.82-.282-20.385 5.07-.452 1.405 8.605-.942 9.783-.998 2.412-.867 9.066-1.989 10.602-4.072zm288.408-112.038c-2.8.519 1.395-1.027 1.376-.99-.462.33-.914.66-1.376.99zm-66.122 35.135c.052-.108.11-.215.171-.32-.073.1-.13.208-.171.32zm15.418-2.894c6.38-1.8 11.97-6.248 17.662-9.386 7.285-4.015 18.65-7.465 24.249-13.59 1.517-.726 7.228-2.328 7.813-4.072.537-1.753-11.215 3.742-11.705 3.977l-18.887 9.048c-4.08 1.95-7.822 4.552-11.649 6.56-5.292 2.77-19.706 4.88-22.73 10.036 1.785-2.477 12.93-1.912 15.247-2.573zm-59.506 22.949c-1.282.528-4.213 1.225-5.805 2.29 3.006-1.658 11.61-2.026 13.269-4.768-.068.113-7.125 2.337-7.464 2.478zm-50.958 27.67c-1.329.49-2.686 1.216-3.647 1.612-.207.084-7.61 3.912-7.95 3.92 3.515.11 8.102-4.09 11.597-5.532zm5.787-1.658c2.12.254 6.616-2.423 8.303-3.11 2.309-1.527-8.313 3.11-8.303 3.11zm-114.312 22.853c-.313.027-.525.081-.45.161.254.028.507 0 .757-.041l-.307-.12zm1.576.218c.019-.02-.038-.02-.038-.038-.688.104-1.347.207-1.847.283.641.028 1.291.066 1.885-.245zm2.498-.349c-.566.848-2.658.66-1.998.226 1.083-.16 2.035-.283 1.998-.226zm-.698 13.354c3.091.622 8.869-1.3 11.31-3.61 2.325-.818 11.347-5.54 13.16-5.24-7.51-1.247-17.742 9.925-24.47 8.85zM1824.46 54.306c-.202.131-.415.273-.637.424.225-.124.45-.245.675-.366l-.038-.058zm0 0l.038.058c.598-.32 1.197-.634 1.785-.962.075.018.462-.217.99-.575-.33.179-.641.377-.971.565-.225-.054-.914.312-1.842.914zm30.718-22.411c-2.054-1.847-11.111 8.303-13.486 10.056-1.3.961-11.253 8.755-14.42 10.885 10.415-5.787 19.849-12.016 27.907-20.941zM151.14 216.228c2.618 2.376 20.332 6.06 24.47 5.023-2.542.587-9.873-3.339-13.509-2.997-.622-.15-10.31-1.526-10.96-2.026zm24.608 4.986zm1249.8-32.77c-.606.102-1.19.133-1.727.048.466.15 1.01.155 1.614.054l.113-.102zm0 0l-.113.102c.603-.101 1.265-.309 1.967-.582-.622.203-1.249.377-1.854.48zm5.435-1.733c.283-.095 8.906-3.45 9.33-3.356-3.44-.885-8.85 3.026-12.911 4.618 1.291-.424 2.563-.96 3.581-1.262zm-206.857 57.234c1.97.604 6.738-1.3 8.434-1.705 2.865-1.33-9.471 1.46-8.434 1.705zm12.685-3.034c1.404.433 8.01-1.81 5.57-1.932-1.244.15-4.92 2.054-5.57 1.932zm-56.943 9.509c.547.726 3.958.047 4.401-.537.16-.283-3.986 0-4.4.537zm-987.1-25.644c-2.11-.528-4.231-1.093-6.333-1.612-.99-.593-3.12.368-1.583.434 1.017.452 1.545.311 1.583-.434.283.387 2.96.98 6.333 1.612z" fill="${i}" fill-rule="nonzero"/></svg>`,32:`<svg viewBox="0 0 1920 221" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M3.747 220.063L0 221V0h1920v63l-33-45-402 6-333 23-351 31-349 50-149 26-247 54-44 10-8.253 2.063c-1.615-.021-3.064.052-3.747.442 8.343-4.816 20.442-4.762 29.507-7.39 8.358-2.42 16.862-4.048 25.282-6.291 18.874-5.032 37.035-10.41 56.348-13.098 7.958-1.106 15.264-4.763 23-6.3 3.48-.69 6.96-1.605 10.463-2.135 7.098-1.076 14.027-2.105 21.11-3.55 16.117-3.287 33.24-8.603 47.068-13.597 8.842-3.188 19.889-4.609 29.153-5.477 5.07-.476 44.71-6.13 45.056-9.172-.039.407-28.209 1.413-33.125 3.887 3.549-2.789 17.884-3.28 22.047-4.064 8.42-1.59 17.538-4.402 26.08-4.494-1.39.092-2.465.645-3.226 1.66 2.144 3.218 16.525-2.42 19.467-2.927 6.069-1.053 12.222-.984 18.13-3.15-5.762.161-11.078 1.037-16.747 2.105-2.136.407-8.359.576-11.093 1.36 3.88-1.86 10.14-1.875 14.096-2.62l25.712-4.84c19.62-3.687 39.325-6.952 58.99-10.378 36.283-6.315 72.62-13.382 109.117-17.608 23.407-2.704 46.715-8.504 70.345-10.486 28.738-2.404 57.008-8.258 85.463-12.36 11.892-1.72 23.814-3.94 35.767-5.162 14.957-1.53 29.945-3.227 44.917-5.17 6.8-.884 13.598-1.76 20.396-2.643 3.895-.507 10.525.023 14.673-1.214-3.564.622-10.194-.092-12.445.185-5.485.668-10.947 1.505-16.432 2.143-1.16.138-6.284-.062-7.152.538 2.512-2.55 13.95-2.105 17.615-2.597 6.315-.845 12.414-1.529 18.514-3.403-10.286-1.168-20.527.008-30.89 1.367-16.462 2.167-32.91 3.388-49.38 5.708-20.365 2.865-40.953 4.863-61.103 8.128-25.958 4.202-52.707 6.345-78.672 10.962-18.491 3.28-37.527 6.468-56.156 8.181-23.968 2.197-48.812 6.668-72.312 11.639-15.118 3.195-30.682 4.202-45.9 6.868-14.458 2.527-28.93 5-43.38 7.59-10.371 1.85-20.711 3.879-31.06 5.83-6.96 1.314-13.965 3.011-20.987 3.964-3.254.442-7.871.048-10.904 1.37 8.277-4.042 21.74-4.864 31.062-6.624 5.431-1.022 10.878-1.975 16.294-3.073 2.212-.454 7.236-2.566 11.123-3.61-9.432 1.336-31.276 4.976-31.573 6.229.494-2.09 17.085-3.925 19.044-4.94-22.616.876-45.186 9.104-67.395 12.062 10.694-3.703 21.648-5.97 32.772-8.067 101.004-19.074 202.7-37.573 304.54-52.276 45.555-6.576 91.094-14.58 136.634-18.614 11.692-1.03 22.984-3.749 34.615-4.57 10.24-.723 20.511-2.65 30.567-3.834 6.537-.776 11.846-2.566 17.6-3.365 4.962-.683 10.309.377 15.402-.092 5.3-.492 10.594-1.221 15.887-1.828l40.484-4.656c22.64-2.604 45.486-4.954 68.27-6.214 12.983-.715 26.02-2.49 39.118-3.188 25.827-1.383 52.36-3.519 77.965-7.206 21.51-3.096 44.426-2.113 66.243-3.987 29.169-2.505 58.506-2.82 87.59-6.215 22.263-2.604 44.849-.768 67.073-3.71 23.945-3.173 48.72-1.883 72.864-3.25 48.113-2.727 95.888-2.758 144.031-4.794 18.207-.768 36.498-.122 54.712-.637 16.655-.469 32.357-1.337 48.574-1.352 11.139-.008 22.708 1.552 33.793.445 16.033-1.59 32.396 0 48.65-.875 13.514-.723 27.41 1.275 40.647.115 7.09-.622 14.22.008 21.387.438 7.228.43 14.073-2.505 21.11-2.274 4.325.146 9.472 1.429 14.196 1.49 5.578.07 11.293-.622 16.932-.684 5.823-.061 11.9.853 17.753 1.537 4.74.553 6.968-.23 11.377-.715 2.543-.276 13.32.507 12.16-2.158 8.904-1.736 20.78-1.299 29.6.745-5.193.96-.338 1.352 2.051 2.09 2.712.837 5.447.66 8.166.683 5.224.039 10.862.584 15.664.822-.008-.223-.085-1.429-.146-2.596.3 3.549 2.243 1.551 3.664 4.878 2.159 5.047.507 15.256.692 20.695.291 8.873.591 17.746.89 26.619.108 3.165 2.336 10.04-2.865 8.965-.084.407-.13.975-.169 1.582-.046-.476-.1-.96-.115-1.398-4.24-.507-10.263 2.036-14.604 2.689-4.577.688-9.263.939-13.878 1.37.96-.012 1.82.307 2.57.95-2.304 3.218-13.29-1.199-16.078.092.568-.354 1.444-.592 2.473-.753-6.76.545-13.497 1.636-19.858 1.406-7.759-.284-16.178 1.951-24.06 2.274-7.267.3-14.696.276-21.925 1.436-8.588 1.375-17.976.784-26.295 3.657 7.774.576 15.28-.423 23.038-1.168 6.047-.581 16.017-3.725 21.95-2.076-1.815-.112-7.987 1.406-9.635 1.57l-16.624 1.612c-10.77 1.053-21.487 1.483-32.22 2.413-11.169.968-22.33 2.12-33.493 3.18-2.42.23-18.537.722-25.067 1.39 3.365-.722 8.405-1.95 7.898-2.243-6.622-.683-10.586.523-16.171 2.197 1.851.139 3.695.33 5.531.577-28.5 2.734-57.385 4.64-85.985 7.297-30.644 2.85-61.303 4.856-91.87 7.152 1.498-.307 2.796-.814 3.533-1.85.016-.024-10.401.122-11.753.337-2.917.465-9.636.22-12.31 1.736 3.123-1.768 10.332-.1 16.197.108-10.017.768-20.035 1.56-30.03 2.443-17.806 1.575-35.629 3.403-53.443 4.04-13.344.477-26.35 3.826-39.655 4.156-9.142.223-18.168 1.506-26.526 4.11 1.647.077 7.639.375 7.384.377 16.04-.085 32.41-2.005 48.441-2.743 7.582-.345 15.126-1.475 22.7-1.966 2.728-.185 5.232-.085 7.96-.13 5.83-.107 17.684-3.629 23.294-1.746-3.142-.933-12.917 1.7-16.05 1.983-4.733.43-9.273.515-13.966.63-12.66.307-25.436 1.813-38.065 2.466-15.725.814-31.32 2.458-47.03 3.365-16.831.976-34.031 2.558-50.909 2.827-10.97.177-22.109.492-33.056 1.314-15.464 1.167-31.45 3.58-46.899 3.84-17.054.292-34.354 1.383-51.37 2.758-20.227 1.637-41.806 4.034-61.979 1.629 4.087-1.652 9.595-.453 14.02-.676 4.51-.23 9.003-.837 13.513-1.068 7.49-.384 15.049-.799 22.57-1.075 25.035-.93 50.01-2.535 75.038-4.663 4.548-.384 107.165-3.718 107.234-6.691-.038.23-22.816 1.336-26.073 1.42-8.435.224-16.401-1.666-24.82-1.59-21.772.193-43.381 3.872-64.999 4.671-65.712 2.436-130.917 12.053-196.699 14.197-24.629.806-48.98 4.801-73.533 4.84-12.022.023-24.275.491-36.252 1.981-4.94.623-9.725 1.629-14.757 1.783-9.019.269-24.052 2.704-32.58-.254-.914-.315 3.619-1.867 3.242-2.082-4.27-2.458-13.697.984-18.437 1.468-8.043.822-15.986 1.367-24.03.683 13.345-3.35 27.503-4.21 41.108-5.131 6.176-.423 12.521-.162 18.706-1.03 8.004-1.121 18.997-.607 26.464-3.74-5.462-3.02-16.332-.57-22.562-.116-7.221.522-14.627 1.567-21.87 1.59-7.614.015-15.05.346-22.694.899-4.809.353-18.513-.983-22.178 1.237 6.23-3.772 17.047-.093 24.022-3.234-17.577-3.165-36.344 5.024-54.113 3.241 6.73-1.905 1.114-1.475-1.336-2.081-1.798-.446-3.987-1.13-5.17-1.522-2.635-.875-6.584-2.343-9.995-2.85-9.502-1.413-17.953-.153-27.678.53-13.551.953-27.67 1.706-41.145 3.534-5.209.7-9.703.914-14.996 1.022-3.518.07-18.675 3.403-21.387.914-.315-.284 10.702-1.582 11.116-1.652 3.987-.637 7.145-2.335 11.247-2.972 15.164-2.351 30.751-1.921 45.893-4.495 8.696-1.482 17.976-.061 26.595-2.42 10.163-2.78 21.671-3.879 32.664-6.068 18.06-3.595 36.751-5.362 55.058-7.544 16.032-1.905 32.403-4.363 48.297-5.062 7.013-.308 14.189-1.322 21.156-2.205 4.248-.546 8.773-1.537 12.553-2.574 1.702-.467 9.355-1.052 11.97-1.791-1.282.361-2.558.723-3.835 1.085 26.841-.6 53.552-5.194 80.454-7.26 35.36-2.712 70.537-4.379 105.767-8.312 18.698-2.09 36.628-4.064 55.45-4.471 19.811-.43 39.547-5.109 58.537-6.968-3.165-.453 3.272 0 3.618-.814-.07.161-22.409 1.49-23.868 1.736 1.128-.146 4.868.33 5.429.109-3.334 1.312-11.49 1.812-15.007 1.118 1.275.056 4.715-.967 6.205-.989-14.027-.284-27.74 2.474-41.552 4.202-16.67 2.082-33.648 1.936-50.456 3.358-28.762 2.427-57.923 3.625-86.654 7.459-40.43 5.393-81.26 2.581-122.152 6.399-6.261.584-12.584.707-18.829 1.49-4.901.615-10.102 2.95-14.972 3.135-5.677.215-11.815-.454-17.815-.116-10.617.6-21.34 2.267-31.904 3.55-17.83 2.166-35.829 3.572-53.774 5.907-5.447.707-10.932 1.736-16.41 2.128-8.98.638-23.63 5.354-31.987 2.235 16.094-4.978 35.022-4.57 51.685-6.345 7.029-.745 13.981-1.767 21.072-2.635 3.595-.446 5.96-1.805 9.395-2.32 4.133-.622 8.504.092 12.76-.469 27.148-3.556 54.373-4.509 81.437-7.705-3.495-2.058-9.725 1.813-12.898-1.183 3.134-.568 10.294-2.327 14.42-2.158-5.501-.968-13.828 1.09-18.883 1.46-3.972.291-7.982.476-11.992.714 3.81-.484 7.636-1.176 9.142-1.283 7.282-.53 14.242-1.46 21.44-2.428l1.268-.322c-2.381-2.59-21.226 1.267-24.621 1.728-2.735.369-15.072 3.45-16.724 2.028.553.653 2.32.791 4.502.715-2.105.169-4.218.276-6.3.553-5.123.676-10.055 1.375-15.271 1.751-14.043 1.022-27.218 3.08-40.969 2.604 8.381-2.88 18.514-2.427 27.24-4.74-20.057-.46-40.868 5.509-60.864 6.968-7.114.515-14.181 1.452-21.28 2.374-15.126 1.959-30.16 3.165-45.293 5.124 1.836.169 9.065 1.068 14.988 1.444-13.383.453-26.719.077-40.116 1.091-22.201 1.675-44.264 6.276-66.435 8.212-34.615 3.02-68.654 11.915-103.224 14.911-19.428 1.682-38.994 5.454-58.33 8.573-19.996 3.227-39.747 5.977-59.574 9.426-33.978 5.915-67.787 11.116-101.657 17.515-12.675 2.397-25.481 4.28-38.241 6.469-9.849 1.69-19.49 2.988-29.407 4.824-3.964.73-39.04 8.358-40.116 6.023 16.509-6.837 37.496-7.713 55.042-11.032 7.113-1.344 14.22-1.997 21.34-3.342 17.554-3.318 35.077-6.898 52.677-9.956 76.959-13.351 154.624-24.513 232.006-36.835 63.208-10.064 127.123-15.587 190.554-24.045-4.156-.154 2.166-.66 2.95-.753 2.258-.276 4.54-.169 6.79-.276 1.114-.054 2.136.092 3.765.015 12.114-.553 24.52-2.965 36.59-4.056 20.618-1.867 41.152-4.932 61.748-6.584C916.348 88.75 952.2 84.84 987.99 81.237c66.104-6.652 132.754-11.746 198.997-17.085-28.962-.407-58.983 3.795-87.891 6.238-15.18 1.283-30.52 2.62-45.532 3.603-16.063 1.052-32.61 4.97-48.689 4.386 4.11-1.736 12.553.584 15.964-2.412-1.083.83-11.001-1.144-13.974-.975-3.88.215-7.905.607-11.746 1.183-4.824.722-9.495 1.636-14.388 2.15-20.788 2.175-41.668 2.974-62.371 5.355-28.685 3.296-57.431 4.556-86.009 9.157-28.83 4.64-59.036 4.195-87.222 10.578-6.86 1.552-13.889.538-20.81 1.253-5.578.576-11.109 1.797-16.701 2.25-25.082 2.028-50.018 5.8-74.985 9.403-31.896 4.602-62.824 9.733-94.443 15.88-16.21 3.149-32.795 2.703-49.05 4.939-20.442 2.819-40.9 7.543-61.196 10.447-11.6 1.66-23.138 4.033-34.684 6.038-10.525 1.829-20.55 1.683-31.167 3.18-23.476 3.32-46.822 9.358-70.267 13.23-18.338 3.026-37.712 5.415-55.734 9.794-11.884 2.88-24.106 5.231-36.144 7.375-15.203 2.711-30.06 6.153-45.324 9.264-2.39.484-42.275 8.481-42.298 8.996.154-3.664 52.83-12.422 58.691-14.988-.768.039-4.647.177-4.524-.123 1.39-3.487 18.221-3.664 22.439-4.524 11.223-2.29 22.455-4.579 33.678-6.868 9.971-2.028 19.827-3.388 29.722-5.854 11.754-2.927 24.045-4.54 35.944-6.79 9.849-1.86 25.267-2.006 33.825-7.568-.765.027-1.53.05-2.295.07 2.566-.117 7.982-2.156 10.66-2.666 5.047-.968 10.924-1.368 15.749-3.25-20.389-1.613-41.599 8.681-59.675 10.248-7.551.653-17.223 2.497-24.652 4.525-13.336 3.634-27.202 6.83-40.86 9.364-15.365 2.85-30.33 6.983-45.686 10.118-15.487 3.165-31.604 4.847-46.676 9.126-17.37 4.924-35.076 8.65-52.784 12.522l-31.411 6.867c-3.311.73-20.273 2.29-21.61 4.34.937-1.981 11.761-3.625 14.48-4.224 5.64-1.23 10.748-2.251 16.018-4.594-10.048.346-22.747 3.365-32.542 5.961-3.78.999-7.136 2.428-11.054 2.965-1.303.178-3.815-.029-6.017-.058zm249.698-62.402l-.06.003a.86.86 0 0 0-.253.286c.065-.103.182-.197.313-.289zm0 0c.13-.09.275-.18.394-.271-.18.088-.334.18-.455.274l.061-.003zm179.793-20.552c-3.372-3.05-24.844 3.895-29.507 4.494-5.539.707-10.862 2.312-16.355 3.203-9.38 1.521-19.251 2.197-28.293 5.685 12.506-.177 25.881-4.171 38.21-6.276 11.209-1.913 22.356-3.918 33.664-5.885 1.09.046 1.85-.36 2.281-1.221zm29.307-4.67c-8.427.299-17.046 1.443-25.228 3.664 8.066.015 15.749-1.652 23.669-3.096.522-.192 1.037-.384 1.56-.569zm569.088-57.04c2.935-.177 5.892-.523 8.834-.86-5-.193-11.108-1.944-15.418.606-.276.162 5.954.292 6.584.254zm23.424-2.83zm21.209-1.365c8.796-.852 17.792-1.236 26.71-1.905-3.31-.077-7.013-.614-9.11-.584-6.914.108-13.99 1.176-20.865 1.821-4.635.44-13.564-.394-17.818 1.96 3.719-2.001 16.101-.807 21.083-1.292zm-135.911 23.2c-.477-.076-.96-.123-1.445-.13-.522.084-1.037.176-1.559.26 1.106-.068 2.635.016 3.004-.13zm115.454-11.538c-.145.075-.293.148-.444.218a2.42 2.42 0 0 0 .444-.218zm-17.078-.392c-7.974-.799-16.747-.76-25.22.323-8.727 1.114-17.723 1.398-26.442 2.688-8.135 1.199-16.424 1.39-24.575 2.566-4.978.715-15.072-.084-18.974 2.39-.876.583 10.486.422 12.39.276l18.138-1.36c12.038-.899 24.337-1.13 36.298-2.72 5.692-.76 10.985-1.543 16.762-1.636 7.3-.12 21.365 1.297 28.257-1.917-3.2 1.227-13.774-.325-16.634-.61zm91.094-5.823c1.882-.146 4.579-.046 7.206-.154-5.539-.007-12.253-1.428-16.916.254 2.39-.446 7.844.046 9.71-.1zm34.915-2.95c-4.179.553-9.257 1.698-13.013.161 2.389-.63 11.684-2.827 13.013-.16zm3.949-1.244c9.656-1.675 19.827-2.213 29.56-1.667-8.826 2.596-20.403 2.558-29.56 1.667zm30.59-9.265c-1.237-.1-2.481-.192-3.718-.284-1.176.292-2.351.576-3.526.868 2.412-.192 4.832-.384 7.244-.584zm8.05-.645c-2.181-.484-4.309-.315-6.383.514 2.128-.176 4.256-.345 6.384-.514zm98.53-1.106c-1.259.576-7.973.138-9.894.3l-6.983.575c5.962.361 12.392 1.183 16.878-.875zm177.011-5.309c2.205 1.43 5.938.515 8.712-.054-2.22-1.467-5.939-.553-8.712.054zm-44.732 5.024c4.908-.092 9.64-.138 14.565-.56-1.583.268 6.921-.4 5.477-1.39-2.274-1.568-11.3.076-14.273.16-5.286.146-14.074-.514-18.921 1.721 1.974-.845 10.378.115 13.152.07zm34.469 43.527c-10.501-.73-23.192-.814-33.302 2.143 9.749.922 20.38-.653 30.122-1.52l3.18-.623zm25.443-1.529c-3.372-3.31-12.852-.384-17.077.784 2.35.169 4.709.33 7.06.5 3.295-.677 6.79-.178 10.017-1.284zm70.544-6.384c-6-.468-12.022-.115-18.022.077-.86.031-11.615 1.506-10.985 2.282 2.689 3.28 23.56-1.452 27.379-1.805.545-.185 1.09-.377 1.628-.554zm114.463-8.788c-5.561-3.864-12.913-.999-18.967.407-6.168 1.43-13.251.722-19.481.876-8.589.215-16.87 2.182-25.413 2.55-8.696.377-16.124.254-24.644 2.605.484 2.773 77.973-4.61 86.293-5.385 1.106.169 1.844-.185 2.212-1.053zm12.13-.53c-.01.003-.02.006-.027.01a.157.157 0 0 0 .027-.01zm79.725-6.852c-.03.008-.06.017-.084.028a.846.846 0 0 0 .084-.028zM270.939 147.764c.576-.23 1.221-.4 1.744-.676-.492.261-1.083.484-1.744.676zm-37.934 7.267c.43.515 1.037.576 1.805.177 6.799-1.283 13.674-2.382 20.442-3.856 4.763-1.038 10.97-1.714 15.687-3.588-4.402 1.29-12.045 1.237-16.309 2.25-5.393 1.276-17.093 1.852-21.625 5.017zm29.522-10.54c-3.303 1.644-8.804 2.436-12.383 2.336 3.303-1.621 8.811-2.443 12.383-2.336zm46.408-7.298c-2.474 1-5.247 1.514-8.305 1.575 2.466-.998 5.224-1.513 8.305-1.575z" fill="${i}" fill-rule="nonzero"/></svg>`,33:`<svg viewBox="0 0 1920 358" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1917.452 7.061c-.313 1.498-4.576 1.888-6.03 2.812-2.74 1.734-5.044 4.348-8.481 6.12-9.324 4.802-19.8 9.275-29.307 12.818-3.205 1.191-6.139 2.275-8.976 4.057-1.82 1.152-1.694 3.001-3.776 4.376-3.127 2.12-7.57 2.682-10.92 4.425-6.333 3.282-11.638 8.597-18.251 11.54-13.593 6.052-27.322 13.061-40.674 18.483-6.1 2.479-12.586 4.802-18.802 7.64-6.477 2.952-6.138 6.09-13.254 8.655-.688-.997-.049-1.753 1.926-2.266-18.918 4.677-37.807 13.961-56.435 21.33-14.097 5.586-28.349 10.194-42.533 15.103-14.01 4.85-27.806 12.006-42.145 14.64-7.387 1.355-13.729 3.998-20.642 6.68-3.805 1.471-7.455 1.781-11.192 3.708-3.079 1.588-9.76 3.524-11.899 6.177-.32.397 10.486-2.13 11.812-2.556 4.599-1.5 9.43-2.634 14.068-4.435 7.63-2.952 15.133-6.322 22.665-8.674 15.094-4.725 30.488-9.324 45.418-14.978 16.933-6.41 34.109-14.33 51.507-19.18 13.565-3.786 26.8-5.102 40.296-9.837 12.984-4.55 27.051-11.328 38.757-15.162 7.203-2.362 14.213-4.89 20.97-8.239 4.658-2.314 16.053-9.75 21.543-7.136 1.723 1.124-10.544 5.422-11.454 5.78-3.814 1.501-7.755 3.428-11.744 4.86-4.068 1.46-33.117 10.84-35.682 13.865 1.455-.942 7.834-.244 8.621.194-1.433.89-8.365 4.734-9.517 4.425 1.55.561 4.918-.281 8.781-1.637-3.243 1.608-5.973 3.04-6.922 3.505-2.11 1.055 24.592-9.052 24.263-9.372-1.675-.716-.204-1.394.687-1.762 3.224-1.355 6.303-3.127 9.75-4.367 8.888-3.195 15.404-7.019 24.379-8.413-3.34 3.66-13.787 9.023-18.396 11.802-5.063 3.05-12.16 6.032-17.611 8.433-8.143 3.582-16.44 6.148-24.524 9.798-21.93 9.895-44.953 18.85-67.773 26.819-24.36 8.51-48.487 17.563-72.518 26.732-9.44 3.601-19.615 5.499-28.92 9.42-5.034 2.12-9.75 4.173-15.055 5.896-8.258 2.692-24.718 11.802-33.19 10.505.136.02 22.046-8.133 25.87-11.037-3.727 2.478-26.344 7.222-29.597 8.752-5.102 2.411-11.686 8.007-18.211 7.3.6-.503 1.21-1.016 1.81-1.53-5.673.078-10.543 3.835-15.83 5.393-3.64 1.075-7.445 1.278-11.211 2.556-7.523 2.566-15.22 4.948-22.927 7.01-20.167 5.393-37.856 14.048-58.159 18.618-18.26 4.105-36.055 9.42-54.393 14.755-20.487 5.955-41.07 11.59-61.683 17.128a11184.603 11184.603 0 0 1-30.943 8.249c-2.155.577-21.629 4.369-24.487 5.756 1.86-1.26 11.064-4.63 12.365-5.31 12.586-6.536 1.278-5.103-6.448-3.012-11.047 3.001-22.675 5.557-34.06 7.949-22.26 4.666-44.818 11.56-65.324 15.249-33.122 5.954-68.78 11.502-101.263 20.835-15.53 4.463-32.096 4.192-47.76 7.262-20.594 4.027-41.933 7.735-62.691 10.398-33.954 4.347-68.741 8.49-102.773 14.252-15.23 2.575-29.733 3.708-45.079 5.877-6.342.9-50.2 6.69-51.091 3.62 5.015-.706 20.429-.01 23.962-3.843-.62.668-20.206 1.568-21.987 1.694-11.483.804-23.217 2.198-34.67 2.895-10.602.649-20.623 4.318-31.186 4.415-12.625.106-24.418 1.975-36.8 3.224-12.239 1.24-22.008 1.491-35.107 1.917-9.295.3-18.231 2.353-27.41 3.108-10.485.871-21.203-.155-31.737-.02-24.863.31-49.678 1.404-74.705 2.111-9.75.271-19.383.145-29.2.649-7.63.397-31.05 4.105-35.833-.63 12.905-4.57 30.217-.939 43.616-1.607 9.12-.455 18.009-.648 26.993-.464 20.342.406 39.793-1.327 60.038-3.002 52.369-4.347 104.167-6.69 156.1-12.576 11.929-1.356 24.012-3.331 35.64-4.454 9.217-.89 18.608-1.181 28.135-3.05 7.687-1.51 14.978-1.24 22.83-2.314 9.982-1.375 20.826-3.36 31.011-3.543 18.822-.349 37.75-5.52 56.532-7.485 16.247-1.704 32.686-6.777 48.807-8.21 6.1-.532 12.14-.31 18.289-1.133 4.308-.57 10.088-.377 14.077-2.294 1.114-.533 4.154-3.65 3.912-3.553 6.36-2.489 16.081-3.38 22.646-4.444 11.812-1.917 23.197-2.963 35.426-4.173 7.823-.785 18.211-2.42 24.872-6.603-17.291-1.191-33.17 5.644-50.268 6.98-18.037 1.414-36.21 4.338-54.228 6.962-13.39 1.946-26.17 4.502-39.638 6.012-16.45 1.84-33.363 3.834-49.552 6.584-61.828 10.514-125.264 13.874-187.721 20.932-61.5 6.951-123.473 6.642-185.321 9.837-54.838 2.836-110.219 2.343-164.873-.455-18.85-.969-38.301 0-56.629-2.673-22.2-3.233-44.42-5.935-66.485-9.885-24.825-4.444-50.027-11.56-73.157-21.358-6.273-2.662-54.847-22.723-52.514-27.932 8.597 1.384 17.94 9.41 25.928 13.1 19.035 8.78 37.643 16.284 58.033 21.958 34.148 9.498 69.894 17.873 105.823 20.67 89.606 6.981 179.55 3.583 269.079 2.315 40.867-.581 82.044-4.648 122.756-7.29 14.707-.96 29.762-3.022 44.314-4.542 14.794-1.549 31.185-1.462 46.047-5.547-13.06-1.55-27.438 2.265-39.802 3.456-13.594 1.307-27.41 3.108-41.187 3.776-15.868.775-32.473 2.866-47.993 3.282-9.808.262-21.968 3.737-31.563 1.985 2.392-1.694 8.762.687 10.321-1.869 1.481-2.09-21.658-.513-24.166-.116-15.917 2.498-32.59 1.782-48.584 2.043-21.484.358-44.004 1.723-65.536 1.772-18.26.039-36.617 1.046-55.003-.078-19.025-1.161-37.992-1.045-57.181-.677-17.573.339-33.722 1.278-50.8 1.549-17.922.28-35.388-5.703-53.164-6.71-16.043-.91-31.166-4.918-46.88-8.016-9.943-1.956-16.943-5.383-26.063-8.743-11.754-4.328-24.612-8.646-36.888-12.219-12.683-3.688-24.244-8.394-35.736-15.403-8.433-5.142-18.163-8.646-26.402-14.756-10.38-7.687-22.036-14.823-31.709-23.914-.89-.833-16.042-16.072-15.345-16.488 1.103-.668 27.119 24.156 31.834 25.647-1.114-.823-1.54-1.8-1.288-2.924 3.147-.377 5.848 4.832 7.784 6.429 5.277 4.347 11.793 8.084 17.592 11.647 7.63 4.686 14.784 9.101 22.927 12.432 9.904 4.047 33.606 19.102 43.49 15.578a4.152 4.152 0 0 1-1.606-1.588c5.218-1.026 11.899 4.967 17.408 4.54-5.258-5.072-18.406-8.655-25.357-10.465-4.338-1.133-5.519.716-9.537-.707-1.946-.697-6.041-3.253-8.684-4.463-13.207-6.061-27.38-11.909-40.064-19.403-17.805-10.524-33.848-24.001-48.37-38.466-10.515-10.466-17.902-24.873-24.535-37.924C5.42 189.772-.35 174.901.017 174.97c1.781.116 8.81 16.565 10.63 18.192-.525-4.023-2.884-9.587-4.814-14.314l-2.6-6.285c-.433-.805-.911-1.606-1.344-2.414L0 167V0h1920v6l-2.548 1.061zM218.237 314.04c-.485-2.324-19.21-4.018-21.804-4.705-6.932-1.83-18.483-5.16-25.618-4.464 6.157 4.009 16.333 3.834 23.314 5.848 7.387 2.13 14.62 2.75 22.374 4.067.843.222 1.414-.03 1.734-.746zm382.434 18.096c.513 1.849 11.83-.088 12.325-.126 2.691-.271-13.071-2.518-12.325.126zm32.182-1.095c6.67-.28 13.768-1.278 20.622-2.062 2.808-.3-6.312-.958-8.21-.871-4.936.232-22.074-.445-25.083 2.727.813-.856 10.824.284 12.671.206zm196.58-18.656c-4.433-.126-9.362.474-13.573 1.897 2.972.804 6.554-.571 9.653-.048 1.307-.62 2.614-1.24 3.92-1.85zm10.903-.736c-1.666.958-3.457 1.239-5.354.852.948-1.733 3.379-2.256 5.354-.852zm-47.926 23.197c.852-.658 5.848-.503 3.94 0-1.18.175-4.743.678-3.94 0zm23.72-2.13c-1.17 1.065-13.37 1.424-13.254.959 1.424-3.224 13.633-1.297 13.255-.959zm29.87-4.453c-3.99-.61-20.594.523-23.615 3.272 3.108-2.662 15.772-.32 20.294-1.423 1.113-.62 2.217-1.24 3.32-1.85zm218.2-43.404a7.247 7.247 0 0 1-4.347.988c-1.627-.33 5.383-2.256 4.347-.988zm35.32-7.465c-2.73.34-4.56-.523-7.475-.203-7.29.804-11.957 3.02-16.44 5.983 2.488 3.505 31.33-5.576 36.685-6.758 2.381-4.376-11.415.823-12.77.978zm39.676-7.213c-2.779 2.518-10.437 1.598-12.074 3.302 2.014-2.13 12.287-3.486 12.074-3.302zm58.072-11.899c-4.25 1.036-7.465 2.014-11.851 1.51.93-4.056 14.484-3.804 11.85-1.51zm29.636-9.285c.106-2.45 14.88-1.8 10.263.513-1.704-.184-10.38 2.237-10.263-.513zm37.197-7.871c-3.64-.397-18.453 1.83-20.331 5.15-.223.34 14.077-1.984 16.953-3.862a8.459 8.459 0 0 0 3.378-1.288zm13.4-1.491c1.714-1.172 3.437-2.353 5.16-3.524-.145-.29-.28-.572-.416-.862-4.908.271-4.008 1.83-7.038 3.737.329.707 1.558 1.21 2.294.649zm35.542 4.115c-5.857 1.007-13.4 1.045-18.211 4.996.387 1.161 11.918-2.663 14.552-2.556a9.732 9.732 0 0 0 3.66-2.44zm51.74-28.049c-2.285-3.001-22.065 3.931-25.908 4.987-3.534.968-7.194 2.846-10.95 3.843-5.78 1.53-13.12 2.508-18.522 5.364 8.772.89 17.96-2.856 26.18-5.538 8.53-2.779 16.74-3.64 25.289-6.235a529.832 529.832 0 0 1 3.911-2.42zm10.157-2.904c.28-.465-3.525.435-2.498.174 2.691-.774-6.671-.116-5.77.823.851.89 5.634-.368 6.68-.358a270.34 270.34 0 0 1 1.588-.64zm9.352-1.375c3.883-1.113 13.99-2.508 16.556-6.012.262-.349-23.75 2.769-16.556 6.012zm12.887 9.498c.687 1.597 8.917-1.636 9.4-1.772 3.806-1.171-10.61-1.046-9.4 1.772zm15.907-4.105c-.523.261-1.046.523-1.568.774-2.798-.135 1.54-.726 1.568-.774zm-1.423-14.668c1.442-1.094 3.166-1.588 5.238-1.51-1.482 1.103-3.205 1.597-5.238 1.51zm18.657 10.195c-.746.571-5.48 3.989-6.603 1.781-1.307-2.565 10.35-4.599 6.603-1.781zm-9.75-12.219c3.65-.29 7.571-.455 11.096-1.375 1.82-1.316 3.65-2.643 5.48-3.96-4.6-.387-11.793 3.96-16.576 5.335zm24.253 8.569c-3.408-2.266-7.426-.252-10.766 2.12 1.21 2.14 8.249-.968 8.917-1.162.62-.32 1.23-.648 1.85-.958zm1.56-14.726c-1.55 1.161-3.283 1.675-5.21 1.549.726-2.004 3.04-2.653 5.21-1.55zm13.26 9.334c-.623.095-3.662.221-4.363 1.045.852.358 1.675.319 2.478-.126.644-.308 1.288-.607 1.923-.914l-.039-.005zm18.118-5.49c-.28.212-4.938.919-6.506 2.826 1.481-1.055 1.772-1.055.89.01 1.443-.794 4.222-1.723 5.616-2.837zm3.863-14.214c-1.52.475-20.738 5.122-20.254 3.767 1.384-4.27 20.002-3.69 20.254-3.767zm239.084-65.788c3.999-.358 7.465-.068 11.919-1.22 6.67-1.723 14.048-5.315 20.428-8.123 5.277-2.324 10.621-4.367 15.975-6.71 2.402-1.055 11.764-4.037 12.577-5.818.726-1.724-10.408 2.13-11.163 2.4-6.642 2.392-13.293 4.774-19.935 7.165-12.577 4.522-24.447 8.627-37.159 12.993-2.207.775 6.37-.59 7.358-.687zm-68.005 22.549a32.232 32.232 0 0 0-6.69 2.391c1.394 2.479 6.903-.57 8.287-1.665-.251-.687-.784-.93-1.597-.726zm-26.403 8.762c-.251.087 8.791-.91 12.2-2.227 1.849-.716 3.66-1.23 5.392-2.198-6.012-.474-12.034 2.547-17.592 4.425zm-6.854 8.782c2.352-.765 6.148-2.982 8.636-2.498 1.094.174-11.405 4.066-8.636 2.498zm-6.023-3.457c-.59.717 5.316-.978 4.26-1.365-1.558.01-2.972.465-4.26 1.365zm-86.952 27.72c-3.012.367-6.323 1.945-9.227 2.836-2.169.668-10.612 4.831-12.616 4.425 6.37 1.597 18.822-5.412 24.38-7.126 4.143-1.346-4.958.155-2.537-.136zm9.914-15.55c-2.789.95-7.659 3.844-10.253 1.675 2.091-.88 12.102-2.314 10.253-1.675zm15.142-4.686c-1.384.455-8.336 3.786-9.478 2.053-2.314-3.486 14.823-5.683 9.478-2.053zm23.082 4.686c-5.122.688-11.202 6.361-15.317 5.79 4.231 1.307 11.028-4.812 15.317-5.79z" fill="${i}" fill-rule="evenodd"/></svg>`,34:`<svg viewBox="0 0 1920 381" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M.025 367.84L0 368V0h1920l-10.314 7.057c-.107 2.047-5.607 4.204-6.828 5.613-2.445 2.811-2.466 6.336-6.568 8.791-4.658 7.606-17.698 16.125-24.884 21.276-6.767 4.815-8.519 9.798-14.624 15.002-9.872 8.403-18.339 17.918-28.4 26.217-10.826 8.917-22.45 16.838-33.224 24.601-4.249 3.063-9.683 5.56-13.387 9.253-4.427 4.417-3.336 5.917-9.914 9.715-.87-.903-.377-1.805 1.5-2.707-17.939 7.868-35.196 20.1-52.748 30.172-12.515 7.176-25 12.148-38.008 18.307-16.503 7.826-32.554 17.477-50.284 22.314-6.819 1.857-12.756 5.319-19.145 8.13-5.582 2.455-16.922 4.91-20.71 10.218-.482.682 12.065-3.304 13.303-3.734 6.892-2.371 13.596-5.141 20.216-8.236 8.844-4.133 16.9-7.658 25.84-11.257 24.023-9.662 47.303-20.824 69.858-34.022 10.334-6.053 22.566-10.721 33.75-14.77 17.163-6.222 35.48-15.097 49.758-26.91 6.484-5.361 14.95-9.421 22.671-14.97 5.445-3.914 16.125-16.482 23.332-14.824.944.367-18.8 14.886-20.71 16.093-3.756 2.38-32.457 19.453-32.987 22.008.295-1.419 8.033-1.92 8.995-1.572-1.144 1.154-7.763 6.4-8.823 6.274 1.805.346 5.172-1.249 8.907-3.525-3.021 2.35-5.602 4.427-6.588 5.172-2.099 1.573 23.478-14.058 22.587-14.635-.577-.462-2.004.031-3.82.996 1.71-1.269 3.19-2.381 4.082-3 3.294-2.287 6.378-5.078 9.945-7.333 7.952-5.036 13.124-9.862 21.496-13.345-2.14 4.123-10.826 11.394-14.55 14.845-4.617 4.27-9.967 7.575-14.845 11.54-6.987 5.686-14.583 10.512-21.895 15.789-19.66 14.184-41.691 25.252-62.463 37.83-24.486 14.824-51.752 26.238-77.37 38.513-9.642 4.616-20.08 7.616-29.669 12.337-5.634 2.77-10.9 5.35-16.911 7.564-8.372 3.074-24.507 12.977-33.1 11.823.011 0 23.06-9.61 26.658-12.704-3.535 2.654-27.329 8.613-30.654 10.27-5.256 2.623-12.107 8.456-18.957 7.7.629-.555 1.248-1.101 1.867-1.657-7.774.094-20.583 6.242-28.567 8.76-8.854 2.801-17.813 5.434-27.067 7.606-18.526 4.343-34.955 10.25-53.409 14.498-17.415 4.018-34.19 6.42-51.804 9.704-23.794 4.428-47.681 8.173-71.716 11.068-11.1 1.343-22.22 2.529-33.35 3.599-1.924.185-30.833 1.347-32.25 2.026.794-.666 12.655-2.705 14.11-3.18 12.075-3.913 5.424-4.889-3.493-4.69-11.687.263-23.405-.189-35.071 1.05-7.323.776-14.436-.62-21.832-.043-4.49.357-9.756 2.13-14.205 2.14-3.776.011-7.815-.471-11.613-.88-8.152-.882-12.778 1.28-20.111 1.059-18.517-.556-40.411-3.871-60.092-6.148-11.351-1.311-23.427-.566-34.704-2.098-9.306-1.259-18.884-1.248-28.147-3.367-5.424-1.249-10.334-1.008-15.611-1.543-4.962-.503-9.001-3.577-13.69-4.364-5.928-.997-13.482-1.49-19.587-2.266-20.856-2.665-41.544-7.018-62.19-10.113-33.13-4.973-66.093-12.747-99.538-17.95-14.373-2.235-27.77-5.403-42.363-7.659-6.095-.944-48.562-8.245-48.562-11.277 4.951.734 19.806 5.854 24.087 3.084-.487.314-22.168-4.805-22.933-4.962-5.256-1.06-10.26-2.36-15.737-3.137-10.826-1.532-21.14-4.773-32.081-5.508-12.254-.818-23.321-4.102-35.659-5.507-8.949-1.018-19.135-.462-27.675-1.815-8.77-1.385-20.268-4.333-30.581-5.204-11.939-1.018-24.245-.66-36.393-3.137-24.612-5.014-51.101-7.081-76.217-7.102-14.509-.01-28.787-.692-43.327.02-6.735.326-27.518 3.348-31.704-.838 11.624-5.487 31.4-1.71 43.989-1.574 14.456.168 28.587-.346 43.023.64 19.545 1.332 40.348 1.28 60.375 3.986 11.897 1.606 24.518 1.186 36.425 3.64 9.106 1.879 18.873 1.533 28.116 2.708 8.948 1.133 17.215 3.598 26.216 3.451 11.3-.189 23.406 3.294 35.114 4.71 13.564 1.627 28 2.466 41.24 4.68 10.081 1.678 19.156 4.962 29.783 6.252 8.466 1.028 15.789 3.126 24.234 4.668 9.715 1.773 20.5 2.718 30.172 5.235 18.39 4.784 38.26 5.907 56.567 11.184 16.209 4.668 33.896 3.85 50.105 7.805 6.441 1.574 13.156 4.07 19.775 5.476 4.574.976 9.988 2.203 14.635 1.72 1.647-.167 3.61-2.087 3.871-2.097 6.757-.347 16.513 1.93 22.986 2.99 12.159 1.993 23.689 4.637 36.152 7.207 7.637 1.573 18.327 3.2 25.902 1.143-13.47-5.686-29.71-6.504-44.272-8.193-18.852-2.182-38.24-6.767-57.123-10.512-26.804-5.319-54.144-9.956-81.105-15.726-112.82-24.14-229.458-42.866-344.313-49.842-36.54-2.224-75.104-3.221-111.54.094-44.87 4.092-90.358 5.308-134.21 16.995-30.161 8.036-59.127 18.475-88.974 28.756-17.834 6.137-35.417 14.897-52.412 23.468-5.235 2.644-10.491 6.022-15.328 8.466-3.147 1.585-29.615 19.01-31.808 17.457-1.248-.891 41.313-26.133 46.254-28.881 13.324-7.396 27.33-13.05 40.537-19.23 28.347-13.26 58.215-21.076 88.145-29.385 73.07-20.28 146.485-21.633 221.716-23.038 36.833-.682 74.17 4.784 110.815 7.92 32.795 2.801 65.695 8.624 98.363 12.978 14.53 1.93 31.054 7.112 46.307 6.315-11.361-5.025-26.626-6-38.27-7.249-12.841-1.374-25.452-3.745-38.555-5.267-17.058-1.982-35.386-4.668-51.93-7.238-9.756-1.521-22.398.22-31.567-3.158 2.633-1.437 8.602 2.035 10.533-.357 2.067-2.287-22.933-4.091-25.808-4.05-15.652.221-30.938-2.821-46.475-3.608-20.184-1.018-41.69-2.57-61.907-1.542-9.62.482-19.104 1.888-28.829 1.353-10.187-.566-17.425.776-27.539.378-17.152-.682-35.417 1.72-52.475 4.437-18.915 3.011-36.1 6.431-53.378 11.456-16.555 4.805-35.68 6.337-52.035 11.551-13.9 4.427-26.794 8.246-40.18 13.072-17.164 6.19-32.764 10.082-48.794 18.086-23.688 11.823-47.209 24.14-68.873 39.53-6.055 4.299-51.723 39.294-50.237 43.443-1.484-3.368 23.118-25.477 24.797-28.598-3.127-.252-2.403-1.144-1.427-2.088-5.004 3.462-10.082 6.871-14.394 11.005-8.099 7.763-15.421 17.048-21.81 26.888-1.857 2.875-14.383 27.969-13.9 35.974-.746-4.669 1.174-14.887.923-16.89-2.927 3.556-4.28 13.868-4.04 18.558.032.713 1.574 15.484 1.186 15.17-3.033-2.448-3.879-7.45-4.026-12.527zM1830.68 44.164c7.428-5.917 12.747-10.764 18.275-18.853-1.175-.88-18.4 17.09-25 23.605 2.613-1.794 5.078-3.441 6.725-4.752zm-6.725 4.762c-3.546 2.424-7.385 5.12-10.081 7.764 2.885-1.836 5.665-3.767 7.973-5.76.43-.377 1.164-1.08 2.108-2.004zM181.19 182.046c-12.232.892-20.142 10.554-31.462 13.386 8.75-.42 16.282-9.956 24.885-10.27a15.64 15.64 0 0 0 6.577-3.116zm43.307-13.932c.997-.304-8.277-.23-10.931.64-4.774 1.563-8.97 3.787-13.691 5.109-2.875.808-14.53 2.958-15.925 5.948-.105.305 16.334-3.64 18.516-4.259 7.008-1.983 14.74-4.983 22.031-7.438zm17.866-4.731c3.21-2.193 8.204-3.18 12.138-3.043-3.86 1.175-8.036 2.864-12.138 3.043zm-88.47 62.903c-7.333-.556-17.415 5.466-23.29 9.442-6.766 4.585-10.124 7.323-17.572 11.488-11.173 6.242-24.003 13.795-34.18 21.82-4.815 3.798-8.392 9.296-12.861 13.209-1.112.976-2.319 1.846-3.504 2.759 3.766-2.35 7.637-4.417 8.57-5.12 7.166-5.402 14.698-9.651 22.095-14.31 6.483-4.08 11.917-9.126 18.663-13.123 6.43-3.809 25.388-10.418 28.22-17.583a4.005 4.005 0 0 1-2.276.063c2.55-4.543 12.631-4.973 16.135-8.645zm53.147-23.353c-1.657-2.003-18.61 6.578-20.96 7.376-7.103 2.391-19.42 6.735-24.476 12.232 7.658-.913 17.09-7.102 24.391-10.03 6.505-2.601 13.104-5.297 19.891-8.014.881-.22 1.27-.735 1.154-1.564zm26.878-22.345c2.182-.882-5.676.912-7.47 1.51-2.087.703-11.162 5.13-12.337 4.753 5.602 1.73 14.719-4.532 19.807-6.263zm358.024 5.486c-.283-3.136 14.992 2.14 12.232 1.93-.514-.041-12.043.064-12.232-1.93zm46.422 4.742c-2.329-.45-4.616-.87-7.05-1.206-3.545-.483-16.91-3.819-19.806-1.532.314-.262 12.096 2.098 13.764 2.371 6.252 1.018 12.914 1.847 19.44 2.518 3.105.367-4.973-1.888-6.348-2.15zm153.231 28.011c-3.724-.566-11.246-.336-14.32-2.518-.084-.084 17.404 2.97 14.32 2.518zm28.787 4.994c-4.217-1.48-9.221-2.36-13.701-2.161 2.58 1.72 6.515 1.405 9.326 2.885l4.375-.724zm5.309 1.815c1.531-1.563 3.923-1.238 5.423.808-1.898.42-3.703.157-5.423-.808zm-43.548 11.298c-1.28.735-4.532-.954-4.396-1.017 1.144-.483 4.28 1.06 4.396 1.017zm18.988 3.935c.766-.378-10.784-5.739-12.998-3-.325.566 11.603 3.713 12.998 3zm26.29 5.392c1.26-.262 2.508-.535 3.777-.797-3.41-1.847-20.174-5.76-23.688-3.945 3.567-1.7 15.369 4.522 19.912 4.742zm228.378 26.51a6.986 6.986 0 0 1-4.543-.42c-1.5-.88 5.959-.545 4.543.42zm36.865 3.337c-2.812-.441-4.04-1.91-6.872-2.497-7.7-1.616-12.851-.672-18.338 1.08 1.301 4.207 32.826 3.85 38.093 4.176 3.378-3.599-11.341-2.529-12.883-2.76zm28.41 3.934c2.475-1.574 13.354-.242 12.882 0-3.41 1.815-10.931-1.217-12.883 0zm61.697 1.72c1.898-3.997 15.547-.503 12.274 1.322-4.553.053-7.963.304-12.274-1.322zm44.23-1.385c-.651 2.655 8.58 2.078 10.26 2.613 5.37-1.616-9.6-5.34-10.26-2.613zm79.646-3.535l1.898.157c-.094-.008-4.264 1-1.898-.157zm-40.41 3.126c-3.547-1.206-19.105-2.066-21.633.923-.514.515 14.74.997 17.95-.325a223.9 223.9 0 0 1 3.682-.598zm19.754-1.72c-.095-.336-.178-.661-.273-.997-5.088-.598-4.385 1.238-7.805 2.738.2.787 1.343 1.595 2.213 1.112 1.952-.944 3.903-1.899 5.865-2.853zm29.868 13.596c-5.875.031-14.174-1.133-19.577 2.098.2 1.322 12.663-.734 15.412-.136a9.847 9.847 0 0 0 4.165-1.962zm56.976-22.262c-1.983-3.525-23.028.766-27.193 1.375-3.713.535-7.742 2.087-11.697 2.643-6.106.86-13.743.724-19.692 2.801 8.876 2.56 18.727-.199 27.529-1.95 9.169-1.837 17.54-1.428 26.741-2.896 1.437-.661 2.875-1.322 4.312-1.973zm9.033-1.364c.566-.178 1.122-.346 1.689-.514.356-.482-3.662.074-2.581-.094 2.675-.493-6.735-.787-5.99.23.744 1.018 5.853.253 6.881.378zm29.017-5.539c.347-.398-24.79.22-17.582 4.606 4.144-.777 14.676-1.186 17.582-4.606zm4.774 15.4c-.546.106-9.369 2.645-9.935.872-.997-3.169 13.995-1.69 9.935-.871zm6.966-1.783c-.021.042-4.595.2-1.69.661.557-.21 1.123-.43 1.69-.66zm5.161-17.047c-2.108-.21-3.923.136-5.497 1.133 2.109.346 3.924-.01 5.497-1.133zm6.096 15.096c1.007 2.465 6.19-.934 6.966-1.48 4.05-2.79-8.152-1.415-6.966 1.48zm-2.298-15.4c3.777-.053 7.826.041 11.488-.703 1.961-1.301 3.913-2.602 5.875-3.903-4.606-.734-12.432 3.472-17.363 4.605zm22.566 11.865c.661-.305 1.322-.609 1.972-.913-3.241-2.591-7.679-.787-11.309 1.563 1.112 2.382 8.571-.472 9.337-.65zm4.375-16.639c-2.203-1.385-4.595-.892-5.466 1.238 1.972.273 3.798-.136 5.466-1.238zm13.48 11.152c-.03.042-3.881-.126-4.73.776.86.462 1.72.483 2.601.074.713-.284 1.427-.567 2.13-.85zm13.03-2.025c1.616-.84 4.354-1.605 5.938-2.811-.273.188-5.182.786-6.86 2.77 1.573-1.07 1.877-1.06.922.041zm10.302-18.023c-1.657.461-21.548 4.532-20.992 3.116 1.584-4.449 20.751-3.043 20.992-3.116zm262.82-93.223c-8.782 5.529-17.993 9.421-27.476 14.341 1.416-.734 11.582-1.552 15.62-2.654 8.53-2.34 19.115-10.407 26.438-15.222 3.567-2.35 22.996-12.4 23.961-16.45.346-1.72-15.054 6.767-17.32 8.078-6.977 4.04-14.405 7.616-21.224 11.907zm-94.041 47c1.647 2.486 7.154-.871 8.497-2.245-.314-.693-.902-.924-1.741-.672a31.835 31.835 0 0 0-6.756 2.917zm-2.025 2.203c-6.253-.168-12.295 3.546-17.856 5.948-.23.105 9.033-1.406 12.453-3.231 1.804-.965 3.672-1.595 5.403-2.717zm-15.443 12.61c-2.591-.367-6.42 2.308-8.77 3.284-2.843 1.94 10.019-3.169 8.77-3.284zm-10.994-1.815c1.185.357-4.879 2.623-4.291 1.762a7.35 7.35 0 0 1 4.29-1.762zm-7.659 3.535c-.042.063-9.011 2.78-9.064 2.801-1.206.494 7.48-.461 9.064-2.8zm-110.301 22.283c-.336-.619-.976-.66-1.92-.136.294.63.934.671 1.92.136zm2.79.074c-.912.839-1.783.88-2.622.136.283-.692 2.507.031 2.622-.136zm11.866 10.207c-2.12.661-11.226 4.92-13.177 4.427 6.693 2.015 19.576-5.465 25.367-7.333 1.51-.524-9.736 2.13-12.19 2.906zm9.022-18.097c2.192-.965 12.494-2.475 10.543-1.773-2.906 1.039-7.868 4.113-10.543 1.773zm16.334-4.584c-2.476-3.787 15.338-5.875 9.799-2.025-1.47.472-8.582 3.882-9.799 2.025zm34.033 2.738c-5.277.85-11.624 7.239-15.779 6.599 4.333 1.416 11.414-5.424 15.779-6.599zM77.97 240.292c5.31-3.433 18.002-9.214 21.568-15.086-1.395 1.236-9.67 5.45-11.759 7.008-1.28.954-12.925 10.123-9.809 8.078zm21.626-15.082c.042-.068.082-.136.122-.204a.862.862 0 0 1-.18.2l.058.004zm-8.512-2.145c-.986 1.794-5.655 4.449-7.344 4.732.976-1.763 5.676-4.47 7.344-4.732zm29.228-14.162c-1.249 1.51-2.959 2.444-5.11 2.832 1.26-1.5 2.96-2.434 5.11-2.832z" fill="${i}" fill-rule="evenodd"/></svg>`,35:`<svg viewBox="0 0 1920 213" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1919.173 80.207c.278.108.554.22.827.34-1.73-.748-12.547 3.453-15.827 3.925-9.7 1.4-20.288 2.517-30.074 3.146-16.087 1.039-31.474 4.744-48.064 6.946-15.041 1.999-30.924 2.95-45.752 3.965-6.663.456-13.404-.18-20.185.865-.693.103-17.299 3.831-8.716 1.055-32.835-2.895-68.053.873-100.951.196-14.38-.29-28.524.205-42.684-.723-12.004-.78-34.03-5.043-44.705.393 3.146-1.605 19.053 1.825 24.449 1.92 8.433.157 17.062-.528 25.244-.536 22.78-.015 45.28 1.912 68.108 1.448 25.314-.52 49.346 3.618 74.724 3.666 16.669.031 32.205-.181 48.544-.874-13.774.787-28.013 1.833-31.616 2.368 2.085.134 6.954 2.439 7.112 2.478-1.888.346-8.654 1.605-10.014.795 1.077.74 2.706 1.18 4.53 1.502.36.064 6.178 1.483 10.526.873.653-.22 10.612-1.597 10.958-1.022 4.61-.968 9.432-1.66 12.594-1.935 8.402-.732 15.45-1.251 23.505.007-18.344 8.402-45.853 6.105-65.984 6.797-16.842.582-33.731.826-50.754 1.212-26.298.605-52.533-.181-78.901.094-12.634.126-25.244-.181-37.964-.346-14.758-.197-39.026 4.948-52.116-1.204.449.22 22.349.15 26.754-1.022-4.783.99-32.315-1.747-34.644-1.684-.566.016-17.18 1.518-11.343-.37-11.194-3.272-28.335-1.345-40.182-1.895-11.069-.512-22.38-1.48-33.622-1.48-19.39 0-40.245-.597-60.06-1.934-23.034-1.558-46.216-2.935-69.375-4.004-16.244-.756-32.48-1.503-48.725-2.25-.96-.048-21.106-2.29-24.19-1.739 2.518-1.266 16.913-1.18 19.407-1.786-3.792-7.166-52.666-6.639-61.083-6.741-18.51-.228-35.95.07-53.508-1.353-65.127-5.286-130.915-9.833-196.718-10.313-33.165-.244-66.637-1.762-100.03-2.108-10.313-.103-87.31 4.232-88.86-.818-10.014-.504-18.046-1.11-21.743-1.023-12.193.275-24.032 1.337-36.202 2.045-27.666 1.597-53.46 2.329-80.71 4.917-29.712 2.824-59.7 3.445-89.639 6.655-13.782 1.479-27.887 2.997-41.7 4.578-8.661.991-36.886 9.818-44.053 5.35 12.422-6.042 29.515-4.69 42.999-6.719 11.58-1.746 23.048-2.957 34.683-4.263 18.809-2.109 37.39-4.327 56.568-6.349 82.347-8.66 165.566-10.32 248.164-12.067 32.49-.692 66.496-1.392 98.71.362 19.579 1.07 37.035.102 56.174.504 17.173.361 42.117 6.725 59.44 1.754-16.638-4.5-36.32-3.666-53.39-4.885-19.006-1.361-38.334-1.943-57.387-1.951-32.245-.008-65.071-1.408-97.529-1.778-122.324-1.4-247.134 6.521-368.05 24.15-59.344 8.653-118.485 19.47-176.437 33.087-28.744 6.757-57.441 14.246-85.564 23.347-8.819 2.856-83.7 29.5-85.076 26.99 16.858-13.656 54.916-20.342 76.289-27.186 15.277-4.893 31.403-9.527 47.199-13.798 85.509-23.12 171.34-37.5 258.792-50.157 44.603-6.45 89.63-7.85 134.47-12.13 21.837-2.085 43.903-3.02 65.874-4.46 14.946-.976 31.112.92 46.16-2.219-22.277-3.776-48.197.913-70.664 2.58-16.535 1.228-33.677 2.313-50.047 3.399-9.95.66-22.23 3.272-32.127 1.974 2.337-1.486 8.197.543 9.794-1.762.401-.503-36.697 2.384-39.67 2.628-11.454.944-23.152.936-34.582 2.092-16.976 1.723-34.77 4.807-51.706 6.82-76.093 9.063-150.55 26.306-224.911 45.217-56.836 14.45-116.558 31.285-170.294 55.246 2.533-1.55 4.853-3.21 6.765-5.018-7.678 1.125 8.401-4.445 11.178-5.46 7.04-2.564 13.908-5.6 20.949-8.15a373.664 373.664 0 0 0 14.655-5.671c9.306-3.823 35.494-8 41.472-15.961 1.55-3.808 9.857-3.17 14.042-6.238-11.218-1.07-26.424 7.898-34.825 11.013-12.783 4.743-25.22 9.636-37.98 15.088-13.71 5.852-27.674 11.532-41.778 17.267-5.806 2.352-10.896 6.19-16.394 8.802-4.413 2.093-27.73 10.054-43.227 16.685 1.361-.669 2.478-1.266 2.95-1.7-3.356.4-24.065 7.002-29.994 10.242L0 213V0h1920v80l-.827.207zM177.806 121.885c-5.191 2.99-9.974 5.207-12.971 4.193 4.318-1.471 8.653-2.777 12.971-4.193zm2.29 8.787c3.264-.228 7.127-1.188 11.351-2.62 1.235-.59 2.391-1.203 3.335-1.84-4.633.33-10.014 3.68-14.686 4.46zm-1.361.163l-.018-.041a8.293 8.293 0 0 1-1.296.027 7.9 7.9 0 0 0 1.314.014zm0 0c.446-.03.9-.089 1.36-.163-.452.031-.922.084-1.378.122l.018.04zm54.35-18.595c3.437-1.392 7.496-2.588 11.484-3.508a9192.43 9192.43 0 0 0-11.485 3.508zm1127.922-22.277c-.04-.008-.079-.016-.118-.032-.04.016-.079.024-.087.04.07-.008.134 0 .205-.008zM233.5 101.653l-4.098.164c-8.819 1.833-16.74 7.702-25.582 8.89 3.642.11 25.952-5.035 29.68-9.055zm40.859-10.951c-11.053-.543-19.596 5.97-29.948 6.521-.967.236-8.889 3.477-7.89 3.619 7.111.999 32.221-6.954 37.838-10.14zm26.715-6.207c-3.572.04-8.024.913-11.108 2.754a58.21 58.21 0 0 0 11.108-2.754zM238.15 122.24c-8.755 3.729-20.028 4.208-27.784 9.676 2.587-.103 44.046-14.373 44.32-14.058-1.678-1.934-14.144 4.248-16.536 4.382zm18.935-5.436c4.83-2.203 10.061-3.343 15.332-3.54-4.067 2.635-10.4 3.493-15.332 3.54zm14.53-12.83c2.15-.569 8.433-1.857 10.288-3.69-1.661.835-19.186 5.087-19.264 5.066 2.289.606 6.474-1.337 8.975-1.376zm10.288-3.69c.045-.044.087-.088.127-.133a.393.393 0 0 1-.117.081l-.01.053zm335.405-31.788c.904 2.706 11.304-1.471 12.578-.944-1.164-.598-4.845-.323-6.387-.386-.032.008-6.553.244-6.191 1.33zm51.51-3.682c-2.998.19-6.097.166-9.086-.354-3.548.339-14.553-.086-20.492 1.212 7.803-1.495 24.504 1.573 29.578-.858zm138.127-3.815c-1.29-.11-2.595-.086-3.933.236-3.186-.967-6.041-.7-8.574.802 2.784 1 8.873-.967 12.507-1.038zm28.65.252c-4.067-.559-9.007-.41-13.035.377 2.809.92 6.2.055 9.118.748 1.306-.378 2.604-.748 3.917-1.125zm10.376.495c-1.4-.102-2.84-1.156-5.333-.59 1.321 1.322 3.162 1.125 5.333.59zM802.62 76.243c-.22-.118-4.28-.487-4.264.386.968.212 4.327-.33 4.264-.386zm17.627.377l.148.016c.177-.002.311-.026.397-.078l-.545.062zm29.021-.849c-4.059-1.054-19.304-1.683-22.482.339 2.045-1.212 11.414.236 14.097.865 3.35-.173 5.081-.118 8.385-1.204zm210.524-1.722c-.394.26-3.352-1.03-4.374-.315.409.747 3.854.74 4.374.315zm47.19 2.163c-8.031-3.8-24.834-3.54-34.07-2.808.567 1.329-.172 1.864-2.225 1.612 1.07 2.266 33.896 3.414 36.296 1.196zm25.315 1.455c-3.139 1.4-7.552 1.164-10.88.606-2.886-.582 11.14-.716 10.88-.606zm57.465 3.052c-.205-2.194-11.399-2.517-12.476-.802 1.14.417 2.289.826 3.437 1.243.826.142 9.165.897 9.039-.44zm37.554 3.116c-1.093-.386-10.014-.819-9.258-2.77.889-2.289 13.483 2.117 9.258 2.77zm26.841.125c-4.476-1.69-12.138-2.179-16.67-1.203.19-.04-4.994.094-3.39.999 3.296 1.872 16.544 1.864 20.06.204zm18.282.756c-3.257-2.046-4.358-.347-7.576.361.48 2.817 8.394-.574 7.576-.361zm25.55 13.53c-5.514-.692-12.413-2.58-17.92-.708-.134 2.006 5.766.905 6.742.708 3.343.614 8.07 1.33 11.178 0zm54.94-8.3c-1.338-3.248-9.26-2.351-11.934-1.714-13.94.543-28.634-3.69-42.463-1.628 8.307 3.123 17.605 2.14 26.282 2.36 9.243.235 18.903 2.753 28.115.983zm9.991.522a.859.859 0 0 0 .044-.021l-.044.021zm8.96 1.414c-5.602-4.429 16.873-.244 16.778-.197-3.61 2.156-13.09.37-16.779.197zm8.896 10.73c.189 1.77 9.023 1.211 10.085.779-1.22-.402-2.43-.803-3.65-1.204-.102 0-6.56-.732-6.435.425zm32.245.763c-.779.047-6.466-.212-6.23 1.101.361 2.03 10.674.89 6.23-1.101zm2.777-10.14c2.84-.582 6.104-1.11 8.928-.04-6.6 1.7-10.218 1.11-16.622-.306 2.557.118 5.137.141 7.694.346zm11.697 12.665c-1.667.763-9.849 1.054-10.368-1.227 4.06-1.015 7.285-1.298 10.368 1.227zm.527-11.8c2.573-.37 3.894.771 5.31.976-2.226.362-4.051.456-5.31-.976zm27.997 13.011c-.904.567-.818.378-.22.024.212-.063.354-.094.22-.024zm4.846-.527c.37.236-2.384.22-4.374.19 1.172-.551 3.013-1.078 4.374-.19zm8.291-9.81c-3.54 1.7-16.637-6.63-20.256-2.556-.7.748 8.205 2.046 9.235 2.352 1.77.08 9 1.29 11.021.205zm242.823 19.227c6.089.857 12.264-.236 18.266-.527 9.015-.433 19.344.896 28.092-1.346.967.055 9.47-.739 8.511-1.18-9.77-4.515-33.212.032-43.919-.141-5.555-.092-20.456-3.047-25.273-.586 2.896-1.146 11.987 3.452 14.323 3.78zm-112.042.354a15.532 15.532 0 0 1 0 0zm29.61-4.587c6.733-.361 5.577-1.038 8 1.102-1.495.409-7.529 1.22-8-1.102zm-20.815-.4c5.734 1.486 12.31 1.99 18.273 1.266-5.207-1.7-13.042-2.895-18.273-1.267zm-12.32.463c1.007.3 4.304-.11 4.304-.11-.213-.126-4.256-.77-4.303.11zm-4.515-.613c3.683.65-7.825-.276-8.473-.003 2.298-1.05 6.014-.036 8.473.003zm-10.163 4.61c2.973 1.25 8.842-.37 12.523-.213-1.29-.18-2.604-.236-3.957-.031-3.178-1.322-6.033-1.243-8.566.244zm-69.21-7.151c-6.529-3.47-19.1 2.258-25.165-.873 3.021 1.707 8.11 1.534 11.462.779 1.109.047 12.334-.622 13.703.094zm.787-11.084c2.517-.102 8.865-1.015 10.659 1.314-2.32.7-8.976 1.077-10.66-1.314zm25.361.016c-.597-.079-10.1-.488-9.636 1.054.346 1.148 11.8 3.225 9.636-1.054zm13.153 12.28c1.094.047 2.36-.048 3.619-.056-4.374.252-10.297 2.227-13.475.166 1.022.464 8.897-.15 9.856-.11zm280.685-38.13c9.613-1.447 28.445-7.709 29.743-4.837-9.117 2.863-19.76 4.9-29.743 4.837zm-5.24-.102c-1.785.032-3.815.126-6.017.252 2.934-.393 5.593-.582 6.041-.252 1.692.15 3.462.095 5.216.102-2.557.386-4.492.457-5.24-.102zM154.278 130.525c.188-.153.354-.301.496-.443-.14.146-.308.285-.501.418l.005.025zm-22.75 9.036c3.531.196 18.573-5.638 22.745-9.061-2.593 1.779-9.642 2.38-12.541 4.577-1.102.433-8.803 4.476-10.203 4.484zm16.166-11.847a23.034 23.034 0 0 1-7.37 2.761 18.375 18.375 0 0 1 7.37-2.761z" fill="${i}" fill-rule="evenodd"/></svg>`,36:`<svg viewBox="0 0 1920 219" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1497.465 78.371v.013l-.06-.036.06.012v.011c.104-.155-.078-.355-1.045-.515l-.264-.042c.43.083.84.306 1.25.545-2.26-.264-4.711-.384-2.164-.18.913.529 1.983.445 2.223.216 1.046.637 1.983 1.418 2.668.59.18-.217-1.19-.445-2.668-.614zm413.177-71.135c-3.1.997-6.044 3.028-9.66 3.905-8.94 2.15-19.767 3.749-28.443 4.794-15.681 1.887-29.74 10.887-45.938 14.468-14.323 3.172-29.86 7.87-43.63 9.805-5.865.83-12.666.108-18.506 2.572-4.698 1.982-5.695 6.224-12.064 5.239-.409-1.178.348-1.875 2.271-2.08-19.502-.6-40.014 5.877-60.333 8.004-12.918 1.358-26.063 3.388-39.005 4.698-14.756 1.502-28.767 5.347-43.246 5.191-7.246-.072-13.362.925-20.452 2.127-5.768.973-17.7.553-22.11 5.155-1.261 1.31 11.788 0 12.726-.108 5.082-.59 10.31-.337 15.645-1.202 9.168-1.478 17.411-3.653 26.52-4.89 20.283-2.74 40.987-3.16 61.582-6.621 10.575-1.779 19.058-2.98 29.512-3.329 20.043-.673 38.308 2.187 59.396-1.358 3.881-.649 6.801-1.598 10.418-2.139a31.733 31.733 0 0 0 5.12-2.74 42.935 42.935 0 0 1 3.207 1.875c5.06-.505 10.262-.72 15.273-1.538 5.984-.973 21.57-8.736 26.784-2.896.853 1.226-21.665 4.662-23.888 4.807-2.866.283-32.167 3.258-35.863 4.956 1.67-.41 7.335 2.53 7.781 2.986-1.25.481-9.252 2.548-9.757 2.175 1.346 1.202 4.29 1.478 7.955 1.262-4.17.973-7.426 1.899-7.39 2.007.565 1.442 13.338-.71 14.54-1.094.528-.348 10.477-2.968 10.646-2.62-.193-.492-1.178-.648-2.452-.684 6.67-1.418 12.978-2.98 16.258-3.473 8.4-1.25 13.483-3.497 21.533-1.562-2.944 2.415-12.352 4.494-16.546 6.032-5.648 2.067-11.211 3.257-17.16 4.542-9.408 2.043-18.84 3.653-28.441 5.24-17.664 2.92-35.929 4.71-53.93 7.798-25.558 4.374-51.693 5.756-77.36 10.37-11.715 2.103-23.924 2.776-35.82 4.89-4.902.866-9.288 1.767-14.167 2.692-6.128 1.166-30.257 6.44-35.916 3.497-.474-.249 24.855-4.639 26.532-6.32-1.581.914-28.982 2.209-30.93 2.667-4.819 1.153-10.622 6.284-16.87 3.533.648-.457 1.297-.926 1.946-1.382-5.287-1.43-10.995 1.91-16.27 2.427-6.309.613-13.146.048-19.358 1.117-12.329 2.115-24.682 1.394-37.082 4.026-19.971 4.242-43.27 5.155-64.215 7.306-21.785 2.235-43.535 5.07-65.284 7.618-4.562.535-58.409 4.093-68.8 6.785 4.327-1.505 12.3-2.18 14.03-3.937 6.777-6.873-2.127-5.3-8.928-4.458-8.327 1.033-17.363.865-25.678 1.79-12.51 1.394-24.922 4.458-37.07 5.708-3.197.324-7.054-.324-10.322-.312-6.38.036-8.916 2.62-13.29 3.28-8.411 1.274-19.19.637-28.154.024-7.162-.493-13.687 1.79-20.512 2.463-17.471 1.719-35.616 1.55-52.607 4.038-15.056 2.199-30.365 2.607-44.988 3.737-20.668 1.586-41.672 4.085-61.968 5.647-31.663 2.44-63.89 5.468-95.78 8.135-15.286 1.274-29.2 2.62-44.233 4.65-6.176.83-50.167 5.84-51.008 2.44 4.121-.565 20.043-.108 22.566-3.641.24-.348-21.533 1.19-22.05 1.226-6.44.444-12.785.745-19.418 1.646-10.959 1.49-21.593 2.21-32.383 4.338-13.29 2.62-26.917 1.442-40.435 3.424-9.865 1.454-15.861 2.572-25.655 3.557-22.278 2.235-43.342 4.819-66.029 5.912-20.992 1.021-42.393 2.62-63.385 5.66-10.79 1.562-21.269 2.006-32.083 3.569-6.886.997-31.314 6.488-35.472 2.199 11.163-6.958 30.918-3.834 43.619-5.672 9.793-1.418 19.045-1.586 28.706-2.992 20.2-2.932 39.51-5.876 60.382-7.606 18.901-1.575 37.995-3.089 57.293-5.792 8.508-1.19 18.06-3.076 26.051-3.581 6.5-.42 11.067-2.608 17.207-3.629 4.687-.781 11.392 1.634 16.51.961 21.089-2.775 43.21-7.197 63.542-8.58 8.388-.576 17.135-2.92 25.018-3.52 8.808-.66 16.414-.336 25.078-2.079 9.228-1.862 20.055-1.982 29.355-2.788 10.623-.925 21.642-1.922 32.132-3.184 16.762-2.03 33.609-2.535 50.275-4.35 12.69-1.382 26.292-.096 38.993-4.11 1.754-.552 4.566-2.847 8.7-3.147 3.256-.24 6.224-.012 9.517-.12 11.872-.41 22.89-2.596 35.4-3.1 8.182-.325 18.805.396 26.026-4.182-16.017-3.954-31.95 1.97-48.22 2.223-21.666.324-43.127 2.187-64.552 4.842-33.128 4.098-67.206 3.293-100.563 7.702-24.153 3.197-49.267 4.831-73.54 6.465-29.259 1.959-58.062 7.727-87.189 10.923-62.905 6.897-126.807 14.852-190.505 20.44-60.08 5.275-121.267 13.806-180.892 19.13-26.675 2.378-52.907 7.221-79.69 9.889-15.766 1.574-31.567 4.866-47.357 6.332-8.099.757-54.193 10.046-56.248 5.624.325.697 72.025-11.584 81.915-13.134 22.013-3.437 46.515-4.927 69.273-8.411 37.935-5.792 77-11.86 115.32-15.249 43.33-3.833 86.78-10.13 130.448-13.566 36.793-2.884 73.563-7.93 110.476-10.622 26.136-1.911 51.983-7.595 78.25-9.337 15.669-1.033 34.462-.385 49.735-6.2-15.61-3.16-32.288 3.34-47.536 3.628-13.77.265-28.418 3.738-42.513 4.831-10.659.83-22.014 2.812-31.927 3.533-8.977.649-20.86 5.19-29.753 3.388 2.02-2.066 8.52.169 9.637-2.62 1.935-4.073-29.68 1.55-31.806 1.84-14.06 1.946-28.299 1.43-42.213 2.739-19.911 1.874-40.783 6.032-60.61 8.748-3.076.42-6.897-.156-10.923.432-6.91 1.01-14.01-.673-21.425 1.07-4.686 1.093-5.876 1.442-12.545 1.658-3.88.132-7.774 1.346-11.643 1.742-17.328 1.79-34.715 1.79-52.223 5.66-31.746 7.017-65.224 9.877-100.035 13.963-14.66 1.718-31.89 6.74-47.187 6.14-4.59-.192-8.207-1.766-13.518-1.37-5.191.385-9.553 1.622-14.744 2.307-7.775 1.022-16.03 1.406-24.045 2.764-19.526 3.293-39.581 6.128-60.105 9.397-5.359.853-55.442 8.435-55.406 9.384-.096-2.523 32.624-7.714 36.012-10.346-8.351-2.066 6.549-2.715 8.147-2.86 7.582-.672 15.02-2.823 22.59-3.58 6.405-.65 12.113-1.346 18.277-2.764 9.229-2.127 38.308-1.021 43.931-8.928a3.53 3.53 0 0 1-2.066-.89c3.34-3.436 12.845-.744 16.798-3.448-5.419-2.68-20.427-.589-26.231 1.226-4.374 1.37-5.636 2.235-9.553 3.244-3.352.865-8.748.325-12.184 1.286-8.964 2.5-16.75 3.87-26.316 5.323-7.702 1.178-15.272 4.819-22.95 6.645-7.955 1.899-17.316 1.394-25.487 2.199-6.982.697-13.614 3.893-20.752 5.6-5.636 1.345-55.287 5.575-56.008 8.459.433-2.764 16.174-4.458 18.722-6.345-5.468-1.586-15.069.89-21.1 1.563.364-.041-10.04 1.726-12.006.888L0 0h1920v5c-.68.8-8.587 1.987-9.358 2.236zM262.368 160.983c-7.15 1.538-14.275 4.638-21.905 2.716 5.683-4.038 23.96-5.227 30.413-3.665-1.502 2.066-6.513 1.381-8.508.949zm-29.5 4.95c.878.397 1.707.253 2.488-.408-.865-.409-1.706-.264-2.487.409zm34.8 9.854c-1.262-2.788-14.516 2.115-16.895 1.598-6.874.54-23.324 2.44-28.61 6.2 2.643.637 45.949-6.609 45.504-7.798zm18.036-2.103c-3.617 2.523-11.668 2.367-15.561 1.262 4.83-1.959 10.598-2.2 15.56-1.262zm10.394-17.303c.108-.157-20.452 2.403-19.587 2.992 1.73 1.153 6.765-.337 9 .168 2.127-.324 9.253-1.322 10.587-3.16zm347.845-7.198c-.613-.469-5.275-.6-6.429-.637-.685-.012-6.537.289-6.068 1.983.925 3.352 11.583-1.91 12.497-1.346zm38.644-4.254c-2.956.277-6.14.397-9.097-.3-3.953.553-21.485.42-23.635 3.725-.157.252 12.64-.961 14.275-1.082 5.023-.372 14.167 1.094 18.457-2.343zm120.174-9.228c-1.418-.192-1.202-.469.649-.853 1.418.204 1.201.492-.65.853zm12.977-2.716c-1.033.084-8.375 1.923-8.4 1.899 2.548 1.129 13.203-3.075 14.396-2.308-1.455-.936-4.422.253-5.996.41zm32.336-2.643c-3.917-.373-9.205.228-12.882 1.682 2.656 1.07 6.309-.373 9.169.408l3.713-2.09zm4.987-.661c3.232-1.502 3.424-.517 5.37.372-2.282 1.13-4.12 1.49-5.37-.372zm-35.58 26.159c.684.625-3.389 1.117-4.194.925-.12-1.141 3.689-1.273 4.194-.925zm18.36-2.007c-1.081-1.394-12.148-.084-12.713 1.61-.42 2.26 8.135-.036 9.277.24.048-.011 4.59-.36 3.436-1.85zm27.998-2.811c-3.088-.89-20.14.144-22.302 2.667 1.057-1.13 11.752-.649 14.143.012 3.304.096 5.443-.95 8.159-2.68zm254.611-34.847c-4.17-2.151-14.01-.854-18.192-.89-4.975-.048-11.02.841-15.814 2.247-5.984 7.282 10.418 2.98 15.045 2.38 3.869-.505 17.207-.325 18.961-3.737zm25.378-3.125c-.817-.985-13.11 3.545-10.802 3.833.42 0 12.845-1.393 10.802-3.833zm47.921-2.283c1.19-.024 9.144-.372 8.76-2.33-.577-2.993-11.656-1.695-12.377 1.08 1.214.421 2.415.83 3.617 1.25zm36.553-6.91c.313-2.643 14.708.313 9.613 2.524-1.994-.673-9.985.685-9.613-2.523zm35.905-2.246c-3.677-1.346-13.338-.48-16.547 1.274-.696.18-2.715-.036-3.184.769-.6.865 16.679 1.081 19.73-2.043zm17.76-3.389c-4.975-.733-3.93 1.37-7.054 3.1.853 3.437 7.618.3 7.054-3.1zm19.214-.372c1.934-.156 2.283.048 1.045.637-1.947.156-2.295-.048-1.045-.637zm8.735 17.231c-5.13 0-13.278-1.081-17.663 2.283.408 2.764 5.31.553 6.729-.18 3.689-.228 8.219.432 10.934-2.103zm52.103-22.735c-1.743-4.23-9.085-2.09-12.005-.396-5.767.66-11.283 1.286-16.546 1.934-7.919.986-18.24.409-25.306 3.485 7.967 2.86 17.796.204 25.907-1.298 9.276-1.73 19.346.625 27.95-3.725zm8.195-1.55c-2.596-.757-7.09-2.067-6.165-.312.733 1.394 4.819.54 6.165.312zm10.706.986c3.52-.409 13.879-.24 16.378-3.389.24-.288-16.138-.228-17.411.517.348.961.697 1.91 1.033 2.872zm20.788 13.926c-1.274-.384-2.535-.769-3.797-1.153-.745-.036-6.56.096-6.212 1.826.468 2.367 8.976.229 10.01-.673zm3.87.036c-1.407-.228-1.178-.504.672-.829 1.43.229 1.202.505-.673.83zm27.276-21.665c-6.212 3.821-9.336 3.605-16.306 2.56 2.512-.289 5.059-.733 7.582-.878 2.536-1.333 5.792-2.775 8.724-1.682zm-9.505 17.544c4.855 2.27-5.19 5.587-5.876 2.8-.456-1.863 4.699-2.728 5.876-2.8zm4.254 1.225c3.353-2.018 7.835-4.073 10.37-.024-1.646 1.587-9.589 2.8-10.37.024zm14.035-17.483c-2.343 1.045-4.158 1.406-5.383-.517 3.328-1.394 3.412-.456 5.383.517zm17.855 14.403c.298.028.596-.122.89-.452-.294-.379-.592-.58-.89-.607v1.059zm5.611-.01a3.919 3.919 0 0 0-.383.47c.817-.318 1.193-.564 1.289-.73l-.906.26zm-.354-.33c-.3.116-.6.296-.846.56.318.037.61-.038.886-.177l-.04-.383zm.955-.236v-.014c1.339-1.22 3.508-2.393 5-1.28.409.3-4.542 1.141-4.71 1.177-.079.098-.197.076-.29.117zm11.297-17.576c-1.659 1.67-18.277-5.227-20.296-.313-.889 2.031 8.087 1.55 9.469 1.923 1.25-.144 9.529-.156 10.827-1.61zm44.568 10.562c-5.78-3.413-19.9 5.768-24.754 3.004 2.596 1.646 8.736 1.166 11.344-.793 1.526-.168 12.677-2.644 13.41-2.21zm9.468-16.739c-1.922-2.86-7.906-.865-10.67-.192 1.454 2.343 8.183 1.863 10.67.192zm14.168-4.373c2.547 5.443-8.676 4.986-9.253 3.184-.805-2.487 8.183-3.232 9.253-3.184zm21.088 15.689c-1.919-.233-4.606.371-6.068.749.12-.012-9.793 1.706-9.625 1.79 3.1 2.33 12.21-2.433 15.842-2.448l-.149-.091zm25.066-2.22c-.853.878 12.545-.768 8.303-1.26-1.947.083-6.837-.097-8.303 1.26zm17.015-1.802c-.505-.36-4.278-.36-4.194.805.853.253 4.855-.252 4.194-.805zm0 7.15c-1.13-.589 11.655-1.718 8.46-.517-1.767.337-6.682 1.586-8.46.517zm25.883-9.697c-5.6 1.947-12.51 2.139-18.097.817 4.014-2.692 13.627-2.463 18.097-.817zm10.141-1.923c.625 1.899-7.03 3.377-7.786.229.252-.06 7.258-1.887 7.786-.229zm20.02-2.283c-2.296-1.31-4.82-1.286-7.559.072-1.508-.036-5.997-.179-7.053 1.138.796-.914 12.855.845 14.611-1.21zM166.784 162.041l-.005-.104c-2.294.85-10.268.425-12.99 2.218-1.514.24-10.058 2.692-10.683 2.44 2.693 1.345 19.822-2.02 23.678-4.554zm0 0a2.99 2.99 0 0 0 .5-.397c-.106.112-.278.21-.505.293l.005.104z" fill="${i}" fill-rule="evenodd"/></svg>`,37:`<svg viewBox="0 0 1920 221" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="evenodd"><path d="M1876.683 56.742c-20.485-1.862-33.521-1.862-40.97 1.863v-5.587c0-3.725-1.862-5.587-5.587-3.725-20.485 14.898-50.281 11.174-91.251-9.311l1.862-3.725c-1.862 0-3.724 1.863-9.311 3.725-3.725 1.862-7.45 3.724-9.312 3.724 0-1.862 0-1.862 1.863-3.724V38.12l-7.45 3.724c-3.724 0-5.586 1.862-7.448 3.725 0-1.863 0-3.725-1.863-5.587-1.862-1.862-1.862-3.725-1.862-5.587l-3.725 5.587c-1.862 5.587-5.586 7.449-9.31 9.311-1.863 0-5.588 0-7.45-1.862-5.587-1.862-7.449-1.862-9.311-1.862-3.725 0-7.45 1.862-11.174 3.724 1.862-3.724 1.862-5.587 1.862-5.587-9.311 3.725-20.485 7.45-33.52 9.312-22.348 1.862-35.384 1.862-37.246 3.724 1.862-5.587 3.725-9.311 1.862-13.036-1.862 5.587-5.586 11.174-14.898 13.036-1.862-1.862-1.862-1.862-3.724-1.862-1.863 0-1.863 0-3.725 1.862-5.313 3.542-8.942 5.4-10.887 3.972-.582.942-1.029 1.615-2.149 1.615-1.862 0-1.862 0-3.724-1.862-3.725 0-3.725 1.862-5.587 3.724l-3.725-7.449c-1.862 3.725-1.862 5.587-1.862 5.587-1.862 0-1.862-1.862-3.724-3.724-1.863-1.863-1.863-1.863-3.725-1.863-1.241-1.241-2.483 0-3.725 3.725-1.862 0-1.862 0-3.724-1.862-1.242-1.242-3.104-1.863-5.587-1.863-1.862 1.863-5.587 1.863-11.173 1.863-.5-.5-.998-.731-1.462-.731a7.062 7.062 0 0 0 1.462-1.132c1.862-1.862 1.862-3.724 0-9.311-14.899 5.587-44.695 9.311-91.252 9.311-3.724-5.587-5.587-7.449-5.587-9.311-1.862 0-3.724 0-7.449 1.862l-6.057 4.543c.058-.71-.406-1.695-1.392-2.68-1.862-1.863-1.862-1.863-3.724-1.863-3.725 0-3.725 1.862-5.587 3.725-1.862 1.862-3.725 3.724-5.587 1.862 1.862-1.862 3.725-5.587 1.862-9.311-1.862 3.724-5.586 5.586-9.31 7.449-5.588 1.862-5.588 1.862-7.45 1.862 1.862-1.862 1.862-3.725 1.862-5.587-1.862 1.862-5.587 3.725-9.311 3.725-5.587-1.863-7.45-1.863-9.311 0l1.862-5.587c-1.862-1.862-3.725-1.862-3.725-1.862-1.862 1.862-1.862 1.862-1.862 3.724s0 3.725-1.862 5.587c-1.862 0-1.862-1.862-1.862-5.587-1.863 3.725-7.45 5.587-13.036 7.45-9.312 1.862-13.036 1.862-13.036 3.724v-3.725c-1.863 1.863-5.587 1.863-13.036 1.863-5.587 0-9.311 0-13.036 1.862-4.41-2.646-7.149-4.874-8.415-6.685a6.67 6.67 0 0 1-.896 1.098l-5.587 3.725c-1.862 0-1.862 0-3.725 1.862 0 1.862 0 3.724 1.863 7.449-9.312-1.862-13.036-3.725-13.036-3.725-5.587 0-9.312 0-11.174 1.863 1.862-1.863 1.862-3.725 0-9.312C1251 63 1233 55.138 1233 57c-3.725 5.587-6.25 7.191-9.974 9.054 1.862-1.863 1.862-3.725 0-9.312-1.086-1.086-1.539-2.172-1.358-3.259l-11.678 20.02s0-1.863-1.862-3.725c0-1.862-1.862-3.724-3.725-1.862 0 1.862 0 3.724-1.862 7.449h-7.449c-5.587-1.862-7.449-3.725-7.449-7.45-1.862-1.861 0-1.861 1.862-3.724 1.863-1.862 1.863-1.862 0-3.724-1.862 0-3.724 1.862-5.586 3.724-1.863 1.863-3.725 1.863-5.587 1.863V64.19c-1.863-1.862-5.587 0-7.45 1.863-1.862 3.724-1.862 7.449 0 9.311 1.863 0 1.863 0 1.863-1.862-1.862-1.863 0-3.725 1.862-1.863-1.862 5.587-7.449 7.45-14.898 9.312 0-1.862 0-3.725 1.862-7.45-5.53 3.687-12.885 9.199-23.87 14.729-.104.708.323-.492 1.523-1.692 1.5-4.5 1.792-6.583 2.821-6.251-3.553-.96-9.005.783-17.72 2.526-4.719 3.147-9.439 3.635-13.036 1.465l.001 4.122c-1.862 0-3.725-1.862-5.587-3.725-1.862-1.862-1.862-3.724-3.724-1.862-5.587 1.862-7.45 3.725-7.45 3.725 0-1.151 0-2.302.44-3.014l-13.475 6.738c-9.312 1.862-14.898 1.862-20.485 0 0 1.862-1.863 3.725-3.725 7.45-1.862 1.861-3.724 3.724-5.587 3.724l1.863-7.45c-1.263-1.262-2.525-1.668-3.787-1.8l-1.8 1.8v-1.862c-3.707.432-5.303 1.147-7.45 1.863-1.862 1.862-5.586 0-7.448-1.863 1.862-1.862 1.862-1.862 1.862-3.724 0-3.725-1.862-5.587-3.725-5.587-1.862 1.862-1.862 1.862-1.862 3.725l-7.449 7.449c0 1.862-1.862 1.862-3.724 1.862-1.863 0-1.863 0-1.863 1.862 0 0-1.862 0-3.724 1.862-3.725 0-5.587-1.862-5.587-5.586v-7.754c-1.083 1.877-3.888 5.543-7.45 11.478v-3.724c0 3.724 0 5.586-1.861 5.586 0 1.242-2.483 1.242-7.45 0 0 1.863 0 3.725-1.862 5.587-1.862-1.862-5.587-1.862-11.173-1.862-5.587-1.862-7.45-3.725-9.312-5.587-3.724 3.725-5.587 5.587-7.449 5.587-1.862 1.862-5.587 3.725-9.311 1.862 1.862-1.862 3.724-3.724 3.724-5.587-1.862-1.862-3.724-1.862-3.724-1.862 0 1.862 0 1.862-1.862 1.862l-1.863 1.863c0 1.862-3.724-1.863-13.036-11.174-1.862 1.862-3.724 3.725-3.724 7.45 0 1.861 0 3.724 1.862 5.586v3.725c-1.862-3.725-3.724-5.587-5.587-5.587l-11.173 7.449c-1.863 0-1.863-1.862-3.725-3.725 1.862-1.862 1.862-3.724 1.862-5.587 1.863-1.862 1.863-3.724 0-5.586-1.862-1.863-1.862-3.725-3.724-3.725s-1.862 1.862-3.725 3.725c-1.862 1.862-3.724 3.724-3.724 5.586-1.242 1.242-2.576 4.41-4.003 9.504-3.446-.192-3.446-.192-5.309 1.67-5.586 0-5.586-1.862-5.586-5.587 0 1.863-1.863 1.863-3.725 1.863s-3.724 1.862-3.724 7.449c-1.863-1.863-9.312-3.725-20.485-1.863-9.312 1.863-14.899-1.862-18.623-9.311 0 0-1.862 0-3.725 1.862-1.862 1.863-1.862 1.863 0 3.725 1.863 1.862 1.863 3.724 1.863 1.862l1.862-1.862v5.587c-3.725-1.863-5.587-1.863-5.587-3.725-1.862-1.862-1.862-3.724 0-9.311-1.862-1.863-1.862 0-3.724 1.862-1.863 0-1.863 1.862-3.725 5.587l-3.725 7.449c-1.862 1.862-3.724 1.862-5.586 1.862 0-3.724-1.863-5.587-5.587-5.587l-5.587 9.312-5.587-5.587V105.16l-5.587 1.863-3.724 5.586-4.246-7.076c.223 1.117-.224 2.234-1.34 3.352-1.863 1.862-3.725 1.862-3.725 1.862l1.862-1.862c-1.862-1.862-3.725-1.862-7.45 0 0 1.862 1.863 5.587 7.45 7.449 0 1.862 0 1.862-1.862 1.862-1.863 1.862-3.725 1.862-3.725 3.725 0-1.863-1.862-3.725-3.725-3.725h-7.449c-1.862 0-1.862 0-1.862 1.862-1.862 1.863-1.862 3.725-1.862 3.725s-1.862 0-3.725-1.862c-1.862 0-1.862-1.863 0-3.725l1.863 1.862c1.862 0 1.862 0 3.724-1.862-1.862 0-1.862 0-1.862-1.862l-1.862-1.862c-1.863-1.863-1.863 0-3.725 1.862-1.862 0-1.862 1.862-1.862 7.449 0 1.862-1.862 3.725-3.725 1.862 1.863-1.862 1.863-1.862 1.863-3.724 1.862-1.863 1.862-3.725 1.862-3.725l-7.45-3.724v4.655-.93c0 1.861-1.862 3.724-5.586 5.586-1.862 1.862-3.725 3.725-3.725 5.587-1.862 1.862-3.724 0-5.586-1.862-3.725-1.863-5.587-1.863-5.587-1.863-1.863-1.862-3.725-3.724-5.587-1.862l-5.587 5.587v-1.862c-1.862 0-1.862 0-3.724 1.862l-5.587 3.724c-1.863-1.862-1.863-5.586-3.725-13.036-1.862-1.862-1.862-3.724-1.862-3.724-1.862-1.862-1.862 0-3.725 1.862-1.862 0-3.724 1.862-3.724 7.45-1.862 3.724-1.862 7.448 0 9.31-1.862-1.862-7.45 0-14.898 1.863-5.587 1.862-9.312 0-13.036-1.862-1.862 3.724-3.725 5.586-3.725 5.586-1.862 0-7.449 1.863-20.485 3.725-7.449 1.862-14.898 1.862-20.485-3.725 1.863-1.862 3.725-3.724 1.863-5.586-1.863-3.725-1.863-5.587-1.863-5.587-1.862 1.862-1.862 3.724-3.724 1.862 0-1.241-.62 0-1.862 3.725 1.862 3.724 1.862 5.586 1.862 7.449l3.724 3.724c-3.724 1.863-7.449 3.725-13.036 3.725-5.586 1.862-9.31 0-11.173-1.862 1.862 1.862 1.862 3.724 0 5.586l-5.587-7.449c-1.862-1.862-3.724 0-5.587 1.863v5.586l-3.724-5.586s0 1.862-1.863 7.449c-1.241 1.241-3.724-.621-7.449-5.587-3.724 5.587-5.586 7.449-5.586 7.449-3.725 3.724-7.45 3.724-9.312 1.862l-5.587-5.587c-1.862 0-1.862 0-1.862 1.863 0 1.862 0 3.724 1.862 5.586-1.862-1.862-3.724-1.862-5.586-1.862-1.863-1.862-3.725-1.862-5.587-1.862l-7.45-5.587c-9.31 14.898-26.071 22.347-52.143 24.21v-3.725c-1.862-1.862-1.862 0-1.862 1.862 0 1.863 0 1.863-1.862 3.725 0-1.862 0-3.725-1.863-7.45-1.862-1.862-3.724-5.586-1.862-7.448-1.862-1.863-3.724 0-5.587 3.724-1.862 5.587-3.724 7.45-5.587 7.45 0 1.862 0 3.724 1.863 1.862 1.862-1.863 1.862 0 1.862 1.862-9.311 0-11.174 1.862-9.311 5.587-1.863-1.863-3.725-7.45-1.863-13.036l-3.724 5.587c-1.862-3.725-1.862-9.312 0-16.76 1.862-5.588-7.45 0-9.312 5.586 0 .634-.013 1.242-.04 1.822-1.875-1.822-5.56-1.809-7.409.04-1.862 1.862-3.724 3.725-5.586 3.725 1.862 1.862 3.724 3.724 1.862 7.449 0 1.862 0 3.724-1.862 5.587-1.863-1.863-1.863-3.725-1.863-5.587 0-1.862-1.862-1.862-3.724-1.862 0 0 0 1.862-1.862 7.449-1.863 1.862 0 3.724 1.862 5.586v3.725c-1.242 1.241-3.725 1.241-7.45 0-1.862 0-1.862 0-1.862 1.862-1.862-1.862-1.862-5.587 0-11.173 0-5.587-1.862-9.312-3.724-11.174 0 1.862 0 5.587-1.862 11.174-1.863 5.586-1.863 9.311 0 13.036l-3.725-5.587v-7.45c0-1.24-1.862 0-5.587 3.725 0 1.862 0 3.725-1.862 3.725l-3.725-7.45v9.312c0-1.862 0-1.862-1.862-3.725l-3.724-3.724s-1.863 1.862-7.45 3.724c-1.862 1.863-3.724 1.863-5.586-3.724v1.862c-1.862 0-1.862 0-3.725 1.862-1.862 1.863-1.862 3.725 0 5.587 7.45-1.862 7.45 0 9.312 3.725-1.863-1.862-3.725-3.725-5.587-1.862 0 1.862 0 1.862-1.862 3.724-1.863 1.862-1.863 3.725-1.863 3.725l-1.862-3.725c-1.862 5.587-3.725 9.311-3.725 7.45 0-3.725 0-5.588-1.862-7.45l-1.862 7.45c-3.725 0-3.725-1.863-5.587-3.725 0-1.863 0-3.725-1.862-3.725 0-1.862 0-1.862-1.862-1.862l2.807-4.211c-.716.128-1.762-.33-2.807-1.376-1.863-1.862-1.863-3.725-3.725-1.862 0 1.862 0 5.587-1.862 11.173v9.312c-1.863 1.862-1.863 0-3.725-1.863 0-1.862 0 0-1.862 1.863l3.724-9.312c0-1.862-1.862-3.724-3.724-5.586-1.862-1.863-5.587-3.725-7.45-1.863l-3.724 7.45c0 3.724 1.863 5.586 3.725 7.448-1.862 0-1.862 0-3.725-1.862C331 205.724 331 203.862 331 202c-1.862 1.863-1.862 3.725-1.862 5.587 1.862 1.862 1.862 3.725 0 5.587l-7.45-7.45-9.31-7.448L316.1 187.1l-3.725 1.862c1.863-3.724-5.586 0-7.449 5.587-1.862 7.45-9.311 11.174-11.173 5.587-1.863-1.862-1.863-3.724-3.725-3.724-1.862-1.863-7.449 1.862-9.311-1.863 0-3.724-1.863-5.587-3.725-3.724-3.724 1.862-5.587 1.862-5.587 1.862-1.862 1.862-3.724 3.725-1.862 7.45 0 1.861 1.862 3.724 3.725 1.861 1.862 0 1.862 1.863 1.862 3.725-1.862 1.862-5.587 1.862-9.311 0-1.863-1.862-3.725 7.449-5.587 5.587-1.862 0-9.312-1.863-14.898-7.45-1.16-2.32-3.045-3.195-4.75-2.173.683-1.172 1.025-2.882 1.025-5.275-1.862 1.862-5.587 0-7.449-3.725-1.862-1.862-9.311-3.725-7.45-1.862l3.725 7.449c-5.586 0-9.31 1.862-11.173 3.724-3.725 1.863-5.587 5.587-7.45 9.312-1.861-1.863-1.861-3.725-1.861-7.45 0-1.54 0-3.081 1.055-3.567-8.96 3.656-18.089 5.384-28.99 3.568 1.863 1.862 1.863 3.724 1.863 5.586 0 1.863-1.863 1.863-3.725 1.863l-1.862 1.862c-.299.299-.55.598-.753.896-1.58-5.596-2.972-8.598-2.972-10.207l-1.862 1.862c-1.862 0-1.862-1.862-1.862-3.725 0-3.724-1.862-5.586-3.725-3.724-5.587 5.587-11.173 11.173-18.622 14.898-5.587-1.862-9.312-1.862-14.899 0-1.862 1.862-3.724 1.862-9.31 3.724-1.863 1.863-3.725 3.725-5.588 3.725-1.862-1.862-3.724-3.725-5.587-9.311-1.862-5.587-1.862-7.45-3.724-7.45s-1.862 1.863 0 5.587v1.863c0 1.241-.62.62-1.862-1.863h-9.312c-3.724 1.863-5.586 5.587-5.586 11.174v-11.174c0-1.241-.621-.62-1.863 1.863-1.862 0-1.862 0-1.862 1.862v-3.725l-1.862-1.862V202c-1.863-1.862-5.587-1.862-7.45 0-3.724 3.725-5.586 5.587-7.448 5.587l5.586 5.587c-1.862 1.862-5.586 3.724-11.173 3.724s-9.312 0-11.174 1.863l-1.862-5.587-3.725 3.724c0-1.862-1.862-3.724-3.724-5.586-1.862-1.863-1.862 0-3.725 1.862l2.2-4.4L43 208l-10 3.31L22 205l-1-4.706-11 1.705 1-3.724-11-4.211V0h1920v10l-6 15c-10.662 17.914-29.694 32.59-37.317 31.742z" fill-rule="nonzero" opacity=".25"/><path d="M1914 25c-8.415 9.712-15.106 15.19-20.072 16.43-9.311 9.312-20.485 11.175-37.245 9.312-20.485-1.862-33.521-1.862-40.97 1.863v-5.587c0-3.725-1.862-5.587-5.587-3.725-20.485 14.898-50.281 11.174-91.251-9.311l1.862-3.725c-1.862 0-3.724 1.863-9.311 3.725-3.725 1.862-7.45 3.724-9.312 3.724 0-1.862 0-1.862 1.863-3.724V32.12l-7.45 3.724c-3.724 0-5.586 1.862-7.448 3.725 0-1.863 0-3.725-1.863-5.587-1.862-1.862-1.862-3.725-1.862-5.587l-3.725 5.587c-1.862 5.587-5.586 7.449-9.31 9.311-1.863 0-5.588 0-7.45-1.862-5.587-1.862-7.449-1.862-9.311-1.862-3.725 0-7.45 1.862-11.174 3.724 1.862-3.724 1.862-5.587 1.862-5.587-9.311 3.725-20.485 7.45-33.52 9.312-22.348 1.862-35.384 1.862-37.246 3.724 1.862-5.587 3.725-9.311 1.862-13.036-1.862 5.587-5.586 11.174-14.898 13.036-1.862-1.862-1.862-1.862-3.724-1.862-1.863 0-1.863 0-3.725 1.862-5.313 3.542-8.942 5.4-10.887 3.972-.582.942-1.029 1.615-2.149 1.615-1.862 0-1.862 0-3.724-1.862-3.725 0-3.725 1.862-5.587 3.724l-3.725-7.449c-1.862 3.725-1.862 5.587-1.862 5.587-1.862 0-1.862-1.862-3.724-3.724-1.863-1.863-1.863-1.863-3.725-1.863-1.241-1.241-2.483 0-3.725 3.725-1.862 0-1.862 0-3.724-1.862-1.242-1.242-3.104-1.863-5.587-1.863-1.862 1.863-5.587 1.863-11.173 1.863-.5-.5-.998-.731-1.462-.731a7.062 7.062 0 0 0 1.462-1.132c1.862-1.862 1.862-3.724 0-9.311-14.899 5.587-44.695 9.311-91.252 9.311-3.724-5.587-5.587-7.449-5.587-9.311-1.862 0-3.724 0-7.449 1.862l-6.057 4.543c.058-.71-.406-1.695-1.392-2.68-1.862-1.863-1.862-1.863-3.724-1.863-3.725 0-3.725 1.862-5.587 3.725-1.862 1.862-3.725 3.724-5.587 1.862 1.862-1.862 3.725-5.587 1.862-9.311-1.862 3.724-5.586 5.586-9.31 7.449-5.588 1.862-5.588 1.862-7.45 1.862 1.862-1.862 1.862-3.725 1.862-5.587-1.862 1.862-5.587 3.725-9.311 3.725-5.587-1.863-7.45-1.863-9.311 0l1.862-5.587c-1.862-1.862-3.725-1.862-3.725-1.862-1.862 1.862-1.862 1.862-1.862 3.724s0 3.725-1.862 5.587c-1.862 0-1.862-1.862-1.862-5.587-1.863 3.725-7.45 5.587-13.036 7.45-9.312 1.862-13.036 1.862-13.036 3.724v-3.725c-1.863 1.863-5.587 1.863-13.036 1.863-5.587 0-9.311 0-13.036 1.862-4.41-2.646-7.149-4.874-8.415-6.685a6.67 6.67 0 0 1-.896 1.098l-5.587 3.725c-1.862 0-1.862 0-3.725 1.862 0 1.862 0 3.724 1.863 7.449-9.312-1.862-13.036-3.725-13.036-3.725-5.587 0-9.312 0-11.174 1.863 1.862-1.863 1.862-3.725 0-9.312C1231 57 1213 49.138 1213 51c-3.725 5.587-6.25 7.191-9.974 9.054 1.862-1.863 1.862-3.725 0-9.312-1.086-1.086-1.539-2.172-1.358-3.259l-11.678 20.02s0-1.863-1.862-3.725c0-1.862-1.862-3.724-3.725-1.862 0 1.862 0 3.724-1.862 7.449h-7.449c-5.587-1.862-7.449-3.725-7.449-7.45-1.862-1.861 0-1.861 1.862-3.724 1.863-1.862 1.863-1.862 0-3.724-1.862 0-3.724 1.862-5.586 3.724-1.863 1.863-3.725 1.863-5.587 1.863V58.19c-1.863-1.862-5.587 0-7.45 1.863-1.862 3.724-1.862 7.449 0 9.311 1.863 0 1.863 0 1.863-1.862-1.862-1.863 0-3.725 1.862-1.863-1.862 5.587-7.449 7.45-14.898 9.312 0-1.862 0-3.725 1.862-7.45-5.53 3.687-12.885 9.199-23.87 14.729-.104.708.323-.492 1.523-1.692 1.5-4.5 1.792-6.583 2.821-6.251-3.553-.96-9.005.783-17.72 2.526-4.719 3.147-9.439 3.635-13.036 1.465l.001 4.122c-1.862 0-3.725-1.862-5.587-3.725-1.862-1.862-1.862-3.724-3.724-1.862-5.587 1.862-7.45 3.725-7.45 3.725 0-1.151 0-2.302.44-3.014l-13.475 6.738c-9.312 1.862-14.898 1.862-20.485 0 0 1.862-1.863 3.725-3.725 7.45-1.862 1.861-3.724 3.724-5.587 3.724l1.863-7.45c-1.263-1.262-2.525-1.668-3.787-1.8l-1.8 1.8v-1.862c-3.707.432-5.303 1.147-7.45 1.863-1.862 1.862-5.586 0-7.448-1.863 1.862-1.862 1.862-1.862 1.862-3.724 0-3.725-1.862-5.587-3.725-5.587-1.862 1.862-1.862 1.862-1.862 3.725l-7.449 7.449c0 1.862-1.862 1.862-3.724 1.862-1.863 0-1.863 0-1.863 1.862 0 0-1.862 0-3.724 1.862-3.725 0-5.587-1.862-5.587-5.586v-7.754c-1.083 1.877-3.888 5.543-7.45 11.478v-3.724c0 3.724 0 5.586-1.861 5.586 0 1.242-2.483 1.242-7.45 0 0 1.863 0 3.725-1.862 5.587-1.862-1.862-5.587-1.862-11.173-1.862-5.587-1.862-7.45-3.725-9.312-5.587-3.724 3.725-5.587 5.587-7.449 5.587-1.862 1.862-5.587 3.725-9.311 1.862 1.862-1.862 3.724-3.724 3.724-5.587-1.862-1.862-3.724-1.862-3.724-1.862 0 1.862 0 1.862-1.862 1.862l-1.863 1.863c0 1.862-3.724-1.863-13.036-11.174-1.862 1.862-3.724 3.725-3.724 7.45 0 1.861 0 3.724 1.862 5.586v3.725c-1.862-3.725-3.724-5.587-5.587-5.587l-11.173 7.449c-1.863 0-1.863-1.862-3.725-3.725 1.862-1.862 1.862-3.724 1.862-5.587 1.863-1.862 1.863-3.724 0-5.586-1.862-1.863-1.862-3.725-3.724-3.725s-1.862 1.862-3.725 3.725c-1.862 1.862-3.724 3.724-3.724 5.586-1.242 1.242-2.576 4.41-4.003 9.504-3.446-.192-3.446-.192-5.309 1.67-5.586 0-5.586-1.862-5.586-5.587 0 1.863-1.863 1.863-3.725 1.863s-3.724 1.862-3.724 7.449c-1.863-1.863-9.312-3.725-20.485-1.863-9.312 1.863-14.899-1.862-18.623-9.311 0 0-1.862 0-3.725 1.862-1.862 1.863-1.862 1.863 0 3.725 1.863 1.862 1.863 3.724 1.863 1.862l1.862-1.862v5.587c-3.725-1.863-5.587-1.863-5.587-3.725-1.862-1.862-1.862-3.724 0-9.311-1.862-1.863-1.862 0-3.724 1.862-1.863 0-1.863 1.862-3.725 5.587l-3.725 7.449c-1.862 1.862-3.724 1.862-5.586 1.862 0-3.724-1.863-5.587-5.587-5.587l-5.587 9.312-5.587-5.587V99.16l-5.587 1.863-3.724 5.586-4.246-7.076c.223 1.117-.224 2.234-1.34 3.352-1.863 1.862-3.725 1.862-3.725 1.862l1.862-1.862c-1.862-1.862-3.725-1.862-7.45 0 0 1.862 1.863 5.587 7.45 7.449 0 1.862 0 1.862-1.862 1.862-1.863 1.862-3.725 1.862-3.725 3.725 0-1.863-1.862-3.725-3.725-3.725h-7.449c-1.862 0-1.862 0-1.862 1.862-1.862 1.863-1.862 3.725-1.862 3.725s-1.862 0-3.725-1.862c-1.862 0-1.862-1.863 0-3.725l1.863 1.862c1.862 0 1.862 0 3.724-1.862-1.862 0-1.862 0-1.862-1.862l-1.862-1.862c-1.863-1.863-1.863 0-3.725 1.862-1.862 0-1.862 1.862-1.862 7.449 0 1.862-1.862 3.725-3.725 1.862 1.863-1.862 1.863-1.862 1.863-3.724 1.862-1.863 1.862-3.725 1.862-3.725l-7.45-3.724v4.655-.93c0 1.861-1.862 3.724-5.586 5.586-1.862 1.862-3.725 3.725-3.725 5.587-1.862 1.862-3.724 0-5.586-1.862-3.725-1.863-5.587-1.863-5.587-1.863-1.863-1.862-3.725-3.724-5.587-1.862l-5.587 5.587v-1.862c-1.862 0-1.862 0-3.724 1.862l-5.587 3.724c-1.863-1.862-1.863-5.586-3.725-13.036-1.862-1.862-1.862-3.724-1.862-3.724-1.862-1.862-1.862 0-3.725 1.862-1.862 0-3.724 1.862-3.724 7.45-1.862 3.724-1.862 7.448 0 9.31-1.862-1.862-7.45 0-14.898 1.863-5.587 1.862-9.312 0-13.036-1.862-1.862 3.724-3.725 5.586-3.725 5.586-1.862 0-7.449 1.863-20.485 3.725-7.449 1.862-14.898 1.862-20.485-3.725 1.863-1.862 3.725-3.724 1.863-5.586-1.863-3.725-1.863-5.587-1.863-5.587-1.862 1.862-1.862 3.724-3.724 1.862 0-1.241-.62 0-1.862 3.725 1.862 3.724 1.862 5.586 1.862 7.449l3.724 3.724c-3.724 1.863-7.449 3.725-13.036 3.725-5.586 1.862-9.31 0-11.173-1.862 1.862 1.862 1.862 3.724 0 5.586l-5.587-7.449c-1.862-1.862-3.724 0-5.587 1.863v5.586l-3.724-5.586s0 1.862-1.863 7.449c-1.241 1.241-3.724-.621-7.449-5.587-3.724 5.587-5.586 7.449-5.586 7.449-3.725 3.724-7.45 3.724-9.312 1.862l-5.587-5.587c-1.862 0-1.862 0-1.862 1.863 0 1.862 0 3.724 1.862 5.586-1.862-1.862-3.724-1.862-5.586-1.862-1.863-1.862-3.725-1.862-5.587-1.862l-7.45-5.587c-9.31 14.898-26.071 22.347-52.143 24.21v-3.725c-1.862-1.862-1.862 0-1.862 1.862 0 1.863 0 1.863-1.862 3.725 0-1.862 0-3.725-1.863-7.45-1.862-1.862-3.724-5.586-1.862-7.448-1.862-1.863-3.724 0-5.587 3.724-1.862 5.587-3.724 7.45-5.587 7.45 0 1.862 0 3.724 1.863 1.862 1.862-1.863 1.862 0 1.862 1.862-9.311 0-11.174 1.862-9.311 5.587-1.863-1.863-3.725-7.45-1.863-13.036l-3.724 5.587c-1.862-3.725-1.862-9.312 0-16.76 1.862-5.588-7.45 0-9.312 5.586 0 .634-.013 1.242-.04 1.822-1.875-1.822-5.56-1.809-7.409.04-1.862 1.862-3.724 3.725-5.586 3.725 1.862 1.862 3.724 3.724 1.862 7.449 0 1.862 0 3.724-1.862 5.587-1.863-1.863-1.863-3.725-1.863-5.587 0-1.862-1.862-1.862-3.724-1.862 0 0 0 1.862-1.862 7.449-1.863 1.862 0 3.724 1.862 5.586v3.725c-1.242 1.241-3.725 1.241-7.45 0-1.862 0-1.862 0-1.862 1.862-1.862-1.862-1.862-5.587 0-11.173 0-5.587-1.862-9.312-3.724-11.174 0 1.862 0 5.587-1.862 11.174-1.863 5.586-1.863 9.311 0 13.036l-3.725-5.587v-7.45c0-1.24-1.862 0-5.587 3.725 0 1.862 0 3.725-1.862 3.725l-3.725-7.45v9.312c0-1.862 0-1.862-1.862-3.725l-3.724-3.724s-1.863 1.862-7.45 3.724c-1.862 1.863-3.724 1.863-5.586-3.724v1.862c-1.862 0-1.862 0-3.725 1.862-1.862 1.863-1.862 3.725 0 5.587 7.45-1.862 7.45 0 9.312 3.725-1.863-1.862-3.725-3.725-5.587-1.862 0 1.862 0 1.862-1.862 3.724-1.863 1.862-1.863 3.725-1.863 3.725l-1.862-3.725c-1.862 5.587-3.725 9.311-3.725 7.45 0-3.725 0-5.588-1.862-7.45l-1.862 7.45c-3.725 0-3.725-1.863-5.587-3.725 0-1.863 0-3.725-1.862-3.725 0-1.862 0-1.862-1.862-1.862l2.807-4.211c-.716.128-1.762-.33-2.807-1.376-1.863-1.862-1.863-3.725-3.725-1.862 0 1.862 0 5.587-1.862 11.173v9.312c-1.863 1.862-1.863 0-3.725-1.863 0-1.862 0 0-1.862 1.863l3.724-9.312c0-1.862-1.862-3.724-3.724-5.586-1.862-1.863-5.587-3.725-7.45-1.863l-3.724 7.45c0 3.724 1.863 5.586 3.725 7.448-1.862 0-1.862 0-3.725-1.862C311 199.724 311 197.862 311 196c-1.862 1.863-1.862 3.725-1.862 5.587 1.862 1.862 1.862 3.725 0 5.587l-7.45-7.45-9.31-7.448L296.1 181.1l-3.725 1.862c1.863-3.724-5.586 0-7.449 5.587-1.862 7.45-9.311 11.174-11.173 5.587-1.863-1.862-1.863-3.724-3.725-3.724-1.862-1.863-7.449 1.862-9.311-1.863 0-3.724-1.863-5.587-3.725-3.724-3.724 1.862-5.587 1.862-5.587 1.862-1.862 1.862-3.724 3.725-1.862 7.45 0 1.861 1.862 3.724 3.725 1.861 1.862 0 1.862 1.863 1.862 3.725-1.862 1.862-5.587 1.862-9.311 0-1.863-1.862-3.725 7.449-5.587 5.587-1.862 0-9.312-1.863-14.898-7.45-1.16-2.32-3.045-3.195-4.75-2.173.683-1.172 1.025-2.882 1.025-5.275-1.862 1.862-5.587 0-7.449-3.725-1.862-1.862-9.311-3.725-7.45-1.862l3.725 7.449c-5.586 0-9.31 1.862-11.173 3.724-3.725 1.863-5.587 5.587-7.45 9.312-1.861-1.863-1.861-3.725-1.861-7.45 0-1.54 0-3.081 1.055-3.567-8.96 3.656-18.089 5.384-28.99 3.568 1.863 1.862 1.863 3.724 1.863 5.586 0 1.863-1.863 1.863-3.725 1.863l-1.862 1.862c-.299.299-.55.598-.753.896-1.58-5.596-2.972-8.598-2.972-10.207l-1.862 1.862c-1.862 0-1.862-1.862-1.862-3.725 0-3.724-1.862-5.586-3.725-3.724-5.587 5.587-11.173 11.173-18.622 14.898-5.587-1.862-9.312-1.862-14.899 0-1.862 1.862-3.724 1.862-9.31 3.724-1.863 1.863-3.725 3.725-5.588 3.725-1.862-1.862-3.724-3.725-5.587-9.311-1.862-5.587-1.862-7.45-3.724-7.45s-1.862 1.863 0 5.587v1.863c0 1.241-.62.62-1.862-1.863h-9.312c-3.724 1.863-5.586 5.587-5.586 11.174v-11.174c0-1.241-.621-.62-1.863 1.863-1.862 0-1.862 0-1.862 1.862v-3.725l-1.862-1.862V196c-1.863-1.862-5.587-1.862-7.45 0-3.724 3.725-5.586 5.587-7.448 5.587l5.586 5.587c-1.862 1.862-5.586 3.724-11.173 3.724s-9.312 0-11.174 1.863l-1.862-5.587-3.725 3.724c0-1.862-1.862-3.724-3.724-5.586-1.862-1.863-1.862 0-3.725 1.862l2.2-4.4L23 202l-6-1-6-5-5 1-6-3V0h1920v10l-6 15z" fill-rule="nonzero"/><path d="M701.253 158.643l1.245-.25.995.25.996-1.493h1.99c2.987 0 4.231 2.986 4.231 5.475 0 1.742-.249 3.235-.497 4.977l-2.738 1.991-2.489.249c-2.737 0-10.95-.498-10.95-4.48 0-.995.498-2.488.747-3.484l1.244-.995 1.742 1.244a23.06 23.06 0 0 1 3.484-3.484zm124.699 11.082c.249.497.497 1.493.497 1.99l-.248 2.738-1.245 1.493c-1.99.996-4.23 1.494-6.47 1.494l-4.48-2.24-1.493-1.991v-.498l.249-1.99c1.244-2.24 3.235-3.734 5.475-4.978h3.484l3.982 2.986.498.996h-.25zm54.751-39.82c0-2.986 1.245-5.724 4.48-5.724 2.489 0 4.728 2.49 4.728 4.978 0 .498-.746 2.24-.995 2.737l-5.226 1.991c-1.245-.995-2.24-2.488-2.987-3.982zm-6.72 25.634c0 2.24-1.741 3.982-3.981 3.982-1.991 0-4.48-2.489-4.48-4.48 0-1.99 1.742-4.23 3.733-4.23 2.24 0 4.729 2.488 4.729 4.728zm33.35-19.412c0-1.742 1.492-3.484 3.235-3.484 2.24 0 4.23 1.991 4.23 4.23 0 1.743-1.244 4.232-3.235 4.232-2.489 0-4.23-2.738-4.23-4.978zm-76.902 6.222l-2.488 2.738c-1.742 0-2.987-1.494-2.987-3.236l2.987-2.488 2.488 2.986zm135.386-9.706l-2.738-2.24 1.991-1.99 2.24 1.99-1.493 2.24zm-120.205 39.073l1.991-1.494 1.991 2.24-1.99 1.991-1.992-2.737zm-138.137 1.61l-4.48-2.489.498-.249 5.226-.248.498.746-1.742 2.24zm128.93-6.339l2.24-1.244 1.492 1.742-1.742 1.493-1.99-1.244v-.747zm75.407-21.403l-1.742 1.742-1.991-2.488 1.244-.996 2.489 1.742zm-39.322 2.738l-1.742-2.489 1.494-1.244 1.742 1.493-1.494 2.24zm32.354-10.702l-.747-1.493.995-2.24h.747l-.249 3.485-.746.248zm37.33-5.226l1.742-.995 1.245 1.244-1.245 1.244-1.742-1.493zm-77.896 27.376l1.742-1.244 1.244.995-1.493 1.742-1.493-1.493zm75.905-20.656l.996 1.742-1.245 1.244-1.244-1.244 1.493-1.742zm-239.428 32.221l-1.244-.747.996-.248 1.244.746-.996.25zm158.048-38.692l-.747-.498.498-.746.497.497-.248.747zm-20.906 44.299l-.497-.498.249-.498.497.25-.249.746zm17.67-32.602c-.249-.249-.249-.249-.249-.498l.25-.249.248.25-.249.497zm23.643-7.217c-.249.249-.249.249-.498.249l-.249-.25.25-.248.497.249zm85.86-13.44h-.249c0-.248 0-.248.25-.248v.249zm-256.102 33.715c.25 0 .25-.248.498-.248v.248l-.249.25c0-.25 0-.25-.249-.25zm131.418-25.004c-.249-.249-.249-.249-.249-.498h.25c.248 0 .248 0 .248.25-.249 0-.249 0-.249.248zm-141.373 28.24c-.248 0-.248-.25-.497-.25 0 .25.249.25.497.25zm9.457-4.48v-.249l.25.249h-.25zm664.017-37.916h-1.803l-1.803-6.611 1.202-2.404 1.803-.601.601 2.404v7.212zm56.494-33.656l2.404-2.404 1.803 3.005-1.803 3.005-2.404-3.606zm-33.656-26.444l1.202 1.202v1.202c-.601-.601-.601-.601-1.202-.601v-1.803zm187.34 59.262c.601 0 .601 0 .601.601s0 .601-.601.601l-.601-.601.601-.601zm83.701 3.025l.601.601v.601h-.601v-1.202zM1362.27 36.502c.601 0 .601 0 .601.601h-.601v-.601zm57.095 33.055h.601v.601c-.601 0-.601 0-.601-.601zm-111.185-8.414l3.005 6.01-9.015 6.01-4.808-6.01c3.005-3.606 5.409-8.414 9.616-10.818l1.803 2.404-.601 2.404zm-24.641 46.277l-6.01-4.207c0-4.207 1.202-9.616 6.611-9.616l5.409 6.611-6.01 7.212zm51.686-22.237l-6.01-9.015 5.409-3.005 6.01 4.808-5.409 7.212zm251.046 2.167l4.808 3.606-6.01 7.212-4.808-6.01 6.01-4.808zm155.013 25.479l3.005 3.005-2.404 3.606-8.414-2.404-2.404-4.207 4.808-2.404 5.409 2.404zm34.04-13.773v-1.803l6.01-4.207 4.808 5.409-4.207 4.808-6.611-4.207zm-149.599-16.277l3.606-6.611 4.207 6.611 6.995-5.192-14.808 5.192zm82.721 30.651l-4.207 6.01-3.606-6.01 3.005-4.808 4.808 4.808zm-51.686-26.444l3.005-4.207 3.005 4.808-3.005 3.005-3.005-3.606zm-332.954 42.671l-4.808-2.404 4.207-3.606 3.005 3.005-2.404 3.005zm-34.257-10.818l2.404-4.207 3.005 3.606-3.005 3.005-2.404-2.404zm388.236-13.439l2.404 1.803-2.404 1.803-1.803-1.803 1.803-1.803zm84.918-8.748l-1.202-.601 1.202-1.202 1.202 1.202-1.202.601zm-562.703 30l.601-1.202.601.601-.601 1.202-.601-.601zm15.46 4.45c-4.828 0-7.798-3.342-9.284-7.798.743-2.228.743-4.827 2.6-6.312 1.114-2.228 2.97-3.342 5.57-3.342 5.198 0 9.654 2.97 9.654 8.54 0 4.828-3.713 8.912-8.54 8.912zm-113.604 7.028c0-2.971 3.342-5.942 5.199-7.798 2.97 0 7.426 5.198 7.426 8.169 0 3.342-4.085 5.57-6.312 7.426-3.342-.37-6.313-4.455-6.313-7.797zm-46.345-26.817l-4.084 5.57c-3.714 0-7.056-3.343-7.427-7.056l5.199-4.827c3.713 0 6.312 2.6 6.312 6.313z"/></g></svg>`,38:`<svg viewBox="0 0 1920 255" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1106.457 241.001l12.529-1.761c-8.931 1.76-12.522 1.761-12.529 1.761h1.862c-35.368 3.723-76.321 5.585-119.136 5.585-9.307 0-18.615 0-24.2 1.861 1.862-1.861 3.724-1.861 5.585-1.861h-9.307c5.584-1.862 11.169-3.723 13.03-5.585h-111.69l-94.935-3.723c-109.829-5.584-173.12-9.307-186.15-11.168-65.152-5.585-124.72-13.031-182.426-18.615-57.706-7.446-87.49-11.17-93.075-11.17l-63.29-9.307c48.398 9.308 85.628 16.754 111.689 20.477 48.399 7.446 98.66 14.892 150.781 20.476l148.92 11.169c143.296 5.511 244.891 9.21 304.785 7.516-1.788.14-3.848.554-5.085 1.791h11.169c-11.169 1.862-24.2 1.862-39.091 1.862-5.585 0-16.754 0-31.646 1.861-13.03 0-24.2 0-29.784 1.862h-63.29l-120.998-3.723c-57.706-1.862-135.889-9.308-236.41-22.338l-81.905-9.307-40.953-5.585c-14.892-1.861-27.922-5.584-39.091-7.446-1.862 0-1.862 0-1.862-1.861h-1.861c-13.03-3.723-27.923-9.308-46.538-18.615l-14.891-1.862H199.91c1.862 0 3.723 0 7.446 1.862l-16.753-3.723c-35.369 0-67.014-3.723-91.214-9.308-1.861 0-1.861 0-1.861-1.861h-1.862c-1.861 0-3.723 0-1.861-1.862h7.446c13.03 1.862 20.476 1.862 24.2 0-1.862 0-5.585 0-7.447-1.861h-3.723c0-1.862 0-1.862 1.862-3.723-1.862 0-1.862 0-3.723-1.862 0 0-1.862-1.861-7.446-3.723 48.399 1.862 115.413 5.585 202.903 7.446l-7.446-3.723c-3.723-1.861-7.446-1.861-13.03-1.861-9.308 0-13.031 0-13.031-1.862-31.646 1.862-52.122 1.862-65.152 0-22.338 0-52.122-1.861-87.49-7.446L37.96 138.62c-13.03-1.861-22.338-5.584-29.784-7.446H6.315v-1.861H4.453c-2.438-1.22-4.077-1.64-4.396-2.308L0 127V0h1920v4l-.459.23c.13.112.26.232.39.362 1.86 0-33.508 9.307-102.383 26.06l-122.859 29.785 87.49-18.615c46.538-9.308 70.737-14.892 74.46-14.892-1.861 1.861-3.723 1.861-7.446 1.861l-7.446 3.723c9.308-1.861 16.754-3.723 18.615-3.723l-169.396 50.26-59.567 18.615-46.538 13.03c-24.2 5.585-40.953 11.17-50.26 14.893 57.706-13.03 124.72-31.646 204.764-55.845l48.4-13.03c26.06-9.308 48.398-14.892 67.013-18.615l-14.892 5.584 16.4-3.28c-11.353 2.614-29.34 11.553-55.491 23.757l-46.538 18.614c-13.03 3.723-26.06 7.446-37.23 13.031-16.753 5.584-26.06 9.307-26.06 9.307-14.893 5.585-39.092 9.308-70.737 14.892l-117.274 29.784-109.829 26.061c1.862-1.861 3.723-1.861 9.308-3.723-5.585 1.862-9.308 1.862-13.03 1.862 46.537-20.477 85.628-35.369 115.412-40.953-24.2 1.861-50.26 9.307-81.906 22.338-31.645 13.03-61.429 20.476-93.074 26.06l-20.477 3.724c7.321 0 29.038-1.8 66.92-3.63l-1.767 1.768h9.307c-20.476 5.585-78.183 14.892-176.842 27.923l-31.645 11.169 74.46-7.446c27.922-3.723 52.121-9.308 74.46-14.892l78.182-18.615c61.43-14.892 106.105-22.338 134.027-20.477 0-1.861 1.862-1.861 7.446-3.723h5.585c16.753-1.861 29.784-3.723 42.814-3.723l-7.446 1.862h13.03l-37.23 3.723c-29.783 13.03-80.043 24.2-150.78 37.23l-80.044 11.169c-50.26 9.307-76.322 13.03-78.183 13.03-9.308 1.862-22.338 1.862-42.814 3.723-20.477 0-35.369 1.862-42.815 3.723-29.784 5.584-63.29 9.307-98.659 11.169 20.477 1.861 33.507 1.861 39.091 1.861h-11.169 11.17zM958.9 246.656c.903-.07 1.737-.07 2.361-.07-.78.024-1.566.048-2.36.07zm417.38-65.129l.094-.093h1.862c-.657.03-1.309.062-1.956.093zm480.005-141.124l2.216-.443c-.709.118-1.447.266-2.216.443zm-741.35 200.587c-.343.011-.687.011-1.032.011h-5.584a1848 1848 0 0 0 6.617-.011zm0 0c1.507-.052 3.013-.329 4.519-1.816l106.139-14.926c42.814-3.723 72.598-5.584 93.075-3.723 1.861 0-1.862 0-7.446 1.862h11.169c-18.615 1.861-48.4 5.584-89.352 13.03-33.745 3.552-72.574 5.41-118.103 5.573zm4.519-1.816l-.468.066.502-.1a7.809 7.809 0 0 1-.034.034z" fill="${i}" fill-rule="nonzero"/></svg>`,39:`<svg viewBox="0 0 1920 85" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1481.47 31.033c1.99-.252 4.01-.504 6.067-.748l6.049-1.648c.34-.122.677-.242 1.01-.358l-5.598.495-7.528 2.26zm15.39-4.619c1.984-.2 3.86-.366 5.627-.498a89.808 89.808 0 0 1 3.978-.898l-2.01.763c.358-.023.71-.044 1.058-.063l1.242-.252c-.256.06-.529.136-.82.229.666-.036 1.313-.065 1.943-.09l16.7-.605h8.736c.77.303 2.312.303 4.11.303 2.056.303 3.598.303 4.368.303.654 0 1.282 0 1.883.01-13.57-1.42-26.97-1.721-40.34-1.145l-6.475 1.943zm49.48-.506h-.694c.171.202.455.27.702.292-8.266-.276-22.289.326-42.067 1.223l-3.154.278c-.944.44-1.974.93-3.095 1.463 4.195-.338 11.557-.817 21.922-1.439l13.103-.605h15.416c-.257-.303-1.028-.606-1.799-.909h1.285c-.22 0-.44 0-.66-.19l-.958-.113zm1.616.192c.125.019.256.035.39.048l-.39-.048zm47.438 10.128a13.408 13.408 0 0 0-.675-.024l2.826.606.028.006-2.18-.588zm9.693 2.622a48.625 48.625 0 0 1 5.304 2.2c4.368 2.12 7.965 3.33 11.305 3.634-3.144-.695-7.039-2.276-11.57-4.47l-5.04-1.364zm27.824 9.07a224.922 224.922 0 0 0-7.104-2.025c1.05.495 2.786 1.192 5.21 1.926.63.036 1.262.069 1.894.098zm11.376 4.403l1.88.693 2.615.102c-.702-.244-1.396-.483-2.082-.72a71.837 71.837 0 0 1-2.413-.075zm10.849.202c.328.113.658.224.988.335l1.144.539c1.688.047 3.432.09 5.234.129l-.285-.142a672.93 672.93 0 0 1-3.11-.7c-1.185-.002-1.666-.021-1.666-.28-.816.047-1.584.087-2.305.119zm-24.144 1.564l-2.359-.926c-5.91-1.817-11.048-2.726-15.93-3.029 0 .303-1.284-.302-4.11-1.817l-12.332-1.514c-6.937-.605-10.791-.908-12.076-1.211-1.798-.303-4.368-.606-7.708-.606-3.34-.302-5.909-.302-7.707-.605l-4.625-.909-4.368-.605c-2.826-.303-5.91-.303-9.25-.303-3.082-.303-9.248-.303-18.498-.303.257-.909-1.284-1.514-4.881-1.211-6.166-.303-12.59-.303-19.013-.303-7.707 0-13.617.303-17.728.908l-16.7.606c-3.854.303-9.506.606-16.7 1.514-4.59.65-8.524 1.144-11.99 1.373l-6.168 1.585-21.107 5.067c.357-.362.715-.362 1.788-.724-1.073.362-1.788.362-2.504.362 5.532-2.463 10.517-4.51 14.869-5.97-.838.035-1.673.076-2.508.123a82.734 82.734 0 0 0-5.921 2.228c-6.082 2.533-11.806 3.98-17.888 5.066l-3.935.724c1.407 0 5.58-.35 12.86-.705l-.339.343h1.789c-3.935 1.086-15.026 2.896-33.987 5.429l-6.082 2.172 14.31-1.448c5.367-.724 10.018-1.81 14.31-2.895l15.026-3.62c11.806-2.895 20.393-4.342 25.759-3.98 0-.362.358-.362 1.43-.724h1.074c3.22-.362 5.724-.724 8.229-.724l-1.431.362h2.504l-7.155.724c-5.724 2.533-15.384 4.704-28.979 7.238l-15.383 2.171c-9.66 1.81-14.668 2.534-15.026 2.534-1.789.362-4.293.362-8.228.723-3.935 0-6.798.362-8.229.724-5.724 1.086-12.163 1.81-18.96 2.172 3.935.362 6.439.362 7.512.362h-2.146 2.146l2.408-.343c-1.716.342-2.406.343-2.408.343h.358c-6.797.723-14.668 1.085-22.896 1.085-1.79 0-3.578 0-4.651.362.358-.362.715-.362 1.073-.362h-1.789c1.074-.362 2.147-.723 2.505-1.085h-21.466l-18.245-.724c-15.571-.801-26.275-1.405-31.824-1.812l3.055 1.222 1.083.507 5.863.445c27.54 1.071 47.065 1.79 58.576 1.461-.344.027-.74.108-.978.348h2.147c-2.147.362-4.651.362-7.513.362-1.073 0-3.22 0-6.082.362-2.504 0-4.65 0-5.724.362h-12.164l-23.254-.724c-1.825-.06-3.758-.148-5.798-.267 1.531.675 2.764 1.153 3.728 1.375l-2.921-.584 2.652.995a83.284 83.284 0 0 1-8.308-2.107c-1.498-.111-3.045-.236-4.644-.373l13.947 4.138c-.332 0-1.658-.332-3.316-.663l1.327.663c.663 0 .994 0 1.326.331-.663 0-4.974-.994-13.263-2.652l-15.584-3.316 21.884 5.305c12.268 2.984 18.568 4.642 18.237 4.642-.332.332-.664.332-.995.332h.331c-.994.331-5.636 0-13.263-.663l-14.258-1.99c-.331-.331-.663-.331-.994-.331-.332-.332-.664-.332-.995-.332-.663-.331-.995-.663-.995-.995-.663-.331-5.305-1.326-14.258-3.315l-9.615-2.985-7.283-2.427-8.118-.933-7.87-1.086c-2.863-.362-5.367-1.086-7.514-1.448-.357 0-.357 0-.357-.362h-.358c-2.014-.582-4.26-1.398-6.923-2.637l-13.304-1.386c-8.952-.663-13.926-.994-15.584-1.326-2.321-.331-5.637-.663-9.947-.663-4.31-.332-7.627-.332-9.948-.663l-5.968-.995-5.637-.663c-3.647-.332-7.626-.332-11.937-.332-3.979-.331-11.937-.331-23.873-.331.331-.995-1.658-1.658-6.3-1.327-7.958-.331-16.248-.331-24.537-.331-9.948 0-17.574.331-22.88.995l-21.552.663c-4.973.331-12.268.663-21.552 1.658-8.29.994-14.921 1.658-20.558 1.658-.975 0-1.946.003-2.915.01-2.396.832-3.7 1.353-3.7 1.353-3.165 1.187-8.308 1.978-15.032 3.165l-24.92 6.329-23.34 5.538c.396-.396.792-.396 1.978-.791-1.186.395-1.977.395-2.769.395 9.89-4.35 18.197-7.515 24.526-8.702-5.143.395-10.68 1.978-17.405 4.747-6.725 2.769-13.054 4.35-19.779 5.538l-4.35.79c1.555 0 6.17-.382 14.22-.77l-.376.375h1.978c-4.351 1.187-16.614 3.165-37.58 5.934l-6.724 2.373 15.823-1.582c5.933-.791 11.076-1.978 15.823-3.165l16.613-3.955c13.054-3.165 22.548-4.747 28.481-4.352 0-.395.396-.395 1.583-.79h1.186c3.56-.396 6.33-.792 9.098-.792l-1.582.396h2.769l-7.911.79c-6.33 2.77-17.01 5.143-32.041 7.912l-17.01 2.374c-10.68 1.977-16.218 2.769-16.614 2.769-1.977.395-4.746.395-9.098.79-4.35 0-7.515.396-9.098.792-6.329 1.187-13.449 1.978-20.965 2.373 4.352.396 7.12.396 8.307.396h-2.373 2.769c-7.516.79-16.218 1.187-25.317 1.187-1.977 0-3.955 0-5.142.395.396-.395.791-.395 1.187-.395h-1.978c1.187-.396 2.373-.792 2.769-1.187h-23.734l-20.174-.791c-23.339-1.187-36.788-1.978-39.557-2.374-13.845-1.186-26.503-2.769-38.765-3.955-12.263-1.583-18.592-2.374-19.779-2.374l-13.45-1.978c10.286 1.978 18.197 3.56 23.735 4.352 10.285 1.582 20.965 3.164 32.04 4.35L756 81.393c30.45 1.171 52.04 1.957 64.767 1.597-.38.03-.817.118-1.08.381h2.373c-2.373.396-5.142.396-8.307.396-1.187 0-3.56 0-6.724.395-2.77 0-5.143 0-6.33.396H787.25l-25.712-.791c-12.262-.396-28.876-1.978-50.237-4.747l-17.405-1.978-8.702-1.187c-3.165-.395-5.934-1.186-8.307-1.582-.396 0-.396 0-.396-.396h-.395c-2.77-.79-5.934-1.977-9.89-3.955l-3.164-.396h-3.56c.395 0 .791 0 1.582.396l-3.56-.791c-7.516 0-14.24-.791-19.383-1.978-.395 0-.395 0-.395-.396h-.396c-.395 0-.791 0-.395-.395h1.582c2.769.395 4.351.395 5.142 0-.395 0-1.187 0-1.582-.396h-.791c0-.395 0-.395.395-.791-.395 0-.395 0-.79-.396 0 0-.396-.395-1.583-.79.714.027 1.446.056 2.198.087l-11.702-1.633c-.331-.331-.663-.331-.994-.331-.332-.332-.664-.332-.995-.332-.663-.331-.995-.663-.995-.995-.663-.331-5.305-1.326-14.258-3.315l-9.615-2.985-9.948-3.315c-7.626-1.99-14.258-2.985-20.558-3.316 0 .331-1.658-.332-5.305-1.99l-15.916-1.658c-8.952-.663-13.926-.994-15.584-1.326-2.321-.331-5.637-.663-9.947-.663-4.31-.332-7.627-.332-9.948-.663l-5.968-.995-5.637-.663c-3.647-.332-7.626-.332-11.937-.332-3.979-.331-11.937-.331-23.873-.331.331-.995-1.658-1.658-6.3-1.327-7.958-.331-16.248-.331-24.537-.331-9.948 0-17.574.331-22.88.995l-21.552.663c-4.973.331-12.268.663-21.552 1.658-8.29.994-14.921 1.658-20.558 1.658-2.492 0-4.962.022-7.415.072-1.687.69-3.685 1.56-6.021 2.553l-8.916 3.21c-2.487.618-4.973 1.235-7.12 2.217-3.203.944-4.986 1.586-4.986 1.586-2.85.957-7.448 1.5-13.464 2.347l-22.355 4.854-20.924 4.2c.364-.34.716-.328 1.784-.642-1.068.314-1.771.29-2.475.265 8.928-3.562 16.413-6.118 22.077-6.976-4.584.192-9.558 1.427-15.623 3.68-6.065 2.253-11.742 3.464-17.758 4.31l-3.894.568c1.384.049 5.499-.148 12.669-.244l-.346.323 1.759.061c-3.906.92-14.871 2.298-33.598 4.11l-6.053 1.9 14.118-.915c5.3-.52 9.91-1.415 14.167-2.322l14.895-3.002c11.705-2.408 20.196-3.52 25.46-2.984.012-.352.363-.34 1.43-.655l1.056.037c3.178-.241 5.652-.507 8.114-.42l-1.419.302 2.462.086-7.059.457c-5.713 2.266-15.284 4.045-28.735 6.04l-15.198 1.582c-9.558 1.427-14.507 1.959-14.858 1.946-1.771.29-4.233.205-8.115.421-3.869-.135-6.695.119-8.114.421-5.664.859-12.02 1.341-18.715 1.46 3.857.487 6.319.573 7.374.61l-2.11-.074 2.462.086c-6.708.47-14.458.551-22.547.269-1.76-.062-3.518-.123-4.585.192.364-.34.716-.327 1.067-.315l-1.758-.061c1.067-.315 2.135-.63 2.499-.97l-21.104-.737-17.913-1.33c-20.715-1.78-32.65-2.9-35.099-3.338-12.273-1.485-23.48-3.285-34.346-4.721-10.854-1.788-16.457-2.688-17.513-2.724l-11.897-2.177c9.084 2.078 16.069 3.73 20.968 4.606 9.096 1.726 18.544 3.465 28.355 4.864l28.064 3.093c27.04 1.987 46.211 3.356 57.54 3.431-.34.015-.732.08-.974.305l2.11.074c-2.122.278-4.584.192-7.398.094-1.055-.037-3.165-.11-5.991.143-2.462-.086-4.573-.16-5.64.155l-11.959-.418-22.837-1.502c-10.891-.732-25.615-2.655-44.522-5.78l-15.414-2.3-7.701-1.325c-2.802-.45-5.24-1.24-7.337-1.665-.352-.012-.352-.012-.34-.364-2.79-.801-5.566-1.955-9.022-3.836l10.12 2.002-3.165-.11c.352.012.704.024 1.395.4l-3.141-.813c-6.683-.234-12.638-1.146-17.173-2.36-.352-.013-.352-.013-.34-.365-.703-.024-1.055-.037-.69-.376l1.406.05c2.45.437 3.857.486 4.573.159-.352-.013-1.056-.037-1.395-.401-.691-.376-.691-.376-.327-.716-.352-.012-.352-.012-.691-.376 0 0-.34-.364-1.383-.753 9.133.671 8.848-.635 25.367.294l-1.382-.753c-.692-.376-1.395-.4-2.45-.438-1.759-.061-2.462-.086-2.45-.437-5.992.142 3.062 2.46.612 2.022-4.22-.147-9.836-.696-16.482-1.984l-15.754-2.663c-2.45-.438-4.184-1.203-5.578-1.604l-.34-.364c-1.043-.388-1.394-.4-1.03-.74.351.012.703.025 1.419-.302 1.77-.29 3.893-.569 5.64-.156 9.457 1.349 18.938 2.044 28.745 2.411C37.132 46.006 26.174 42.032 0 35V0h1920v35c-8.047-1.185-16.074-1.682-24.086-1.641l-24.508 7.258-8.997 2.807-7.029 1.965c-3.655.842-6.186 1.684-7.591 2.245 8.716-1.965 18.838-4.771 30.928-8.42l7.31-1.965a71.457 71.457 0 0 1 10.122-2.806l-2.25.842 2.477-.495c-1.714.394-4.431 1.742-8.381 3.582l-7.03 2.807c-1.967.561-3.935 1.122-5.622 1.964-2.53.842-3.937 1.404-3.937 1.404-2.249.842-5.904 1.403-10.684 2.245l-17.713 4.49-16.589 3.93c.281-.28.563-.28 1.406-.561-.843.28-1.406.28-1.968.28 7.029-3.087 12.933-5.332 17.432-6.174-3.655.28-7.591 1.403-12.371 3.368-4.78 1.964-9.278 3.087-14.058 3.929l-3.093.561c1.106 0 4.386-.271 10.108-.547l-.267.267h1.405c-3.092.842-11.808 2.245-26.71 4.21l-4.78 1.684 11.247-1.123c4.217-.561 7.872-1.403 11.246-2.245l11.81-2.807c9.277-2.245 16.025-3.368 20.243-3.087 0-.281.281-.281 1.125-.562h.843c2.53-.28 4.499-.561 6.467-.561l-1.125.28h1.968l-5.623.562c-4.499 1.965-12.09 3.649-22.774 5.613l-12.09 1.684c-7.592 1.404-11.528 1.965-11.81 1.965-1.405.28-3.373.28-6.466.561-3.093 0-5.342.281-6.467.562-4.498.842-9.56 1.403-14.901 1.684 3.093.28 5.06.28 5.904.28h-1.687 1.968c-5.342.562-11.527.842-17.994.842-1.406 0-2.812 0-3.655.281a.965.965 0 0 1 .22-.168l-.33.01c.125-.01.241-.01.332-.01.207-.113.414-.113.621-.113h-1.406c.844-.28 1.687-.561 1.969-.842h-16.87l-14.34-.561c-16.588-.842-26.148-1.403-28.116-1.684-9.84-.842-18.838-1.965-27.554-2.807-3.263-.42-5.935-.762-8.045-1.024.774.374 1.428.646 1.972.794l-2.263-.534 1.803.797c7.244 1.112 14.764 2.22 22.56 3.055l22.493 1.684c21.643.83 36.988 1.388 46.035 1.133-.27.02-.581.083-.768.27h1.687c-1.687.28-3.655.28-5.905.28-.843 0-2.53 0-4.78.281-1.968 0-3.655 0-4.498.281h-9.56l-18.275-.561c-8.716-.281-20.525-1.404-35.708-3.368l-12.371-1.404-1.801-.245.372.22c.514 0 .771 0 1.028.302-.294 0-1.516-.297-3.712-.837l-2.073-.282c-1.46-.182-2.802-.483-4.026-.748l4.415 1.262c9.507 2.725 14.388 4.24 14.131 4.24-.257.302-.513.302-.77.302h.257c-.771.303-4.368 0-10.277-.605l-11.048-1.817c-.257-.303-.514-.303-.771-.303-.257-.303-.514-.303-.77-.303-.515-.303-.772-.606-.772-.909-.513-.302-4.11-1.21-11.047-3.028l-7.451-2.725-2.51-.986c-1-.166-1.942-.352-2.819-.554-.281 0-.281 0-.281-.281h-.281c-.282 0-.563 0-.282-.28h.824zm23.1 3.957l-6.19-1.552 8.527 2.436c-.734-.25-1.51-.54-2.338-.884zm4.059 1.376l.134.038v-.038h-.134zm11.067.516a56.497 56.497 0 0 1-4.836-1.443c-1.16-.13-1.873-.196-2.16-.196l-1.741-.255 2.21.773c2.524.47 4.7.853 6.527 1.121zm-216.74-20.288a82.9 82.9 0 0 0-3.367.937c.486.021.996.048 1.532.08 1.407-.348 2.841-.711 4.305-1.09-.838.023-1.66.047-2.47.073zm25.228-10.781c.3-.045.6-.09.898-.133l13.909-2.994c1.68-.34 3.207-.654 4.587-.94-1.304.082-2.607.172-3.91.27l-15.484 3.797zm308.253 36.126l-.035.005.025-.005L1785 65c.225-.007.45-.046.675-.257l15.86-2.113c6.398-.527 10.849-.79 13.909-.527.278 0-.278 0-1.113.264H1816c-2.782.263-7.232.79-13.352 1.844-4.804.48-10.297.74-16.689.784zm109.362-31.632l-.678.007-.462.23c.408-.08.793-.162 1.14-.237zm-2.29.034c-1.072.022-2.144.054-3.215.095l-17.847 4.319 13.214-2.807c3.39-.677 5.996-1.223 7.848-1.607zm-25.095 2.065c-18.396 2.52-36.732 6.97-55.056 11.52l2.575-.19 13.496-1.403c3.093-1.404 4.498-1.965 4.498-1.684 5.342-.28 10.966-1.123 17.432-2.807l8.435-2.807 8.154-2.526.466-.103zm-619.443 24.816l.71.222 7.215 2.14 4.455.339-3.049-.82c-1.579-.478-3.13-.944-4.653-1.397a925.7 925.7 0 0 1-4.678-.484zm214.804-31.716c-14.397 2.226-28.925 5.178-43.758 8.558a673.619 673.619 0 0 1-19.117 4.073l3.367-.25 17.172-1.81c3.936-1.81 5.725-2.534 5.725-2.172 6.797-.362 13.952-1.447 22.18-3.619l10.733-3.619 3.698-1.16zm-218.224 18.18c-10.739-1.472-21.676-3.332-32.894-5.59a548.61 548.61 0 0 0-33.957-5.737c-3.145-.068-7.059-.356-11.913-.778l-16.927-2.38c-2.405-.199-4.805-.38-7.2-.546a83.086 83.086 0 0 0-4.057.273c6.3.332 12.268.995 17.573 1.99 1.327.331 3.98.663 7.627.663 3.647.332 5.968.332 7.626.663.331 0 4.974.663 13.926 2.321l14.258 1.99c11.906 2.193 20.555 4.09 25.948 6.25 3.11.206 5.804.358 8.057.51l11.933.372zm-39.19-2.654c-2.481-.511-5.173-1.121-8.074-1.825l-13.927-3.315c-3.979-.995-8.289-1.99-13.263-2.653l-13.263-1.326 5.637 1.99c17.574 2.32 27.853 3.978 31.5 4.973h-1.658l.315.315c-6.748-.326-10.616-.647-11.92-.647l3.647.663c.873.154 1.738.316 2.598.489h.23c5.146 0 11.062.518 18.179 1.336zm-.134 4.456c1.167.406 2.292.76 3.382 1.064l-1.392-.704c-.595-.3-1.19-.351-1.99-.36zM570.56 38.352c5.145 2.045 9.46 3.223 13.486 3.532-2.53-.474-5.435-1.325-8.681-2.48a1634.97 1634.97 0 0 0-4.805-1.052zm62.367 14.265l3.84 1.536c3.493 1.63 6.169 2.933 8.141 3.68 4.015.137 8.059.204 12.152.218a2291.878 2291.878 0 0 1-24.133-5.434zm8.712 5.087a85.745 85.745 0 0 1-7.194-2.225l-8.62-2.32c-14.258-4.311-26.195-7.627-36.474-9.948 1.658.663 4.642 1.658 8.952 2.652l8.29 2.321 10.61 3.316 20.165 5.983c1.421.084 2.844.157 4.271.22zM626.21 56.59l-8.343-1.775 6.314 1.53c.302.027.598.068.886.125.38.041.762.081 1.143.12zm27.984 7.125c2.661.687 3.948 1.047 3.794 1.047a1.373 1.373 0 0 1-.025.024c7.12.294 15.257.587 24.46.783l-1.581-.792c-.792-.395-1.583-.395-2.77-.395-1.977 0-2.768 0-2.768-.396-6.725.396-11.076.396-13.845 0-2.118 0-4.552-.078-7.265-.271zM338.093 42.78c-1.706.067-3.406.15-5.102.25l-16.331 4.231-11.378 3.124-8.88 2.155c-4.608.896-7.81 1.84-9.594 2.482 10.99-2.08 23.774-5.156 39.058-9.2l9.231-2.143a94.027 94.027 0 0 1 2.996-.9zm-20.009.883l-.044-.008-.554.113.598-.105zm27.909-5.771a88.665 88.665 0 0 1 7.274-.32c2.32-.33 5.968-.33 11.605 0 0-.33.663-.33 2.321-.33.995 0 1.658 0 2.321-.332l1.327-.663c-7.535.16-14.217.398-20.083.638-1.434.306-3.023.642-4.765 1.007zm-8.414-2.515c-.764-.096-1.906-.028-3.544.206h-1.326a1.297 1.297 0 0 1-.019-.019c-17.926 4.132-35.554 8.727-53.117 13.157 3.59-.446 7.361-1.1 11.399-2.005l10.674-3.149 10.31-2.809c9.571-1.779 14.532-2.662 15.248-2.989.012-.352.376-.691 1.092-1.018.352.012.703.024 1.067-.315.352.012.704.024 1.068-.315l7.148-.744zm3.085-1.613c26.882-5.938 54.507-10.635 83.653-12-8.222.672-17.952 1.742-29.271 3.209l-14.59 1.658-7.294.995c-2.653.331-4.974.994-6.964 1.326-.331 0-.331 0-.331.331h-.332c-2.32.664-4.973 1.658-8.29 3.316l-2.652.332h-2.984c.332 0 .663 0 1.326-.332l-2.984.663a84.1 84.1 0 0 0-9.287.502zM461.54 21.94c-8.278.252-17.953.618-29.026 1.043l-26.526 1.99c-9.284.995-18.237 2.32-26.858 3.647-4.642.663-11.274 1.99-19.895 3.648l11.274-1.658c.995 0 6.3-.663 16.579-1.99 10.279-.994 20.89-2.32 32.495-3.316 2.32-.331 13.594-.994 33.157-1.989l16.91-.663h2.347a477.08 477.08 0 0 0-10.457-.712zM996.693 45.4l-2.58 1.032c.862.038 1.78.085 2.76.143 0-.332.662-.332 2.32-.332.995 0 1.658 0 2.321-.331l1.327-.663c-2.117.045-4.166.096-6.148.151zm123.794-14.762l-2.107-.059c.14.037.286.057.424.068-10.669-.302-28.765.357-54.29 1.338l-26.526 1.99c-9.284.995-18.237 2.32-26.858 3.647-1.262.18-2.671.41-4.227.682l-4.425 1.312.031-.004c.995 0 6.3-.663 16.579-1.99 10.279-.994 20.89-2.32 32.495-3.316 2.32-.331 13.594-.994 33.157-1.989l16.91-.663h19.896c-.332-.332-1.327-.663-2.321-.995h1.658c-.132 0-.264 0-.396-.02zM981.113 45.954l-3.178.943a95.045 95.045 0 0 1 4.598-.274c.924-.276 1.857-.556 2.798-.84-1.452.057-2.858.114-4.218.171zm-21.232 6.437l-6.098 1.707c-5.142 1.187-8.702 2.373-10.68 3.165 6.223-1.406 12.955-3.116 20.3-5.133-1.176.078-2.35.165-3.522.26zm34.33-12.996l-1.358.209-10.97 2.66h.068l2.984-.664c-.663.332-.994.332-1.326.332h.497l8.128-1.73a48.297 48.297 0 0 1 1.978-.807zm-45.142 7.836a1711.243 1711.243 0 0 0-20.35 4.036c5.802-.614 11.937-1.725 18.735-3.498l1.615-.538zm-31.156 6.274a2310.716 2310.716 0 0 0-4.291.903l2.978-.31c.464-.211.902-.409 1.313-.593zM820.766 82.99c.192-.014.37-.014.502-.014l-.502.014zm88.694-13.84l.02-.02h.395l-.415.02zm-55.536 12.636c-.073.003-.146.003-.22.003h-1.186c.472 0 .94-.001 1.406-.003zm0 0c.32-.01.64-.07.96-.386l22.555-3.171c9.098-.791 15.427-1.187 19.778-.791.395 0-.396 0-1.582.395h2.373c-3.956.396-10.285 1.187-18.987 2.77-7.171.754-15.422 1.149-25.097 1.183zm.96-.386l-.1.014.107-.02a1.667 1.667 0 0 1-.007.006zm-.1.014c-1.9.375-2.662.375-2.662.375l2.662-.375zm264.02-50.767l.42.012c-.11 0-.26 0-.42-.012zm74.346 11.6l.348.017h-.331l-.017-.016zm85.5 25.138c.138.032.27.058.395.08l-.394-.08zM177.68 74.103a5.634 5.634 0 0 0-.447-.003l.447.003zm78.864-9.572l.352.012-.37.005.018-.017zm-49.986 9.524l-1.055-.037 1.25.041c-.065 0-.13-.002-.195-.004zm1.06-.31l20.154-2.119c8.114-.421 13.754-.576 17.61-.09.352.013-.351-.012-1.419.303l2.11.074c-3.529.229-9.18.736-16.968 1.872-6.4.449-13.748.544-22.352.274.285 0 .571-.042.866-.313zm-.088.01a34.5 34.5 0 0 0 .095-.015 1.49 1.49 0 0 1-.006.006l-.09.01zm-2.379.25s.678.024 2.379-.25l-2.379.25zm1129.139-8.439c.173-.014.333-.014.453-.014l-.453.014zm80.215-12.662l.018-.019h.358l-.376.019zm92.25-27.438l.427-.086a7.039 7.039 0 0 0-.426.086zm-142.477 38.998c-.066.003-.133.003-.199.003h-1.073c.427 0 .85-.001 1.272-.003zm0 0c.29-.01.579-.063.868-.353l20.399-2.902c8.228-.723 13.952-1.085 17.887-.723.358 0-.357 0-1.43.362h2.146c-3.578.361-9.302 1.085-17.172 2.533-6.486.69-13.948 1.052-22.698 1.083zm.868-.353l-.09.013.097-.02a1.516 1.516 0 0 1-.007.007zM1794.143 63H1793c.857 0 1.429 0 2-.28-.286.28-.571.28-.857.28zm29.562-7l.014-.014h.281l-.295.014zm72.96-21l.335-.067c-.107.018-.219.04-.335.067zM1785 64.998c-.052.002-.104.002-.156.002H1784c.336 0 .669 0 1-.002zm0-.264c-1.427.266-2 .266-2 .266l2-.266zM1546.238 26l.762.023c-.202 0-.47 0-.762-.023z" fill="${i}" fill-rule="evenodd"/></svg>`,40:`<svg viewBox="0 0 1920 105" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1919.907 79.685c.044.992-.183.547-.906-2.314-9.313-36.836-59.693-72.785-98.19-51.04-3.123 1.764-14.043 11.599-22.806 21.904-.337.4 3.687 18.175 3.499 20.815-.457 6.334-1.093 9.517-6.884 12.225-6.773 3.167-20.505 1.316-21.503-7.779-.942-8.607 2.135-18.254 7.058-27.137-10.371-18.45-26.977-30.74-53.316-24.396-15.13 3.646-31.543 10.34-40.994 23.344 5.981 8.716 19.299 26.823 9.916 35.887-5.44 5.257-23.155 10.42-29.155 3.663-3.787-4.265-1.858-14.68-1.022-19.748.338-2.058 7.02-19.35 6.971-19.41-17.723-21.783-43-32.578-75.237-20.146-12.653 4.879-26.37 11.257-36.428 20.974 6.876 11.656 17.968 30.19 10.407 43.873-13.274 24.02-43.588 2.618-38.14-20.036.687-2.86 13.57-25.086 13.995-24.48-3.283-4.696-6.5-8.544-8.824-10.79-14.025-13.561-30.837-20.225-50.318-13.646-11.358 3.834-23.192 7.983-33.399 14.453-1.04.586-1.961 1.335-2.967 1.97.608-.386 3.971 23.792 3.22 26.955-1.574 6.623-5.6 9.838-12.173 11.593-9.34 2.496-29.663-.987-24.175-14.712 3.95-9.877 10.1-18.468 17.62-25.772-16.531-14.465-53.239-13.571-71.916-6.74-6.241 2.283-22.77 12.595-34.907 24.416.951 1.34 1.987 2.585 2.856 4.01 6 9.848 13.205 31.795-3.135 35.797-15.566 3.811-30.65-15.22-21.747-28.833 2.333-3.565 4.801-7.067 7.346-10.515-18.127-15.58-50.584-28.188-59.988-29.762-18.264-3.06-41.351-2.824-54.008 13.559.196-.255-.324.978-1.182 2.991-.457 1.075 5.268 12.349 5.672 14.65.893 5.082 1.23 11.583-.4 16.56-2.109 6.436-10.035 14.57-17.689 13.74-7.5-.824-9.494-9.3-9.011-15.665.345-4.555 7.825-24.452 5.302-27.791-11.077-14.661-29.734-24.164-48.375-22.62-16.776 1.393-32.92 5.966-46.936 15.675-1.562 1.082-7.676 5.192-14.03 10.585 1.362 1.81 2.825 3.502 3.992 5.537 15.722 27.424-22.913 50.096-30.625 20.77-1-3.815 7.383-26.552 10.708-24.292-13.736-9.338-34.104-16.29-41.705-16.621-14.22-.621-28.7-.184-42.268 4.773-5.089 1.858-20.95 10.722-33.183 20.672 4.117 8.74 7.242 25.172 2.244 34.093-6.848 12.223-21.907 4.606-26.827-5.093-4.036-7.955-3.39-18.535 1.908-25.753 2.04-2.779 4.301-5.408 6.656-7.956-15.798-16.757-49.441-22.66-68.385-18.107-8.264 1.985-20.88 6.847-32.041 13.781 2.382 5.055 4.38 10.344 5.472 16.078 2.374 12.452-1.96 33.448-15.808 37.992-12.084 3.965-22.493-11.252-23.846-22.115-.83-6.649 1.72-12.918 5.241-18.411 1.077-1.682 14.64-16.29 15.043-15.623-2.468-4.073-5.1-7.466-7.465-9.56-16.682-14.741-39.199-27.314-62.002-13.114-11.668 7.263-24.006 14.612-33.67 24.505-.186.192-1.343 1.698-2.953 3.939 5.387 12.213 6.793 57.376-19.133 43.911-13.904-7.219-4.192-32.92 1.838-42.5a67.173 67.173 0 0 1 2.573-3.764c-10.736-13.678-31.358-21.023-50.661-18.824-15.306 1.744-37.758 7.967-53.092 18.606 2.985 4.295 5.52 8.986 7.335 14.257 3.84 11.164 4.678 24.325-2.905 34.155-14.546 18.857-28.165-1.74-30.967-18.73-.557-3.384 6.939-31.153 9.813-28.243-8.593-8.7-19.941-15.606-29.58-18.767-19.336-6.342-48.446-7.624-62.883 4.347.773.83 1.634 1.524 2.37 2.411 6.158 7.45 9.891 19.756 6.926 29.233-1.705 5.448-10.334 13.025-16.433 11.81-7.163-1.426-10.389-13.379-11.36-19.65-.285-1.835.996-21.157 1.935-20.564-6.446-4.06-13.221-6.882-16.532-7.672-9.159-2.185-18.71-4.28-28.193-3.596-11.102.799-23.044 2.682-32.152 9.72-2.158 1.665-5.875 5.184-9.422 9.519.138-.168 7.892 14.123 8.38 15.618 1.734 5.348 2.973 11.555.858 16.997-6.034 15.516-21.834 5.89-27.296-5.07-1.42-2.85-.798-24.803 1.325-23.556-8.49-4.99-17.756-8.506-20.68-9.258-8.362-2.153-17.181-4.612-25.906-4.27-13.895.543-25.803 4.904-34.103 15.44 5.149 14.164 6.773 44.66-16.41 36.846-11.002-3.709-5.008-21.789-1.625-30.217 1.13-2.813 2.527-5.517 4.05-8.15-10.451-13.946-29.904-26.24-39.232-27.544-14.599-2.04-30.078.413-42.034 9.65-2.327 1.798-5.372 4.502-8.466 7.738.452 1.077.856 2.253 1.373 3.223 3.085 5.794 7.735 11.765 9.288 18.242 5.228 21.823-29.53 31.524-34.043 7.292-1.864-10.008 3.248-20.966 8.302-29.275-5.09-9.574-12.09-16.692-26.874-10.671-11.4 4.64-23.32 10.835-31.942 19.9.782 3.049 1.364 6.125 1.576 9.138.624 8.905-1.653 22.561-11.684 25.66-10.696 3.3-17.018-7.147-15.368-16.664.563-3.238 11.092-19.893 10.76-20.566C79.03 37.077 68.51 29.445 55.648 33.405 29.18 41.547 8.113 57.839 13.318 87.658c.885 5.07-6.138 8.906-8.82 3.72C1.662 85.9.254 80.375.031 74.952L0 75V0h1920v80l-.093-.315zm-129.22-5.809a140.484 140.484 0 0 0-3.044-10.42c-2.34 5.27-2.049 9.288 3.044 10.42zm-116.316 3.495c5.317 2.613 10.486 1.934 15.526-1.696-2.834-6.949-6.105-13.55-9.86-19.578-2.899 6.589-6.1 15.079-5.666 21.274zM1556.04 90.792c3.447-4.67 4.73-11.237 4.16-16.908-.267-2.688-7.476-19.038-7.452-19.137-2.263 9.321-7.937 16.44-6.377 26.704.598 3.933 4.421 16.447 9.67 9.341zm-113.772-25.11c5.89-5.915-4.897-16.337.295-20.945-1.414 1.255-2.897 2.42-4.22 3.801-5.997 4.717-14.493 25.795.822 19.154 1.346-.584 2.358-1.26 3.103-2.01zm-121.61 21.09c8.995-8.122 7.811-16.837 1.424-25.115-7.197 9.3-9.823 18.608-1.424 25.115zm-127.266-12.8c.307-4.835-.259-9.546-1.449-14.073-3.29 9.614-4.864 17.89 1.449 14.072zm-131.312 3.746c12.691-7.567 11.085-16.039 3.46-23.662-7.478 8.235-11.884 17.395-3.46 23.662zm-130.913 7.149c2.673-7.523 2.913-14.23 1.196-20.108-7.28 7.919-10.013 15.554-1.196 20.108zm-125.64 8.023c17.861-4.16 16.156-23.01 9.571-38.355-12.504 10.35-19.622 23.688-9.57 38.355zm-112.86-4.107c4.433-9.27 5.443-17.789 3.912-25.289-6.75 11.209-12.627 24.352-3.911 25.29zm-117.147 4.52c10.058-11.527 7.943-24.205.305-35.207-7.706 9.388-9.54 21.122-.305 35.206zM472.786 65.298c4.908-6.579 2.3-13.165-3.176-18.774-1.977 5.77-1.917 13.038.788 21.997a6.17 6.17 0 0 1 2.388-3.223zM370.238 75.756c5.325-6.07 2.586-12.23-3.29-17.63-2.968 6.597-3.317 13.293 2.763 17.917.174-.105.348-.2.527-.287zM264.223 80.27c4.67-4.556 6.025-9.83 4.908-15.346-2.71 4.873-5.532 11.065-4.908 15.346zM159.54 72.548c15.833-2.767 8.634-10.372 4.05-19.361-3.88 6.392-6.064 13.262-4.05 19.361zm-71.803-7.37c-.131.276-.345.5-.468.782-.895 1.736-1.503 3.545-2.083 5.36a14.939 14.939 0 0 0 2.551-6.142z" fill="${i}" fill-rule="evenodd"/></svg>`,41:`<svg viewBox="0 0 1920 113" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M1892.28 65.435c-3.577.03-5.903.146-6.98.35-2.404.454-4.909 1.337-6.093 3.658-1.502 2.948.7 6.275 4.105 6.135 2.589-.105 4.664-1.166 6.716-2.663-.168.137-.075-4.08.083-4.53.287-.807 1.01-1.79 2.168-2.95zm1.604 2.092c-1.445.446-2.401 2.065-1.245 3.957 1.083 1.768 4.289 1.433 4.978-.58.703-2.058-1.85-3.96-3.733-3.377zm1-9.776c-.63 1.712.774 4.17 1.165 5.869 2.566 1.536 4.525-3.003 4.694-4.754.091-.954.077-3.926-.907-4.353-1.077-.467-3.33 1.162-4.404 2.41-.27.312-.465.601-.548.828zm15.532 8.149c-.452-3.74-9.576 1.784-9.408 2.04.48.72.776 1.573.772 2.444 3.913.39 9.22.334 8.636-4.484zm-8.92 17.423c3.74-.374 4.852-4.125 2.04-6.65-.976-.878-2.077-1.63-3.21-2.33-.102-.024-.199-.05-.298-.076-.323.35-.584.752-.992 1.02-1.97 1.298-4.954 1.625-6.979.328 1.322 4.23 4.41 8.213 9.438 7.708zm-61.079-33.196c-6.544-8.957-15.344-22.304-26.132-27.682-.239.014-.477.02-.716.036 6.666 13.503 13.62 26.761 20.478 40.225 1.156 2.268-2.042 4.156-3.414 1.995-7.949-12.502-13.939-25.536-20.1-38.754-2.968 10.48-5.129 20.755 2.155 30.781 4.847 6.672 10.407 11.979 16.625 17.286 7.64 6.52 14.706 13.012 19.724 21.456 5.776-15.473 1.111-32.024-8.62-45.343zM1712.9 54.992c-4.776-3.739-10.04-6.898-15.643-9.232-2.55-1.063-5.366-2.246-8.11-2.684-1.086-.172-5.314.782-5.932.105 4.468 5.04 9.171 9.889 14.34 14.22 5.919 4.956 12.491 9.07 18.352 14.048 1.768 1.502-.479 3.927-2.334 3.026-13.234-6.423-24.437-19.036-33.38-30.593-.089.33-.206.605-.449.861-2.261 16.486 1.423 30.825 18.25 37.996 11.747 5.008 23.481 10.033 35.167 15.18.085.037.731-6.447.721-7.065a33.364 33.364 0 0 0-.865-6.99c-2.692-11.669-10.86-21.624-20.117-28.872zM1634.2 73.016c-2.235-1.878-3.211-3.432-6.613-2.583-2.332.582-5.06 2.346-5.479 4.84-.675 4.04 1.928 6.56 5.673 4.806.303-.143 3.571-1.65 3.567-1.778.043-2.112 1.179-4.04 2.852-5.285zm7.573 11.667c-2.35.704-5.045.675-7.122-.473-3.685 2.688-8.972 8.659-3.224 11.201 3.044 1.348 5.916-.673 7.332-3.347 1.148-2.17 2.37-4.925 3.014-7.38zm-4.41-8.41c-3.248 3.754 3.81 4.999 4.135 2.127.204-1.837-2.22-4.34-4.135-2.126zm13.642-12.718c-5.014-1.176-8.917 3.763-9.523 8.343-.024.168 3.894 3.175 4.375 3.048 1.714-.453 6.391-4.434 7.236-5.877 1.326-2.272.687-4.865-2.088-5.514zm6.924 22.208c.224-6.355-5.244-7.587-10.414-7.262-.275 1.48-.993 2.793-2.038 3.899 2.185 1.877 3.398 4.692 6.114 6.113 2.595 1.358 6.213.797 6.338-2.75zm-82.924-19.635c-4.876-8.757-10.66-16.898-16.97-24.647 2.483 11.929 6.9 22.646 12.415 33.972 1.34 2.755-2.397 4.964-4.107 2.401-6.603-9.895-10.479-21.083-12.678-32.656-3.98 10.823-6.035 21.514 2.02 32.39 5.961 8.047 12.018 16.022 17.924 24.11 2.154-11.998 8.343-23.098 1.396-35.57zm-110.3-16.138c-7.345-7.583-14.855-15.38-25.066-18.357-.127.52 17.668 20.78 21.876 33.394.07.216.101.406.028.62-3.662.817-6.43-6.443-7.84-8.7-1.448-2.32-3.154-4.451-4.949-6.51-1.736-1.991-3.557-3.91-5.234-5.95-1.073-1.306-4.998-5.275-4.849-6.987-1.146 13.22 4.742 25.58 16.714 33.345 6.476 4.202 12.798 8.028 18.145 13.276 3.327-12.799 1.51-23.462-8.826-34.131zm-74.448 20.451c-2.658-2.306-4.826-5.2-8.755-4.826-2.312.218-6.666 3.096-3.345 5.295 2.811 1.86 9.7 1.89 9.327 3.086.538-1.364 1.546-2.607 2.773-3.555zm-6.995 13.493c.853.002 6.985-3.01 6.186-3.628-1.964-1.512-1.574-3.24-4.165-2.1-1.558.685-3.129 1.88-3.557 3.607-.249 1.005-.249 1.543.049 1.823.26.247.745.298 1.487.298zm9.208-10.172c-1.176 1.84-.802 3.734 1.736 2.999 2.575-.748 2.538-2.886 1.55-3.9-.776-.795-2.138-.9-3.286.9zm1.926-5.738c-.087.37-.317.604-.586.78 1.528-.994 4.388-.608 6.14-.82 2.484-.298 5.095-1.298 6.718-3.285 1.518-1.857 2.437-5.582.311-7.431-2.611-2.276-6.797-.752-8.753 1.667-2.138 2.64-3.072 5.839-3.83 9.089zm21.52 7.18c-.711-7.04-14.046-2.982-13.99-2.629.318 1.554.235 3.165-.345 4.572-.277.67 4.232 2.544 4.909 2.698 1.356.31 2.914.341 4.29.202 2.806-.277 5.464-1.613 5.136-4.842zm-16.906 15.589c6.306-2.312 1.071-11.08-.855-9.962-.778.453-1.588.823-2.453.995-.667.13-1.963 5.667-1.726 6.42.699 2.228 2.738 3.39 5.034 2.547zm-58.485 6.892c1.99-24.954-29.295-35.94-50.563-41.812 12.068 6.949 19.594 20.255 34.39 23.123 2.343.455 1.7 3.98-.545 4.032-16.159.368-24.265-16.585-36.246-25.301.42.5.754.921.863 1.131 1.615 3.11 1.868 3.507 2.868 6.93 2.781 9.53 9.73 15.9 18.74 19.722 10.206 4.331 21.629 5.647 30.493 12.175zm-125.637.14c4.768-19.696-15.805-30.268-33.216-37.067 5.805 4.608 11.073 9.883 15.376 15.619 1.348 1.797-1.566 3.943-3.066 2.364-9.226-9.7-18.535-18.11-29.497-25.627 7.81 9.186 13.994 20.086 24.184 26.347 9.347 5.744 19.675 9.836 26.22 18.363zm-79.694-27.736c-4.452-1.578-7.749 2.975-3.226 5.576.756.435 2.33 1.415 3.218 1.294 1.158-.158 1.38-1.799 2.641-1.77.065.001.118.024.182.026-.95-1.718-1.885-3.432-2.815-5.126zm3.47 18.283c-.048.172 0 .327-.095.505-1.487 2.745-3.068 6.013-1.908 9.196 1.2 3.284 2.797 3.314 4.08 2.019 1.14-1.148 2.032-3.337 2.183-5.223.047-.584-.525-6.871-.85-6.748-.962.368-2.211.495-3.41.25zm2.86-8.181c-1.138-2.224-2.878.865-2.714 2.271.458 3.836 3.482-.772 2.714-2.271zm12.811-11.24c-4.17-1.15-8.405 1.532-11.11 4.412-.685.732 5.13 3.355 5.821 3.438 2.304.281 5.328-.07 7.032-1.819 2.31-2.368 1.837-5.372-1.743-6.03zm4.386 24.097c1.142-2.494-1.081-5.612-2.87-7.12-2.474-2.087-5.774-3.488-9.026-4.113-.649-.105-1.687 2.982-1.588 3.515.3 1.595 2.69 2.878 3.7 4.1 1.32 1.597 2.334 3.382 4.382 4.158 1.402.532 4.57 1.275 5.402-.54zm-23.7-8.846c-.38-1.762-.34-3.543.094-5.283-.28 1.126-8.78.233-9.941.586-2.464.75-5.433 2.834-5.13 5.84.328 3.257 4.347 4.848 7.223 4 3.004-.882 4.978-2.778 7.167-4.898.176-.172.388-.164.586-.245zm-48.749-32.781c-6.281-6.696-13.177-12.017-20.57-16.935 10.17 9.522 17.159 22.222 20.661 35.797.71 2.753-3.55 3.921-4.248 1.17-3.021-11.93-8.567-22.104-15.978-31.146 1.055 4.178 1.635 8.608 2.11 13.068 1.57 14.73 6.505 23.077 17.936 32.21 2.45 1.956 4.586 3.888 6.494 6.016 1.328-13.791 3.125-30.02-6.405-40.18zM996.638 64.59c-3.252-8.794-15.57-23.244-24.532-30.18-.164-.019-.321-.04-.483-.061 2.066 12.353 9.68 20.987 15.148 32.33 1.146 2.382-2.062 4.281-3.543 2.072-7.514-11.186-12.201-21.67-14.273-34.822-3.213.3-5.246 3.791-6.594 7.46 4.058 7.942 6.144 16.762 1.354 24.119-.035.056-.08.097-.116.153 2.73 3.367 6.615 6.122 11.15 8.93 8.521 5.274 15.872 11.313 22.727 18.255-.28-9.543 2.476-19.293-.838-28.256zM960 37.166a78.545 78.545 0 0 1 2.298-3.526 45.152 45.152 0 0 1-2.298-.322c-.756.12-1.544.243-2.298.322A80.353 80.353 0 0 1 960 37.166zm-.806 18.691c.788-4.424.351-9.277-1.557-14.467-1.346-3.668-3.38-7.16-6.592-7.461-2.072 13.153-6.759 23.636-14.27 34.822-1.484 2.21-4.694.308-3.546-2.071 5.467-11.344 13.082-19.978 15.148-32.331-.164.02-.321.042-.483.06-8.963 6.937-21.282 21.387-24.532 30.181-3.314 8.963-.56 18.713-.838 28.256 6.855-6.942 14.206-12.98 22.726-18.256 7.498-4.642 12.573-11.04 13.944-18.733zm-121.31 15.597c-.697 2.75-4.958 1.582-4.248-1.17 3.502-13.576 10.489-26.276 20.66-35.798-7.392 4.918-14.288 10.24-20.57 16.935-9.527 10.16-7.734 26.389-6.404 40.18 1.908-2.128 4.042-4.06 6.494-6.016 11.43-9.133 16.366-17.48 17.936-32.21.475-4.46 1.055-8.89 2.11-13.068-7.41 9.042-12.957 19.216-15.978 31.147zm-49.853 4.211c4.523-2.6 1.226-7.154-3.226-5.576-.93 1.694-1.865 3.408-2.815 5.126.064-.002.117-.025.182-.027 1.26-.028 1.483 1.613 2.64 1.77.888.122 2.46-.858 3.219-1.293zm6.792 3.84c-1.16-.353-9.658.54-9.94-.586.435 1.74.476 3.521.096 5.283.198.081.408.073.586.245 2.189 2.12 4.163 4.016 7.167 4.899 2.876.847 6.895-.744 7.223-4.002.303-3.005-2.666-5.089-5.132-5.839zm-11.487 18.568c1.162-3.183-.419-6.451-1.906-9.196-.097-.178-.045-.333-.093-.505-1.2.244-2.448.117-3.414-.25-.323-.124-.895 6.163-.848 6.747.151 1.886 1.044 4.075 2.18 5.223 1.286 1.295 2.882 1.265 4.08-2.02zM770.953 76.8c.689-.085 6.506-2.708 5.82-3.438-2.704-2.88-6.94-5.562-11.11-4.412-3.58.66-4.052 3.663-1.741 6.031 1.703 1.748 4.727 2.1 7.03 1.82zm.109 12.63c1.01-1.223 3.4-2.508 3.7-4.1.101-.534-.94-3.62-1.588-3.516-3.252.625-6.552 2.026-9.026 4.113-1.789 1.508-4.012 4.626-2.87 7.12.833 1.813 4 1.072 5.402.54 2.048-.776 3.062-2.56 4.382-4.157zm7.413-9.24c-.768 1.5 2.256 6.107 2.714 2.271.164-1.406-1.576-4.497-2.714-2.271zm-47.145-.73c10.188-6.261 16.375-17.16 24.184-26.347-10.96 7.517-20.271 15.926-29.497 25.627-1.5 1.579-4.414-.567-3.064-2.364 4.3-5.736 9.57-11.01 15.374-15.619-17.411 6.799-37.984 17.369-33.216 37.066 6.544-8.527 16.872-12.62 26.219-18.363zm-99.755-20.603c.109-.21.442-.63.86-1.131-11.978 8.716-20.082 25.669-36.245 25.301-2.243-.052-2.886-3.577-.545-4.032 14.798-2.868 22.322-16.174 34.392-23.123-21.268 5.871-52.554 16.858-50.563 41.81 8.865-6.526 20.287-7.842 30.494-12.173 9.01-3.822 15.958-10.192 18.739-19.721 1-3.424 1.253-3.82 2.868-6.93zm-93.076 6.757c-3.93-.374-6.1 2.52-8.757 4.826 1.227.948 2.235 2.19 2.773 3.555-.374-1.196 6.516-1.227 9.327-3.086 3.319-2.199-1.033-5.077-3.343-5.295zm-.275 18.021c.298-.28.298-.818.049-1.823-.428-1.728-1.999-2.922-3.557-3.607-2.591-1.142-2.201.588-4.165 2.1-.8.616 5.335 3.63 6.186 3.628.742 0 1.227-.051 1.487-.298zm-12.431-6.875c2.538.735 2.912-1.158 1.736-3.001-1.148-1.8-2.51-1.694-3.284-.9-.99 1.015-1.027 3.153 1.548 3.9zm.23 11.485c.237-.753-1.06-6.29-1.726-6.42-.865-.172-1.673-.542-2.453-.995-1.926-1.117-7.163 7.65-.855 9.962 2.296.843 4.335-.321 5.034-2.547zm-12.514-8.401c.677-.154 5.186-2.027 4.91-2.698-.58-1.407-.664-3.018-.346-4.572.056-.353-13.279-4.412-13.99 2.63-.326 3.23 2.33 4.565 5.133 4.842 1.379.14 2.937.107 4.293-.202zm-.491-22.577c-2.124 1.849-1.205 5.574.313 7.431 1.623 1.987 4.232 2.985 6.72 3.284 1.75.213 4.61-.173 6.138.82-.269-.175-.501-.41-.586-.78-.758-3.25-1.692-6.448-3.828-9.088-1.958-2.42-6.144-3.943-8.757-1.667zm-48.404 13.577c11.972-7.765 17.858-20.125 16.714-33.345.147 1.712-3.776 5.681-4.849 6.987-1.677 2.04-3.498 3.959-5.234 5.95-1.795 2.059-3.5 4.19-4.948 6.51-1.41 2.257-4.181 9.517-7.841 8.7-.075-.214-.043-.404.028-.62 4.208-12.614 22.003-32.875 21.876-33.394-10.21 2.977-17.72 10.774-25.067 18.357-10.334 10.67-12.151 21.332-8.824 34.131 5.347-5.248 11.667-9.074 18.145-13.276zm-100.3 6.742c8.055-10.875 6-21.566 2.02-32.389-2.199 11.573-6.075 22.76-12.678 32.656-1.712 2.563-5.447.354-4.107-2.4 5.516-11.327 9.93-22.044 12.417-33.973-6.311 7.749-12.094 15.89-16.972 24.647-6.949 12.472-.758 23.572 1.394 35.57 5.906-8.088 11.967-16.063 17.927-24.11zm-71.902-7.154c-3.402-.849-4.378.705-6.613 2.583 1.671 1.245 2.81 3.173 2.852 5.285-.004.127 3.262 1.635 3.567 1.778 3.745 1.755 6.348-.766 5.671-4.806-.416-2.494-3.147-4.258-5.477-4.84zm-3.84 24.978c5.746-2.542.46-8.513-3.224-11.2-2.077 1.147-4.771 1.174-7.122.472.645 2.456 1.866 5.21 3.014 7.381 1.416 2.674 4.288 4.695 7.332 3.347zm-14.43-20.465c.48.127 4.397-2.88 4.375-3.048-.606-4.58-4.509-9.519-9.523-8.343-2.775.649-3.416 3.242-2.088 5.514.845 1.443 5.522 5.424 7.236 5.877zm-5.734 13.567c2.716-1.42 3.929-4.236 6.114-6.113-1.045-1.106-1.76-2.42-2.038-3.9-5.17-.324-10.638.908-10.414 7.263.125 3.547 3.743 4.108 6.338 2.75zm14.228-12.24c-1.916-2.212-4.341.29-4.133 2.127.323 2.872 7.38 1.627 4.133-2.126zm-60.63 6.466c16.828-7.17 20.512-21.51 18.25-37.996-.242-.256-.361-.531-.448-.86-8.943 11.556-20.146 24.17-33.38 30.592-1.857.901-4.102-1.526-2.336-3.026 5.863-4.977 12.435-9.092 18.353-14.048 5.17-4.331 9.873-9.18 14.341-14.22-.62.677-4.844-.277-5.931-.105-2.745.438-5.56 1.62-8.11 2.684-5.603 2.334-10.868 5.493-15.644 9.232-9.256 7.248-17.425 17.203-20.117 28.873a33.23 33.23 0 0 0-.865 6.989c-.01.618.636 7.102.721 7.065 11.686-5.147 23.42-10.172 35.167-15.18zM107.31 56.73c7.286-10.027 5.125-20.302 2.156-30.782-6.16 13.218-12.15 26.252-20.1 38.754-1.371 2.16-4.569.273-3.413-1.995 6.858-13.464 13.81-26.722 20.478-40.225-.237-.016-.475-.022-.716-.036-10.788 5.378-19.588 18.725-26.132 27.682-9.731 13.32-14.396 29.867-8.62 45.343 5.018-8.444 12.084-14.936 19.722-21.456 6.22-5.307 11.78-10.614 16.625-17.286zM34.7 65.783c-1.615-.305-5.787-1.238-6.981-.35.913.838 1.74 1.741 2.168 2.952.16.448.253 4.666.083 4.529 2.054 1.497 4.13 2.558 6.718 2.663 3.406.14 5.609-3.187 4.105-6.135-1.184-2.32-3.689-3.204-6.094-3.659zm-16.195 17.54c5.026.504 8.116-3.48 9.438-7.71-2.025 1.298-5.008.971-6.979-.327-.408-.268-.669-.67-.992-1.02-.099.026-.196.052-.297.077-1.134.699-2.235 1.45-3.214 2.33-2.809 2.524-1.697 6.275 2.044 6.65zM9.584 65.9c-.584 4.818 4.723 4.874 8.636 4.484-.004-.87.293-1.724.77-2.443.17-.257-8.954-5.78-9.406-2.041zm10.58-11.387c-.984.424-.998 3.4-.907 4.353.167 1.75 2.128 6.29 4.694 4.754.39-1.7 1.795-4.157 1.167-5.87-.085-.226-.28-.515-.548-.828-1.075-1.247-3.33-2.876-4.406-2.409zm7.195 16.97c1.158-1.89.2-3.51-1.243-3.956-1.884-.582-4.436 1.32-3.733 3.377.687 2.013 3.895 2.348 4.976.58zm1874.623-36.392c-4.684-1.812-8.22-3.114-10.604-3.905a174.081 174.081 0 0 0-10.6-3.135c-1.836-.48-3.679-.93-5.528-1.352-1.162-.264-3.676-.297-4.608-.986 9.711 7.179 17.636 16.787 22.266 27.923 11.865-10.685 12.908 6.878 12.296 7.04 5.174-1.373 10.249-.983 9.796 5.224-.382 5.28-3.929 7.999-8.234 8.735a9.337 9.337 0 0 1 1.73 2.65c1.58 3.609.269 7.48-3.276 9.18-6.595 3.166-15.39-2.606-16.692-9.496-2.273 1.275-4.802 2.051-7.44 1.445-3.308-.762-6.541-3.308-6.707-6.948-.386-8.436 8.375-11.68 15.48-10.924-6.842-16.623-18.774-35.856-38.24-37.644a226.419 226.419 0 0 0-15.658-.914c-2.616-.058-11.06 1.431-13.056.065 10.562 7.225 19.171 19.76 24.87 29.69 4.073 7.095 7.3 14.807 8.576 22.928 1.277 8.133-.503 15.314-3.302 22.935-.673 1.833-1.496 4.687-3.09 5.932-2.537 1.984-3.687-1.98-4.928-3.804-4.994-7.336-11.338-13.565-17.991-19.388-7.094-6.207-14.315-12.577-18.905-20.952-7.145-13.036-3.33-22.917-.667-36.272-20.415-.523-42.576 5.52-62.594 9.347 17.041 5.41 33.897 21.678 42.011 36.436-.01-.018 9.123-4.11 10.512-3.828.004 3.931-4.962 6.748-8.181 7.811 11.403-3.007 13.6 16.676.186 11.07-.586-.245-4.887-3.28-4.59-7.446-2.65 1.061 1.746 5.58-1.195 7.106-4.523 2.349-4.052-5.546-3.42-7.51.13-.404 1.674-5.093 2.392-4.374-6.67-6.722-12.19-14.577-19.182-20.964-8.707-7.955-20.583-17.292-33.113-15.497-10.158 1.455-20.229 3.807-30.366 5.454 10.954 4.954 20.875 13.624 28.484 21.955 10.562 11.56 14.64 25.007 9.752 40.233-.457 1.425-2.163 2.78-3.741 2.124-17.3-7.185-38.923-12.888-52.8-25.843-8.874-8.282-8.644-23.828-6.005-35.093-7.128.796-14.272 1.418-21.439 1.758-12.403.588-24.762.362-37.092-.307 4.474 3.146 8.62 6.805 12.179 10.964 1.673 1.956 2.928 4.214 4.482 6.257 1.437 1.886 3.384 3.094 4.901 4.879 1.185-2.811 2.391-5.49 5.002-7.284 3.182-2.189 8.109-2.692 11.345-.408 6.366 4.495 3.92 10.928-.88 14.915 5.091 1.33 9.063 6.953 8.079 12.201-.81 4.32-4.643 7.44-9.13 6.765-2.651-.398-6.01-2.26-8.359-4.691-.066 1.04-.218 2.088-.638 3.187-1.813 4.747-5.38 8.125-10.647 8.56-4.744.39-9.067-2.55-9.798-7.376-.166-1.095.426-8.043 2.124-8.007-4.554-.095-9.358-3.9-9.313-9.232.059-7.046 5.521-11.106 11.587-11.745-1.983-3.203-5.296-6.968-6.189-8.007-2.726-3.177-4.802-3.963-7.63-7.053-6.483-7.082-15.074-5.12-23.716-6-8.596-.878-17.175-1.913-25.745-3.016 7.45 8.231 14.291 18.381 17.363 27.704 3.246 9.861-.83 19.093-1.348 28.92-.167 3.144.02 15.523-5.048 15.483-4.4-.035-8.147-4.869-10.613-7.947-3.468-4.325-6.293-9.095-9.475-13.624-6.815-9.707-14.8-20.88-12.205-33.434 1.356-6.567 5.439-12.47 7.747-18.667-6.178-2.36-13.735-2.087-20.257-2.944-4.715-.62-17.486.129-21.128-2.646 7.874 5.997 14.754 14.574 16.6 23.531 2.808-.226 5.621.651 7.812 3.094 1.532 1.71-.746 3.889-2.478 2.478-.39-.319-.857-.463-1.305-.655 4.242 2.94 3.88 7.731-.81 9.926-1.698.794-3.944 1.198-5.678.277-.792-.42-1.477-1.082-1.843-1.912-.313-.708-.687-4.44-.089-4.932-1.27 1.045-1.508 2.434-1.124 3.984.37 1.494 1.233 2.77-.527 3.785-8.038 4.635-4.996-9.115-2.09-12.077.839-.855 1.805-1.56 2.82-2.171-2.565-5.002-4.346-10.243-8.155-14.717-8.911-10.47-17.373-12.29-30.62-13.29a468.303 468.303 0 0 0-16.84-.979c-3.758-.145-12.354 1.378-15.567-.297 9.711 5.063 18.014 14.766 24.186 22.595 6.684 8.479 8.472 18.558 6.785 29.05-.415 2.576-3.656 17.792-8.2 11.933-9.297-11.989-26.807-16.067-34.13-29.766-4.559-8.533-6.962-19.145-3.712-28.483 3.001-8.631-12.71-4.13-17.086-3.65-16.746 1.842-33.562 4.65-50.423 7.765 7.413 5.518 16.443 15.702 21.789 22.616.774.236 1.54.485 2.251.766.388.153.708.368.968.616.898-3.84 2.506-7.562 5.948-9.666 4.18-2.557 9.386-2.739 12.828 1.137 3.007 3.388 2.62 8.626.36 12.297.73.07 1.445.208 2.142.43 4.137 1.322 8.191 5.075 6.9 9.905-1.85 6.924-7.852 8.937-13.751 7.898.762 4.701-1.512 10.086-7.157 11.098-4.485.802-8.971-.984-10.556-5.54-.481-1.38-.681-2.989-.546-4.543-.74.71-1.566 1.352-2.603 1.837-2.38 1.112-5.649.944-7.706-.794-2.288-1.93-1.126-5.463.176-7.775.764-1.354 1.643-2.454 2.664-3.383-4.748 1.26-9.928-1.613-8.746-7.888 1.03-5.455 4.968-7.33 9.423-7.47-1.979-2.715-3.947-5.439-6.165-7.874-5.462-6-9.82-11.981-18.585-12.256-7.28-.228-14.178 3.258-21.205 4.612-13.038 2.514-26.084 4.994-39.182 7.169 17.567 4.333 36.401 13.686 45.589 29.901 2.965 5.23 4.262 11.33 3.935 17.335-.605 11.075-6.35 4.284-12.897.558-4.028-2.296-8.474-3.731-12.858-5.168-8.878-2.913-18.252-5.447-24.869-12.496-7.536-8.028-7.593-28.64-20.443-26.91a447.843 447.843 0 0 1-15.236 1.798c-5.275.527-19.768 4.202-24.378 1.7 10.78 5.853 20.835 14.432 27.027 23.424 2.706-.158 5.465.509 7.725 2.057 1.437.982.212 2.971-1.338 2.29-1.023-.449-2.167-.657-3.33-.742.886.065 2.115 4.45 2.311 5.283.445 1.896.043 4.253-1.671 5.405-1.613 1.085-8.606.541-9.388-1.567-.13-.35-.182-.745-.24-1.136-.19 6.102-4.861 8.404-5.334 1.532-.216-3.12 2.472-8.844 4.852-10.766.227-.182.508-.246.744-.41-5.88-5.612-11.255-11.58-18.015-16.328-9.348-6.564-16.23-8.638-27.53-9.121-7.368-.315-14.735-.833-22.57-1.862 12.3 4.995 25.639 13.242 30.827 26.106 2.54 6.3 2.817 13.634.495 20.061-3.765 10.427-7.262 2.163-11.451-2.756-2.628-3.084-6.138-5.35-9.564-7.434-6.789-4.133-14.267-7.235-19.752-13.193-8.149-8.854-14.319-23.762-25.435-29.049-9.38-4.46-20.24-4.06-30.184-6.336 8.226 7.106 14.954 15.99 18.482 25.56 4.14-5.636 12.923-8.777 18.358-3.233 3.146 3.21 3.278 8.143.036 11.447-1.148 1.17-2.494 1.942-3.909 2.545.976.543 1.936 1.145 2.85 1.907 3.185 2.654 5.863 7.161 4.679 11.488-2.266 8.27-15.554 4.588-16.838-1.964.399 2.035.49 4.14.029 6.206-.692 3.1-2.454 7.19-6.031 7.696-3.216.455-7.646-2.884-9.483-5.283-1.443-1.88-2.943-5.374-1.219-7.488-11.257 5.861-21.772-10.642-10.568-17.494 1.567-.956 3.535-1.702 5.593-2.098-.16-.976-.176-1.984.13-2.985 1.078-3.508 3.784-5.018 6.76-5.17-7.733-13.235-18.049-23.446-33.368-26.72-6.496-1.388-19.5-1.516-24.884-5.16 7.608 5.15 14.605 11.49 19.162 18.543 6.799 10.52 6.24 24.067 5.1 36.044-.312 3.27-.47 7.625-1.91 10.596-2.713 5.593-3.305 3.17-7.214-.897-7.613-7.92-18.571-13.792-22.522-24.627-4.218-11.576-1.957-25.206-7.256-36.326-3.961-8.309-10.544-7.537-18.377-8.395a301.907 301.907 0 0 0-15.393-1.304c-9.44-.546-19.361-1.19-28.761.158-1.987.285-6.452 2.409-8.17 2.225 20.935 2.247 44.221 9.18 51.588 25.473 3.377-1.81 7.282-2.466 11.15-1.281.914.279 1.045 1.772 0 1.978-2.59.512-5.184 1.205-6.451 2.545 6.85 2.405 5.042 12.082-1.64 13.094-2.711.413-5.432-.885-6.853-3.197-.38 2.233-.34 4.517-.317 7.148.028 3.824-3.537 2.05-4.798.625-1.544-1.748-1.103-5.592-.752-7.66.178-1.043 4.523-10.01 4.871-9.505-12.22-17.682-34.6-20.938-55.52-23.323a68.349 68.349 0 0 1 3.84 4.572c4.001 5.222 10.125 9.79 13.587 15.346 8.984 14.416.63 30.384 7.09 45.43 1.219 2.84-2.102 6.098-4.565 3.524-8.869-9.259-17.456-17.543-28.3-24.534-4.46-2.878-8.397-5.744-11.78-9.43-3.383 3.686-7.32 6.552-11.78 9.43-10.846 6.99-19.431 15.275-28.3 24.534-2.465 2.574-5.784-.683-4.565-3.523 6.457-15.047-1.894-31.015 7.09-45.431 3.464-5.556 9.584-10.124 13.585-15.346a68.978 68.978 0 0 1 3.842-4.572c-20.922 2.385-43.3 5.641-55.52 23.323.348-.505 4.693 8.462 4.87 9.505.352 2.068.793 5.912-.751 7.66-1.261 1.425-4.826 3.2-4.798-.625.022-2.63.063-4.915-.32-7.148-1.418 2.312-4.14 3.61-6.853 3.197-6.68-1.012-8.486-10.689-.584-13.272-2.32-1.162-4.913-1.855-7.506-2.367-1.043-.206-.914-1.7 0-1.978 3.87-1.185 7.775-.53 11.152 1.281 7.367-16.294 30.651-23.226 51.587-25.473-1.717.184-6.182-1.94-8.169-2.225-9.4-1.348-19.323-.704-28.76-.158-5.14.3-10.274.742-15.394 1.304-7.833.858-14.416.086-18.377 8.395-5.3 11.12-3.036 24.75-7.258 36.326-3.947 10.835-14.907 16.706-22.52 24.627-3.909 4.064-4.503 6.49-7.213.897-1.44-2.97-1.599-7.326-1.91-10.598-1.14-11.975-1.698-25.522 5.099-36.042 4.557-7.053 11.552-13.393 19.161-18.543-5.382 3.644-18.39 3.772-24.883 5.16-15.32 3.274-25.635 13.485-33.367 26.72 2.975.152 5.68 1.662 6.758 5.17.307 1 .291 2.01.131 2.985 2.058.396 4.024 1.142 5.593 2.098 11.204 6.85.689 23.355-10.568 17.494 1.724 2.112.224 5.609-1.217 7.488-1.84 2.4-6.27 5.738-9.487 5.283-3.573-.507-5.337-4.595-6.029-7.696-.458-2.065-.37-4.171.029-6.206-1.284 6.552-14.572 10.232-16.838 1.964-1.184-4.327 1.494-8.834 4.679-11.488.914-.762 1.874-1.364 2.85-1.907-1.415-.603-2.761-1.375-3.909-2.545-3.242-3.304-3.11-8.238.036-11.447 5.435-5.544 14.218-2.403 18.358 3.233 3.528-9.57 10.254-18.454 18.482-25.56-9.941 2.276-20.807 1.876-30.184 6.336-11.118 5.287-17.288 20.195-25.435 29.047-5.485 5.96-12.965 9.062-19.752 13.195-3.426 2.084-6.936 4.35-9.564 7.432-4.19 4.92-7.686 13.185-11.45 2.758-2.323-6.427-2.044-13.76.494-20.06 5.188-12.865 18.527-21.112 30.356-26.036-7.364.956-14.731 1.476-22.1 1.79-11.3.484-18.183 2.558-27.53 9.122-6.761 4.747-12.135 10.716-18.014 16.328.236.164.517.228.742.41 2.382 1.922 5.07 7.646 4.854 10.766-.473 6.872-5.143 4.57-5.333-1.532-.06.39-.11.787-.241 1.136-.782 2.108-7.775 2.652-9.388 1.567-1.714-1.154-2.116-3.509-1.671-5.405.196-.832 1.423-5.218 2.312-5.283-1.164.085-2.308.293-3.33.742-1.55.681-2.776-1.308-1.34-2.29 2.26-1.548 5.02-2.217 7.726-2.057 6.19-8.992 16.247-17.571 27.027-23.424-4.61 2.502-19.103-1.173-24.38-1.7a449.056 449.056 0 0 1-15.236-1.799c-12.85-1.73-12.905 18.883-20.443 26.91-6.617 7.05-15.989 9.584-24.865 12.497-4.386 1.437-8.832 2.872-12.862 5.166-6.544 3.728-12.29 10.52-12.895-.556-.327-6.005.97-12.104 3.935-17.337 9.188-16.21 28.022-25.566 45.59-29.9-13.1-2.174-26.145-4.654-39.183-7.168-7.027-1.354-13.925-4.84-21.205-4.612-8.767.275-13.122 6.255-18.585 12.256-2.217 2.435-4.186 5.16-6.163 7.874 4.45.14 8.392 2.015 9.419 7.47 1.184 6.275-3.996 9.149-8.744 7.888 1.021.93 1.9 2.029 2.664 3.383 1.302 2.31 2.464 5.845.176 7.775-2.057 1.738-5.325 1.906-7.706.794-1.04-.485-1.864-1.128-2.603-1.837.137 1.554-.065 3.163-.546 4.543-1.585 4.554-6.071 6.342-10.556 5.54-5.645-1.012-7.92-6.397-7.159-11.098-5.897 1.04-11.9-.974-13.749-7.898-1.291-4.83 2.763-8.583 6.9-9.905.697-.222 1.413-.36 2.142-.43-2.26-3.673-2.647-8.91.36-12.297 3.44-3.876 8.65-3.694 12.828-1.137 3.442 2.104 5.048 5.826 5.95 9.666.258-.248.578-.463.966-.616.71-.281 1.477-.53 2.251-.766 5.346-6.914 14.376-17.098 21.79-22.616-16.862-3.114-33.678-5.923-50.424-7.765-4.376-.48-20.09-4.981-17.086 3.65 3.252 9.338.847 19.95-3.713 28.483-7.322 13.699-24.832 17.777-34.13 29.766-4.543 5.86-7.784-9.357-8.199-11.932-1.687-10.495.101-20.574 6.785-29.053 6.172-7.827 14.475-17.53 24.186-22.593-3.213 1.675-11.811.152-15.568.297-5.619.22-11.233.556-16.84.978-13.246 1-21.708 2.822-30.619 13.29-3.807 4.475-5.59 9.716-8.154 14.718 1.014.61 1.98 1.316 2.819 2.17 2.906 2.963 5.948 16.713-2.09 12.078-1.76-1.014-.897-2.291-.527-3.785.384-1.55.145-2.94-1.124-3.984.598.492.224 4.224-.089 4.932-.366.83-1.051 1.491-1.843 1.912-1.736.921-3.98.517-5.677-.277-4.69-2.195-5.053-6.987-.81-9.926-.447.192-.916.336-1.306.655-1.732 1.411-4.01-.768-2.478-2.478 2.193-2.443 5.004-3.32 7.81-3.094 1.848-8.957 8.728-17.534 16.6-23.53-3.642 2.774-16.41 2.024-21.126 2.645-6.524.857-14.079.584-20.257 2.944 2.306 6.197 6.389 12.1 7.747 18.667 2.595 12.555-5.392 23.727-12.207 33.434-3.18 4.53-6.005 9.297-9.473 13.624-2.466 3.078-6.213 7.912-10.613 7.947-5.068.04-4.883-12.339-5.048-15.484-.52-9.826-4.594-19.058-1.348-28.919 3.072-9.323 9.913-19.473 17.36-27.704-8.567 1.103-17.144 2.138-25.742 3.015-8.642.881-17.233-1.081-23.719 6-2.827 3.09-4.9 3.877-7.627 7.054-.893 1.039-4.206 4.804-6.189 8.007 6.066.64 11.528 4.7 11.587 11.745.045 5.331-4.76 9.137-9.313 9.232 1.7-.036 2.29 6.912 2.124 8.007-.731 4.827-5.054 7.765-9.798 7.373-5.267-.432-8.834-3.81-10.647-8.557-.42-1.101-.572-2.146-.638-3.187-2.349 2.431-5.708 4.293-8.36 4.69-4.486.676-8.318-2.445-9.129-6.764-.984-5.248 2.988-10.871 8.079-12.2-4.8-3.988-7.246-10.421-.88-14.916 3.236-2.284 8.163-1.78 11.345.408 2.61 1.795 3.817 4.473 5.002 7.284 1.517-1.785 3.462-2.993 4.899-4.88 1.558-2.042 2.811-4.3 4.484-6.256 3.56-4.16 7.705-7.818 12.18-10.964-12.331.669-24.69.895-37.095.307-7.165-.34-14.31-.962-21.437-1.758 2.64 11.265 2.87 26.81-6.005 35.093-13.877 12.955-35.5 18.658-52.8 25.843-1.578.655-3.282-.699-3.74-2.124-4.892-15.226-.811-28.672 9.75-40.233 7.61-8.33 17.53-17.001 28.485-21.955-10.137-1.647-20.206-4-30.366-5.454-12.53-1.797-24.404 7.542-33.113 15.497-6.993 6.387-12.512 14.242-19.182 20.964.718-.721 2.262 3.97 2.391 4.374.633 1.964 1.104 9.859-3.42 7.51-2.94-1.526 1.456-6.047-1.194-7.106.295 4.166-4.004 7.201-4.59 7.446-13.411 5.606-11.217-14.077.188-11.07-3.221-1.063-8.187-3.88-8.183-7.81 1.389-.284 10.524 3.809 10.512 3.827 8.114-14.758 24.97-31.025 42.011-36.436-20.02-3.827-42.18-9.87-62.592-9.347 2.662 13.355 6.476 23.236-.669 36.272-4.59 8.375-11.81 14.745-18.905 20.952-6.653 5.82-13 12.05-17.993 19.388-1.241 1.823-2.39 5.788-4.925 3.804-1.595-1.245-2.418-4.099-3.09-5.932-2.8-7.621-4.582-14.802-3.303-22.935 1.275-8.12 4.503-15.833 8.575-22.929 5.7-9.93 14.31-22.464 24.87-29.69-1.995 1.367-10.44-.122-13.055-.064a226.42 226.42 0 0 0-15.659.914C48.913 24.686 36.981 43.917 30.14 60.542c7.102-.756 15.865 2.488 15.48 10.924-.167 3.64-3.4 6.186-6.709 6.948-2.637.606-5.166-.17-7.44-1.445-1.303 6.89-10.096 12.662-16.691 9.497-3.547-1.702-4.857-5.572-3.276-9.182a9.337 9.337 0 0 1 1.73-2.65C8.929 73.9 5.382 71.182 5 65.9c-.453-6.207 4.622-6.597 9.796-5.225-.612-.163.43-17.724 12.294-7.04C31.722 42.5 39.645 32.893 49.358 25.714c-.932.69-3.448.722-4.608.986-1.85.423-3.692.871-5.527 1.352a173.655 173.655 0 0 0-10.6 3.135c-2.564.85-5.105 1.764-7.625 2.731l-4.268 1.779c-1.06.541-2.267 1.212-3.465 1.671L0 44V0h1920v44l-7.506-4.042c-2.84-1.372-6.343-2.995-10.512-4.867z" fill="${i}" fill-rule="evenodd"/></svg>`,42:`<svg viewBox="0 0 1920 163" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><g fill="${i}" fill-rule="evenodd"><g opacity=".25"><path d="M67.296 78.015c8.258 4.814 19.024 3.4 26.725-1.502 17.41-11.081 18.436-37.104.11-47.537C54.449 6.381 2.446 27.822.093 77.821c-2.514 53.38 46.872 82.54 97.08 70.135 51.934-12.834 75.287-48.718 120.084-75.87 21.24-12.873 48.253-18.453 72.548-21.323 18.015-2.13 39.802 1.067 52.65 15.16 10.328 11.33 19.91 49.77.439 54.29-43.13 10.008-28.386-32.004-47.677-27.024-14.944 3.858-2.205 31.403 4.547 37.032 11.15 9.295 29.15 10.194 42.756 7.775 44.38-7.898 31.5-67.839 6.985-88.652C313.802 19.031 245.76 41.6 210.085 59.815c-51.856 26.478-70.88 69.636-132.768 76.047-32.82 3.397-61.768-15.415-64.919-49.241-.18-10.876 2.349-21.08 7.581-30.617 3.177-4.17 6.356-8.337 9.534-12.507 20.723-27.183 32.557.62 37.555 19.732 0 0-8.386 2.726-6.934 7.821.56 1.975 2.595 4.303 7.162 6.965zM665.768 82.389a9.887 9.887 0 0 0-3.201-.85c-15.71-1.463-20.108 29.08-16.292 39.42 9.74 26.382 48.78 27.08 71.883 24.49 39.091-4.38 64.245-39.079 88.99-65.68 26.414-28.391 65.873-35.275 103.264-28.535 45.6 8.222 42.928 57.208 10.89 80.654-5.497 2.712-10.993 5.427-16.494 8.141-36.314 17.925-2.312-33.34-5.063-41.876-10.158-31.504-54.392 13.395-48.984 36.603 11.666 50.05 84.417 20.827 102.93-2.292 32.707-40.843-13.537-89.817-52.37-96.837-25.353-4.58-52.864.94-75.609 12.634-25.58 13.151-37.737 37.11-59.583 54.419-19.596 15.528-40.96 37.931-69.4 28.43-57.374-19.172-17.535-42.624-30.961-48.721"/><path d="M1035.057 82.053c-23.562-37.557-63.544-16.237-76.794 17.923-25.49 65.71 62.675 49.055 96.897 34.198 23.479-10.192 43.588-30.237 63.061-46.272 16.298-13.424 31.585-23.566 51.537-30.6 37.258-4.815 57.531 10.377 60.815 45.572.857 9.182-11.794 32.907-22.569 33.816-6 .507-10.816-4.068-14.44-8.266-10.014-11.595-3.553-8.83-.18-18.982 5.627-16.938-21.862-10.404-27.78-4.123-8.847 9.386-10.464 27.06-1.028 36.497 31.894 31.894 75.226-4.936 79.304-38.924 5.772-48.135-53.162-72.548-90.513-53.903-35.332 17.64-62.12 46.635-94.89 68.182-12.393 8.147-27.317 12.466-41.426 16.562-81.654 23.707-29.293-106.335 12.553-48.493 2.338 3.232 7.656.326 5.453-3.187M445.186 82.053c-41.017-65.233-109.666 38.56-68.863 61.75 27.63 15.7 62.204 1.988 88.967-9.629 23.476-10.192 43.588-30.237 63.059-46.272 16.297-13.424 31.585-23.566 51.536-30.6 25.601-9.029 55.232 12.107 57.33 38.335 2.229 27.846-29.593 57.573-41.394 19.14 18.172-4.617-2.726-24.482-18.132-11.533-10.585 8.898-13.002 28.553-2.984 38.572 31.895 31.894 75.226-4.936 79.303-38.924 5.774-48.135-53.162-72.548-90.511-53.903-35.334 17.64-62.123 46.635-94.89 68.182-12.396 8.147-27.32 12.466-41.426 16.562-81.655 23.707-29.295-106.335 12.553-48.493 2.336 3.232 7.66.324 5.452-3.187"/><path d="M1297.729 78.312c.562 1.973 2.597 4.3 7.165 6.963 8.258 4.814 19.022 3.399 26.724-1.502 17.411-11.081 18.436-37.105.111-47.537-39.683-22.596-91.687-1.152-94.041 48.847-2.513 53.378 46.872 82.54 97.079 70.132 51.935-12.832 89.29-48.715 134.087-75.87 21.237-12.872 48.252-18.45 72.545-21.322 18.018-2.13 39.805 1.067 52.653 15.162 10.327 11.328 19.909 49.768.438 54.287-43.129 10.008-28.385-32.001-47.676-27.021-14.944 3.856-2.205 31.4 4.547 37.03 11.15 9.294 29.148 10.196 42.755 7.774 44.379-7.898 31.498-67.838 6.985-88.651-35.702-30.312-103.743-7.743-139.42 10.473-51.854 26.476-84.878 69.635-146.767 76.044-32.82 3.398-61.767-15.412-64.918-49.239-.18-10.877 2.346-21.081 7.579-30.619 3.179-4.167 6.356-8.337 9.535-12.504 20.722-27.185 32.557.62 37.555 19.73 0 0-8.385 2.726-6.936 7.823"/><path d="M1696.784 89.313c-41.02-65.234-109.669 38.56-68.866 61.749 27.63 15.701 62.206 1.99 88.97-9.628 23.474-10.19 43.585-30.235 63.058-46.272 16.298-13.424 31.585-23.564 51.537-30.601 25.6-9.028 55.231 12.108 57.33 38.337 2.226 27.844-29.595 57.572-41.396 19.14 18.171-4.617-2.727-24.483-18.131-11.535-10.586 8.9-13.001 28.556-2.985 38.572 31.894 31.894 75.228-4.935 79.304-38.921 5.774-48.138-53.162-72.55-90.51-53.906-35.335 17.64-62.126 46.636-94.893 68.182-12.393 8.15-27.317 12.466-41.424 16.563-81.654 23.707-29.295-106.336 12.553-48.493 2.336 3.232 7.658.323 5.453-3.187"/></g><path d="M1919.995 86.998a54.235 54.235 0 0 1-.39 7.156c-4.076 33.986-47.41 70.815-79.304 38.921-10.016-10.016-7.601-29.673 2.985-38.572 15.404-12.948 36.302 6.918 18.13 11.535 11.802 38.432 43.623 8.704 41.396-19.14-2.098-26.229-31.728-47.365-57.33-38.337-19.95 7.037-35.238 17.177-51.536 30.6-19.473 16.038-39.584 36.082-63.059 46.273-26.763 11.619-61.339 25.33-88.969 9.628-7.053-4.009-10.835-10.425-12.056-17.961-4.707 5.986-11.784 10.381-21.746 12.154-13.607 2.422-31.605 1.52-42.755-7.775-6.752-5.628-19.491-33.173-4.547-37.03 19.29-4.98 4.547 37.03 47.676 27.022 19.471-4.519 9.89-42.96-.438-54.287-12.848-14.095-34.635-17.292-52.653-15.162-24.293 2.872-51.308 8.45-72.545 21.322-44.797 27.155-82.152 63.038-134.087 75.87-40.603 10.034-80.668-7.119-93.181-42.28-10.198 30.525-48.253 57.638-77.01 28.88-9.436-9.436-7.82-27.11 1.029-36.496 5.917-6.281 33.406-12.815 27.779 4.123-3.373 10.152-9.834 7.387.18 18.982 3.624 4.198 8.44 8.773 14.44 8.266 10.775-.91 23.426-24.634 22.57-33.816-3.285-35.195-23.558-50.387-60.816-45.573-19.952 7.035-35.24 17.177-51.537 30.601-19.473 16.035-39.582 36.08-63.06 46.272-27.333 11.866-89.074 24.879-99.84-3.84a59.788 59.788 0 0 1-1.63 2.13c-18.513 23.119-91.264 52.341-102.93 2.292-5.408-23.208 38.826-68.107 48.984-36.603 2.751 8.537-31.251 59.8 5.063 41.876 5.501-2.714 10.997-5.429 16.494-8.14 32.038-23.447 34.71-72.433-10.89-80.655-37.391-6.74-76.85.144-103.263 28.535-24.746 26.601-49.9 61.3-88.991 65.68-22.437 2.515-59.906 1.93-70.969-22.273-14.237 25.745-47.009 44.115-72.484 18.64-10.018-10.019-7.6-29.674 2.984-38.572 15.406-12.95 36.304 6.916 18.132 11.534 11.801 38.432 43.623 8.705 41.394-19.141-2.098-26.228-31.729-47.364-57.33-38.336-19.951 7.035-35.239 17.177-51.536 30.601-19.471 16.035-39.583 36.08-63.06 46.272-26.762 11.617-61.336 25.33-88.966 9.628-7.053-4.008-10.836-10.426-12.056-17.962-4.708 5.987-11.785 10.383-21.748 12.156-13.606 2.419-31.605 1.52-42.756-7.775-6.752-5.629-19.49-33.174-4.547-37.032 19.291-4.98 4.547 37.032 47.677 27.024 19.47-4.52 9.889-42.96-.439-54.29-12.848-14.093-34.635-17.29-52.65-15.16-24.295 2.87-51.309 8.45-72.548 21.322-44.797 27.153-82.15 63.037-134.085 75.87C48.965 143.867 1.516 117.46.036 68.088L0 68V0h1920v87l-.005-.002z" fill-rule="nonzero"/></g></svg>`};var i;return"data:image/svg+xml;base64,"+l.Base64.encode(o[e])}},function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));let i=new Map},function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));let i=new Map},,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(45),a=o(52),l=o(108),c=o(33),s=o(30);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.Zoom))),direction:a.b([Object(i.b)(Object(n.c)("name"),e=>{switch(e){case s.a.zoomIn:return d.none;case s.a.zoomInDown:return d.down;case s.a.zoomInRight:return d.right;case s.a.zoomInUp:return d.up;case s.a.zoomInLeft:return d.left;default:return}}),()=>d.none]),duration:l.b,delay:l.a,infiniteAnimation:l.c}),u=e=>{switch(e.direction){case d.none:return s.a.zoomIn;case d.left:return s.a.zoomInLeft;case d.down:return s.a.zoomInDown;case d.right:return s.a.zoomInRight;case d.up:return s.a.zoomInUp}},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";o.d(t,"a",(function(){return r}));var i=o(20);const r=e=>t=>{if(Array.isArray(t)){const o=t.map(e);return o.some(e=>Object(i.b)(e))?void 0:o}}},,,,,,,,,,,,,,,function(e,t,o){"use strict";o.d(t,"a",(function(){return a}));var i=o(232),r=o(18),n=o(24);const a=(e,t,o)=>{const a=Object(i.a)(o),l=Object(r.s)(a);return Object(n.insert)(e,t,l)}},function(e,t,o){"use strict";o.d(t,"a",(function(){return b}));var i=o(2),r=o(1),n=o.n(r),a=o(5),l=o.n(a),c=o(10),s=o(16),d=o(41),p=o(61),u=o(8);class b extends n.a.Component{renderForEdit(){const{active:e,className:t,checkIcon:o,unCheckIcon:i,children:r,onClick:a,toolbarIcon:c=null}=this.props,d=l()("brz-control__radio-option",{"brz-control__radio-option--active":e},t),p=l()("brz-control__radio-check",{"brz-control__radio-check--active":e});return n.a.createElement("div",{className:d,onClick:a},c?n.a.createElement(u.c,c,n.a.createElement(s.b,{className:p,icon:e?"nc-"+o:"nc-"+i})):n.a.createElement(s.b,{className:p,icon:e?"nc-"+o:"nc-"+i}),r)}renderForView(){const{active:e,className:t,value:o,name:i,checkIcon:r,unCheckIcon:a,required:c,children:s,onClick:u}=this.props,b=l()("brz-control__radio-option",{"brz-control__radio-option--active":e},t),m=Object(p.a)();return n.a.createElement("div",{className:b,onClick:u},n.a.createElement("input",{id:m,className:"brz-input",type:"radio",name:i,value:o,checked:e,required:c,"data-type":this.props["data-type"],"data-label":this.props["data-label"],onChange:()=>{}}),n.a.createElement("label",{className:"brz-label",htmlFor:m},n.a.createElement(d.a,{className:"brz-control__radio-icon brz-control__radio--check",type:"editor",name:r}),n.a.createElement(d.a,{className:"brz-control__radio-icon brz-control__radio--uncheck",type:"editor",name:a}),s))}render(){return this.renderForEdit()}}Object(i.a)(b,"defaultProps",{checkIcon:"check",unCheckIcon:"uncheck",className:"",active:!1,value:"",name:"",onClick:c.default.noop})},,function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"b",(function(){return n}));let i="above";const r=()=>i,n=e=>{i=e}},function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));var i=o(1),r=o.n(i),n=o(0),a=o(16);const l=({text:e,url:t})=>r.a.createElement("div",{className:"brz-ed-tooltip-content__pro"},r.a.createElement("p",{className:"brz-p brz-ed-tooltip-content__pro-title"},e),r.a.createElement("p",{className:"brz-p brz-ed-tooltip-content__pro-body"},r.a.createElement("a",{className:"brz-a",href:t,rel:"noopener noreferrer",target:"_blank"},r.a.createElement(a.b,{icon:"nc-lock"}),Object(n.a)("Get a PRO plan"))))},,,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(45),a=o(52),l=o(108),c=o(33),s=o(30);let d;!function(e){e.none="none",e.in="in",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.Bounce))),direction:a.b([Object(i.b)(Object(n.c)("name"),e=>{switch(e){case s.a.bounce:return d.none;case s.a.bounceIn:return d.in;case s.a.bounceInDown:return d.down;case s.a.bounceInLeft:return d.left;case s.a.bounceInRight:return d.right;case s.a.bounceInUp:return d.up;default:return}}),()=>d.none]),duration:l.b,delay:l.a,infiniteAnimation:l.c}),u=e=>{switch(e.direction){case d.none:return s.a.bounce;case d.in:return s.a.bounceIn;case d.down:return s.a.bounceInDown;case d.right:return s.a.bounceInRight;case d.up:return s.a.bounceInUp;case d.left:return s.a.bounceInLeft}},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.in:return Object(r.a)("In");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";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(45),a=o(52),l=o(108),c=o(33),s=o(30);let d;!function(e){e.none="none",e.downLeft="downLeft",e.downRight="downRight",e.upLeft="upLeft",e.upRight="upRight"}(d||(d={}));const p=a.d({type:Object(i.b)(Object(n.c)("name"),c.d,Object(i.c)(Object(c.e)(c.a.Rotate))),direction:a.b([Object(i.b)(Object(n.c)("name"),e=>{switch(e){case s.a.rotateIn:return d.none;case s.a.rotateInDownLeft:return d.downLeft;case s.a.rotateInDownRight:return d.downRight;case s.a.rotateInUpLeft:return d.upLeft;case s.a.rotateInUpRight:return d.upRight;default:return}}),()=>d.none]),duration:l.b,delay:l.a,infiniteAnimation:l.c}),u=e=>{switch(e.direction){case d.none:return s.a.rotateIn;case d.downLeft:return s.a.rotateInDownLeft;case d.downRight:return s.a.rotateInDownRight;case d.upLeft:return s.a.rotateInUpLeft;case d.upRight:return s.a.rotateInUpRight}},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.upRight:return Object(r.a)("UpRight");case d.upLeft:return Object(r.a)("UpLeft");case d.downLeft:return Object(r.a)("DownLeft");case d.downRight:return Object(r.a)("DownRight")}}},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(45),a=o(52),l=o(108),c=o(33),s=o(30);let d;!function(e){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.Slide))),direction:a.b([Object(i.b)(Object(n.c)("name"),e=>{switch(e){case s.a.slideInDown:return d.down;case s.a.slideInRight:return d.right;case s.a.slideInUp:return d.up;case s.a.slideInLeft:return d.left;default:return}}),()=>d.up]),duration:l.b,delay:l.a,infiniteAnimation:l.c}),u=e=>{switch(e.direction){case d.left:return s.a.slideInLeft;case d.down:return s.a.slideInDown;case d.right:return s.a.slideInRight;case d.up:return s.a.slideInUp}},b=e=>({name:u(e),duration:e.duration,delay:e.delay,infiniteAnimation:e.infiniteAnimation}),m=e=>{switch(e){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";o.d(t,"b",(function(){return T})),o.d(t,"a",(function(){return E}));var i=o(2),r=o(1),n=o.n(r),a=o(32),l=o(5),c=o.n(l),s=o(96),d=o(16),p=o(136);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={left:{exited:{transform:"translate3d(-100%, 0, 0)"},entering:{transform:"translate3d(-100%, 0, 0)"},entered:{transform:"translate3d(0, 0, 0)"}},right:{exited:{transform:"translate3d(100%, 0, 0)"},entering:{transform:"translate3d(100%, 0, 0)"},entered:{transform:"translate3d(0, 0, 0)"}}},h=({className:e,alignment:t,play:o,children:i})=>n.a.createElement(p.Transition,{in:o,timeout:150},r=>n.a.createElement("div",{className:c()(e,{active:o}),style:b({transition:"transform 150ms linear"},m[t][r])},i));var g=o(63),v=o.n(g);function y(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?y(Object(o),!0).forEach((function(t){Object(i.a)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}const S=({style:e})=>n.a.createElement("div",{style:f(f({},e),{},{borderRadius:"inherit",backgroundColor:"#3f4652"})}),O=({children:e})=>n.a.createElement(v.a,{renderThumbHorizontal:S,renderThumbVertical:S},e);var x=o(17),C=o(26),w=o(0);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}let T;class P extends n.a.Component{constructor(...e){super(...e),Object(i.a)(this,"getItems",void 0),Object(i.a)(this,"getTitle",void 0),Object(i.a)(this,"clearItemsTimeoutId",0),Object(i.a)(this,"unmounted",!1),Object(i.a)(this,"onLockClick",()=>{const{isOpen:e,lock:t,alignment:o,activeTab:i}=this.props,r=void 0!==this.getItems?this.getItems():void 0,n={activeTab:i,alignment:o,lock:"manual"===t?void 0:"manual",isOpen:(void 0===t||void 0!==r&&0!==r.length)&&e};this.props.dispatch(Object(C.S)("rightSidebar",n))}),Object(i.a)(this,"renderScrollbarsThumb",({style:e})=>n.a.createElement("div",{style:j(j({},e),{},{borderRadius:"inherit",backgroundColor:"#3f4652"})}))}componentDidMount(){T=this}componentDidUpdate(e){e.deviceMode!==this.props.deviceMode&&(this.getItems=void 0,this.getTitle=void 0)}componentWillUnmount(){this.unmounted=!0,T=void 0}setItems(e,t){window.clearTimeout(this.clearItemsTimeoutId),this.getItems=e,this.getTitle=t,this.props.isOpen&&this.forceUpdate()}clearItems(){const{lock:e,alignment:t,dispatch:o,activeTab:i}=this.props;if(e)this.clearItemsTimeoutId=window.setTimeout(()=>{this.getItems=void 0,this.getTitle=void 0,this.forceUpdate()},150);else{this.getItems=void 0,this.getTitle=void 0;const r={isOpen:!1,lock:e,alignment:t,activeTab:i};o(Object(C.S)("rightSidebar",r))}}renderEmpty(e){return n.a.createElement("div",{className:"brz-ed-sidebar__right__empty"},n.a.createElement(d.b,{icon:"nc-settings",className:"brz-ed-sidebar__right__empty-icon"}),n.a.createElement("div",{className:"brz-ed-sidebar__right__empty-text"},e))}renderItems(e){return n.a.createElement("div",{className:"brz-ed-sidebar__main brz-ed-sidebar__right__options"},n.a.createElement(O,null,n.a.createElement(s.a,{className:"brz-ed-sidebar__right__tabs",optionClassName:"brz-ed-sidebar__right__option",data:e,location:"rightSidebar"})))}render(){const{isOpen:e,alignment:t}=this.props,o=c()("brz-ed-sidebar","brz-ed-sidebar__right",{"brz-ed-sidebar__right--align-right":"right"===t,"brz-ed-sidebar__right--align-left":"left"===t}),i=void 0!==this.getItems?this.getItems():void 0,r=i&&i.length>0?this.renderItems(i):this.renderEmpty(0===(null==i?void 0:i.length)?Object(w.a)("The element you have selected doesn't have more settings"):Object(w.a)("Select an element on the page to display more settings"));return n.a.createElement("div",{className:o},n.a.createElement(h,{className:"brz-ed-sidebar__content",alignment:t,play:e},r))}}Object(i.a)(P,"defaultProps",{isOpen:!1,lock:void 0,alignment:"right",deviceMode:"desktop",dispatch:e=>e,activeTab:void 0});const E=Object(a.b)(e=>{const{isOpen:t,lock:o,alignment:i,activeTab:r}=Object(x.R)(e).rightSidebar;return{isOpen:t,lock:o,alignment:i,activeTab:r,deviceMode:Object(x.k)(e)}})(P)},,,,,,,,,,,,,,function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));var i=o(75),r=o(59);const n=["_thumbnailSrc","_thumbnailWidth","_thumbnailHeight","_thumbnailTime"],a=(e,t,o,r)=>{if("type"===e&&null!=i.a.getComponent(t)){if("GlobalBlock"===o.value.type)return}else r.includes("_id")&&delete o.value._id;r.includes(o[e])&&delete o[e]};function l(e,{exclude:t=[]}={}){const o=n.filter(e=>!t.includes(e)),i=JSON.parse(JSON.stringify(e));return Object(r.e)(i,a,o),i}},,,function(e,t,o){"use strict";var i=o(37),r=o(12),n=o(1),a=o.n(n),l=o(5),c=o.n(l),s=o(182),d=o(97),p=o(91),u=o(118);class b extends a.a.Component{renderLegacy(e){const{data:t={className:""},className:o,location:i="",toolbar:n=null}=this.props;return a.a.createElement(e,Object(r.a)({},t,{className:c()("brz-ed-option",t.className,o),location:i,toolbar:n}))}renderNew(e){const t=this.props,{data:{label:o,icon:n,display:l,helper:s,className:d,type:b},className:m=""}=t,h=Object(i.a)(t.data,["label","icon","display","helper","className","type"]),g=c()("brz-ed-option","brz-ed-option-type__"+b,m,d),v=a.a.createElement(u.a,{label:o,icon:n,helper:null==s?void 0:s.content,helperPlacement:null==s?void 0:s.position});return a.a.createElement(p.a,{className:g,display:l},a.a.createElement(e,Object(r.a)({toolbar:this.props.toolbar},h,{label:v})))}render(){const e=this.props.data.type,t=s.d[e];return t?Object(d.e)(this.props.data.type)?this.renderNew(t):this.renderLegacy(t):null}}t.a=b},function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return m}));o(352);var i=o(2),r=o(5),n=o.n(r),a=o(174),l=o(1),c=o.n(l),s=o(16),d=o(21),p=o(0),u=o(55),b=o(757);class m extends b.a{constructor(...t){super(...t),Object(i.a)(this,"wpMediaFrame",null),Object(i.a)(this,"handleWpImageChange",()=>{var t;const{onlyPointer:o}=this.props;if(o)return;const i=e.wp||e.parent.wp;if(!i)throw new Error("Could not find WordPress on global object (window.wp)");if(!i.media)throw new Error("Could not find WordPress media object (window.wp.media). Make sure the WordPress media script is enqueued.");const r=document.querySelector("html");if(!this.wpMediaFrame){const e=i.media({library:{type:"image"},states:new i.media.controller.Library({library:i.media.query({type:"image"}),multiple:!1,title:"Upload media",filterable:"uploaded",priority:20})});e.on("select",()=>{const t=e.state().get("selection").first();Object(d.s)(t.get("id")).then(e=>{const{x:o,y:i}=this.props,{url:r,filename:n}=t.toJSON();Object(u.g)(r).then(({width:t,height:l})=>{const c=Object(u.a)(r);if(!c)return void a.a.error(Object(p.a)("Failed to upload file. Please upload a valid JPG, PNG, SVG or GIF image."));const s={x:o,y:i,src:e.uid,width:t,height:l,fileName:n,extension:c};this.mounted&&this.setState(s),this.props.onChange(s,{isChanged:"image"})})}).catch(e=>{console.error("failed to get attachment uid",e)})}),e.on("close",()=>{null==r||r.classList.remove("brz-ow-hidden")}),this.wpMediaFrame=e}r&&r.classList.add("brz-ow-hidden"),null===(t=this.wpMediaFrame)||void 0===t||t.open()}),Object(i.a)(this,"onUpload",()=>this.props.onUpload?this.props.onUpload():this.handleWpImageChange())}componentWillUnmount(){super.componentWillUnmount(),this.wpMediaFrame&&(this.wpMediaFrame.detach(),this.wpMediaFrame=null)}renderUpload(){const{onlyPointer:e}=this.props,{loading:t}=this.state,o=n()("brz-label brz-ed-control__focal-point__label",{"brz-ed-control__focal-point__label--disable":e});return c.a.createElement("label",{className:o},t?c.a.createElement("div",{className:"brz-ed-control__focal-point__upload brz-ed-control__focal-point__upload--loading"},c.a.createElement(s.b,{icon:"nc-bars"})):c.a.createElement("div",{className:"brz-ed-control__focal-point__upload",onClick:this.onUpload},c.a.createElement(s.b,{icon:"nc-upload"})))}}}).call(this,o(113))},function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var i=o(182);function r(e,t){if(!e(t))return;const o=(e=>{var t;return null===(t=i.a[e])||void 0===t?void 0:t.filter})(t.type);return o?o(t=>r(e,t),t):t}function n(...e){return 1===e.length?t=>r(e[0],t):r(e[0],e[1])}},,function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var i=o(14);const r=["grouped","ungrouped"],n=Object(i.c)(e=>r.includes(e))},,function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));var i=o(1),r=o.n(i),n=o(13),a=o(50);const l=r.a.createContext({dynamicContent:{itemId:null!==(c=a.b(n.a.get("wp").page))&&void 0!==c?c:"",config:n.a.get("dynamicContent")}});var c},,function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return s}));var i=o(2),r=o(1),n=o.n(r),a=o(49),l=o.n(a);const c=e=>({x:e.clientX,y:e.clientY});class s extends n.a.Component{constructor(...t){super(...t),Object(i.a)(this,"elRef",Object(r.createRef)()),Object(i.a)(this,"isMouseDown",!1),Object(i.a)(this,"startPosition",void 0),Object(i.a)(this,"currentPosition",void 0),Object(i.a)(this,"lastDelta",void 0),Object(i.a)(this,"handleMouseDown",e=>{var t;const o=null!==(t=this.props.exceptions)&&void 0!==t?t:[];o.length&&e.target&&l()(e.target).closest(o.join(", ")).length||(e.stopPropagation(),0===e.button&&this.initMouseEvents())}),Object(i.a)(this,"startDrag",t=>{const{draggingCursor:o,onDragStart:i}=this.props;e.BRZ_IS_DRAGGING=!0,this.isMouseDown=!0,this.currentPosition=this.startPosition=t,null==i||i(),this.initMouseEvents(),requestAnimationFrame(this.update);const r=document.querySelectorAll(".brz-ed-draggable-overlay");r.length&&r.forEach(e=>{e.style.willChange="pointer-events",e.style.pointerEvents="all",o&&(e.style.cursor=o)}),window.parent.document.body.classList.add("brz-pointer-events-none")}),Object(i.a)(this,"handleMouseMove",e=>{this.isMouseDown?this.currentPosition=c(e):this.startDrag(c(e))}),Object(i.a)(this,"handleMouseUp",()=>{var e,t;(this.clearDragData(),this.isMouseDown)||(null===(e=(t=this.props).onDragEnd)||void 0===e||e.call(t))}),Object(i.a)(this,"clearDragData",()=>{if(this.cleanMouseEvents(),!this.isMouseDown)return;const{draggingCursor:t}=this.props,o=document.querySelectorAll(".brz-ed-draggable-overlay");o.length&&o.forEach(e=>{e.style.willChange="",e.style.pointerEvents="none",t&&(e.style.cursor="auto")}),e.BRZ_IS_DRAGGING=!1,this.isMouseDown=!1,this.startPosition=void 0,this.lastDelta=void 0,window.parent.document.body.classList.remove("brz-pointer-events-none")}),Object(i.a)(this,"update",()=>{if(this.isMouseDown&&this.startPosition&&this.currentPosition){requestAnimationFrame(this.update);const o=this.currentPosition.x-this.startPosition.x,i=this.currentPosition.y-this.startPosition.y,{x:r,y:n}=this.lastDelta||{x:0,y:0};var e,t;if(o!==r||i!==n)this.lastDelta={x:o,y:i},null===(e=(t=this.props).onDrag)||void 0===e||e.call(t,{deltaX:o,deltaY:i})}}),Object(i.a)(this,"initMouseEvents",()=>{window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mouseup",this.handleMouseUp)}),Object(i.a)(this,"cleanMouseEvents",()=>{window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp)})}componentDidMount(){this.props.active&&this.init()}componentDidUpdate(e){this.props.active!==e.active&&(this.props.active?this.init():this.destroy())}componentWillUnmount(){this.clearDragData()}init(){var e;null===(e=this.elRef.current)||void 0===e||e.addEventListener("mousedown",this.handleMouseDown)}destroy(){var e;null===(e=this.elRef.current)||void 0===e||e.removeEventListener("mousedown",this.handleMouseDown),this.cleanMouseEvents()}render(){const{children:e,active:t}=this.props;return e(this.elRef,t?"brz-ed-dd-cancel":void 0)}}Object(i.a)(s,"defaultProps",{active:!0}),t.b=s}).call(this,o(113))},function(e,t,o){"use strict";var i=o(36),r=o(18),n=o(247),a=o(0),l={id:"Archive",title:Object(a.a)("Archive"),icon:"nc-archives",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--posts","wrapper-posts-archive"],items:[{type:"Posts",value:{_styles:["posts","posts-archive"],_version:2,type:"archives",orderBy:"id",order:"DESC",items:[{type:"Column",value:{_styles:["posts--column"],items:[{type:"Wrapper",value:{_styles:["wrapper--image"],items:[{type:"Image",value:{_styles:["image","image--dynamic"],imagePopulation:"{{brizy_dc_img_featured_image}}"}}]}},{type:"Wrapper",value:{_styles:["wrapper","wrapper-postTitle","wrapper-postTitle-posts","wrapper-postTitle-posts-archive"],items:[{type:"WPPostsTitle",value:{_styles:["postTitle","postTitle-posts","postTitle-posts-archive"]}}]}},...i.b?[]:[{type:"Wrapper",value:{_styles:["wrapper","wrapper-postExcerpt","wrapper-postExcerpt-posts","wrapper-postExcerpt-posts-archive"],items:[{type:"WPPostExcerpt",value:{_styles:["postExcerpt","postExcerpt-posts","postExcerpt-posts-archive"]}}]}}],{type:"Cloneable",value:{_styles:["wrapper-clone","wrapper-clone--button"],items:[{type:"Button",value:{_styles:["button--dynamic"]}}]}}]}}]}}]}}},c={id:"accordion",title:Object(a.a)("Accordion"),icon:"nc-toggle",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--accordion"],items:[{type:"Accordion",value:{_styles:["accordion"],items:[{type:"AccordionItem",value:{labelText:"Accordion 1",items:[{type:"Cloneable",value:{_styles:["wrapper-clone","accordion--wrapper-clone--icon"],items:[{type:"Icon",value:{_styles:["icon","accordion--icon"]}}]}}]}},{type:"AccordionItem",value:{labelText:"Accordion 2",items:[{type:"Cloneable",value:{_styles:["wrapper-clone","accordion--wrapper-clone--button"],items:[{type:"Button",value:{_styles:["button","accordion--button"]}}]}}]}}]}}]}}},s={id:"audio",title:Object(a.a)("Audio"),icon:"nc-audio",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--audio"],items:[{type:"Audio",value:{_styles:["audio"]}}]}}},d={id:"button",title:Object(a.a)("Button"),icon:"nc-button",resolve:{type:"Cloneable",value:{_styles:["wrapper-clone","wrapper-clone--button"],items:[{type:"Button",value:{_styles:["button"]}}]}}},p={id:"columns",title:Object(a.a)("Column"),icon:"nc-column",resolve:{type:"Row",value:{_styles:["row","hide-row-borders","padding-0"],items:[{type:"Column",value:{_styles:["column"],items:[]}},{type:"Column",value:{_styles:["column"],items:[]}}]}}},u={id:"countdown2",title:Object(a.a)("Countdown"),icon:"nc-countdown",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--countdown2"],items:[{type:"Countdown2",value:{_styles:["countdown2"]}}]}}},b={id:"counter",title:Object(a.a)("Counter"),icon:"nc-counter-outline",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--counter"],items:[{type:"Counter",value:{_styles:["counter"]}}]}}},m={id:"embedCode",title:Object(a.a)("Embed"),icon:"nc-iframe",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--embedCode"],items:[{type:"EmbedCode",value:{_styles:["embedCode"]}}]}}},h={id:"form",title:Object(a.a)("Form"),icon:"nc-form-left",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--form2"],items:[{type:"Form2",value:{_styles:["form2"],items:[{type:"Form2Fields",value:{items:[{type:"Form2Field",value:{type:"Email",label:"Email",required:"on",options:["Option 1","Option 2"]}},{type:"Form2Field",value:{type:"Select",label:"Select",required:"off",options:["Option 1","Option 2"]}},{type:"Form2Field",value:{type:"Paragraph",label:"Paragraph",required:"off",options:["Option 1","Option 2"]}}]}},{type:"Button",value:{_styles:["button","submit"]}}]}}]}}},g={id:"icon",title:Object(a.a)("Icon"),icon:"nc-star",resolve:{type:"Cloneable",value:{_styles:["wrapper-clone","wrapper-clone--icon"],items:[{type:"Icon",value:{_styles:["icon"]}}]}}},v={id:"iconText",title:Object(a.a)("Icon Box"),icon:"nc-paragraph",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--iconText"],items:[{type:"IconText",value:{_styles:["iconText"],items:[{type:"Icon",value:{_styles:["icon","iconText--icon"]}},{type:"RichText",value:{_styles:["text","iconText--text"]}},{type:"Cloneable",value:{_styles:["wrapper-clone","iconText--wrapper-clone--button"],items:[{type:"Button",value:{_styles:["button","iconText--button"]}}]}}]}}]}}},y={id:"image",title:Object(a.a)("Image"),icon:"nc-img",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--image"],items:[{type:"Image",value:{_styles:["image"]}}]}}},f={id:"line",title:Object(a.a)("Line"),icon:"nc-divider",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--line"],items:[{type:"Line",value:{_styles:["line"]}}]}}},S={id:"map",title:Object(a.a)("Map"),icon:"nc-pin",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--map"],items:[{type:"Map",value:{_styles:["map"]}}]}}},O={id:"MenuSimple",title:Object(a.a)("Menu"),icon:"nc-menu-3",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--WPNavigation"],items:[{type:"WPNavigation"}]}}},x={id:"carousel",title:Object(a.a)("Carousel"),icon:"nc-carousel",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--carousel"],items:[{type:"Carousel",value:{_styles:["carousel"],items:[{type:"Column",value:{_styles:["column","column--carousel"],items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--image"],items:[{type:"Image",value:{_styles:["image"]}}]}},{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{_styles:["richText","richText--carousel"]}}]}},{type:"Cloneable",value:{_styles:["wrapper-clone","wrapper-clone--button"],items:[{type:"Button",value:{_styles:["button"]}}]}}]}},{type:"Column",value:{_styles:["column","column--carousel"],items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--image"],items:[{type:"Image",value:{_styles:["image"]}}]}},{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{_styles:["richText","richText--carousel"]}}]}},{type:"Cloneable",value:{_styles:["wrapper-clone","wrapper-clone--button"],items:[{type:"Button",value:{_styles:["button"]}}]}}]}},{type:"Column",value:{_styles:["column","column--carousel"],items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--image"],items:[{type:"Image",value:{_styles:["image"]}}]}},{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{_styles:["richText","richText--carousel"]}}]}},{type:"Cloneable",value:{_styles:["wrapper-clone","wrapper-clone--button"],items:[{type:"Button",value:{_styles:["button"]}}]}}]}},{type:"Column",value:{_styles:["column","column--carousel"],items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--image"],items:[{type:"Image",value:{_styles:["image"]}}]}},{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{_styles:["richText","richText--carousel"]}}]}},{type:"Cloneable",value:{_styles:["wrapper-clone","wrapper-clone--button"],items:[{type:"Button",value:{_styles:["button"]}}]}}]}}]}}]}}},C={id:"facebook",title:Object(a.a)("Facebook"),icon:"nc-facebook",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--facebook"],items:[{type:"Facebook",value:{_styles:["facebook"]}}]}}},w={id:"facebookComments",title:Object(a.a)("Comments"),icon:"nc-comments",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--facebookComments"],items:[{type:"FacebookComments",value:{_styles:["facebookComments"]}}]}}},B={id:"imageGallery",title:Object(a.a)("Gallery"),icon:"nc-gallery",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--imageGallery"],items:[{type:"ImageGallery",value:{_styles:["imageGallery"],items:[{type:"Image",value:{_styles:["image"]}},{type:"Image",value:{_styles:["image"]}}]}}]}}},j={id:"Login",title:Object(a.a)("Login"),icon:"nc-login",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--login"],items:[{type:"Login",value:{_styles:["login"],items:[{type:"LoginField",value:{type:"Email",label:"Email"}},{type:"LoginField",value:{type:"Password",label:"Password"}},{type:"LoginField",value:{type:"Remember",label:"Remember me"}},{type:"RegisterField",value:{type:"Name",label:"Name"}},{type:"RegisterField",value:{type:"RegisterEmail",label:"Email"}},{type:"RegisterField",value:{type:"RegisterInfo",label:"Registration confirmation will be emailed to you."}},{type:"ForgotPasswordField",value:{type:"ResetEmail",label:"Email"}},{type:"Button",value:{_styles:["button","submit","login--button"]}},{type:"Button",value:{text:"Login",_styles:["button","submit","login--button"]}},{type:"Button",value:{text:"Register",_styles:["button","submit","login--button"]}},{type:"Button",value:{text:"Get New Password",_styles:["button","submit","login--button"]}},{type:"RegisterField",value:{type:"FirstName",label:"First Name"}},{type:"RegisterField",value:{type:"LastName",label:"Last Name"}},{type:"RegisterField",value:{type:"RegisterEmail",label:"Email"}},{type:"RegisterField",value:{type:"Username",label:"Username"}},{type:"RegisterField",value:{type:"Phone",label:"Phone Number"}},{type:"RegisterField",value:{type:"Password",label:"Password"}},{type:"RegisterField",value:{type:"PasswordConfirm",label:"Confirm Password"}}]}}]}}},T={id:"lottie",title:Object(a.a)("Lottie"),icon:"nc-lottie",resolve:{type:"Wrapper",value:{_styles:["wrapper"],items:[{type:"Lottie",value:{_styles:["lottie"]}}]}}},P={id:"menu",title:Object(a.a)("Menu"),icon:"nc-menu-3",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--menu"],items:[{type:"Menu",value:{_styles:["menu"]}}]}}},E={id:"starRating",title:Object(a.a)("Rating"),icon:"nc-starrating",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--starRating"],items:[{type:"StarRating",value:{_styles:["starRating"]}}]}}},_={id:"lottie",title:Object(a.a)("Lottie"),icon:"nc-lottie",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-lottie"],items:[{type:"Lottie",value:{_styles:["story-lottie"]}}]}}},k={id:"storyStarRating",title:Object(a.a)("Rating"),icon:"nc-starrating",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--starRating","wrapper--story-starRating"],items:[{type:"StarRating",value:{_styles:["story-starRating"]}}]}}},z={id:"switcher",title:Object(a.a)("Switcher"),icon:"nc-switcher",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--switcher"],items:[{type:"Switcher",value:{_styles:["switcher"],items:[{type:"SwitcherTab",value:{labelText:"Tab 1",items:[{type:"Cloneable",value:{_styles:["wrapper-clone","tabs--wrapper-clone--icon"],items:[{type:"Icon",value:{_styles:["icon","tabs--icon"]}}]}}]}},{type:"SwitcherTab",value:{labelText:"Tab 2",items:[{type:"Cloneable",value:{_styles:["wrapper-clone","tabs--wrapper-clone--button"],items:[{type:"Button",value:{_styles:["button","tabs--button"]}}]}}]}}]}}]}}},F={id:"table",title:Object(a.a)("Table"),icon:"nc-table-element",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--table"],items:[{type:"Table",value:{_styles:["table"],items:[{type:"TableHead",value:{items:[{type:"TableRow",value:{items:[{type:"TableAside",value:{labelText:"Models",items:[]}},{type:"TableAside",value:{labelText:"iPhone X",items:[]}},{type:"TableAside",value:{labelText:"iPhone 8",items:[]}}]}}]}},{type:"TableBody",value:{items:[{type:"TableRow",value:{items:[{type:"TableAside",value:{labelText:"Camera",name:"camera-18",type:"outline",items:[]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"12MP Dual Camera",_styles:["richText"]}}]}}]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"12MP Dual Camera",_styles:["richText"]}}]}}]}}]}},{type:"TableRow",value:{items:[{type:"TableAside",value:{labelText:"Display",name:"phone",type:"outline",items:[]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"5.8-inch ( diagonal ) all-screen OLED",_styles:["richText"]}}]}}]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"4.7-inch ( diagonal ) widescreen LCD",_styles:["richText"]}}]}}]}}]}},{type:"TableRow",value:{items:[{type:"TableAside",value:{labelText:"Front Camera",name:"focus",type:"outline",items:[]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"TrueDepth camera",_styles:["richText"]}}]}}]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"FaceTime HD camera",_styles:["richText"]}}]}}]}}]}},{type:"TableRow",value:{items:[{type:"TableAside",value:{labelText:"Internal storage",name:"disk-2",type:"outline",items:[]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"64GB",_styles:["richText"]}}]}}]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"64GB",_styles:["richText"]}}]}}]}}]}},{type:"TableRow",value:{items:[{type:"TableAside",value:{labelText:"Power and Battery",name:"battery-83",type:"outline",items:[]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"Built-in rechargeable lithium‑ion battery",_styles:["richText"]}}]}}]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"Built-in rechargeable lithium‑ion battery",_styles:["richText"]}}]}}]}}]}},{type:"TableRow",value:{items:[{type:"TableAside",value:{labelText:"Processor",name:"ram",type:"outline",items:[]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"hexa-core",_styles:["richText"]}}]}}]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"hexa-core",_styles:["richText"]}}]}}]}}]}},{type:"TableRow",value:{items:[{type:"TableAside",value:{labelText:"RAM",name:"archive",type:"outline",items:[]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"3GB",_styles:["richText"]}}]}}]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"2GB",_styles:["richText"]}}]}}]}}]}},{type:"TableRow",value:{items:[{type:"TableAside",value:{labelText:"Screen Resolution",name:"fullscreen-double-74",type:"outline",items:[]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"5.65 inches",_styles:["richText"]}}]}}]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"5.45 inches",_styles:["richText"]}}]}}]}}]}},{type:"TableRow",value:{items:[{type:"TableAside",value:{labelText:"Wireless Technologies",name:"bluetooth",type:"outline",items:[]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"Bluetooth, WiFi Hotspot",_styles:["richText"]}}]}}]}},{type:"TableCol",value:{items:[{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{text:"WiFi Hotspot",_styles:["richText"]}}]}}]}}]}}]}}]}}]}}},R={id:"Timeline",title:Object(a.a)("Timeline"),icon:"nc-timeline",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--timeline"],items:[{type:"Timeline",value:{_styles:["timeline"],items:[{type:"TimelineTab",value:{labelText:"Tab 1",type:"glyph",name:"favourite-31",items:[{type:"Cloneable",value:{_styles:["wrapper-clone","timeline--wrapper-clone--icon"],items:[{type:"Icon",value:{_styles:["icon","timeline--icon"]}}]}}]}},{type:"TimelineTab",value:{labelText:"Tab 2",type:"glyph",name:"favourite-31",items:[{type:"Cloneable",value:{_styles:["wrapper-clone","timeline--wrapper-clone--button"],items:[{type:"Button",value:{_styles:["button","timeline--button"]}}]}}]}}]}}]}}},H={id:"Twitter",title:Object(a.a)("Twitter"),icon:"nc-twitter",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--twitter"],items:[{type:"Twitter",value:{_styles:["twitter"]}}]}}},L={id:"videoPlaylist",title:Object(a.a)("Playlist"),icon:"nc-playlist",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--video-playlist"],items:[{type:"VideoPlaylist",value:{_styles:["videoPlaylist"],items:[{type:"VideoPlaylistItem",value:{_styles:["videoPlaylistItem"]}},{type:"VideoPlaylistItem",value:{_styles:["videoPlaylistItem"]}}]}}]}}},M={id:"progressBar",title:Object(a.a)("Progress"),icon:"nc-progress-bar",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--progressBar"],items:[{type:"ProgressBar",value:{_styles:["progressBar"]}}]}}},I={id:"row",title:Object(a.a)("Row"),icon:"nc-row",resolve:{type:"Row",value:{_styles:["row"],items:[{type:"Column",value:{_styles:["column"],items:[]}},{type:"Column",value:{_styles:["column"],items:[]}}]}}},W={id:"spacer",title:Object(a.a)("Spacer"),icon:"nc-zoom-e",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--spacer"],items:[{type:"Spacer",value:{_styles:["spacer"]}}]}}},N={id:"button",title:Object(a.a)("Button"),icon:"nc-button",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-button"],items:[{type:"Button",value:{_styles:["story-button"]}}]}}},A={id:"storyCountdown2",title:Object(a.a)("Countdown"),icon:"nc-countdown",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story-countdown2"],items:[{type:"Countdown2",value:{_styles:["story-countdown2"]}}]}}},V={id:"storyCounter",title:Object(a.a)("Counter"),icon:"nc-counter-outline",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story ","wrapper--story-counter"],items:[{type:"Counter",value:{_styles:["story-counter"]}}]}}},D={id:"storyEmbedCode",title:Object(a.a)("Embed"),icon:"nc-iframe",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-embedCode"],items:[{type:"EmbedCode",value:{_styles:["story-embedCode"]}}]}}},$={id:"form",title:Object(a.a)("Form"),icon:"nc-form-left",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-form2"],items:[{type:"Form2",value:{_styles:["story-form2"],items:[{type:"Form2Fields",value:{items:[{type:"Form2Field",value:{type:"Email",label:"Email",required:"on",options:["Option 1","Option 2"]}},{type:"Form2Field",value:{type:"Select",label:"Select",required:"off",options:["Option 1","Option 2"]}},{type:"Form2Field",value:{type:"Paragraph",label:"Paragraph",required:"off",options:["Option 1","Option 2"]}}]}},{type:"Button",value:{_styles:["story-button","story-form-button","submit"]}}]}}]}}},G={id:"icon",title:Object(a.a)("Icon"),icon:"nc-star",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-icon"],items:[{type:"Icon",value:{_styles:["story-icon"]}}]}}},U={id:"image",title:Object(a.a)("Image"),icon:"nc-img",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-image"],items:[{type:"Image",value:{_styles:["story-image"]}}]}}},K={id:"storyLine",title:Object(a.a)("Line"),icon:"nc-divider",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-line"],items:[{type:"Line",value:{_styles:["story-line"]}}]}}},q={id:"storyMap",title:Object(a.a)("Map"),icon:"nc-pin",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-map"],items:[{type:"Map",value:{_styles:["story-map"]}}]}}},Y={id:"storyProgressBar",title:Object(a.a)("Progress"),icon:"nc-progress-bar",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-progressBar"],items:[{type:"ProgressBar",value:{_styles:["story-progressBar"]}}]}}},X={id:"storyShape",title:Object(a.a)("Shape"),icon:"nc-shape",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-shape"],items:[{type:"Shape",value:{_styles:["story-shape"]}}]}}},J={id:"storyText",title:Object(a.a)("Text"),icon:"nc-font",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-richText"],items:[{type:"RichText",value:{_styles:["story-richText"]}}]}}},Z={id:"storyVideo",title:Object(a.a)("Video"),icon:"nc-play",resolve:{type:"StoryWrapper",value:{_styles:["wrapper--story","wrapper--story-video"],items:[{type:"Video",value:{_styles:["story-video"]}}]}}},Q={id:"tabs",title:Object(a.a)("Tabs"),icon:"nc-tabs",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--tabs"],items:[{type:"Tabs",value:{_styles:["tabs"],items:[{type:"Tab",value:{labelText:"Tab 1",items:[{type:"Cloneable",value:{_styles:["wrapper-clone","tabs--wrapper-clone--icon"],items:[{type:"Icon",value:{_styles:["icon","tabs--icon"]}}]}}]}},{type:"Tab",value:{labelText:"Tab 2",items:[{type:"Cloneable",value:{_styles:["wrapper-clone","tabs--wrapper-clone--button"],items:[{type:"Button",value:{_styles:["button","tabs--button"]}}]}}]}}]}}]}}};const ee=[{component:{id:"text",title:Object(a.a)("Text"),icon:"nc-font",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--richText"],items:[{type:"RichText",value:{_styles:["richText"]}}]}}},pro:!1},{component:d,pro:!1},{component:g,pro:!1},{component:y,pro:!1},{component:s,pro:!1},{component:{id:"video",title:Object(a.a)("Video"),icon:"nc-play",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper--video"],items:[{type:"Video",value:{_styles:["video"]}}]}}},pro:!1},{component:W,pro:!1},{component:f,pro:!1},{component:S,pro:!1},{component:m,pro:!1},{component:h,pro:!1},{component:v,pro:!1},{component:b,pro:!1},{component:u,pro:!1},{component:Q,pro:!1},{component:M,pro:!1},{component:c,pro:!1},...i.g?[{component:P,pro:!0}]:[{component:O,pro:!1},{component:P,pro:!0}],{component:B,pro:!0},{component:x,pro:!0},{component:E,pro:!0},{component:L,pro:!0},{component:F,pro:!0},{component:R,pro:!0},{component:z,pro:!0},{component:T,pro:!0},{component:j,pro:!0}],te=[{component:N,pro:!1},{component:U,pro:!1},{component:G,pro:!1},{component:D,pro:!1},{component:J,pro:!1},{component:q,pro:!1},{component:Z,pro:!1},{component:Y,pro:!1},{component:K,pro:!1},{component:A,pro:!1},{component:V,pro:!1},{component:X,pro:!1},{component:$,pro:!1},{component:k,pro:!0},{component:_,pro:!0}],oe=[{component:C,pro:!0},{component:H,pro:!0},{component:w,pro:!0}],ie=[{component:I,pro:!1},{component:p,pro:!1}];var re={id:"PostExcerpt",title:Object(a.a)("Excerpt"),icon:"nc-wp-post-excerpt",resolve:{type:"Wrapper",value:{_styles:["wrapper","wrapper-postExcerpt"],items:[{type:"WPPostExcerpt",value:{_styles:["postExcerpt"]}}]}}},ne=o(13),ae={id:"Posts",title:Object(a.a)("Posts"),icon:"nc-wp-post