Blocksy Companion - Version 1.8.9.5

Version Description

Download this release

Release Info

Developer creativethemeshq
Plugin Icon wp plugin Blocksy Companion
Version 1.8.9.5
Comparing to
See all releases

Code changes from version 1.8.9.4 to 1.8.9.5

Files changed (89) hide show
  1. blocksy-companion.php +5 -5
  2. framework/extensions-manager.php +18 -18
  3. framework/extensions/cookies-consent/config.php +2 -2
  4. framework/extensions/cookies-consent/customizer.php +29 -29
  5. framework/extensions/cookies-consent/helpers.php +3 -3
  6. framework/extensions/cookies-consent/readme.php +6 -6
  7. framework/extensions/cookies-consent/static/bundle/main.min.css +1 -1
  8. framework/extensions/newsletter-subscribe/admin-static/bundle/{2.61bd55d629d700145be1.js → 2.b8cdca0a643ec9bd1ed2.js} +1 -1
  9. framework/extensions/newsletter-subscribe/admin-static/bundle/main.js +1 -1
  10. framework/extensions/newsletter-subscribe/admin-static/js/ListPicker.js +1 -1
  11. framework/extensions/newsletter-subscribe/admin-static/js/ListPicker/Implementation.js +3 -3
  12. framework/extensions/newsletter-subscribe/config.php +2 -2
  13. framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php +22 -22
  14. framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php +7 -7
  15. framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/widget.php +2 -2
  16. framework/extensions/newsletter-subscribe/customizer.php +43 -43
  17. framework/extensions/newsletter-subscribe/dashboard-static/bundle/main.js +2 -2
  18. framework/extensions/newsletter-subscribe/dashboard-static/js/EditCredentials.js +12 -12
  19. framework/extensions/newsletter-subscribe/dashboard-static/js/ListPicker.js +3 -3
  20. framework/extensions/newsletter-subscribe/dashboard-static/js/NewsletterSubscribe.js +2 -2
  21. framework/extensions/newsletter-subscribe/dashboard-static/js/hooks/useActivationWithRequirements.js +1 -1
  22. framework/extensions/newsletter-subscribe/extension.php +4 -4
  23. framework/extensions/newsletter-subscribe/global.php +1 -1
  24. framework/extensions/newsletter-subscribe/helpers.php +12 -12
  25. framework/extensions/newsletter-subscribe/includes/BlocksyMailerliteManager.php +1 -1
  26. framework/extensions/newsletter-subscribe/readme.php +9 -9
  27. framework/extensions/newsletter-subscribe/static/bundle/main.min.css +1 -1
  28. framework/extensions/product-reviews/config.php +2 -2
  29. framework/extensions/product-reviews/extension.php +44 -44
  30. framework/extensions/product-reviews/helpers.php +1 -1
  31. framework/extensions/product-reviews/metabox.php +46 -40
  32. framework/extensions/product-reviews/static/bundle/dashboard.js +1 -1
  33. framework/extensions/product-reviews/static/bundle/main-admin.min.css +1 -1
  34. framework/extensions/product-reviews/static/bundle/main.min.css +2 -2
  35. framework/extensions/product-reviews/static/js/EditSettings.js +6 -6
  36. framework/extensions/product-reviews/static/js/ProductReviews.js +2 -2
  37. framework/extensions/product-reviews/static/sass/title.scss +0 -5
  38. framework/extensions/product-reviews/views/single-top.php +27 -12
  39. framework/extensions/trending/config.php +2 -2
  40. framework/extensions/trending/customizer.php +42 -42
  41. framework/extensions/trending/helpers.php +1 -1
  42. framework/extensions/trending/static/bundle/main.min.css +1 -1
  43. framework/extensions/widgets/config.php +1 -1
  44. framework/extensions/widgets/static/bundle/main.min.css +1 -1
  45. framework/extensions/widgets/widgets/ct-about-me/widget.php +2 -2
  46. framework/extensions/widgets/widgets/ct-advertisement/options.php +12 -12
  47. framework/extensions/widgets/widgets/ct-advertisement/view.php +1 -1
  48. framework/extensions/widgets/widgets/ct-advertisement/widget.php +2 -2
  49. framework/extensions/widgets/widgets/ct-contact-info/options.php +55 -55
  50. framework/extensions/widgets/widgets/ct-contact-info/view.php +4 -4
  51. framework/extensions/widgets/widgets/ct-contact-info/widget.php +2 -2
  52. framework/extensions/widgets/widgets/ct-facebook/options.php +7 -7
  53. framework/extensions/widgets/widgets/ct-facebook/view.php +1 -1
  54. framework/extensions/widgets/widgets/ct-facebook/widget.php +2 -2
  55. framework/extensions/widgets/widgets/ct-posts/options.php +45 -45
  56. framework/extensions/widgets/widgets/ct-posts/view.php +2 -2
  57. framework/extensions/widgets/widgets/ct-posts/widget.php +2 -2
  58. framework/extensions/widgets/widgets/ct-quote/options.php +11 -11
  59. framework/extensions/widgets/widgets/ct-quote/view.php +3 -3
  60. framework/extensions/widgets/widgets/ct-quote/widget.php +2 -2
  61. framework/extensions/widgets/widgets/ct-socials/options.php +17 -17
  62. framework/extensions/widgets/widgets/ct-socials/view.php +1 -1
  63. framework/features/conditions-manager.php +47 -47
  64. framework/features/demo-install.php +1 -1
  65. framework/features/dynamic-css.php +4 -4
  66. framework/features/google-analytics.php +6 -6
  67. framework/features/header/account-modal.php +3 -3
  68. framework/features/header/header-options.php +22 -22
  69. framework/features/header/items/account/options.php +119 -119
  70. framework/features/header/items/account/view.php +6 -6
  71. framework/features/header/items/account/views/login.php +1 -1
  72. framework/features/header/items/account/views/logout.php +1 -1
  73. framework/features/header/modal/login.php +5 -5
  74. framework/features/header/modal/lostpassword.php +2 -2
  75. framework/features/header/modal/register.php +4 -4
  76. framework/features/opengraph-meta-data.php +5 -5
  77. framework/helpers/helpers.php +16 -0
  78. framework/theme-integration.php +19 -19
  79. framework/widgets-manager.php +3 -3
  80. languages/blc-hu_HU.mo +0 -0
  81. languages/blc-hu_HU.po +0 -2313
  82. languages/blocksy-companion-ar.mo +0 -0
  83. languages/blocksy-companion-ar.po +5474 -0
  84. languages/blocksy-companion-es_ES.mo +0 -0
  85. languages/blocksy-companion-es_ES.po +5474 -0
  86. languages/blocksy-companion-es_MX.mo +0 -0
  87. languages/blocksy-companion-es_MX.po +5474 -0
  88. languages/blocksy-companion-fr_FR.mo +0 -0
  89. languages/blocksy-companion-fr_FR.po +779 -0
blocksy-companion.php CHANGED
@@ -3,10 +3,10 @@
3
  /*
4
  Plugin Name: Blocksy Companion
5
  Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
6
- Version: 1.8.9.4
7
  Author: CreativeThemes
8
  Author URI: https://creativethemes.com
9
- Text Domain: blc
10
  Domain Path: /languages/
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -91,7 +91,7 @@ if ( function_exists( 'blc_fs' ) ) {
91
  *
92
  * Load gettext translate for Blocksy text domain.
93
  */
94
- load_plugin_textdomain( 'blc', false, dirname( BLOCKSY_PLUGIN_BASE ) . '/languages' );
95
  } );
96
 
97
  if ( !version_compare( PHP_VERSION, '7.0', '>=' ) ) {
@@ -110,7 +110,7 @@ if ( function_exists( 'blc_fs' ) ) {
110
  function blc_fail_php_version()
111
  {
112
  /* translators: %s: PHP version */
113
- $message = sprintf( esc_html__( 'Blocksy requires PHP version %s+, plugin is currently NOT RUNNING.', 'blc' ), '7.0' );
114
  $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
115
  echo wp_kses_post( $html_message ) ;
116
  }
@@ -123,7 +123,7 @@ if ( function_exists( 'blc_fs' ) ) {
123
  function blc_fail_wp_version()
124
  {
125
  /* translators: %s: WordPress version */
126
- $message = sprintf( esc_html__( 'Blocksy requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT RUNNING.', 'blc' ), '5.0' );
127
  $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
128
  echo wp_kses_post( $html_message ) ;
129
  }
3
  /*
4
  Plugin Name: Blocksy Companion
5
  Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
6
+ Version: 1.8.9.5
7
  Author: CreativeThemes
8
  Author URI: https://creativethemes.com
9
+ Text Domain: blocksy-companion
10
  Domain Path: /languages/
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
91
  *
92
  * Load gettext translate for Blocksy text domain.
93
  */
94
+ load_plugin_textdomain( 'blocksy-companion', false, dirname( BLOCKSY_PLUGIN_BASE ) . '/languages' );
95
  } );
96
 
97
  if ( !version_compare( PHP_VERSION, '7.0', '>=' ) ) {
110
  function blc_fail_php_version()
111
  {
112
  /* translators: %s: PHP version */
113
+ $message = sprintf( esc_html__( 'Blocksy requires PHP version %s+, plugin is currently NOT RUNNING.', 'blocksy-companion' ), '7.0' );
114
  $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
115
  echo wp_kses_post( $html_message ) ;
116
  }
123
  function blc_fail_wp_version()
124
  {
125
  /* translators: %s: WordPress version */
126
+ $message = sprintf( esc_html__( 'Blocksy requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT RUNNING.', 'blocksy-companion' ), '5.0' );
127
  $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
128
  echo wp_kses_post( $html_message ) ;
129
  }
framework/extensions-manager.php CHANGED
@@ -185,8 +185,8 @@ class ExtensionsManager
185
  'path' => null,
186
  '__object' => null,
187
  'config' => [
188
- 'name' => __( 'Adobe Typekit', 'blc' ),
189
- 'description' => __( 'Connect your Typekit account and use your fonts in any typography option.', 'blc' ),
190
  'pro' => true,
191
  ],
192
  'readme' => '',
@@ -196,8 +196,8 @@ class ExtensionsManager
196
  'path' => null,
197
  '__object' => null,
198
  'config' => [
199
- 'name' => __( 'Custom Code Snippets', 'blc' ),
200
- 'description' => __( 'Add custom code snippets in your header and footer, globally and per post or page individually.', 'blc' ),
201
  'pro' => true,
202
  ],
203
  'readme' => '',
@@ -207,8 +207,8 @@ class ExtensionsManager
207
  'path' => null,
208
  '__object' => null,
209
  'config' => [
210
- 'name' => __( 'Custom Fonts', 'blc' ),
211
- 'description' => __( 'Upload unlimited number of custom fonts or variable fonts and use them in any typography option.', 'blc' ),
212
  'pro' => true,
213
  ],
214
  'readme' => '',
@@ -218,8 +218,8 @@ class ExtensionsManager
218
  'path' => null,
219
  '__object' => null,
220
  'config' => [
221
- 'name' => __( 'Local Google Fonts', 'blc' ),
222
- 'description' => __( 'Serve Google Fonts from your own server for full GDPR compliancy.', 'blc' ),
223
  'pro' => true,
224
  ],
225
  'readme' => '',
@@ -229,8 +229,8 @@ class ExtensionsManager
229
  'path' => null,
230
  '__object' => null,
231
  'config' => [
232
- 'name' => __( 'Advanced Menu', 'blc' ),
233
- 'description' => __( 'Create beautiful mega menus, assign icons add badges to menu items, and content blocks inside menu items.', 'blc' ),
234
  'pro' => true,
235
  ],
236
  'readme' => '',
@@ -240,8 +240,8 @@ class ExtensionsManager
240
  'path' => null,
241
  '__object' => null,
242
  'config' => [
243
- 'name' => __( 'Shortcuts Bar', 'blc' ),
244
- 'description' => __( 'Transform your website into a app like by displaying a neat shortcuts bar at the bottom of the vieport.', 'blc' ),
245
  'pro' => true,
246
  ],
247
  'readme' => '',
@@ -251,8 +251,8 @@ class ExtensionsManager
251
  'path' => null,
252
  '__object' => null,
253
  'config' => [
254
- 'name' => __( 'Multiple Sidebars', 'blc' ),
255
- 'description' => __( 'Create unlimited number of sidebars and display them conditionaly on any page or post.', 'blc' ),
256
  'pro' => true,
257
  ],
258
  'readme' => '',
@@ -262,8 +262,8 @@ class ExtensionsManager
262
  'path' => null,
263
  '__object' => null,
264
  'config' => [
265
- 'name' => __( 'White Label (Agency Package)', 'blc' ),
266
- 'description' => __( 'Change the theme and companion plugin branding to your own custom one.', 'blc' ),
267
  'pro' => true,
268
  ],
269
  'readme' => '',
@@ -273,8 +273,8 @@ class ExtensionsManager
273
  'path' => null,
274
  '__object' => null,
275
  'config' => [
276
- 'name' => __( 'WooCommerce Extra', 'blc' ),
277
- 'description' => __( 'Increase the conversion rate by adding a product quick view modal, a floating cart. Control the single product gallery/slider and the layout, add a wishlits page.', 'blc' ),
278
  'pro' => true,
279
  ],
280
  'readme' => '',
185
  'path' => null,
186
  '__object' => null,
187
  'config' => [
188
+ 'name' => __( 'Adobe Typekit', 'blocksy-companion' ),
189
+ 'description' => __( 'Connect your Typekit account and use your fonts in any typography option.', 'blocksy-companion' ),
190
  'pro' => true,
191
  ],
192
  'readme' => '',
196
  'path' => null,
197
  '__object' => null,
198
  'config' => [
199
+ 'name' => __( 'Custom Code Snippets', 'blocksy-companion' ),
200
+ 'description' => __( 'Add custom code snippets in your header and footer, globally and per post or page individually.', 'blocksy-companion' ),
201
  'pro' => true,
202
  ],
203
  'readme' => '',
207
  'path' => null,
208
  '__object' => null,
209
  'config' => [
210
+ 'name' => __( 'Custom Fonts', 'blocksy-companion' ),
211
+ 'description' => __( 'Upload unlimited number of custom fonts or variable fonts and use them in any typography option.', 'blocksy-companion' ),
212
  'pro' => true,
213
  ],
214
  'readme' => '',
218
  'path' => null,
219
  '__object' => null,
220
  'config' => [
221
+ 'name' => __( 'Local Google Fonts', 'blocksy-companion' ),
222
+ 'description' => __( 'Serve Google Fonts from your own server for full GDPR compliancy.', 'blocksy-companion' ),
223
  'pro' => true,
224
  ],
225
  'readme' => '',
229
  'path' => null,
230
  '__object' => null,
231
  'config' => [
232
+ 'name' => __( 'Advanced Menu', 'blocksy-companion' ),
233
+ 'description' => __( 'Create beautiful mega menus, assign icons add badges to menu items, and content blocks inside menu items.', 'blocksy-companion' ),
234
  'pro' => true,
235
  ],
236
  'readme' => '',
240
  'path' => null,
241
  '__object' => null,
242
  'config' => [
243
+ 'name' => __( 'Shortcuts Bar', 'blocksy-companion' ),
244
+ 'description' => __( 'Transform your website into a app like by displaying a neat shortcuts bar at the bottom of the vieport.', 'blocksy-companion' ),
245
  'pro' => true,
246
  ],
247
  'readme' => '',
251
  'path' => null,
252
  '__object' => null,
253
  'config' => [
254
+ 'name' => __( 'Multiple Sidebars', 'blocksy-companion' ),
255
+ 'description' => __( 'Create unlimited number of sidebars and display them conditionaly on any page or post.', 'blocksy-companion' ),
256
  'pro' => true,
257
  ],
258
  'readme' => '',
262
  'path' => null,
263
  '__object' => null,
264
  'config' => [
265
+ 'name' => __( 'White Label (Agency Package)', 'blocksy-companion' ),
266
+ 'description' => __( 'Change the theme and companion plugin branding to your own custom one.', 'blocksy-companion' ),
267
  'pro' => true,
268
  ],
269
  'readme' => '',
273
  'path' => null,
274
  '__object' => null,
275
  'config' => [
276
+ 'name' => __( 'WooCommerce Extra', 'blocksy-companion' ),
277
+ 'description' => __( 'Increase the conversion rate by adding a product quick view modal, a floating cart. Control the single product gallery/slider and the layout, add a wishlits page.', 'blocksy-companion' ),
278
  'pro' => true,
279
  ],
280
  'readme' => '',
framework/extensions/cookies-consent/config.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
  $config = [
4
- 'name' => __('Cookies Consent', 'blc'),
5
- 'description' => __('Display a cookie acceptance box in order to comply with the privacy regulations in your country.', 'blc')
6
  ];
1
  <?php
2
 
3
  $config = [
4
+ 'name' => __('Cookies Consent', 'blocksy-companion'),
5
+ 'description' => __('Display a cookie acceptance box in order to comply with the privacy regulations in your country.', 'blocksy-companion')
6
  ];
framework/extensions/cookies-consent/customizer.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  $options = [
4
- 'title' => __('Cookie Consent', 'blc'),
5
  'container' => [ 'priority' => 8 ],
6
  'options' => [
7
 
@@ -15,7 +15,7 @@ $options = [
15
  ],
16
 
17
  blocksy_rand_md5() => [
18
- 'title' => __( 'General', 'blc' ),
19
  'type' => 'tab',
20
  'options' => [
21
 
@@ -28,19 +28,19 @@ $options = [
28
 
29
  'type-1' => [
30
  'src' => BLOCKSY_URL . 'framework/extensions/cookies-consent/static/images/type-1.svg',
31
- 'title' => __( 'Type 1', 'blc' ),
32
  ],
33
 
34
  'type-2' => [
35
  'src' => BLOCKSY_URL . 'framework/extensions/cookies-consent/static/images/type-2.svg',
36
- 'title' => __( 'Type 2', 'blc' ),
37
  ],
38
 
39
  ],
40
  ],
41
 
42
  'cookie_consent_period' => [
43
- 'label' => __('Cookie period', 'blc'),
44
  'type' => 'ct-select',
45
  'value' => 'forever',
46
  'design' => 'inline',
@@ -48,23 +48,23 @@ $options = [
48
  'choices' => blocksy_ordered_keys(
49
 
50
  [
51
- 'onehour' => __( 'One hour', 'blc' ),
52
- 'oneday' => __( 'One day', 'blc' ),
53
- 'oneweek' => __( 'One week', 'blc' ),
54
- 'onemonth' => __( 'One month', 'blc' ),
55
- 'threemonths' => __( 'Three months', 'blc' ),
56
- 'sixmonths' => __( 'Six months', 'blc' ),
57
- 'oneyear' => __( 'One year', 'blc' ),
58
- 'forever' => __('Forever', 'blc')
59
  ]
60
 
61
  ),
62
  ],
63
 
64
  'cookie_consent_content' => [
65
- 'label' => __( 'Content', 'blc' ),
66
  'type' => 'wp-editor',
67
- 'value' => __('We use cookies to ensure that we give you the best experience on our website.', 'blc'),
68
  'disableRevertButton' => true,
69
  'setting' => [ 'transport' => 'postMessage' ],
70
 
@@ -76,10 +76,10 @@ $options = [
76
  ],
77
 
78
  'cookie_consent_button_text' => [
79
- 'label' => __( 'Button text', 'blc' ),
80
  'type' => 'text',
81
  'design' => 'block',
82
- 'value' => __('Accept', 'blc'),
83
  'setting' => [ 'transport' => 'postMessage' ],
84
  ],
85
 
@@ -87,12 +87,12 @@ $options = [
87
  ],
88
 
89
  blocksy_rand_md5() => [
90
- 'title' => __( 'Design', 'blc' ),
91
  'type' => 'tab',
92
  'options' => [
93
 
94
  'cookieContentColor' => [
95
- 'label' => __( 'Font Color', 'blc' ),
96
  'type' => 'ct-color-picker',
97
  'design' => 'inline',
98
  'setting' => [ 'transport' => 'postMessage' ],
@@ -109,13 +109,13 @@ $options = [
109
 
110
  'pickers' => [
111
  [
112
- 'title' => __( 'Initial', 'blc' ),
113
  'id' => 'default',
114
  'inherit' => 'var(--color)'
115
  ],
116
 
117
  [
118
- 'title' => __( 'Hover', 'blc' ),
119
  'id' => 'hover',
120
  'inherit' => 'var(--colorHover)'
121
  ],
@@ -123,7 +123,7 @@ $options = [
123
  ],
124
 
125
  'cookieButtonBackground' => [
126
- 'label' => __( 'Button Color', 'blc' ),
127
  'type' => 'ct-color-picker',
128
  'design' => 'inline',
129
  'setting' => [ 'transport' => 'postMessage' ],
@@ -139,19 +139,19 @@ $options = [
139
 
140
  'pickers' => [
141
  [
142
- 'title' => __( 'Initial', 'blc' ),
143
  'id' => 'default',
144
  ],
145
 
146
  [
147
- 'title' => __( 'Hover', 'blc' ),
148
  'id' => 'hover',
149
  ],
150
  ],
151
  ],
152
 
153
  'cookieBackground' => [
154
- 'label' => __( 'Background Color', 'blc' ),
155
  'type' => 'ct-color-picker',
156
  'design' => 'inline',
157
  'setting' => [ 'transport' => 'postMessage' ],
@@ -164,7 +164,7 @@ $options = [
164
 
165
  'pickers' => [
166
  [
167
- 'title' => __( 'Initial', 'blc' ),
168
  'id' => 'default',
169
  ],
170
  ],
@@ -176,7 +176,7 @@ $options = [
176
  'options' => [
177
 
178
  'cookieMaxWidth' => [
179
- 'label' => __( 'Maximum Width', 'blc' ),
180
  'type' => 'ct-slider',
181
  'value' => 400,
182
  'min' => 200,
@@ -199,11 +199,11 @@ $options = [
199
  'label' => false,
200
  'type' => 'wp-editor',
201
  'value' => sprintf(
202
- __('I accept the %sPrivacy Policy%s*', 'blc'),
203
  '<a href="/privacy-policy">',
204
  '</a>'
205
  ),
206
- 'desc' => __( 'This text will appear under each comment form and subscribe form.', 'blc' ),
207
  // 'attr' => [ 'data-height' => 'heading-label' ],
208
  'disableRevertButton' => true,
209
  'setting' => [ 'transport' => 'postMessage' ],
1
  <?php
2
 
3
  $options = [
4
+ 'title' => __('Cookie Consent', 'blocksy-companion'),
5
  'container' => [ 'priority' => 8 ],
6
  'options' => [
7
 
15
  ],
16
 
17
  blocksy_rand_md5() => [
18
+ 'title' => __( 'General', 'blocksy-companion' ),
19
  'type' => 'tab',
20
  'options' => [
21
 
28
 
29
  'type-1' => [
30
  'src' => BLOCKSY_URL . 'framework/extensions/cookies-consent/static/images/type-1.svg',
31
+ 'title' => __( 'Type 1', 'blocksy-companion' ),
32
  ],
33
 
34
  'type-2' => [
35
  'src' => BLOCKSY_URL . 'framework/extensions/cookies-consent/static/images/type-2.svg',
36
+ 'title' => __( 'Type 2', 'blocksy-companion' ),
37
  ],
38
 
39
  ],
40
  ],
41
 
42
  'cookie_consent_period' => [
43
+ 'label' => __('Cookie period', 'blocksy-companion'),
44
  'type' => 'ct-select',
45
  'value' => 'forever',
46
  'design' => 'inline',
48
  'choices' => blocksy_ordered_keys(
49
 
50
  [
51
+ 'onehour' => __( 'One hour', 'blocksy-companion' ),
52
+ 'oneday' => __( 'One day', 'blocksy-companion' ),
53
+ 'oneweek' => __( 'One week', 'blocksy-companion' ),
54
+ 'onemonth' => __( 'One month', 'blocksy-companion' ),
55
+ 'threemonths' => __( 'Three months', 'blocksy-companion' ),
56
+ 'sixmonths' => __( 'Six months', 'blocksy-companion' ),
57
+ 'oneyear' => __( 'One year', 'blocksy-companion' ),
58
+ 'forever' => __('Forever', 'blocksy-companion')
59
  ]
60
 
61
  ),
62
  ],
63
 
64
  'cookie_consent_content' => [
65
+ 'label' => __( 'Content', 'blocksy-companion' ),
66
  'type' => 'wp-editor',
67
+ 'value' => __('We use cookies to ensure that we give you the best experience on our website.', 'blocksy-companion'),
68
  'disableRevertButton' => true,
69
  'setting' => [ 'transport' => 'postMessage' ],
70
 
76
  ],
77
 
78
  'cookie_consent_button_text' => [
79
+ 'label' => __( 'Button text', 'blocksy-companion' ),
80
  'type' => 'text',
81
  'design' => 'block',
82
+ 'value' => __('Accept', 'blocksy-companion'),
83
  'setting' => [ 'transport' => 'postMessage' ],
84
  ],
85
 
87
  ],
88
 
89
  blocksy_rand_md5() => [
90
+ 'title' => __( 'Design', 'blocksy-companion' ),
91
  'type' => 'tab',
92
  'options' => [
93
 
94
  'cookieContentColor' => [
95
+ 'label' => __( 'Font Color', 'blocksy-companion' ),
96
  'type' => 'ct-color-picker',
97
  'design' => 'inline',
98
  'setting' => [ 'transport' => 'postMessage' ],
109
 
110
  'pickers' => [
111
  [
112
+ 'title' => __( 'Initial', 'blocksy-companion' ),
113
  'id' => 'default',
114
  'inherit' => 'var(--color)'
115
  ],
116
 
117
  [
118
+ 'title' => __( 'Hover', 'blocksy-companion' ),
119
  'id' => 'hover',
120
  'inherit' => 'var(--colorHover)'
121
  ],
123
  ],
124
 
125
  'cookieButtonBackground' => [
126
+ 'label' => __( 'Button Color', 'blocksy-companion' ),
127
  'type' => 'ct-color-picker',
128
  'design' => 'inline',
129
  'setting' => [ 'transport' => 'postMessage' ],
139
 
140
  'pickers' => [
141
  [
142
+ 'title' => __( 'Initial', 'blocksy-companion' ),
143
  'id' => 'default',
144
  ],
145
 
146
  [
147
+ 'title' => __( 'Hover', 'blocksy-companion' ),
148
  'id' => 'hover',
149
  ],
150
  ],
151
  ],
152
 
153
  'cookieBackground' => [
154
+ 'label' => __( 'Background Color', 'blocksy-companion' ),
155
  'type' => 'ct-color-picker',
156
  'design' => 'inline',
157
  'setting' => [ 'transport' => 'postMessage' ],
164
 
165
  'pickers' => [
166
  [
167
+ 'title' => __( 'Initial', 'blocksy-companion' ),
168
  'id' => 'default',
169
  ],
170
  ],
176
  'options' => [
177
 
178
  'cookieMaxWidth' => [
179
+ 'label' => __( 'Maximum Width', 'blocksy-companion' ),
180
  'type' => 'ct-slider',
181
  'value' => 400,
182
  'min' => 200,
199
  'label' => false,
200
  'type' => 'wp-editor',
201
  'value' => sprintf(
202
+ __('I accept the %sPrivacy Policy%s*', 'blocksy-companion'),
203
  '<a href="/privacy-policy">',
204
  '</a>'
205
  ),
206
+ 'desc' => __( 'This text will appear under each comment form and subscribe form.', 'blocksy-companion' ),
207
  // 'attr' => [ 'data-height' => 'heading-label' ],
208
  'disableRevertButton' => true,
209
  'setting' => [ 'transport' => 'postMessage' ],
framework/extensions/cookies-consent/helpers.php CHANGED
@@ -27,10 +27,10 @@ function blocksy_ext_cookies_consent_output($forced = false) {
27
 
28
  $content = get_theme_mod(
29
  'cookie_consent_content',
30
- __('We use cookies to ensure that we give you the best experience on our website.', 'blc')
31
  );
32
 
33
- $button_text = get_theme_mod('cookie_consent_button_text', __('Accept', 'blc'));
34
  $period = get_theme_mod('cookie_consent_period', 'forever');
35
  $type = get_theme_mod('cookie_consent_type', 'type-1');
36
 
@@ -75,7 +75,7 @@ function blocksy_ext_cookies_checkbox($prefix = '') {
75
  $message = get_theme_mod(
76
  'forms_cookie_consent_content',
77
  sprintf(
78
- __('I accept the %sPrivacy Policy%s', 'blc'),
79
  '<a href="/privacy-policy">',
80
  '</a>'
81
  )
27
 
28
  $content = get_theme_mod(
29
  'cookie_consent_content',
30
+ __('We use cookies to ensure that we give you the best experience on our website.', 'blocksy-companion')
31
  );
32
 
33
+ $button_text = get_theme_mod('cookie_consent_button_text', __('Accept', 'blocksy-companion'));
34
  $period = get_theme_mod('cookie_consent_period', 'forever');
35
  $type = get_theme_mod('cookie_consent_type', 'type-1');
36
 
75
  $message = get_theme_mod(
76
  'forms_cookie_consent_content',
77
  sprintf(
78
+ __('I accept the %sPrivacy Policy%s', 'blocksy-companion'),
79
  '<a href="/privacy-policy">',
80
  '</a>'
81
  )
framework/extensions/cookies-consent/readme.php CHANGED
@@ -1,22 +1,22 @@
1
- <h2><?php echo __('Instructions', 'blc'); ?></h2>
2
 
3
  <p>
4
- <?php echo __('After installing and activating the Cookies Consent extension you will be able to configure it from this location:', 'blc') ?>
5
  </p>
6
 
7
  <ul class="ct-modal-list">
8
  <li>
9
- <h4><?php echo __('Customizer', 'blc') ?></h4>
10
  <i>
11
  <?php
12
  echo sprintf(
13
- __('Navigate to %s and customize the notification to meet your needs.', 'blc'),
14
  sprintf(
15
  '<code>%s</code>',
16
- __('Customizer ➝ Cookie Consent', 'blc')
17
  )
18
  );
19
  ?>
20
  </i>
21
  </li>
22
- </ul>
1
+ <h2><?php echo __('Instructions', 'blocksy-companion'); ?></h2>
2
 
3
  <p>
4
+ <?php echo __('After installing and activating the Cookies Consent extension you will be able to configure it from this location:', 'blocksy-companion') ?>
5
  </p>
6
 
7
  <ul class="ct-modal-list">
8
  <li>
9
+ <h4><?php echo __('Customizer', 'blocksy-companion') ?></h4>
10
  <i>
11
  <?php
12
  echo sprintf(
13
+ __('Navigate to %s and customize the notification to meet your needs.', 'blocksy-companion'),
14
  sprintf(
15
  '<code>%s</code>',
16
+ __('Customizer ➝ Cookie Consent', 'blocksy-companion')
17
  )
18
  );
19
  ?>
20
  </i>
21
  </li>
22
+ </ul>
framework/extensions/cookies-consent/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.9.4
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.9.5
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/newsletter-subscribe/admin-static/bundle/{2.61bd55d629d700145be1.js → 2.b8cdca0a643ec9bd1ed2.js} RENAMED
@@ -1 +1 @@
1
- (window.blocksyNewsletterSubscribeExtJsonp=window.blocksyNewsletterSubscribeExtJsonp||[]).push([[2],{13:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(12),c=n(2),i=n(6),o=n.n(i);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t,n,r,a,c,i){try{var o=e[c](i),u=o.value}catch(e){return void n(e)}o.done?t(u):Promise.resolve(u).then(r,a)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,c=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw c}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d=null;t.default=function(e){var t=e.value,n=e.onChange,i=s(Object(r.useState)(d||[]),2),f=i[0],p=i[1],b=s(Object(r.useState)(!d),2),m=b[0],v=b[1],y=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(!(a.length>0&&void 0!==a[0])||a[0])&&v(!0),(t=new FormData).append("action","blocksy_ext_newsletter_subscribe_get_actual_lists"),e.prev=4,e.next=7,fetch(ajaxurl,{method:"POST",body:t});case 7:if(200!==(n=e.sent).status){e.next=18;break}return e.next=11,n.json();case 11:if(!(r=e.sent).success){e.next=18;break}if("api_key_invalid"===r.data.result){e.next=18;break}return v(!1),p(r.data.result),d=r.data.result,e.abrupt("return");case 18:e.next=22;break;case 20:e.prev=20,e.t0=e.catch(4);case 22:v(!1);case 23:case"end":return e.stop()}}),e,null,[[4,20]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function i(e){l(c,r,a,i,o,"next",e)}function o(e){l(c,r,a,i,o,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)((function(){y(!d)}),[]),0===f.length?Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",{disabled:!0,placeholder:m?Object(c.__)("Loading...","blc"):Object(c.__)("Invalid API Key...","blc")})):Object(r.createElement)(a.a,{selectedItem:t||f[0].id,onChange:function(e){return n(e)},itemToString:function(e){return e?(f.find((function(t){return t.id===e}))||{}).name:""}},(function(e){var t=e.getInputProps,n=e.getItemProps,a=(e.getLabelProps,e.getMenuProps),i=e.isOpen,l=(e.inputValue,e.highlightedIndex),s=e.selectedItem,d=e.openMenu;return Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",u({},t({onFocus:function(){return d()},onClick:function(){return d()}}),{placeholder:Object(c.__)("Select list...","blc"),readOnly:!0})),i&&Object(r.createElement)("div",a({className:"ct-select-dropdown"}),f.map((function(e,t){return Object(r.createElement)("div",n({key:e.id,index:t,item:e.id,className:o()("ct-select-dropdown-item",{active:l===t,selected:s===e.id})}),e.name)}))))}))}}}]);
1
+ (window.blocksyNewsletterSubscribeExtJsonp=window.blocksyNewsletterSubscribeExtJsonp||[]).push([[2],{13:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(12),c=n(2),o=n(6),i=n.n(o);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t,n,r,a,c,o){try{var i=e[c](o),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,a)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,c=void 0;try{for(var o,i=e[Symbol.iterator]();!(r=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw c}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d=null;t.default=function(e){var t=e.value,n=e.onChange,o=l(Object(r.useState)(d||[]),2),f=o[0],p=o[1],b=l(Object(r.useState)(!d),2),m=b[0],v=b[1],y=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(!(a.length>0&&void 0!==a[0])||a[0])&&v(!0),(t=new FormData).append("action","blocksy_ext_newsletter_subscribe_get_actual_lists"),e.prev=4,e.next=7,fetch(ajaxurl,{method:"POST",body:t});case 7:if(200!==(n=e.sent).status){e.next=18;break}return e.next=11,n.json();case 11:if(!(r=e.sent).success){e.next=18;break}if("api_key_invalid"===r.data.result){e.next=18;break}return v(!1),p(r.data.result),d=r.data.result,e.abrupt("return");case 18:e.next=22;break;case 20:e.prev=20,e.t0=e.catch(4);case 22:v(!1);case 23:case"end":return e.stop()}}),e,null,[[4,20]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var c=e.apply(t,n);function o(e){s(c,r,a,o,i,"next",e)}function i(e){s(c,r,a,o,i,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)((function(){y(!d)}),[]),0===f.length?Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",{disabled:!0,placeholder:m?Object(c.__)("Loading...","blocksy-companion"):Object(c.__)("Invalid API Key...","blocksy-companion")})):Object(r.createElement)(a.a,{selectedItem:t||f[0].id,onChange:function(e){return n(e)},itemToString:function(e){return e?(f.find((function(t){return t.id===e}))||{}).name:""}},(function(e){var t=e.getInputProps,n=e.getItemProps,a=(e.getLabelProps,e.getMenuProps),o=e.isOpen,s=(e.inputValue,e.highlightedIndex),l=e.selectedItem,d=e.openMenu;return Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",u({},t({onFocus:function(){return d()},onClick:function(){return d()}}),{placeholder:Object(c.__)("Select list...","blocksy-companion"),readOnly:!0})),o&&Object(r.createElement)("div",a({className:"ct-select-dropdown"}),f.map((function(e,t){return Object(r.createElement)("div",n({key:e.id,index:t,item:e.id,className:i()("ct-select-dropdown-item",{active:s===t,selected:l===e.id})}),e.name)}))))}))}}}]);
framework/extensions/newsletter-subscribe/admin-static/bundle/main.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(t){for(var n,o,c=t[0],i=t[1],u=0,a=[];u<c.length;u++)o=c[u],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&a.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(l&&l(t);a.length;)a.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=c);var i,u=document.createElement("script");u.charset="utf-8",u.timeout=120,o.nc&&u.setAttribute("nonce",o.nc),u.src=function(e){return o.p+""+e+"."+{1:"f588f19f53311c8b6a0a",2:"61bd55d629d700145be1"}[e]+".js"}(e);var l=new Error;i=function(t){u.onerror=u.onload=null,clearTimeout(a);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+c+")",l.name="ChunkLoadError",l.type=o,l.request=c,n[1](l)}r[e]=void 0}};var a=setTimeout((function(){i({type:"timeout",target:u})}),12e4);u.onerror=u.onload=i,document.head.appendChild(u)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var c=window.blocksyNewsletterSubscribeExtJsonp=window.blocksyNewsletterSubscribeExtJsonp||[],i=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var l=i;o(o.s=5)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.ctEvents},function(e,t,n){n.p=blocksy_ext_newsletter_subscribe_localization.public_url},function(e,t,n){"use strict";n.r(t);n(4);var r=n(0),o=n(2),c=n(1),i=Object(c.lazy)((function(){return Promise.all([n.e(1),n.e(2)]).then(n.bind(null,13))})),u=function(e){return Object(r.createElement)("div",null,Object(r.createElement)(c.Suspense,{fallback:Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",{disabled:!0,placeholder:Object(o.__)("Loading...","blc")}))},Object(r.createElement)(i,e)))},l=n(3),a=n.n(l);document.addEventListener("DOMContentLoaded",(function(){return a.a.on("blocksy:options:register",(function(e){e["blocksy-newsletter-subscribe"]=u}))}))}]);
1
+ !function(e){function t(t){for(var n,o,c=t[0],i=t[1],u=0,a=[];u<c.length;u++)o=c[u],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&a.push(r[o][0]),r[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(l&&l(t);a.length;)a.shift()()}var n={},r={0:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,o){n=r[e]=[t,o]}));t.push(n[2]=c);var i,u=document.createElement("script");u.charset="utf-8",u.timeout=120,o.nc&&u.setAttribute("nonce",o.nc),u.src=function(e){return o.p+""+e+"."+{1:"f588f19f53311c8b6a0a",2:"b8cdca0a643ec9bd1ed2"}[e]+".js"}(e);var l=new Error;i=function(t){u.onerror=u.onload=null,clearTimeout(a);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+c+")",l.name="ChunkLoadError",l.type=o,l.request=c,n[1](l)}r[e]=void 0}};var a=setTimeout((function(){i({type:"timeout",target:u})}),12e4);u.onerror=u.onload=i,document.head.appendChild(u)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var c=window.blocksyNewsletterSubscribeExtJsonp=window.blocksyNewsletterSubscribeExtJsonp||[],i=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var l=i;o(o.s=5)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.React},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.ctEvents},function(e,t,n){n.p=blocksy_ext_newsletter_subscribe_localization.public_url},function(e,t,n){"use strict";n.r(t);n(4);var r=n(0),o=n(2),c=n(1),i=Object(c.lazy)((function(){return Promise.all([n.e(1),n.e(2)]).then(n.bind(null,13))})),u=function(e){return Object(r.createElement)("div",null,Object(r.createElement)(c.Suspense,{fallback:Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",{disabled:!0,placeholder:Object(o.__)("Loading...","blocksy-companion")}))},Object(r.createElement)(i,e)))},l=n(3),a=n.n(l);document.addEventListener("DOMContentLoaded",(function(){return a.a.on("blocksy:options:register",(function(e){e["blocksy-newsletter-subscribe"]=u}))}))}]);
framework/extensions/newsletter-subscribe/admin-static/js/ListPicker.js CHANGED
@@ -11,7 +11,7 @@ const ListPicker = (props) => (
11
  <Suspense
12
  fallback={
13
  <div className="ct-select-input">
14
- <input disabled placeholder={__('Loading...', 'blc')} />
15
  </div>
16
  }>
17
  <ListPickerImplementation {...props} />
11
  <Suspense
12
  fallback={
13
  <div className="ct-select-input">
14
+ <input disabled placeholder={__('Loading...', 'blocksy-companion')} />
15
  </div>
16
  }>
17
  <ListPickerImplementation {...props} />
framework/extensions/newsletter-subscribe/admin-static/js/ListPicker/Implementation.js CHANGED
@@ -60,8 +60,8 @@ const ListPickerImplementation = ({ value, onChange }) => {
60
  disabled
61
  placeholder={
62
  isLoadingLists
63
- ? __('Loading...', 'blc')
64
- : __('Invalid API Key...', 'blc')
65
  }
66
  />
67
  </div>
@@ -89,7 +89,7 @@ const ListPickerImplementation = ({ value, onChange }) => {
89
  onFocus: () => openMenu(),
90
  onClick: () => openMenu(),
91
  })}
92
- placeholder={__('Select list...', 'blc')}
93
  readOnly
94
  />
95
 
60
  disabled
61
  placeholder={
62
  isLoadingLists
63
+ ? __('Loading...', 'blocksy-companion')
64
+ : __('Invalid API Key...', 'blocksy-companion')
65
  }
66
  />
67
  </div>
89
  onFocus: () => openMenu(),
90
  onClick: () => openMenu(),
91
  })}
92
+ placeholder={__('Select list...', 'blocksy-companion')}
93
  readOnly
94
  />
95
 
framework/extensions/newsletter-subscribe/config.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  $config = [
4
- 'name' => __('Newsletter Subscribe', 'blc'),
5
- 'description' => __('Easily capture new leads for your newsletter with the help of a widget, shortcode or even a block inserted on your pages or posts.', 'blc')
6
  ];
7
 
1
  <?php
2
 
3
  $config = [
4
+ 'name' => __('Newsletter Subscribe', 'blocksy-companion'),
5
+ 'description' => __('Easily capture new leads for your newsletter with the help of a widget, shortcode or even a block inserted on your pages or posts.', 'blocksy-companion')
6
  ];
7
 
framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/options.php CHANGED
@@ -11,27 +11,27 @@
11
  $options = [
12
  'title' => [
13
  'type' => 'text',
14
- 'label' => __( 'Title', 'blc' ),
15
  'field_attr' => [ 'id' => 'widget-title' ],
16
  'design' => 'inline',
17
- 'value' => __( 'Newsletter', 'blc' ),
18
  'disableRevertButton' => true,
19
  ],
20
 
21
  // 'newsletter_subscribe_text' => [
22
- // 'label' => __( 'Message', 'blc' ),
23
  // 'type' => 'textarea',
24
- // 'value' => __( 'Enter your email address below to subscribe to our newsletter', 'blc' ),
25
  // 'design' => 'inline',
26
  // 'disableRevertButton' => true,
27
  // ],
28
 
29
  'newsletter_subscribe_text' => [
30
- 'label' => __( 'Text', 'blc' ),
31
  'type' => 'wp-editor',
32
  'design' => 'inline',
33
- 'value' => __( 'Enter your email address below to subscribe to our newsletter', 'blc' ),
34
- 'desc' => __( 'You can add here some arbitrary HTML code.', 'blc' ),
35
  'disableRevertButton' => true,
36
  'setting' => [ 'transport' => 'postMessage' ],
37
 
@@ -43,15 +43,15 @@ $options = [
43
 
44
  'newsletter_subscribe_list_id_source' => [
45
  'type' => 'ct-radio',
46
- 'label' => __( 'List Source', 'blc' ),
47
  'value' => 'default',
48
  'view' => 'radio',
49
  'inline' => true,
50
  'design' => 'inline',
51
  'disableRevertButton' => true,
52
  'choices' => [
53
- 'default' => __('Default', 'blc'),
54
- 'custom' => __('Custom', 'blc'),
55
  ],
56
  ],
57
 
@@ -61,7 +61,7 @@ $options = [
61
  'options' => [
62
 
63
  'newsletter_subscribe_list_id' => [
64
- 'label' => __( 'List ID', 'blc' ),
65
  'type' => 'blocksy-newsletter-subscribe',
66
  'value' => '',
67
  'design' => 'inline',
@@ -73,7 +73,7 @@ $options = [
73
 
74
  'has_newsletter_subscribe_name' => [
75
  'type' => 'ct-switch',
76
- 'label' => __( 'Name Field', 'blc' ),
77
  'value' => 'no',
78
  'disableRevertButton' => true,
79
  ],
@@ -85,9 +85,9 @@ $options = [
85
 
86
  'newsletter_subscribe_name_label' => [
87
  'type' => 'text',
88
- 'label' => __( 'Name Label', 'blc' ),
89
  'design' => 'inline',
90
- 'value' => __( 'Your name', 'blc' ),
91
  'disableRevertButton' => true,
92
  ],
93
 
@@ -96,35 +96,35 @@ $options = [
96
 
97
  'newsletter_subscribe_mail_label' => [
98
  'type' => 'text',
99
- 'label' => __( 'Mail Label', 'blc' ),
100
  'design' => 'inline',
101
- 'value' => __( 'Your email', 'blc' ),
102
  'disableRevertButton' => true,
103
  ],
104
 
105
  'newsletter_subscribe_button_text' => [
106
  'type' => 'text',
107
- 'label' => __( 'Button Label', 'blc' ),
108
  'design' => 'inline',
109
- 'value' => __( 'Subscribe', 'blc' ),
110
  'disableRevertButton' => true,
111
  ],
112
 
113
  'newsletter_subscribe_container' => [
114
- 'label' => __( 'Container Type', 'blc' ),
115
  'type' => 'ct-select',
116
  'value' => 'default',
117
  'design' => 'inline',
118
  'disableRevertButton' => true,
119
  'choices' => [
120
- 'default' => __( 'Default', 'blc' ),
121
- 'boxed' => __( 'Boxed', 'blc' ),
122
  ],
123
  ],
124
 
125
  'newsletter_subscribe_alignment' => [
126
  'type' => 'ct-radio',
127
- 'label' => __( 'Content Alignment', 'blc' ),
128
  'value' => 'left',
129
  'view' => 'text',
130
  'design' => 'inline',
11
  $options = [
12
  'title' => [
13
  'type' => 'text',
14
+ 'label' => __( 'Title', 'blocksy-companion' ),
15
  'field_attr' => [ 'id' => 'widget-title' ],
16
  'design' => 'inline',
17
+ 'value' => __( 'Newsletter', 'blocksy-companion' ),
18
  'disableRevertButton' => true,
19
  ],
20
 
21
  // 'newsletter_subscribe_text' => [
22
+ // 'label' => __( 'Message', 'blocksy-companion' ),
23
  // 'type' => 'textarea',
24
+ // 'value' => __( 'Enter your email address below to subscribe to our newsletter', 'blocksy-companion' ),
25
  // 'design' => 'inline',
26
  // 'disableRevertButton' => true,
27
  // ],
28
 
29
  'newsletter_subscribe_text' => [
30
+ 'label' => __( 'Text', 'blocksy-companion' ),
31
  'type' => 'wp-editor',
32
  'design' => 'inline',
33
+ 'value' => __( 'Enter your email address below to subscribe to our newsletter', 'blocksy-companion' ),
34
+ 'desc' => __( 'You can add here some arbitrary HTML code.', 'blocksy-companion' ),
35
  'disableRevertButton' => true,
36
  'setting' => [ 'transport' => 'postMessage' ],
37
 
43
 
44
  'newsletter_subscribe_list_id_source' => [
45
  'type' => 'ct-radio',
46
+ 'label' => __( 'List Source', 'blocksy-companion' ),
47
  'value' => 'default',
48
  'view' => 'radio',
49
  'inline' => true,
50
  'design' => 'inline',
51
  'disableRevertButton' => true,
52
  'choices' => [
53
+ 'default' => __('Default', 'blocksy-companion'),
54
+ 'custom' => __('Custom', 'blocksy-companion'),
55
  ],
56
  ],
57
 
61
  'options' => [
62
 
63
  'newsletter_subscribe_list_id' => [
64
+ 'label' => __( 'List ID', 'blocksy-companion' ),
65
  'type' => 'blocksy-newsletter-subscribe',
66
  'value' => '',
67
  'design' => 'inline',
73
 
74
  'has_newsletter_subscribe_name' => [
75
  'type' => 'ct-switch',
76
+ 'label' => __( 'Name Field', 'blocksy-companion' ),
77
  'value' => 'no',
78
  'disableRevertButton' => true,
79
  ],
85
 
86
  'newsletter_subscribe_name_label' => [
87
  'type' => 'text',
88
+ 'label' => __( 'Name Label', 'blocksy-companion' ),
89
  'design' => 'inline',
90
+ 'value' => __( 'Your name', 'blocksy-companion' ),
91
  'disableRevertButton' => true,
92
  ],
93
 
96
 
97
  'newsletter_subscribe_mail_label' => [
98
  'type' => 'text',
99
+ 'label' => __( 'Mail Label', 'blocksy-companion' ),
100
  'design' => 'inline',
101
+ 'value' => __( 'Your email', 'blocksy-companion' ),
102
  'disableRevertButton' => true,
103
  ],
104
 
105
  'newsletter_subscribe_button_text' => [
106
  'type' => 'text',
107
+ 'label' => __( 'Button Label', 'blocksy-companion' ),
108
  'design' => 'inline',
109
+ 'value' => __( 'Subscribe', 'blocksy-companion' ),
110
  'disableRevertButton' => true,
111
  ],
112
 
113
  'newsletter_subscribe_container' => [
114
+ 'label' => __( 'Container Type', 'blocksy-companion' ),
115
  'type' => 'ct-select',
116
  'value' => 'default',
117
  'design' => 'inline',
118
  'disableRevertButton' => true,
119
  'choices' => [
120
+ 'default' => __( 'Default', 'blocksy-companion' ),
121
+ 'boxed' => __( 'Boxed', 'blocksy-companion' ),
122
  ],
123
  ],
124
 
125
  'newsletter_subscribe_alignment' => [
126
  'type' => 'ct-radio',
127
+ 'label' => __( 'Content Alignment', 'blocksy-companion' ),
128
  'value' => 'left',
129
  'view' => 'text',
130
  'design' => 'inline',
framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/view.php CHANGED
@@ -9,14 +9,14 @@
9
 
10
 
11
  // Widget title
12
- $title = blocksy_default_akg( 'title', $atts, __( 'Newsletter', 'blc' ) );
13
 
14
 
15
  // Message
16
- $message = do_shortcode(blocksy_default_akg( 'newsletter_subscribe_text', $atts, __( 'Enter your email address below to subscribe to our newsletter', 'blc' )));
17
 
18
  // Button text
19
- $button_text = blocksy_default_akg( 'newsletter_subscribe_button_text', $atts, __( 'Subscribe', 'blc' ) );
20
 
21
  // Form name
22
  $has_name = blocksy_default_akg( 'has_newsletter_subscribe_name', $atts, 'no' ) === 'yes';
@@ -66,8 +66,8 @@ if ( $container !== 'default' ) {
66
  // Content alignment
67
  $alignment = blocksy_default_akg('newsletter_subscribe_alignment', $atts, 'left');
68
 
69
- $name_label = blocksy_default_akg('newsletter_subscribe_name_label', $atts, __('Your name', 'blc'));
70
- $email_label = blocksy_default_akg('newsletter_subscribe_mail_label', $atts, __('Your email', 'blc'));
71
 
72
  $data_alignment = '';
73
 
@@ -101,10 +101,10 @@ echo $before_title . wp_kses_post($title) . $after_title;
101
  <?php } ?>
102
 
103
  <?php if ($has_name) { ?>
104
- <input type="text" name="FNAME" placeholder="<?php esc_attr_e($name_label, 'blc'); ?>" title="<?php echo __('Name', 'blocksy') ?>" />
105
  <?php } ?>
106
 
107
- <input type="email" name="EMAIL" placeholder="<?php esc_attr_e($email_label, 'blc'); ?> *" title="<?php echo __('Email', 'blocksy') ?>" required />
108
 
109
  <button class="button">
110
  <?php echo esc_html($button_text) ?>
9
 
10
 
11
  // Widget title
12
+ $title = blocksy_default_akg( 'title', $atts, __( 'Newsletter', 'blocksy-companion' ) );
13
 
14
 
15
  // Message
16
+ $message = do_shortcode(blocksy_default_akg( 'newsletter_subscribe_text', $atts, __( 'Enter your email address below to subscribe to our newsletter', 'blocksy-companion' )));
17
 
18
  // Button text
19
+ $button_text = blocksy_default_akg( 'newsletter_subscribe_button_text', $atts, __( 'Subscribe', 'blocksy-companion' ) );
20
 
21
  // Form name
22
  $has_name = blocksy_default_akg( 'has_newsletter_subscribe_name', $atts, 'no' ) === 'yes';
66
  // Content alignment
67
  $alignment = blocksy_default_akg('newsletter_subscribe_alignment', $atts, 'left');
68
 
69
+ $name_label = blocksy_default_akg('newsletter_subscribe_name_label', $atts, __('Your name', 'blocksy-companion'));
70
+ $email_label = blocksy_default_akg('newsletter_subscribe_mail_label', $atts, __('Your email', 'blocksy-companion'));
71
 
72
  $data_alignment = '';
73
 
101
  <?php } ?>
102
 
103
  <?php if ($has_name) { ?>
104
+ <input type="text" name="FNAME" placeholder="<?php esc_attr_e($name_label, 'blocksy-companion'); ?>" title="<?php echo __('Name', 'blocksy') ?>" />
105
  <?php } ?>
106
 
107
+ <input type="email" name="EMAIL" placeholder="<?php esc_attr_e($email_label, 'blocksy-companion'); ?> *" title="<?php echo __('Email', 'blocksy') ?>" required />
108
 
109
  <button class="button">
110
  <?php echo esc_html($button_text) ?>
framework/extensions/newsletter-subscribe/ct-newsletter-subscribe/widget.php CHANGED
@@ -10,8 +10,8 @@
10
  class Blocksy_Widget_Ct_Newsletter_Subscribe extends BlocksyWidgetFactory {
11
  protected function get_config() {
12
  return [
13
- 'name' => __('Newsletter Subscribe', 'blc'),
14
- 'description' => __('Newsletter subscribe form', 'blc'),
15
  ];
16
  }
17
 
10
  class Blocksy_Widget_Ct_Newsletter_Subscribe extends BlocksyWidgetFactory {
11
  protected function get_config() {
12
  return [
13
+ 'name' => __('Newsletter Subscribe', 'blocksy-companion'),
14
+ 'description' => __('Newsletter subscribe form', 'blocksy-companion'),
15
  ];
16
  }
17
 
framework/extensions/newsletter-subscribe/customizer.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  $options = [
4
- 'label' => __( 'Subscribe Form', 'blc' ),
5
  'type' => 'ct-panel',
6
  'switch' => true,
7
  'value' => 'yes',
@@ -9,24 +9,24 @@ $options = [
9
  'inner-options' => [
10
 
11
  blocksy_rand_md5() => [
12
- 'title' => __( 'General', 'blc' ),
13
  'type' => 'tab',
14
  'options' => [
15
 
16
  'newsletter_subscribe_title' => [
17
  'type' => 'text',
18
- 'label' => __( 'Title', 'blc' ),
19
  'field_attr' => [ 'id' => 'widget-title' ],
20
  'design' => 'block',
21
- 'value' => __( 'Newsletter Updates', 'blc' ),
22
  'disableRevertButton' => true,
23
  'setting' => [ 'transport' => 'postMessage' ],
24
  ],
25
 
26
  'newsletter_subscribe_text' => [
27
- 'label' => __( 'Description', 'blc' ),
28
  'type' => 'textarea',
29
- 'value' => __( 'Enter your email address below to subscribe to our newsletter', 'blc' ),
30
  'design' => 'block',
31
  'disableRevertButton' => true,
32
  'setting' => [ 'transport' => 'postMessage' ],
@@ -39,15 +39,15 @@ $options = [
39
 
40
  'newsletter_subscribe_list_id_source' => [
41
  'type' => 'ct-radio',
42
- 'label' => __( 'List Source', 'blc' ),
43
  'value' => 'default',
44
  'view' => 'radio',
45
  'inline' => true,
46
  'design' => 'inline',
47
  'disableRevertButton' => true,
48
  'choices' => [
49
- 'default' => __('Default', 'blc'),
50
- 'custom' => __('Custom', 'blc'),
51
  ],
52
 
53
  'setting' => [ 'transport' => 'postMessage' ],
@@ -59,7 +59,7 @@ $options = [
59
  'options' => [
60
 
61
  'newsletter_subscribe_list_id' => [
62
- 'label' => __( 'List ID', 'blc' ),
63
  'type' => 'blocksy-newsletter-subscribe',
64
  'value' => '',
65
  'design' => 'inline',
@@ -77,7 +77,7 @@ $options = [
77
 
78
  'has_newsletter_subscribe_name' => [
79
  'type' => 'ct-switch',
80
- 'label' => __( 'Name Field', 'blc' ),
81
  'value' => 'no',
82
  'disableRevertButton' => true,
83
  'setting' => [ 'transport' => 'postMessage' ],
@@ -90,9 +90,9 @@ $options = [
90
 
91
  'newsletter_subscribe_name_label' => [
92
  'type' => 'text',
93
- 'label' => __( 'Name Label', 'blc' ),
94
  'design' => 'inline',
95
- 'value' => __( 'Your name', 'blc' ),
96
  'disableRevertButton' => true,
97
  'setting' => [ 'transport' => 'postMessage' ],
98
  ],
@@ -102,18 +102,18 @@ $options = [
102
 
103
  'newsletter_subscribe_mail_label' => [
104
  'type' => 'text',
105
- 'label' => __( 'Mail Label', 'blc' ),
106
  'design' => 'inline',
107
- 'value' => __( 'Your email', 'blc' ),
108
  'disableRevertButton' => true,
109
  'setting' => [ 'transport' => 'postMessage' ],
110
  ],
111
 
112
  'newsletter_subscribe_button_text' => [
113
  'type' => 'text',
114
- 'label' => __( 'Button Label', 'blc' ),
115
  'design' => 'inline',
116
- 'value' => __( 'Subscribe', 'blc' ),
117
  'disableRevertButton' => true,
118
  'setting' => [ 'transport' => 'postMessage' ],
119
  ],
@@ -123,7 +123,7 @@ $options = [
123
  ],
124
 
125
  'newsletter_subscribe_subscribe_visibility' => [
126
- 'label' => __( 'Visibility', 'blc' ),
127
  'type' => 'ct-visibility',
128
  'design' => 'block',
129
  'setting' => [ 'transport' => 'postMessage' ],
@@ -134,9 +134,9 @@ $options = [
134
  ],
135
 
136
  'choices' => blocksy_ordered_keys([
137
- 'desktop' => __( 'Desktop', 'blc' ),
138
- 'tablet' => __( 'Tablet', 'blc' ),
139
- 'mobile' => __( 'Mobile', 'blc' ),
140
  ]),
141
  ],
142
 
@@ -144,12 +144,12 @@ $options = [
144
  ],
145
 
146
  blocksy_rand_md5() => [
147
- 'title' => __( 'Design', 'blc' ),
148
  'type' => 'tab',
149
  'options' => [
150
 
151
  'newsletter_subscribe_title_color' => [
152
- 'label' => __( 'Title Color', 'blc' ),
153
  'type' => 'ct-color-picker',
154
  'design' => 'inline',
155
  'setting' => [ 'transport' => 'postMessage' ],
@@ -162,7 +162,7 @@ $options = [
162
 
163
  'pickers' => [
164
  [
165
- 'title' => __( 'Initial', 'blc' ),
166
  'id' => 'default',
167
  'inherit' => 'var(--heading-color, var(--heading-3-color, var(--headings-color)))'
168
  ],
@@ -170,7 +170,7 @@ $options = [
170
  ],
171
 
172
  'newsletter_subscribe_content' => [
173
- 'label' => __( 'Description Color', 'blc' ),
174
  'type' => 'ct-color-picker',
175
  'design' => 'inline',
176
  'setting' => [ 'transport' => 'postMessage' ],
@@ -187,13 +187,13 @@ $options = [
187
 
188
  'pickers' => [
189
  [
190
- 'title' => __( 'Initial', 'blc' ),
191
  'id' => 'default',
192
  'inherit' => 'var(--color)'
193
  ],
194
 
195
  [
196
- 'title' => __( 'Hover', 'blc' ),
197
  'id' => 'hover',
198
  'inherit' => 'var(--linkHoverColor)'
199
  ],
@@ -201,7 +201,7 @@ $options = [
201
  ],
202
 
203
  'newsletter_subscribe_input_font_color' => [
204
- 'label' => __( 'Input Font Color', 'blc' ),
205
  'type' => 'ct-color-picker',
206
  'design' => 'inline',
207
  'divider' => 'top',
@@ -219,13 +219,13 @@ $options = [
219
 
220
  'pickers' => [
221
  [
222
- 'title' => __( 'Initial', 'blc' ),
223
  'id' => 'default',
224
  'inherit' => 'var(--form-text-initial-color, var(--color))'
225
  ],
226
 
227
  [
228
- 'title' => __( 'Focus', 'blc' ),
229
  'id' => 'focus',
230
  'inherit' => 'var(--form-text-focus-color, var(--color))'
231
  ],
@@ -233,7 +233,7 @@ $options = [
233
  ],
234
 
235
  'newsletter_subscribe_border_color' => [
236
- 'label' => __( 'Input Border Color', 'blc' ),
237
  'type' => 'ct-color-picker',
238
  'design' => 'inline',
239
  'setting' => [ 'transport' => 'postMessage' ],
@@ -250,13 +250,13 @@ $options = [
250
 
251
  'pickers' => [
252
  [
253
- 'title' => __( 'Initial', 'blc' ),
254
  'id' => 'default',
255
  'inherit' => 'var(--form-field-border-initial-color)'
256
  ],
257
 
258
  [
259
- 'title' => __( 'Focus', 'blc' ),
260
  'id' => 'focus',
261
  'inherit' => 'var(--form-field-border-focus-color)'
262
  ],
@@ -270,7 +270,7 @@ $options = [
270
  'options' => [
271
 
272
  'newsletter_subscribe_input_background' => [
273
- 'label' => __( 'Input Background Color', 'blc' ),
274
  'type' => 'ct-color-picker',
275
  'design' => 'inline',
276
  'setting' => [ 'transport' => 'postMessage' ],
@@ -287,12 +287,12 @@ $options = [
287
 
288
  'pickers' => [
289
  [
290
- 'title' => __( 'Initial', 'blc' ),
291
  'id' => 'default',
292
  ],
293
 
294
  [
295
- 'title' => __( 'Focus', 'blc' ),
296
  'id' => 'focus',
297
  ],
298
  ],
@@ -302,7 +302,7 @@ $options = [
302
  ],
303
 
304
  'newsletter_subscribe_button' => [
305
- 'label' => __( 'Button Color', 'blc' ),
306
  'type' => 'ct-color-picker',
307
  'design' => 'inline',
308
  'setting' => [ 'transport' => 'postMessage' ],
@@ -319,19 +319,19 @@ $options = [
319
 
320
  'pickers' => [
321
  [
322
- 'title' => __( 'Initial', 'blc' ),
323
  'id' => 'default',
324
  ],
325
 
326
  [
327
- 'title' => __( 'Hover', 'blc' ),
328
  'id' => 'hover',
329
  ],
330
  ],
331
  ],
332
 
333
  'newsletter_subscribe_container_background' => [
334
- 'label' => __( 'Container Background', 'blc' ),
335
  'type' => 'ct-background',
336
  'design' => 'block:right',
337
  'responsive' => true,
@@ -347,7 +347,7 @@ $options = [
347
  ],
348
 
349
  'newsletter_subscribe_container_border' => [
350
- 'label' => __( 'Container Border', 'blc' ),
351
  'type' => 'ct-border',
352
  'sync' => 'live',
353
  'design' => 'block',
@@ -382,7 +382,7 @@ $options = [
382
  ],
383
 
384
  'newsletter_subscribe_container_spacing' => [
385
- 'label' => __( 'Container Inner Spacing', 'blc' ),
386
  'type' => 'ct-spacing',
387
  'divider' => 'top',
388
  'setting' => [ 'transport' => 'postMessage' ],
@@ -397,7 +397,7 @@ $options = [
397
  ],
398
 
399
  'newsletter_subscribe_container_border_radius' => [
400
- 'label' => __( 'Container Border Radius', 'blc' ),
401
  'type' => 'ct-spacing',
402
  'divider' => 'top',
403
  'setting' => [ 'transport' => 'postMessage' ],
1
  <?php
2
 
3
  $options = [
4
+ 'label' => __( 'Subscribe Form', 'blocksy-companion' ),
5
  'type' => 'ct-panel',
6
  'switch' => true,
7
  'value' => 'yes',
9
  'inner-options' => [
10
 
11
  blocksy_rand_md5() => [
12
+ 'title' => __( 'General', 'blocksy-companion' ),
13
  'type' => 'tab',
14
  'options' => [
15
 
16
  'newsletter_subscribe_title' => [
17
  'type' => 'text',
18
+ 'label' => __( 'Title', 'blocksy-companion' ),
19
  'field_attr' => [ 'id' => 'widget-title' ],
20
  'design' => 'block',
21
+ 'value' => __( 'Newsletter Updates', 'blocksy-companion' ),
22
  'disableRevertButton' => true,
23
  'setting' => [ 'transport' => 'postMessage' ],
24
  ],
25
 
26
  'newsletter_subscribe_text' => [
27
+ 'label' => __( 'Description', 'blocksy-companion' ),
28
  'type' => 'textarea',
29
+ 'value' => __( 'Enter your email address below to subscribe to our newsletter', 'blocksy-companion' ),
30
  'design' => 'block',
31
  'disableRevertButton' => true,
32
  'setting' => [ 'transport' => 'postMessage' ],
39
 
40
  'newsletter_subscribe_list_id_source' => [
41
  'type' => 'ct-radio',
42
+ 'label' => __( 'List Source', 'blocksy-companion' ),
43
  'value' => 'default',
44
  'view' => 'radio',
45
  'inline' => true,
46
  'design' => 'inline',
47
  'disableRevertButton' => true,
48
  'choices' => [
49
+ 'default' => __('Default', 'blocksy-companion'),
50
+ 'custom' => __('Custom', 'blocksy-companion'),
51
  ],
52
 
53
  'setting' => [ 'transport' => 'postMessage' ],
59
  'options' => [
60
 
61
  'newsletter_subscribe_list_id' => [
62
+ 'label' => __( 'List ID', 'blocksy-companion' ),
63
  'type' => 'blocksy-newsletter-subscribe',
64
  'value' => '',
65
  'design' => 'inline',
77
 
78
  'has_newsletter_subscribe_name' => [
79
  'type' => 'ct-switch',
80
+ 'label' => __( 'Name Field', 'blocksy-companion' ),
81
  'value' => 'no',
82
  'disableRevertButton' => true,
83
  'setting' => [ 'transport' => 'postMessage' ],
90
 
91
  'newsletter_subscribe_name_label' => [
92
  'type' => 'text',
93
+ 'label' => __( 'Name Label', 'blocksy-companion' ),
94
  'design' => 'inline',
95
+ 'value' => __( 'Your name', 'blocksy-companion' ),
96
  'disableRevertButton' => true,
97
  'setting' => [ 'transport' => 'postMessage' ],
98
  ],
102
 
103
  'newsletter_subscribe_mail_label' => [
104
  'type' => 'text',
105
+ 'label' => __( 'Mail Label', 'blocksy-companion' ),
106
  'design' => 'inline',
107
+ 'value' => __( 'Your email', 'blocksy-companion' ),
108
  'disableRevertButton' => true,
109
  'setting' => [ 'transport' => 'postMessage' ],
110
  ],
111
 
112
  'newsletter_subscribe_button_text' => [
113
  'type' => 'text',
114
+ 'label' => __( 'Button Label', 'blocksy-companion' ),
115
  'design' => 'inline',
116
+ 'value' => __( 'Subscribe', 'blocksy-companion' ),
117
  'disableRevertButton' => true,
118
  'setting' => [ 'transport' => 'postMessage' ],
119
  ],
123
  ],
124
 
125
  'newsletter_subscribe_subscribe_visibility' => [
126
+ 'label' => __( 'Visibility', 'blocksy-companion' ),
127
  'type' => 'ct-visibility',
128
  'design' => 'block',
129
  'setting' => [ 'transport' => 'postMessage' ],
134
  ],
135
 
136
  'choices' => blocksy_ordered_keys([
137
+ 'desktop' => __( 'Desktop', 'blocksy-companion' ),
138
+ 'tablet' => __( 'Tablet', 'blocksy-companion' ),
139
+ 'mobile' => __( 'Mobile', 'blocksy-companion' ),
140
  ]),
141
  ],
142
 
144
  ],
145
 
146
  blocksy_rand_md5() => [
147
+ 'title' => __( 'Design', 'blocksy-companion' ),
148
  'type' => 'tab',
149
  'options' => [
150
 
151
  'newsletter_subscribe_title_color' => [
152
+ 'label' => __( 'Title Color', 'blocksy-companion' ),
153
  'type' => 'ct-color-picker',
154
  'design' => 'inline',
155
  'setting' => [ 'transport' => 'postMessage' ],
162
 
163
  'pickers' => [
164
  [
165
+ 'title' => __( 'Initial', 'blocksy-companion' ),
166
  'id' => 'default',
167
  'inherit' => 'var(--heading-color, var(--heading-3-color, var(--headings-color)))'
168
  ],
170
  ],
171
 
172
  'newsletter_subscribe_content' => [
173
+ 'label' => __( 'Description Color', 'blocksy-companion' ),
174
  'type' => 'ct-color-picker',
175
  'design' => 'inline',
176
  'setting' => [ 'transport' => 'postMessage' ],
187
 
188
  'pickers' => [
189
  [
190
+ 'title' => __( 'Initial', 'blocksy-companion' ),
191
  'id' => 'default',
192
  'inherit' => 'var(--color)'
193
  ],
194
 
195
  [
196
+ 'title' => __( 'Hover', 'blocksy-companion' ),
197
  'id' => 'hover',
198
  'inherit' => 'var(--linkHoverColor)'
199
  ],
201
  ],
202
 
203
  'newsletter_subscribe_input_font_color' => [
204
+ 'label' => __( 'Input Font Color', 'blocksy-companion' ),
205
  'type' => 'ct-color-picker',
206
  'design' => 'inline',
207
  'divider' => 'top',
219
 
220
  'pickers' => [
221
  [
222
+ 'title' => __( 'Initial', 'blocksy-companion' ),
223
  'id' => 'default',
224
  'inherit' => 'var(--form-text-initial-color, var(--color))'
225
  ],
226
 
227
  [
228
+ 'title' => __( 'Focus', 'blocksy-companion' ),
229
  'id' => 'focus',
230
  'inherit' => 'var(--form-text-focus-color, var(--color))'
231
  ],
233
  ],
234
 
235
  'newsletter_subscribe_border_color' => [
236
+ 'label' => __( 'Input Border Color', 'blocksy-companion' ),
237
  'type' => 'ct-color-picker',
238
  'design' => 'inline',
239
  'setting' => [ 'transport' => 'postMessage' ],
250
 
251
  'pickers' => [
252
  [
253
+ 'title' => __( 'Initial', 'blocksy-companion' ),
254
  'id' => 'default',
255
  'inherit' => 'var(--form-field-border-initial-color)'
256
  ],
257
 
258
  [
259
+ 'title' => __( 'Focus', 'blocksy-companion' ),
260
  'id' => 'focus',
261
  'inherit' => 'var(--form-field-border-focus-color)'
262
  ],
270
  'options' => [
271
 
272
  'newsletter_subscribe_input_background' => [
273
+ 'label' => __( 'Input Background Color', 'blocksy-companion' ),
274
  'type' => 'ct-color-picker',
275
  'design' => 'inline',
276
  'setting' => [ 'transport' => 'postMessage' ],
287
 
288
  'pickers' => [
289
  [
290
+ 'title' => __( 'Initial', 'blocksy-companion' ),
291
  'id' => 'default',
292
  ],
293
 
294
  [
295
+ 'title' => __( 'Focus', 'blocksy-companion' ),
296
  'id' => 'focus',
297
  ],
298
  ],
302
  ],
303
 
304
  'newsletter_subscribe_button' => [
305
+ 'label' => __( 'Button Color', 'blocksy-companion' ),
306
  'type' => 'ct-color-picker',
307
  'design' => 'inline',
308
  'setting' => [ 'transport' => 'postMessage' ],
319
 
320
  'pickers' => [
321
  [
322
+ 'title' => __( 'Initial', 'blocksy-companion' ),
323
  'id' => 'default',
324
  ],
325
 
326
  [
327
+ 'title' => __( 'Hover', 'blocksy-companion' ),
328
  'id' => 'hover',
329
  ],
330
  ],
331
  ],
332
 
333
  'newsletter_subscribe_container_background' => [
334
+ 'label' => __( 'Container Background', 'blocksy-companion' ),
335
  'type' => 'ct-background',
336
  'design' => 'block:right',
337
  'responsive' => true,
347
  ],
348
 
349
  'newsletter_subscribe_container_border' => [
350
+ 'label' => __( 'Container Border', 'blocksy-companion' ),
351
  'type' => 'ct-border',
352
  'sync' => 'live',
353
  'design' => 'block',
382
  ],
383
 
384
  'newsletter_subscribe_container_spacing' => [
385
+ 'label' => __( 'Container Inner Spacing', 'blocksy-companion' ),
386
  'type' => 'ct-spacing',
387
  'divider' => 'top',
388
  'setting' => [ 'transport' => 'postMessage' ],
397
  ],
398
 
399
  'newsletter_subscribe_container_border_radius' => [
400
+ 'label' => __( 'Container Border Radius', 'blocksy-companion' ),
401
  'type' => 'ct-spacing',
402
  'divider' => 'top',
403
  'setting' => [ 'transport' => 'postMessage' ],
framework/extensions/newsletter-subscribe/dashboard-static/bundle/main.js CHANGED
@@ -3,7 +3,7 @@
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.blocksyOptions},function(e,t,n){"use strict";e.exports=n(13)},function(e,t){e.exports=window.ctEvents},function(e,t,n){var r,o,i=n(11),a=n(12),u=(o=[],{activateTrap:function(e){if(o.length>0){var t=o[o.length-1];t!==e&&t.pause()}var n=o.indexOf(e);-1===n||o.splice(n,1),o.push(e)},deactivateTrap:function(e){var t=o.indexOf(e);-1!==t&&o.splice(t,1),o.length>0&&o[o.length-1].unpause()}});function c(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,o="string"==typeof e?n.querySelector(e):e,s=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),l={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},d={activate:function(e){if(l.active)return;O(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:s.onActivate;t&&t();return f(),d},deactivate:p,pause:function(){if(l.paused||!l.active)return;l.paused=!0,h()},unpause:function(){if(!l.paused||!l.active)return;l.paused=!1,O(),f()}};return d;function p(e){if(l.active){clearTimeout(r),h(),l.active=!1,l.paused=!1,u.deactivateTrap(d);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:s.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:s.returnFocusOnDeactivate)&&c((function(){var e;w((e=l.nodeFocusedBeforeActivation,m("setReturnFocus")||e))})),d}}function f(){if(l.active)return u.activateTrap(d),r=c((function(){w(v())})),n.addEventListener("focusin",b,!0),n.addEventListener("mousedown",g,{capture:!0,passive:!1}),n.addEventListener("touchstart",g,{capture:!0,passive:!1}),n.addEventListener("click",I,{capture:!0,passive:!1}),n.addEventListener("keydown",y,{capture:!0,passive:!1}),d}function h(){if(l.active)return n.removeEventListener("focusin",b,!0),n.removeEventListener("mousedown",g,!0),n.removeEventListener("touchstart",g,!0),n.removeEventListener("click",I,!0),n.removeEventListener("keydown",y,!0),d}function m(e){var t=s[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function v(){var e;if(!(e=null!==m("initialFocus")?m("initialFocus"):o.contains(n.activeElement)?n.activeElement:l.firstTabbableNode||m("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function g(e){o.contains(e.target)||(s.clickOutsideDeactivates?p({returnFocus:!i.isFocusable(e.target)}):s.allowOutsideClick&&s.allowOutsideClick(e)||e.preventDefault())}function b(e){o.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),w(l.mostRecentlyFocusedNode||v()))}function y(e){if(!1!==s.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void p();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(O(),e.shiftKey&&e.target===l.firstTabbableNode)return e.preventDefault(),void w(l.lastTabbableNode);if(!e.shiftKey&&e.target===l.lastTabbableNode)e.preventDefault(),w(l.firstTabbableNode)}(e)}function I(e){s.clickOutsideDeactivates||o.contains(e.target)||s.allowOutsideClick&&s.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function O(){var e=i(o);l.firstTabbableNode=e[0]||v(),l.lastTabbableNode=e[e.length-1]||v()}function w(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),l.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):w(v()))}}},function(e,t,n){"use strict";var r=n(10);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],r=n.join(","),o="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function i(e,t){t=t||{};var n,i,u,c=[],d=[],p=e.querySelectorAll(r);for(t.includeContainer&&o.call(e,r)&&(p=Array.prototype.slice.apply(p)).unshift(e),n=0;n<p.length;n++)a(i=p[n])&&(0===(u=s(i))?c.push(i):d.push({documentOrder:n,tabIndex:u,node:i}));return d.sort(l).map((function(e){return e.node})).concat(c)}function a(e){return!(!u(e)||function(e){return function(e){return d(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||s(e)<0)}function u(e){return!(e.disabled||function(e){return d(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}i.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==o.call(e,r)&&a(e)},i.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==o.call(e,c)&&u(e)};var c=n.concat("iframe").join(",");function s(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function l(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function d(e){return"INPUT"===e.tagName}e.exports=i},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";
7
  /** @license React v16.13.1
8
  * react-is.production.min.js
9
  *
@@ -11,4 +11,4 @@
11
  *
12
  * This source code is licensed under the MIT license found in the
13
  * LICENSE file in the root directory of this source tree.
14
- */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,I=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case p:case a:case c:case u:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case v:case s:return e;default:return t}}case i:return t}}}function S(e){return w(e)===p}t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=i,t.Profiler=c,t.StrictMode=u,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||w(e)===d},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===c},t.isStrictMode=function(e){return w(e)===u},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===u||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===s||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===I||e.$$typeof===O||e.$$typeof===b)},t.typeOf=w},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(7),i=n.n(o),a=n(2),u=n(4),c=n.n(u),s=n(3),l=n.n(s),d=n(1),p=n.n(d);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e){e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render;return function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["initialState","getInitialState","refs","getRefs","didMount","didUpdate","willUnmount","getSnapshotBeforeUpdate","shouldUpdate","render"])},v=function(e){function t(){var n,r;f(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(i))),g.call(r),h(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getArgs=function(){var e=this.state,t=this.props,n=this._setState,r=this._forceUpdate,o=this._refs;return{state:e,props:m(t),refs:o,setState:n,forceUpdate:r}},t.prototype.componentDidMount=function(){this.props.didMount&&this.props.didMount(this.getArgs())},t.prototype.shouldComponentUpdate=function(e,t){return!this.props.shouldUpdate||this.props.shouldUpdate({props:this.props,state:this.state,nextProps:m(e),nextState:t})},t.prototype.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:m(this.props),refs:this._refs})},t.prototype.componentDidUpdate=function(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t}),n)},t.prototype.getSnapshotBeforeUpdate=function(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t})):null},t.prototype.render=function(){var e=this.props,t=e.children,n=e.render;return n?n(this.getArgs()):"function"==typeof t?t(this.getArgs()):t||null},t}(l.a.Component);v.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var g=function(){var e=this;this.state=this.props.initialState||this.props.getInitialState(this.props),this._refs=this.props.refs||this.props.getRefs(this.getArgs()),this._setState=function(){return e.setState.apply(e,arguments)},this._forceUpdate=function(){return e.forceUpdate.apply(e,arguments)}},b=v,y=function(e){var t=e.children,n=e.container,o=void 0===n?document.body:n,i=e.type,a=void 0===i?"reach-portal":i;return Object(r.createElement)(b,{getRefs:function(){return{node:null}},didMount:function(e){var t=e.refs,n=e.forceUpdate,r=o.hasOwnProperty("current")?o.current:o;t.node=document.createElement(a),r.appendChild(t.node),n()},willUnmount:function(e){var t=e.refs.node,n=o.hasOwnProperty("current")?o.current:o;n&&n.removeChild(t)},render:function(e){var n=e.refs.node;return n?Object(r.createPortal)(t,n):null}})};var I=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},O=n(8),w=n.n(O);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E=function(){},j=function(){},_=function(e,t){var n,r,o;e.disposeAriaHider=(n=e.overlayNode,r=[],o=[],Array.prototype.forEach.call(document.querySelectorAll("body > *"),(function(e){if(e!==n.parentNode){var t=e.getAttribute("aria-hidden");null!==t&&"false"!==t||(r.push(t),o.push(e),e.setAttribute("aria-hidden","true"))}})),function(){o.forEach((function(e,t){var n=r[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)}))}),e.trap=w()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})},C=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},P=React.createContext(),k=React.forwardRef((function(e,t){var n=e.container,o=e.isOpen,i=void 0===o||o,a=e.onDismiss,u=void 0===a?E:a,c=e.initialFocusRef,s=e.onClick,l=e.onKeyDown,d=x(e,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return Object(r.createElement)(b,{didMount:j},i?Object(r.createElement)(y,{container:n,"data-reach-dialog-wrapper":!0},Object(r.createElement)(b,{refs:{overlayNode:null,contentNode:null},didMount:function(e){var t=e.refs;_(t,c)},willUnmount:C},(function(e){var n=e.refs;return Object(r.createElement)(P.Provider,{value:function(e){return n.contentNode=e}},Object(r.createElement)("div",S({"data-reach-dialog-overlay":!0,onClick:I(s,(function(e){e.stopPropagation(),u()})),onKeyDown:I(l,(function(e){"Escape"===e.key&&(e.stopPropagation(),u())})),ref:function(e){n.overlayNode=e,t&&t(e)}},d)))}))):null)}));k.propTypes={initialFocusRef:function(){}};var A=function(e){return e.stopPropagation()},D=React.forwardRef((function(e,t){var n=e.onClick,o=(e.onKeyDown,x(e,["onClick","onKeyDown"]));return Object(r.createElement)(P.Consumer,null,(function(e){return Object(r.createElement)("div",S({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:I(n,A),ref:function(n){e(n),t&&t(n)}},o))}))})),M=n(5),T=function(e){return!!e},H=function(e){var t=e.items,n=e.isVisible,o=void 0===n?T:n,i=e.render,a=e.className,u=e.onDismiss;return Object(r.createElement)(M.Transition,{items:t,onStart:function(){return document.body.classList[o(t)?"add":"remove"]("ct-dashboard-overlay-open")},config:{duration:200},from:{opacity:0,y:-10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}},(function(e){return o(e)&&function(t){return Object(r.createElement)(k,{style:{opacity:t.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return u()}},Object(r.createElement)(D,{className:c()("ct-admin-modal",a),style:{transform:"translate3d(0px, ".concat(t.y,"px, 0px)")}},Object(r.createElement)("button",{className:"close-button",onClick:function(){return u()}},"×"),i(e,t)))}}))};function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var L=function(e){var t=R(Object(r.useState)(!1),2),n=t[0],o=t[1];return[function(){return o(!0)},Object(r.createElement)(H,{items:n,onDismiss:function(){return o(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content",dangerouslySetInnerHTML:{__html:e.readme}})}})]};function U(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function K(){return(K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(6);function V(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function B(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function $(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return B(n.overflowY,t)||B(n.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function W(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}var z=0;function q(e){return"function"==typeof e?e:Y}function Y(){}function X(e,t){null!==e&&function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,u="function"==typeof i?i:function(e){return e!==i};if(!V(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,s=[],l=e;V(l)&&u(l);){if((l=l.parentNode)===c){s.push(l);break}l===document.body&&$(l)&&!$(document.documentElement)||$(l,a)&&s.push(l)}for(var d=window.visualViewport?visualViewport.width:innerWidth,p=window.visualViewport?visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),v=m.height,g=m.width,b=m.top,y=m.right,I=m.bottom,O=m.left,w="start"===r||"nearest"===r?b:"end"===r?I:b+v/2,S="center"===o?O+g/2:"end"===o?y:O,x=[],E=0;E<s.length;E++){var j=s[E],_=j.getBoundingClientRect(),C=_.height,P=_.width,k=_.top,A=_.right,D=_.bottom,M=_.left;if("if-needed"===n&&b>=0&&O>=0&&I<=p&&y<=d&&b>=k&&I<=D&&O>=M&&y<=A)return x;var T=getComputedStyle(j),H=parseInt(T.borderLeftWidth,10),R=parseInt(T.borderTopWidth,10),N=parseInt(T.borderRightWidth,10),L=parseInt(T.borderBottomWidth,10),U=0,K=0,F="offsetWidth"in j?j.offsetWidth-j.clientWidth-H-N:0,B="offsetHeight"in j?j.offsetHeight-j.clientHeight-R-L:0;if(c===j)U="start"===r?w:"end"===r?w-p:"nearest"===r?W(h,h+p,p,R,L,h+w,h+w+v,v):w-p/2,K="start"===o?S:"center"===o?S-d/2:"end"===o?S-d:W(f,f+d,d,H,N,f+S,f+S+g,g),U=Math.max(0,U+h),K=Math.max(0,K+f);else{U="start"===r?w-k-R:"end"===r?w-D+L+B:"nearest"===r?W(k,D,C,R,L+B,w,w+v,v):w-(k+C/2)+B/2,K="start"===o?S-M-H:"center"===o?S-(M+P/2)+F/2:"end"===o?S-A+N+F:W(M,A,P,H,N+F,S,S+g,g);var z=j.scrollLeft,q=j.scrollTop;w+=q-(U=Math.max(0,Math.min(q+U,j.scrollHeight-C+B))),S+=z-(K=Math.max(0,Math.min(z+K,j.scrollWidth-P+F)))}x.push({el:j,top:U,left:K})}return x}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function G(e,t){return e===t||e.contains&&e.contains(t)}function J(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function Z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function ee(e){var t=e.isOpen,n=e.selectedItem,r=e.resultCount,o=e.previousResultCount,i=e.itemToString;return t?r?r!==o?r+" result"+(1===r?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":n?i(n):""}function te(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function ne(e){return"string"==typeof e.type}function re(e){return e.props}var oe=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function ie(e){void 0===e&&(e={});var t={};return oe.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function ae(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function ue(e,t,n){var r=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:r+1);var o=t+e;return o<0?o=r:o>r&&(o=0),o}var ce=J((function(){le().textContent=""}),500);function se(e,t){var n=le(t);e&&(n.textContent=e,ce())}function le(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var de=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),pe=function(){var e=function(e){var t,n;function r(t){var n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+String(z++),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=ie(t),n.internalSetState(K({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=ie(t),n.internalSetState(K({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,o,i={},a="function"==typeof e;return!a&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,K({},n.getStateAndHelpers(),{},e)),n.setState((function(t){t=n.getState(t);var u=a?e(t):e;u=n.props.stateReducer(t,u),r=u.hasOwnProperty("selectedItem");var c={},s={};return r&&u.selectedItem!==t.selectedItem&&(o=u.selectedItem),u.type=u.type||0,Object.keys(u).forEach((function(e){t[e]!==u[e]&&(i[e]=u[e]),"type"!==e&&(s[e]=u[e],n.isControlledProp(e)||(c[e]=u[e]))})),a&&u.hasOwnProperty("inputValue")&&n.props.onInputValueChange(u.inputValue,K({},n.getStateAndHelpers(),{},u)),c}),(function(){q(t)(),Object.keys(i).length>1&&n.props.onStateChange(i,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==o&&n.props.onChange(o,n.getStateAndHelpers()),n.props.onUserAction(i,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,u=o.ref,c=U(o,["refKey","ref"]),s=(void 0===t?{}:t).suppressRefError,l=void 0!==s&&s;n.getRootProps.called=!0,n.getRootProps.refKey=a,n.getRootProps.suppressRefError=l;var d=n.getState().isOpen;return K(((r={})[a]=Z(u,n.rootRef),r.role="combobox",r["aria-expanded"]=d,r["aria-haspopup"]="listbox",r["aria-owns"]=d?n.menuId:null,r["aria-labelledby"]=n.labelId,r),c)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(ue(1,t.getState().highlightedIndex,e),{type:4})}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(ue(-1,t.getState().highlightedIndex,e),{type:4})}))},Enter:function(e){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}},Escape:function(e){e.preventDefault(),this.reset({type:5,selectedItem:null,inputValue:""})}},n.buttonKeyDownHandlers=K({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=K({},n.keyDownHandlers,{Home:function(e){this.highlightFirstOrLastIndex(e,!0,{type:7})},End:function(e){this.highlightFirstOrLastIndex(e,!1,{type:8})}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick,o=(t.onPress,t.onKeyDown),i=t.onKeyUp,a=t.onBlur,u=U(t,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),c=n.getState().isOpen,s={onClick:Q(r,n.buttonHandleClick),onKeyDown:Q(o,n.buttonHandleKeyDown),onKeyUp:Q(i,n.buttonHandleKeyUp),onBlur:Q(a,n.buttonHandleBlur)};return K({type:"button",role:"button","aria-label":c?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},u.disabled?{}:s,{},u)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=ae(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(F(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return K({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,o=t.onBlur,i=t.onChange,a=t.onInput,u=(t.onChangeText,U(t,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),c={};var s,l=n.getState(),d=l.inputValue,p=l.isOpen,f=l.highlightedIndex;u.disabled||((s={}).onChange=Q(i,a,n.inputHandleChange),s.onKeyDown=Q(r,n.inputHandleKeyDown),s.onBlur=Q(o,n.inputHandleBlur),c=s);return K({"aria-autocomplete":"list","aria-activedescendant":p&&"number"==typeof f&&f>=0?n.getItemId(f):null,"aria-controls":p?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:d,id:n.inputId},c,{},u)},n.inputHandleKeyDown=function(e){var t=ae(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(F(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,u=o.ref,c=U(o,["refKey","ref"]),s=(void 0===t?{}:t).suppressRefError,l=void 0!==s&&s;return n.getMenuProps.called=!0,n.getMenuProps.refKey=a,n.getMenuProps.suppressRefError=l,K(((r={})[a]=Z(u,n.menuRef),r.role="listbox",r["aria-labelledby"]=c&&c["aria-label"]?null:n.labelId,r.id=n.menuId,r),c)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,o=r.onMouseMove,i=r.onMouseDown,a=r.onClick,u=(r.onPress,r.index),c=r.item,s=void 0===c?void 0:c,l=U(r,["onMouseMove","onMouseDown","onClick","onPress","index","item"]);void 0===u?(n.items.push(s),u=n.items.indexOf(s)):n.items[u]=s;var d=a,p=((t={onMouseMove:Q(o,(function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:Q(i,(function(e){e.preventDefault()}))}).onClick=Q(d,(function(){n.selectItemAtIndex(u,{type:9})})),t),f=l.disabled?{onMouseDown:p.onMouseDown}:p;return K({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},f,{},l)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=ie(e),n.internalSetState((function(t){var r=t.selectedItem;return K({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=ie(e),n.internalSetState((function(t){var r=t.isOpen;return K({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},{},e)}),(function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;o&&n.getItemCount()>0&&"number"==typeof i&&n.setHighlightedIndex(i,e),q(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=J((function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),o=n.props.getA11yStatusMessage(K({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,se(o,n.props.environment.document)}),200);var r=n.props,o=r.defaultHighlightedIndex,i=r.initialHighlightedIndex,a=void 0===i?o:i,u=r.defaultIsOpen,c=r.initialIsOpen,s=void 0===c?u:c,l=r.initialInputValue,d=void 0===l?"":l,p=r.initialSelectedItem,f=void 0===p?null:p,h=n.getState({highlightedIndex:a,isOpen:s,inputValue:d,selectedItem:f});return null!=h.selectedItem&&void 0===n.props.initialInputValue&&(h.inputValue=n.props.itemToString(h.selectedItem)),n.state=h,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},o.getState=function(e){var t=this;return void 0===e&&(e=this.state),Object.keys(e).reduce((function(n,r){return n[r]=t.isControlledProp(r)?t.props[r]:e[r],n}),{})},o.isControlledProp=function(e){return void 0!==this.props[e]},o.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},o.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},o.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},o.moveHighlightedIndex=function(e,t){var n=this.getItemCount();if(n>0){var r=ue(e,this.getState().highlightedIndex,n);this.setHighlightedIndex(r,t)}},o.highlightFirstOrLastIndex=function(e,t,n){var r=this.getItemCount()-1;r<0||!this.getState().isOpen||(e.preventDefault(),this.setHighlightedIndex(t?0:r,n))},o.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,u=this.getRootProps,c=this.getToggleButtonProps,s=this.getLabelProps,l=this.getMenuProps,d=this.getInputProps,p=this.getItemProps,f=this.openMenu,h=this.closeMenu,m=this.toggleMenu,v=this.selectItem,g=this.selectItemAtIndex,b=this.selectHighlightedItem,y=this.setHighlightedIndex,I=this.clearSelection,O=this.clearItems;return{getRootProps:u,getToggleButtonProps:c,getLabelProps:s,getMenuProps:l,getInputProps:d,getItemProps:p,reset:this.reset,openMenu:f,closeMenu:h,toggleMenu:m,selectItem:v,selectItemAtIndex:g,selectHighlightedItem:b,setHighlightedIndex:y,clearSelection:I,clearItems:O,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},o.componentDidMount=function(){var e=this;var t=function(t,n){void 0===n&&(n=!0);var r=e.props.environment.document;return[e._rootNode,e._menuNode].some((function(e){return e&&(G(e,t)||n&&G(e,r.activeElement))}))},n=function(){e.isMouseDown=!0},r=function(n){e.isMouseDown=!1,!t(n.target)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},o=function(){e.isTouchMove=!1},i=function(){e.isTouchMove=!0},a=function(n){var r=t(n.target,!1);e.isTouchMove||r||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},u=this.props.environment;u.addEventListener("mousedown",n),u.addEventListener("mouseup",r),u.addEventListener("touchstart",o),u.addEventListener("touchmove",i),u.addEventListener("touchend",a),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),u.removeEventListener("mousedown",n),u.removeEventListener("mouseup",r),u.removeEventListener("touchstart",o),u.removeEventListener("touchmove",i),u.removeEventListener("touchend",a)}},o.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},o.componentDidUpdate=function(e,t){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},o.componentWillUnmount=function(){this.cleanup()},o.render=function(){var e=te(this.props.children,Y);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=te(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:ne(t)?Object(s.cloneElement)(t,this.getRootProps(re(t))):void 0:null},r}(s.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:ee,itemToString:function(e){return null==e?"":String(e)},onStateChange:Y,onInputValueChange:Y,onUserAction:Y,onChange:Y,onSelect:Y,onOuterClick:Y,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:X},e.stateChangeTypes=de,e}();p.a.array.isRequired,p.a.func,p.a.func,p.a.func,p.a.bool,p.a.number,p.a.number,p.a.number,p.a.bool,p.a.bool,p.a.bool,p.a.any,p.a.any,p.a.any,p.a.string,p.a.string,p.a.string,p.a.func,p.a.string,p.a.func,p.a.func,p.a.func,p.a.func,p.a.func,p.a.shape({addEventListener:p.a.func,removeEventListener:p.a.func,document:p.a.shape({getElementById:p.a.func,activeElement:p.a.any,body:p.a.any})});"undefined"==typeof window||window;var fe=pe;function he(){return(he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function me(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var be=function(e){var t=e.listId,n=e.provider,o=e.apiKey,i=e.onChange,u=ve(Object(r.useState)([]),2),s=u[0],l=u[1],d=ve(Object(r.useState)(!1),2),p=d[0],f=d[1],h=ve(Object(r.useState)({controller:null}),2),m=h[0].controller,v=h[1],g=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m&&m.abort(),f(!0),"AbortController"in window&&(m=new AbortController,v({controller:m})),(t=new FormData).append("api_key",o),t.append("provider",n),t.append("action","blocksy_ext_newsletter_subscribe_maybe_get_lists"),e.prev=7,e.next=10,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",signal:m.signal,body:t});case 10:if(200!==(r=e.sent).status){e.next=20;break}return e.next=14,r.json();case 14:if(!(i=e.sent).success){e.next=20;break}if("api_key_invalid"===i.data.result){e.next=20;break}return f(!1),l(i.data.result),e.abrupt("return");case 20:e.next=24;break;case 22:e.prev=22,e.t0=e.catch(7);case 24:l([]),f(!1);case 26:case"end":return e.stop()}}),e,null,[[7,22]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){me(i,r,o,a,u,"next",e)}function u(e){me(i,r,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)((function(){o?g():l([])}),[n,o]),0===s.length?Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",{disabled:!0,placeholder:p?Object(a.__)("Loading","blc"):Object(a.__)("Invalid API Key...","blc")})):Object(r.createElement)(fe,{selectedItem:t||"",onChange:function(e){return i(e)},itemToString:function(e){return e?(s.find((function(t){return t.id===e}))||{}).name:""}},(function(e){var t=e.getInputProps,n=e.getItemProps,o=(e.getLabelProps,e.getMenuProps),i=e.isOpen,u=(e.inputValue,e.highlightedIndex),l=e.selectedItem,d=e.openMenu;return Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",he({},t({onFocus:function(){return d()},onClick:function(){return d()}}),{placeholder:Object(a.__)("Select list...","blc"),readOnly:!0})),i&&Object(r.createElement)("div",o({className:"ct-select-dropdown"}),s.map((function(e,t){return Object(r.createElement)("div",n({key:e.id,index:t,item:e.id,className:c()("ct-select-dropdown-item",{active:u===t,selected:l===e.id})}),e.name)}))))}))};function ye(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var we=function(e){var t=e.extension,n=e.isEditingCredentials,o=e.setIsEditingCredentials,i=e.onCredentialsValidated,u=Ie(Object(r.useState)(t.data.provider),2),s=u[0],l=u[1],d=Ie(Object(r.useState)(t.data.api_key),2),p=d[0],f=d[1],h=Ie(Object(r.useState)(t.data.list_id),2),m=h[0],v=h[1],g=Ie(Object(r.useState)(!1),2),b=g[0],y=g[1],I=Ie(Object(r.useState)(!1),2),O=I[0],w=I[1],S=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).append("provider",s),t.append("api_key",p),t.append("list_id",m),t.append("action","blocksy_ext_newsletter_subscribe_maybe_save_credentials"),y(!0),e.prev=6,e.next=9,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 9:if(200!==(n=e.sent).status){e.next=15;break}return e.next=13,n.json();case 13:(r=e.sent).success&&"api_key_invalid"!==r.data.result&&(i(),w(!1));case 15:w(!0),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(6),w(!0);case 21:return e.next=23,new Promise((function(e){return setTimeout((function(){return e()}),1e3)}));case 23:y(!1);case 24:case"end":return e.stop()}}),e,null,[[6,18]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ye(i,r,o,a,u,"next",e)}function u(e){ye(i,r,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.createElement)(H,{items:n,onDismiss:function(){return o(!1)},className:"ct-mailchimp-modal",render:function(){return Object(r.createElement)("div",{className:c()("ct-modal-content",{"ct-key-invalid":O})},Object(r.createElement)("h2",null,Object(a.__)("API Credentials","blc")),Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(a.__)("Enter your Newsletter provider API credentials in the form below.","blc")}}),Object(r.createElement)("div",{className:"ct-newsletter-select-provider"},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("h4",null,Object(a.__)("Select Provider","blc")),Object(r.createElement)(M.Select,{onChange:function(e){l(e)},option:{placeholder:Object(a.__)("Pick Mailing Service","blc"),choices:[{key:"mailchimp",value:"Mailchimp"},{key:"mailerlite",value:"Mailerlite"}]},value:s})),!ctDashboardLocalizations.plugin_data.is_pro&&"mailchimp"!==s&&Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(a.sprintf)(Object(a.__)("This option is available only in Blocksy premium %sversion%s.","blc"),'<a target="_blank" href="https://creativethemes.com/blocksy/pricing/">',"</a>")}}),"mailchimp"===s&&Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(a.sprintf)(Object(a.__)("More info on how to generate an API key for Mailchimp can be found %shere%s.","blc"),'<a target="_blank" href="https://mailchimp.com/help/about-api-keys/">',"</a>")}}),ctDashboardLocalizations.plugin_data.is_pro&&"mailerlite"===s&&Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(a.sprintf)(Object(a.__)("More info on how to generate an API key for Mailerlite can be found %shere%s.","blc"),'<a target="_blank" href="https://help.mailerlite.com/article/show/35040-where-to-find-the-mailerlite-api-key-and-api-documentation">',"</a>")}})),("mailchimp"===s||ctDashboardLocalizations.plugin_data.is_pro)&&Object(r.createElement)("div",{className:"mailchimp-credentials"},Object(r.createElement)("section",null,Object(r.createElement)("label",null,Object(a.__)("API Key","blc")),Object(r.createElement)("div",{className:"ct-option-input"},Object(r.createElement)("input",{type:"text",onChange:function(e){var t=e.target.value;return f(t)},value:p||""}))),Object(r.createElement)("section",null,Object(r.createElement)("label",null,Object(a.__)("List ID","blc")),Object(r.createElement)(be,{listId:m,onChange:function(e){return v(e)},provider:s,apiKey:p})),Object(r.createElement)("section",null,Object(r.createElement)("label",null," "),Object(r.createElement)("button",{className:"ct-button","data-button":"blue",disabled:!p||!m||b,onClick:function(){return S()}},b?Object(a.__)("Loading...","blc"):t.__object?Object(a.__)("Save Settings","blc"):Object(a.__)("Activate","blc")))))}})};function Se(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function xe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Se(i,r,o,a,u,"next",e)}function u(e){Se(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return je(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=Object(r.useState)(!1),o=Ee(n,2),i=o[0],u=o[1],c=Object(r.useState)(!1),s=Ee(c,2),l=s[0],d=s[1],p=function(){var n=xe(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=new FormData).append("ext",e.name),r.append("action",e.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),u(!0),n.prev=4,n.next=7,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:r});case 7:t(),n.next=12;break;case 10:n.prev=10,n.t0=n.catch(4);case 12:u(!1);case 13:case"end":return n.stop()}}),n,null,[[4,10]])})));return function(){return n.apply(this,arguments)}}(),f=function(){e.__object||e.data.api_key?p():d(!0)};return[i,f,Object(r.createElement)(r.Fragment,null,e.__object&&e.data.api_key&&Object(r.createElement)("button",{className:"ct-button ct-config-btn","data-button":"white",title:"Edit Credentials",onClick:function(){return d(!0)}},Object(a.__)("Configure","blc")),Object(r.createElement)(we,{isEditingCredentials:l,setIsEditingCredentials:d,extension:e,onCredentialsValidated:function(){e.__object||p(),d(!1)}}))]};function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ke=function(e){var t=e.extension,n=e.onExtsSync,o=Ce(_e(t,(function(){n()})),3),i=o[0],u=o[1],s=o[2],l=Ce(L(t),2),d=l[0],p=l[1];return Object(r.createElement)("li",{className:c()({active:!!t.__object})},Object(r.createElement)("h4",{className:"ct-extension-title"},t.config.name,i&&Object(r.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},Object(r.createElement)("g",{transform:"translate(50,50)"},Object(r.createElement)("g",{transform:"scale(1)"},Object(r.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),Object(r.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},Object(r.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),t.config.description&&Object(r.createElement)("div",{className:"ct-extension-description"},t.config.description),Object(r.createElement)("div",{className:"ct-extension-actions"},Object(r.createElement)("button",{className:c()(t.__object?"ct-button":"ct-button-primary"),"data-button":"white",disabled:i,onClick:function(){return u()}},t.__object?Object(a.__)("Deactivate","blc"):Object(a.__)("Activate","blc")),s,t.readme&&Object(r.createElement)("button",{onClick:function(){return d()},"data-button":"white",className:"ct-minimal-button ct-instruction"},Object(r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z M12,17L12,17c-0.552,0-1-0.448-1-1v-4 c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v4C13,16.552,12.552,17,12,17z M12.5,9h-1C11.224,9,11,8.776,11,8.5v-1 C11,7.224,11.224,7,11.5,7h1C12.776,7,13,7.224,13,7.5v1C13,8.776,12.776,9,12.5,9z"})))),p)};i.a.on("ct:extensions:card",(function(e){var t=e.CustomComponent;"newsletter-subscribe"===e.extension.name&&(t.extension=ke)}))}]);
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=window.blocksyOptions},function(e,t,n){"use strict";e.exports=n(13)},function(e,t){e.exports=window.ctEvents},function(e,t,n){var r,o,i=n(11),a=n(12),u=(o=[],{activateTrap:function(e){if(o.length>0){var t=o[o.length-1];t!==e&&t.pause()}var n=o.indexOf(e);-1===n||o.splice(n,1),o.push(e)},deactivateTrap:function(e){var t=o.indexOf(e);-1!==t&&o.splice(t,1),o.length>0&&o[o.length-1].unpause()}});function c(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,o="string"==typeof e?n.querySelector(e):e,s=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),l={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},p={activate:function(e){if(l.active)return;O(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:s.onActivate;t&&t();return f(),p},deactivate:d,pause:function(){if(l.paused||!l.active)return;l.paused=!0,h()},unpause:function(){if(!l.paused||!l.active)return;l.paused=!1,O(),f()}};return p;function d(e){if(l.active){clearTimeout(r),h(),l.active=!1,l.paused=!1,u.deactivateTrap(p);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:s.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:s.returnFocusOnDeactivate)&&c((function(){var e;w((e=l.nodeFocusedBeforeActivation,m("setReturnFocus")||e))})),p}}function f(){if(l.active)return u.activateTrap(p),r=c((function(){w(v())})),n.addEventListener("focusin",y,!0),n.addEventListener("mousedown",g,{capture:!0,passive:!1}),n.addEventListener("touchstart",g,{capture:!0,passive:!1}),n.addEventListener("click",I,{capture:!0,passive:!1}),n.addEventListener("keydown",b,{capture:!0,passive:!1}),p}function h(){if(l.active)return n.removeEventListener("focusin",y,!0),n.removeEventListener("mousedown",g,!0),n.removeEventListener("touchstart",g,!0),n.removeEventListener("click",I,!0),n.removeEventListener("keydown",b,!0),p}function m(e){var t=s[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function v(){var e;if(!(e=null!==m("initialFocus")?m("initialFocus"):o.contains(n.activeElement)?n.activeElement:l.firstTabbableNode||m("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function g(e){o.contains(e.target)||(s.clickOutsideDeactivates?d({returnFocus:!i.isFocusable(e.target)}):s.allowOutsideClick&&s.allowOutsideClick(e)||e.preventDefault())}function y(e){o.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),w(l.mostRecentlyFocusedNode||v()))}function b(e){if(!1!==s.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void d();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(O(),e.shiftKey&&e.target===l.firstTabbableNode)return e.preventDefault(),void w(l.lastTabbableNode);if(!e.shiftKey&&e.target===l.lastTabbableNode)e.preventDefault(),w(l.firstTabbableNode)}(e)}function I(e){s.clickOutsideDeactivates||o.contains(e.target)||s.allowOutsideClick&&s.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function O(){var e=i(o);l.firstTabbableNode=e[0]||v(),l.lastTabbableNode=e[e.length-1]||v()}function w(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),l.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):w(v()))}}},function(e,t,n){"use strict";var r=n(10);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],r=n.join(","),o="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function i(e,t){t=t||{};var n,i,u,c=[],p=[],d=e.querySelectorAll(r);for(t.includeContainer&&o.call(e,r)&&(d=Array.prototype.slice.apply(d)).unshift(e),n=0;n<d.length;n++)a(i=d[n])&&(0===(u=s(i))?c.push(i):p.push({documentOrder:n,tabIndex:u,node:i}));return p.sort(l).map((function(e){return e.node})).concat(c)}function a(e){return!(!u(e)||function(e){return function(e){return p(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||s(e)<0)}function u(e){return!(e.disabled||function(e){return p(e)&&"hidden"===e.type}(e)||function(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}(e))}i.isTabbable=function(e){if(!e)throw new Error("No node provided");return!1!==o.call(e,r)&&a(e)},i.isFocusable=function(e){if(!e)throw new Error("No node provided");return!1!==o.call(e,c)&&u(e)};var c=n.concat("iframe").join(",");function s(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function l(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function p(e){return"INPUT"===e.tagName}e.exports=i},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";
7
  /** @license React v16.13.1
8
  * react-is.production.min.js
9
  *
11
  *
12
  * This source code is licensed under the MIT license found in the
13
  * LICENSE file in the root directory of this source tree.
14
+ */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,I=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case p:case d:case a:case c:case u:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case v:case s:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=i,t.Profiler=c,t.StrictMode=u,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||w(e)===p},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===c},t.isStrictMode=function(e){return w(e)===u},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===c||e===u||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===s||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===I||e.$$typeof===O||e.$$typeof===y)},t.typeOf=w},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(7),i=n.n(o),a=n(2),u=n(4),c=n.n(u),s=n(3),l=n.n(s),p=n(1),d=n.n(p);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e){e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render;return function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["initialState","getInitialState","refs","getRefs","didMount","didUpdate","willUnmount","getSnapshotBeforeUpdate","shouldUpdate","render"])},v=function(e){function t(){var n,r;f(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(i))),g.call(r),h(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getArgs=function(){var e=this.state,t=this.props,n=this._setState,r=this._forceUpdate,o=this._refs;return{state:e,props:m(t),refs:o,setState:n,forceUpdate:r}},t.prototype.componentDidMount=function(){this.props.didMount&&this.props.didMount(this.getArgs())},t.prototype.shouldComponentUpdate=function(e,t){return!this.props.shouldUpdate||this.props.shouldUpdate({props:this.props,state:this.state,nextProps:m(e),nextState:t})},t.prototype.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:m(this.props),refs:this._refs})},t.prototype.componentDidUpdate=function(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t}),n)},t.prototype.getSnapshotBeforeUpdate=function(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:m(e),prevState:t})):null},t.prototype.render=function(){var e=this.props,t=e.children,n=e.render;return n?n(this.getArgs()):"function"==typeof t?t(this.getArgs()):t||null},t}(l.a.Component);v.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var g=function(){var e=this;this.state=this.props.initialState||this.props.getInitialState(this.props),this._refs=this.props.refs||this.props.getRefs(this.getArgs()),this._setState=function(){return e.setState.apply(e,arguments)},this._forceUpdate=function(){return e.forceUpdate.apply(e,arguments)}},y=v,b=function(e){var t=e.children,n=e.container,o=void 0===n?document.body:n,i=e.type,a=void 0===i?"reach-portal":i;return Object(r.createElement)(y,{getRefs:function(){return{node:null}},didMount:function(e){var t=e.refs,n=e.forceUpdate,r=o.hasOwnProperty("current")?o.current:o;t.node=document.createElement(a),r.appendChild(t.node),n()},willUnmount:function(e){var t=e.refs.node,n=o.hasOwnProperty("current")?o.current:o;n&&n.removeChild(t)},render:function(e){var n=e.refs.node;return n?Object(r.createPortal)(t,n):null}})};var I=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},O=n(8),w=n.n(O);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E=function(){},j=function(){},_=function(e,t){var n,r,o;e.disposeAriaHider=(n=e.overlayNode,r=[],o=[],Array.prototype.forEach.call(document.querySelectorAll("body > *"),(function(e){if(e!==n.parentNode){var t=e.getAttribute("aria-hidden");null!==t&&"false"!==t||(r.push(t),o.push(e),e.setAttribute("aria-hidden","true"))}})),function(){o.forEach((function(e,t){var n=r[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)}))}),e.trap=w()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})},C=function(e){var t=e.refs;t.trap.deactivate(),t.disposeAriaHider()},k=React.createContext(),P=React.forwardRef((function(e,t){var n=e.container,o=e.isOpen,i=void 0===o||o,a=e.onDismiss,u=void 0===a?E:a,c=e.initialFocusRef,s=e.onClick,l=e.onKeyDown,p=x(e,["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"]);return Object(r.createElement)(y,{didMount:j},i?Object(r.createElement)(b,{container:n,"data-reach-dialog-wrapper":!0},Object(r.createElement)(y,{refs:{overlayNode:null,contentNode:null},didMount:function(e){var t=e.refs;_(t,c)},willUnmount:C},(function(e){var n=e.refs;return Object(r.createElement)(k.Provider,{value:function(e){return n.contentNode=e}},Object(r.createElement)("div",S({"data-reach-dialog-overlay":!0,onClick:I(s,(function(e){e.stopPropagation(),u()})),onKeyDown:I(l,(function(e){"Escape"===e.key&&(e.stopPropagation(),u())})),ref:function(e){n.overlayNode=e,t&&t(e)}},p)))}))):null)}));P.propTypes={initialFocusRef:function(){}};var A=function(e){return e.stopPropagation()},D=React.forwardRef((function(e,t){var n=e.onClick,o=(e.onKeyDown,x(e,["onClick","onKeyDown"]));return Object(r.createElement)(k.Consumer,null,(function(e){return Object(r.createElement)("div",S({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:I(n,A),ref:function(n){e(n),t&&t(n)}},o))}))})),M=n(5),T=function(e){return!!e},H=function(e){var t=e.items,n=e.isVisible,o=void 0===n?T:n,i=e.render,a=e.className,u=e.onDismiss;return Object(r.createElement)(M.Transition,{items:t,onStart:function(){return document.body.classList[o(t)?"add":"remove"]("ct-dashboard-overlay-open")},config:{duration:200},from:{opacity:0,y:-10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}},(function(e){return o(e)&&function(t){return Object(r.createElement)(P,{style:{opacity:t.opacity},container:document.querySelector("#wpbody"),onDismiss:function(){return u()}},Object(r.createElement)(D,{className:c()("ct-admin-modal",a),style:{transform:"translate3d(0px, ".concat(t.y,"px, 0px)")}},Object(r.createElement)("button",{className:"close-button",onClick:function(){return u()}},"×"),i(e,t)))}}))};function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var L=function(e){var t=R(Object(r.useState)(!1),2),n=t[0],o=t[1];return[function(){return o(!0)},Object(r.createElement)(H,{items:n,onDismiss:function(){return o(!1)},render:function(){return Object(r.createElement)("div",{className:"ct-modal-content",dangerouslySetInnerHTML:{__html:e.readme}})}})]};function U(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function K(){return(K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(6);function V(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function B(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function $(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return B(n.overflowY,t)||B(n.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function W(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}var z=0;function q(e){return"function"==typeof e?e:Y}function Y(){}function X(e,t){null!==e&&function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,u="function"==typeof i?i:function(e){return e!==i};if(!V(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,s=[],l=e;V(l)&&u(l);){if((l=l.parentNode)===c){s.push(l);break}l===document.body&&$(l)&&!$(document.documentElement)||$(l,a)&&s.push(l)}for(var p=window.visualViewport?visualViewport.width:innerWidth,d=window.visualViewport?visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),v=m.height,g=m.width,y=m.top,b=m.right,I=m.bottom,O=m.left,w="start"===r||"nearest"===r?y:"end"===r?I:y+v/2,S="center"===o?O+g/2:"end"===o?b:O,x=[],E=0;E<s.length;E++){var j=s[E],_=j.getBoundingClientRect(),C=_.height,k=_.width,P=_.top,A=_.right,D=_.bottom,M=_.left;if("if-needed"===n&&y>=0&&O>=0&&I<=d&&b<=p&&y>=P&&I<=D&&O>=M&&b<=A)return x;var T=getComputedStyle(j),H=parseInt(T.borderLeftWidth,10),R=parseInt(T.borderTopWidth,10),N=parseInt(T.borderRightWidth,10),L=parseInt(T.borderBottomWidth,10),U=0,K=0,F="offsetWidth"in j?j.offsetWidth-j.clientWidth-H-N:0,B="offsetHeight"in j?j.offsetHeight-j.clientHeight-R-L:0;if(c===j)U="start"===r?w:"end"===r?w-d:"nearest"===r?W(h,h+d,d,R,L,h+w,h+w+v,v):w-d/2,K="start"===o?S:"center"===o?S-p/2:"end"===o?S-p:W(f,f+p,p,H,N,f+S,f+S+g,g),U=Math.max(0,U+h),K=Math.max(0,K+f);else{U="start"===r?w-P-R:"end"===r?w-D+L+B:"nearest"===r?W(P,D,C,R,L+B,w,w+v,v):w-(P+C/2)+B/2,K="start"===o?S-M-H:"center"===o?S-(M+k/2)+F/2:"end"===o?S-A+N+F:W(M,A,k,H,N+F,S,S+g,g);var z=j.scrollLeft,q=j.scrollTop;w+=q-(U=Math.max(0,Math.min(q+U,j.scrollHeight-C+B))),S+=z-(K=Math.max(0,Math.min(z+K,j.scrollWidth-k+F)))}x.push({el:j,top:U,left:K})}return x}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function G(e,t){return e===t||e.contains&&e.contains(t)}function J(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function Z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function ee(e){var t=e.isOpen,n=e.selectedItem,r=e.resultCount,o=e.previousResultCount,i=e.itemToString;return t?r?r!==o?r+" result"+(1===r?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":n?i(n):""}function te(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function ne(e){return"string"==typeof e.type}function re(e){return e.props}var oe=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function ie(e){void 0===e&&(e={});var t={};return oe.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function ae(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function ue(e,t,n){var r=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:r+1);var o=t+e;return o<0?o=r:o>r&&(o=0),o}var ce=J((function(){le().textContent=""}),500);function se(e,t){var n=le(t);e&&(n.textContent=e,ce())}function le(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var pe=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),de=function(){var e=function(e){var t,n;function r(t){var n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+String(z++),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=ie(t),n.internalSetState(K({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=ie(t),n.internalSetState(K({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,o,i={},a="function"==typeof e;return!a&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,K({},n.getStateAndHelpers(),{},e)),n.setState((function(t){t=n.getState(t);var u=a?e(t):e;u=n.props.stateReducer(t,u),r=u.hasOwnProperty("selectedItem");var c={},s={};return r&&u.selectedItem!==t.selectedItem&&(o=u.selectedItem),u.type=u.type||0,Object.keys(u).forEach((function(e){t[e]!==u[e]&&(i[e]=u[e]),"type"!==e&&(s[e]=u[e],n.isControlledProp(e)||(c[e]=u[e]))})),a&&u.hasOwnProperty("inputValue")&&n.props.onInputValueChange(u.inputValue,K({},n.getStateAndHelpers(),{},u)),c}),(function(){q(t)(),Object.keys(i).length>1&&n.props.onStateChange(i,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==o&&n.props.onChange(o,n.getStateAndHelpers()),n.props.onUserAction(i,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,u=o.ref,c=U(o,["refKey","ref"]),s=(void 0===t?{}:t).suppressRefError,l=void 0!==s&&s;n.getRootProps.called=!0,n.getRootProps.refKey=a,n.getRootProps.suppressRefError=l;var p=n.getState().isOpen;return K(((r={})[a]=Z(u,n.rootRef),r.role="combobox",r["aria-expanded"]=p,r["aria-haspopup"]="listbox",r["aria-owns"]=p?n.menuId:null,r["aria-labelledby"]=n.labelId,r),c)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(ue(1,t.getState().highlightedIndex,e),{type:4})}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();e>0&&t.setHighlightedIndex(ue(-1,t.getState().highlightedIndex,e),{type:4})}))},Enter:function(e){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}},Escape:function(e){e.preventDefault(),this.reset({type:5,selectedItem:null,inputValue:""})}},n.buttonKeyDownHandlers=K({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=K({},n.keyDownHandlers,{Home:function(e){this.highlightFirstOrLastIndex(e,!0,{type:7})},End:function(e){this.highlightFirstOrLastIndex(e,!1,{type:8})}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick,o=(t.onPress,t.onKeyDown),i=t.onKeyUp,a=t.onBlur,u=U(t,["onClick","onPress","onKeyDown","onKeyUp","onBlur"]),c=n.getState().isOpen,s={onClick:Q(r,n.buttonHandleClick),onKeyDown:Q(o,n.buttonHandleKeyDown),onKeyUp:Q(i,n.buttonHandleKeyUp),onBlur:Q(a,n.buttonHandleBlur)};return K({type:"button",role:"button","aria-label":c?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},u.disabled?{}:s,{},u)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=ae(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(F(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return K({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,o=t.onBlur,i=t.onChange,a=t.onInput,u=(t.onChangeText,U(t,["onKeyDown","onBlur","onChange","onInput","onChangeText"])),c={};var s,l=n.getState(),p=l.inputValue,d=l.isOpen,f=l.highlightedIndex;u.disabled||((s={}).onChange=Q(i,a,n.inputHandleChange),s.onKeyDown=Q(r,n.inputHandleKeyDown),s.onBlur=Q(o,n.inputHandleBlur),c=s);return K({"aria-autocomplete":"list","aria-activedescendant":d&&"number"==typeof f&&f>=0?n.getItemId(f):null,"aria-controls":d?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:p,id:n.inputId},c,{},u)},n.inputHandleKeyDown=function(e){var t=ae(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(F(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,u=o.ref,c=U(o,["refKey","ref"]),s=(void 0===t?{}:t).suppressRefError,l=void 0!==s&&s;return n.getMenuProps.called=!0,n.getMenuProps.refKey=a,n.getMenuProps.suppressRefError=l,K(((r={})[a]=Z(u,n.menuRef),r.role="listbox",r["aria-labelledby"]=c&&c["aria-label"]?null:n.labelId,r.id=n.menuId,r),c)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,o=r.onMouseMove,i=r.onMouseDown,a=r.onClick,u=(r.onPress,r.index),c=r.item,s=void 0===c?void 0:c,l=U(r,["onMouseMove","onMouseDown","onClick","onPress","index","item"]);void 0===u?(n.items.push(s),u=n.items.indexOf(s)):n.items[u]=s;var p=a,d=((t={onMouseMove:Q(o,(function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:Q(i,(function(e){e.preventDefault()}))}).onClick=Q(p,(function(){n.selectItemAtIndex(u,{type:9})})),t),f=l.disabled?{onMouseDown:d.onMouseDown}:d;return K({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},f,{},l)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=ie(e),n.internalSetState((function(t){var r=t.selectedItem;return K({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=ie(e),n.internalSetState((function(t){var r=t.isOpen;return K({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},{},e)}),(function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;o&&n.getItemCount()>0&&"number"==typeof i&&n.setHighlightedIndex(i,e),q(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=J((function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),o=n.props.getA11yStatusMessage(K({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,se(o,n.props.environment.document)}),200);var r=n.props,o=r.defaultHighlightedIndex,i=r.initialHighlightedIndex,a=void 0===i?o:i,u=r.defaultIsOpen,c=r.initialIsOpen,s=void 0===c?u:c,l=r.initialInputValue,p=void 0===l?"":l,d=r.initialSelectedItem,f=void 0===d?null:d,h=n.getState({highlightedIndex:a,isOpen:s,inputValue:p,selectedItem:f});return null!=h.selectedItem&&void 0===n.props.initialInputValue&&(h.inputValue=n.props.itemToString(h.selectedItem)),n.state=h,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},o.getState=function(e){var t=this;return void 0===e&&(e=this.state),Object.keys(e).reduce((function(n,r){return n[r]=t.isControlledProp(r)?t.props[r]:e[r],n}),{})},o.isControlledProp=function(e){return void 0!==this.props[e]},o.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},o.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},o.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},o.moveHighlightedIndex=function(e,t){var n=this.getItemCount();if(n>0){var r=ue(e,this.getState().highlightedIndex,n);this.setHighlightedIndex(r,t)}},o.highlightFirstOrLastIndex=function(e,t,n){var r=this.getItemCount()-1;r<0||!this.getState().isOpen||(e.preventDefault(),this.setHighlightedIndex(t?0:r,n))},o.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,u=this.getRootProps,c=this.getToggleButtonProps,s=this.getLabelProps,l=this.getMenuProps,p=this.getInputProps,d=this.getItemProps,f=this.openMenu,h=this.closeMenu,m=this.toggleMenu,v=this.selectItem,g=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,I=this.clearSelection,O=this.clearItems;return{getRootProps:u,getToggleButtonProps:c,getLabelProps:s,getMenuProps:l,getInputProps:p,getItemProps:d,reset:this.reset,openMenu:f,closeMenu:h,toggleMenu:m,selectItem:v,selectItemAtIndex:g,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:I,clearItems:O,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},o.componentDidMount=function(){var e=this;var t=function(t,n){void 0===n&&(n=!0);var r=e.props.environment.document;return[e._rootNode,e._menuNode].some((function(e){return e&&(G(e,t)||n&&G(e,r.activeElement))}))},n=function(){e.isMouseDown=!0},r=function(n){e.isMouseDown=!1,!t(n.target)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},o=function(){e.isTouchMove=!1},i=function(){e.isTouchMove=!0},a=function(n){var r=t(n.target,!1);e.isTouchMove||r||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},u=this.props.environment;u.addEventListener("mousedown",n),u.addEventListener("mouseup",r),u.addEventListener("touchstart",o),u.addEventListener("touchmove",i),u.addEventListener("touchend",a),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),u.removeEventListener("mousedown",n),u.removeEventListener("mouseup",r),u.removeEventListener("touchstart",o),u.removeEventListener("touchmove",i),u.removeEventListener("touchend",a)}},o.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},o.componentDidUpdate=function(e,t){this.isControlledProp("selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},o.componentWillUnmount=function(){this.cleanup()},o.render=function(){var e=te(this.props.children,Y);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=te(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:ne(t)?Object(s.cloneElement)(t,this.getRootProps(re(t))):void 0:null},r}(s.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:ee,itemToString:function(e){return null==e?"":String(e)},onStateChange:Y,onInputValueChange:Y,onUserAction:Y,onChange:Y,onSelect:Y,onOuterClick:Y,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:X},e.stateChangeTypes=pe,e}();d.a.array.isRequired,d.a.func,d.a.func,d.a.func,d.a.bool,d.a.number,d.a.number,d.a.number,d.a.bool,d.a.bool,d.a.bool,d.a.any,d.a.any,d.a.any,d.a.string,d.a.string,d.a.string,d.a.func,d.a.string,d.a.func,d.a.func,d.a.func,d.a.func,d.a.func,d.a.shape({addEventListener:d.a.func,removeEventListener:d.a.func,document:d.a.shape({getElementById:d.a.func,activeElement:d.a.any,body:d.a.any})});"undefined"==typeof window||window;var fe=de;function he(){return(he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function me(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ye=function(e){var t=e.listId,n=e.provider,o=e.apiKey,i=e.onChange,u=ve(Object(r.useState)([]),2),s=u[0],l=u[1],p=ve(Object(r.useState)(!1),2),d=p[0],f=p[1],h=ve(Object(r.useState)({controller:null}),2),m=h[0].controller,v=h[1],g=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m&&m.abort(),f(!0),"AbortController"in window&&(m=new AbortController,v({controller:m})),(t=new FormData).append("api_key",o),t.append("provider",n),t.append("action","blocksy_ext_newsletter_subscribe_maybe_get_lists"),e.prev=7,e.next=10,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",signal:m.signal,body:t});case 10:if(200!==(r=e.sent).status){e.next=20;break}return e.next=14,r.json();case 14:if(!(i=e.sent).success){e.next=20;break}if("api_key_invalid"===i.data.result){e.next=20;break}return f(!1),l(i.data.result),e.abrupt("return");case 20:e.next=24;break;case 22:e.prev=22,e.t0=e.catch(7);case 24:l([]),f(!1);case 26:case"end":return e.stop()}}),e,null,[[7,22]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){me(i,r,o,a,u,"next",e)}function u(e){me(i,r,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)((function(){o?g():l([])}),[n,o]),0===s.length?Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",{disabled:!0,placeholder:d?Object(a.__)("Loading","blocksy-companion"):Object(a.__)("Invalid API Key...","blocksy-companion")})):Object(r.createElement)(fe,{selectedItem:t||"",onChange:function(e){return i(e)},itemToString:function(e){return e?(s.find((function(t){return t.id===e}))||{}).name:""}},(function(e){var t=e.getInputProps,n=e.getItemProps,o=(e.getLabelProps,e.getMenuProps),i=e.isOpen,u=(e.inputValue,e.highlightedIndex),l=e.selectedItem,p=e.openMenu;return Object(r.createElement)("div",{className:"ct-select-input"},Object(r.createElement)("input",he({},t({onFocus:function(){return p()},onClick:function(){return p()}}),{placeholder:Object(a.__)("Select list...","blocksy-companion"),readOnly:!0})),i&&Object(r.createElement)("div",o({className:"ct-select-dropdown"}),s.map((function(e,t){return Object(r.createElement)("div",n({key:e.id,index:t,item:e.id,className:c()("ct-select-dropdown-item",{active:u===t,selected:l===e.id})}),e.name)}))))}))};function be(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var we=function(e){var t=e.extension,n=e.isEditingCredentials,o=e.setIsEditingCredentials,i=e.onCredentialsValidated,u=Ie(Object(r.useState)(t.data.provider),2),s=u[0],l=u[1],p=Ie(Object(r.useState)(t.data.api_key),2),d=p[0],f=p[1],h=Ie(Object(r.useState)(t.data.list_id),2),m=h[0],v=h[1],g=Ie(Object(r.useState)(!1),2),y=g[0],b=g[1],I=Ie(Object(r.useState)(!1),2),O=I[0],w=I[1],S=function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).append("provider",s),t.append("api_key",d),t.append("list_id",m),t.append("action","blocksy_ext_newsletter_subscribe_maybe_save_credentials"),b(!0),e.prev=6,e.next=9,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:t});case 9:if(200!==(n=e.sent).status){e.next=15;break}return e.next=13,n.json();case 13:(r=e.sent).success&&"api_key_invalid"!==r.data.result&&(i(),w(!1));case 15:w(!0),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(6),w(!0);case 21:return e.next=23,new Promise((function(e){return setTimeout((function(){return e()}),1e3)}));case 23:b(!1);case 24:case"end":return e.stop()}}),e,null,[[6,18]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){be(i,r,o,a,u,"next",e)}function u(e){be(i,r,o,a,u,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.createElement)(H,{items:n,onDismiss:function(){return o(!1)},className:"ct-mailchimp-modal",render:function(){return Object(r.createElement)("div",{className:c()("ct-modal-content",{"ct-key-invalid":O})},Object(r.createElement)("h2",null,Object(a.__)("API Credentials","blocksy-companion")),Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(a.__)("Enter your Newsletter provider API credentials in the form below.","blocksy-companion")}}),Object(r.createElement)("div",{className:"ct-newsletter-select-provider"},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("h4",null,Object(a.__)("Select Provider","blocksy-companion")),Object(r.createElement)(M.Select,{onChange:function(e){l(e)},option:{placeholder:Object(a.__)("Pick Mailing Service","blocksy-companion"),choices:[{key:"mailchimp",value:"Mailchimp"},{key:"mailerlite",value:"Mailerlite"}]},value:s})),!ctDashboardLocalizations.plugin_data.is_pro&&"mailchimp"!==s&&Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(a.sprintf)(Object(a.__)("This option is available only in Blocksy premium %sversion%s.","blocksy-companion"),'<a target="_blank" href="https://creativethemes.com/blocksy/pricing/">',"</a>")}}),"mailchimp"===s&&Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(a.sprintf)(Object(a.__)("More info on how to generate an API key for Mailchimp can be found %shere%s.","blocksy-companion"),'<a target="_blank" href="https://mailchimp.com/help/about-api-keys/">',"</a>")}}),ctDashboardLocalizations.plugin_data.is_pro&&"mailerlite"===s&&Object(r.createElement)("p",{dangerouslySetInnerHTML:{__html:Object(a.sprintf)(Object(a.__)("More info on how to generate an API key for Mailerlite can be found %shere%s.","blocksy-companion"),'<a target="_blank" href="https://help.mailerlite.com/article/show/35040-where-to-find-the-mailerlite-api-key-and-api-documentation">',"</a>")}})),("mailchimp"===s||ctDashboardLocalizations.plugin_data.is_pro)&&Object(r.createElement)("div",{className:"mailchimp-credentials"},Object(r.createElement)("section",null,Object(r.createElement)("label",null,Object(a.__)("API Key","blocksy-companion")),Object(r.createElement)("div",{className:"ct-option-input"},Object(r.createElement)("input",{type:"text",onChange:function(e){var t=e.target.value;return f(t)},value:d||""}))),Object(r.createElement)("section",null,Object(r.createElement)("label",null,Object(a.__)("List ID","blocksy-companion")),Object(r.createElement)(ye,{listId:m,onChange:function(e){return v(e)},provider:s,apiKey:d})),Object(r.createElement)("section",null,Object(r.createElement)("label",null," "),Object(r.createElement)("button",{className:"ct-button","data-button":"blue",disabled:!d||!m||y,onClick:function(){return S()}},y?Object(a.__)("Loading...","blocksy-companion"):t.__object?Object(a.__)("Save Settings","blocksy-companion"):Object(a.__)("Activate","blocksy-companion")))))}})};function Se(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function xe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Se(i,r,o,a,u,"next",e)}function u(e){Se(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return je(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=Object(r.useState)(!1),o=Ee(n,2),i=o[0],u=o[1],c=Object(r.useState)(!1),s=Ee(c,2),l=s[0],p=s[1],d=function(){var n=xe(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=new FormData).append("ext",e.name),r.append("action",e.__object?"blocksy_extension_deactivate":"blocksy_extension_activate"),u(!0),n.prev=4,n.next=7,fetch(ctDashboardLocalizations.ajax_url,{method:"POST",body:r});case 7:t(),n.next=12;break;case 10:n.prev=10,n.t0=n.catch(4);case 12:u(!1);case 13:case"end":return n.stop()}}),n,null,[[4,10]])})));return function(){return n.apply(this,arguments)}}(),f=function(){e.__object||e.data.api_key?d():p(!0)};return[i,f,Object(r.createElement)(r.Fragment,null,e.__object&&e.data.api_key&&Object(r.createElement)("button",{className:"ct-button ct-config-btn","data-button":"white",title:"Edit Credentials",onClick:function(){return p(!0)}},Object(a.__)("Configure","blocksy-companion")),Object(r.createElement)(we,{isEditingCredentials:l,setIsEditingCredentials:p,extension:e,onCredentialsValidated:function(){e.__object||d(),p(!1)}}))]};function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ke(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pe=function(e){var t=e.extension,n=e.onExtsSync,o=Ce(_e(t,(function(){n()})),3),i=o[0],u=o[1],s=o[2],l=Ce(L(t),2),p=l[0],d=l[1];return Object(r.createElement)("li",{className:c()({active:!!t.__object})},Object(r.createElement)("h4",{className:"ct-extension-title"},t.config.name,i&&Object(r.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 100 100"},Object(r.createElement)("g",{transform:"translate(50,50)"},Object(r.createElement)("g",{transform:"scale(1)"},Object(r.createElement)("circle",{cx:"0",cy:"0",r:"50",fill:"#687c93"}),Object(r.createElement)("circle",{cx:"0",cy:"-26",r:"12",fill:"#ffffff",transform:"rotate(161.634)"},Object(r.createElement)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 0 0;360 0 0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))))),t.config.description&&Object(r.createElement)("div",{className:"ct-extension-description"},t.config.description),Object(r.createElement)("div",{className:"ct-extension-actions"},Object(r.createElement)("button",{className:c()(t.__object?"ct-button":"ct-button-primary"),"data-button":"white",disabled:i,onClick:function(){return u()}},t.__object?Object(a.__)("Deactivate","blocksy-companion"):Object(a.__)("Activate","blocksy-companion")),s,t.readme&&Object(r.createElement)("button",{onClick:function(){return p()},"data-button":"white",className:"ct-minimal-button ct-instruction"},Object(r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z M12,17L12,17c-0.552,0-1-0.448-1-1v-4 c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v4C13,16.552,12.552,17,12,17z M12.5,9h-1C11.224,9,11,8.776,11,8.5v-1 C11,7.224,11.224,7,11.5,7h1C12.776,7,13,7.224,13,7.5v1C13,8.776,12.776,9,12.5,9z"})))),d)};i.a.on("ct:extensions:card",(function(e){var t=e.CustomComponent;"newsletter-subscribe"===e.extension.name&&(t.extension=Pe)}))}]);
framework/extensions/newsletter-subscribe/dashboard-static/js/EditCredentials.js CHANGED
@@ -75,20 +75,20 @@ const EditCredentials = ({
75
  className={classnames('ct-modal-content', {
76
  'ct-key-invalid': isApiKeyInvalid,
77
  })}>
78
- <h2>{__('API Credentials', 'blc')}</h2>
79
 
80
  <p
81
  dangerouslySetInnerHTML={{
82
  __html: __(
83
  'Enter your Newsletter provider API credentials in the form below.',
84
- 'blc'
85
  ),
86
  }}
87
  />
88
 
89
  <div className="ct-newsletter-select-provider">
90
  <Fragment>
91
- <h4>{__('Select Provider', 'blc')}</h4>
92
 
93
  <Select
94
  onChange={(copy) => {
@@ -97,7 +97,7 @@ const EditCredentials = ({
97
  option={{
98
  placeholder: __(
99
  'Pick Mailing Service',
100
- 'blc'
101
  ),
102
  choices: [
103
  {
@@ -122,7 +122,7 @@ const EditCredentials = ({
122
  __html: sprintf(
123
  __(
124
  'This option is available only in Blocksy premium %sversion%s.',
125
- 'blc'
126
  ),
127
 
128
  '<a target="_blank" href="https://creativethemes.com/blocksy/pricing/">',
@@ -138,7 +138,7 @@ const EditCredentials = ({
138
  __html: sprintf(
139
  __(
140
  'More info on how to generate an API key for Mailchimp can be found %shere%s.',
141
- 'blc'
142
  ),
143
 
144
  '<a target="_blank" href="https://mailchimp.com/help/about-api-keys/">',
@@ -155,7 +155,7 @@ const EditCredentials = ({
155
  __html: sprintf(
156
  __(
157
  'More info on how to generate an API key for Mailerlite can be found %shere%s.',
158
- 'blc'
159
  ),
160
 
161
  '<a target="_blank" href="https://help.mailerlite.com/article/show/35040-where-to-find-the-mailerlite-api-key-and-api-documentation">',
@@ -170,7 +170,7 @@ const EditCredentials = ({
170
  ctDashboardLocalizations.plugin_data.is_pro) && (
171
  <div className="mailchimp-credentials">
172
  <section>
173
- <label>{__('API Key', 'blc')}</label>
174
 
175
  <div className="ct-option-input">
176
  <input
@@ -184,7 +184,7 @@ const EditCredentials = ({
184
  </section>
185
 
186
  <section>
187
- <label>{__('List ID', 'blc')}</label>
188
 
189
  <ListPicker
190
  listId={listId}
@@ -202,10 +202,10 @@ const EditCredentials = ({
202
  disabled={!apiKey || !listId || isLoading}
203
  onClick={() => attemptToSaveCredentials()}>
204
  {isLoading
205
- ? __('Loading...', 'blc')
206
  : !extension.__object
207
- ? __('Activate', 'blc')
208
- : __('Save Settings', 'blc')}
209
  </button>
210
  </section>
211
  </div>
75
  className={classnames('ct-modal-content', {
76
  'ct-key-invalid': isApiKeyInvalid,
77
  })}>
78
+ <h2>{__('API Credentials', 'blocksy-companion')}</h2>
79
 
80
  <p
81
  dangerouslySetInnerHTML={{
82
  __html: __(
83
  'Enter your Newsletter provider API credentials in the form below.',
84
+ 'blocksy-companion'
85
  ),
86
  }}
87
  />
88
 
89
  <div className="ct-newsletter-select-provider">
90
  <Fragment>
91
+ <h4>{__('Select Provider', 'blocksy-companion')}</h4>
92
 
93
  <Select
94
  onChange={(copy) => {
97
  option={{
98
  placeholder: __(
99
  'Pick Mailing Service',
100
+ 'blocksy-companion'
101
  ),
102
  choices: [
103
  {
122
  __html: sprintf(
123
  __(
124
  'This option is available only in Blocksy premium %sversion%s.',
125
+ 'blocksy-companion'
126
  ),
127
 
128
  '<a target="_blank" href="https://creativethemes.com/blocksy/pricing/">',
138
  __html: sprintf(
139
  __(
140
  'More info on how to generate an API key for Mailchimp can be found %shere%s.',
141
+ 'blocksy-companion'
142
  ),
143
 
144
  '<a target="_blank" href="https://mailchimp.com/help/about-api-keys/">',
155
  __html: sprintf(
156
  __(
157
  'More info on how to generate an API key for Mailerlite can be found %shere%s.',
158
+ 'blocksy-companion'
159
  ),
160
 
161
  '<a target="_blank" href="https://help.mailerlite.com/article/show/35040-where-to-find-the-mailerlite-api-key-and-api-documentation">',
170
  ctDashboardLocalizations.plugin_data.is_pro) && (
171
  <div className="mailchimp-credentials">
172
  <section>
173
+ <label>{__('API Key', 'blocksy-companion')}</label>
174
 
175
  <div className="ct-option-input">
176
  <input
184
  </section>
185
 
186
  <section>
187
+ <label>{__('List ID', 'blocksy-companion')}</label>
188
 
189
  <ListPicker
190
  listId={listId}
202
  disabled={!apiKey || !listId || isLoading}
203
  onClick={() => attemptToSaveCredentials()}>
204
  {isLoading
205
+ ? __('Loading...', 'blocksy-companion')
206
  : !extension.__object
207
+ ? __('Activate', 'blocksy-companion')
208
+ : __('Save Settings', 'blocksy-companion')}
209
  </button>
210
  </section>
211
  </div>
framework/extensions/newsletter-subscribe/dashboard-static/js/ListPicker.js CHANGED
@@ -81,8 +81,8 @@ const ListPicker = ({ listId, provider, apiKey, onChange }) => {
81
  disabled
82
  placeholder={
83
  isLoadingLists
84
- ? __('Loading', 'blc')
85
- : __('Invalid API Key...', 'blc')
86
  }
87
  />
88
  </div>
@@ -110,7 +110,7 @@ const ListPicker = ({ listId, provider, apiKey, onChange }) => {
110
  onFocus: () => openMenu(),
111
  onClick: () => openMenu(),
112
  })}
113
- placeholder={__('Select list...', 'blc')}
114
  readOnly
115
  />
116
 
81
  disabled
82
  placeholder={
83
  isLoadingLists
84
+ ? __('Loading', 'blocksy-companion')
85
+ : __('Invalid API Key...', 'blocksy-companion')
86
  }
87
  />
88
  </div>
110
  onFocus: () => openMenu(),
111
  onClick: () => openMenu(),
112
  })}
113
+ placeholder={__('Select list...', 'blocksy-companion')}
114
  readOnly
115
  />
116
 
framework/extensions/newsletter-subscribe/dashboard-static/js/NewsletterSubscribe.js CHANGED
@@ -70,8 +70,8 @@ const NewsletterSubscribe = ({ extension, onExtsSync }) => {
70
  disabled={isLoading}
71
  onClick={() => activationAction()}>
72
  {extension.__object
73
- ? __('Deactivate', 'blc')
74
- : __('Activate', 'blc')}
75
  </button>
76
 
77
  {ui}
70
  disabled={isLoading}
71
  onClick={() => activationAction()}>
72
  {extension.__object
73
+ ? __('Deactivate', 'blocksy-companion')
74
+ : __('Activate', 'blocksy-companion')}
75
  </button>
76
 
77
  {ui}
framework/extensions/newsletter-subscribe/dashboard-static/js/hooks/useActivationWithRequirements.js CHANGED
@@ -57,7 +57,7 @@ const useActivationWithRequirements = (extension, cb = () => {}) => {
57
  data-button="white"
58
  title="Edit Credentials"
59
  onClick={() => setIsEditingCredentials(true)}>
60
- {__('Configure', 'blc')}
61
  </button>
62
  )}
63
 
57
  data-button="white"
58
  title="Edit Credentials"
59
  onClick={() => setIsEditingCredentials(true)}>
60
+ {__('Configure', 'blocksy-companion')}
61
  </button>
62
  )}
63
 
framework/extensions/newsletter-subscribe/extension.php CHANGED
@@ -131,7 +131,7 @@ class BlocksyExtensionNewsletterSubscribe {
131
 
132
  add_filter('blocksy_extensions_metabox_post:elements:before', function ($opts) {
133
  $opts['disable_subscribe_form'] = [
134
- 'label' => __( 'Disable Subscribe Form', 'blc' ),
135
  'type' => 'ct-switch',
136
  'value' => 'no',
137
  ];
@@ -178,13 +178,13 @@ class BlocksyExtensionNewsletterSubscribe {
178
  'has_title' => false,
179
  'has_description' => false,
180
 
181
- 'button_text' => __('Subscribe', 'blc'),
182
 
183
  // no | yes
184
  'has_name' => 'no',
185
 
186
- 'name_label' => __('Your name', 'blc'),
187
- 'email_label' => __('Your email', 'blc'),
188
  'list_id' => '',
189
  'class' => ''
190
  ]
131
 
132
  add_filter('blocksy_extensions_metabox_post:elements:before', function ($opts) {
133
  $opts['disable_subscribe_form'] = [
134
+ 'label' => __( 'Disable Subscribe Form', 'blocksy-companion' ),
135
  'type' => 'ct-switch',
136
  'value' => 'no',
137
  ];
178
  'has_title' => false,
179
  'has_description' => false,
180
 
181
+ 'button_text' => __('Subscribe', 'blocksy-companion'),
182
 
183
  // no | yes
184
  'has_name' => 'no',
185
 
186
+ 'name_label' => __('Your name', 'blocksy-companion'),
187
+ 'email_label' => __('Your email', 'blocksy-companion'),
188
  'list_id' => '',
189
  'class' => ''
190
  ]
framework/extensions/newsletter-subscribe/global.php CHANGED
@@ -210,4 +210,4 @@ blc_call_fn(['fn' => 'blocksy_output_spacing'], [
210
  'linked' => true,
211
  ])
212
  )
213
- ]);
210
  'linked' => true,
211
  ])
212
  )
213
+ ]);
framework/extensions/newsletter-subscribe/helpers.php CHANGED
@@ -39,26 +39,26 @@ function blc_ext_newsletter_subscribe_form($forced = false) {
39
  $args = [
40
  'title' => get_theme_mod(
41
  'newsletter_subscribe_title',
42
- __('Newsletter Updates', 'blc')
43
  ),
44
 
45
  'description' => get_theme_mod('newsletter_subscribe_text', __(
46
  'Enter your email address below to subscribe to our newsletter',
47
- 'blc'
48
  )),
49
 
50
  'button_text' => get_theme_mod(
51
  'newsletter_subscribe_button_text',
52
- __('Subscribe', 'blc')
53
  ),
54
  'has_name' => get_theme_mod('has_newsletter_subscribe_name', 'no'),
55
  'name_label' => get_theme_mod(
56
  'newsletter_subscribe_name_label',
57
- __('Your name', 'blc')
58
  ),
59
  'email_label' => get_theme_mod(
60
  'newsletter_subscribe_mail_label',
61
- __('Your email', 'blc')
62
  )
63
  ];
64
 
@@ -93,20 +93,20 @@ function blc_ext_newsletter_subscribe_output_form($args = []) {
93
  'has_title' => true,
94
  'has_description' => true,
95
 
96
- 'title' => __('Newsletter Updates', 'blc'),
97
  'description' => __(
98
  'Enter your email address below to subscribe to our newsletter',
99
- 'blc'
100
  ),
101
  'button_text' => __(
102
- 'Subscribe', 'blc'
103
  ),
104
 
105
  // no | yes
106
  'has_name' => 'no',
107
 
108
- 'name_label' => __('Your name', 'blc'),
109
- 'email_label' => __('Your email', 'blc'),
110
  'list_id' => '',
111
  'class' => ''
112
  ]);
@@ -160,10 +160,10 @@ function blc_ext_newsletter_subscribe_output_form($args = []) {
160
  class="ct-newsletter-subscribe-block-form" <?php echo $skip_submit_output ?>>
161
  <section data-fields="<?php echo $fields_number ?>">
162
  <?php if ($has_name) { ?>
163
- <input type="text" name="FNAME" placeholder="<?php esc_attr_e($args['name_label'], 'blc'); ?>" title="<?php echo __('Name', 'blc') ?>" />
164
  <?php } ?>
165
 
166
- <input type="email" name="EMAIL" placeholder="<?php esc_attr_e($args['email_label'], 'blc'); ?> *" title="<?php echo __('Email', 'blc') ?>" required />
167
 
168
  <button class="button">
169
  <?php echo esc_html($args['button_text']) ?>
39
  $args = [
40
  'title' => get_theme_mod(
41
  'newsletter_subscribe_title',
42
+ __('Newsletter Updates', 'blocksy-companion')
43
  ),
44
 
45
  'description' => get_theme_mod('newsletter_subscribe_text', __(
46
  'Enter your email address below to subscribe to our newsletter',
47
+ 'blocksy-companion'
48
  )),
49
 
50
  'button_text' => get_theme_mod(
51
  'newsletter_subscribe_button_text',
52
+ __('Subscribe', 'blocksy-companion')
53
  ),
54
  'has_name' => get_theme_mod('has_newsletter_subscribe_name', 'no'),
55
  'name_label' => get_theme_mod(
56
  'newsletter_subscribe_name_label',
57
+ __('Your name', 'blocksy-companion')
58
  ),
59
  'email_label' => get_theme_mod(
60
  'newsletter_subscribe_mail_label',
61
+ __('Your email', 'blocksy-companion')
62
  )
63
  ];
64
 
93
  'has_title' => true,
94
  'has_description' => true,
95
 
96
+ 'title' => __('Newsletter Updates', 'blocksy-companion'),
97
  'description' => __(
98
  'Enter your email address below to subscribe to our newsletter',
99
+ 'blocksy-companion'
100
  ),
101
  'button_text' => __(
102
+ 'Subscribe', 'blocksy-companion'
103
  ),
104
 
105
  // no | yes
106
  'has_name' => 'no',
107
 
108
+ 'name_label' => __('Your name', 'blocksy-companion'),
109
+ 'email_label' => __('Your email', 'blocksy-companion'),
110
  'list_id' => '',
111
  'class' => ''
112
  ]);
160
  class="ct-newsletter-subscribe-block-form" <?php echo $skip_submit_output ?>>
161
  <section data-fields="<?php echo $fields_number ?>">
162
  <?php if ($has_name) { ?>
163
+ <input type="text" name="FNAME" placeholder="<?php esc_attr_e($args['name_label'], 'blocksy-companion'); ?>" title="<?php echo __('Name', 'blocksy-companion') ?>" />
164
  <?php } ?>
165
 
166
+ <input type="email" name="EMAIL" placeholder="<?php esc_attr_e($args['email_label'], 'blocksy-companion'); ?> *" title="<?php echo __('Email', 'blocksy-companion') ?>" required />
167
 
168
  <button class="button">
169
  <?php echo esc_html($args['button_text']) ?>
framework/extensions/newsletter-subscribe/includes/BlocksyMailerliteManager.php CHANGED
@@ -96,7 +96,7 @@ class BlocksyMailerliteManager extends BlocksyNewsletterManager {
96
 
97
  return [
98
  'result' => 'yes',
99
- 'message' => __('Thank you for subscribing!', 'blc')
100
  ];
101
  }
102
 
96
 
97
  return [
98
  'result' => 'yes',
99
+ 'message' => __('Thank you for subscribing!', 'blocksy-companion')
100
  ];
101
  }
102
 
framework/extensions/newsletter-subscribe/readme.php CHANGED
@@ -1,20 +1,20 @@
1
- <h2><?php echo __('Instructions', 'blc'); ?></h2>
2
 
3
  <p>
4
  <?php echo __('After installing and activating the Newsletter Subscribe
5
- extension you will have two possibilities to show your subscribe form:', 'blc') ?>
6
  </p>
7
 
8
  <ol class="ct-modal-list">
9
  <li>
10
- <h4><?php echo __('Widget', 'blc') ?></h4>
11
  <i>
12
  <?php
13
  echo sprintf(
14
- __('Navigate to %s and place the widget in any widget area you want.', 'blc'),
15
  sprintf(
16
  '<code>%s</code>',
17
- __('Appearance ➝ Widgets', 'blc')
18
  )
19
  );
20
  ?>
@@ -22,17 +22,17 @@
22
  </li>
23
 
24
  <li>
25
- <h4><?php echo __('Single Page Block', 'blc') ?></h4>
26
  <i>
27
  <?php
28
  echo sprintf(
29
- __('Navigate to %s and customize the form and more.', 'blc'),
30
  sprintf(
31
  '<code>%s</code>',
32
- __('Customizer ➝ Single Posts', 'blc')
33
  )
34
  );
35
  ?>
36
  </i>
37
  </li>
38
- </ol>
1
+ <h2><?php echo __('Instructions', 'blocksy-companion'); ?></h2>
2
 
3
  <p>
4
  <?php echo __('After installing and activating the Newsletter Subscribe
5
+ extension you will have two possibilities to show your subscribe form:', 'blocksy-companion') ?>
6
  </p>
7
 
8
  <ol class="ct-modal-list">
9
  <li>
10
+ <h4><?php echo __('Widget', 'blocksy-companion') ?></h4>
11
  <i>
12
  <?php
13
  echo sprintf(
14
+ __('Navigate to %s and place the widget in any widget area you want.', 'blocksy-companion'),
15
  sprintf(
16
  '<code>%s</code>',
17
+ __('Appearance ➝ Widgets', 'blocksy-companion')
18
  )
19
  );
20
  ?>
22
  </li>
23
 
24
  <li>
25
+ <h4><?php echo __('Single Page Block', 'blocksy-companion') ?></h4>
26
  <i>
27
  <?php
28
  echo sprintf(
29
+ __('Navigate to %s and customize the form and more.', 'blocksy-companion'),
30
  sprintf(
31
  '<code>%s</code>',
32
+ __('Customizer ➝ Single Posts', 'blocksy-companion')
33
  )
34
  );
35
  ?>
36
  </i>
37
  </li>
38
+ </ol>
framework/extensions/newsletter-subscribe/static/bundle/main.min.css CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * - v1.8.9.4
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
1
  /**
2
+ * - v1.8.9.5
3
  *
4
  * Copyright (c) 2021
5
  * Licensed GPLv2+
framework/extensions/product-reviews/config.php CHANGED
@@ -1,8 +1,8 @@
1
  <?php
2
 
3
  $config = [
4
- 'name' => __('Product Reviews', 'blc'),
5
- 'description' => __('This extension lets you easily create an affiliate marketing type of website by giving you options to create a personalized product review and use your affiliate links to direct your readers to the purchase page.', 'blc'),
6
  'require_refresh' => true
7
 
8
  // 'hidden' => true
1
  <?php
2
 
3
  $config = [
4
+ 'name' => __('Product Reviews', 'blocksy-companion'),
5
+ 'description' => __('This extension lets you easily create an affiliate marketing type of website by giving you options to create a personalized product review and use your affiliate links to direct your readers to the purchase page.', 'blocksy-companion'),
6
  'require_refresh' => true
7
 
8
  // 'hidden' => true
framework/extensions/product-reviews/extension.php CHANGED
@@ -35,7 +35,7 @@ class BlocksyExtensionProductReviews {
35
  return;
36
  }
37
 
38
- echo '<div class="ct-item-review-meta" ' . $maybe_schema . '>';
39
  echo '<meta itemprop="name" content="' . get_the_title() . '">';
40
  if (get_the_post_thumbnail_url()) {
41
  echo '<meta itemprop="image" content="' . get_the_post_thumbnail_url() . '">';
@@ -230,11 +230,11 @@ class BlocksyExtensionProductReviews {
230
  ];
231
 
232
  $option['settings']['overall_score'] = [
233
- 'label' => __('Overall Score', 'blc'),
234
  /*
235
  'options' => [
236
  'excerpt_length' => [
237
- 'label' => __('Length', 'blc'),
238
  'type' => 'ct-number',
239
  'design' => 'inline',
240
  'value' => 40,
@@ -288,18 +288,18 @@ class BlocksyExtensionProductReviews {
288
  }
289
 
290
  $options[$prefix . '_reviews_summary'] = [
291
- 'label' => __( 'Review Summary', 'blc' ),
292
  'type' => 'ct-panel',
293
  'setting' => [ 'transport' => 'postMessage' ],
294
  'inner-options' => [
295
 
296
  blocksy_rand_md5() => [
297
- 'title' => __( 'General', 'blc' ),
298
  'type' => 'tab',
299
  'options' => [
300
 
301
  $prefix . '_product_scores_width' => [
302
- 'label' => __( 'Scores Box Width', 'blc' ),
303
  'type' => 'ct-slider',
304
  'min' => 0,
305
  'max' => 1200,
@@ -309,7 +309,7 @@ class BlocksyExtensionProductReviews {
309
  ],
310
 
311
  $prefix . '_has_read_more' => [
312
- 'label' => __('Read More Button', 'blc'),
313
  'type' => 'ct-switch',
314
  'value' => 'yes',
315
  'divider' => 'top',
@@ -320,7 +320,7 @@ class BlocksyExtensionProductReviews {
320
  ],
321
 
322
  $prefix . '_has_buy_now' => [
323
- 'label' => __('Buy Now Button', 'blc'),
324
  'type' => 'ct-switch',
325
  'value' => 'yes',
326
  'divider' => 'top',
@@ -334,12 +334,12 @@ class BlocksyExtensionProductReviews {
334
  ],
335
 
336
  blocksy_rand_md5() => [
337
- 'title' => __( 'Design', 'blc' ),
338
  'type' => 'tab',
339
  'options' => [
340
 
341
  $prefix . '_star_rating_color' => [
342
- 'label' => __( 'Star Rating Color', 'blc' ),
343
  'type' => 'ct-color-picker',
344
  'design' => 'inline',
345
  'setting' => [ 'transport' => 'postMessage' ],
@@ -356,13 +356,13 @@ class BlocksyExtensionProductReviews {
356
 
357
  'pickers' => [
358
  [
359
- 'title' => __( 'Active', 'blc' ),
360
  'id' => 'default',
361
  'inherit' => '#FDA256'
362
  ],
363
 
364
  [
365
- 'title' => __( 'Inactive', 'blc' ),
366
  'id' => 'inactive',
367
  'inherit' => '#F9DFCC'
368
  ],
@@ -370,7 +370,7 @@ class BlocksyExtensionProductReviews {
370
  ],
371
 
372
  $prefix . '_overall_score_text' => [
373
- 'label' => __( 'Overll Score Text', 'blc' ),
374
  'type' => 'ct-color-picker',
375
  'design' => 'inline',
376
  'divider' => 'top',
@@ -384,7 +384,7 @@ class BlocksyExtensionProductReviews {
384
 
385
  'pickers' => [
386
  [
387
- 'title' => __( 'Active', 'blc' ),
388
  'id' => 'default',
389
  'inherit' => '#ffffff'
390
  ],
@@ -392,7 +392,7 @@ class BlocksyExtensionProductReviews {
392
  ],
393
 
394
  $prefix . '_overall_score_backgroud' => [
395
- 'label' => __( 'Overll Score Background', 'blc' ),
396
  'type' => 'ct-color-picker',
397
  'design' => 'inline',
398
  'setting' => [ 'transport' => 'postMessage' ],
@@ -405,7 +405,7 @@ class BlocksyExtensionProductReviews {
405
 
406
  'pickers' => [
407
  [
408
- 'title' => __( 'Active', 'blc' ),
409
  'id' => 'default',
410
  'inherit' => '#1A202C'
411
  ],
@@ -431,23 +431,23 @@ class BlocksyExtensionProductReviews {
431
  $settings = $this->get_settings();
432
 
433
  register_post_type('blc-product-review', [
434
- 'label' => __('Product Reviews', 'blc'),
435
- 'description' => __( 'Product Reviews', 'blc'),
436
  'menu_icon' => 'dashicons-star-filled',
437
  'labels' => [
438
- 'name' => __('Product Reviews', 'blc'),
439
- 'singular_name' => __('Product Review', 'blc'),
440
- 'menu_name' => __('Product Reviews', 'blc'),
441
- 'parent_item_colon' => __('Parent Product Review', 'blc'),
442
- 'all_items' => __('All Reviews', 'blc'),
443
- 'view_item' => __('View Product Review', 'blc'),
444
- 'add_new_item' => __('Add New Product Review', 'blc'),
445
- 'add_new' => __('Add New Review', 'blc'),
446
- 'edit_item' => __('Edit Product Review', 'blc'),
447
- 'update_item' => __('Update Product Review', 'blc'),
448
- 'search_items' => __('Search Product Review', 'blc'),
449
- 'not_found' => __('Not Found', 'blc'),
450
- 'not_found_in_trash' => __('Not found in Trash', 'blc')
451
  ],
452
  'supports' => [
453
  'comments',
@@ -481,17 +481,17 @@ class BlocksyExtensionProductReviews {
481
  [
482
  'hierarchical' => true,
483
  'labels' => [
484
- 'name' => __('Categories', 'blc'),
485
- 'singular_name' => __('Category', 'blc'),
486
- 'search_items' => __('Search Category', 'blc'),
487
- 'all_items' => __('All Categories', 'blc'),
488
- 'parent_item' => __('Parent Category', 'blc'),
489
- 'parent_item_colon' => __('Parent Category:', 'blc'),
490
- 'edit_item' => __('Edit Category', 'blc'),
491
- 'update_item' => __('Update Category', 'blc'),
492
- 'add_new_item' => __('Add New Category', 'blc'),
493
- 'new_item_name' => __('New Category Name', 'blc'),
494
- 'menu_name' => __('Categories', 'blc'),
495
  ],
496
  'show_ui' => true,
497
  'show_admin_column' => true,
@@ -509,8 +509,8 @@ class BlocksyExtensionProductReviews {
509
  'blocksy_settings_meta_box',
510
  sprintf(
511
  // Translators: %s is the theme name.
512
- __( '%s Settings', 'blc' ),
513
- __( 'Blocksy', 'blc' )
514
  ),
515
  function ($post) {
516
  $values = get_post_meta($post->ID, 'blocksy_product_review_options');
35
  return;
36
  }
37
 
38
+ echo '<div ' . $maybe_schema . '>';
39
  echo '<meta itemprop="name" content="' . get_the_title() . '">';
40
  if (get_the_post_thumbnail_url()) {
41
  echo '<meta itemprop="image" content="' . get_the_post_thumbnail_url() . '">';
230
  ];
231
 
232
  $option['settings']['overall_score'] = [
233
+ 'label' => __('Overall Score', 'blocksy-companion'),
234
  /*
235
  'options' => [
236
  'excerpt_length' => [
237
+ 'label' => __('Length', 'blocksy-companion'),
238
  'type' => 'ct-number',
239
  'design' => 'inline',
240
  'value' => 40,
288
  }
289
 
290
  $options[$prefix . '_reviews_summary'] = [
291
+ 'label' => __( 'Review Summary', 'blocksy-companion' ),
292
  'type' => 'ct-panel',
293
  'setting' => [ 'transport' => 'postMessage' ],
294
  'inner-options' => [
295
 
296
  blocksy_rand_md5() => [
297
+ 'title' => __( 'General', 'blocksy-companion' ),
298
  'type' => 'tab',
299
  'options' => [
300
 
301
  $prefix . '_product_scores_width' => [
302
+ 'label' => __( 'Scores Box Width', 'blocksy-companion' ),
303
  'type' => 'ct-slider',
304
  'min' => 0,
305
  'max' => 1200,
309
  ],
310
 
311
  $prefix . '_has_read_more' => [
312
+ 'label' => __('Read More Button', 'blocksy-companion'),
313
  'type' => 'ct-switch',
314
  'value' => 'yes',
315
  'divider' => 'top',
320
  ],
321
 
322
  $prefix . '_has_buy_now' => [
323
+ 'label' => __('Buy Now Button', 'blocksy-companion'),
324
  'type' => 'ct-switch',
325
  'value' => 'yes',
326
  'divider' => 'top',
334
  ],
335
 
336
  blocksy_rand_md5() => [
337
+ 'title' => __( 'Design', 'blocksy-companion' ),
338
  'type' => 'tab',
339
  'options' => [
340
 
341
  $prefix . '_star_rating_color' => [
342
+ 'label' => __( 'Star Rating Color', 'blocksy-companion' ),
343
  'type' => 'ct-color-picker',
344
  'design' => 'inline',
345
  'setting' => [ 'transport' => 'postMessage' ],
356
 
357
  'pickers' => [
358
  [
359
+ 'title' => __( 'Active', 'blocksy-companion' ),
360
  'id' => 'default',
361
  'inherit' => '#FDA256'
362
  ],
363
 
364
  [
365
+ 'title' => __( 'Inactive', 'blocksy-companion' ),
366
  'id' => 'inactive',
367
  'inherit' => '#F9DFCC'
368
  ],
370
  ],
371
 
372
  $prefix . '_overall_score_text' => [
373
+ 'label' => __( 'Overll Score Text', 'blocksy-companion' ),
374
  'type' => 'ct-color-picker',
375
  'design' => 'inline',
376
  'divider' => 'top',
384
 
385
  'pickers' => [
386
  [
387
+ 'title' => __( 'Active', 'blocksy-companion' ),
388
  'id' => 'default',
389
  'inherit' => '#ffffff'
390
  ],
392
  ],
393
 
394
  $prefix . '_overall_score_backgroud' => [
395
+ 'label' => __( 'Overll Score Background', 'blocksy-companion' ),
396
  'type' => 'ct-color-picker',
397
  'design' => 'inline',
398
  'setting' => [ 'transport' => 'postMessage' ],
405
 
406
  'pickers' => [
407
  [
408
+ 'title' => __( 'Active', 'blocksy-companion' ),
409
  'id' => 'default',
410
  'inherit' => '#1A202C'
411
  ],
431
  $settings = $this->get_settings();
432
 
433
  register_post_type('blc-product-review', [
434
+ 'label' => __('Product Reviews', 'blocksy-companion'),
435
+ 'description' => __( 'Product Reviews', 'blocksy-companion'),
436
  'menu_icon' => 'dashicons-star-filled',
437
  'labels' => [
438
+ 'name' => __('Product Reviews', 'blocksy-companion'),
439
+ 'singular_name' => __('Product Review', 'blocksy-companion'),
440
+ 'menu_name' => __('Product Reviews', 'blocksy-companion'),
441
+ 'parent_item_colon' => __('Parent Product Review', 'blocksy-companion'),
442
+ 'all_items' => __('All Reviews', 'blocksy-companion'),
443
+ 'view_item' => __('View Product Review', 'blocksy-companion'),
444
+ 'add_new_item' => __('Add New Product Review', 'blocksy-companion'),
445
+ 'add_new' => __('Add New Review', 'blocksy-companion'),
446
+ 'edit_item' => __('Edit Product Review', 'blocksy-companion'),
447
+ 'update_item' => __('Update Product Review', 'blocksy-companion'),
448
+ 'search_items' => __('Search Product Review', 'blocksy-companion'),
449
+ 'not_found' => __('Not Found', 'blocksy-companion'),
450
+ 'not_found_in_trash' => __('Not found in Trash', 'blocksy-companion')
451
  ],
452
  'supports' => [
453
  'comments',
481
  [
482
  'hierarchical' => true,
483
  'labels' => [
484
+ 'name' => __('Categories', 'blocksy-companion'),
485
+ 'singular_name' => __('Category', 'blocksy-companion'),
486
+ 'search_items' => __('Search Category', 'blocksy-companion'),
487
+ 'all_items' => __('All Categories', 'blocksy-companion'),
488
+ 'parent_item' => __('Parent Category', 'blocksy-companion'),
489
+ 'parent_item_colon' => __('Parent Category:', 'blocksy-companion'),
490
+ 'edit_item' => __('Edit Category', 'blocksy-companion'),
491
+ 'update_item' => __('Update Category', 'blocksy-companion'),
492
+ 'add_new_item' => __('Add New Category', 'blocksy-companion'),
493
+ 'new_item_name' => __('New Category Name', 'blocksy-companion'),
494
+ 'menu_name' => __('Categories', 'blocksy-companion'),
495
  ],
496
  'show_ui' => true,
497
  'show_admin_column' => true,
509
  'blocksy_settings_meta_box',
510
  sprintf(
511
  // Translators: %s is the theme name.
512
+ __( '%s Settings', 'blocksy-companion' ),
513
+ __( 'Blocksy', 'blocksy-companion' )
514
  ),
515
  function ($post) {
516
  $values = get_post_meta($post->ID, 'blocksy_product_review_options');
framework/extensions/product-reviews/helpers.php CHANGED
@@ -27,7 +27,7 @@ function blocksy_get_product_review_overall_score($post_id = null) {
27
  );
28
 
29
  $output .= '<span class="ct-score-label">';
30
- $output .= __('Rating', 'blc');
31
  $output .= ':</span>';
32
 
33
  $output .= '<span class="ct-average-score">' . $avg_score . '/5</span>';
27
  );
28
 
29
  $output .= '<span class="ct-score-label">';
30
+ $output .= __('Rating', 'blocksy-companion');
31
  $output .= ':