Really Simple SSL - Version 6.0.12

Version Description

  • Fix: on multisite, the test for users with admin username did not use the correct prefix, $wpdb->base_prefix, props @jg-visual
  • Improvement: allow submenu in back-end react application
  • Improvement: Skip value update when no change has been made
  • Improvement: no redirect on dismiss of admin notice, props @gangesh, @rtpHarry, @dumel
  • Improvement: remove obsolete warning
  • Improvement: qtranslate support on settings page
Download this release

Release Info

Developer RogierLankhorst
Plugin Icon 128x128 Really Simple SSL
Version 6.0.12
Comparing to
See all releases

Code changes from version 6.0.11 to 6.0.12

class-admin.php CHANGED
@@ -178,11 +178,6 @@ class rsssl_admin
178
  add_action('shutdown', array( RSSSL()->cache, 'flush' ) );
179
  }
180
 
181
- // Set default progress toggle to remaining tasks if it hasn't been set
182
- if (!get_option('rsssl_all_tasks') && !get_option('rsssl_remaining_tasks') ) {
183
- update_option('rsssl_remaining_tasks', true, false );
184
- }
185
-
186
  /*
187
  Detect configuration when:
188
  - on settings page
@@ -420,6 +415,9 @@ class rsssl_admin
420
  public function notice_html( string $class, string $content, $more_info=false, $dismiss_id=false ) {
421
  $class .= ' notice ';
422
  $target = strpos($more_info, 'really-simple-ssl.com')!==false ? 'target="_blank"' : '';
 
 
 
423
  ob_start();?>
424
  <style>
425
  #rsssl-message {
@@ -455,7 +453,7 @@ class rsssl_admin
455
  margin:0 auto 0 10px;
456
  }
457
  </style>
458
- <?php }?>
459
  <div id="rsssl-message" class="<?php echo $class?> really-simple-plugins">
460
  <div class="rsssl-notice">
461
  <div class="rsssl-notice-content">
@@ -463,7 +461,9 @@ class rsssl_admin
463
  </div>
464
  <?php if ($more_info ) { ?>
465
  <div class="rsssl-admin-notice-more-info">
466
- <a class="button" href="<?php echo add_query_arg(['page'=>'really-simple-security', 'dismiss_notice'=>$dismiss_id], rsssl_admin_url() )?>"><?php _e("Dismiss", "really-simple-ssl")?></a>
 
 
467
  <a class="button" <?php echo $target?> href="<?php echo esc_url_raw($more_info)?>"><?php _e("More info", "really-simple-ssl")?></a></div>
468
  <?php } ?>
469
  </div>
@@ -1754,7 +1754,6 @@ class rsssl_admin
1754
  if ( !rsssl_user_can_manage() ){
1755
  return [];
1756
  }
1757
-
1758
  $icon_labels = [
1759
  'success' => __("Completed", "really-simple-ssl"),
1760
  'warning' => __("Warning", "really-simple-ssl"),
178
  add_action('shutdown', array( RSSSL()->cache, 'flush' ) );
179
  }
180
 
 
 
 
 
 
181
  /*
182
  Detect configuration when:
183
  - on settings page
415
  public function notice_html( string $class, string $content, $more_info=false, $dismiss_id=false ) {
416
  $class .= ' notice ';
417
  $target = strpos($more_info, 'really-simple-ssl.com')!==false ? 'target="_blank"' : '';
418
+ $url = is_ssl() ? "https://" : "http://";
419
+ $url .= $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
420
+ $url = esc_url_raw($url);
421
  ob_start();?>
422
  <style>
423
  #rsssl-message {
453
  margin:0 auto 0 10px;
454
  }
455
  </style>
456
+ <?php } ?>
457
  <div id="rsssl-message" class="<?php echo $class?> really-simple-plugins">
458
  <div class="rsssl-notice">
459
  <div class="rsssl-notice-content">
461
  </div>
462
  <?php if ($more_info ) { ?>
463
  <div class="rsssl-admin-notice-more-info">
464
+ <?php if ($dismiss_id) { ?>
465
+ <a class="button" href="<?php echo add_query_arg(['dismiss_notice'=>$dismiss_id], $url )?>"><?php _e("Dismiss", "really-simple-ssl")?></a>
466
+ <?php } ?>
467
  <a class="button" <?php echo $target?> href="<?php echo esc_url_raw($more_info)?>"><?php _e("More info", "really-simple-ssl")?></a></div>
468
  <?php } ?>
469
  </div>
1754
  if ( !rsssl_user_can_manage() ){
1755
  return [];
1756
  }
 
1757
  $icon_labels = [
1758
  'success' => __("Completed", "really-simple-ssl"),
1759
  'warning' => __("Warning", "really-simple-ssl"),
functions.php CHANGED
@@ -50,14 +50,15 @@ function rsssl_is_networkwide_active(){
50
  if ( !is_multisite() ) {
51
  return false;
52
  }
53
- if ( !function_exists('is_plugin_active_for_network') )
54
- require_once(ABSPATH . '/wp-admin/includes/plugin.php');
 
55
 
56
  if ( is_plugin_active_for_network(rsssl_plugin) ) {
57
  return true;
58
- } else {
59
- return false;
60
  }
 
 
61
  }
62
 
63
  /**
50
  if ( !is_multisite() ) {
51
  return false;
52
  }
53
+ if ( !function_exists('is_plugin_active_for_network') ) {
54
+ require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
55
+ }
56
 
57
  if ( is_plugin_active_for_network(rsssl_plugin) ) {
58
  return true;
 
 
59
  }
60
+
61
+ return false;
62
  }
63
 
64
  /**
languages/really-simple-ssl.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Really Simple SSL 6.0.11\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/really-simple-ssl\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-11-21T13:09:23+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: really-simple-ssl\n"
@@ -49,20 +49,16 @@ msgstr ""
49
  msgid "Really Simple SSL and Really Simple SSL add-ons do not process any personal identifiable information, so the GDPR does not apply to these plugins or usage of these plugins on your website. You can find our privacy policy <a href=\"%s\" target=\"_blank\">here</a>."
50
  msgstr ""
51
 
52
- #: class-admin.php:466
53
- #: settings/build/index.js:5453
54
  #: settings/src/Onboarding/Onboarding.js:269
55
- #: settings/build/index.js:4898
56
  msgid "Dismiss"
57
  msgstr ""
58
 
59
  #: class-admin.php:467
60
- #: settings/build/index.js:4048
61
- #: settings/build/index.js:6473
62
  #: settings/src/Dashboard/TaskElement.js:29
63
  #: settings/src/Settings/Help.js:26
64
- #: settings/build/index.js:3598
65
- #: settings/build/index.js:5812
66
  msgid "More info"
67
  msgstr ""
68
 
@@ -86,331 +82,325 @@ msgstr ""
86
  msgid "Don't show again"
87
  msgstr ""
88
 
89
- #: class-admin.php:1759
90
  msgid "Completed"
91
  msgstr ""
92
 
93
- #: class-admin.php:1760
94
- #: settings/build/index.js:7221
95
  #: settings/src/Settings/MixedContentScan.js:198
96
- #: settings/build/index.js:6536
97
  msgid "Warning"
98
  msgstr ""
99
 
100
- #: class-admin.php:1761
101
  msgid "Open"
102
  msgstr ""
103
 
104
- #: class-admin.php:1762
105
- #: settings/build/index.js:3114
106
- #: settings/build/index.js:7956
107
  #: settings/src/Dashboard/OtherPlugins.js:85
108
  #: settings/src/Settings/SettingsGroup.js:133
109
- #: settings/build/index.js:2726
110
- #: settings/build/index.js:7213
111
  msgid "Upgrade"
112
  msgstr ""
113
 
114
- #: class-admin.php:1799
115
  msgid "No recommended redirect rules detected."
116
  msgstr ""
117
 
118
- #: class-admin.php:1814
119
  msgid "(Unknown)"
120
  msgstr ""
121
 
122
- #: class-admin.php:1823
123
  msgid "Your wp-config.php has to be edited, but is not writable."
124
  msgstr ""
125
 
126
- #: class-admin.php:1824
127
- #: class-admin.php:1845
128
  msgid "Set your wp-config.php to writable and reload this page."
129
  msgstr ""
130
 
131
- #: class-admin.php:1825
132
  msgid "To safely enable SSL on your server configuration, you should add the following line of code to your wp-config.php."
133
  msgstr ""
134
 
135
- #: class-admin.php:1845
136
  msgid "A definition of a site url or home url was detected in your wp-config.php, but the file is not writable."
137
  msgstr ""
138
 
139
- #: class-admin.php:1860
140
  msgid "The 'force-deactivate.php' file has to be renamed to .txt. Otherwise your ssl can be deactivated by anyone on the internet."
141
  msgstr ""
142
 
143
- #: class-admin.php:1861
144
  msgid "Check again"
145
  msgstr ""
146
 
147
- #: class-admin.php:1875
148
  msgid "The Really Simple SSL plugin folder in the /wp-content/plugins/ directory has been renamed to %s. This might cause issues when deactivating, or with premium add-ons. To fix this you can rename the Really Simple SSL folder back to the default %s."
149
  msgstr ""
150
 
151
- #: class-admin.php:1890
152
  msgid "SSL is now activated. Check if your website is secure by following this article."
153
  msgstr ""
154
 
155
- #: class-admin.php:1905
156
  msgid "Really Simple SSL Pro is not up to date. Update Really Simple SSL Pro to ensure compatibility."
157
  msgstr ""
158
 
159
- #: class-admin.php:1920
160
  msgid "Remember to change your URLs in external services like Google Analytics, Search Console and others. This should prevent any data loss resulting from the switch to https."
161
  msgstr ""
162
 
163
- #: class-admin.php:1934
164
  msgid "SSL is enabled on your site."
165
  msgstr ""
166
 
167
- #: class-admin.php:1938
168
  msgid "SSL is not enabled yet."
169
  msgstr ""
170
 
171
- #: class-admin.php:1955
172
  msgid "The wp-config.php file is not writable, and needs to be edited. Please set this file to writable."
173
  msgstr ""
174
 
175
- #: class-admin.php:1959
176
  msgid "No SSL detected"
177
  msgstr ""
178
 
179
- #: class-admin.php:1960
180
  msgid "No SSL detected. Use the retry button to check again."
181
  msgstr ""
182
 
183
- #: class-admin.php:1961
184
- #: class-admin.php:1969
185
- #: class-admin.php:1983
186
  msgid "Install SSL certificate"
187
  msgstr ""
188
 
189
- #: class-admin.php:1962
190
  msgid "Retry"
191
  msgstr ""
192
 
193
- #: class-admin.php:1967
194
  msgid "Could not test certificate"
195
  msgstr ""
196
 
197
- #: class-admin.php:1968
198
  #: onboarding/config.php:175
199
  msgid "Automatic certificate detection is not possible on your server."
200
  msgstr ""
201
 
202
- #: class-admin.php:1970
203
  msgid "Check manually"
204
  msgstr ""
205
 
206
- #: class-admin.php:1975
207
  msgid "An SSL certificate was detected on your site."
208
  msgstr ""
209
 
210
- #: class-admin.php:1980
211
  msgid "Your SSL certificate will expire soon."
212
  msgstr ""
213
 
214
- #: class-admin.php:1981
215
  msgid "SSL certificate will expire on %s."
216
  msgstr ""
217
 
218
- #: class-admin.php:1981
219
  msgid "If your hosting provider auto-renews your certificate, no action is required. Alternatively, you have the option to generate an SSL certificate with Really Simple SSL."
220
  msgstr ""
221
 
222
- #: class-admin.php:1982
223
  msgid "Depending on your hosting provider, %smanual installation%s may be required."
224
  msgstr ""
225
 
226
- #: class-admin.php:1984
227
  msgid "Re-check"
228
  msgstr ""
229
 
230
- #: class-admin.php:1996
231
  msgid "Mixed content fixer was successfully detected on the front-end."
232
  msgstr ""
233
 
234
- #: class-admin.php:2001
235
  msgid "Really Simple SSL has received no response from the webpage."
236
  msgstr ""
237
 
238
- #: class-admin.php:2008
239
  msgid "The mixed content fixer is active, but was not detected on the frontpage."
240
  msgstr ""
241
 
242
- #: class-admin.php:2013
243
  msgid "Error occurred when retrieving the webpage."
244
  msgstr ""
245
 
246
- #: class-admin.php:2019
247
  msgid "Mixed content fixer not enabled. Enable the option to fix mixed content on your site."
248
  msgstr ""
249
 
250
- #: class-admin.php:2025
251
  msgid "The mixed content fixer could not be detected due to a cURL error: %s. cURL errors are often caused by an outdated version of PHP or cURL and don't affect the front-end of your site. Contact your hosting provider for a fix."
252
  msgstr ""
253
 
254
- #: class-admin.php:2038
255
  msgid "301 redirect to https set."
256
  msgstr ""
257
 
258
- #: class-admin.php:2042
259
  msgid "No 301 redirect is set. Enable the WordPress 301 redirect in the settings to get a 301 permanent redirect."
260
  msgstr ""
261
 
262
- #: class-admin.php:2057
263
  msgid "301 redirect to https set: .htaccess redirect."
264
  msgstr ""
265
 
266
- #: class-admin.php:2062
267
  msgid "WordPress 301 redirect enabled. We recommend to enable a 301 .htaccess redirect."
268
  msgstr ""
269
 
270
- #: class-admin.php:2069
271
  msgid "Enable a .htaccess redirect or PHP redirect in the settings to create a 301 redirect."
272
  msgstr ""
273
 
274
- #: class-admin.php:2074
275
  msgid ".htaccess redirect."
276
  msgstr ""
277
 
278
- #: class-admin.php:2076
279
  msgid "The .htaccess redirect rules selected by this plugin failed in the test. Set manually or dismiss to leave on PHP redirect."
280
  msgstr ""
281
 
282
- #: class-admin.php:2091
283
  msgid "Your site uses Elementor. This can require some additional steps before getting the secure lock."
284
  msgstr ""
285
 
286
- #: class-admin.php:2105
287
  msgid "Your site uses Divi. This can require some additional steps before getting the secure lock."
288
  msgstr ""
289
 
290
- #: class-admin.php:2121
291
  msgid "HttpOnly Secure cookies have been set automatically!"
292
  msgstr ""
293
 
294
- #: class-admin.php:2126
295
  msgid "HttpOnly Secure cookies not set."
296
  msgstr ""
297
 
298
- #: class-admin.php:2133
299
  msgid "To set the httponly secure cookie settings, your wp-config.php has to be edited, but the file is not writable."
300
  msgstr ""
301
 
302
- #: class-admin.php:2133
303
  msgid "Add the following lines of code to your wp-config.php."
304
  msgstr ""
305
 
306
- #: class-admin.php:2141
307
  msgid "Or set your wp-config.php to writable and reload this page."
308
  msgstr ""
309
 
310
- #: class-admin.php:2155
311
  msgid "See which recommended security headers are not present on your website."
312
  msgstr ""
313
 
314
- #: class-admin.php:2161
315
  msgid "Recommended security headers enabled."
316
  msgstr ""
317
 
318
- #: class-admin.php:2172
319
  msgid "Improve security with Really Simple SSL Pro."
320
  msgstr ""
321
 
322
- #: class-admin.php:2186
323
  msgid "Due to a recent update by WP Engine, we have changed your settings automatically to adapt."
324
  msgstr ""
325
 
326
- #: class-admin.php:2199
327
  msgid "You have the Really Simple SSL Let's Encrypt beta add-on activated. This functionality has now been integrated in core, so you can deactivate the add-on."
328
  msgstr ""
329
 
330
- #: class-admin.php:2210
331
  msgid "We have detected the %s plugin on your website."
332
  msgstr ""
333
 
334
- #: class-admin.php:2210
335
  msgid "As Really Simple SSL handles all the functionality this plugin provides, we recommend to disable this plugin to prevent unexpected behavior."
336
  msgstr ""
337
 
338
- #: class-admin.php:2225
339
  msgid "Black Friday sale! Get 40% Off Really Simple SSL Pro"
340
  msgstr ""
341
 
342
- #: class-admin.php:2241
343
  msgid "Thanks for updating to Really Simple SSL 6.0! Check out our new features on the settings page."
344
  msgstr ""
345
 
346
- #: class-admin.php:2591
347
  msgid "Are you sure?"
348
  msgstr ""
349
 
350
- #: class-admin.php:2602
351
  msgid "To deactivate the plugin correctly, please select if you want to:"
352
  msgstr ""
353
 
354
- #: class-admin.php:2604
355
  msgid "Deactivate, but stay on SSL."
356
  msgstr ""
357
 
358
- #: class-admin.php:2605
359
  msgid "Deactivate, and revert to http. This will remove all changes by the plugin."
360
  msgstr ""
361
 
362
- #: class-admin.php:2607
363
  msgid "Deactivating the plugin while keeping SSL will do the following:"
364
  msgstr ""
365
 
366
- #: class-admin.php:2609
367
  msgid "The mixed content fixer will stop working"
368
  msgstr ""
369
 
370
- #: class-admin.php:2610
371
  msgid "The WordPress 301 redirect will stop working"
372
  msgstr ""
373
 
374
- #: class-admin.php:2611
375
  msgid "Your site address will remain https://"
376
  msgstr ""
377
 
378
- #: class-admin.php:2612
379
  msgid "The .htaccess redirect will remain active"
380
  msgstr ""
381
 
382
- #: class-admin.php:2621
383
  #: upgrade/upgrade-to-pro.php:362
384
  msgid "Cancel"
385
  msgstr ""
386
 
387
- #: class-admin.php:2622
388
  msgid "Deactivate, keep https"
389
  msgstr ""
390
 
391
- #: class-admin.php:2623
392
  msgid "Deactivate, revert to http"
393
  msgstr ""
394
 
395
- #: class-admin.php:2649
396
- #: class-admin.php:2652
397
  #: class-multisite.php:216
398
  #: settings/config/config.php:17
399
- #: settings/build/index.js:3566
400
  #: settings/src/Dashboard/SecurityFeaturesBlock/SecurityFeaturesFooter.js:14
401
- #: settings/build/index.js:3112
402
  msgid "Settings"
403
  msgstr ""
404
 
405
- #: class-admin.php:2657
406
  #: class-multisite.php:219
407
- #: settings/build/index.js:4134
408
  #: settings/src/Header.js:43
409
- #: settings/build/index.js:3657
410
  msgid "Support"
411
  msgstr ""
412
 
413
- #: class-admin.php:2662
414
  #: class-multisite.php:223
415
  msgid "Improve security - Upgrade"
416
  msgstr ""
@@ -524,12 +514,9 @@ msgid "Really Simple SSL detected an SSL certificate, but has not been configure
524
  msgstr ""
525
 
526
  #: class-site-health.php:201
527
- #: settings/build/index.js:3407
528
- #: settings/build/index.js:5412
529
  #: settings/src/Dashboard/ProgressFooter.js:42
530
  #: settings/src/Onboarding/Onboarding.js:242
531
- #: settings/build/index.js:2997
532
- #: settings/build/index.js:4871
533
  msgid "Activate SSL"
534
  msgstr ""
535
 
@@ -770,12 +757,12 @@ msgid "We have not detected any known hosting limitations."
770
  msgstr ""
771
 
772
  #: lets-encrypt/class-letsencrypt-handler.php:1105
773
- #: lets-encrypt/functions.php:379
774
  msgid "According to our information, your hosting provider does not allow any kind of SSL installation, other then their own paid certificate. For an alternative hosting provider with SSL, see this %sarticle%s."
775
  msgstr ""
776
 
777
  #: lets-encrypt/class-letsencrypt-handler.php:1112
778
- #: lets-encrypt/functions.php:369
779
  msgid "According to our information, your hosting provider supplies your account with an SSL certificate by default. Please contact your %shosting support%s if this is not the case."
780
  msgstr ""
781
 
@@ -901,7 +888,7 @@ msgid "I don't know, or not listed, proceed with installation"
901
  msgstr ""
902
 
903
  #: lets-encrypt/config/fields.php:8
904
- #: settings/config/config.php:205
905
  msgid "System Status"
906
  msgstr ""
907
 
@@ -910,7 +897,7 @@ msgid "General settings"
910
  msgstr ""
911
 
912
  #: lets-encrypt/config/fields.php:17
913
- #: settings/config/config.php:223
914
  msgid "Directories"
915
  msgstr ""
916
 
@@ -919,12 +906,12 @@ msgid "DNS Verification"
919
  msgstr ""
920
 
921
  #: lets-encrypt/config/fields.php:25
922
- #: settings/config/config.php:233
923
  msgid "Generation"
924
  msgstr ""
925
 
926
  #: lets-encrypt/config/fields.php:29
927
- #: settings/config/config.php:238
928
  msgid "Installation"
929
  msgstr ""
930
 
@@ -1214,56 +1201,53 @@ msgstr ""
1214
  msgid "For more information, please read this %sarticle%s"
1215
  msgstr ""
1216
 
1217
- #: lets-encrypt/functions.php:354
1218
- #: lets-encrypt/functions.php:355
1219
- #: settings/build/index.js:2991
1220
- #: settings/build/index.js:7902
1221
  #: settings/src/Dashboard/GridBlock.js:93
1222
  #: settings/src/Settings/SettingsGroup.js:93
1223
- #: settings/build/index.js:2626
1224
- #: settings/build/index.js:7173
1225
  msgid "Instructions"
1226
  msgstr ""
1227
 
1228
- #: lets-encrypt/functions.php:358
1229
  msgid "Please complete manually in your hosting dashboard."
1230
  msgstr ""
1231
 
1232
- #: lets-encrypt/functions.php:359
1233
  msgid "Please activate it manually on your hosting dashboard."
1234
  msgstr ""
1235
 
1236
- #: lets-encrypt/functions.php:361
1237
  msgid "Please complete %smanually%s"
1238
  msgstr ""
1239
 
1240
- #: lets-encrypt/functions.php:362
1241
  msgid "Please activate it on your dashboard %smanually%s"
1242
  msgstr ""
1243
 
1244
- #: lets-encrypt/functions.php:363
1245
  msgid "Go to activation"
1246
  msgstr ""
1247
 
1248
- #: lets-encrypt/functions.php:364
1249
  msgid "Go to installation"
1250
  msgstr ""
1251
 
 
1252
  #: lets-encrypt/functions.php:371
1253
- #: lets-encrypt/functions.php:375
1254
- #: lets-encrypt/functions.php:385
1255
  msgid "After completing the installation, you can continue to the next step to complete your configuration."
1256
  msgstr ""
1257
 
1258
- #: lets-encrypt/functions.php:373
1259
  msgid "You already have free SSL on your hosting environment."
1260
  msgstr ""
1261
 
1262
- #: lets-encrypt/functions.php:382
1263
  msgid "Your hosting environment does not allow automatic SSL installation."
1264
  msgstr ""
1265
 
1266
- #: lets-encrypt/functions.php:384
1267
  msgid "You can follow these %sinstructions%s."
1268
  msgstr ""
1269
 
@@ -1408,7 +1392,7 @@ msgid "Burst Statistics - Self-hosted, Privacy-friendly analytics tool"
1408
  msgstr ""
1409
 
1410
  #: onboarding/config.php:76
1411
- #: settings/settings.php:314
1412
  msgid "Complianz - Cookie Consent Management as it should be"
1413
  msgstr ""
1414
 
@@ -1436,9 +1420,8 @@ msgstr ""
1436
  #: upgrade/upgrade-to-pro.php:138
1437
  #: upgrade/upgrade-to-pro.php:151
1438
  #: upgrade/upgrade-to-pro.php:168
1439
- #: settings/build/index.js:3089
1440
  #: settings/src/Dashboard/OtherPlugins.js:67
1441
- #: settings/build/index.js:2708
1442
  msgid "Install"
1443
  msgstr ""
1444
 
@@ -1447,13 +1430,10 @@ msgid "Activate our plugin %s"
1447
  msgstr ""
1448
 
1449
  #: onboarding/config.php:137
1450
- #: settings/config/config.php:243
1451
- #: settings/build/index.js:3090
1452
- #: settings/build/index.js:7010
1453
  #: settings/src/Dashboard/OtherPlugins.js:68
1454
  #: settings/src/Settings/License.js:134
1455
- #: settings/build/index.js:2709
1456
- #: settings/build/index.js:6326
1457
  msgid "Activate"
1458
  msgstr ""
1459
 
@@ -1495,10 +1475,9 @@ msgstr ""
1495
  #: placeholders/class-placeholder.php:159
1496
  #: placeholders/class-placeholder.php:185
1497
  #: placeholders/class-placeholder.php:210
1498
- #: settings/config/config.php:890
1499
- #: settings/build/index.js:7254
1500
  #: settings/src/Settings/MixedContentScan.js:227
1501
- #: settings/build/index.js:6565
1502
  msgid "Details"
1503
  msgstr ""
1504
 
@@ -1540,25 +1519,25 @@ msgstr ""
1540
  msgid "Widget with mixed content"
1541
  msgstr ""
1542
 
1543
- #: progress/class-progress.php:85
1544
  msgid "SSL is activated on your site."
1545
  msgstr ""
1546
 
1547
- #: progress/class-progress.php:85
1548
  msgid "You still have %s task open."
1549
  msgid_plural "You still have %s tasks open."
1550
  msgstr[0] ""
1551
  msgstr[1] ""
1552
 
1553
- #: progress/class-progress.php:87
1554
  msgid "SSL configuration finished!"
1555
  msgstr ""
1556
 
1557
- #: progress/class-progress.php:92
1558
  msgid "Basic SSL configuration finished! Improve your score with %sReally Simple SSL Pro%s."
1559
  msgstr ""
1560
 
1561
- #: progress/class-progress.php:98
1562
  msgid "SSL is not yet enabled on this site."
1563
  msgstr ""
1564
 
@@ -1695,43 +1674,39 @@ msgid "Prevent user enumeration"
1695
  msgstr ""
1696
 
1697
  #: security/notices.php:158
1698
- msgid "To prevent attackers from identifying the renamed administrator, activate the 'Disable User Enumeration' setting."
1699
- msgstr ""
1700
-
1701
- #: security/notices.php:173
1702
- #: security/notices.php:190
1703
  msgid "Username"
1704
  msgstr ""
1705
 
1706
- #: security/notices.php:174
1707
  msgid "Your site registered a user with the name 'admin'."
1708
  msgstr ""
1709
 
1710
- #: security/notices.php:191
1711
  msgid "Rename admin user enabled: Please choose a new username of at least 3 characters, which is not in use yet."
1712
  msgstr ""
1713
 
1714
- #: security/notices.php:206
1715
  msgid "Code execution is allowed in the public 'Uploads' folder."
1716
  msgstr ""
1717
 
1718
- #: security/notices.php:217
1719
  msgid "Your database prefix is renamed and randomized. Awesome!"
1720
  msgstr ""
1721
 
1722
- #: security/notices.php:222
1723
  msgid "Your database prefix is set to the default 'wp_'."
1724
  msgstr ""
1725
 
1726
- #: security/notices.php:252
1727
  msgid "The built-in file editors are accessible to others."
1728
  msgstr ""
1729
 
1730
- #: security/notices.php:266
1731
  msgid "Anyone can register an account on your site. Consider disabling this option in the WordPress general settings."
1732
  msgstr ""
1733
 
1734
- #: security/notices.php:280
1735
  msgid "Your WordPress version is visible to others."
1736
  msgstr ""
1737
 
@@ -1794,7 +1769,7 @@ msgstr ""
1794
 
1795
  #: settings/config/config.php:44
1796
  #: settings/config/config.php:50
1797
- #: settings/config/config.php:1158
1798
  msgid "Hardening"
1799
  msgstr ""
1800
 
@@ -1807,7 +1782,7 @@ msgid "Get Advanced Hardening with %sReally Simple SSL Pro%s"
1807
  msgstr ""
1808
 
1809
  #: settings/config/config.php:63
1810
- #: settings/config/config.php:629
1811
  msgid "XML-RPC"
1812
  msgstr ""
1813
 
@@ -1838,523 +1813,502 @@ msgid "Recommended Security Headers "
1838
  msgstr ""
1839
 
1840
  #: settings/config/config.php:113
1841
- #: settings/config/config.php:123
1842
  msgid "HTTP Strict Transport Security"
1843
  msgstr ""
1844
 
1845
- #: settings/config/config.php:114
1846
- msgid "Intro HSTS"
1847
- msgstr ""
1848
-
1849
- #: settings/config/config.php:121
1850
  msgid "Get HTTP Strict Transport Security with %sReally Simple SSL Pro%s"
1851
  msgstr ""
1852
 
 
1853
  #: settings/config/config.php:130
1854
- #: settings/config/config.php:131
1855
- #: settings/config/config.php:141
1856
- #: settings/config/config.php:912
1857
  msgid "Permissions Policy"
1858
  msgstr ""
1859
 
1860
- #: settings/config/config.php:136
1861
  msgid "Get the Permissions Policy with %sReally Simple SSL Pro%s"
1862
  msgstr ""
1863
 
1864
- #: settings/config/config.php:147
1865
  msgid "Content Security Policy"
1866
  msgstr ""
1867
 
1868
- #: settings/config/config.php:148
1869
  msgid "Content Security Policy intro"
1870
  msgstr ""
1871
 
1872
- #: settings/config/config.php:155
1873
  msgid "Get Upgrade Insecure Requests with %sReally Simple SSL Pro%s"
1874
  msgstr ""
1875
 
1876
- #: settings/config/config.php:158
1877
  msgid "Upgrade Insecure Requests"
1878
  msgstr ""
1879
 
1880
- #: settings/config/config.php:164
1881
  msgid "Get Frame Ancestors with %sReally Simple SSL Pro%s"
1882
  msgstr ""
1883
 
1884
- #: settings/config/config.php:167
1885
  msgid "Frame Ancestors"
1886
  msgstr ""
1887
 
1888
- #: settings/config/config.php:174
1889
  msgid "Get Source Directives with %sReally Simple SSL Pro%s"
1890
  msgstr ""
1891
 
1892
- #: settings/config/config.php:176
1893
  msgid "Source Directives"
1894
  msgstr ""
1895
 
1896
- #: settings/config/config.php:184
1897
  msgid "Get Cross Origin Policy Headers with %sReally Simple SSL Pro%s"
1898
  msgstr ""
1899
 
1900
- #: settings/config/config.php:186
1901
  msgid "Cross Origin Policy"
1902
  msgstr ""
1903
 
1904
- #: settings/config/config.php:195
1905
  msgid "Let's Encrypt"
1906
  msgstr ""
1907
 
1908
- #: settings/config/config.php:196
1909
  msgid "We have tried to make our Wizard as simple and fast as possible. Although these questions are all necessary, if there’s any way you think we can improve the plugin, please let us %sknow%s!"
1910
  msgstr ""
1911
 
1912
- #: settings/config/config.php:198
1913
  msgid " Please note that you can always save and finish the wizard later, use our %sdocumentation%s for additional information or log a %ssupport ticket%s if you need our assistance."
1914
  msgstr ""
1915
 
1916
- #: settings/config/config.php:206
1917
  msgid "Letʼs Encrypt is a free, automated and open certificate authority brought to you by the nonprofit Internet Security Research Group (ISRG)."
1918
  msgstr ""
1919
 
1920
- #: settings/config/config.php:213
1921
  msgid "General Settings"
1922
  msgstr ""
1923
 
1924
- #: settings/config/config.php:217
1925
  msgid "Hosting"
1926
  msgstr ""
1927
 
1928
- #: settings/config/config.php:218
1929
  msgid "Below you will find the instructions for different hosting environments and configurations. If you start the process with the necessary instructions and credentials the next view steps will be done in no time."
1930
  msgstr ""
1931
 
1932
- #: settings/config/config.php:228
1933
  msgid "DNS verification"
1934
  msgstr ""
1935
 
1936
- #: settings/config/config.php:290
1937
- #: settings/config/config.php:298
1938
  msgid "Redirect method"
1939
  msgstr ""
1940
 
1941
- #: settings/config/config.php:292
1942
  msgid "No redirect"
1943
  msgstr ""
1944
 
1945
- #: settings/config/config.php:293
1946
  msgid "301 PHP redirect"
1947
  msgstr ""
1948
 
1949
- #: settings/config/config.php:294
1950
  msgid "301 .htaccess redirect"
1951
  msgstr ""
1952
 
1953
- #: settings/config/config.php:299
1954
  msgid "Redirects all requests over HTTP to HTTPS using a PHP 301 redirect. Enable if the .htaccess redirect cannot be used, for example on NGINX servers."
1955
  msgstr ""
1956
 
1957
- #: settings/config/config.php:315
1958
  msgid "Mixed content fixer"
1959
  msgstr ""
1960
 
1961
- #: settings/config/config.php:329
1962
- #: settings/config/config.php:332
1963
  msgid "Mixed content fixer - init hook"
1964
  msgstr ""
1965
 
1966
- #: settings/config/config.php:333
1967
  msgid "If this option is set to true, the mixed content fixer will fire on the init hook instead of the template_redirect hook. Only use this option when you experience problems with the mixed content fixer."
1968
  msgstr ""
1969
 
1970
- #: settings/config/config.php:351
1971
  msgid "Mixed content fixer - back-end"
1972
  msgstr ""
1973
 
1974
- #: settings/config/config.php:360
1975
  msgid "Dismiss all notices"
1976
  msgstr ""
1977
 
1978
- #: settings/config/config.php:370
1979
- #: settings/build/index.js:4537
1980
- #: settings/build/index.js:4547
1981
- #: settings/build/index.js:4557
1982
  #: settings/src/LetsEncrypt/Installation.js:103
1983
  #: settings/src/LetsEncrypt/Installation.js:108
1984
  #: settings/src/LetsEncrypt/Installation.js:112
1985
- #: settings/build/index.js:4119
1986
- #: settings/build/index.js:4124
1987
- #: settings/build/index.js:4128
1988
  msgid "Download"
1989
  msgstr ""
1990
 
1991
- #: settings/config/config.php:371
1992
  msgid "System status"
1993
  msgstr ""
1994
 
1995
- #: settings/config/config.php:380
1996
  msgid "Delete all data on plugin deletion"
1997
  msgstr ""
1998
 
1999
- #: settings/config/config.php:388
2000
  msgid "Stop editing the .htaccess file"
2001
  msgstr ""
2002
 
2003
- #: settings/config/config.php:405
2004
  msgid "Premium support"
2005
  msgstr ""
2006
 
2007
- #: settings/config/config.php:418
2008
  msgid "Disable \"anyone can register\""
2009
  msgstr ""
2010
 
2011
- #: settings/config/config.php:424
2012
  msgid "About Hardening"
2013
  msgstr ""
2014
 
2015
- #: settings/config/config.php:425
2016
  msgid "Hardening features limit the possibility of potential weaknesses and vulnerabilities which can be misused."
2017
  msgstr ""
2018
 
2019
- #: settings/config/config.php:428
2020
  msgid "User registration is restricted"
2021
  msgstr ""
2022
 
2023
- #: settings/config/config.php:429
2024
  msgid "User registration is not restricted"
2025
  msgstr ""
2026
 
2027
- #: settings/config/config.php:438
2028
  msgid "Disable the built-in file editors"
2029
  msgstr ""
2030
 
2031
- #: settings/config/config.php:442
2032
  msgid "File editing is disabled"
2033
  msgstr ""
2034
 
2035
- #: settings/config/config.php:443
2036
  msgid "File editing is enabled"
2037
  msgstr ""
2038
 
2039
- #: settings/config/config.php:452
2040
  msgid "Prevent code execution in the public 'Uploads' folder"
2041
  msgstr ""
2042
 
2043
- #: settings/config/config.php:456
2044
  msgid "Code execution is restricted"
2045
  msgstr ""
2046
 
2047
- #: settings/config/config.php:457
2048
  msgid "Code execution is not restricted"
2049
  msgstr ""
2050
 
2051
- #: settings/config/config.php:466
2052
  msgid "Hide your WordPress version"
2053
  msgstr ""
2054
 
2055
- #: settings/config/config.php:475
2056
  msgid "Prevent exposed login feedback"
2057
  msgstr ""
2058
 
2059
- #: settings/config/config.php:484
2060
  msgid "Disable directory browsing"
2061
  msgstr ""
2062
 
2063
- #: settings/config/config.php:488
2064
  msgid "Browsing directories is blocked"
2065
  msgstr ""
2066
 
2067
- #: settings/config/config.php:489
2068
  msgid "Browsing directories is possible"
2069
  msgstr ""
2070
 
2071
- #: settings/config/config.php:498
2072
  msgid "Disable user enumeration"
2073
  msgstr ""
2074
 
2075
- #: settings/config/config.php:502
2076
  msgid "User enumeration is restricted"
2077
  msgstr ""
2078
 
2079
- #: settings/config/config.php:503
2080
  msgid "User enumeration is possible"
2081
  msgstr ""
2082
 
2083
- #: settings/config/config.php:512
2084
  msgid "Rename current 'admin' username"
2085
  msgstr ""
2086
 
2087
- #: settings/config/config.php:516
2088
  msgid "Username 'Admin' is not allowed"
2089
  msgstr ""
2090
 
2091
- #: settings/config/config.php:517
2092
  msgid "Username 'Admin' is allowed"
2093
  msgstr ""
2094
 
2095
- #: settings/config/config.php:526
2096
  msgid "Choose new username to replace 'admin'"
2097
  msgstr ""
2098
 
2099
- #: settings/config/config.php:550
2100
  msgid "Disable XML-RPC"
2101
  msgstr ""
2102
 
2103
- #: settings/config/config.php:559
2104
  msgid "Block user registrations when login and display name are the same"
2105
  msgstr ""
2106
 
2107
- #: settings/config/config.php:568
2108
  msgid "Disable HTTP methods"
2109
  msgstr ""
2110
 
2111
- #: settings/config/config.php:577
2112
  msgid "Rename and randomize your database prefix"
2113
  msgstr ""
2114
 
2115
- #: settings/config/config.php:580
2116
  msgid "Make sure you have a backup before you do this."
2117
  msgstr ""
2118
 
2119
- #: settings/config/config.php:587
2120
  msgid "Change debug.log file location"
2121
  msgstr ""
2122
 
2123
- #: settings/config/config.php:591
2124
  msgid "Debug log not publicly accessible"
2125
  msgstr ""
2126
 
2127
- #: settings/config/config.php:592
2128
  msgid "Debug log is now public"
2129
  msgstr ""
2130
 
2131
- #: settings/config/config.php:601
2132
  msgid "Disable application passwords"
2133
  msgstr ""
2134
 
2135
- #: settings/config/config.php:641
2136
  msgid "Method"
2137
  msgstr ""
2138
 
2139
- #: settings/config/config.php:646
2140
  msgid "Login status"
2141
  msgstr ""
2142
 
2143
- #: settings/config/config.php:651
2144
  msgid "Count"
2145
  msgstr ""
2146
 
2147
- #: settings/config/config.php:656
2148
- #: settings/config/config.php:1093
2149
  msgid "Action"
2150
  msgstr ""
2151
 
2152
- #: settings/config/config.php:661
2153
  msgid "Delete"
2154
  msgstr ""
2155
 
2156
- #: settings/config/config.php:678
2157
  msgid "About Recommended Security Headers"
2158
  msgstr ""
2159
 
2160
- #: settings/config/config.php:679
2161
  msgid "These security headers are the fundamental security measures to protect your website visitors while visiting your website."
2162
  msgstr ""
2163
 
2164
- #: settings/config/config.php:697
2165
- #: settings/config/config.php:711
2166
- #: settings/config/config.php:811
2167
- #: settings/config/config.php:833
2168
- #: settings/config/config.php:848
2169
  msgid "Off"
2170
  msgstr ""
2171
 
2172
- #: settings/config/config.php:712
2173
  msgid "recommended"
2174
  msgstr ""
2175
 
2176
- #: settings/config/config.php:736
2177
  msgid "About HTTP Strict Transport Security"
2178
  msgstr ""
2179
 
2180
- #: settings/config/config.php:737
2181
  msgid "Leveraging your SSL certificate with HSTS is a staple for every website. Force your website over SSL, mitigating risks of malicious counterfeit websites in your name."
2182
  msgstr ""
2183
 
2184
- #: settings/config/config.php:791
2185
  msgid "One day (for testing only)"
2186
  msgstr ""
2187
 
2188
- #: settings/config/config.php:792
2189
  msgid "One year"
2190
  msgstr ""
2191
 
2192
- #: settings/config/config.php:793
2193
  msgid "Two years (required for preload)"
2194
  msgstr ""
2195
 
2196
- #: settings/config/config.php:819
2197
  msgid "About Cross Origin Policies"
2198
  msgstr ""
2199
 
2200
- #: settings/config/config.php:820
2201
  msgid "One of the most powerful features, and therefore the most complex are the Cross-Origin headers that can isolate your website so any data leaks are minimized."
2202
  msgstr ""
2203
 
2204
- #: settings/config/config.php:866
2205
  msgid "About the Mixed Content Scan"
2206
  msgstr ""
2207
 
2208
- #: settings/config/config.php:867
2209
  msgid "The extensive mixed content scan will list all current and future issues and provide a fix, or instructions to fix manually."
2210
  msgstr ""
2211
 
2212
- #: settings/config/config.php:871
2213
  msgid "Type"
2214
  msgstr ""
2215
 
2216
- #: settings/config/config.php:877
2217
  msgid "Description"
2218
  msgstr ""
2219
 
2220
- #: settings/config/config.php:883
2221
- #: settings/config/config.php:1078
2222
  msgid "Location"
2223
  msgstr ""
2224
 
2225
- #: settings/config/config.php:896
2226
- #: settings/build/index.js:4051
2227
- #: settings/build/index.js:4054
2228
- #: settings/build/index.js:5122
2229
- #: settings/build/index.js:7263
2230
  #: settings/src/Dashboard/TaskElement.js:30
2231
  #: settings/src/Dashboard/TaskElement.js:31
2232
  #: settings/src/Modal/Modal.js:80
2233
  #: settings/src/Settings/MixedContentScan.js:233
2234
- #: settings/build/index.js:3599
2235
- #: settings/build/index.js:3600
2236
- #: settings/build/index.js:4600
2237
- #: settings/build/index.js:6571
2238
  msgid "Fix"
2239
  msgstr ""
2240
 
2241
- #: settings/config/config.php:911
2242
- #: settings/build/index.js:6064
2243
  #: settings/src/Settings/ChangeStatus.js:11
2244
- #: settings/build/index.js:5447
2245
  msgid "Allow"
2246
  msgstr ""
2247
 
2248
- #: settings/config/config.php:911
2249
- #: settings/build/index.js:6817
2250
- #: settings/build/index.js:7611
2251
  #: settings/src/Settings/LearningMode.js:254
2252
  #: settings/src/Settings/PermissionsPolicy.js:148
2253
- #: settings/build/index.js:6143
2254
- #: settings/build/index.js:6890
2255
  msgid "Disable"
2256
  msgstr ""
2257
 
2258
- #: settings/config/config.php:911
2259
  msgid "Self (Default)"
2260
  msgstr ""
2261
 
2262
- #: settings/config/config.php:917
2263
  msgid "About the Permission Policy"
2264
  msgstr ""
2265
 
2266
- #: settings/config/config.php:918
2267
  msgid "Browser features are plentiful, but most are not needed on your website."
2268
  msgstr ""
2269
 
2270
- #: settings/config/config.php:918
2271
  msgid "They might be misused if you don’t actively tell the browser to disable these features."
2272
  msgstr ""
2273
 
2274
- #: settings/config/config.php:922
2275
  msgid "Feature"
2276
  msgstr ""
2277
 
2278
- #: settings/config/config.php:927
2279
  msgid "Options"
2280
  msgstr ""
2281
 
2282
- #: settings/config/config.php:1000
2283
  msgid "Enable Permissions Policy"
2284
  msgstr ""
2285
 
2286
- #: settings/config/config.php:1009
2287
  msgid "Serve encrypted and authenticated responses"
2288
  msgstr ""
2289
 
2290
- #: settings/config/config.php:1015
2291
  msgid "About the Content Security Policy"
2292
  msgstr ""
2293
 
2294
- #: settings/config/config.php:1016
2295
  msgid "The content security policy has many options, so we always recommend starting in ‘learning mode’ to see what files and scripts are loaded."
2296
  msgstr ""
2297
 
2298
- #: settings/config/config.php:1031
2299
  msgid "Disable (Default)"
2300
  msgstr ""
2301
 
2302
- #: settings/config/config.php:1035
2303
  msgid "Allow your domain to be embedded"
2304
  msgstr ""
2305
 
2306
- #: settings/config/config.php:1044
2307
  msgid "Add additional domains which can embed your website, if needed. Comma seperated."
2308
  msgstr ""
2309
 
2310
- #: settings/config/config.php:1083
2311
  msgid "Directive"
2312
  msgstr ""
2313
 
2314
- #: settings/config/config.php:1088
2315
  msgid "Source"
2316
  msgstr ""
2317
 
2318
- #: settings/config/config.php:1135
2319
  msgid "Progress"
2320
  msgstr ""
2321
 
2322
- #: settings/config/config.php:1148
2323
  msgid "Powered by Qualys"
2324
  msgstr ""
2325
 
2326
- #: settings/config/config.php:1150
2327
  msgid "Status"
2328
  msgstr ""
2329
 
2330
- #: settings/config/config.php:1166
2331
  msgid "Tips & Tricks"
2332
  msgstr ""
2333
 
2334
- #: settings/config/config.php:1177
2335
  msgid "Other Plugins"
2336
  msgstr ""
2337
 
2338
- #: settings/settings.php:85
2339
  msgid "SSL settings"
2340
  msgstr ""
2341
 
2342
- #: settings/settings.php:86
2343
  msgid "SSL"
2344
  msgstr ""
2345
 
2346
- #: settings/settings.php:306
2347
  msgid "Self-hosted, Privacy-friendly analytics tool"
2348
  msgstr ""
2349
 
2350
- #: settings/settings.php:321
2351
  msgid "Terms and Conditions"
2352
  msgstr ""
2353
 
2354
  #: settings/templates/tips-tricks-footer.php:3
2355
- #: settings/build/index.js:4130
2356
  #: settings/src/Header.js:39
2357
- #: settings/build/index.js:3653
2358
  msgid "Documentation"
2359
  msgstr ""
2360
 
@@ -2443,9 +2397,8 @@ msgid "Really Simple SSL automatically detects your settings and configures your
2443
  msgstr ""
2444
 
2445
  #: upgrade/upgrade-to-pro.php:182
2446
- #: settings/build/index.js:3117
2447
  #: settings/src/Dashboard/OtherPlugins.js:88
2448
- #: settings/build/index.js:2729
2449
  msgid "Installed"
2450
  msgstr ""
2451
 
@@ -2515,871 +2468,683 @@ msgstr ""
2515
  msgid "Your license key has reached its activation limit."
2516
  msgstr ""
2517
 
2518
- #: settings/build/index.js:3091
2519
- #: settings/build/index.js:5374
2520
- #: settings/build/index.js:5375
2521
- #: settings/src/Dashboard/OtherPlugins.js:69
2522
- #: settings/src/Onboarding/Onboarding.js:194
2523
- #: settings/src/Onboarding/Onboarding.js:195
2524
- #: settings/build/index.js:2710
2525
- #: settings/build/index.js:4823
2526
- #: settings/build/index.js:4824
2527
- msgid "Activating..."
2528
- msgstr ""
2529
-
2530
- #: settings/build/index.js:3092
2531
- #: settings/build/index.js:3093
2532
- #: settings/src/Dashboard/OtherPlugins.js:70
2533
- #: settings/src/Dashboard/OtherPlugins.js:71
2534
- #: settings/build/index.js:2711
2535
- #: settings/build/index.js:2712
2536
- msgid "Downloading..."
2537
- msgstr ""
2538
-
2539
- #: settings/build/index.js:3336
2540
- #: settings/src/Dashboard/ProgressBlockHeader.js:51
2541
- #: settings/build/index.js:2943
2542
- msgid "All tasks"
2543
- msgstr ""
2544
-
2545
- #: settings/build/index.js:3343
2546
- #: settings/src/Dashboard/ProgressBlockHeader.js:55
2547
- #: settings/build/index.js:2947
2548
- msgid "Remaining tasks"
2549
- msgstr ""
2550
-
2551
- #: settings/build/index.js:3395
2552
- #: settings/src/Dashboard/ProgressFooter.js:32
2553
- #: settings/build/index.js:2987
2554
- msgid "SSL Activated"
2555
- msgstr ""
2556
-
2557
- #: settings/build/index.js:3395
2558
- #: settings/src/Dashboard/ProgressFooter.js:32
2559
- #: settings/build/index.js:2987
2560
- msgid "SSL not activated"
2561
- msgstr ""
2562
-
2563
- #: settings/build/index.js:3413
2564
- #: settings/build/index.js:4138
2565
- #: settings/build/index.js:4941
2566
  #: settings/src/Dashboard/ProgressFooter.js:44
2567
  #: settings/src/Header.js:48
2568
  #: settings/src/Menu/Menu.js:49
2569
- #: settings/build/index.js:2999
2570
- #: settings/build/index.js:3662
2571
- #: settings/build/index.js:4452
2572
  msgid "Go Pro"
2573
  msgstr ""
2574
 
2575
- #: settings/build/index.js:3423
2576
- #: settings/src/Dashboard/ProgressFooter.js:52
2577
- #: settings/build/index.js:3007
2578
- msgid "Mixed content"
2579
  msgstr ""
2580
 
2581
- #: settings/build/index.js:3428
2582
- #: settings/src/Dashboard/ProgressFooter.js:56
2583
- #: settings/build/index.js:3011
2584
- msgid "301 redirect"
2585
  msgstr ""
2586
 
2587
- #: settings/build/index.js:3472
2588
  #: settings/src/Dashboard/SecurityFeaturesBlock/SecurityFeatureBullet.js:27
2589
- #: settings/build/index.js:3045
2590
  msgid "%sRead more%s"
2591
  msgstr ""
2592
 
2593
- #: settings/build/index.js:3525
2594
  #: settings/src/Dashboard/SecurityFeaturesBlock/SecurityFeaturesBlock.js:38
2595
- #: settings/build/index.js:3089
2596
  msgid "Improve WordPress security."
2597
  msgstr ""
2598
 
2599
- #: settings/build/index.js:3527
2600
  #: settings/src/Dashboard/SecurityFeaturesBlock/SecurityFeaturesBlock.js:39
2601
- #: settings/build/index.js:3090
2602
  msgid "Check our %sdocumentation%s"
2603
  msgstr ""
2604
 
2605
- #: settings/build/index.js:3531
2606
  #: settings/src/Dashboard/SecurityFeaturesBlock/SecurityFeaturesBlock.js:40
2607
- #: settings/build/index.js:3091
2608
  msgid "or use the %sWordPress forum%s."
2609
  msgstr ""
2610
 
2611
- #: settings/build/index.js:3822
2612
- #: settings/src/Dashboard/SslLabs.js:268
2613
- #: settings/build/index.js:3384
2614
- msgid "Cipher strength"
2615
  msgstr ""
2616
 
2617
- #: settings/build/index.js:3885
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2618
  #: settings/src/Dashboard/SslLabs.js:349
2619
- #: settings/build/index.js:3465
2620
  msgid "No test started yet"
2621
  msgstr ""
2622
 
2623
- #: settings/build/index.js:3909
2624
  #: settings/src/Dashboard/SslLabs.js:377
2625
- #: settings/build/index.js:3493
2626
  msgid "Not available on localhost"
2627
  msgstr ""
2628
 
2629
- #: settings/build/index.js:3943
 
 
 
 
 
2630
  #: settings/src/Dashboard/SslLabs.js:411
2631
- #: settings/build/index.js:3527
2632
  msgid "What does my score mean?"
2633
  msgstr ""
2634
 
2635
- #: settings/build/index.js:3946
2636
- #: settings/build/index.js:4354
2637
  #: settings/src/Dashboard/SslLabs.js:411
2638
  #: settings/src/LetsEncrypt/DnsVerification.js:60
2639
- #: settings/build/index.js:3527
2640
- #: settings/build/index.js:3925
2641
  msgid "Read more"
2642
  msgstr ""
2643
 
2644
- #: settings/build/index.js:3955
2645
  #: settings/src/Dashboard/SslLabs.js:417
2646
- #: settings/build/index.js:3533
2647
  msgid "Last check:"
2648
  msgstr ""
2649
 
2650
- #: settings/build/index.js:3967
2651
  #: settings/src/Dashboard/SslLabs.js:423
2652
- #: settings/build/index.js:3539
2653
  msgid "View detailed report on Qualys SSL Labs"
2654
  msgstr ""
2655
 
2656
- #: settings/build/index.js:3998
2657
  #: settings/src/Dashboard/SslLabsFooter.js:14
2658
- #: settings/build/index.js:3562
2659
  msgid "Continue SSL Health check"
2660
  msgstr ""
2661
 
2662
- #: settings/build/index.js:3998
2663
  #: settings/src/Dashboard/SslLabsFooter.js:15
2664
- #: settings/build/index.js:3563
2665
  msgid "Check SSL Health"
2666
  msgstr ""
2667
 
2668
- #: settings/build/index.js:4222
2669
- #: settings/build/index.js:4326
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2670
  #: settings/src/LetsEncrypt/Directories.js:22
2671
  #: settings/src/LetsEncrypt/DnsVerification.js:23
2672
- #: settings/build/index.js:3712
2673
- #: settings/build/index.js:3888
2674
  msgid "The challenge directory is used to verify the domain ownership."
2675
  msgstr ""
2676
 
2677
- #: settings/build/index.js:4225
2678
  #: settings/src/LetsEncrypt/Directories.js:30
2679
- #: settings/build/index.js:3720
2680
  msgid "The key directory is needed to store the generated keys."
2681
  msgstr ""
2682
 
2683
- #: settings/build/index.js:4225
2684
- #: settings/build/index.js:4228
2685
  #: settings/src/LetsEncrypt/Directories.js:30
2686
  #: settings/src/LetsEncrypt/Directories.js:38
2687
- #: settings/build/index.js:3720
2688
- #: settings/build/index.js:3728
2689
  msgid "By placing it outside the root folder, it is not publicly accessible."
2690
  msgstr ""
2691
 
2692
- #: settings/build/index.js:4228
2693
  #: settings/src/LetsEncrypt/Directories.js:38
2694
- #: settings/build/index.js:3728
2695
  msgid "The certificate will get stored in this directory."
2696
  msgstr ""
2697
 
2698
- #: settings/build/index.js:4238
2699
  #: settings/src/LetsEncrypt/Directories.js:55
2700
- #: settings/build/index.js:3745
2701
  msgid "Switched to DNS"
2702
  msgstr ""
2703
 
2704
- #: settings/build/index.js:4250
2705
- #: settings/build/index.js:4352
2706
- #: settings/build/index.js:4529
2707
  #: settings/src/LetsEncrypt/Directories.js:70
2708
  #: settings/src/LetsEncrypt/DnsVerification.js:58
2709
  #: settings/src/LetsEncrypt/Installation.js:99
2710
- #: settings/build/index.js:3760
2711
- #: settings/build/index.js:3923
2712
- #: settings/build/index.js:4115
2713
  msgid "Next step"
2714
  msgstr ""
2715
 
2716
- #: settings/build/index.js:4250
2717
  #: settings/src/LetsEncrypt/Directories.js:75
2718
- #: settings/build/index.js:3765
2719
  msgid "If the challenge directory cannot be created, or is not reachable, you can either remove the server limitation, or change to DNS verification."
2720
  msgstr ""
2721
 
2722
- #: settings/build/index.js:4253
2723
- #: settings/build/index.js:4260
2724
- #: settings/build/index.js:4269
2725
  #: settings/src/LetsEncrypt/Directories.js:81
2726
  #: settings/src/LetsEncrypt/Directories.js:94
2727
  #: settings/src/LetsEncrypt/Directories.js:123
2728
- #: settings/build/index.js:3771
2729
- #: settings/build/index.js:3784
2730
- #: settings/build/index.js:3813
2731
  msgid "Switch to DNS verification"
2732
  msgstr ""
2733
 
2734
- #: settings/build/index.js:4255
2735
  #: settings/src/LetsEncrypt/Directories.js:87
2736
- #: settings/build/index.js:3777
2737
  msgid "If you also want to secure subdomains like mail.domain.com, cpanel.domain.com, you have to use the %sDNS%s challenge."
2738
  msgstr ""
2739
 
2740
- #: settings/build/index.js:4257
2741
  #: settings/src/LetsEncrypt/Directories.js:89
2742
- #: settings/build/index.js:3779
2743
  msgid "Please note that auto-renewal with a DNS challenge might not be possible."
2744
  msgstr ""
2745
 
2746
- #: settings/build/index.js:4260
2747
  #: settings/src/LetsEncrypt/Directories.js:99
2748
- #: settings/build/index.js:3789
2749
  msgid "Create a challenge directory"
2750
  msgstr ""
2751
 
2752
- #: settings/build/index.js:4260
2753
  #: settings/src/LetsEncrypt/Directories.js:102
2754
- #: settings/build/index.js:3792
2755
  msgid "Navigate in FTP or File Manager to the root of your WordPress installation:"
2756
  msgstr ""
2757
 
2758
- #: settings/build/index.js:4262
2759
  #: settings/src/LetsEncrypt/Directories.js:106
2760
- #: settings/build/index.js:3796
2761
  msgid "Create a folder called “.well-known”"
2762
  msgstr ""
2763
 
2764
- #: settings/build/index.js:4264
2765
  #: settings/src/LetsEncrypt/Directories.js:109
2766
- #: settings/build/index.js:3799
2767
  msgid "Inside the folder called “.well-known” create a new folder called “acme-challenge”, with 644 writing permissions."
2768
  msgstr ""
2769
 
2770
- #: settings/build/index.js:4266
2771
- #: settings/build/index.js:4275
2772
- #: settings/build/index.js:4281
2773
  #: settings/src/LetsEncrypt/Directories.js:112
2774
  #: settings/src/LetsEncrypt/Directories.js:144
2775
  #: settings/src/LetsEncrypt/Directories.js:166
2776
- #: settings/build/index.js:3802
2777
- #: settings/build/index.js:3834
2778
- #: settings/build/index.js:3856
2779
  msgid "Click the refresh button."
2780
  msgstr ""
2781
 
2782
- #: settings/build/index.js:4266
2783
  #: settings/src/LetsEncrypt/Directories.js:116
2784
- #: settings/build/index.js:3806
2785
  msgid "Or you can switch to DNS verification"
2786
  msgstr ""
2787
 
2788
- #: settings/build/index.js:4266
2789
  #: settings/src/LetsEncrypt/Directories.js:118
2790
- #: settings/build/index.js:3808
2791
  msgid "If the challenge directory cannot be created, you can either remove the server limitation, or change to DNS verification."
2792
  msgstr ""
2793
 
2794
- #: settings/build/index.js:4269
2795
  #: settings/src/LetsEncrypt/Directories.js:131
2796
- #: settings/build/index.js:3821
2797
  msgid "Create a key directory"
2798
  msgstr ""
2799
 
2800
- #: settings/build/index.js:4269
2801
- #: settings/build/index.js:4275
2802
  #: settings/src/LetsEncrypt/Directories.js:134
2803
  #: settings/src/LetsEncrypt/Directories.js:156
2804
- #: settings/build/index.js:3824
2805
- #: settings/build/index.js:3846
2806
  msgid "Navigate in FTP or File Manager to one level above the root of your WordPress installation:"
2807
  msgstr ""
2808
 
2809
- #: settings/build/index.js:4271
2810
- #: settings/build/index.js:4277
2811
  #: settings/src/LetsEncrypt/Directories.js:138
2812
  #: settings/src/LetsEncrypt/Directories.js:160
2813
- #: settings/build/index.js:3828
2814
- #: settings/build/index.js:3850
2815
  msgid "Create a folder called “ssl”"
2816
  msgstr ""
2817
 
2818
- #: settings/build/index.js:4273
2819
  #: settings/src/LetsEncrypt/Directories.js:141
2820
- #: settings/build/index.js:3831
2821
  msgid "Inside the folder called “ssl” create a new folder called “keys”, with 644 writing permissions."
2822
  msgstr ""
2823
 
2824
- #: settings/build/index.js:4275
2825
  #: settings/src/LetsEncrypt/Directories.js:153
2826
- #: settings/build/index.js:3843
2827
  msgid "Create a certs directory"
2828
  msgstr ""
2829
 
2830
- #: settings/build/index.js:4279
2831
  #: settings/src/LetsEncrypt/Directories.js:163
2832
- #: settings/build/index.js:3853
2833
  msgid "Inside the folder called “ssl” create a new folder called “certs”, with 644 writing permissions."
2834
  msgstr ""
2835
 
2836
- #: settings/build/index.js:4340
2837
- #: settings/src/LetsEncrypt/DnsVerification.js:41
2838
- #: settings/build/index.js:3906
2839
- msgid "Switched to directory"
2840
- msgstr ""
2841
-
2842
- #: settings/build/index.js:4352
2843
  #: settings/src/LetsEncrypt/DnsVerification.js:59
2844
- #: settings/build/index.js:3924
2845
  msgid "Add the following token as text record to your DNS records. We recommend to use a short TTL during installation, in case you need to change it."
2846
  msgstr ""
2847
 
2848
- #: settings/build/index.js:4362
2849
  #: settings/src/LetsEncrypt/DnsVerification.js:65
2850
- #: settings/build/index.js:3930
2851
  msgid "domain"
2852
  msgstr ""
2853
 
2854
- #: settings/build/index.js:4364
2855
  #: settings/src/LetsEncrypt/DnsVerification.js:66
2856
- #: settings/build/index.js:3931
2857
  msgid "Value"
2858
  msgstr ""
2859
 
2860
- #: settings/build/index.js:4372
2861
  #: settings/src/LetsEncrypt/DnsVerification.js:79
2862
- #: settings/build/index.js:3944
2863
  msgid "DNS verification active. You can switch back to directory verification here."
2864
  msgstr ""
2865
 
2866
- #: settings/build/index.js:4375
2867
- #: settings/src/LetsEncrypt/DnsVerification.js:83
2868
- #: settings/build/index.js:3948
2869
- msgid "Switch to directory verification"
2870
  msgstr ""
2871
 
2872
- #: settings/build/index.js:4422
2873
- #: settings/src/LetsEncrypt/Generation.js:27
2874
- #: settings/build/index.js:3982
2875
- msgid "Skip DNS verification "
2876
  msgstr ""
2877
 
2878
- #: settings/build/index.js:4434
2879
  #: settings/src/LetsEncrypt/Generation.js:44
2880
- #: settings/build/index.js:3999
2881
  msgid "We could not check the DNS records. If you just added the record, please check in a few minutes."
2882
  msgstr ""
2883
 
2884
- #: settings/build/index.js:4436
2885
  #: settings/src/LetsEncrypt/Generation.js:45
2886
- #: settings/build/index.js:4000
2887
  msgid "You can manually check the DNS records in an %sonline tool%s."
2888
  msgstr ""
2889
 
2890
- #: settings/build/index.js:4438
2891
  #: settings/src/LetsEncrypt/Generation.js:47
2892
- #: settings/build/index.js:4002
2893
  msgid "If you're sure it's set correctly, you can click the button to skip the DNS check."
2894
  msgstr ""
2895
 
2896
- #: settings/build/index.js:4441
 
 
 
 
 
2897
  #: settings/src/LetsEncrypt/Generation.js:53
2898
- #: settings/build/index.js:4008
2899
  msgid "Skip DNS check"
2900
  msgstr ""
2901
 
2902
- #: settings/build/index.js:4486
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2903
  #: settings/src/LetsEncrypt/Installation.js:24
2904
- #: settings/build/index.js:4040
2905
  msgid "This is the certificate, which you need to install in your hosting dashboard."
2906
  msgstr ""
2907
 
2908
- #: settings/build/index.js:4486
2909
- #: settings/build/index.js:4531
2910
  #: settings/src/LetsEncrypt/Installation.js:25
2911
  #: settings/src/LetsEncrypt/Installation.js:101
2912
- #: settings/build/index.js:4041
2913
- #: settings/build/index.js:4117
2914
  msgid "Certificate (CRT)"
2915
  msgstr ""
2916
 
2917
- #: settings/build/index.js:4487
2918
  #: settings/src/LetsEncrypt/Installation.js:31
2919
- #: settings/build/index.js:4047
2920
  msgid "The private key can be uploaded or pasted in the appropriate field on your hosting dashboard."
2921
  msgstr ""
2922
 
2923
- #: settings/build/index.js:4487
2924
- #: settings/build/index.js:4541
2925
  #: settings/src/LetsEncrypt/Installation.js:32
2926
  #: settings/src/LetsEncrypt/Installation.js:106
2927
- #: settings/build/index.js:4048
2928
- #: settings/build/index.js:4122
2929
  msgid "Private Key (KEY)"
2930
  msgstr ""
2931
 
2932
- #: settings/build/index.js:4488
2933
  #: settings/src/LetsEncrypt/Installation.js:38
2934
- #: settings/build/index.js:4054
2935
  msgid "The CA Bundle will sometimes be automatically detected. If not, you can use this file."
2936
  msgstr ""
2937
 
2938
- #: settings/build/index.js:4488
2939
- #: settings/build/index.js:4551
2940
  #: settings/src/LetsEncrypt/Installation.js:39
2941
  #: settings/src/LetsEncrypt/Installation.js:110
2942
- #: settings/build/index.js:4055
2943
- #: settings/build/index.js:4126
2944
  msgid "Certificate Authority Bundle (CABUNDLE)"
2945
  msgstr ""
2946
 
2947
- #: settings/build/index.js:4512
2948
  #: settings/src/LetsEncrypt/Installation.js:73
2949
- #: settings/build/index.js:4089
2950
  msgid "Copied!"
2951
  msgstr ""
2952
 
2953
- #: settings/build/index.js:4529
2954
  #: settings/src/LetsEncrypt/Installation.js:95
2955
- #: settings/build/index.js:4111
2956
  msgid "The certificate is not generated by Really Simple SSL, so there are no installation files here"
2957
  msgstr ""
2958
 
2959
- #: settings/build/index.js:4531
2960
  #: settings/src/LetsEncrypt/Installation.js:100
2961
- #: settings/build/index.js:4116
2962
  msgid "Install your certificate."
2963
  msgstr ""
2964
 
2965
- #: settings/build/index.js:4541
2966
- #: settings/build/index.js:4551
2967
- #: settings/build/index.js:4561
2968
  #: settings/src/LetsEncrypt/Installation.js:104
2969
  #: settings/src/LetsEncrypt/Installation.js:109
2970
  #: settings/src/LetsEncrypt/Installation.js:113
2971
- #: settings/build/index.js:4120
2972
- #: settings/build/index.js:4125
2973
- #: settings/build/index.js:4129
2974
  msgid "Copy content"
2975
  msgstr ""
2976
 
2977
- #: settings/build/index.js:4676
2978
  #: settings/src/LetsEncrypt/LetsEncrypt.js:96
2979
- #: settings/build/index.js:4232
2980
  msgid "Verifying DNS records..."
2981
  msgstr ""
2982
 
2983
- #: settings/build/index.js:4828
2984
  #: settings/src/LetsEncrypt/LetsEncrypt.js:249
2985
- #: settings/build/index.js:4385
2986
  msgid "Attempt %s."
2987
  msgstr ""
2988
 
2989
- #: settings/build/index.js:4998
2990
- #: settings/src/Menu/MenuItem.js:40
2991
- #: settings/build/index.js:4504
2992
- msgid "New"
2993
- msgstr ""
2994
-
2995
- #: settings/build/index.js:5110
2996
- #: settings/src/Modal/Modal.js:77
2997
- #: settings/build/index.js:4597
2998
- msgid "Edit"
2999
- msgstr ""
3000
-
3001
- #: settings/build/index.js:5114
3002
- #: settings/src/Modal/Modal.js:78
3003
- #: settings/build/index.js:4598
3004
- msgid "Help"
3005
- msgstr ""
3006
-
3007
- #: settings/build/index.js:5118
3008
- #: settings/src/Modal/Modal.js:79
3009
- #: settings/build/index.js:4599
3010
- msgid "Ignore"
3011
- msgstr ""
3012
-
3013
- #: settings/build/index.js:5246
3014
- #: settings/src/Onboarding/Onboarding.js:69
3015
- #: settings/build/index.js:4698
3016
- msgid "Re-checking SSL certificate, please wait..."
3017
- msgstr ""
3018
-
3019
- #: settings/build/index.js:5343
3020
- #: settings/src/Onboarding/Onboarding.js:163
3021
- #: settings/build/index.js:4792
3022
- msgid "SSL has been activated network wide"
3023
- msgstr ""
3024
-
3025
- #: settings/build/index.js:5346
3026
- #: settings/src/Onboarding/Onboarding.js:166
3027
- #: settings/build/index.js:4795
3028
- msgid "Processing activation of subsites networkwide"
3029
- msgstr ""
3030
-
3031
- #: settings/build/index.js:5376
3032
- #: settings/src/Onboarding/Onboarding.js:196
3033
- #: settings/build/index.js:4825
3034
- msgid "Installing..."
3035
- msgstr ""
3036
-
3037
- #: settings/build/index.js:5377
3038
- #: settings/src/Onboarding/Onboarding.js:197
3039
- #: settings/build/index.js:4826
3040
- msgid "Failed"
3041
- msgstr ""
3042
-
3043
- #: settings/build/index.js:5378
3044
- #: settings/src/Onboarding/Onboarding.js:198
3045
- #: settings/build/index.js:4827
3046
- msgid "Finished"
3047
- msgstr ""
3048
-
3049
- #: settings/build/index.js:5396
3050
- #: settings/src/Onboarding/Onboarding.js:219
3051
- #: settings/build/index.js:4848
3052
- msgid "working"
3053
- msgstr ""
3054
-
3055
- #: settings/build/index.js:5396
3056
- #: settings/src/Onboarding/Onboarding.js:220
3057
- #: settings/build/index.js:4849
3058
- msgid "completed"
3059
- msgstr ""
3060
-
3061
- #: settings/build/index.js:5412
3062
- #: settings/src/Onboarding/Onboarding.js:242
3063
- #: settings/build/index.js:4871
3064
- msgid "Activate SSL networkwide"
3065
- msgstr ""
3066
-
3067
- #: settings/build/index.js:5424
3068
- #: settings/src/Onboarding/Onboarding.js:247
3069
- #: settings/build/index.js:4876
3070
- msgid "Improve Security with PRO"
3071
- msgstr ""
3072
-
3073
- #: settings/build/index.js:5429
3074
- #: settings/src/Onboarding/Onboarding.js:248
3075
- #: settings/build/index.js:4877
3076
- msgid "Install SSL"
3077
  msgstr ""
3078
 
3079
- #: settings/build/index.js:5430
3080
- #: settings/src/Onboarding/Onboarding.js:250
3081
- #: settings/build/index.js:4879
3082
- msgid "Override SSL detection"
3083
  msgstr ""
3084
 
3085
- #: settings/build/index.js:5448
3086
- #: settings/src/Onboarding/Onboarding.js:268
3087
- #: settings/build/index.js:4897
3088
- msgid "Go to Dashboard"
3089
  msgstr ""
3090
 
3091
- #: settings/build/index.js:5486
3092
- #: settings/src/Onboarding/Onboarding.js:292
3093
- #: settings/build/index.js:4921
3094
- msgid "Refresh SSL status"
3095
  msgstr ""
3096
 
3097
- #: settings/build/index.js:5486
3098
- #: settings/src/Onboarding/Onboarding.js:293
3099
- #: settings/build/index.js:4922
3100
- msgid "The SSL detection method is not 100% accurate."
3101
  msgstr ""
3102
 
3103
- #: settings/build/index.js:5486
3104
- #: settings/src/Onboarding/Onboarding.js:294
3105
- #: settings/build/index.js:4923
3106
- msgid "If you’re certain an SSL certificate is present, and refresh SSL status does not work, please check “Override SSL detection” to continue activating SSL."
3107
  msgstr ""
3108
 
3109
- #: settings/build/index.js:5577
3110
- #: settings/src/Onboarding/OnboardingModal.js:54
3111
- #: settings/build/index.js:4991
3112
- msgid "Please wait while we detect your setup"
3113
  msgstr ""
3114
 
3115
- #: settings/build/index.js:6064
3116
- #: settings/src/Settings/ChangeStatus.js:11
3117
- #: settings/build/index.js:5447
3118
- msgid "Revoke"
3119
  msgstr ""
3120
 
3121
- #: settings/build/index.js:6203
3122
- #: settings/build/index.js:7969
3123
- #: settings/src/Settings/Field.js:122
3124
- #: settings/src/Settings/SettingsGroup.js:143
3125
- #: settings/build/index.js:5575
3126
- #: settings/build/index.js:7223
3127
- msgid "This feature is only available networkwide."
3128
  msgstr ""
3129
 
3130
- #: settings/build/index.js:6205
3131
- #: settings/build/index.js:7971
3132
- #: settings/src/Settings/Field.js:122
3133
- #: settings/src/Settings/SettingsGroup.js:143
3134
- #: settings/build/index.js:5575
3135
- #: settings/build/index.js:7223
3136
- msgid "Network settings"
3137
  msgstr ""
3138
 
3139
- #: settings/build/index.js:6714
3140
  #: settings/src/Settings/LearningMode.js:155
3141
- #: settings/build/index.js:6044
3142
  msgid "We're configuring your %s. Exit to edit and enforce."
3143
  msgstr ""
3144
 
3145
- #: settings/build/index.js:6715
3146
  #: settings/src/Settings/LearningMode.js:156
3147
- #: settings/build/index.js:6045
3148
  msgid "%s has been disabled."
3149
  msgstr ""
3150
 
3151
- #: settings/build/index.js:6716
3152
  #: settings/src/Settings/LearningMode.js:157
3153
- #: settings/build/index.js:6046
3154
  msgid "%s is enforced."
3155
  msgstr ""
3156
 
3157
- #: settings/build/index.js:6730
3158
- #: settings/src/Settings/LearningMode.js:169
3159
- #: settings/build/index.js:6058
3160
- msgid "All"
3161
- msgstr ""
3162
-
3163
- #: settings/build/index.js:6732
3164
- #: settings/src/Settings/LearningMode.js:170
3165
- #: settings/build/index.js:6059
3166
- msgid "Allowed"
3167
- msgstr ""
3168
-
3169
- #: settings/build/index.js:6734
3170
- #: settings/src/Settings/LearningMode.js:171
3171
- #: settings/build/index.js:6060
3172
- msgid "Blocked"
3173
- msgstr ""
3174
-
3175
- #: settings/build/index.js:6759
3176
  #: settings/src/Settings/LearningMode.js:199
3177
- #: settings/build/index.js:6088
3178
  msgid "success"
3179
  msgstr ""
3180
 
3181
- #: settings/build/index.js:6759
3182
  #: settings/src/Settings/LearningMode.js:199
3183
- #: settings/build/index.js:6088
3184
  msgid "failed"
3185
  msgstr ""
3186
 
3187
- #: settings/build/index.js:6803
3188
- #: settings/build/index.js:7326
3189
- #: settings/src/Settings/LearningMode.js:245
3190
- #: settings/src/Settings/MixedContentScan.js:301
3191
- #: settings/build/index.js:6134
3192
- #: settings/build/index.js:6639
3193
- msgid "No results"
3194
- msgstr ""
3195
-
3196
- #: settings/build/index.js:6814
3197
- #: settings/build/index.js:7596
3198
- #: settings/src/Settings/LearningMode.js:253
3199
- #: settings/src/Settings/PermissionsPolicy.js:140
3200
- #: settings/build/index.js:6142
3201
- #: settings/build/index.js:6882
3202
- msgid "Enforce"
3203
- msgstr ""
3204
-
3205
- #: settings/build/index.js:6823
3206
  #: settings/src/Settings/LearningMode.js:262
3207
- #: settings/build/index.js:6151
3208
  msgid "Enable Learning Mode"
3209
  msgstr ""
3210
 
3211
- #: settings/build/index.js:6834
3212
- #: settings/build/index.js:7607
3213
- #: settings/src/Settings/LearningMode.js:269
3214
- #: settings/src/Settings/PermissionsPolicy.js:146
3215
- #: settings/build/index.js:6158
3216
- #: settings/build/index.js:6888
3217
- msgid "Enforced"
3218
- msgstr ""
3219
-
3220
- #: settings/build/index.js:6838
3221
  #: settings/src/Settings/LearningMode.js:271
3222
- #: settings/build/index.js:6160
3223
  msgid "Disable to configure"
3224
  msgstr ""
3225
 
3226
- #: settings/build/index.js:6844
3227
- #: settings/build/index.js:6854
3228
  #: settings/src/Settings/LearningMode.js:276
3229
  #: settings/src/Settings/LearningMode.js:283
3230
- #: settings/build/index.js:6165
3231
- #: settings/build/index.js:6172
3232
  msgid "Learning Mode"
3233
  msgstr ""
3234
 
3235
- #: settings/build/index.js:6848
3236
  #: settings/src/Settings/LearningMode.js:278
3237
- #: settings/build/index.js:6167
3238
  msgid "Exit learning mode"
3239
  msgstr ""
3240
 
3241
- #: settings/build/index.js:6854
3242
  #: settings/src/Settings/LearningMode.js:284
3243
- #: settings/build/index.js:6173
3244
  msgid "We finished the configuration."
3245
  msgstr ""
3246
 
3247
- #: settings/build/index.js:6858
3248
  #: settings/src/Settings/LearningMode.js:285
3249
- #: settings/build/index.js:6174
3250
  msgid "Review the settings and enforce the policy"
3251
  msgstr ""
3252
 
3253
- #: settings/build/index.js:6864
3254
  #: settings/src/Settings/LearningMode.js:290
3255
- #: settings/build/index.js:6179
3256
  msgid "Disabled "
3257
  msgstr ""
3258
 
3259
- #: settings/build/index.js:7010
3260
- #: settings/src/Settings/License.js:133
3261
- #: settings/build/index.js:6325
3262
- msgid "Deactivate"
3263
  msgstr ""
3264
 
3265
- #: settings/build/index.js:7056
3266
- #: settings/src/Settings/MixedContentScan.js:19
3267
- #: settings/src/Settings/MixedContentScan.js:21
3268
- #: settings/build/index.js:6357
3269
- #: settings/build/index.js:6359
3270
- msgid "All results"
3271
  msgstr ""
3272
 
3273
- #: settings/build/index.js:7056
3274
- #: settings/src/Settings/MixedContentScan.js:20
3275
- #: settings/build/index.js:6358
3276
- msgid "Show"
3277
  msgstr ""
3278
 
3279
- #: settings/build/index.js:7245
3280
- #: settings/src/Settings/MixedContentScan.js:220
3281
- #: settings/build/index.js:6558
3282
- msgid "View"
3283
  msgstr ""
3284
 
3285
- #: settings/build/index.js:7310
3286
- #: settings/src/Settings/MixedContentScan.js:284
3287
- #: settings/build/index.js:6622
3288
- msgid "No results. Start your first scan"
3289
  msgstr ""
3290
 
3291
- #: settings/build/index.js:7310
3292
- #: settings/src/Settings/MixedContentScan.js:285
3293
- #: settings/build/index.js:6623
3294
- msgid "Everything is now served over SSL"
3295
  msgstr ""
3296
 
3297
- #: settings/build/index.js:7607
3298
- #: settings/src/Settings/PermissionsPolicy.js:147
3299
- #: settings/build/index.js:6889
3300
- msgid "Permissions Policy is enforced."
3301
  msgstr ""
3302
 
3303
- #: settings/build/index.js:7699
 
 
 
 
 
 
 
 
 
 
3304
  #: settings/src/Settings/Settings.js:75
3305
- #: settings/build/index.js:6974
3306
  msgid "Save"
3307
  msgstr ""
3308
 
3309
- #: settings/build/index.js:7702
3310
  #: settings/src/Settings/Settings.js:78
3311
- #: settings/build/index.js:6977
3312
  msgid "Refresh"
3313
  msgstr ""
3314
 
3315
- #: settings/build/index.js:7768
3316
  #: settings/src/Settings/Settings.js:147
3317
- #: settings/build/index.js:7046
3318
  msgid "Previous"
3319
  msgstr ""
3320
 
3321
- #: settings/build/index.js:7776
3322
  #: settings/src/Settings/Settings.js:159
3323
- #: settings/build/index.js:7058
3324
  msgid "Save and Continue"
3325
  msgstr ""
3326
 
3327
- #: settings/build/index.js:7782
3328
  #: settings/src/Settings/Settings.js:168
3329
- #: settings/build/index.js:7067
3330
  msgid "Notifications"
3331
  msgstr ""
3332
 
3333
- #: settings/build/index.js:7785
3334
  #: settings/src/Settings/Settings.js:171
3335
- #: settings/build/index.js:7070
3336
  msgid "Expand all"
3337
  msgstr ""
3338
 
3339
- #: settings/build/index.js:7785
3340
  #: settings/src/Settings/Settings.js:172
3341
- #: settings/build/index.js:7071
3342
  msgid "Collapse all"
3343
  msgstr ""
3344
 
3345
- #: settings/build/index.js:7889
3346
- #: settings/src/Settings/SettingsGroup.js:80
3347
- #: settings/build/index.js:7160
3348
- msgid "Learn more about %sPremium%s"
3349
  msgstr ""
3350
 
3351
- #: settings/build/index.js:7924
3352
- #: settings/src/Settings/SettingsGroup.js:103
3353
- #: settings/build/index.js:7183
3354
- msgid "Reset Let's Encrypt"
3355
  msgstr ""
3356
 
3357
- #: settings/build/index.js:7959
3358
- #: settings/src/Settings/SettingsGroup.js:135
3359
- #: settings/build/index.js:7215
3360
- msgid "Check license"
3361
  msgstr ""
3362
 
3363
- #: settings/build/index.js:7969
3364
- #: settings/src/Settings/SettingsGroup.js:142
3365
- #: settings/build/index.js:7222
3366
- msgid "Network feature"
3367
  msgstr ""
3368
 
3369
- #: settings/build/index.js:8155
3370
- #: settings/src/Settings/SettingsPage.js:169
3371
- #: settings/build/index.js:7402
3372
- msgid "Settings Saved"
3373
  msgstr ""
3374
 
3375
- #: settings/build/index.js:8377
3376
- #: settings/src/Settings/Support.js:65
3377
- #: settings/build/index.js:7640
3378
- msgid "Type your question here"
3379
  msgstr ""
3380
 
3381
- #: settings/build/index.js:8383
3382
- #: settings/src/Settings/Support.js:72
3383
- #: settings/build/index.js:7647
3384
- msgid "Send"
3385
  msgstr ""
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Really Simple SSL 6.0.12\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/really-simple-ssl\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-12-04T11:39:53+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.6.0\n"
15
  "X-Domain: really-simple-ssl\n"
49
  msgid "Really Simple SSL and Really Simple SSL add-ons do not process any personal identifiable information, so the GDPR does not apply to these plugins or usage of these plugins on your website. You can find our privacy policy <a href=\"%s\" target=\"_blank\">here</a>."
50
  msgstr ""
51
 
52
+ #: class-admin.php:465
53
+ #: settings/build/index.js:382
54
  #: settings/src/Onboarding/Onboarding.js:269
 
55
  msgid "Dismiss"
56
  msgstr ""
57
 
58
  #: class-admin.php:467
59
+ #: settings/build/index.js:382
 
60
  #: settings/src/Dashboard/TaskElement.js:29
61
  #: settings/src/Settings/Help.js:26
 
 
62
  msgid "More info"
63
  msgstr ""
64
 
82
  msgid "Don't show again"
83
  msgstr ""
84
 
85
+ #: class-admin.php:1758
86
  msgid "Completed"
87
  msgstr ""
88
 
89
+ #: class-admin.php:1759
90
+ #: settings/build/index.js:382
91
  #: settings/src/Settings/MixedContentScan.js:198
 
92
  msgid "Warning"
93
  msgstr ""
94
 
95
+ #: class-admin.php:1760
96
  msgid "Open"
97
  msgstr ""
98
 
99
+ #: class-admin.php:1761
100
+ #: settings/build/index.js:382
 
101
  #: settings/src/Dashboard/OtherPlugins.js:85
102
  #: settings/src/Settings/SettingsGroup.js:133
 
 
103
  msgid "Upgrade"
104
  msgstr ""
105
 
106
+ #: class-admin.php:1798
107
  msgid "No recommended redirect rules detected."
108
  msgstr ""
109
 
110
+ #: class-admin.php:1813
111
  msgid "(Unknown)"
112
  msgstr ""
113
 
114
+ #: class-admin.php:1822
115
  msgid "Your wp-config.php has to be edited, but is not writable."
116
  msgstr ""
117
 
118
+ #: class-admin.php:1823
119
+ #: class-admin.php:1844
120
  msgid "Set your wp-config.php to writable and reload this page."
121
  msgstr ""
122
 
123
+ #: class-admin.php:1824
124
  msgid "To safely enable SSL on your server configuration, you should add the following line of code to your wp-config.php."
125
  msgstr ""
126
 
127
+ #: class-admin.php:1844
128
  msgid "A definition of a site url or home url was detected in your wp-config.php, but the file is not writable."
129
  msgstr ""
130
 
131
+ #: class-admin.php:1859
132
  msgid "The 'force-deactivate.php' file has to be renamed to .txt. Otherwise your ssl can be deactivated by anyone on the internet."
133
  msgstr ""
134
 
135
+ #: class-admin.php:1860
136
  msgid "Check again"
137
  msgstr ""
138
 
139
+ #: class-admin.php:1874
140
  msgid "The Really Simple SSL plugin folder in the /wp-content/plugins/ directory has been renamed to %s. This might cause issues when deactivating, or with premium add-ons. To fix this you can rename the Really Simple SSL folder back to the default %s."
141
  msgstr ""
142
 
143
+ #: class-admin.php:1889
144
  msgid "SSL is now activated. Check if your website is secure by following this article."
145
  msgstr ""
146
 
147
+ #: class-admin.php:1904
148
  msgid "Really Simple SSL Pro is not up to date. Update Really Simple SSL Pro to ensure compatibility."
149
  msgstr ""
150
 
151
+ #: class-admin.php:1919
152
  msgid "Remember to change your URLs in external services like Google Analytics, Search Console and others. This should prevent any data loss resulting from the switch to https."
153
  msgstr ""
154
 
155
+ #: class-admin.php:1933
156
  msgid "SSL is enabled on your site."
157
  msgstr ""
158
 
159
+ #: class-admin.php:1937
160
  msgid "SSL is not enabled yet."
161
  msgstr ""
162
 
163
+ #: class-admin.php:1954
164
  msgid "The wp-config.php file is not writable, and needs to be edited. Please set this file to writable."
165
  msgstr ""
166
 
167
+ #: class-admin.php:1958
168
  msgid "No SSL detected"
169
  msgstr ""
170
 
171
+ #: class-admin.php:1959
172
  msgid "No SSL detected. Use the retry button to check again."
173
  msgstr ""
174
 
175
+ #: class-admin.php:1960
176
+ #: class-admin.php:1968
177
+ #: class-admin.php:1982
178
  msgid "Install SSL certificate"
179
  msgstr ""
180
 
181
+ #: class-admin.php:1961
182
  msgid "Retry"
183
  msgstr ""
184
 
185
+ #: class-admin.php:1966
186
  msgid "Could not test certificate"
187
  msgstr ""
188
 
189
+ #: class-admin.php:1967
190
  #: onboarding/config.php:175
191
  msgid "Automatic certificate detection is not possible on your server."
192
  msgstr ""
193
 
194
+ #: class-admin.php:1969
195
  msgid "Check manually"
196
  msgstr ""
197
 
198
+ #: class-admin.php:1974
199
  msgid "An SSL certificate was detected on your site."
200
  msgstr ""
201
 
202
+ #: class-admin.php:1979
203
  msgid "Your SSL certificate will expire soon."
204
  msgstr ""
205
 
206
+ #: class-admin.php:1980
207
  msgid "SSL certificate will expire on %s."
208
  msgstr ""
209
 
210
+ #: class-admin.php:1980
211
  msgid "If your hosting provider auto-renews your certificate, no action is required. Alternatively, you have the option to generate an SSL certificate with Really Simple SSL."
212
  msgstr ""
213
 
214
+ #: class-admin.php:1981
215
  msgid "Depending on your hosting provider, %smanual installation%s may be required."
216
  msgstr ""
217
 
218
+ #: class-admin.php:1983
219
  msgid "Re-check"
220
  msgstr ""
221
 
222
+ #: class-admin.php:1995
223
  msgid "Mixed content fixer was successfully detected on the front-end."
224
  msgstr ""
225
 
226
+ #: class-admin.php:2000
227
  msgid "Really Simple SSL has received no response from the webpage."
228
  msgstr ""
229
 
230
+ #: class-admin.php:2007
231
  msgid "The mixed content fixer is active, but was not detected on the frontpage."
232
  msgstr ""
233
 
234
+ #: class-admin.php:2012
235
  msgid "Error occurred when retrieving the webpage."
236
  msgstr ""
237
 
238
+ #: class-admin.php:2018
239
  msgid "Mixed content fixer not enabled. Enable the option to fix mixed content on your site."
240
  msgstr ""
241
 
242
+ #: class-admin.php:2024
243
  msgid "The mixed content fixer could not be detected due to a cURL error: %s. cURL errors are often caused by an outdated version of PHP or cURL and don't affect the front-end of your site. Contact your hosting provider for a fix."
244
  msgstr ""
245
 
246
+ #: class-admin.php:2037
247
  msgid "301 redirect to https set."
248
  msgstr ""
249
 
250
+ #: class-admin.php:2041
251
  msgid "No 301 redirect is set. Enable the WordPress 301 redirect in the settings to get a 301 permanent redirect."
252
  msgstr ""
253
 
254
+ #: class-admin.php:2056
255
  msgid "301 redirect to https set: .htaccess redirect."
256
  msgstr ""
257
 
258
+ #: class-admin.php:2061
259
  msgid "WordPress 301 redirect enabled. We recommend to enable a 301 .htaccess redirect."
260
  msgstr ""
261
 
262
+ #: class-admin.php:2068
263
  msgid "Enable a .htaccess redirect or PHP redirect in the settings to create a 301 redirect."
264
  msgstr ""
265
 
266
+ #: class-admin.php:2073
267
  msgid ".htaccess redirect."
268
  msgstr ""
269
 
270
+ #: class-admin.php:2075
271
  msgid "The .htaccess redirect rules selected by this plugin failed in the test. Set manually or dismiss to leave on PHP redirect."
272
  msgstr ""
273
 
274
+ #: class-admin.php:2090
275
  msgid "Your site uses Elementor. This can require some additional steps before getting the secure lock."
276
  msgstr ""
277
 
278
+ #: class-admin.php:2104
279
  msgid "Your site uses Divi. This can require some additional steps before getting the secure lock."
280
  msgstr ""
281
 
282
+ #: class-admin.php:2120
283
  msgid "HttpOnly Secure cookies have been set automatically!"
284
  msgstr ""
285
 
286
+ #: class-admin.php:2125
287
  msgid "HttpOnly Secure cookies not set."
288
  msgstr ""
289
 
290
+ #: class-admin.php:2132
291
  msgid "To set the httponly secure cookie settings, your wp-config.php has to be edited, but the file is not writable."
292
  msgstr ""
293
 
294
+ #: class-admin.php:2132
295
  msgid "Add the following lines of code to your wp-config.php."
296
  msgstr ""
297
 
298
+ #: class-admin.php:2140
299
  msgid "Or set your wp-config.php to writable and reload this page."
300
  msgstr ""
301
 
302
+ #: class-admin.php:2154
303
  msgid "See which recommended security headers are not present on your website."
304
  msgstr ""
305
 
306
+ #: class-admin.php:2160
307
  msgid "Recommended security headers enabled."
308
  msgstr ""
309
 
310
+ #: class-admin.php:2171
311
  msgid "Improve security with Really Simple SSL Pro."
312
  msgstr ""
313
 
314
+ #: class-admin.php:2185
315
  msgid "Due to a recent update by WP Engine, we have changed your settings automatically to adapt."
316
  msgstr ""
317
 
318
+ #: class-admin.php:2198
319
  msgid "You have the Really Simple SSL Let's Encrypt beta add-on activated. This functionality has now been integrated in core, so you can deactivate the add-on."
320
  msgstr ""
321
 
322
+ #: class-admin.php:2209
323
  msgid "We have detected the %s plugin on your website."
324
  msgstr ""
325
 
326
+ #: class-admin.php:2209
327
  msgid "As Really Simple SSL handles all the functionality this plugin provides, we recommend to disable this plugin to prevent unexpected behavior."
328
  msgstr ""
329
 
330
+ #: class-admin.php:2224
331
  msgid "Black Friday sale! Get 40% Off Really Simple SSL Pro"
332
  msgstr ""
333
 
334
+ #: class-admin.php:2240
335
  msgid "Thanks for updating to Really Simple SSL 6.0! Check out our new features on the settings page."
336
  msgstr ""
337
 
338
+ #: class-admin.php:2590
339
  msgid "Are you sure?"
340
  msgstr ""
341
 
342
+ #: class-admin.php:2601
343
  msgid "To deactivate the plugin correctly, please select if you want to:"
344
  msgstr ""
345
 
346
+ #: class-admin.php:2603
347
  msgid "Deactivate, but stay on SSL."
348
  msgstr ""
349
 
350
+ #: class-admin.php:2604
351
  msgid "Deactivate, and revert to http. This will remove all changes by the plugin."
352
  msgstr ""
353
 
354
+ #: class-admin.php:2606
355
  msgid "Deactivating the plugin while keeping SSL will do the following:"
356
  msgstr ""
357
 
358
+ #: class-admin.php:2608
359
  msgid "The mixed content fixer will stop working"
360
  msgstr ""
361
 
362
+ #: class-admin.php:2609
363
  msgid "The WordPress 301 redirect will stop working"
364
  msgstr ""
365
 
366
+ #: class-admin.php:2610
367
  msgid "Your site address will remain https://"
368
  msgstr ""
369
 
370
+ #: class-admin.php:2611
371
  msgid "The .htaccess redirect will remain active"
372
  msgstr ""
373
 
374
+ #: class-admin.php:2620
375
  #: upgrade/upgrade-to-pro.php:362
376
  msgid "Cancel"
377
  msgstr ""
378
 
379
+ #: class-admin.php:2621
380
  msgid "Deactivate, keep https"
381
  msgstr ""
382
 
383
+ #: class-admin.php:2622
384
  msgid "Deactivate, revert to http"
385
  msgstr ""
386
 
387
+ #: class-admin.php:2648
388
+ #: class-admin.php:2651
389
  #: class-multisite.php:216
390
  #: settings/config/config.php:17
391
+ #: settings/build/index.js:382
392
  #: settings/src/Dashboard/SecurityFeaturesBlock/SecurityFeaturesFooter.js:14
 
393
  msgid "Settings"
394
  msgstr ""
395
 
396
+ #: class-admin.php:2656
397
  #: class-multisite.php:219
398
+ #: settings/build/index.js:382
399
  #: settings/src/Header.js:43
 
400
  msgid "Support"
401
  msgstr ""
402
 
403
+ #: class-admin.php:2661
404
  #: class-multisite.php:223
405
  msgid "Improve security - Upgrade"
406
  msgstr ""
514
  msgstr ""
515
 
516
  #: class-site-health.php:201
517
+ #: settings/build/index.js:382
 
518
  #: settings/src/Dashboard/ProgressFooter.js:42
519
  #: settings/src/Onboarding/Onboarding.js:242
 
 
520
  msgid "Activate SSL"
521
  msgstr ""
522
 
757
  msgstr ""
758
 
759
  #: lets-encrypt/class-letsencrypt-handler.php:1105
760
+ #: lets-encrypt/functions.php:375
761
  msgid "According to our information, your hosting provider does not allow any kind of SSL installation, other then their own paid certificate. For an alternative hosting provider with SSL, see this %sarticle%s."
762
  msgstr ""
763
 
764
  #: lets-encrypt/class-letsencrypt-handler.php:1112
765
+ #: lets-encrypt/functions.php:365
766
  msgid "According to our information, your hosting provider supplies your account with an SSL certificate by default. Please contact your %shosting support%s if this is not the case."
767
  msgstr ""
768
 
888
  msgstr ""
889
 
890
  #: lets-encrypt/config/fields.php:8
891
+ #: settings/config/config.php:204
892
  msgid "System Status"
893
  msgstr ""
894
 
897
  msgstr ""
898
 
899
  #: lets-encrypt/config/fields.php:17
900
+ #: settings/config/config.php:222
901
  msgid "Directories"
902
  msgstr ""
903
 
906
  msgstr ""
907
 
908
  #: lets-encrypt/config/fields.php:25
909
+ #: settings/config/config.php:232
910
  msgid "Generation"
911
  msgstr ""
912
 
913
  #: lets-encrypt/config/fields.php:29
914
+ #: settings/config/config.php:237
915
  msgid "Installation"
916
  msgstr ""
917
 
1201
  msgid "For more information, please read this %sarticle%s"
1202
  msgstr ""
1203
 
1204
+ #: lets-encrypt/functions.php:350
1205
+ #: lets-encrypt/functions.php:351
1206
+ #: settings/build/index.js:382
 
1207
  #: settings/src/Dashboard/GridBlock.js:93
1208
  #: settings/src/Settings/SettingsGroup.js:93
 
 
1209
  msgid "Instructions"
1210
  msgstr ""
1211
 
1212
+ #: lets-encrypt/functions.php:354
1213
  msgid "Please complete manually in your hosting dashboard."
1214
  msgstr ""
1215
 
1216
+ #: lets-encrypt/functions.php:355
1217
  msgid "Please activate it manually on your hosting dashboard."
1218
  msgstr ""
1219
 
1220
+ #: lets-encrypt/functions.php:357
1221
  msgid "Please complete %smanually%s"
1222
  msgstr ""
1223
 
1224
+ #: lets-encrypt/functions.php:358
1225
  msgid "Please activate it on your dashboard %smanually%s"
1226
  msgstr ""
1227
 
1228
+ #: lets-encrypt/functions.php:359
1229
  msgid "Go to activation"
1230
  msgstr ""
1231
 
1232
+ #: lets-encrypt/functions.php:360
1233
  msgid "Go to installation"
1234
  msgstr ""
1235
 
1236
+ #: lets-encrypt/functions.php:367
1237
  #: lets-encrypt/functions.php:371
1238
+ #: lets-encrypt/functions.php:381
 
1239
  msgid "After completing the installation, you can continue to the next step to complete your configuration."
1240
  msgstr ""
1241
 
1242
+ #: lets-encrypt/functions.php:369
1243
  msgid "You already have free SSL on your hosting environment."
1244
  msgstr ""
1245
 
1246
+ #: lets-encrypt/functions.php:378
1247
  msgid "Your hosting environment does not allow automatic SSL installation."
1248
  msgstr ""
1249
 
1250
+ #: lets-encrypt/functions.php:380
1251
  msgid "You can follow these %sinstructions%s."
1252
  msgstr ""
1253
 
1392
  msgstr ""
1393
 
1394
  #: onboarding/config.php:76
1395
+ #: settings/settings.php:325
1396
  msgid "Complianz - Cookie Consent Management as it should be"
1397
  msgstr ""
1398
 
1420
  #: upgrade/upgrade-to-pro.php:138
1421
  #: upgrade/upgrade-to-pro.php:151
1422
  #: upgrade/upgrade-to-pro.php:168
1423
+ #: settings/build/index.js:382
1424
  #: settings/src/Dashboard/OtherPlugins.js:67
 
1425
  msgid "Install"
1426
  msgstr ""
1427
 
1430
  msgstr ""
1431
 
1432
  #: onboarding/config.php:137
1433
+ #: settings/config/config.php:242
1434
+ #: settings/build/index.js:382
 
1435
  #: settings/src/Dashboard/OtherPlugins.js:68
1436
  #: settings/src/Settings/License.js:134
 
 
1437
  msgid "Activate"
1438
  msgstr ""
1439
 
1475
  #: placeholders/class-placeholder.php:159
1476
  #: placeholders/class-placeholder.php:185
1477
  #: placeholders/class-placeholder.php:210
1478
+ #: settings/config/config.php:889
1479
+ #: settings/build/index.js:382
1480
  #: settings/src/Settings/MixedContentScan.js:227
 
1481
  msgid "Details"
1482
  msgstr ""
1483
 
1519
  msgid "Widget with mixed content"
1520
  msgstr ""
1521
 
1522
+ #: progress/class-progress.php:83
1523
  msgid "SSL is activated on your site."
1524
  msgstr ""
1525
 
1526
+ #: progress/class-progress.php:83
1527
  msgid "You still have %s task open."
1528
  msgid_plural "You still have %s tasks open."
1529
  msgstr[0] ""
1530
  msgstr[1] ""
1531
 
1532
+ #: progress/class-progress.php:85
1533
  msgid "SSL configuration finished!"
1534
  msgstr ""
1535
 
1536
+ #: progress/class-progress.php:90
1537
  msgid "Basic SSL configuration finished! Improve your score with %sReally Simple SSL Pro%s."
1538
  msgstr ""
1539
 
1540
+ #: progress/class-progress.php:96
1541
  msgid "SSL is not yet enabled on this site."
1542
  msgstr ""
1543
 
1674
  msgstr ""
1675
 
1676
  #: security/notices.php:158
1677
+ #: security/notices.php:175
 
 
 
 
1678
  msgid "Username"
1679
  msgstr ""
1680
 
1681
+ #: security/notices.php:159
1682
  msgid "Your site registered a user with the name 'admin'."
1683
  msgstr ""
1684
 
1685
+ #: security/notices.php:176
1686
  msgid "Rename admin user enabled: Please choose a new username of at least 3 characters, which is not in use yet."
1687
  msgstr ""
1688
 
1689
+ #: security/notices.php:191
1690
  msgid "Code execution is allowed in the public 'Uploads' folder."
1691
  msgstr ""
1692
 
1693
+ #: security/notices.php:202
1694
  msgid "Your database prefix is renamed and randomized. Awesome!"
1695
  msgstr ""
1696
 
1697
+ #: security/notices.php:207
1698
  msgid "Your database prefix is set to the default 'wp_'."
1699
  msgstr ""
1700
 
1701
+ #: security/notices.php:237
1702
  msgid "The built-in file editors are accessible to others."
1703
  msgstr ""
1704
 
1705
+ #: security/notices.php:251
1706
  msgid "Anyone can register an account on your site. Consider disabling this option in the WordPress general settings."
1707
  msgstr ""
1708
 
1709
+ #: security/notices.php:265
1710
  msgid "Your WordPress version is visible to others."
1711
  msgstr ""
1712
 
1769
 
1770
  #: settings/config/config.php:44
1771
  #: settings/config/config.php:50
1772
+ #: settings/config/config.php:1157
1773
  msgid "Hardening"
1774
  msgstr ""
1775
 
1782
  msgstr ""
1783
 
1784
  #: settings/config/config.php:63
1785
+ #: settings/config/config.php:628
1786
  msgid "XML-RPC"
1787
  msgstr ""
1788
 
1813
  msgstr ""
1814
 
1815
  #: settings/config/config.php:113
1816
+ #: settings/config/config.php:122
1817
  msgid "HTTP Strict Transport Security"
1818
  msgstr ""
1819
 
1820
+ #: settings/config/config.php:120
 
 
 
 
1821
  msgid "Get HTTP Strict Transport Security with %sReally Simple SSL Pro%s"
1822
  msgstr ""
1823
 
1824
+ #: settings/config/config.php:129
1825
  #: settings/config/config.php:130
1826
+ #: settings/config/config.php:140
1827
+ #: settings/config/config.php:911
 
1828
  msgid "Permissions Policy"
1829
  msgstr ""
1830
 
1831
+ #: settings/config/config.php:135
1832
  msgid "Get the Permissions Policy with %sReally Simple SSL Pro%s"
1833
  msgstr ""
1834
 
1835
+ #: settings/config/config.php:146
1836
  msgid "Content Security Policy"
1837
  msgstr ""
1838
 
1839
+ #: settings/config/config.php:147
1840
  msgid "Content Security Policy intro"
1841
  msgstr ""
1842
 
1843
+ #: settings/config/config.php:154
1844
  msgid "Get Upgrade Insecure Requests with %sReally Simple SSL Pro%s"
1845
  msgstr ""
1846
 
1847
+ #: settings/config/config.php:157
1848
  msgid "Upgrade Insecure Requests"
1849
  msgstr ""
1850
 
1851
+ #: settings/config/config.php:163
1852
  msgid "Get Frame Ancestors with %sReally Simple SSL Pro%s"
1853
  msgstr ""
1854
 
1855
+ #: settings/config/config.php:166
1856
  msgid "Frame Ancestors"
1857
  msgstr ""
1858
 
1859
+ #: settings/config/config.php:173
1860
  msgid "Get Source Directives with %sReally Simple SSL Pro%s"
1861
  msgstr ""
1862
 
1863
+ #: settings/config/config.php:175
1864
  msgid "Source Directives"
1865
  msgstr ""
1866
 
1867
+ #: settings/config/config.php:183
1868
  msgid "Get Cross Origin Policy Headers with %sReally Simple SSL Pro%s"
1869
  msgstr ""
1870
 
1871
+ #: settings/config/config.php:185
1872
  msgid "Cross Origin Policy"
1873
  msgstr ""
1874
 
1875
+ #: settings/config/config.php:194
1876
  msgid "Let's Encrypt"
1877
  msgstr ""
1878
 
1879
+ #: settings/config/config.php:195
1880
  msgid "We have tried to make our Wizard as simple and fast as possible. Although these questions are all necessary, if there’s any way you think we can improve the plugin, please let us %sknow%s!"
1881
  msgstr ""
1882
 
1883
+ #: settings/config/config.php:197
1884
  msgid " Please note that you can always save and finish the wizard later, use our %sdocumentation%s for additional information or log a %ssupport ticket%s if you need our assistance."
1885
  msgstr ""
1886
 
1887
+ #: settings/config/config.php:205
1888
  msgid "Letʼs Encrypt is a free, automated and open certificate authority brought to you by the nonprofit Internet Security Research Group (ISRG)."
1889
  msgstr ""
1890
 
1891
+ #: settings/config/config.php:212
1892
  msgid "General Settings"
1893
  msgstr ""
1894
 
1895
+ #: settings/config/config.php:216
1896
  msgid "Hosting"
1897
  msgstr ""
1898
 
1899
+ #: settings/config/config.php:217
1900
  msgid "Below you will find the instructions for different hosting environments and configurations. If you start the process with the necessary instructions and credentials the next view steps will be done in no time."
1901
  msgstr ""
1902
 
1903
+ #: settings/config/config.php:227
1904
  msgid "DNS verification"
1905
  msgstr ""
1906
 
1907
+ #: settings/config/config.php:289
1908
+ #: settings/config/config.php:297
1909
  msgid "Redirect method"
1910
  msgstr ""
1911
 
1912
+ #: settings/config/config.php:291
1913
  msgid "No redirect"
1914
  msgstr ""
1915
 
1916
+ #: settings/config/config.php:292
1917
  msgid "301 PHP redirect"
1918
  msgstr ""
1919
 
1920
+ #: settings/config/config.php:293
1921
  msgid "301 .htaccess redirect"
1922
  msgstr ""
1923
 
1924
+ #: settings/config/config.php:298
1925
  msgid "Redirects all requests over HTTP to HTTPS using a PHP 301 redirect. Enable if the .htaccess redirect cannot be used, for example on NGINX servers."
1926
  msgstr ""
1927
 
1928
+ #: settings/config/config.php:314
1929
  msgid "Mixed content fixer"
1930
  msgstr ""
1931
 
1932
+ #: settings/config/config.php:328
1933
+ #: settings/config/config.php:331
1934
  msgid "Mixed content fixer - init hook"
1935
  msgstr ""
1936
 
1937
+ #: settings/config/config.php:332
1938
  msgid "If this option is set to true, the mixed content fixer will fire on the init hook instead of the template_redirect hook. Only use this option when you experience problems with the mixed content fixer."
1939
  msgstr ""
1940
 
1941
+ #: settings/config/config.php:350
1942
  msgid "Mixed content fixer - back-end"
1943
  msgstr ""
1944
 
1945
+ #: settings/config/config.php:359
1946
  msgid "Dismiss all notices"
1947
  msgstr ""
1948
 
1949
+ #: settings/config/config.php:369
1950
+ #: settings/build/index.js:382
 
 
1951
  #: settings/src/LetsEncrypt/Installation.js:103
1952
  #: settings/src/LetsEncrypt/Installation.js:108
1953
  #: settings/src/LetsEncrypt/Installation.js:112
 
 
 
1954
  msgid "Download"
1955
  msgstr ""
1956
 
1957
+ #: settings/config/config.php:370
1958
  msgid "System status"
1959
  msgstr ""
1960
 
1961
+ #: settings/config/config.php:379
1962
  msgid "Delete all data on plugin deletion"
1963
  msgstr ""
1964
 
1965
+ #: settings/config/config.php:387
1966
  msgid "Stop editing the .htaccess file"
1967
  msgstr ""
1968
 
1969
+ #: settings/config/config.php:404
1970
  msgid "Premium support"
1971
  msgstr ""
1972
 
1973
+ #: settings/config/config.php:417
1974
  msgid "Disable \"anyone can register\""
1975
  msgstr ""
1976
 
1977
+ #: settings/config/config.php:423
1978
  msgid "About Hardening"
1979
  msgstr ""
1980
 
1981
+ #: settings/config/config.php:424
1982
  msgid "Hardening features limit the possibility of potential weaknesses and vulnerabilities which can be misused."
1983
  msgstr ""
1984
 
1985
+ #: settings/config/config.php:427
1986
  msgid "User registration is restricted"
1987
  msgstr ""
1988
 
1989
+ #: settings/config/config.php:428
1990
  msgid "User registration is not restricted"
1991
  msgstr ""
1992
 
1993
+ #: settings/config/config.php:437
1994
  msgid "Disable the built-in file editors"
1995
  msgstr ""
1996
 
1997
+ #: settings/config/config.php:441
1998
  msgid "File editing is disabled"
1999
  msgstr ""
2000
 
2001
+ #: settings/config/config.php:442
2002
  msgid "File editing is enabled"
2003
  msgstr ""
2004
 
2005
+ #: settings/config/config.php:451
2006
  msgid "Prevent code execution in the public 'Uploads' folder"
2007
  msgstr ""
2008
 
2009
+ #: settings/config/config.php:455
2010
  msgid "Code execution is restricted"
2011
  msgstr ""
2012
 
2013
+ #: settings/config/config.php:456
2014
  msgid "Code execution is not restricted"
2015
  msgstr ""
2016
 
2017
+ #: settings/config/config.php:465
2018
  msgid "Hide your WordPress version"
2019
  msgstr ""
2020
 
2021
+ #: settings/config/config.php:474
2022
  msgid "Prevent exposed login feedback"
2023
  msgstr ""
2024
 
2025
+ #: settings/config/config.php:483
2026
  msgid "Disable directory browsing"
2027
  msgstr ""
2028
 
2029
+ #: settings/config/config.php:487
2030
  msgid "Browsing directories is blocked"
2031
  msgstr ""
2032
 
2033
+ #: settings/config/config.php:488
2034
  msgid "Browsing directories is possible"
2035
  msgstr ""
2036
 
2037
+ #: settings/config/config.php:497
2038
  msgid "Disable user enumeration"
2039
  msgstr ""
2040
 
2041
+ #: settings/config/config.php:501
2042
  msgid "User enumeration is restricted"
2043
  msgstr ""
2044
 
2045
+ #: settings/config/config.php:502
2046
  msgid "User enumeration is possible"
2047
  msgstr ""
2048
 
2049
+ #: settings/config/config.php:511
2050
  msgid "Rename current 'admin' username"
2051
  msgstr ""
2052
 
2053
+ #: settings/config/config.php:515
2054
  msgid "Username 'Admin' is not allowed"
2055
  msgstr ""
2056
 
2057
+ #: settings/config/config.php:516
2058
  msgid "Username 'Admin' is allowed"
2059
  msgstr ""
2060
 
2061
+ #: settings/config/config.php:525
2062
  msgid "Choose new username to replace 'admin'"
2063
  msgstr ""
2064
 
2065
+ #: settings/config/config.php:549
2066
  msgid "Disable XML-RPC"
2067
  msgstr ""
2068
 
2069
+ #: settings/config/config.php:558
2070
  msgid "Block user registrations when login and display name are the same"
2071
  msgstr ""
2072
 
2073
+ #: settings/config/config.php:567
2074
  msgid "Disable HTTP methods"
2075
  msgstr ""
2076
 
2077
+ #: settings/config/config.php:576
2078
  msgid "Rename and randomize your database prefix"
2079
  msgstr ""
2080
 
2081
+ #: settings/config/config.php:579
2082
  msgid "Make sure you have a backup before you do this."
2083
  msgstr ""
2084
 
2085
+ #: settings/config/config.php:586
2086
  msgid "Change debug.log file location"
2087
  msgstr ""
2088
 
2089
+ #: settings/config/config.php:590
2090
  msgid "Debug log not publicly accessible"
2091
  msgstr ""
2092
 
2093
+ #: settings/config/config.php:591
2094
  msgid "Debug log is now public"
2095
  msgstr ""
2096
 
2097
+ #: settings/config/config.php:600
2098
  msgid "Disable application passwords"
2099
  msgstr ""
2100
 
2101
+ #: settings/config/config.php:640
2102
  msgid "Method"
2103
  msgstr ""
2104
 
2105
+ #: settings/config/config.php:645
2106
  msgid "Login status"
2107
  msgstr ""
2108
 
2109
+ #: settings/config/config.php:650
2110
  msgid "Count"
2111
  msgstr ""
2112
 
2113
+ #: settings/config/config.php:655
2114
+ #: settings/config/config.php:1092
2115
  msgid "Action"
2116
  msgstr ""
2117
 
2118
+ #: settings/config/config.php:660
2119
  msgid "Delete"
2120
  msgstr ""
2121
 
2122
+ #: settings/config/config.php:677
2123
  msgid "About Recommended Security Headers"
2124
  msgstr ""
2125
 
2126
+ #: settings/config/config.php:678
2127
  msgid "These security headers are the fundamental security measures to protect your website visitors while visiting your website."
2128
  msgstr ""
2129
 
2130
+ #: settings/config/config.php:696
2131
+ #: settings/config/config.php:710
2132
+ #: settings/config/config.php:810
2133
+ #: settings/config/config.php:832
2134
+ #: settings/config/config.php:847
2135
  msgid "Off"
2136
  msgstr ""
2137
 
2138
+ #: settings/config/config.php:711
2139
  msgid "recommended"
2140
  msgstr ""
2141
 
2142
+ #: settings/config/config.php:735
2143
  msgid "About HTTP Strict Transport Security"
2144
  msgstr ""
2145
 
2146
+ #: settings/config/config.php:736
2147
  msgid "Leveraging your SSL certificate with HSTS is a staple for every website. Force your website over SSL, mitigating risks of malicious counterfeit websites in your name."
2148
  msgstr ""
2149
 
2150
+ #: settings/config/config.php:790
2151
  msgid "One day (for testing only)"
2152
  msgstr ""
2153
 
2154
+ #: settings/config/config.php:791
2155
  msgid "One year"
2156
  msgstr ""
2157
 
2158
+ #: settings/config/config.php:792
2159
  msgid "Two years (required for preload)"
2160
  msgstr ""
2161
 
2162
+ #: settings/config/config.php:818
2163
  msgid "About Cross Origin Policies"
2164
  msgstr ""
2165
 
2166
+ #: settings/config/config.php:819
2167
  msgid "One of the most powerful features, and therefore the most complex are the Cross-Origin headers that can isolate your website so any data leaks are minimized."
2168
  msgstr ""
2169
 
2170
+ #: settings/config/config.php:865
2171
  msgid "About the Mixed Content Scan"
2172
  msgstr ""
2173
 
2174
+ #: settings/config/config.php:866
2175
  msgid "The extensive mixed content scan will list all current and future issues and provide a fix, or instructions to fix manually."
2176
  msgstr ""
2177
 
2178
+ #: settings/config/config.php:870
2179
  msgid "Type"
2180
  msgstr ""
2181
 
2182
+ #: settings/config/config.php:876
2183
  msgid "Description"
2184
  msgstr ""
2185
 
2186
+ #: settings/config/config.php:882
2187
+ #: settings/config/config.php:1077
2188
  msgid "Location"
2189
  msgstr ""
2190
 
2191
+ #: settings/config/config.php:895
2192
+ #: settings/build/index.js:382
 
 
 
2193
  #: settings/src/Dashboard/TaskElement.js:30
2194
  #: settings/src/Dashboard/TaskElement.js:31
2195
  #: settings/src/Modal/Modal.js:80
2196
  #: settings/src/Settings/MixedContentScan.js:233
 
 
 
 
2197
  msgid "Fix"
2198
  msgstr ""
2199
 
2200
+ #: settings/config/config.php:910
2201
+ #: settings/build/index.js:382
2202
  #: settings/src/Settings/ChangeStatus.js:11
 
2203
  msgid "Allow"
2204
  msgstr ""
2205
 
2206
+ #: settings/config/config.php:910
2207
+ #: settings/build/index.js:382
 
2208
  #: settings/src/Settings/LearningMode.js:254
2209
  #: settings/src/Settings/PermissionsPolicy.js:148
 
 
2210
  msgid "Disable"
2211
  msgstr ""
2212
 
2213
+ #: settings/config/config.php:910
2214
  msgid "Self (Default)"
2215
  msgstr ""
2216
 
2217
+ #: settings/config/config.php:916
2218
  msgid "About the Permission Policy"
2219
  msgstr ""
2220
 
2221
+ #: settings/config/config.php:917
2222
  msgid "Browser features are plentiful, but most are not needed on your website."
2223
  msgstr ""
2224
 
2225
+ #: settings/config/config.php:917
2226
  msgid "They might be misused if you don’t actively tell the browser to disable these features."
2227
  msgstr ""
2228
 
2229
+ #: settings/config/config.php:921
2230
  msgid "Feature"
2231
  msgstr ""
2232
 
2233
+ #: settings/config/config.php:926
2234
  msgid "Options"
2235
  msgstr ""
2236
 
2237
+ #: settings/config/config.php:999
2238
  msgid "Enable Permissions Policy"
2239
  msgstr ""
2240
 
2241
+ #: settings/config/config.php:1008
2242
  msgid "Serve encrypted and authenticated responses"
2243
  msgstr ""
2244
 
2245
+ #: settings/config/config.php:1014
2246
  msgid "About the Content Security Policy"
2247
  msgstr ""
2248
 
2249
+ #: settings/config/config.php:1015
2250
  msgid "The content security policy has many options, so we always recommend starting in ‘learning mode’ to see what files and scripts are loaded."
2251
  msgstr ""
2252
 
2253
+ #: settings/config/config.php:1030
2254
  msgid "Disable (Default)"
2255
  msgstr ""
2256
 
2257
+ #: settings/config/config.php:1034
2258
  msgid "Allow your domain to be embedded"
2259
  msgstr ""
2260
 
2261
+ #: settings/config/config.php:1043
2262
  msgid "Add additional domains which can embed your website, if needed. Comma seperated."
2263
  msgstr ""
2264
 
2265
+ #: settings/config/config.php:1082
2266
  msgid "Directive"
2267
  msgstr ""
2268
 
2269
+ #: settings/config/config.php:1087
2270
  msgid "Source"
2271
  msgstr ""
2272
 
2273
+ #: settings/config/config.php:1134
2274
  msgid "Progress"
2275
  msgstr ""
2276
 
2277
+ #: settings/config/config.php:1147
2278
  msgid "Powered by Qualys"
2279
  msgstr ""
2280
 
2281
+ #: settings/config/config.php:1149
2282
  msgid "Status"
2283
  msgstr ""
2284
 
2285
+ #: settings/config/config.php:1165
2286
  msgid "Tips & Tricks"
2287
  msgstr ""
2288
 
2289
+ #: settings/config/config.php:1176
2290
  msgid "Other Plugins"
2291
  msgstr ""
2292
 
2293
+ #: settings/settings.php:96
2294
  msgid "SSL settings"
2295
  msgstr ""
2296
 
2297
+ #: settings/settings.php:97
2298
  msgid "SSL"
2299
  msgstr ""
2300
 
2301
+ #: settings/settings.php:317
2302
  msgid "Self-hosted, Privacy-friendly analytics tool"
2303
  msgstr ""
2304
 
2305
+ #: settings/settings.php:332
2306
  msgid "Terms and Conditions"
2307
  msgstr ""
2308
 
2309
  #: settings/templates/tips-tricks-footer.php:3
2310
+ #: settings/build/index.js:382
2311
  #: settings/src/Header.js:39
 
2312
  msgid "Documentation"
2313
  msgstr ""
2314
 
2397
  msgstr ""
2398
 
2399
  #: upgrade/upgrade-to-pro.php:182
2400
+ #: settings/build/index.js:382
2401
  #: settings/src/Dashboard/OtherPlugins.js:88
 
2402
  msgid "Installed"
2403
  msgstr ""
2404
 
2468
  msgid "Your license key has reached its activation limit."
2469
  msgstr ""
2470
 
2471
+ #: settings/build/index.js:382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2472
  #: settings/src/Dashboard/ProgressFooter.js:44
2473
  #: settings/src/Header.js:48
2474
  #: settings/src/Menu/Menu.js:49
 
 
 
2475
  msgid "Go Pro"
2476
  msgstr ""
2477
 
2478
+ #: settings/build/index.js:382
2479
+ #: settings/src/Dashboard/ProgressBlockHeader.js:51
2480
+ msgid "All tasks"
 
2481
  msgstr ""
2482
 
2483
+ #: settings/build/index.js:382
2484
+ #: settings/src/Dashboard/ProgressBlockHeader.js:55
2485
+ msgid "Remaining tasks"
 
2486
  msgstr ""
2487
 
2488
+ #: settings/build/index.js:382
2489
  #: settings/src/Dashboard/SecurityFeaturesBlock/SecurityFeatureBullet.js:27
 
2490
  msgid "%sRead more%s"
2491
  msgstr ""
2492
 
2493
+ #: settings/build/index.js:382
2494
  #: settings/src/Dashboard/SecurityFeaturesBlock/SecurityFeaturesBlock.js:38
 
2495
  msgid "Improve WordPress security."
2496
  msgstr ""
2497
 
2498
+ #: settings/build/index.js:382
2499
  #: settings/src/Dashboard/SecurityFeaturesBlock/SecurityFeaturesBlock.js:39
 
2500
  msgid "Check our %sdocumentation%s"
2501
  msgstr ""
2502
 
2503
+ #: settings/build/index.js:382
2504
  #: settings/src/Dashboard/SecurityFeaturesBlock/SecurityFeaturesBlock.js:40
 
2505
  msgid "or use the %sWordPress forum%s."
2506
  msgstr ""
2507
 
2508
+ #: settings/build/index.js:382
2509
+ #: settings/src/Dashboard/ProgressFooter.js:32
2510
+ msgid "SSL Activated"
 
2511
  msgstr ""
2512
 
2513
+ #: settings/build/index.js:382
2514
+ #: settings/src/Dashboard/ProgressFooter.js:32
2515
+ msgid "SSL not activated"
2516
+ msgstr ""
2517
+
2518
+ #: settings/build/index.js:382
2519
+ #: settings/src/Dashboard/ProgressFooter.js:52
2520
+ msgid "Mixed content"
2521
+ msgstr ""
2522
+
2523
+ #: settings/build/index.js:382
2524
+ #: settings/src/Dashboard/ProgressFooter.js:56
2525
+ msgid "301 redirect"
2526
+ msgstr ""
2527
+
2528
+ #: settings/build/index.js:382
2529
  #: settings/src/Dashboard/SslLabs.js:349
 
2530
  msgid "No test started yet"
2531
  msgstr ""
2532
 
2533
+ #: settings/build/index.js:382
2534
  #: settings/src/Dashboard/SslLabs.js:377
 
2535
  msgid "Not available on localhost"
2536
  msgstr ""
2537
 
2538
+ #: settings/build/index.js:382
2539
+ #: settings/src/Dashboard/SslLabs.js:268
2540
+ msgid "Cipher strength"
2541
+ msgstr ""
2542
+
2543
+ #: settings/build/index.js:382
2544
  #: settings/src/Dashboard/SslLabs.js:411
 
2545
  msgid "What does my score mean?"
2546
  msgstr ""
2547
 
2548
+ #: settings/build/index.js:382
 
2549
  #: settings/src/Dashboard/SslLabs.js:411
2550
  #: settings/src/LetsEncrypt/DnsVerification.js:60
 
 
2551
  msgid "Read more"
2552
  msgstr ""
2553
 
2554
+ #: settings/build/index.js:382
2555
  #: settings/src/Dashboard/SslLabs.js:417
 
2556
  msgid "Last check:"
2557
  msgstr ""
2558
 
2559
+ #: settings/build/index.js:382
2560
  #: settings/src/Dashboard/SslLabs.js:423
 
2561
  msgid "View detailed report on Qualys SSL Labs"
2562
  msgstr ""
2563
 
2564
+ #: settings/build/index.js:382
2565
  #: settings/src/Dashboard/SslLabsFooter.js:14
 
2566
  msgid "Continue SSL Health check"
2567
  msgstr ""
2568
 
2569
+ #: settings/build/index.js:382
2570
  #: settings/src/Dashboard/SslLabsFooter.js:15
 
2571
  msgid "Check SSL Health"
2572
  msgstr ""
2573
 
2574
+ #: settings/build/index.js:382
2575
+ #: settings/src/Dashboard/OtherPlugins.js:69
2576
+ #: settings/src/Onboarding/Onboarding.js:194
2577
+ #: settings/src/Onboarding/Onboarding.js:195
2578
+ msgid "Activating..."
2579
+ msgstr ""
2580
+
2581
+ #: settings/build/index.js:382
2582
+ #: settings/src/Dashboard/OtherPlugins.js:70
2583
+ #: settings/src/Dashboard/OtherPlugins.js:71
2584
+ msgid "Downloading..."
2585
+ msgstr ""
2586
+
2587
+ #: settings/build/index.js:382
2588
+ #: settings/src/Menu/MenuItem.js:40
2589
+ msgid "New"
2590
+ msgstr ""
2591
+
2592
+ #: settings/build/index.js:382
2593
+ #: settings/src/Settings/License.js:133
2594
+ msgid "Deactivate"
2595
+ msgstr ""
2596
+
2597
+ #: settings/build/index.js:382
2598
  #: settings/src/LetsEncrypt/Directories.js:22
2599
  #: settings/src/LetsEncrypt/DnsVerification.js:23
 
 
2600
  msgid "The challenge directory is used to verify the domain ownership."
2601
  msgstr ""
2602
 
2603
+ #: settings/build/index.js:382
2604
  #: settings/src/LetsEncrypt/Directories.js:30
 
2605
  msgid "The key directory is needed to store the generated keys."
2606
  msgstr ""
2607
 
2608
+ #: settings/build/index.js:382
 
2609
  #: settings/src/LetsEncrypt/Directories.js:30
2610
  #: settings/src/LetsEncrypt/Directories.js:38
 
 
2611
  msgid "By placing it outside the root folder, it is not publicly accessible."
2612
  msgstr ""
2613
 
2614
+ #: settings/build/index.js:382
2615
  #: settings/src/LetsEncrypt/Directories.js:38
 
2616
  msgid "The certificate will get stored in this directory."
2617
  msgstr ""
2618
 
2619
+ #: settings/build/index.js:382
2620
  #: settings/src/LetsEncrypt/Directories.js:55
 
2621
  msgid "Switched to DNS"
2622
  msgstr ""
2623
 
2624
+ #: settings/build/index.js:382
 
 
2625
  #: settings/src/LetsEncrypt/Directories.js:70
2626
  #: settings/src/LetsEncrypt/DnsVerification.js:58
2627
  #: settings/src/LetsEncrypt/Installation.js:99
 
 
 
2628
  msgid "Next step"
2629
  msgstr ""
2630
 
2631
+ #: settings/build/index.js:382
2632
  #: settings/src/LetsEncrypt/Directories.js:75
 
2633
  msgid "If the challenge directory cannot be created, or is not reachable, you can either remove the server limitation, or change to DNS verification."
2634
  msgstr ""
2635
 
2636
+ #: settings/build/index.js:382
 
 
2637
  #: settings/src/LetsEncrypt/Directories.js:81
2638
  #: settings/src/LetsEncrypt/Directories.js:94
2639
  #: settings/src/LetsEncrypt/Directories.js:123
 
 
 
2640
  msgid "Switch to DNS verification"
2641
  msgstr ""
2642
 
2643
+ #: settings/build/index.js:382
2644
  #: settings/src/LetsEncrypt/Directories.js:87
 
2645
  msgid "If you also want to secure subdomains like mail.domain.com, cpanel.domain.com, you have to use the %sDNS%s challenge."
2646
  msgstr ""
2647
 
2648
+ #: settings/build/index.js:382
2649
  #: settings/src/LetsEncrypt/Directories.js:89
 
2650
  msgid "Please note that auto-renewal with a DNS challenge might not be possible."
2651
  msgstr ""
2652
 
2653
+ #: settings/build/index.js:382
2654
  #: settings/src/LetsEncrypt/Directories.js:99
 
2655
  msgid "Create a challenge directory"
2656
  msgstr ""
2657
 
2658
+ #: settings/build/index.js:382
2659
  #: settings/src/LetsEncrypt/Directories.js:102
 
2660
  msgid "Navigate in FTP or File Manager to the root of your WordPress installation:"
2661
  msgstr ""
2662
 
2663
+ #: settings/build/index.js:382
2664
  #: settings/src/LetsEncrypt/Directories.js:106
 
2665
  msgid "Create a folder called “.well-known”"
2666
  msgstr ""
2667
 
2668
+ #: settings/build/index.js:382
2669
  #: settings/src/LetsEncrypt/Directories.js:109
 
2670
  msgid "Inside the folder called “.well-known” create a new folder called “acme-challenge”, with 644 writing permissions."
2671
  msgstr ""
2672
 
2673
+ #: settings/build/index.js:382
 
 
2674
  #: settings/src/LetsEncrypt/Directories.js:112
2675
  #: settings/src/LetsEncrypt/Directories.js:144
2676
  #: settings/src/LetsEncrypt/Directories.js:166
 
 
 
2677
  msgid "Click the refresh button."
2678
  msgstr ""
2679
 
2680
+ #: settings/build/index.js:382
2681
  #: settings/src/LetsEncrypt/Directories.js:116
 
2682
  msgid "Or you can switch to DNS verification"
2683
  msgstr ""
2684
 
2685
+ #: settings/build/index.js:382
2686
  #: settings/src/LetsEncrypt/Directories.js:118
 
2687
  msgid "If the challenge directory cannot be created, you can either remove the server limitation, or change to DNS verification."
2688
  msgstr ""
2689
 
2690
+ #: settings/build/index.js:382
2691
  #: settings/src/LetsEncrypt/Directories.js:131
 
2692
  msgid "Create a key directory"
2693
  msgstr ""
2694
 
2695
+ #: settings/build/index.js:382
 
2696
  #: settings/src/LetsEncrypt/Directories.js:134
2697
  #: settings/src/LetsEncrypt/Directories.js:156
 
 
2698
  msgid "Navigate in FTP or File Manager to one level above the root of your WordPress installation:"
2699
  msgstr ""
2700
 
2701
+ #: settings/build/index.js:382
 
2702
  #: settings/src/LetsEncrypt/Directories.js:138
2703
  #: settings/src/LetsEncrypt/Directories.js:160
 
 
2704
  msgid "Create a folder called “ssl”"
2705
  msgstr ""
2706
 
2707
+ #: settings/build/index.js:382
2708
  #: settings/src/LetsEncrypt/Directories.js:141
 
2709
  msgid "Inside the folder called “ssl” create a new folder called “keys”, with 644 writing permissions."
2710
  msgstr ""
2711
 
2712
+ #: settings/build/index.js:382
2713
  #: settings/src/LetsEncrypt/Directories.js:153
 
2714
  msgid "Create a certs directory"
2715
  msgstr ""
2716
 
2717
+ #: settings/build/index.js:382
2718
  #: settings/src/LetsEncrypt/Directories.js:163
 
2719
  msgid "Inside the folder called “ssl” create a new folder called “certs”, with 644 writing permissions."
2720
  msgstr ""
2721
 
2722
+ #: settings/build/index.js:382
 
 
 
 
 
 
2723
  #: settings/src/LetsEncrypt/DnsVerification.js:59
 
2724
  msgid "Add the following token as text record to your DNS records. We recommend to use a short TTL during installation, in case you need to change it."
2725
  msgstr ""
2726
 
2727
+ #: settings/build/index.js:382
2728
  #: settings/src/LetsEncrypt/DnsVerification.js:65
 
2729
  msgid "domain"
2730
  msgstr ""
2731
 
2732
+ #: settings/build/index.js:382
2733
  #: settings/src/LetsEncrypt/DnsVerification.js:66
 
2734
  msgid "Value"
2735
  msgstr ""
2736
 
2737
+ #: settings/build/index.js:382
2738
  #: settings/src/LetsEncrypt/DnsVerification.js:79
 
2739
  msgid "DNS verification active. You can switch back to directory verification here."
2740
  msgstr ""
2741
 
2742
+ #: settings/build/index.js:382
2743
+ #: settings/src/LetsEncrypt/DnsVerification.js:41
2744
+ msgid "Switched to directory"
 
2745
  msgstr ""
2746
 
2747
+ #: settings/build/index.js:382
2748
+ #: settings/src/LetsEncrypt/DnsVerification.js:83
2749
+ msgid "Switch to directory verification"
 
2750
  msgstr ""
2751
 
2752
+ #: settings/build/index.js:382
2753
  #: settings/src/LetsEncrypt/Generation.js:44
 
2754
  msgid "We could not check the DNS records. If you just added the record, please check in a few minutes."
2755
  msgstr ""
2756
 
2757
+ #: settings/build/index.js:382
2758
  #: settings/src/LetsEncrypt/Generation.js:45
 
2759
  msgid "You can manually check the DNS records in an %sonline tool%s."
2760
  msgstr ""
2761
 
2762
+ #: settings/build/index.js:382
2763
  #: settings/src/LetsEncrypt/Generation.js:47
 
2764
  msgid "If you're sure it's set correctly, you can click the button to skip the DNS check."
2765
  msgstr ""
2766
 
2767
+ #: settings/build/index.js:382
2768
+ #: settings/src/LetsEncrypt/Generation.js:27
2769
+ msgid "Skip DNS verification "
2770
+ msgstr ""
2771
+
2772
+ #: settings/build/index.js:382
2773
  #: settings/src/LetsEncrypt/Generation.js:53
 
2774
  msgid "Skip DNS check"
2775
  msgstr ""
2776
 
2777
+ #: settings/build/index.js:382
2778
+ #: settings/src/Onboarding/Onboarding.js:163
2779
+ msgid "SSL has been activated network wide"
2780
+ msgstr ""
2781
+
2782
+ #: settings/build/index.js:382
2783
+ #: settings/src/Onboarding/Onboarding.js:166
2784
+ msgid "Processing activation of subsites networkwide"
2785
+ msgstr ""
2786
+
2787
+ #: settings/build/index.js:382
2788
+ #: settings/src/Onboarding/Onboarding.js:196
2789
+ msgid "Installing..."
2790
+ msgstr ""
2791
+
2792
+ #: settings/build/index.js:382
2793
+ #: settings/src/Onboarding/Onboarding.js:197
2794
+ msgid "Failed"
2795
+ msgstr ""
2796
+
2797
+ #: settings/build/index.js:382
2798
+ #: settings/src/Onboarding/Onboarding.js:198
2799
+ msgid "Finished"
2800
+ msgstr ""
2801
+
2802
+ #: settings/build/index.js:382
2803
+ #: settings/src/Onboarding/Onboarding.js:219
2804
+ msgid "working"
2805
+ msgstr ""
2806
+
2807
+ #: settings/build/index.js:382
2808
+ #: settings/src/Onboarding/Onboarding.js:220
2809
+ msgid "completed"
2810
+ msgstr ""
2811
+
2812
+ #: settings/build/index.js:382
2813
+ #: settings/src/Onboarding/Onboarding.js:69
2814
+ msgid "Re-checking SSL certificate, please wait..."
2815
+ msgstr ""
2816
+
2817
+ #: settings/build/index.js:382
2818
+ #: settings/src/Onboarding/Onboarding.js:292
2819
+ msgid "Refresh SSL status"
2820
+ msgstr ""
2821
+
2822
+ #: settings/build/index.js:382
2823
+ #: settings/src/Onboarding/Onboarding.js:293
2824
+ msgid "The SSL detection method is not 100% accurate."
2825
+ msgstr ""
2826
+
2827
+ #: settings/build/index.js:382
2828
+ #: settings/src/Onboarding/Onboarding.js:294
2829
+ msgid "If you’re certain an SSL certificate is present, and refresh SSL status does not work, please check “Override SSL detection” to continue activating SSL."
2830
+ msgstr ""
2831
+
2832
+ #: settings/build/index.js:382
2833
+ #: settings/src/Onboarding/Onboarding.js:242
2834
+ msgid "Activate SSL networkwide"
2835
+ msgstr ""
2836
+
2837
+ #: settings/build/index.js:382
2838
+ #: settings/src/Onboarding/Onboarding.js:247
2839
+ msgid "Improve Security with PRO"
2840
+ msgstr ""
2841
+
2842
+ #: settings/build/index.js:382
2843
+ #: settings/src/Onboarding/Onboarding.js:248
2844
+ msgid "Install SSL"
2845
+ msgstr ""
2846
+
2847
+ #: settings/build/index.js:382
2848
+ #: settings/src/Onboarding/Onboarding.js:250
2849
+ msgid "Override SSL detection"
2850
+ msgstr ""
2851
+
2852
+ #: settings/build/index.js:382
2853
+ #: settings/src/Onboarding/Onboarding.js:268
2854
+ msgid "Go to Dashboard"
2855
+ msgstr ""
2856
+
2857
+ #: settings/build/index.js:382
2858
  #: settings/src/LetsEncrypt/Installation.js:24
 
2859
  msgid "This is the certificate, which you need to install in your hosting dashboard."
2860
  msgstr ""
2861
 
2862
+ #: settings/build/index.js:382
 
2863
  #: settings/src/LetsEncrypt/Installation.js:25
2864
  #: settings/src/LetsEncrypt/Installation.js:101
 
 
2865
  msgid "Certificate (CRT)"
2866
  msgstr ""
2867
 
2868
+ #: settings/build/index.js:382
2869
  #: settings/src/LetsEncrypt/Installation.js:31
 
2870
  msgid "The private key can be uploaded or pasted in the appropriate field on your hosting dashboard."
2871
  msgstr ""
2872
 
2873
+ #: settings/build/index.js:382
 
2874
  #: settings/src/LetsEncrypt/Installation.js:32
2875
  #: settings/src/LetsEncrypt/Installation.js:106
 
 
2876
  msgid "Private Key (KEY)"
2877
  msgstr ""
2878
 
2879
+ #: settings/build/index.js:382
2880
  #: settings/src/LetsEncrypt/Installation.js:38
 
2881
  msgid "The CA Bundle will sometimes be automatically detected. If not, you can use this file."
2882
  msgstr ""
2883
 
2884
+ #: settings/build/index.js:382
 
2885
  #: settings/src/LetsEncrypt/Installation.js:39
2886
  #: settings/src/LetsEncrypt/Installation.js:110
 
 
2887
  msgid "Certificate Authority Bundle (CABUNDLE)"
2888
  msgstr ""
2889
 
2890
+ #: settings/build/index.js:382
2891
  #: settings/src/LetsEncrypt/Installation.js:73
 
2892
  msgid "Copied!"
2893
  msgstr ""
2894
 
2895
+ #: settings/build/index.js:382
2896
  #: settings/src/LetsEncrypt/Installation.js:95
 
2897
  msgid "The certificate is not generated by Really Simple SSL, so there are no installation files here"
2898
  msgstr ""
2899
 
2900
+ #: settings/build/index.js:382
2901
  #: settings/src/LetsEncrypt/Installation.js:100
 
2902
  msgid "Install your certificate."
2903
  msgstr ""
2904
 
2905
+ #: settings/build/index.js:382
 
 
2906
  #: settings/src/LetsEncrypt/Installation.js:104
2907
  #: settings/src/LetsEncrypt/Installation.js:109
2908
  #: settings/src/LetsEncrypt/Installation.js:113
 
 
 
2909
  msgid "Copy content"
2910
  msgstr ""
2911
 
2912
+ #: settings/build/index.js:382
2913
  #: settings/src/LetsEncrypt/LetsEncrypt.js:96
 
2914
  msgid "Verifying DNS records..."
2915
  msgstr ""
2916
 
2917
+ #: settings/build/index.js:382
2918
  #: settings/src/LetsEncrypt/LetsEncrypt.js:249
 
2919
  msgid "Attempt %s."
2920
  msgstr ""
2921
 
2922
+ #: settings/build/index.js:382
2923
+ #: settings/src/Settings/MixedContentScan.js:220
2924
+ msgid "View"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2925
  msgstr ""
2926
 
2927
+ #: settings/build/index.js:382
2928
+ #: settings/src/Settings/MixedContentScan.js:284
2929
+ msgid "No results. Start your first scan"
 
2930
  msgstr ""
2931
 
2932
+ #: settings/build/index.js:382
2933
+ #: settings/src/Settings/MixedContentScan.js:285
2934
+ msgid "Everything is now served over SSL"
 
2935
  msgstr ""
2936
 
2937
+ #: settings/build/index.js:382
2938
+ #: settings/src/Settings/LearningMode.js:245
2939
+ #: settings/src/Settings/MixedContentScan.js:301
2940
+ msgid "No results"
2941
  msgstr ""
2942
 
2943
+ #: settings/build/index.js:382
2944
+ #: settings/src/Settings/ChangeStatus.js:11
2945
+ msgid "Revoke"
 
2946
  msgstr ""
2947
 
2948
+ #: settings/build/index.js:382
2949
+ #: settings/src/Settings/LearningMode.js:253
2950
+ #: settings/src/Settings/PermissionsPolicy.js:140
2951
+ msgid "Enforce"
2952
  msgstr ""
2953
 
2954
+ #: settings/build/index.js:382
2955
+ #: settings/src/Settings/LearningMode.js:269
2956
+ #: settings/src/Settings/PermissionsPolicy.js:146
2957
+ msgid "Enforced"
2958
  msgstr ""
2959
 
2960
+ #: settings/build/index.js:382
2961
+ #: settings/src/Settings/PermissionsPolicy.js:147
2962
+ msgid "Permissions Policy is enforced."
 
2963
  msgstr ""
2964
 
2965
+ #: settings/build/index.js:382
2966
+ #: settings/src/Settings/Support.js:65
2967
+ msgid "Type your question here"
 
 
 
 
2968
  msgstr ""
2969
 
2970
+ #: settings/build/index.js:382
2971
+ #: settings/src/Settings/Support.js:72
2972
+ msgid "Send"
 
 
 
 
2973
  msgstr ""
2974
 
2975
+ #: settings/build/index.js:382
2976
  #: settings/src/Settings/LearningMode.js:155
 
2977
  msgid "We're configuring your %s. Exit to edit and enforce."
2978
  msgstr ""
2979
 
2980
+ #: settings/build/index.js:382
2981
  #: settings/src/Settings/LearningMode.js:156
 
2982
  msgid "%s has been disabled."
2983
  msgstr ""
2984
 
2985
+ #: settings/build/index.js:382
2986
  #: settings/src/Settings/LearningMode.js:157
 
2987
  msgid "%s is enforced."
2988
  msgstr ""
2989
 
2990
+ #: settings/build/index.js:382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2991
  #: settings/src/Settings/LearningMode.js:199
 
2992
  msgid "success"
2993
  msgstr ""
2994
 
2995
+ #: settings/build/index.js:382
2996
  #: settings/src/Settings/LearningMode.js:199
 
2997
  msgid "failed"
2998
  msgstr ""
2999
 
3000
+ #: settings/build/index.js:382
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3001
  #: settings/src/Settings/LearningMode.js:262
 
3002
  msgid "Enable Learning Mode"
3003
  msgstr ""
3004
 
3005
+ #: settings/build/index.js:382
 
 
 
 
 
 
 
 
 
3006
  #: settings/src/Settings/LearningMode.js:271
 
3007
  msgid "Disable to configure"
3008
  msgstr ""
3009
 
3010
+ #: settings/build/index.js:382
 
3011
  #: settings/src/Settings/LearningMode.js:276
3012
  #: settings/src/Settings/LearningMode.js:283
 
 
3013
  msgid "Learning Mode"
3014
  msgstr ""
3015
 
3016
+ #: settings/build/index.js:382
3017
  #: settings/src/Settings/LearningMode.js:278
 
3018
  msgid "Exit learning mode"
3019
  msgstr ""
3020
 
3021
+ #: settings/build/index.js:382
3022
  #: settings/src/Settings/LearningMode.js:284
 
3023
  msgid "We finished the configuration."
3024
  msgstr ""
3025
 
3026
+ #: settings/build/index.js:382
3027
  #: settings/src/Settings/LearningMode.js:285
 
3028
  msgid "Review the settings and enforce the policy"
3029
  msgstr ""
3030
 
3031
+ #: settings/build/index.js:382
3032
  #: settings/src/Settings/LearningMode.js:290
 
3033
  msgid "Disabled "
3034
  msgstr ""
3035
 
3036
+ #: settings/build/index.js:382
3037
+ #: settings/src/Settings/LearningMode.js:169
3038
+ msgid "All"
 
3039
  msgstr ""
3040
 
3041
+ #: settings/build/index.js:382
3042
+ #: settings/src/Settings/LearningMode.js:170
3043
+ msgid "Allowed"
 
 
 
3044
  msgstr ""
3045
 
3046
+ #: settings/build/index.js:382
3047
+ #: settings/src/Settings/LearningMode.js:171
3048
+ msgid "Blocked"
 
3049
  msgstr ""
3050
 
3051
+ #: settings/build/index.js:382
3052
+ #: settings/src/Settings/Field.js:122
3053
+ #: settings/src/Settings/SettingsGroup.js:143
3054
+ msgid "This feature is only available networkwide."
3055
  msgstr ""
3056
 
3057
+ #: settings/build/index.js:382
3058
+ #: settings/src/Settings/Field.js:122
3059
+ #: settings/src/Settings/SettingsGroup.js:143
3060
+ msgid "Network settings"
3061
  msgstr ""
3062
 
3063
+ #: settings/build/index.js:382
3064
+ #: settings/src/Settings/SettingsGroup.js:80
3065
+ msgid "Learn more about %sPremium%s"
 
3066
  msgstr ""
3067
 
3068
+ #: settings/build/index.js:382
3069
+ #: settings/src/Settings/SettingsGroup.js:103
3070
+ msgid "Reset Let's Encrypt"
 
3071
  msgstr ""
3072
 
3073
+ #: settings/build/index.js:382
3074
+ #: settings/src/Settings/SettingsGroup.js:135
3075
+ msgid "Check license"
3076
+ msgstr ""
3077
+
3078
+ #: settings/build/index.js:382
3079
+ #: settings/src/Settings/SettingsGroup.js:142
3080
+ msgid "Network feature"
3081
+ msgstr ""
3082
+
3083
+ #: settings/build/index.js:382
3084
  #: settings/src/Settings/Settings.js:75
 
3085
  msgid "Save"
3086
  msgstr ""
3087
 
3088
+ #: settings/build/index.js:382
3089
  #: settings/src/Settings/Settings.js:78
 
3090
  msgid "Refresh"
3091
  msgstr ""
3092
 
3093
+ #: settings/build/index.js:382
3094
  #: settings/src/Settings/Settings.js:147
 
3095
  msgid "Previous"
3096
  msgstr ""
3097
 
3098
+ #: settings/build/index.js:382
3099
  #: settings/src/Settings/Settings.js:159
 
3100
  msgid "Save and Continue"
3101
  msgstr ""
3102
 
3103
+ #: settings/build/index.js:382
3104
  #: settings/src/Settings/Settings.js:168
 
3105
  msgid "Notifications"
3106
  msgstr ""
3107
 
3108
+ #: settings/build/index.js:382
3109
  #: settings/src/Settings/Settings.js:171
 
3110
  msgid "Expand all"
3111
  msgstr ""
3112
 
3113
+ #: settings/build/index.js:382
3114
  #: settings/src/Settings/Settings.js:172
 
3115
  msgid "Collapse all"
3116
  msgstr ""
3117
 
3118
+ #: settings/build/index.js:382
3119
+ #: settings/src/Settings/SettingsPage.js:182
3120
+ msgid "Settings Saved"
 
3121
  msgstr ""
3122
 
3123
+ #: settings/build/index.js:382
3124
+ #: settings/src/Modal/Modal.js:77
3125
+ msgid "Edit"
 
3126
  msgstr ""
3127
 
3128
+ #: settings/build/index.js:382
3129
+ #: settings/src/Modal/Modal.js:78
3130
+ msgid "Help"
 
3131
  msgstr ""
3132
 
3133
+ #: settings/build/index.js:382
3134
+ #: settings/src/Modal/Modal.js:79
3135
+ msgid "Ignore"
 
3136
  msgstr ""
3137
 
3138
+ #: settings/build/index.js:382
3139
+ #: settings/src/Onboarding/OnboardingModal.js:54
3140
+ msgid "Please wait while we detect your setup"
 
3141
  msgstr ""
3142
 
3143
+ #: settings/src/Settings/MixedContentScan.js:19
3144
+ #: settings/src/Settings/MixedContentScan.js:21
3145
+ msgid "All results"
 
3146
  msgstr ""
3147
 
3148
+ #: settings/src/Settings/MixedContentScan.js:20
3149
+ msgid "Show"
 
 
3150
  msgstr ""
lets-encrypt/functions.php CHANGED
@@ -184,10 +184,6 @@ if ( !function_exists('rsssl_is_directadmin')) {
184
  * @return bool
185
  */
186
  function rsssl_is_directadmin() {
187
- if (get_option('rsssl_force_directadmin')) {
188
- return true;
189
- }
190
-
191
  if ( get_option('rsssl_hosting_dashboard')==='directadmin' ){
192
  return true;
193
  }
184
  * @return bool
185
  */
186
  function rsssl_is_directadmin() {
 
 
 
 
187
  if ( get_option('rsssl_hosting_dashboard')==='directadmin' ){
188
  return true;
189
  }
progress/class-progress.php CHANGED
@@ -8,9 +8,7 @@ class rsssl_progress {
8
  wp_die( sprintf( '%s is a singleton class and you cannot create a second instance.', get_class( $this ) ) );
9
  self::$_this = $this;
10
 
11
- if ( RSSSL()->admin->is_settings_page() ) {
12
- add_action( 'admin_init', array( $this, 'dismiss_from_admin_notice') );
13
- }
14
  }
15
 
16
  static function this() {
@@ -110,6 +108,9 @@ class rsssl_progress {
110
  return count($premium_notices) ;
111
  }
112
 
 
 
 
113
  public function dismiss_from_admin_notice(){
114
  if ( !rsssl_user_can_manage() ) {
115
  return;
8
  wp_die( sprintf( '%s is a singleton class and you cannot create a second instance.', get_class( $this ) ) );
9
  self::$_this = $this;
10
 
11
+ add_action( 'admin_init', array( $this, 'dismiss_from_admin_notice') );
 
 
12
  }
13
 
14
  static function this() {
108
  return count($premium_notices) ;
109
  }
110
 
111
+ /**
112
+ * @return void
113
+ */
114
  public function dismiss_from_admin_notice(){
115
  if ( !rsssl_user_can_manage() ) {
116
  return;
readme.txt CHANGED
@@ -6,7 +6,7 @@ Requires at least: 5.7
6
  License: GPL2
7
  Tested up to: 6.1
8
  Requires PHP: 7.2
9
- Stable tag: 6.0.11
10
 
11
  The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.
12
 
@@ -96,6 +96,14 @@ The plugin checks your certificate before enabling, but if, for example, you mig
96
  If you can't deactivate, do not just remove the plugin folder to uninstall! Follow these [instructions](https://really-simple-ssl.com/knowledge-base/uninstall-websitebackend-not-accessible/) instead.
97
 
98
  == Changelog ==
 
 
 
 
 
 
 
 
99
  = 6.0.11 =
100
  * Fix: on some environments, the HTTP_X_WP_NONCE is not available in the code, changed logged in check to accomodate such environments
101
  * Fix: dismiss on admin notices not immediately dismissing, requiring dismiss through dashboard, props @dumel
6
  License: GPL2
7
  Tested up to: 6.1
8
  Requires PHP: 7.2
9
+ Stable tag: 6.0.12
10
 
11
  The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.
12
 
96
  If you can't deactivate, do not just remove the plugin folder to uninstall! Follow these [instructions](https://really-simple-ssl.com/knowledge-base/uninstall-websitebackend-not-accessible/) instead.
97
 
98
  == Changelog ==
99
+ = 6.0.12 =
100
+ * Fix: on multisite, the test for users with admin username did not use the correct prefix, $wpdb->base_prefix, props @jg-visual
101
+ * Improvement: allow submenu in back-end react application
102
+ * Improvement: Skip value update when no change has been made
103
+ * Improvement: no redirect on dismiss of admin notice, props @gangesh, @rtpHarry, @dumel
104
+ * Improvement: remove obsolete warning
105
+ * Improvement: qtranslate support on settings page
106
+
107
  = 6.0.11 =
108
  * Fix: on some environments, the HTTP_X_WP_NONCE is not available in the code, changed logged in check to accomodate such environments
109
  * Fix: dismiss on admin notices not immediately dismissing, requiring dismiss through dashboard, props @dumel
rlrsssl-really-simple-ssl.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Really Simple SSL
4
  * Plugin URI: https://really-simple-ssl.com
5
  * Description: Lightweight SSL & Hardening Plugin
6
- * Version: 6.0.11
7
  * Author: Really Simple Plugins
8
  * Author URI: https://really-simple-plugins.com
9
  * License: GPL2
@@ -110,7 +110,7 @@ class REALLY_SIMPLE_SSL
110
  if (!defined('rsssl_file') ){
111
  define('rsssl_file', __FILE__);
112
  }
113
- define('rsssl_version', '6.0.11');
114
  define('rsssl_le_cron_generation_renewal_check', 20);
115
  define('rsssl_le_manual_generation_renewal_check', 15);
116
  }
@@ -177,21 +177,21 @@ class REALLY_SIMPLE_SSL
177
  public static function admin_notices() {
178
  //prevent showing on edit screen, as gutenberg removes the class which makes it editable.
179
  $screen = get_current_screen();
180
- $license = get_site_option('rsssl_pro_license_key');
181
- if ( strpos( $license , 'really_simple_ssl_') !== FALSE ) {
182
- $key = get_site_option( 'rsssl_key' );
183
- $string = str_replace('really_simple_ssl_', '', $license);
184
- $ivlength = openssl_cipher_iv_length('aes-256-cbc');
185
- $iv = substr(base64_decode($string), 0, $ivlength);
186
- $encrypted_data = substr(base64_decode($string), $ivlength);
187
- $license = openssl_decrypt($encrypted_data, 'aes-256-cbc', $key, 0, $iv);
188
- }
189
- $item_id = is_multisite() ? 35206 : 860;
190
- $update_link = add_query_arg(['plugin'=>'rsssl_pro', 'license'=>$license, 'item_id'=>$item_id, 'install_pro'=>true], admin_url('plugins.php') );
191
  if ( $screen && $screen->base === 'post' ) return;
192
  if ( self::has_old_addon('really-simple-ssl-pro/really-simple-ssl-pro.php') ||
193
  self::has_old_addon('really-simple-ssl-pro-multisite/really-simple-ssl-pro-multisite.php' )
194
  ) {
 
 
 
 
 
 
 
 
 
 
 
195
  ?>
196
  <div id="message" class="error notice really-simple-plugins">
197
  <p><?php echo __("Update Really Simple SSL Pro: the plugin needs to be updated to the latest version to be compatible.","really-simple-ssl");?></p>
3
  * Plugin Name: Really Simple SSL
4
  * Plugin URI: https://really-simple-ssl.com
5
  * Description: Lightweight SSL & Hardening Plugin
6
+ * Version: 6.0.12
7
  * Author: Really Simple Plugins
8
  * Author URI: https://really-simple-plugins.com
9
  * License: GPL2
110
  if (!defined('rsssl_file') ){
111
  define('rsssl_file', __FILE__);
112
  }
113
+ define('rsssl_version', '6.0.12');
114
  define('rsssl_le_cron_generation_renewal_check', 20);
115
  define('rsssl_le_manual_generation_renewal_check', 15);
116
  }
177
  public static function admin_notices() {
178
  //prevent showing on edit screen, as gutenberg removes the class which makes it editable.
179
  $screen = get_current_screen();
 
 
 
 
 
 
 
 
 
 
 
180
  if ( $screen && $screen->base === 'post' ) return;
181
  if ( self::has_old_addon('really-simple-ssl-pro/really-simple-ssl-pro.php') ||
182
  self::has_old_addon('really-simple-ssl-pro-multisite/really-simple-ssl-pro-multisite.php' )
183
  ) {
184
+ $license = get_site_option('rsssl_pro_license_key');
185
+ if ( strpos( $license , 'really_simple_ssl_') !== FALSE ) {
186
+ $key = get_site_option( 'rsssl_key' );
187
+ $string = str_replace('really_simple_ssl_', '', $license);
188
+ $ivlength = openssl_cipher_iv_length('aes-256-cbc');
189
+ $iv = substr(base64_decode($string), 0, $ivlength);
190
+ $encrypted_data = substr(base64_decode($string), $ivlength);
191
+ $license = openssl_decrypt($encrypted_data, 'aes-256-cbc', $key, 0, $iv);
192
+ }
193
+ $item_id = is_multisite() ? 35206 : 860;
194
+ $update_link = add_query_arg(['plugin'=>'rsssl_pro', 'license'=>$license, 'item_id'=>$item_id, 'install_pro'=>true], admin_url('plugins.php') );
195
  ?>
196
  <div id="message" class="error notice really-simple-plugins">
197
  <p><?php echo __("Update Really Simple SSL Pro: the plugin needs to be updated to the latest version to be compatible.","really-simple-ssl");?></p>
security/functions.php CHANGED
@@ -68,7 +68,6 @@ if ( !function_exists('rsssl_maybe_clear_transients')) {
68
  delete_transient( 'rsssl_mixed_content_fixer_detected' );
69
  RSSSL()->admin->mixed_content_fixer_detected();
70
  }
71
-
72
  //no change
73
  if ( $field_value === $prev_value ) {
74
  return;
@@ -429,21 +428,6 @@ function rsssl_generate_random_string($length) {
429
  return $randomString;
430
  }
431
 
432
- /**
433
- * Wrapper for admin user renamed but user enumeration enabled check
434
- * @return bool
435
- */
436
- function check_admin_user_renamed_and_enumeration_disabled() {
437
- // Check if rename-admin-user has been loaded, while user-enumeration hasn't been loaded
438
- if ( function_exists( 'rsssl_username_admin_changed' ) && ! function_exists( 'rsssl_disable_user_enumeration' ) ) {
439
- if ( rsssl_username_admin_changed() !== false ) {
440
- return true;
441
- }
442
- }
443
-
444
- return false;
445
- }
446
-
447
  /**
448
  * @return string
449
  *
68
  delete_transient( 'rsssl_mixed_content_fixer_detected' );
69
  RSSSL()->admin->mixed_content_fixer_detected();
70
  }
 
71
  //no change
72
  if ( $field_value === $prev_value ) {
73
  return;
428
  return $randomString;
429
  }
430
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
431
  /**
432
  * @return string
433
  *
security/notices.php CHANGED
@@ -148,21 +148,6 @@ function rsssl_general_security_notices( $notices ) {
148
  ],
149
  );
150
 
151
- $notices['admin_user_renamed_user_enumeration_enabled'] = array(
152
- 'condition' => ['check_admin_user_renamed_and_enumeration_disabled'],
153
- 'callback' => '_true_',
154
- 'score' => 5,
155
- 'output' => array(
156
- 'true' => array(
157
- 'highlight_field_id' => 'disable_user_enumeration',
158
- 'msg' => __("To prevent attackers from identifying the renamed administrator, activate the 'Disable User Enumeration' setting.", "really-simple-ssl"),
159
- 'url' => 'https://really-simple-ssl.com/what-are-user-enumeration-attacks/',
160
- 'icon' => 'open',
161
- 'dismissible' => true,
162
- ),
163
- ),
164
- );
165
-
166
  $notices['username_admin_exists'] = array(
167
  'condition' => ['rsssl_has_admin_user'],
168
  'callback' => '_true_',
148
  ],
149
  );
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  $notices['username_admin_exists'] = array(
152
  'condition' => ['rsssl_has_admin_user'],
153
  'callback' => '_true_',
security/tests.php CHANGED
@@ -133,17 +133,22 @@ function rsssl_has_admin_user() {
133
  if ( !rsssl_user_can_manage() ) {
134
  return false;
135
  }
136
- $count = wp_cache_get('rsssl_admin_user_count', 'really-simple-ssl');
137
- if ( $count === false ){
138
- global $wpdb;
139
- $count = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}users WHERE user_login = 'admin'" );
140
- wp_cache_set('rsssl_admin_user_count', $count, 'really-simple-ssl', HOUR_IN_SECONDS);
141
- }
142
 
143
- if ( $count > 0 ) {
144
- return true;
 
 
 
 
 
 
 
 
 
 
145
  }
146
- return false;
 
147
  }
148
 
149
  /**
@@ -151,6 +156,7 @@ function rsssl_has_admin_user() {
151
  * @return bool
152
  */
153
  function rsssl_new_username_valid(): bool {
 
154
  $new_user_login = trim(sanitize_user(rsssl_get_option('new_admin_user_login')));
155
  if ( $new_user_login === 'admin' ) {
156
  return false;
@@ -186,13 +192,13 @@ function rsssl_wp_is_application_passwords_available(){
186
 
187
  function rsssl_get_users_where_display_name_is_login( $return_users=false ) {
188
  $found_users = [];
189
- $users = wp_cache_get('rsssl_admin_users', 'really-simple-ssl');
190
  if ( !$users ){
191
  $args = array(
192
  'role' => 'administrator',
193
  );
194
  $users = get_users( $args );
195
- wp_cache_set('rsssl_admin_users', $users, 'really-simple-ssl', HOUR_IN_SECONDS);
196
  }
197
 
198
  foreach ( $users as $user ) {
@@ -357,11 +363,7 @@ function rsssl_directory_indexing_allowed() {
357
  set_transient('rsssl_directory_indexing_status', $status, DAY_IN_SECONDS );
358
  }
359
 
360
- if ( $status==='forbidden' ) {
361
- return false;
362
- } else {
363
- return true;
364
- }
365
  }
366
 
367
 
@@ -392,9 +394,9 @@ function rsssl_user_registration_allowed()
392
  */
393
 
394
  function rsssl_src_contains_wp_version() {
395
- $wp_version = get_bloginfo( 'version' );
396
  $result = get_transient('rsssl_wp_version_detected' );
397
  if ( !$result ) {
 
398
  $result = 'found';
399
  $web_source = "";
400
  //check if the mixed content fixer is active
133
  if ( !rsssl_user_can_manage() ) {
134
  return false;
135
  }
 
 
 
 
 
 
136
 
137
+ //transient is more persistent then wp cache set
138
+ $count = get_transient('rsssl_admin_user_count');
139
+ //get from cache, but not on settings page
140
+ if ( $count === false || RSSSL()->admin->is_settings_page() ){
141
+ //use wp_cache_get to prevent duplicate queries in one pageload
142
+ $count = wp_cache_get('rsssl_admin_user_count', 'really-simple-ssl');
143
+ if ( $count === false ) {
144
+ global $wpdb;
145
+ $count = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->base_prefix}users WHERE user_login = 'admin'" );
146
+ wp_cache_set('rsssl_admin_user_count', $count, 'really-simple-ssl', HOUR_IN_SECONDS );
147
+ }
148
+ set_transient('rsssl_admin_user_count', $count, HOUR_IN_SECONDS);
149
  }
150
+
151
+ return $count > 0;
152
  }
153
 
154
  /**
156
  * @return bool
157
  */
158
  function rsssl_new_username_valid(): bool {
159
+
160
  $new_user_login = trim(sanitize_user(rsssl_get_option('new_admin_user_login')));
161
  if ( $new_user_login === 'admin' ) {
162
  return false;
192
 
193
  function rsssl_get_users_where_display_name_is_login( $return_users=false ) {
194
  $found_users = [];
195
+ $users = get_transient('rsssl_admin_users');
196
  if ( !$users ){
197
  $args = array(
198
  'role' => 'administrator',
199
  );
200
  $users = get_users( $args );
201
+ set_transient('rsssl_admin_users', $users, HOUR_IN_SECONDS);
202
  }
203
 
204
  foreach ( $users as $user ) {
363
  set_transient('rsssl_directory_indexing_status', $status, DAY_IN_SECONDS );
364
  }
365
 
366
+ return $status !== 'forbidden';
 
 
 
 
367
  }
368
 
369
 
394
  */
395
 
396
  function rsssl_src_contains_wp_version() {
 
397
  $result = get_transient('rsssl_wp_version_detected' );
398
  if ( !$result ) {
399
+ $wp_version = get_bloginfo( 'version' );
400
  $result = 'found';
401
  $web_source = "";
402
  //check if the mixed content fixer is active
security/wordpress/rename-admin-user.php CHANGED
@@ -55,7 +55,7 @@ function rsssl_rename_admin_user() {
55
  $admin_email = $admin_userdata->data->user_email;
56
  global $wpdb;
57
  //get current user hash
58
- $user_hash = $wpdb->get_var($wpdb->prepare("select user_pass from {$wpdb->prefix}users where ID = %s", $admin_user_id) );
59
  //create temp email address
60
  $domain = site_url();
61
  $parse = parse_url( $domain );
@@ -122,7 +122,7 @@ function rsssl_rename_admin_user() {
122
 
123
  //store original user hash in this user.
124
  $wpdb->update(
125
- $wpdb->prefix.'users',
126
  ['user_pass' => $user_hash ],
127
  ['ID' => $new_user_id]
128
  );
55
  $admin_email = $admin_userdata->data->user_email;
56
  global $wpdb;
57
  //get current user hash
58
+ $user_hash = $wpdb->get_var($wpdb->prepare("select user_pass from {$wpdb->base_prefix}users where ID = %s", $admin_user_id) );
59
  //create temp email address
60
  $domain = site_url();
61
  $parse = parse_url( $domain );
122
 
123
  //store original user hash in this user.
124
  $wpdb->update(
125
+ $wpdb->base_prefix.'users',
126
  ['user_pass' => $user_hash ],
127
  ['ID' => $new_user_id]
128
  );
settings/build/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => '976306eeb113bc36752e');
1
+ <?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => 'c29f6f34369ace1ff784');
settings/build/index.js CHANGED
@@ -1,9727 +1,7 @@
1
- /******/ (function() { // webpackBootstrap
2
- /******/ var __webpack_modules__ = ({
3
-
4
- /***/ "./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js":
5
- /*!*******************************************************************************!*\
6
- !*** ./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js ***!
7
- \*******************************************************************************/
8
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9
-
10
- "use strict";
11
- __webpack_require__.r(__webpack_exports__);
12
- /* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/memoize */ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js");
13
-
14
-
15
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
16
-
17
- var isPropValid = /* #__PURE__ */(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_0__["default"])(function (prop) {
18
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
19
- /* o */
20
- && prop.charCodeAt(1) === 110
21
- /* n */
22
- && prop.charCodeAt(2) < 91;
23
- }
24
- /* Z+1 */
25
- );
26
-
27
- /* harmony default export */ __webpack_exports__["default"] = (isPropValid);
28
-
29
-
30
- /***/ }),
31
-
32
- /***/ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js":
33
- /*!*******************************************************************!*\
34
- !*** ./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js ***!
35
- \*******************************************************************/
36
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
37
-
38
- "use strict";
39
- __webpack_require__.r(__webpack_exports__);
40
- function memoize(fn) {
41
- var cache = Object.create(null);
42
- return function (arg) {
43
- if (cache[arg] === undefined) cache[arg] = fn(arg);
44
- return cache[arg];
45
- };
46
- }
47
-
48
- /* harmony default export */ __webpack_exports__["default"] = (memoize);
49
-
50
-
51
- /***/ }),
52
-
53
- /***/ "./node_modules/@emotion/stylis/dist/stylis.browser.esm.js":
54
- /*!*****************************************************************!*\
55
- !*** ./node_modules/@emotion/stylis/dist/stylis.browser.esm.js ***!
56
- \*****************************************************************/
57
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
58
-
59
- "use strict";
60
- __webpack_require__.r(__webpack_exports__);
61
- function stylis_min (W) {
62
- function M(d, c, e, h, a) {
63
- for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
64
- g = e.charCodeAt(l);
65
- l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
66
-
67
- if (0 === b + n + v + m) {
68
- if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
69
- switch (g) {
70
- case 32:
71
- case 9:
72
- case 59:
73
- case 13:
74
- case 10:
75
- break;
76
-
77
- default:
78
- f += e.charAt(l);
79
- }
80
-
81
- g = 59;
82
- }
83
-
84
- switch (g) {
85
- case 123:
86
- f = f.trim();
87
- q = f.charCodeAt(0);
88
- k = 1;
89
-
90
- for (t = ++l; l < B;) {
91
- switch (g = e.charCodeAt(l)) {
92
- case 123:
93
- k++;
94
- break;
95
-
96
- case 125:
97
- k--;
98
- break;
99
-
100
- case 47:
101
- switch (g = e.charCodeAt(l + 1)) {
102
- case 42:
103
- case 47:
104
- a: {
105
- for (u = l + 1; u < J; ++u) {
106
- switch (e.charCodeAt(u)) {
107
- case 47:
108
- if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
109
- l = u + 1;
110
- break a;
111
- }
112
-
113
- break;
114
-
115
- case 10:
116
- if (47 === g) {
117
- l = u + 1;
118
- break a;
119
- }
120
-
121
- }
122
- }
123
-
124
- l = u;
125
- }
126
-
127
- }
128
-
129
- break;
130
-
131
- case 91:
132
- g++;
133
-
134
- case 40:
135
- g++;
136
-
137
- case 34:
138
- case 39:
139
- for (; l++ < J && e.charCodeAt(l) !== g;) {
140
- }
141
-
142
- }
143
-
144
- if (0 === k) break;
145
- l++;
146
- }
147
-
148
- k = e.substring(t, l);
149
- 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
150
-
151
- switch (q) {
152
- case 64:
153
- 0 < r && (f = f.replace(N, ''));
154
- g = f.charCodeAt(1);
155
-
156
- switch (g) {
157
- case 100:
158
- case 109:
159
- case 115:
160
- case 45:
161
- r = c;
162
- break;
163
-
164
- default:
165
- r = O;
166
- }
167
-
168
- k = M(c, r, k, g, a + 1);
169
- t = k.length;
170
- 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
171
- if (0 < t) switch (g) {
172
- case 115:
173
- f = f.replace(da, ea);
174
-
175
- case 100:
176
- case 109:
177
- case 45:
178
- k = f + '{' + k + '}';
179
- break;
180
-
181
- case 107:
182
- f = f.replace(fa, '$1 $2');
183
- k = f + '{' + k + '}';
184
- k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
185
- break;
186
-
187
- default:
188
- k = f + k, 112 === h && (k = (p += k, ''));
189
- } else k = '';
190
- break;
191
-
192
- default:
193
- k = M(c, X(c, f, I), k, h, a + 1);
194
- }
195
-
196
- F += k;
197
- k = I = r = u = q = 0;
198
- f = '';
199
- g = e.charCodeAt(++l);
200
- break;
201
-
202
- case 125:
203
- case 59:
204
- f = (0 < r ? f.replace(N, '') : f).trim();
205
- if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
206
- case 0:
207
- break;
208
-
209
- case 64:
210
- if (105 === g || 99 === g) {
211
- G += f + e.charAt(l);
212
- break;
213
- }
214
-
215
- default:
216
- 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
217
- }
218
- I = r = u = q = 0;
219
- f = '';
220
- g = e.charCodeAt(++l);
221
- }
222
- }
223
-
224
- switch (g) {
225
- case 13:
226
- case 10:
227
- 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
228
- 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
229
- z = 1;
230
- D++;
231
- break;
232
-
233
- case 59:
234
- case 125:
235
- if (0 === b + n + v + m) {
236
- z++;
237
- break;
238
- }
239
-
240
- default:
241
- z++;
242
- y = e.charAt(l);
243
-
244
- switch (g) {
245
- case 9:
246
- case 32:
247
- if (0 === n + m + b) switch (x) {
248
- case 44:
249
- case 58:
250
- case 9:
251
- case 32:
252
- y = '';
253
- break;
254
-
255
- default:
256
- 32 !== g && (y = ' ');
257
- }
258
- break;
259
-
260
- case 0:
261
- y = '\\0';
262
- break;
263
-
264
- case 12:
265
- y = '\\f';
266
- break;
267
-
268
- case 11:
269
- y = '\\v';
270
- break;
271
-
272
- case 38:
273
- 0 === n + b + m && (r = I = 1, y = '\f' + y);
274
- break;
275
-
276
- case 108:
277
- if (0 === n + b + m + E && 0 < u) switch (l - u) {
278
- case 2:
279
- 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
280
-
281
- case 8:
282
- 111 === K && (E = K);
283
- }
284
- break;
285
-
286
- case 58:
287
- 0 === n + b + m && (u = l);
288
- break;
289
-
290
- case 44:
291
- 0 === b + v + n + m && (r = 1, y += '\r');
292
- break;
293
-
294
- case 34:
295
- case 39:
296
- 0 === b && (n = n === g ? 0 : 0 === n ? g : n);
297
- break;
298
-
299
- case 91:
300
- 0 === n + b + v && m++;
301
- break;
302
-
303
- case 93:
304
- 0 === n + b + v && m--;
305
- break;
306
-
307
- case 41:
308
- 0 === n + b + m && v--;
309
- break;
310
-
311
- case 40:
312
- if (0 === n + b + m) {
313
- if (0 === q) switch (2 * x + 3 * K) {
314
- case 533:
315
- break;
316
-
317
- default:
318
- q = 1;
319
- }
320
- v++;
321
- }
322
-
323
- break;
324
-
325
- case 64:
326
- 0 === b + v + n + m + u + k && (k = 1);
327
- break;
328
-
329
- case 42:
330
- case 47:
331
- if (!(0 < n + m + v)) switch (b) {
332
- case 0:
333
- switch (2 * g + 3 * e.charCodeAt(l + 1)) {
334
- case 235:
335
- b = 47;
336
- break;
337
-
338
- case 220:
339
- t = l, b = 42;
340
- }
341
-
342
- break;
343
-
344
- case 42:
345
- 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
346
- }
347
- }
348
-
349
- 0 === b && (f += y);
350
- }
351
-
352
- K = x;
353
- x = g;
354
- l++;
355
- }
356
-
357
- t = p.length;
358
-
359
- if (0 < t) {
360
- r = c;
361
- if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
362
- p = r.join(',') + '{' + p + '}';
363
-
364
- if (0 !== w * E) {
365
- 2 !== w || L(p, 2) || (E = 0);
366
-
367
- switch (E) {
368
- case 111:
369
- p = p.replace(ha, ':-moz-$1') + p;
370
- break;
371
-
372
- case 112:
373
- p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
374
- }
375
-
376
- E = 0;
377
- }
378
- }
379
-
380
- return G + p + F;
381
- }
382
-
383
- function X(d, c, e) {
384
- var h = c.trim().split(ia);
385
- c = h;
386
- var a = h.length,
387
- m = d.length;
388
-
389
- switch (m) {
390
- case 0:
391
- case 1:
392
- var b = 0;
393
-
394
- for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
395
- c[b] = Z(d, c[b], e).trim();
396
- }
397
-
398
- break;
399
-
400
- default:
401
- var v = b = 0;
402
-
403
- for (c = []; b < a; ++b) {
404
- for (var n = 0; n < m; ++n) {
405
- c[v++] = Z(d[n] + ' ', h[b], e).trim();
406
- }
407
- }
408
-
409
- }
410
-
411
- return c;
412
- }
413
-
414
- function Z(d, c, e) {
415
- var h = c.charCodeAt(0);
416
- 33 > h && (h = (c = c.trim()).charCodeAt(0));
417
-
418
- switch (h) {
419
- case 38:
420
- return c.replace(F, '$1' + d.trim());
421
-
422
- case 58:
423
- return d.trim() + c.replace(F, '$1' + d.trim());
424
-
425
- default:
426
- if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
427
- }
428
-
429
- return d + c;
430
- }
431
-
432
- function P(d, c, e, h) {
433
- var a = d + ';',
434
- m = 2 * c + 3 * e + 4 * h;
435
-
436
- if (944 === m) {
437
- d = a.indexOf(':', 9) + 1;
438
- var b = a.substring(d, a.length - 1).trim();
439
- b = a.substring(0, d).trim() + b + ';';
440
- return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
441
- }
442
-
443
- if (0 === w || 2 === w && !L(a, 1)) return a;
444
-
445
- switch (m) {
446
- case 1015:
447
- return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
448
-
449
- case 951:
450
- return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
451
-
452
- case 963:
453
- return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
454
-
455
- case 1009:
456
- if (100 !== a.charCodeAt(4)) break;
457
-
458
- case 969:
459
- case 942:
460
- return '-webkit-' + a + a;
461
-
462
- case 978:
463
- return '-webkit-' + a + '-moz-' + a + a;
464
-
465
- case 1019:
466
- case 983:
467
- return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
468
-
469
- case 883:
470
- if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
471
- if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
472
- break;
473
-
474
- case 932:
475
- if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
476
- case 103:
477
- return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
478
-
479
- case 115:
480
- return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
481
-
482
- case 98:
483
- return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
484
- }
485
- return '-webkit-' + a + '-ms-' + a + a;
486
-
487
- case 964:
488
- return '-webkit-' + a + '-ms-flex-' + a + a;
489
-
490
- case 1023:
491
- if (99 !== a.charCodeAt(8)) break;
492
- b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
493
- return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
494
-
495
- case 1005:
496
- return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
497
-
498
- case 1e3:
499
- b = a.substring(13).trim();
500
- c = b.indexOf('-') + 1;
501
-
502
- switch (b.charCodeAt(0) + b.charCodeAt(c)) {
503
- case 226:
504
- b = a.replace(G, 'tb');
505
- break;
506
-
507
- case 232:
508
- b = a.replace(G, 'tb-rl');
509
- break;
510
-
511
- case 220:
512
- b = a.replace(G, 'lr');
513
- break;
514
-
515
- default:
516
- return a;
517
- }
518
-
519
- return '-webkit-' + a + '-ms-' + b + a;
520
-
521
- case 1017:
522
- if (-1 === a.indexOf('sticky', 9)) break;
523
-
524
- case 975:
525
- c = (a = d).length - 10;
526
- b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
527
-
528
- switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
529
- case 203:
530
- if (111 > b.charCodeAt(8)) break;
531
-
532
- case 115:
533
- a = a.replace(b, '-webkit-' + b) + ';' + a;
534
- break;
535
-
536
- case 207:
537
- case 102:
538
- a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
539
- }
540
-
541
- return a + ';';
542
-
543
- case 938:
544
- if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
545
- case 105:
546
- return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
547
-
548
- case 115:
549
- return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
550
-
551
- default:
552
- return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
553
- }
554
- break;
555
-
556
- case 973:
557
- case 989:
558
- if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
559
-
560
- case 931:
561
- case 953:
562
- if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
563
- break;
564
-
565
- case 962:
566
- if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
567
- }
568
-
569
- return a;
570
- }
571
-
572
- function L(d, c) {
573
- var e = d.indexOf(1 === c ? ':' : '{'),
574
- h = d.substring(0, 3 !== c ? e : 10);
575
- e = d.substring(e + 1, d.length - 1);
576
- return R(2 !== c ? h : h.replace(na, '$1'), e, c);
577
- }
578
-
579
- function ea(d, c) {
580
- var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
581
- return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
582
- }
583
-
584
- function H(d, c, e, h, a, m, b, v, n, q) {
585
- for (var g = 0, x = c, w; g < A; ++g) {
586
- switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
587
- case void 0:
588
- case !1:
589
- case !0:
590
- case null:
591
- break;
592
-
593
- default:
594
- x = w;
595
- }
596
- }
597
-
598
- if (x !== c) return x;
599
- }
600
-
601
- function T(d) {
602
- switch (d) {
603
- case void 0:
604
- case null:
605
- A = S.length = 0;
606
- break;
607
-
608
- default:
609
- if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
610
- T(d[c]);
611
- } else Y = !!d | 0;
612
- }
613
-
614
- return T;
615
- }
616
-
617
- function U(d) {
618
- d = d.prefix;
619
- void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
620
- return U;
621
- }
622
-
623
- function B(d, c) {
624
- var e = d;
625
- 33 > e.charCodeAt(0) && (e = e.trim());
626
- V = e;
627
- e = [V];
628
-
629
- if (0 < A) {
630
- var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
631
- void 0 !== h && 'string' === typeof h && (c = h);
632
- }
633
-
634
- var a = M(O, e, c, 0, 0);
635
- 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
636
- V = '';
637
- E = 0;
638
- z = D = 1;
639
- return a;
640
- }
641
-
642
- var ca = /^\0+/g,
643
- N = /[\0\r\f]/g,
644
- aa = /: */g,
645
- ka = /zoo|gra/,
646
- ma = /([,: ])(transform)/g,
647
- ia = /,\r+?/g,
648
- F = /([\t\r\n ])*\f?&/g,
649
- fa = /@(k\w+)\s*(\S*)\s*/,
650
- Q = /::(place)/g,
651
- ha = /:(read-only)/g,
652
- G = /[svh]\w+-[tblr]{2}/,
653
- da = /\(\s*(.*)\s*\)/g,
654
- oa = /([\s\S]*?);/g,
655
- ba = /-self|flex-/g,
656
- na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
657
- la = /stretch|:\s*\w+\-(?:conte|avail)/,
658
- ja = /([^-])(image-set\()/,
659
- z = 1,
660
- D = 1,
661
- E = 0,
662
- w = 1,
663
- O = [],
664
- S = [],
665
- A = 0,
666
- R = null,
667
- Y = 0,
668
- V = '';
669
- B.use = T;
670
- B.set = U;
671
- void 0 !== W && U(W);
672
- return B;
673
- }
674
-
675
- /* harmony default export */ __webpack_exports__["default"] = (stylis_min);
676
-
677
-
678
- /***/ }),
679
-
680
- /***/ "./node_modules/axios/index.js":
681
- /*!*************************************!*\
682
- !*** ./node_modules/axios/index.js ***!
683
- \*************************************/
684
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
685
-
686
- module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js");
687
-
688
- /***/ }),
689
-
690
- /***/ "./node_modules/axios/lib/adapters/xhr.js":
691
- /*!************************************************!*\
692
- !*** ./node_modules/axios/lib/adapters/xhr.js ***!
693
- \************************************************/
694
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
695
-
696
- "use strict";
697
-
698
-
699
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
700
- var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
701
- var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
702
- var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
703
- var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js");
704
- var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
705
- var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
706
- var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
707
- var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
708
- var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
709
-
710
- module.exports = function xhrAdapter(config) {
711
- return new Promise(function dispatchXhrRequest(resolve, reject) {
712
- var requestData = config.data;
713
- var requestHeaders = config.headers;
714
- var responseType = config.responseType;
715
- var onCanceled;
716
- function done() {
717
- if (config.cancelToken) {
718
- config.cancelToken.unsubscribe(onCanceled);
719
- }
720
-
721
- if (config.signal) {
722
- config.signal.removeEventListener('abort', onCanceled);
723
- }
724
- }
725
-
726
- if (utils.isFormData(requestData)) {
727
- delete requestHeaders['Content-Type']; // Let the browser set it
728
- }
729
-
730
- var request = new XMLHttpRequest();
731
-
732
- // HTTP basic authentication
733
- if (config.auth) {
734
- var username = config.auth.username || '';
735
- var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
736
- requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
737
- }
738
-
739
- var fullPath = buildFullPath(config.baseURL, config.url);
740
- request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
741
-
742
- // Set the request timeout in MS
743
- request.timeout = config.timeout;
744
-
745
- function onloadend() {
746
- if (!request) {
747
- return;
748
- }
749
- // Prepare the response
750
- var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
751
- var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
752
- request.responseText : request.response;
753
- var response = {
754
- data: responseData,
755
- status: request.status,
756
- statusText: request.statusText,
757
- headers: responseHeaders,
758
- config: config,
759
- request: request
760
- };
761
-
762
- settle(function _resolve(value) {
763
- resolve(value);
764
- done();
765
- }, function _reject(err) {
766
- reject(err);
767
- done();
768
- }, response);
769
-
770
- // Clean up request
771
- request = null;
772
- }
773
-
774
- if ('onloadend' in request) {
775
- // Use onloadend if available
776
- request.onloadend = onloadend;
777
- } else {
778
- // Listen for ready state to emulate onloadend
779
- request.onreadystatechange = function handleLoad() {
780
- if (!request || request.readyState !== 4) {
781
- return;
782
- }
783
-
784
- // The request errored out and we didn't get a response, this will be
785
- // handled by onerror instead
786
- // With one exception: request that using file: protocol, most browsers
787
- // will return status as 0 even though it's a successful request
788
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
789
- return;
790
- }
791
- // readystate handler is calling before onerror or ontimeout handlers,
792
- // so we should call onloadend on the next 'tick'
793
- setTimeout(onloadend);
794
- };
795
- }
796
-
797
- // Handle browser request cancellation (as opposed to a manual cancellation)
798
- request.onabort = function handleAbort() {
799
- if (!request) {
800
- return;
801
- }
802
-
803
- reject(createError('Request aborted', config, 'ECONNABORTED', request));
804
-
805
- // Clean up request
806
- request = null;
807
- };
808
-
809
- // Handle low level network errors
810
- request.onerror = function handleError() {
811
- // Real errors are hidden from us by the browser
812
- // onerror should only fire if it's a network error
813
- reject(createError('Network Error', config, null, request));
814
-
815
- // Clean up request
816
- request = null;
817
- };
818
-
819
- // Handle timeout
820
- request.ontimeout = function handleTimeout() {
821
- var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
822
- var transitional = config.transitional || defaults.transitional;
823
- if (config.timeoutErrorMessage) {
824
- timeoutErrorMessage = config.timeoutErrorMessage;
825
- }
826
- reject(createError(
827
- timeoutErrorMessage,
828
- config,
829
- transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
830
- request));
831
-
832
- // Clean up request
833
- request = null;
834
- };
835
-
836
- // Add xsrf header
837
- // This is only done if running in a standard browser environment.
838
- // Specifically not if we're in a web worker, or react-native.
839
- if (utils.isStandardBrowserEnv()) {
840
- // Add xsrf header
841
- var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
842
- cookies.read(config.xsrfCookieName) :
843
- undefined;
844
-
845
- if (xsrfValue) {
846
- requestHeaders[config.xsrfHeaderName] = xsrfValue;
847
- }
848
- }
849
-
850
- // Add headers to the request
851
- if ('setRequestHeader' in request) {
852
- utils.forEach(requestHeaders, function setRequestHeader(val, key) {
853
- if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
854
- // Remove Content-Type if data is undefined
855
- delete requestHeaders[key];
856
- } else {
857
- // Otherwise add header to the request
858
- request.setRequestHeader(key, val);
859
- }
860
- });
861
- }
862
-
863
- // Add withCredentials to request if needed
864
- if (!utils.isUndefined(config.withCredentials)) {
865
- request.withCredentials = !!config.withCredentials;
866
- }
867
-
868
- // Add responseType to request if needed
869
- if (responseType && responseType !== 'json') {
870
- request.responseType = config.responseType;
871
- }
872
-
873
- // Handle progress if needed
874
- if (typeof config.onDownloadProgress === 'function') {
875
- request.addEventListener('progress', config.onDownloadProgress);
876
- }
877
-
878
- // Not all browsers support upload events
879
- if (typeof config.onUploadProgress === 'function' && request.upload) {
880
- request.upload.addEventListener('progress', config.onUploadProgress);
881
- }
882
-
883
- if (config.cancelToken || config.signal) {
884
- // Handle cancellation
885
- // eslint-disable-next-line func-names
886
- onCanceled = function(cancel) {
887
- if (!request) {
888
- return;
889
- }
890
- reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel);
891
- request.abort();
892
- request = null;
893
- };
894
-
895
- config.cancelToken && config.cancelToken.subscribe(onCanceled);
896
- if (config.signal) {
897
- config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
898
- }
899
- }
900
-
901
- if (!requestData) {
902
- requestData = null;
903
- }
904
-
905
- // Send the request
906
- request.send(requestData);
907
- });
908
- };
909
-
910
-
911
- /***/ }),
912
-
913
- /***/ "./node_modules/axios/lib/axios.js":
914
- /*!*****************************************!*\
915
- !*** ./node_modules/axios/lib/axios.js ***!
916
- \*****************************************/
917
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
918
-
919
- "use strict";
920
-
921
-
922
- var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
923
- var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
924
- var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
925
- var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
926
- var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
927
-
928
- /**
929
- * Create an instance of Axios
930
- *
931
- * @param {Object} defaultConfig The default config for the instance
932
- * @return {Axios} A new instance of Axios
933
- */
934
- function createInstance(defaultConfig) {
935
- var context = new Axios(defaultConfig);
936
- var instance = bind(Axios.prototype.request, context);
937
-
938
- // Copy axios.prototype to instance
939
- utils.extend(instance, Axios.prototype, context);
940
-
941
- // Copy context to instance
942
- utils.extend(instance, context);
943
-
944
- // Factory for creating new instances
945
- instance.create = function create(instanceConfig) {
946
- return createInstance(mergeConfig(defaultConfig, instanceConfig));
947
- };
948
-
949
- return instance;
950
- }
951
-
952
- // Create the default instance to be exported
953
- var axios = createInstance(defaults);
954
-
955
- // Expose Axios class to allow class inheritance
956
- axios.Axios = Axios;
957
-
958
- // Expose Cancel & CancelToken
959
- axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
960
- axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js");
961
- axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
962
- axios.VERSION = (__webpack_require__(/*! ./env/data */ "./node_modules/axios/lib/env/data.js").version);
963
-
964
- // Expose all/spread
965
- axios.all = function all(promises) {
966
- return Promise.all(promises);
967
- };
968
- axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
969
-
970
- // Expose isAxiosError
971
- axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/axios/lib/helpers/isAxiosError.js");
972
-
973
- module.exports = axios;
974
-
975
- // Allow use of default import syntax in TypeScript
976
- module.exports["default"] = axios;
977
-
978
-
979
- /***/ }),
980
-
981
- /***/ "./node_modules/axios/lib/cancel/Cancel.js":
982
- /*!*************************************************!*\
983
- !*** ./node_modules/axios/lib/cancel/Cancel.js ***!
984
- \*************************************************/
985
- /***/ (function(module) {
986
-
987
- "use strict";
988
-
989
-
990
- /**
991
- * A `Cancel` is an object that is thrown when an operation is canceled.
992
- *
993
- * @class
994
- * @param {string=} message The message.
995
- */
996
- function Cancel(message) {
997
- this.message = message;
998
- }
999
-
1000
- Cancel.prototype.toString = function toString() {
1001
- return 'Cancel' + (this.message ? ': ' + this.message : '');
1002
- };
1003
-
1004
- Cancel.prototype.__CANCEL__ = true;
1005
-
1006
- module.exports = Cancel;
1007
-
1008
-
1009
- /***/ }),
1010
-
1011
- /***/ "./node_modules/axios/lib/cancel/CancelToken.js":
1012
- /*!******************************************************!*\
1013
- !*** ./node_modules/axios/lib/cancel/CancelToken.js ***!
1014
- \******************************************************/
1015
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1016
-
1017
- "use strict";
1018
-
1019
-
1020
- var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
1021
-
1022
- /**
1023
- * A `CancelToken` is an object that can be used to request cancellation of an operation.
1024
- *
1025
- * @class
1026
- * @param {Function} executor The executor function.
1027
- */
1028
- function CancelToken(executor) {
1029
- if (typeof executor !== 'function') {
1030
- throw new TypeError('executor must be a function.');
1031
- }
1032
-
1033
- var resolvePromise;
1034
-
1035
- this.promise = new Promise(function promiseExecutor(resolve) {
1036
- resolvePromise = resolve;
1037
- });
1038
-
1039
- var token = this;
1040
-
1041
- // eslint-disable-next-line func-names
1042
- this.promise.then(function(cancel) {
1043
- if (!token._listeners) return;
1044
-
1045
- var i;
1046
- var l = token._listeners.length;
1047
-
1048
- for (i = 0; i < l; i++) {
1049
- token._listeners[i](cancel);
1050
- }
1051
- token._listeners = null;
1052
- });
1053
-
1054
- // eslint-disable-next-line func-names
1055
- this.promise.then = function(onfulfilled) {
1056
- var _resolve;
1057
- // eslint-disable-next-line func-names
1058
- var promise = new Promise(function(resolve) {
1059
- token.subscribe(resolve);
1060
- _resolve = resolve;
1061
- }).then(onfulfilled);
1062
-
1063
- promise.cancel = function reject() {
1064
- token.unsubscribe(_resolve);
1065
- };
1066
-
1067
- return promise;
1068
- };
1069
-
1070
- executor(function cancel(message) {
1071
- if (token.reason) {
1072
- // Cancellation has already been requested
1073
- return;
1074
- }
1075
-
1076
- token.reason = new Cancel(message);
1077
- resolvePromise(token.reason);
1078
- });
1079
- }
1080
-
1081
- /**
1082
- * Throws a `Cancel` if cancellation has been requested.
1083
- */
1084
- CancelToken.prototype.throwIfRequested = function throwIfRequested() {
1085
- if (this.reason) {
1086
- throw this.reason;
1087
- }
1088
- };
1089
-
1090
- /**
1091
- * Subscribe to the cancel signal
1092
- */
1093
-
1094
- CancelToken.prototype.subscribe = function subscribe(listener) {
1095
- if (this.reason) {
1096
- listener(this.reason);
1097
- return;
1098
- }
1099
-
1100
- if (this._listeners) {
1101
- this._listeners.push(listener);
1102
- } else {
1103
- this._listeners = [listener];
1104
- }
1105
- };
1106
-
1107
- /**
1108
- * Unsubscribe from the cancel signal
1109
- */
1110
-
1111
- CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
1112
- if (!this._listeners) {
1113
- return;
1114
- }
1115
- var index = this._listeners.indexOf(listener);
1116
- if (index !== -1) {
1117
- this._listeners.splice(index, 1);
1118
- }
1119
- };
1120
-
1121
- /**
1122
- * Returns an object that contains a new `CancelToken` and a function that, when called,
1123
- * cancels the `CancelToken`.
1124
- */
1125
- CancelToken.source = function source() {
1126
- var cancel;
1127
- var token = new CancelToken(function executor(c) {
1128
- cancel = c;
1129
- });
1130
- return {
1131
- token: token,
1132
- cancel: cancel
1133
- };
1134
- };
1135
-
1136
- module.exports = CancelToken;
1137
-
1138
-
1139
- /***/ }),
1140
-
1141
- /***/ "./node_modules/axios/lib/cancel/isCancel.js":
1142
- /*!***************************************************!*\
1143
- !*** ./node_modules/axios/lib/cancel/isCancel.js ***!
1144
- \***************************************************/
1145
- /***/ (function(module) {
1146
-
1147
- "use strict";
1148
-
1149
-
1150
- module.exports = function isCancel(value) {
1151
- return !!(value && value.__CANCEL__);
1152
- };
1153
-
1154
-
1155
- /***/ }),
1156
-
1157
- /***/ "./node_modules/axios/lib/core/Axios.js":
1158
- /*!**********************************************!*\
1159
- !*** ./node_modules/axios/lib/core/Axios.js ***!
1160
- \**********************************************/
1161
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1162
-
1163
- "use strict";
1164
-
1165
-
1166
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
1167
- var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
1168
- var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
1169
- var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
1170
- var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
1171
- var validator = __webpack_require__(/*! ../helpers/validator */ "./node_modules/axios/lib/helpers/validator.js");
1172
-
1173
- var validators = validator.validators;
1174
- /**
1175
- * Create a new instance of Axios
1176
- *
1177
- * @param {Object} instanceConfig The default config for the instance
1178
- */
1179
- function Axios(instanceConfig) {
1180
- this.defaults = instanceConfig;
1181
- this.interceptors = {
1182
- request: new InterceptorManager(),
1183
- response: new InterceptorManager()
1184
- };
1185
- }
1186
-
1187
- /**
1188
- * Dispatch a request
1189
- *
1190
- * @param {Object} config The config specific for this request (merged with this.defaults)
1191
- */
1192
- Axios.prototype.request = function request(configOrUrl, config) {
1193
- /*eslint no-param-reassign:0*/
1194
- // Allow for axios('example/url'[, config]) a la fetch API
1195
- if (typeof configOrUrl === 'string') {
1196
- config = config || {};
1197
- config.url = configOrUrl;
1198
- } else {
1199
- config = configOrUrl || {};
1200
- }
1201
-
1202
- if (!config.url) {
1203
- throw new Error('Provided config url is not valid');
1204
- }
1205
-
1206
- config = mergeConfig(this.defaults, config);
1207
-
1208
- // Set config.method
1209
- if (config.method) {
1210
- config.method = config.method.toLowerCase();
1211
- } else if (this.defaults.method) {
1212
- config.method = this.defaults.method.toLowerCase();
1213
- } else {
1214
- config.method = 'get';
1215
- }
1216
-
1217
- var transitional = config.transitional;
1218
-
1219
- if (transitional !== undefined) {
1220
- validator.assertOptions(transitional, {
1221
- silentJSONParsing: validators.transitional(validators.boolean),
1222
- forcedJSONParsing: validators.transitional(validators.boolean),
1223
- clarifyTimeoutError: validators.transitional(validators.boolean)
1224
- }, false);
1225
- }
1226
-
1227
- // filter out skipped interceptors
1228
- var requestInterceptorChain = [];
1229
- var synchronousRequestInterceptors = true;
1230
- this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
1231
- if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
1232
- return;
1233
- }
1234
-
1235
- synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
1236
-
1237
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
1238
- });
1239
-
1240
- var responseInterceptorChain = [];
1241
- this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
1242
- responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
1243
- });
1244
-
1245
- var promise;
1246
-
1247
- if (!synchronousRequestInterceptors) {
1248
- var chain = [dispatchRequest, undefined];
1249
-
1250
- Array.prototype.unshift.apply(chain, requestInterceptorChain);
1251
- chain = chain.concat(responseInterceptorChain);
1252
-
1253
- promise = Promise.resolve(config);
1254
- while (chain.length) {
1255
- promise = promise.then(chain.shift(), chain.shift());
1256
- }
1257
-
1258
- return promise;
1259
- }
1260
-
1261
-
1262
- var newConfig = config;
1263
- while (requestInterceptorChain.length) {
1264
- var onFulfilled = requestInterceptorChain.shift();
1265
- var onRejected = requestInterceptorChain.shift();
1266
- try {
1267
- newConfig = onFulfilled(newConfig);
1268
- } catch (error) {
1269
- onRejected(error);
1270
- break;
1271
- }
1272
- }
1273
-
1274
- try {
1275
- promise = dispatchRequest(newConfig);
1276
- } catch (error) {
1277
- return Promise.reject(error);
1278
- }
1279
-
1280
- while (responseInterceptorChain.length) {
1281
- promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
1282
- }
1283
-
1284
- return promise;
1285
- };
1286
-
1287
- Axios.prototype.getUri = function getUri(config) {
1288
- if (!config.url) {
1289
- throw new Error('Provided config url is not valid');
1290
- }
1291
- config = mergeConfig(this.defaults, config);
1292
- return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
1293
- };
1294
-
1295
- // Provide aliases for supported request methods
1296
- utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
1297
- /*eslint func-names:0*/
1298
- Axios.prototype[method] = function(url, config) {
1299
- return this.request(mergeConfig(config || {}, {
1300
- method: method,
1301
- url: url,
1302
- data: (config || {}).data
1303
- }));
1304
- };
1305
- });
1306
-
1307
- utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1308
- /*eslint func-names:0*/
1309
- Axios.prototype[method] = function(url, data, config) {
1310
- return this.request(mergeConfig(config || {}, {
1311
- method: method,
1312
- url: url,
1313
- data: data
1314
- }));
1315
- };
1316
- });
1317
-
1318
- module.exports = Axios;
1319
-
1320
-
1321
- /***/ }),
1322
-
1323
- /***/ "./node_modules/axios/lib/core/InterceptorManager.js":
1324
- /*!***********************************************************!*\
1325
- !*** ./node_modules/axios/lib/core/InterceptorManager.js ***!
1326
- \***********************************************************/
1327
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1328
-
1329
- "use strict";
1330
-
1331
-
1332
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
1333
-
1334
- function InterceptorManager() {
1335
- this.handlers = [];
1336
- }
1337
-
1338
- /**
1339
- * Add a new interceptor to the stack
1340
- *
1341
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
1342
- * @param {Function} rejected The function to handle `reject` for a `Promise`
1343
- *
1344
- * @return {Number} An ID used to remove interceptor later
1345
- */
1346
- InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
1347
- this.handlers.push({
1348
- fulfilled: fulfilled,
1349
- rejected: rejected,
1350
- synchronous: options ? options.synchronous : false,
1351
- runWhen: options ? options.runWhen : null
1352
- });
1353
- return this.handlers.length - 1;
1354
- };
1355
-
1356
- /**
1357
- * Remove an interceptor from the stack
1358
- *
1359
- * @param {Number} id The ID that was returned by `use`
1360
- */
1361
- InterceptorManager.prototype.eject = function eject(id) {
1362
- if (this.handlers[id]) {
1363
- this.handlers[id] = null;
1364
- }
1365
- };
1366
-
1367
- /**
1368
- * Iterate over all the registered interceptors
1369
- *
1370
- * This method is particularly useful for skipping over any
1371
- * interceptors that may have become `null` calling `eject`.
1372
- *
1373
- * @param {Function} fn The function to call for each interceptor
1374
- */
1375
- InterceptorManager.prototype.forEach = function forEach(fn) {
1376
- utils.forEach(this.handlers, function forEachHandler(h) {
1377
- if (h !== null) {
1378
- fn(h);
1379
- }
1380
- });
1381
- };
1382
-
1383
- module.exports = InterceptorManager;
1384
-
1385
-
1386
- /***/ }),
1387
-
1388
- /***/ "./node_modules/axios/lib/core/buildFullPath.js":
1389
- /*!******************************************************!*\
1390
- !*** ./node_modules/axios/lib/core/buildFullPath.js ***!
1391
- \******************************************************/
1392
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1393
-
1394
- "use strict";
1395
-
1396
-
1397
- var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
1398
- var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
1399
-
1400
- /**
1401
- * Creates a new URL by combining the baseURL with the requestedURL,
1402
- * only when the requestedURL is not already an absolute URL.
1403
- * If the requestURL is absolute, this function returns the requestedURL untouched.
1404
- *
1405
- * @param {string} baseURL The base URL
1406
- * @param {string} requestedURL Absolute or relative URL to combine
1407
- * @returns {string} The combined full path
1408
- */
1409
- module.exports = function buildFullPath(baseURL, requestedURL) {
1410
- if (baseURL && !isAbsoluteURL(requestedURL)) {
1411
- return combineURLs(baseURL, requestedURL);
1412
- }
1413
- return requestedURL;
1414
- };
1415
-
1416
-
1417
- /***/ }),
1418
-
1419
- /***/ "./node_modules/axios/lib/core/createError.js":
1420
- /*!****************************************************!*\
1421
- !*** ./node_modules/axios/lib/core/createError.js ***!
1422
- \****************************************************/
1423
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1424
-
1425
- "use strict";
1426
-
1427
-
1428
- var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js");
1429
-
1430
- /**
1431
- * Create an Error with the specified message, config, error code, request and response.
1432
- *
1433
- * @param {string} message The error message.
1434
- * @param {Object} config The config.
1435
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
1436
- * @param {Object} [request] The request.
1437
- * @param {Object} [response] The response.
1438
- * @returns {Error} The created error.
1439
- */
1440
- module.exports = function createError(message, config, code, request, response) {
1441
- var error = new Error(message);
1442
- return enhanceError(error, config, code, request, response);
1443
- };
1444
-
1445
-
1446
- /***/ }),
1447
-
1448
- /***/ "./node_modules/axios/lib/core/dispatchRequest.js":
1449
- /*!********************************************************!*\
1450
- !*** ./node_modules/axios/lib/core/dispatchRequest.js ***!
1451
- \********************************************************/
1452
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1453
-
1454
- "use strict";
1455
-
1456
-
1457
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
1458
- var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
1459
- var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
1460
- var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
1461
- var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
1462
-
1463
- /**
1464
- * Throws a `Cancel` if cancellation has been requested.
1465
- */
1466
- function throwIfCancellationRequested(config) {
1467
- if (config.cancelToken) {
1468
- config.cancelToken.throwIfRequested();
1469
- }
1470
-
1471
- if (config.signal && config.signal.aborted) {
1472
- throw new Cancel('canceled');
1473
- }
1474
- }
1475
-
1476
- /**
1477
- * Dispatch a request to the server using the configured adapter.
1478
- *
1479
- * @param {object} config The config that is to be used for the request
1480
- * @returns {Promise} The Promise to be fulfilled
1481
- */
1482
- module.exports = function dispatchRequest(config) {
1483
- throwIfCancellationRequested(config);
1484
-
1485
- // Ensure headers exist
1486
- config.headers = config.headers || {};
1487
-
1488
- // Transform request data
1489
- config.data = transformData.call(
1490
- config,
1491
- config.data,
1492
- config.headers,
1493
- config.transformRequest
1494
- );
1495
-
1496
- // Flatten headers
1497
- config.headers = utils.merge(
1498
- config.headers.common || {},
1499
- config.headers[config.method] || {},
1500
- config.headers
1501
- );
1502
-
1503
- utils.forEach(
1504
- ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
1505
- function cleanHeaderConfig(method) {
1506
- delete config.headers[method];
1507
- }
1508
- );
1509
-
1510
- var adapter = config.adapter || defaults.adapter;
1511
-
1512
- return adapter(config).then(function onAdapterResolution(response) {
1513
- throwIfCancellationRequested(config);
1514
-
1515
- // Transform response data
1516
- response.data = transformData.call(
1517
- config,
1518
- response.data,
1519
- response.headers,
1520
- config.transformResponse
1521
- );
1522
-
1523
- return response;
1524
- }, function onAdapterRejection(reason) {
1525
- if (!isCancel(reason)) {
1526
- throwIfCancellationRequested(config);
1527
-
1528
- // Transform response data
1529
- if (reason && reason.response) {
1530
- reason.response.data = transformData.call(
1531
- config,
1532
- reason.response.data,
1533
- reason.response.headers,
1534
- config.transformResponse
1535
- );
1536
- }
1537
- }
1538
-
1539
- return Promise.reject(reason);
1540
- });
1541
- };
1542
-
1543
-
1544
- /***/ }),
1545
-
1546
- /***/ "./node_modules/axios/lib/core/enhanceError.js":
1547
- /*!*****************************************************!*\
1548
- !*** ./node_modules/axios/lib/core/enhanceError.js ***!
1549
- \*****************************************************/
1550
- /***/ (function(module) {
1551
-
1552
- "use strict";
1553
-
1554
-
1555
- /**
1556
- * Update an Error with the specified config, error code, and response.
1557
- *
1558
- * @param {Error} error The error to update.
1559
- * @param {Object} config The config.
1560
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
1561
- * @param {Object} [request] The request.
1562
- * @param {Object} [response] The response.
1563
- * @returns {Error} The error.
1564
- */
1565
- module.exports = function enhanceError(error, config, code, request, response) {
1566
- error.config = config;
1567
- if (code) {
1568
- error.code = code;
1569
- }
1570
-
1571
- error.request = request;
1572
- error.response = response;
1573
- error.isAxiosError = true;
1574
-
1575
- error.toJSON = function toJSON() {
1576
- return {
1577
- // Standard
1578
- message: this.message,
1579
- name: this.name,
1580
- // Microsoft
1581
- description: this.description,
1582
- number: this.number,
1583
- // Mozilla
1584
- fileName: this.fileName,
1585
- lineNumber: this.lineNumber,
1586
- columnNumber: this.columnNumber,
1587
- stack: this.stack,
1588
- // Axios
1589
- config: this.config,
1590
- code: this.code,
1591
- status: this.response && this.response.status ? this.response.status : null
1592
- };
1593
- };
1594
- return error;
1595
- };
1596
-
1597
-
1598
- /***/ }),
1599
-
1600
- /***/ "./node_modules/axios/lib/core/mergeConfig.js":
1601
- /*!****************************************************!*\
1602
- !*** ./node_modules/axios/lib/core/mergeConfig.js ***!
1603
- \****************************************************/
1604
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1605
-
1606
- "use strict";
1607
-
1608
-
1609
- var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
1610
-
1611
- /**
1612
- * Config-specific merge-function which creates a new config-object
1613
- * by merging two configuration objects together.
1614
- *
1615
- * @param {Object} config1
1616
- * @param {Object} config2
1617
- * @returns {Object} New object resulting from merging config2 to config1
1618
- */
1619
- module.exports = function mergeConfig(config1, config2) {
1620
- // eslint-disable-next-line no-param-reassign
1621
- config2 = config2 || {};
1622
- var config = {};
1623
-
1624
- function getMergedValue(target, source) {
1625
- if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
1626
- return utils.merge(target, source);
1627
- } else if (utils.isPlainObject(source)) {
1628
- return utils.merge({}, source);
1629
- } else if (utils.isArray(source)) {
1630
- return source.slice();
1631
- }
1632
- return source;
1633
- }
1634
-
1635
- // eslint-disable-next-line consistent-return
1636
- function mergeDeepProperties(prop) {
1637
- if (!utils.isUndefined(config2[prop])) {
1638
- return getMergedValue(config1[prop], config2[prop]);
1639
- } else if (!utils.isUndefined(config1[prop])) {
1640
- return getMergedValue(undefined, config1[prop]);
1641
- }
1642
- }
1643
-
1644
- // eslint-disable-next-line consistent-return
1645
- function valueFromConfig2(prop) {
1646
- if (!utils.isUndefined(config2[prop])) {
1647
- return getMergedValue(undefined, config2[prop]);
1648
- }
1649
- }
1650
-
1651
- // eslint-disable-next-line consistent-return
1652
- function defaultToConfig2(prop) {
1653
- if (!utils.isUndefined(config2[prop])) {
1654
- return getMergedValue(undefined, config2[prop]);
1655
- } else if (!utils.isUndefined(config1[prop])) {
1656
- return getMergedValue(undefined, config1[prop]);
1657
- }
1658
- }
1659
-
1660
- // eslint-disable-next-line consistent-return
1661
- function mergeDirectKeys(prop) {
1662
- if (prop in config2) {
1663
- return getMergedValue(config1[prop], config2[prop]);
1664
- } else if (prop in config1) {
1665
- return getMergedValue(undefined, config1[prop]);
1666
- }
1667
- }
1668
-
1669
- var mergeMap = {
1670
- 'url': valueFromConfig2,
1671
- 'method': valueFromConfig2,
1672
- 'data': valueFromConfig2,
1673
- 'baseURL': defaultToConfig2,
1674
- 'transformRequest': defaultToConfig2,
1675
- 'transformResponse': defaultToConfig2,
1676
- 'paramsSerializer': defaultToConfig2,
1677
- 'timeout': defaultToConfig2,
1678
- 'timeoutMessage': defaultToConfig2,
1679
- 'withCredentials': defaultToConfig2,
1680
- 'adapter': defaultToConfig2,
1681
- 'responseType': defaultToConfig2,
1682
- 'xsrfCookieName': defaultToConfig2,
1683
- 'xsrfHeaderName': defaultToConfig2,
1684
- 'onUploadProgress': defaultToConfig2,
1685
- 'onDownloadProgress': defaultToConfig2,
1686
- 'decompress': defaultToConfig2,
1687
- 'maxContentLength': defaultToConfig2,
1688
- 'maxBodyLength': defaultToConfig2,
1689
- 'transport': defaultToConfig2,
1690
- 'httpAgent': defaultToConfig2,
1691
- 'httpsAgent': defaultToConfig2,
1692
- 'cancelToken': defaultToConfig2,
1693
- 'socketPath': defaultToConfig2,
1694
- 'responseEncoding': defaultToConfig2,
1695
- 'validateStatus': mergeDirectKeys
1696
- };
1697
-
1698
- utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
1699
- var merge = mergeMap[prop] || mergeDeepProperties;
1700
- var configValue = merge(prop);
1701
- (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
1702
- });
1703
-
1704
- return config;
1705
- };
1706
-
1707
-
1708
- /***/ }),
1709
-
1710
- /***/ "./node_modules/axios/lib/core/settle.js":
1711
- /*!***********************************************!*\
1712
- !*** ./node_modules/axios/lib/core/settle.js ***!
1713
- \***********************************************/
1714
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1715
-
1716
- "use strict";
1717
-
1718
-
1719
- var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js");
1720
-
1721
- /**
1722
- * Resolve or reject a Promise based on response status.
1723
- *
1724
- * @param {Function} resolve A function that resolves the promise.
1725
- * @param {Function} reject A function that rejects the promise.
1726
- * @param {object} response The response.
1727
- */
1728
- module.exports = function settle(resolve, reject, response) {
1729
- var validateStatus = response.config.validateStatus;
1730
- if (!response.status || !validateStatus || validateStatus(response.status)) {
1731
- resolve(response);
1732
- } else {
1733
- reject(createError(
1734
- 'Request failed with status code ' + response.status,
1735
- response.config,
1736
- null,
1737
- response.request,
1738
- response
1739
- ));
1740
- }
1741
- };
1742
-
1743
-
1744
- /***/ }),
1745
-
1746
- /***/ "./node_modules/axios/lib/core/transformData.js":
1747
- /*!******************************************************!*\
1748
- !*** ./node_modules/axios/lib/core/transformData.js ***!
1749
- \******************************************************/
1750
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1751
-
1752
- "use strict";
1753
-
1754
-
1755
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
1756
- var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/axios/lib/defaults.js");
1757
-
1758
- /**
1759
- * Transform the data for a request or a response
1760
- *
1761
- * @param {Object|String} data The data to be transformed
1762
- * @param {Array} headers The headers for the request or response
1763
- * @param {Array|Function} fns A single function or Array of functions
1764
- * @returns {*} The resulting transformed data
1765
- */
1766
- module.exports = function transformData(data, headers, fns) {
1767
- var context = this || defaults;
1768
- /*eslint no-param-reassign:0*/
1769
- utils.forEach(fns, function transform(fn) {
1770
- data = fn.call(context, data, headers);
1771
- });
1772
-
1773
- return data;
1774
- };
1775
-
1776
-
1777
- /***/ }),
1778
-
1779
- /***/ "./node_modules/axios/lib/defaults.js":
1780
- /*!********************************************!*\
1781
- !*** ./node_modules/axios/lib/defaults.js ***!
1782
- \********************************************/
1783
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1784
-
1785
- "use strict";
1786
-
1787
-
1788
- var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
1789
- var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js");
1790
- var enhanceError = __webpack_require__(/*! ./core/enhanceError */ "./node_modules/axios/lib/core/enhanceError.js");
1791
-
1792
- var DEFAULT_CONTENT_TYPE = {
1793
- 'Content-Type': 'application/x-www-form-urlencoded'
1794
- };
1795
-
1796
- function setContentTypeIfUnset(headers, value) {
1797
- if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
1798
- headers['Content-Type'] = value;
1799
- }
1800
- }
1801
-
1802
- function getDefaultAdapter() {
1803
- var adapter;
1804
- if (typeof XMLHttpRequest !== 'undefined') {
1805
- // For browsers use XHR adapter
1806
- adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
1807
- } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
1808
- // For node use HTTP adapter
1809
- adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
1810
- }
1811
- return adapter;
1812
- }
1813
-
1814
- function stringifySafely(rawValue, parser, encoder) {
1815
- if (utils.isString(rawValue)) {
1816
- try {
1817
- (parser || JSON.parse)(rawValue);
1818
- return utils.trim(rawValue);
1819
- } catch (e) {
1820
- if (e.name !== 'SyntaxError') {
1821
- throw e;
1822
- }
1823
- }
1824
- }
1825
-
1826
- return (encoder || JSON.stringify)(rawValue);
1827
- }
1828
-
1829
- var defaults = {
1830
-
1831
- transitional: {
1832
- silentJSONParsing: true,
1833
- forcedJSONParsing: true,
1834
- clarifyTimeoutError: false
1835
- },
1836
-
1837
- adapter: getDefaultAdapter(),
1838
-
1839
- transformRequest: [function transformRequest(data, headers) {
1840
- normalizeHeaderName(headers, 'Accept');
1841
- normalizeHeaderName(headers, 'Content-Type');
1842
-
1843
- if (utils.isFormData(data) ||
1844
- utils.isArrayBuffer(data) ||
1845
- utils.isBuffer(data) ||
1846
- utils.isStream(data) ||
1847
- utils.isFile(data) ||
1848
- utils.isBlob(data)
1849
- ) {
1850
- return data;
1851
- }
1852
- if (utils.isArrayBufferView(data)) {
1853
- return data.buffer;
1854
- }
1855
- if (utils.isURLSearchParams(data)) {
1856
- setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
1857
- return data.toString();
1858
- }
1859
- if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
1860
- setContentTypeIfUnset(headers, 'application/json');
1861
- return stringifySafely(data);
1862
- }
1863
- return data;
1864
- }],
1865
-
1866
- transformResponse: [function transformResponse(data) {
1867
- var transitional = this.transitional || defaults.transitional;
1868
- var silentJSONParsing = transitional && transitional.silentJSONParsing;
1869
- var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1870
- var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
1871
-
1872
- if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
1873
- try {
1874
- return JSON.parse(data);
1875
- } catch (e) {
1876
- if (strictJSONParsing) {
1877
- if (e.name === 'SyntaxError') {
1878
- throw enhanceError(e, this, 'E_JSON_PARSE');
1879
- }
1880
- throw e;
1881
- }
1882
- }
1883
- }
1884
-
1885
- return data;
1886
- }],
1887
-
1888
- /**
1889
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
1890
- * timeout is not created.
1891
- */
1892
- timeout: 0,
1893
-
1894
- xsrfCookieName: 'XSRF-TOKEN',
1895
- xsrfHeaderName: 'X-XSRF-TOKEN',
1896
-
1897
- maxContentLength: -1,
1898
- maxBodyLength: -1,
1899
-
1900
- validateStatus: function validateStatus(status) {
1901
- return status >= 200 && status < 300;
1902
- },
1903
-
1904
- headers: {
1905
- common: {
1906
- 'Accept': 'application/json, text/plain, */*'
1907
- }
1908
- }
1909
- };
1910
-
1911
- utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
1912
- defaults.headers[method] = {};
1913
- });
1914
-
1915
- utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1916
- defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
1917
- });
1918
-
1919
- module.exports = defaults;
1920
-
1921
-
1922
- /***/ }),
1923
-
1924
- /***/ "./node_modules/axios/lib/env/data.js":
1925
- /*!********************************************!*\
1926
- !*** ./node_modules/axios/lib/env/data.js ***!
1927
- \********************************************/
1928
- /***/ (function(module) {
1929
-
1930
- module.exports = {
1931
- "version": "0.25.0"
1932
- };
1933
-
1934
- /***/ }),
1935
-
1936
- /***/ "./node_modules/axios/lib/helpers/bind.js":
1937
- /*!************************************************!*\
1938
- !*** ./node_modules/axios/lib/helpers/bind.js ***!
1939
- \************************************************/
1940
- /***/ (function(module) {
1941
-
1942
- "use strict";
1943
-
1944
-
1945
- module.exports = function bind(fn, thisArg) {
1946
- return function wrap() {
1947
- var args = new Array(arguments.length);
1948
- for (var i = 0; i < args.length; i++) {
1949
- args[i] = arguments[i];
1950
- }
1951
- return fn.apply(thisArg, args);
1952
- };
1953
- };
1954
-
1955
-
1956
- /***/ }),
1957
-
1958
- /***/ "./node_modules/axios/lib/helpers/buildURL.js":
1959
- /*!****************************************************!*\
1960
- !*** ./node_modules/axios/lib/helpers/buildURL.js ***!
1961
- \****************************************************/
1962
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1963
-
1964
- "use strict";
1965
-
1966
-
1967
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
1968
-
1969
- function encode(val) {
1970
- return encodeURIComponent(val).
1971
- replace(/%3A/gi, ':').
1972
- replace(/%24/g, '$').
1973
- replace(/%2C/gi, ',').
1974
- replace(/%20/g, '+').
1975
- replace(/%5B/gi, '[').
1976
- replace(/%5D/gi, ']');
1977
- }
1978
-
1979
- /**
1980
- * Build a URL by appending params to the end
1981
- *
1982
- * @param {string} url The base of the url (e.g., http://www.google.com)
1983
- * @param {object} [params] The params to be appended
1984
- * @returns {string} The formatted url
1985
- */
1986
- module.exports = function buildURL(url, params, paramsSerializer) {
1987
- /*eslint no-param-reassign:0*/
1988
- if (!params) {
1989
- return url;
1990
- }
1991
-
1992
- var serializedParams;
1993
- if (paramsSerializer) {
1994
- serializedParams = paramsSerializer(params);
1995
- } else if (utils.isURLSearchParams(params)) {
1996
- serializedParams = params.toString();
1997
- } else {
1998
- var parts = [];
1999
-
2000
- utils.forEach(params, function serialize(val, key) {
2001
- if (val === null || typeof val === 'undefined') {
2002
- return;
2003
- }
2004
-
2005
- if (utils.isArray(val)) {
2006
- key = key + '[]';
2007
- } else {
2008
- val = [val];
2009
- }
2010
-
2011
- utils.forEach(val, function parseValue(v) {
2012
- if (utils.isDate(v)) {
2013
- v = v.toISOString();
2014
- } else if (utils.isObject(v)) {
2015
- v = JSON.stringify(v);
2016
- }
2017
- parts.push(encode(key) + '=' + encode(v));
2018
- });
2019
- });
2020
-
2021
- serializedParams = parts.join('&');
2022
- }
2023
-
2024
- if (serializedParams) {
2025
- var hashmarkIndex = url.indexOf('#');
2026
- if (hashmarkIndex !== -1) {
2027
- url = url.slice(0, hashmarkIndex);
2028
- }
2029
-
2030
- url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
2031
- }
2032
-
2033
- return url;
2034
- };
2035
-
2036
-
2037
- /***/ }),
2038
-
2039
- /***/ "./node_modules/axios/lib/helpers/combineURLs.js":
2040
- /*!*******************************************************!*\
2041
- !*** ./node_modules/axios/lib/helpers/combineURLs.js ***!
2042
- \*******************************************************/
2043
- /***/ (function(module) {
2044
-
2045
- "use strict";
2046
-
2047
-
2048
- /**
2049
- * Creates a new URL by combining the specified URLs
2050
- *
2051
- * @param {string} baseURL The base URL
2052
- * @param {string} relativeURL The relative URL
2053
- * @returns {string} The combined URL
2054
- */
2055
- module.exports = function combineURLs(baseURL, relativeURL) {
2056
- return relativeURL
2057
- ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2058
- : baseURL;
2059
- };
2060
-
2061
-
2062
- /***/ }),
2063
-
2064
- /***/ "./node_modules/axios/lib/helpers/cookies.js":
2065
- /*!***************************************************!*\
2066
- !*** ./node_modules/axios/lib/helpers/cookies.js ***!
2067
- \***************************************************/
2068
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2069
-
2070
- "use strict";
2071
-
2072
-
2073
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
2074
-
2075
- module.exports = (
2076
- utils.isStandardBrowserEnv() ?
2077
-
2078
- // Standard browser envs support document.cookie
2079
- (function standardBrowserEnv() {
2080
- return {
2081
- write: function write(name, value, expires, path, domain, secure) {
2082
- var cookie = [];
2083
- cookie.push(name + '=' + encodeURIComponent(value));
2084
-
2085
- if (utils.isNumber(expires)) {
2086
- cookie.push('expires=' + new Date(expires).toGMTString());
2087
- }
2088
-
2089
- if (utils.isString(path)) {
2090
- cookie.push('path=' + path);
2091
- }
2092
-
2093
- if (utils.isString(domain)) {
2094
- cookie.push('domain=' + domain);
2095
- }
2096
-
2097
- if (secure === true) {
2098
- cookie.push('secure');
2099
- }
2100
-
2101
- document.cookie = cookie.join('; ');
2102
- },
2103
-
2104
- read: function read(name) {
2105
- var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
2106
- return (match ? decodeURIComponent(match[3]) : null);
2107
- },
2108
-
2109
- remove: function remove(name) {
2110
- this.write(name, '', Date.now() - 86400000);
2111
- }
2112
- };
2113
- })() :
2114
-
2115
- // Non standard browser env (web workers, react-native) lack needed support.
2116
- (function nonStandardBrowserEnv() {
2117
- return {
2118
- write: function write() {},
2119
- read: function read() { return null; },
2120
- remove: function remove() {}
2121
- };
2122
- })()
2123
- );
2124
-
2125
-
2126
- /***/ }),
2127
-
2128
- /***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js":
2129
- /*!*********************************************************!*\
2130
- !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
2131
- \*********************************************************/
2132
- /***/ (function(module) {
2133
-
2134
- "use strict";
2135
-
2136
-
2137
- /**
2138
- * Determines whether the specified URL is absolute
2139
- *
2140
- * @param {string} url The URL to test
2141
- * @returns {boolean} True if the specified URL is absolute, otherwise false
2142
- */
2143
- module.exports = function isAbsoluteURL(url) {
2144
- // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
2145
- // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
2146
- // by any combination of letters, digits, plus, period, or hyphen.
2147
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
2148
- };
2149
-
2150
-
2151
- /***/ }),
2152
-
2153
- /***/ "./node_modules/axios/lib/helpers/isAxiosError.js":
2154
- /*!********************************************************!*\
2155
- !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***!
2156
- \********************************************************/
2157
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2158
-
2159
- "use strict";
2160
-
2161
-
2162
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
2163
-
2164
- /**
2165
- * Determines whether the payload is an error thrown by Axios
2166
- *
2167
- * @param {*} payload The value to test
2168
- * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
2169
- */
2170
- module.exports = function isAxiosError(payload) {
2171
- return utils.isObject(payload) && (payload.isAxiosError === true);
2172
- };
2173
-
2174
-
2175
- /***/ }),
2176
-
2177
- /***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
2178
- /*!***********************************************************!*\
2179
- !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
2180
- \***********************************************************/
2181
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2182
-
2183
- "use strict";
2184
-
2185
-
2186
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
2187
-
2188
- module.exports = (
2189
- utils.isStandardBrowserEnv() ?
2190
-
2191
- // Standard browser envs have full support of the APIs needed to test
2192
- // whether the request URL is of the same origin as current location.
2193
- (function standardBrowserEnv() {
2194
- var msie = /(msie|trident)/i.test(navigator.userAgent);
2195
- var urlParsingNode = document.createElement('a');
2196
- var originURL;
2197
-
2198
- /**
2199
- * Parse a URL to discover it's components
2200
- *
2201
- * @param {String} url The URL to be parsed
2202
- * @returns {Object}
2203
- */
2204
- function resolveURL(url) {
2205
- var href = url;
2206
-
2207
- if (msie) {
2208
- // IE needs attribute set twice to normalize properties
2209
- urlParsingNode.setAttribute('href', href);
2210
- href = urlParsingNode.href;
2211
- }
2212
-
2213
- urlParsingNode.setAttribute('href', href);
2214
-
2215
- // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
2216
- return {
2217
- href: urlParsingNode.href,
2218
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
2219
- host: urlParsingNode.host,
2220
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
2221
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
2222
- hostname: urlParsingNode.hostname,
2223
- port: urlParsingNode.port,
2224
- pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
2225
- urlParsingNode.pathname :
2226
- '/' + urlParsingNode.pathname
2227
- };
2228
- }
2229
-
2230
- originURL = resolveURL(window.location.href);
2231
-
2232
- /**
2233
- * Determine if a URL shares the same origin as the current location
2234
- *
2235
- * @param {String} requestURL The URL to test
2236
- * @returns {boolean} True if URL shares the same origin, otherwise false
2237
- */
2238
- return function isURLSameOrigin(requestURL) {
2239
- var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
2240
- return (parsed.protocol === originURL.protocol &&
2241
- parsed.host === originURL.host);
2242
- };
2243
- })() :
2244
-
2245
- // Non standard browser envs (web workers, react-native) lack needed support.
2246
- (function nonStandardBrowserEnv() {
2247
- return function isURLSameOrigin() {
2248
- return true;
2249
- };
2250
- })()
2251
- );
2252
-
2253
-
2254
- /***/ }),
2255
-
2256
- /***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js":
2257
- /*!***************************************************************!*\
2258
- !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***!
2259
- \***************************************************************/
2260
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2261
-
2262
- "use strict";
2263
-
2264
-
2265
- var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
2266
-
2267
- module.exports = function normalizeHeaderName(headers, normalizedName) {
2268
- utils.forEach(headers, function processHeader(value, name) {
2269
- if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
2270
- headers[normalizedName] = value;
2271
- delete headers[name];
2272
- }
2273
- });
2274
- };
2275
-
2276
-
2277
- /***/ }),
2278
-
2279
- /***/ "./node_modules/axios/lib/helpers/parseHeaders.js":
2280
- /*!********************************************************!*\
2281
- !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***!
2282
- \********************************************************/
2283
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2284
-
2285
- "use strict";
2286
-
2287
-
2288
- var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
2289
-
2290
- // Headers whose duplicates are ignored by node
2291
- // c.f. https://nodejs.org/api/http.html#http_message_headers
2292
- var ignoreDuplicateOf = [
2293
- 'age', 'authorization', 'content-length', 'content-type', 'etag',
2294
- 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
2295
- 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
2296
- 'referer', 'retry-after', 'user-agent'
2297
- ];
2298
-
2299
- /**
2300
- * Parse headers into an object
2301
- *
2302
- * ```
2303
- * Date: Wed, 27 Aug 2014 08:58:49 GMT
2304
- * Content-Type: application/json
2305
- * Connection: keep-alive
2306
- * Transfer-Encoding: chunked
2307
- * ```
2308
- *
2309
- * @param {String} headers Headers needing to be parsed
2310
- * @returns {Object} Headers parsed into an object
2311
- */
2312
- module.exports = function parseHeaders(headers) {
2313
- var parsed = {};
2314
- var key;
2315
- var val;
2316
- var i;
2317
-
2318
- if (!headers) { return parsed; }
2319
-
2320
- utils.forEach(headers.split('\n'), function parser(line) {
2321
- i = line.indexOf(':');
2322
- key = utils.trim(line.substr(0, i)).toLowerCase();
2323
- val = utils.trim(line.substr(i + 1));
2324
-
2325
- if (key) {
2326
- if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
2327
- return;
2328
- }
2329
- if (key === 'set-cookie') {
2330
- parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
2331
- } else {
2332
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
2333
- }
2334
- }
2335
- });
2336
-
2337
- return parsed;
2338
- };
2339
-
2340
-
2341
- /***/ }),
2342
-
2343
- /***/ "./node_modules/axios/lib/helpers/spread.js":
2344
- /*!**************************************************!*\
2345
- !*** ./node_modules/axios/lib/helpers/spread.js ***!
2346
- \**************************************************/
2347
- /***/ (function(module) {
2348
-
2349
- "use strict";
2350
-
2351
-
2352
- /**
2353
- * Syntactic sugar for invoking a function and expanding an array for arguments.
2354
- *
2355
- * Common use case would be to use `Function.prototype.apply`.
2356
- *
2357
- * ```js
2358
- * function f(x, y, z) {}
2359
- * var args = [1, 2, 3];
2360
- * f.apply(null, args);
2361
- * ```
2362
- *
2363
- * With `spread` this example can be re-written.
2364
- *
2365
- * ```js
2366
- * spread(function(x, y, z) {})([1, 2, 3]);
2367
- * ```
2368
- *
2369
- * @param {Function} callback
2370
- * @returns {Function}
2371
- */
2372
- module.exports = function spread(callback) {
2373
- return function wrap(arr) {
2374
- return callback.apply(null, arr);
2375
- };
2376
- };
2377
-
2378
-
2379
- /***/ }),
2380
-
2381
- /***/ "./node_modules/axios/lib/helpers/validator.js":
2382
- /*!*****************************************************!*\
2383
- !*** ./node_modules/axios/lib/helpers/validator.js ***!
2384
- \*****************************************************/
2385
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2386
-
2387
- "use strict";
2388
-
2389
-
2390
- var VERSION = (__webpack_require__(/*! ../env/data */ "./node_modules/axios/lib/env/data.js").version);
2391
-
2392
- var validators = {};
2393
-
2394
- // eslint-disable-next-line func-names
2395
- ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
2396
- validators[type] = function validator(thing) {
2397
- return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
2398
- };
2399
- });
2400
-
2401
- var deprecatedWarnings = {};
2402
-
2403
- /**
2404
- * Transitional option validator
2405
- * @param {function|boolean?} validator - set to false if the transitional option has been removed
2406
- * @param {string?} version - deprecated version / removed since version
2407
- * @param {string?} message - some message with additional info
2408
- * @returns {function}
2409
- */
2410
- validators.transitional = function transitional(validator, version, message) {
2411
- function formatMessage(opt, desc) {
2412
- return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
2413
- }
2414
-
2415
- // eslint-disable-next-line func-names
2416
- return function(value, opt, opts) {
2417
- if (validator === false) {
2418
- throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));
2419
- }
2420
-
2421
- if (version && !deprecatedWarnings[opt]) {
2422
- deprecatedWarnings[opt] = true;
2423
- // eslint-disable-next-line no-console
2424
- console.warn(
2425
- formatMessage(
2426
- opt,
2427
- ' has been deprecated since v' + version + ' and will be removed in the near future'
2428
- )
2429
- );
2430
- }
2431
-
2432
- return validator ? validator(value, opt, opts) : true;
2433
- };
2434
- };
2435
-
2436
- /**
2437
- * Assert object's properties type
2438
- * @param {object} options
2439
- * @param {object} schema
2440
- * @param {boolean?} allowUnknown
2441
- */
2442
-
2443
- function assertOptions(options, schema, allowUnknown) {
2444
- if (typeof options !== 'object') {
2445
- throw new TypeError('options must be an object');
2446
- }
2447
- var keys = Object.keys(options);
2448
- var i = keys.length;
2449
- while (i-- > 0) {
2450
- var opt = keys[i];
2451
- var validator = schema[opt];
2452
- if (validator) {
2453
- var value = options[opt];
2454
- var result = value === undefined || validator(value, opt, options);
2455
- if (result !== true) {
2456
- throw new TypeError('option ' + opt + ' must be ' + result);
2457
- }
2458
- continue;
2459
- }
2460
- if (allowUnknown !== true) {
2461
- throw Error('Unknown option ' + opt);
2462
- }
2463
- }
2464
- }
2465
-
2466
- module.exports = {
2467
- assertOptions: assertOptions,
2468
- validators: validators
2469
- };
2470
-
2471
-
2472
- /***/ }),
2473
-
2474
- /***/ "./node_modules/axios/lib/utils.js":
2475
- /*!*****************************************!*\
2476
- !*** ./node_modules/axios/lib/utils.js ***!
2477
- \*****************************************/
2478
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2479
-
2480
- "use strict";
2481
-
2482
-
2483
- var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
2484
-
2485
- // utils is a library of generic helper functions non-specific to axios
2486
-
2487
- var toString = Object.prototype.toString;
2488
-
2489
- /**
2490
- * Determine if a value is an Array
2491
- *
2492
- * @param {Object} val The value to test
2493
- * @returns {boolean} True if value is an Array, otherwise false
2494
- */
2495
- function isArray(val) {
2496
- return Array.isArray(val);
2497
- }
2498
-
2499
- /**
2500
- * Determine if a value is undefined
2501
- *
2502
- * @param {Object} val The value to test
2503
- * @returns {boolean} True if the value is undefined, otherwise false
2504
- */
2505
- function isUndefined(val) {
2506
- return typeof val === 'undefined';
2507
- }
2508
-
2509
- /**
2510
- * Determine if a value is a Buffer
2511
- *
2512
- * @param {Object} val The value to test
2513
- * @returns {boolean} True if value is a Buffer, otherwise false
2514
- */
2515
- function isBuffer(val) {
2516
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
2517
- && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
2518
- }
2519
-
2520
- /**
2521
- * Determine if a value is an ArrayBuffer
2522
- *
2523
- * @param {Object} val The value to test
2524
- * @returns {boolean} True if value is an ArrayBuffer, otherwise false
2525
- */
2526
- function isArrayBuffer(val) {
2527
- return toString.call(val) === '[object ArrayBuffer]';
2528
- }
2529
-
2530
- /**
2531
- * Determine if a value is a FormData
2532
- *
2533
- * @param {Object} val The value to test
2534
- * @returns {boolean} True if value is an FormData, otherwise false
2535
- */
2536
- function isFormData(val) {
2537
- return toString.call(val) === '[object FormData]';
2538
- }
2539
-
2540
- /**
2541
- * Determine if a value is a view on an ArrayBuffer
2542
- *
2543
- * @param {Object} val The value to test
2544
- * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
2545
- */
2546
- function isArrayBufferView(val) {
2547
- var result;
2548
- if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
2549
- result = ArrayBuffer.isView(val);
2550
- } else {
2551
- result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
2552
- }
2553
- return result;
2554
- }
2555
-
2556
- /**
2557
- * Determine if a value is a String
2558
- *
2559
- * @param {Object} val The value to test
2560
- * @returns {boolean} True if value is a String, otherwise false
2561
- */
2562
- function isString(val) {
2563
- return typeof val === 'string';
2564
- }
2565
-
2566
- /**
2567
- * Determine if a value is a Number
2568
- *
2569
- * @param {Object} val The value to test
2570
- * @returns {boolean} True if value is a Number, otherwise false
2571
- */
2572
- function isNumber(val) {
2573
- return typeof val === 'number';
2574
- }
2575
-
2576
- /**
2577
- * Determine if a value is an Object
2578
- *
2579
- * @param {Object} val The value to test
2580
- * @returns {boolean} True if value is an Object, otherwise false
2581
- */
2582
- function isObject(val) {
2583
- return val !== null && typeof val === 'object';
2584
- }
2585
-
2586
- /**
2587
- * Determine if a value is a plain Object
2588
- *
2589
- * @param {Object} val The value to test
2590
- * @return {boolean} True if value is a plain Object, otherwise false
2591
- */
2592
- function isPlainObject(val) {
2593
- if (toString.call(val) !== '[object Object]') {
2594
- return false;
2595
- }
2596
-
2597
- var prototype = Object.getPrototypeOf(val);
2598
- return prototype === null || prototype === Object.prototype;
2599
- }
2600
-
2601
- /**
2602
- * Determine if a value is a Date
2603
- *
2604
- * @param {Object} val The value to test
2605
- * @returns {boolean} True if value is a Date, otherwise false
2606
- */
2607
- function isDate(val) {
2608
- return toString.call(val) === '[object Date]';
2609
- }
2610
-
2611
- /**
2612
- * Determine if a value is a File
2613
- *
2614
- * @param {Object} val The value to test
2615
- * @returns {boolean} True if value is a File, otherwise false
2616
- */
2617
- function isFile(val) {
2618
- return toString.call(val) === '[object File]';
2619
- }
2620
-
2621
- /**
2622
- * Determine if a value is a Blob
2623
- *
2624
- * @param {Object} val The value to test
2625
- * @returns {boolean} True if value is a Blob, otherwise false
2626
- */
2627
- function isBlob(val) {
2628
- return toString.call(val) === '[object Blob]';
2629
- }
2630
-
2631
- /**
2632
- * Determine if a value is a Function
2633
- *
2634
- * @param {Object} val The value to test
2635
- * @returns {boolean} True if value is a Function, otherwise false
2636
- */
2637
- function isFunction(val) {
2638
- return toString.call(val) === '[object Function]';
2639
- }
2640
-
2641
- /**
2642
- * Determine if a value is a Stream
2643
- *
2644
- * @param {Object} val The value to test
2645
- * @returns {boolean} True if value is a Stream, otherwise false
2646
- */
2647
- function isStream(val) {
2648
- return isObject(val) && isFunction(val.pipe);
2649
- }
2650
-
2651
- /**
2652
- * Determine if a value is a URLSearchParams object
2653
- *
2654
- * @param {Object} val The value to test
2655
- * @returns {boolean} True if value is a URLSearchParams object, otherwise false
2656
- */
2657
- function isURLSearchParams(val) {
2658
- return toString.call(val) === '[object URLSearchParams]';
2659
- }
2660
-
2661
- /**
2662
- * Trim excess whitespace off the beginning and end of a string
2663
- *
2664
- * @param {String} str The String to trim
2665
- * @returns {String} The String freed of excess whitespace
2666
- */
2667
- function trim(str) {
2668
- return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
2669
- }
2670
-
2671
- /**
2672
- * Determine if we're running in a standard browser environment
2673
- *
2674
- * This allows axios to run in a web worker, and react-native.
2675
- * Both environments support XMLHttpRequest, but not fully standard globals.
2676
- *
2677
- * web workers:
2678
- * typeof window -> undefined
2679
- * typeof document -> undefined
2680
- *
2681
- * react-native:
2682
- * navigator.product -> 'ReactNative'
2683
- * nativescript
2684
- * navigator.product -> 'NativeScript' or 'NS'
2685
- */
2686
- function isStandardBrowserEnv() {
2687
- if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
2688
- navigator.product === 'NativeScript' ||
2689
- navigator.product === 'NS')) {
2690
- return false;
2691
- }
2692
- return (
2693
- typeof window !== 'undefined' &&
2694
- typeof document !== 'undefined'
2695
- );
2696
- }
2697
-
2698
- /**
2699
- * Iterate over an Array or an Object invoking a function for each item.
2700
- *
2701
- * If `obj` is an Array callback will be called passing
2702
- * the value, index, and complete array for each item.
2703
- *
2704
- * If 'obj' is an Object callback will be called passing
2705
- * the value, key, and complete object for each property.
2706
- *
2707
- * @param {Object|Array} obj The object to iterate
2708
- * @param {Function} fn The callback to invoke for each item
2709
- */
2710
- function forEach(obj, fn) {
2711
- // Don't bother if no value provided
2712
- if (obj === null || typeof obj === 'undefined') {
2713
- return;
2714
- }
2715
-
2716
- // Force an array if not already something iterable
2717
- if (typeof obj !== 'object') {
2718
- /*eslint no-param-reassign:0*/
2719
- obj = [obj];
2720
- }
2721
-
2722
- if (isArray(obj)) {
2723
- // Iterate over array values
2724
- for (var i = 0, l = obj.length; i < l; i++) {
2725
- fn.call(null, obj[i], i, obj);
2726
- }
2727
- } else {
2728
- // Iterate over object keys
2729
- for (var key in obj) {
2730
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
2731
- fn.call(null, obj[key], key, obj);
2732
- }
2733
- }
2734
- }
2735
- }
2736
-
2737
- /**
2738
- * Accepts varargs expecting each argument to be an object, then
2739
- * immutably merges the properties of each object and returns result.
2740
- *
2741
- * When multiple objects contain the same key the later object in
2742
- * the arguments list will take precedence.
2743
- *
2744
- * Example:
2745
- *
2746
- * ```js
2747
- * var result = merge({foo: 123}, {foo: 456});
2748
- * console.log(result.foo); // outputs 456
2749
- * ```
2750
- *
2751
- * @param {Object} obj1 Object to merge
2752
- * @returns {Object} Result of all merge properties
2753
- */
2754
- function merge(/* obj1, obj2, obj3, ... */) {
2755
- var result = {};
2756
- function assignValue(val, key) {
2757
- if (isPlainObject(result[key]) && isPlainObject(val)) {
2758
- result[key] = merge(result[key], val);
2759
- } else if (isPlainObject(val)) {
2760
- result[key] = merge({}, val);
2761
- } else if (isArray(val)) {
2762
- result[key] = val.slice();
2763
- } else {
2764
- result[key] = val;
2765
- }
2766
- }
2767
-
2768
- for (var i = 0, l = arguments.length; i < l; i++) {
2769
- forEach(arguments[i], assignValue);
2770
- }
2771
- return result;
2772
- }
2773
-
2774
- /**
2775
- * Extends object a by mutably adding to it the properties of object b.
2776
- *
2777
- * @param {Object} a The object to be extended
2778
- * @param {Object} b The object to copy properties from
2779
- * @param {Object} thisArg The object to bind function to
2780
- * @return {Object} The resulting value of object a
2781
- */
2782
- function extend(a, b, thisArg) {
2783
- forEach(b, function assignValue(val, key) {
2784
- if (thisArg && typeof val === 'function') {
2785
- a[key] = bind(val, thisArg);
2786
- } else {
2787
- a[key] = val;
2788
- }
2789
- });
2790
- return a;
2791
- }
2792
-
2793
- /**
2794
- * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
2795
- *
2796
- * @param {string} content with BOM
2797
- * @return {string} content value without BOM
2798
- */
2799
- function stripBOM(content) {
2800
- if (content.charCodeAt(0) === 0xFEFF) {
2801
- content = content.slice(1);
2802
- }
2803
- return content;
2804
- }
2805
-
2806
- module.exports = {
2807
- isArray: isArray,
2808
- isArrayBuffer: isArrayBuffer,
2809
- isBuffer: isBuffer,
2810
- isFormData: isFormData,
2811
- isArrayBufferView: isArrayBufferView,
2812
- isString: isString,
2813
- isNumber: isNumber,
2814
- isObject: isObject,
2815
- isPlainObject: isPlainObject,
2816
- isUndefined: isUndefined,
2817
- isDate: isDate,
2818
- isFile: isFile,
2819
- isBlob: isBlob,
2820
- isFunction: isFunction,
2821
- isStream: isStream,
2822
- isURLSearchParams: isURLSearchParams,
2823
- isStandardBrowserEnv: isStandardBrowserEnv,
2824
- forEach: forEach,
2825
- merge: merge,
2826
- extend: extend,
2827
- trim: trim,
2828
- stripBOM: stripBOM
2829
- };
2830
-
2831
-
2832
- /***/ }),
2833
-
2834
- /***/ "./src/DashBoard/DashboardPage.js":
2835
- /*!****************************************!*\
2836
- !*** ./src/DashBoard/DashboardPage.js ***!
2837
- \****************************************/
2838
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2839
-
2840
- "use strict";
2841
- __webpack_require__.r(__webpack_exports__);
2842
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
2843
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2844
- /* harmony import */ var _GridBlock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GridBlock */ "./src/DashBoard/GridBlock.js");
2845
-
2846
-
2847
-
2848
- class DashboardPage extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
2849
- constructor() {
2850
- super(...arguments);
2851
- }
2852
- render() {
2853
- let blocks = rsssl_settings.blocks;
2854
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, blocks.map((block, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_GridBlock__WEBPACK_IMPORTED_MODULE_1__["default"], {
2855
- key: i,
2856
- block: block,
2857
- setShowOnBoardingModal: this.props.setShowOnBoardingModal,
2858
- isApiLoaded: this.props.isAPILoaded,
2859
- fields: this.props.fields,
2860
- highLightField: this.props.highLightField,
2861
- selectMainMenu: this.props.selectMainMenu
2862
- })));
2863
- }
2864
- }
2865
- /* harmony default export */ __webpack_exports__["default"] = (DashboardPage);
2866
-
2867
- /***/ }),
2868
-
2869
- /***/ "./src/DashBoard/GridBlock.js":
2870
- /*!************************************!*\
2871
- !*** ./src/DashBoard/GridBlock.js ***!
2872
- \************************************/
2873
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2874
-
2875
- "use strict";
2876
- __webpack_require__.r(__webpack_exports__);
2877
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
2878
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
2879
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
2880
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
2881
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
2882
- /* harmony import */ var _ProgressBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ProgressBlock */ "./src/DashBoard/ProgressBlock.js");
2883
- /* harmony import */ var _ProgressBlockHeader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ProgressBlockHeader */ "./src/DashBoard/ProgressBlockHeader.js");
2884
- /* harmony import */ var _ProgressFooter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ProgressFooter */ "./src/DashBoard/ProgressFooter.js");
2885
- /* harmony import */ var _SslLabs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SslLabs */ "./src/DashBoard/SslLabs.js");
2886
- /* harmony import */ var _SslLabsFooter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SslLabsFooter */ "./src/DashBoard/SslLabsFooter.js");
2887
- /* harmony import */ var _OtherPlugins__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./OtherPlugins */ "./src/DashBoard/OtherPlugins.js");
2888
- /* harmony import */ var _SecurityFeaturesBlock_SecurityFeaturesBlock__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SecurityFeaturesBlock/SecurityFeaturesBlock */ "./src/DashBoard/SecurityFeaturesBlock/SecurityFeaturesBlock.js");
2889
- /* harmony import */ var _SecurityFeaturesBlock_SecurityFeaturesFooter__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SecurityFeaturesBlock/SecurityFeaturesFooter */ "./src/DashBoard/SecurityFeaturesBlock/SecurityFeaturesFooter.js");
2890
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
2891
-
2892
-
2893
-
2894
-
2895
-
2896
-
2897
-
2898
-
2899
-
2900
-
2901
-
2902
-
2903
-
2904
-
2905
- /*
2906
- * Mapping of components, for use in the config array
2907
- * @type {{SslLabs: JSX.Element}}
2908
- */
2909
- var dynamicComponents = {
2910
- "SecurityFeaturesBlock": _SecurityFeaturesBlock_SecurityFeaturesBlock__WEBPACK_IMPORTED_MODULE_9__["default"],
2911
- "SecurityFeaturesFooter": _SecurityFeaturesBlock_SecurityFeaturesFooter__WEBPACK_IMPORTED_MODULE_10__["default"],
2912
- "ProgressBlock": _ProgressBlock__WEBPACK_IMPORTED_MODULE_3__["default"],
2913
- "ProgressHeader": _ProgressBlockHeader__WEBPACK_IMPORTED_MODULE_4__["default"],
2914
- "ProgressFooter": _ProgressFooter__WEBPACK_IMPORTED_MODULE_5__["default"],
2915
- "SslLabs": _SslLabs__WEBPACK_IMPORTED_MODULE_6__["default"],
2916
- "SslLabsFooter": _SslLabsFooter__WEBPACK_IMPORTED_MODULE_7__["default"],
2917
- "OtherPlugins": _OtherPlugins__WEBPACK_IMPORTED_MODULE_8__["default"]
2918
- };
2919
- class GridBlock extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
2920
- constructor() {
2921
- super(...arguments);
2922
- this.footerHtml = this.props.block.footer.data;
2923
- this.highLightField = this.highLightField.bind(this);
2924
- this.setBlockProps = this.setBlockProps.bind(this);
2925
- let content = this.props.block.content.data;
2926
- let footer = this.props.block.footer.data;
2927
- this.state = {
2928
- content: '',
2929
- testDisabled: false,
2930
- footerHtml: this.props.block.footer.html,
2931
- BlockProps: [],
2932
- content: content,
2933
- footer: footer
2934
- };
2935
- }
2936
-
2937
- /*
2938
- * Allow child blocks to set data on the gridblock
2939
- * @param key
2940
- * @param value
2941
- */
2942
- setBlockProps(key, value) {
2943
- let {
2944
- BlockProps
2945
- } = this.state;
2946
- if (!BlockProps.hasOwnProperty(key) || BlockProps[key] !== value) {
2947
- BlockProps[key] = value;
2948
- this.setState({
2949
- BlockProps: BlockProps
2950
- });
2951
- }
2952
- }
2953
- highLightField(fieldId) {
2954
- this.props.highLightField(fieldId);
2955
- }
2956
- render() {
2957
- let {
2958
- content,
2959
- footer,
2960
- BlockProps
2961
- } = this.state;
2962
- let blockData = this.props.block;
2963
- let className = "rsssl-grid-item " + blockData.class + " rsssl-" + blockData.id;
2964
- if (this.props.block.content.type === 'react') {
2965
- content = this.props.block.content.data;
2966
- }
2967
- if (this.props.block.footer.type === 'react') {
2968
- footer = this.props.block.footer.data;
2969
- }
2970
- let DynamicBlockProps = {
2971
- saveChangedFields: this.props.saveChangedFields,
2972
- setShowOnBoardingModal: this.props.setShowOnBoardingModal,
2973
- setBlockProps: this.setBlockProps,
2974
- BlockProps: BlockProps,
2975
- runTest: this.runTest,
2976
- fields: this.props.fields,
2977
- isApiLoaded: this.props.isApiLoaded,
2978
- highLightField: this.highLightField,
2979
- selectMainMenu: this.props.selectMainMenu
2980
- };
2981
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
2982
- className: className
2983
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
2984
- className: "rsssl-grid-item-header"
2985
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h3", {
2986
- className: "rsssl-grid-title rsssl-h4"
2987
- }, blockData.title), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
2988
- className: "rsssl-grid-item-controls"
2989
- }, blockData.controls && blockData.controls.type === 'url' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
2990
- href: blockData.controls.data
2991
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Instructions", "really-simple-ssl")), blockData.controls && blockData.controls.type === 'html' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
2992
- className: "rsssl-header-html",
2993
- dangerouslySetInnerHTML: {
2994
- __html: blockData.controls.data
2995
- }
2996
- }), blockData.controls && blockData.controls.type === 'react' && wp.element.createElement(dynamicComponents[blockData.controls.data], DynamicBlockProps))), blockData.content.type !== 'react' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
2997
- className: "rsssl-grid-item-content",
2998
- dangerouslySetInnerHTML: {
2999
- __html: content
3000
- }
3001
- }), blockData.content.type === 'react' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3002
- className: "rsssl-grid-item-content"
3003
- }, wp.element.createElement(dynamicComponents[content], DynamicBlockProps)), blockData.footer.type === 'html' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3004
- className: "rsssl-grid-item-footer",
3005
- dangerouslySetInnerHTML: {
3006
- __html: this.footerHtml
3007
- }
3008
- }), blockData.footer.type === 'react' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3009
- className: "rsssl-grid-item-footer"
3010
- }, wp.element.createElement(dynamicComponents[footer], DynamicBlockProps)));
3011
- }
3012
- }
3013
- /* harmony default export */ __webpack_exports__["default"] = (GridBlock);
3014
-
3015
- /***/ }),
3016
-
3017
- /***/ "./src/DashBoard/OtherPlugins.js":
3018
- /*!***************************************!*\
3019
- !*** ./src/DashBoard/OtherPlugins.js ***!
3020
- \***************************************/
3021
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3022
-
3023
- "use strict";
3024
- __webpack_require__.r(__webpack_exports__);
3025
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
3026
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3027
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
3028
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
3029
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
3030
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
3031
-
3032
-
3033
-
3034
-
3035
-
3036
- const OtherPlugins = props => {
3037
- const [dataLoaded, setDataLoaded] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
3038
- const [dataUpdated, setDataUpdated] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)('');
3039
- const [pluginData, setPluginData] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
3040
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
3041
- if (!dataLoaded) {
3042
- _utils_api__WEBPACK_IMPORTED_MODULE_2__.runTest('otherpluginsdata').then(response => {
3043
- response.data.forEach(function (pluginItem, i) {
3044
- response.data[i].pluginActionNice = pluginActionNice(pluginItem.pluginAction);
3045
- });
3046
- setPluginData(response.data);
3047
- setDataLoaded(true);
3048
- });
3049
- }
3050
- });
3051
- const PluginActions = (slug, pluginAction, e) => {
3052
- if (e) e.preventDefault();
3053
- let data = {};
3054
- data.slug = slug;
3055
- data.pluginAction = pluginAction;
3056
- let pluginItem = getPluginData(slug);
3057
- if (pluginAction === 'download') {
3058
- pluginItem.pluginAction = "downloading";
3059
- } else if (pluginAction === 'activate') {
3060
- pluginItem.pluginAction = "activating";
3061
- }
3062
- pluginItem.pluginActionNice = pluginActionNice(pluginItem.pluginAction);
3063
- updatePluginData(slug, pluginItem);
3064
- if (pluginAction === 'installed' || pluginAction === 'upgrade-to-premium') {
3065
- return;
3066
- }
3067
- _utils_api__WEBPACK_IMPORTED_MODULE_2__.doAction('plugin_actions', data).then(response => {
3068
- pluginItem = response.data;
3069
- updatePluginData(slug, pluginItem);
3070
- PluginActions(slug, pluginItem.pluginAction);
3071
- });
3072
- };
3073
- const getPluginData = slug => {
3074
- return pluginData.filter(pluginItem => {
3075
- return pluginItem.slug === slug;
3076
- })[0];
3077
- };
3078
- const updatePluginData = (slug, newPluginItem) => {
3079
- pluginData.forEach(function (pluginItem, i) {
3080
- if (pluginItem.slug === slug) {
3081
- pluginData[i] = newPluginItem;
3082
- }
3083
- });
3084
- setPluginData(pluginData);
3085
- setDataUpdated(slug + newPluginItem.pluginAction);
3086
- };
3087
- const pluginActionNice = pluginAction => {
3088
- const statuses = {
3089
- 'download': (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Install", "really-simple-ssl"),
3090
- 'activate': (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Activate", "really-simple-ssl"),
3091
- 'activating': (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Activating...", "really-simple-ssl"),
3092
- 'downloading': (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Downloading...", "really-simple-ssl"),
3093
- 'upgrade-to-premium': (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Downloading...", "really-simple-ssl")
3094
- };
3095
- return statuses[pluginAction];
3096
- };
3097
- const otherPluginElement = (plugin, i) => {
3098
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3099
- key: i,
3100
- className: "rsssl-other-plugins-element rsssl-" + plugin.slug
3101
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
3102
- href: plugin.wordpress_url,
3103
- target: "_blank",
3104
- title: plugin.title
3105
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3106
- className: "rsssl-bullet"
3107
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3108
- className: "rsssl-other-plugins-content"
3109
- }, plugin.title)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3110
- className: "rsssl-other-plugin-status"
3111
- }, plugin.pluginAction === 'upgrade-to-premium' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
3112
- target: "_blank",
3113
- href: plugin.upgrade_url
3114
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Upgrade", "really-simple-ssl"))), plugin.pluginAction !== 'upgrade-to-premium' && plugin.pluginAction !== 'installed' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
3115
- href: "#",
3116
- onClick: e => PluginActions(plugin.slug, plugin.pluginAction, e)
3117
- }, plugin.pluginActionNice)), plugin.pluginAction === 'installed' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Installed", "really-simple-ssl"))));
3118
- };
3119
- if (!dataLoaded) {
3120
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_3__["default"], {
3121
- lines: "3"
3122
- });
3123
- }
3124
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3125
- className: "rsssl-other-plugins-container"
3126
- }, pluginData.map((plugin, i) => otherPluginElement(plugin, i))));
3127
- };
3128
- /* harmony default export */ __webpack_exports__["default"] = (OtherPlugins);
3129
-
3130
- /***/ }),
3131
-
3132
- /***/ "./src/DashBoard/ProgressBlock.js":
3133
- /*!****************************************!*\
3134
- !*** ./src/DashBoard/ProgressBlock.js ***!
3135
- \****************************************/
3136
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3137
-
3138
- "use strict";
3139
- __webpack_require__.r(__webpack_exports__);
3140
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
3141
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3142
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
3143
- /* harmony import */ var _TaskElement__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TaskElement */ "./src/DashBoard/TaskElement.js");
3144
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
3145
-
3146
-
3147
-
3148
-
3149
-
3150
- class ProgressBlock extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
3151
- constructor() {
3152
- super(...arguments);
3153
- this.percentageCompleted = 0;
3154
- this.progressText = '';
3155
- this.filter = 'all';
3156
- this.notices = null;
3157
- this.progressLoaded = false;
3158
- this.fields = this.props.fields;
3159
- this.state = {
3160
- progressText: '',
3161
- filter: 'all',
3162
- notices: null,
3163
- percentageCompleted: 0,
3164
- progressLoaded: false
3165
- };
3166
- }
3167
- componentDidMount() {
3168
- this.getProgressData = this.getProgressData.bind(this);
3169
- this.onCloseTaskHandler = this.onCloseTaskHandler.bind(this);
3170
- this.getProgressData();
3171
- }
3172
- componentDidUpdate() {
3173
- //if a field has changed, we update the progress data as well.
3174
- if (this.fields !== this.props.fields) {
3175
- this.fields = this.props.fields;
3176
- this.getProgressData();
3177
- }
3178
- }
3179
- getStyles() {
3180
- return Object.assign({}, {
3181
- width: this.percentageCompleted + "%"
3182
- });
3183
- }
3184
- getProgressData() {
3185
- _utils_api__WEBPACK_IMPORTED_MODULE_1__.runTest('progressData', 'refresh').then(response => {
3186
- this.progressText = response.data.text;
3187
- this.filter = response.data.filter;
3188
- this.percentageCompleted = response.data.percentage;
3189
- this.notices = response.data.notices;
3190
- this.progressLoaded = true;
3191
- this.setState({
3192
- progressLoaded: this.progressLoaded,
3193
- progressText: this.progressText,
3194
- filter: this.filter,
3195
- notices: this.notices,
3196
- percentageCompleted: this.percentageCompleted
3197
- });
3198
- this.props.setBlockProps('notices', this.notices);
3199
- });
3200
- }
3201
- onCloseTaskHandler(e) {
3202
- let button = e.target.closest('button');
3203
- let notice_id = button.getAttribute('data-id');
3204
- let container = button.closest('.rsssl-task-element');
3205
- container.animate({
3206
- marginLeft: ["0px", "-1000px"]
3207
- }, {
3208
- duration: 500,
3209
- easing: "linear",
3210
- iterations: 1,
3211
- fill: "both"
3212
- }).onfinish = function () {
3213
- container.parentElement.removeChild(container);
3214
- };
3215
- let notices = this.props.BlockProps.notices;
3216
- notices = notices.filter(function (notice) {
3217
- return notice.id !== notice_id;
3218
- });
3219
- this.props.setBlockProps('notices', notices);
3220
- return _utils_api__WEBPACK_IMPORTED_MODULE_1__.runTest('dismiss_task', notice_id).then(response => {
3221
- this.percentageCompleted = response.data.percentage;
3222
- this.setState({
3223
- percentageCompleted: this.percentageCompleted
3224
- });
3225
- });
3226
- }
3227
- render() {
3228
- let progressBarColor = '';
3229
- if (this.percentageCompleted < 80) {
3230
- progressBarColor += 'rsssl-orange';
3231
- }
3232
- if (!this.progressLoaded) {
3233
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_3__["default"], {
3234
- lines: "9"
3235
- });
3236
- }
3237
- let filter = 'all';
3238
- if (this.props.BlockProps && this.props.BlockProps.filterStatus) {
3239
- filter = this.props.BlockProps.filterStatus;
3240
- }
3241
- let notices = this.notices;
3242
- if (filter === 'remaining') {
3243
- notices = notices.filter(function (notice) {
3244
- return notice.output.status === 'open';
3245
- });
3246
- }
3247
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3248
- className: "rsssl-progress-block"
3249
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3250
- className: "rsssl-progress-bar"
3251
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3252
- className: "rsssl-progress"
3253
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3254
- className: 'rsssl-bar ' + progressBarColor,
3255
- style: this.getStyles()
3256
- }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3257
- className: "rsssl-progress-text"
3258
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h1", {
3259
- className: "rsssl-progress-percentage"
3260
- }, this.percentageCompleted, "%"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h5", {
3261
- className: "rsssl-progress-text-span"
3262
- }, this.progressText)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3263
- className: "rsssl-scroll-container"
3264
- }, notices.map((notice, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_TaskElement__WEBPACK_IMPORTED_MODULE_2__["default"], {
3265
- key: i,
3266
- index: i,
3267
- notice: notice,
3268
- onCloseTaskHandler: this.onCloseTaskHandler,
3269
- highLightField: this.props.highLightField
3270
- }))));
3271
- }
3272
- }
3273
- /* harmony default export */ __webpack_exports__["default"] = (ProgressBlock);
3274
-
3275
- /***/ }),
3276
-
3277
- /***/ "./src/DashBoard/ProgressBlockHeader.js":
3278
- /*!**********************************************!*\
3279
- !*** ./src/DashBoard/ProgressBlockHeader.js ***!
3280
- \**********************************************/
3281
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3282
-
3283
- "use strict";
3284
- __webpack_require__.r(__webpack_exports__);
3285
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
3286
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3287
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
3288
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
3289
-
3290
-
3291
-
3292
- class ProgressHeader extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
3293
- constructor() {
3294
- super(...arguments);
3295
- this.filter = 'all';
3296
- }
3297
- componentDidMount() {
3298
- this.onClickHandler = this.onClickHandler.bind(this);
3299
- this.setState({
3300
- filter: this.filter
3301
- });
3302
- }
3303
- onClickHandler(e) {
3304
- let filter = e.target.getAttribute('data-filter');
3305
- if (filter === 'all' || filter === 'remaining') {
3306
- this.filter = filter;
3307
- this.setState({
3308
- filter: this.filter
3309
- });
3310
- this.props.setBlockProps('filterStatus', filter);
3311
- sessionStorage.rsssl_task_filter = filter;
3312
- }
3313
- }
3314
- render() {
3315
- if (typeof Storage !== "undefined" && sessionStorage.rsssl_task_filter) {
3316
- this.filter = sessionStorage.rsssl_task_filter;
3317
- }
3318
- let all_task_count = 0;
3319
- let open_task_count = 0;
3320
- let notices = [];
3321
- if (this.props.BlockProps && this.props.BlockProps.notices) {
3322
- notices = this.props.BlockProps.notices;
3323
- all_task_count = notices.length;
3324
- let openNotices = notices.filter(function (notice) {
3325
- return notice.output.status === 'open';
3326
- });
3327
- open_task_count = openNotices.length;
3328
- }
3329
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3330
- className: "rsssl-task-switcher-container rsssl-active-filter-" + this.filter
3331
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
3332
- className: "rsssl-task-switcher rsssl-all-tasks",
3333
- onClick: this.onClickHandler,
3334
- htmlFor: "rsssl-all-tasks",
3335
- "data-filter": "all"
3336
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("All tasks", "really-simple-ssl"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
3337
- className: "rsssl_task_count"
3338
- }, "(", all_task_count, ")")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
3339
- className: "rsssl-task-switcher rsssl-remaining-tasks",
3340
- onClick: this.onClickHandler,
3341
- htmlFor: "rsssl-remaining-tasks",
3342
- "data-filter": "remaining"
3343
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Remaining tasks", "really-simple-ssl"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
3344
- className: "rsssl_task_count"
3345
- }, "(", open_task_count, ")")));
3346
- }
3347
- }
3348
- /* harmony default export */ __webpack_exports__["default"] = (ProgressHeader);
3349
-
3350
- /***/ }),
3351
-
3352
- /***/ "./src/DashBoard/ProgressFooter.js":
3353
- /*!*****************************************!*\
3354
- !*** ./src/DashBoard/ProgressFooter.js ***!
3355
- \*****************************************/
3356
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3357
-
3358
- "use strict";
3359
- __webpack_require__.r(__webpack_exports__);
3360
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
3361
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3362
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
3363
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
3364
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
3365
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! immutability-helper */ "./node_modules/immutability-helper/index.js");
3366
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(immutability_helper__WEBPACK_IMPORTED_MODULE_3__);
3367
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
3368
-
3369
-
3370
-
3371
-
3372
-
3373
-
3374
-
3375
- const ProgressFooter = props => {
3376
- const [certificateIsValid, setCertificateIsValid] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
3377
- const [sslDataLoaded, SetSslDataLoaded] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
3378
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
3379
- _utils_api__WEBPACK_IMPORTED_MODULE_1__.runTest('ssl_status_data').then(response => {
3380
- setCertificateIsValid(response.data.certificate_is_valid);
3381
- SetSslDataLoaded(true);
3382
- });
3383
- }, []);
3384
- const startModal = () => {
3385
- props.setShowOnBoardingModal(true);
3386
- };
3387
- if (!sslDataLoaded) {
3388
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null);
3389
- }
3390
- let redirectValue = props.fields.filter(field => field.id === 'redirect')[0].value;
3391
- let sslEnabled = props.fields.filter(field => field.id === 'ssl_enabled')[0].value;
3392
- let wpconfigFixRequired = rsssl_settings.wpconfig_fix_required;
3393
- let hasMixedContentFixer = props.fields.filter(field => field.id === 'mixed_content_fixer')[0].value;
3394
- let hasRedirect = redirectValue === 'wp_redirect' || redirectValue === 'htaccess';
3395
- let sslStatusText = sslEnabled ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("SSL Activated", "really-simple-ssl") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("SSL not activated", "really-simple-ssl");
3396
- let sslStatusIcon = sslEnabled ? 'circle-check' : 'circle-times';
3397
- let sslStatusColor = sslEnabled ? 'green' : 'red';
3398
- let redirectIcon = hasRedirect ? 'circle-check' : 'circle-times';
3399
- let redirectColor = hasRedirect ? 'green' : 'red';
3400
- let mixedContentIcon = hasMixedContentFixer ? 'circle-check' : 'circle-times';
3401
- let mixedContentColor = hasMixedContentFixer ? 'green' : 'red';
3402
- let disabled = wpconfigFixRequired ? 'disabled' : '';
3403
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, !sslEnabled && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
3404
- disabled: disabled,
3405
- onClick: () => startModal(),
3406
- className: "button button-primary"
3407
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Activate SSL", "really-simple-ssl")), rsssl_settings.pro_plugin_active && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
3408
- className: "rsssl-footer-left"
3409
- }, "Really Simple SSL Pro ", rsssl_settings.pro_version), !rsssl_settings.pro_plugin_active && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
3410
- href: rsssl_settings.upgrade_link,
3411
- target: "_blank",
3412
- className: "button button-default"
3413
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Go Pro", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3414
- className: "rsssl-legend"
3415
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
3416
- name: sslStatusIcon,
3417
- color: sslStatusColor
3418
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, sslStatusText)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3419
- className: "rsssl-legend"
3420
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
3421
- name: mixedContentIcon,
3422
- color: mixedContentColor
3423
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Mixed content", "really-simple-ssl"))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3424
- className: "rsssl-legend"
3425
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
3426
- name: redirectIcon,
3427
- color: redirectColor
3428
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("301 redirect", "really-simple-ssl"))));
3429
- };
3430
- /* harmony default export */ __webpack_exports__["default"] = (ProgressFooter);
3431
-
3432
- /***/ }),
3433
-
3434
- /***/ "./src/DashBoard/SecurityFeaturesBlock/SecurityFeatureBullet.js":
3435
- /*!**********************************************************************!*\
3436
- !*** ./src/DashBoard/SecurityFeaturesBlock/SecurityFeatureBullet.js ***!
3437
- \**********************************************************************/
3438
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3439
-
3440
- "use strict";
3441
- __webpack_require__.r(__webpack_exports__);
3442
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
3443
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3444
- /* harmony import */ var _utils_Hyperlink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../utils/Hyperlink */ "./src/utils/Hyperlink.js");
3445
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
3446
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
3447
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/Icon */ "./src/utils/Icon.js");
3448
-
3449
-
3450
-
3451
-
3452
-
3453
- class SecurityFeatureBullet extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
3454
- constructor() {
3455
- super(...arguments);
3456
- }
3457
- componentDidMount() {}
3458
- render() {
3459
- let field = this.props.field;
3460
- let icon = [];
3461
- icon['name'] = field.value == 1 ? 'circle-check' : 'circle-times';
3462
- icon['color'] = field.value == 1 ? 'green' : 'red';
3463
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3464
- className: "rsssl-new-feature"
3465
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
3466
- name: icon.name,
3467
- color: icon.color
3468
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3469
- className: "rsssl-new-feature-label"
3470
- }, field.value == 1 && field.new_features_block.active, field.value != 1 && field.new_features_block.readmore.length > 0 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Hyperlink__WEBPACK_IMPORTED_MODULE_1__["default"], {
3471
- target: "_blank",
3472
- text: field.new_features_block.inactive + ' - ' + (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("%sRead more%s", "really-simple-ssl"),
3473
- url: field.new_features_block.readmore
3474
- })));
3475
- }
3476
- }
3477
- /* harmony default export */ __webpack_exports__["default"] = (SecurityFeatureBullet);
3478
-
3479
- /***/ }),
3480
-
3481
- /***/ "./src/DashBoard/SecurityFeaturesBlock/SecurityFeaturesBlock.js":
3482
- /*!**********************************************************************!*\
3483
- !*** ./src/DashBoard/SecurityFeaturesBlock/SecurityFeaturesBlock.js ***!
3484
- \**********************************************************************/
3485
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3486
-
3487
- "use strict";
3488
- __webpack_require__.r(__webpack_exports__);
3489
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
3490
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3491
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
3492
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
3493
- /* harmony import */ var _SecurityFeatureBullet__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SecurityFeatureBullet */ "./src/DashBoard/SecurityFeaturesBlock/SecurityFeatureBullet.js");
3494
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
3495
- /* harmony import */ var _utils_Hyperlink__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/Hyperlink */ "./src/utils/Hyperlink.js");
3496
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
3497
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);
3498
-
3499
-
3500
-
3501
-
3502
-
3503
-
3504
-
3505
- class SecurityFeaturesBlock extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
3506
- constructor() {
3507
- super(...arguments);
3508
- }
3509
- componentDidMount() {}
3510
- render() {
3511
- if (this.props.fields && this.props.fields.length == 0) {
3512
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_3__["default"], null);
3513
- }
3514
- let fields = this.props.fields;
3515
- fields = fields.filter(field => field.new_features_block);
3516
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3517
- className: 'rsssl-new-features'
3518
- }, fields.map((field, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_SecurityFeatureBullet__WEBPACK_IMPORTED_MODULE_2__["default"], {
3519
- key: i,
3520
- index: i,
3521
- field: field,
3522
- fields: fields
3523
- }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3524
- className: "rsssl-new-feature-desc"
3525
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Improve WordPress security.", "really-simple-ssl"), "\xA0", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Hyperlink__WEBPACK_IMPORTED_MODULE_4__["default"], {
3526
- target: "_blank",
3527
- text: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Check our %sdocumentation%s", "really-simple-ssl"),
3528
- url: "https://really-simple-ssl.com/instructions/about-hardening-features"
3529
- }), "\xA0", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Hyperlink__WEBPACK_IMPORTED_MODULE_4__["default"], {
3530
- target: "_blank",
3531
- text: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("or use the %sWordPress forum%s.", "really-simple-ssl"),
3532
- url: "https://wordpress.org/support/plugin/really-simple-ssl/"
3533
- }))));
3534
- }
3535
- }
3536
- /* harmony default export */ __webpack_exports__["default"] = (SecurityFeaturesBlock);
3537
-
3538
- /***/ }),
3539
-
3540
- /***/ "./src/DashBoard/SecurityFeaturesBlock/SecurityFeaturesFooter.js":
3541
- /*!***********************************************************************!*\
3542
- !*** ./src/DashBoard/SecurityFeaturesBlock/SecurityFeaturesFooter.js ***!
3543
- \***********************************************************************/
3544
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3545
-
3546
- "use strict";
3547
- __webpack_require__.r(__webpack_exports__);
3548
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
3549
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3550
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
3551
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
3552
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
3553
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
3554
-
3555
-
3556
-
3557
-
3558
- class SecurityFeaturesFooter extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
3559
- constructor() {
3560
- super(...arguments);
3561
- }
3562
- render() {
3563
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
3564
- className: "button button-default",
3565
- href: "#settings"
3566
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Settings', 'really-simple-ssl'));
3567
- }
3568
- }
3569
- /* harmony default export */ __webpack_exports__["default"] = (SecurityFeaturesFooter);
3570
-
3571
- /***/ }),
3572
-
3573
- /***/ "./src/DashBoard/SslLabs.js":
3574
- /*!**********************************!*\
3575
- !*** ./src/DashBoard/SslLabs.js ***!
3576
- \**********************************/
3577
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3578
-
3579
- "use strict";
3580
- __webpack_require__.r(__webpack_exports__);
3581
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
3582
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3583
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
3584
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
3585
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
3586
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! immutability-helper */ "./node_modules/immutability-helper/index.js");
3587
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(immutability_helper__WEBPACK_IMPORTED_MODULE_3__);
3588
- /* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-use */ "./node_modules/react-use/esm/useUpdateEffect.js");
3589
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
3590
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
3591
-
3592
-
3593
-
3594
-
3595
-
3596
-
3597
-
3598
-
3599
- const SslLabs = props => {
3600
- const [sslData, setSslData] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
3601
- const [endpointData, setEndpointData] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)([]);
3602
- const [dataLoaded, setDataLoaded] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
3603
- const hasRunOnce = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
3604
- const clearCache = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
3605
- const requestActive = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
3606
- const intervalId = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
3607
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
3608
- if (!dataLoaded) {
3609
- _utils_api__WEBPACK_IMPORTED_MODULE_1__.runTest('ssltest_get').then(response => {
3610
- if (response.data.hasOwnProperty('host')) {
3611
- let data = processSslData(response.data);
3612
- setSslData(data);
3613
- setEndpointData(data.endpointData);
3614
- setDataLoaded(true);
3615
- }
3616
- });
3617
- }
3618
- });
3619
- const neverScannedYet = () => {
3620
- return !sslData;
3621
- };
3622
- const isLocalHost = () => {
3623
- // return false;
3624
- return window.location.host.indexOf('localhost') !== -1;
3625
- };
3626
- (0,react_use__WEBPACK_IMPORTED_MODULE_6__["default"])(() => {
3627
- if (isLocalHost()) return;
3628
- let status = props.BlockProps.hasOwnProperty('sslScan') ? props.BlockProps['sslScan'] : false;
3629
- if (status === 'active' && sslData.summary && sslData.summary.progress >= 100) {
3630
- clearCache.current = true;
3631
- hasRunOnce.current = false;
3632
- setSslData(false);
3633
- setEndpointData(false);
3634
- }
3635
- if (status === 'active' && sslData.status === 'ERROR') {
3636
- clearCache.current = true;
3637
- setSslData(false);
3638
- setEndpointData(false);
3639
- }
3640
- let scanInComplete = sslData && sslData.status !== 'READY';
3641
- let userClickedStartScan = status === 'active';
3642
- if (clearCache.current) scanInComplete = true;
3643
- let hasErrors = sslData.errors || sslData.status === 'ERROR';
3644
- let startScan = !hasErrors && (scanInComplete || userClickedStartScan);
3645
- if (!requestActive.current && startScan) {
3646
- props.setBlockProps('sslScan', 'active');
3647
- requestActive.current = true;
3648
- if (!hasRunOnce.current) {
3649
- runSslTest();
3650
- intervalId.current = setInterval(function () {
3651
- runSslTest();
3652
- }, 3000);
3653
- hasRunOnce.current = true;
3654
- }
3655
- } else if (sslData && sslData.status === 'READY') {
3656
- props.setBlockProps('sslScan', 'completed');
3657
- clearInterval(intervalId.current);
3658
- }
3659
- });
3660
- const runSslTest = () => {
3661
- getSslLabsData().then(sslData => {
3662
- if (sslData && sslData.status === 'ERROR') {
3663
- sslData = processSslData(sslData);
3664
- setSslData(sslData);
3665
- props.setBlockProps('sslScan', 'completed');
3666
- clearInterval(intervalId.current);
3667
- } else if (sslData.endpoints && sslData.endpoints.filter(endpoint => endpoint.statusMessage === 'Ready').length > 0) {
3668
- let completedEndpoints = sslData.endpoints.filter(endpoint => endpoint.statusMessage === 'Ready');
3669
- let lastCompletedEndpointIndex = completedEndpoints.length - 1;
3670
- let lastCompletedEndpoint = completedEndpoints[lastCompletedEndpointIndex];
3671
- let ipAddress = lastCompletedEndpoint.ipAddress;
3672
- getEndpointData(ipAddress).then(response => {
3673
- if (!response.errors && endpointData) {
3674
- //if the endpoint already is stored, replace it.
3675
- let foundEndpoint = false;
3676
- endpointData.forEach(function (endpoint, i) {
3677
- if (endpoint.ipAddress === response.ipAddress) {
3678
- endpointData[i] = response;
3679
- foundEndpoint = true;
3680
- }
3681
- });
3682
- if (!foundEndpoint) {
3683
- endpointData[endpointData.length] = response;
3684
- }
3685
- setEndpointData(endpointData);
3686
- sslData.endpointData = endpointData;
3687
- }
3688
- if (!sslData.errors) {
3689
- _utils_api__WEBPACK_IMPORTED_MODULE_1__.doAction('store_ssl_labs', sslData).then(response => {});
3690
- }
3691
- sslData = processSslData(sslData);
3692
- setSslData(sslData);
3693
- requestActive.current = false;
3694
- });
3695
- } else {
3696
- //if there are no errors, this is the first request. We reset the endpoint data we have.
3697
- setEndpointData([]);
3698
- sslData.endpointData = endpointData;
3699
- sslData = processSslData(sslData);
3700
- setSslData(sslData);
3701
- if (!sslData.errors) {
3702
- _utils_api__WEBPACK_IMPORTED_MODULE_1__.doAction('store_ssl_labs', sslData).then(response => {});
3703
- }
3704
- requestActive.current = false;
3705
- }
3706
- });
3707
- };
3708
- const processSslData = sslData => {
3709
- let totalProgress = 100;
3710
- let progress = sslData.progress ? sslData.progress : 0;
3711
- let startTime = sslData.startTime ? sslData.startTime : '';
3712
- let statusMessage = sslData.statusMessage ? sslData.statusMessage : '';
3713
- let grade = sslData.grade ? sslData.grade : '?';
3714
- let ipAddress = '';
3715
- if (sslData.endpoints) {
3716
- totalProgress = sslData.endpoints.length * 100;
3717
- let completedEndpoints = sslData.endpoints.filter(endpoint => endpoint.statusMessage === 'Ready');
3718
- let completedEndpointsLength = completedEndpoints.length;
3719
- let lastCompletedEndpoint = completedEndpoints[completedEndpointsLength - 1];
3720
- let activeEndpoint = sslData.endpoints.filter(endpoint => endpoint.statusMessage === 'In progress')[0];
3721
- let activeEndpointProgress = 0;
3722
- if (activeEndpoint) {
3723
- activeEndpointProgress = activeEndpoint.progress ? activeEndpoint.progress : 0;
3724
- statusMessage = activeEndpoint.statusDetailsMessage;
3725
- ipAddress = activeEndpoint.ipAddress;
3726
- }
3727
- if (lastCompletedEndpoint) grade = lastCompletedEndpoint.grade;
3728
- progress = (completedEndpointsLength * 100 + activeEndpointProgress) / sslData.endpoints.length;
3729
- }
3730
- if (sslData.errors) {
3731
- grade = '?';
3732
- statusMessage = sslData.errors[0].message;
3733
- progress = 100;
3734
- }
3735
- let summary = {};
3736
- if (progress >= 100) {
3737
- props.setBlockProps('sslScan', 'completed');
3738
- }
3739
- summary.grade = grade;
3740
- summary.startTime = startTime;
3741
- summary.statusMessage = statusMessage;
3742
- summary.ipAddress = ipAddress;
3743
- summary.progress = progress;
3744
- sslData.summary = summary;
3745
- return sslData;
3746
- };
3747
- const getEndpointData = ipAddress => {
3748
- const host = window.location.host;
3749
- // const host = "ziprecipes.net";
3750
- const url = 'https://api.ssllabs.com/api/v3/getEndpointData?host=' + host + '&s=' + ipAddress;
3751
- let data = {};
3752
- data.url = url;
3753
- return _utils_api__WEBPACK_IMPORTED_MODULE_1__.doAction('ssltest_run', data).then(response => {
3754
- return JSON.parse(response.data);
3755
- });
3756
- };
3757
- const getSslLabsData = e => {
3758
- let clearCacheUrl = '';
3759
- if (clearCache.current) {
3760
- clearCache.current = false;
3761
- clearCacheUrl = '&startNew=on';
3762
- setSslData(false);
3763
- }
3764
- const host = window.location.host;
3765
- // const host = "ziprecipes.net";
3766
- const url = "https://api.ssllabs.com/api/v3/analyze?host=" + host + clearCacheUrl;
3767
- let data = {};
3768
- data.url = url;
3769
- return _utils_api__WEBPACK_IMPORTED_MODULE_1__.doAction('ssltest_run', data).then(response => {
3770
- return JSON.parse(response.data);
3771
- });
3772
- };
3773
- const getStyles = () => {
3774
- let progress = 0;
3775
- if (sslData && sslData.summary.progress) {
3776
- progress = sslData.summary.progress;
3777
- } else if (progress == 0 && props.BlockProps['sslScan'] === 'active') {
3778
- progress = 5;
3779
- }
3780
- return Object.assign({}, {
3781
- width: progress + "%"
3782
- });
3783
- };
3784
- const hasHSTS = () => {
3785
- let status = 'processing';
3786
- if (neverScannedYet()) {
3787
- status = 'inactive';
3788
- }
3789
- if (endpointData && endpointData.length > 0) {
3790
- let failedData = endpointData.filter(function (endpoint) {
3791
- return endpoint.details.hstsPolicy.status !== 'present';
3792
- });
3793
- status = failedData.length > 0 ? 'error' : 'success';
3794
- }
3795
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, status === 'inactive' && scoreSnippet("rsssl-test-inactive", "HSTS"), status === 'processing' && scoreSnippet("rsssl-test-processing", "HSTS..."), status === 'error' && scoreSnippet("rsssl-test-error", "No HSTS header"), status === 'success' && scoreSnippet("rsssl-test-success", "HSTS header detected"));
3796
- };
3797
- const cipherStrength = () => {
3798
- // Start with the score of the strongest cipher.
3799
- // Add the score of the weakest cipher.
3800
- // Divide the total by 2.
3801
- let rating = 0;
3802
- let ratingClass = 'rsssl-test-processing';
3803
- if (neverScannedYet()) {
3804
- ratingClass = 'rsssl-test-inactive';
3805
- }
3806
- if (endpointData && endpointData.length > 0) {
3807
- status = 'success';
3808
- let weakest = 256;
3809
- let strongest = 128;
3810
- endpointData.forEach(function (endpoint, i) {
3811
- endpoint.details.suites.forEach(function (suite, j) {
3812
- suite.list.forEach(function (cipher, j) {
3813
- weakest = cipher.cipherStrength < weakest ? cipher.cipherStrength : weakest;
3814
- strongest = cipher.cipherStrength > strongest ? cipher.cipherStrength : strongest;
3815
- });
3816
- });
3817
- });
3818
- rating = (getCypherRating(weakest) + getCypherRating(strongest)) / 2;
3819
- rating = Math.round(rating);
3820
- ratingClass = rating > 70 ? "rsssl-test-success" : "rsssl-test-error";
3821
- }
3822
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, scoreSnippet(ratingClass, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Cipher strength", "really-simple-ssl") + ' ' + rating + '%'));
3823
- };
3824
-
3825
- /*
3826
- * https://github.com/ssllabs/research/wiki/SSL-Server-Rating-Guide#Certificate-strength
3827
- */
3828
- const getCypherRating = strength => {
3829
- let score = 0;
3830
- if (strength == 0) {
3831
- score = 0;
3832
- } else if (strength < 128) {
3833
- score = 20;
3834
- } else if (strength < 256) {
3835
- score = 80;
3836
- } else {
3837
- score = 100;
3838
- }
3839
- return score;
3840
- };
3841
- const certificateStatus = () => {
3842
- let status = 'processing';
3843
- if (neverScannedYet()) {
3844
- status = 'inactive';
3845
- }
3846
- if (endpointData && endpointData.length > 0) {
3847
- let failedData = endpointData.filter(function (endpoint) {
3848
- return endpoint.grade.indexOf('A') === -1;
3849
- });
3850
- status = failedData.length > 0 ? 'error' : 'success';
3851
- }
3852
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, status === 'inactive' && scoreSnippet("rsssl-test-inactive", "Certificate"), status === 'processing' && scoreSnippet("rsssl-test-processing", "Certificate..."), status === 'error' && !hasErrors && scoreSnippet("rsssl-test-error", "Certificate issue"), status === 'success' && scoreSnippet("rsssl-test-success", "Valid certificate"));
3853
- };
3854
- const scoreSnippet = (className, content) => {
3855
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3856
- className: "rsssl-score-container"
3857
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3858
- className: "rsssl-score-snippet " + className
3859
- }, content));
3860
- };
3861
- const supportsTlS11 = () => {
3862
- let status = 'processing';
3863
- if (neverScannedYet()) {
3864
- status = 'inactive';
3865
- }
3866
- if (endpointData && endpointData.length > 0) {
3867
- status = 'success';
3868
- endpointData.forEach(function (endpoint, i) {
3869
- endpoint.details.protocols.forEach(function (protocol, j) {
3870
- if (protocol.version === '1.1') status = 'error';
3871
- });
3872
- });
3873
- }
3874
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, status === 'inactive' && scoreSnippet("rsssl-test-inactive", "Protocol support"), status === 'processing' && scoreSnippet("rsssl-test-processing", "Protocol support..."), status === 'error' && scoreSnippet("rsssl-test-error", "Supports TLS 1.1"), status === 'success' && scoreSnippet("rsssl-test-success", "No TLS 1.1"));
3875
- };
3876
- let sslClass = 'rsssl-inactive';
3877
- let progress = sslData ? sslData.summary.progress : 0;
3878
- let startTime = sslData ? sslData.summary.startTime : false;
3879
- let startTimeNice = '';
3880
- if (startTime) {
3881
- let newDate = new Date();
3882
- newDate.setTime(startTime);
3883
- startTimeNice = newDate.toLocaleString();
3884
- } else {
3885
- startTimeNice = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("No test started yet", "really-simple-ssl");
3886
- }
3887
- let statusMessage = sslData ? sslData.summary.statusMessage : false;
3888
- let grade = sslData ? sslData.summary.grade : '?';
3889
- let ipAddress = sslData ? sslData.summary.ipAddress : '';
3890
- if (sslData && sslData.status === 'READY') {
3891
- if (grade.indexOf('A') !== -1) {
3892
- sslClass = "rsssl-success";
3893
- } else {
3894
- sslClass = "rsssl-error";
3895
- }
3896
- }
3897
- if (neverScannedYet()) {
3898
- sslClass = "rsssl-inactive";
3899
- }
3900
- let gradeClass = neverScannedYet() ? 'inactive' : grade;
3901
- let host = window.location.protocol + "//" + window.location.host;
3902
- let url = 'https://www.ssllabs.com/analyze.html?d=' + encodeURIComponent(host);
3903
- let hasErrors = false;
3904
- let errorMessage = '';
3905
- let sslStatusColor = 'black';
3906
- if (isLocalHost()) {
3907
- hasErrors = true;
3908
- sslStatusColor = 'red';
3909
- errorMessage = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Not available on localhost", "really-simple-ssl");
3910
- } else if (sslData && (sslData.errors || sslData.status === 'ERROR')) {
3911
- hasErrors = true;
3912
- sslStatusColor = 'red';
3913
- errorMessage = statusMessage;
3914
- } else if (sslData && progress < 100) {
3915
- hasErrors = true;
3916
- sslStatusColor = 'orange';
3917
- errorMessage = statusMessage;
3918
- }
3919
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3920
- className: sslClass
3921
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3922
- className: "rsssl-gridblock-progress-container " + sslClass
3923
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3924
- className: "rsssl-gridblock-progress",
3925
- style: getStyles()
3926
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3927
- className: "rsssl-ssl-test-container " + sslClass
3928
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3929
- className: "rsssl-ssl-test "
3930
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3931
- className: "rsssl-ssl-test-information"
3932
- }, supportsTlS11(), hasHSTS(), certificateStatus(), cipherStrength()), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3933
- className: "rsssl-ssl-test-grade rsssl-grade-" + gradeClass
3934
- }, !neverScannedYet() && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", null, grade), neverScannedYet() && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null)))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3935
- className: "rsssl-details"
3936
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3937
- className: "rsssl-detail-icon"
3938
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
3939
- name: "info",
3940
- color: sslStatusColor
3941
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3942
- className: "rsssl-detail rsssl-status-" + sslStatusColor
3943
- }, hasErrors && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, errorMessage), !hasErrors && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, " ", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("What does my score mean?", "really-simple-ssl"), "\xA0", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
3944
- href: "https://really-simple-ssl.com/instructions/about-ssl-labs/",
3945
- target: "_blank"
3946
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Read more", "really-simple-ssl"))))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3947
- className: "rsssl-details"
3948
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3949
- className: "rsssl-detail-icon"
3950
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
3951
- name: "list",
3952
- color: "black"
3953
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3954
- className: "rsssl-detail"
3955
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Last check:", "really-simple-ssl"), "\xA0", startTimeNice)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3956
- className: "rsssl-details"
3957
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3958
- className: "rsssl-detail-icon"
3959
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
3960
- name: "external-link",
3961
- color: "black"
3962
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
3963
- className: "rsssl-detail"
3964
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
3965
- href: url,
3966
- target: "_blank"
3967
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("View detailed report on Qualys SSL Labs", "really-simple-ssl")))));
3968
- };
3969
- /* harmony default export */ __webpack_exports__["default"] = (SslLabs);
3970
-
3971
- /***/ }),
3972
-
3973
- /***/ "./src/DashBoard/SslLabsFooter.js":
3974
- /*!****************************************!*\
3975
- !*** ./src/DashBoard/SslLabsFooter.js ***!
3976
- \****************************************/
3977
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3978
-
3979
- "use strict";
3980
- __webpack_require__.r(__webpack_exports__);
3981
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
3982
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
3983
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
3984
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
3985
-
3986
-
3987
-
3988
- const SslLabsFooter = props => {
3989
- const startScan = () => {
3990
- props.setBlockProps('sslScan', 'active');
3991
- };
3992
- let status = props.BlockProps && props.BlockProps.hasOwnProperty('sslScan') ? props.BlockProps['sslScan'] : false;
3993
- let disabled = status === 'active' || window.location.host.indexOf('localhost') !== -1;
3994
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
3995
- disabled: disabled,
3996
- onClick: e => startScan(e),
3997
- className: "button button-default"
3998
- }, status === 'paused' && (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Continue SSL Health check", "really-simple-ssl"), status !== 'paused' && (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Check SSL Health", "really-simple-ssl")));
3999
- };
4000
- /* harmony default export */ __webpack_exports__["default"] = (SslLabsFooter);
4001
-
4002
- /***/ }),
4003
-
4004
- /***/ "./src/DashBoard/TaskElement.js":
4005
- /*!**************************************!*\
4006
- !*** ./src/DashBoard/TaskElement.js ***!
4007
- \**************************************/
4008
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4009
-
4010
- "use strict";
4011
- __webpack_require__.r(__webpack_exports__);
4012
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4013
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
4014
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4015
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
4016
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
4017
-
4018
-
4019
-
4020
-
4021
- class TaskElement extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
4022
- constructor() {
4023
- super(...arguments);
4024
- }
4025
- handleClick() {
4026
- this.props.highLightField(this.props.notice.output.highlight_field_id);
4027
- }
4028
- componentDidMount() {
4029
- this.handleClick = this.handleClick.bind(this);
4030
- }
4031
- render() {
4032
- let notice = this.props.notice;
4033
- let premium = notice.output.icon === 'premium';
4034
- //treat links to rsssl.com and internal links different.
4035
- let urlIsExternal = notice.output.url && notice.output.url.indexOf('really-simple-ssl.com') !== -1;
4036
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4037
- className: "rsssl-task-element"
4038
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
4039
- className: 'rsssl-task-status rsssl-' + notice.output.icon
4040
- }, notice.output.label), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
4041
- className: "rsssl-task-message",
4042
- dangerouslySetInnerHTML: {
4043
- __html: notice.output.msg
4044
- }
4045
- }), urlIsExternal && notice.output.url && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
4046
- target: "_blank",
4047
- href: notice.output.url
4048
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("More info", "really-simple-ssl")), !premium && !urlIsExternal && notice.output.url && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
4049
- className: "rsssl-task-enable button button-secondary",
4050
- href: notice.output.url
4051
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Fix", "really-simple-ssl")), !premium && notice.output.highlight_field_id && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
4052
- className: "rsssl-task-enable button button-secondary",
4053
- onClick: this.handleClick
4054
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Fix", "really-simple-ssl")), notice.output.plusone && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
4055
- className: "rsssl-plusone"
4056
- }, "1"), notice.output.dismissible && notice.output.status !== 'completed' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4057
- className: "rsssl-task-dismiss"
4058
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
4059
- type: "button",
4060
- "data-id": notice.id,
4061
- onClick: this.props.onCloseTaskHandler
4062
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
4063
- name: "times"
4064
- }))));
4065
- }
4066
- }
4067
- /* harmony default export */ __webpack_exports__["default"] = (TaskElement);
4068
-
4069
- /***/ }),
4070
-
4071
- /***/ "./src/Header.js":
4072
- /*!***********************!*\
4073
- !*** ./src/Header.js ***!
4074
- \***********************/
4075
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4076
-
4077
- "use strict";
4078
- __webpack_require__.r(__webpack_exports__);
4079
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4080
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
4081
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4082
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
4083
- /* harmony import */ var _utils_getAnchor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/getAnchor */ "./src/utils/getAnchor.js");
4084
-
4085
-
4086
-
4087
-
4088
- class Header extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
4089
- constructor() {
4090
- super(...arguments);
4091
- }
4092
- handleClick(menuId) {
4093
- this.props.selectMainMenu(menuId);
4094
- }
4095
- componentDidMount() {
4096
- this.handleClick = this.handleClick.bind(this);
4097
- }
4098
- render() {
4099
- let plugin_url = rsssl_settings.plugin_url;
4100
- let active_menu_item = this.props.selectedMainMenuItem;
4101
- var menu = Object.values(this.props.superMenu);
4102
- menu = menu.filter(item => item !== null);
4103
- //filter out hidden menus if not in the anchor
4104
- let anchor = (0,_utils_getAnchor__WEBPACK_IMPORTED_MODULE_2__["default"])('main');
4105
- menu = menu.filter(item => !item.default_hidden || anchor === item.id);
4106
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4107
- className: "rsssl-header-container"
4108
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4109
- className: "rsssl-header"
4110
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
4111
- className: "rsssl-logo",
4112
- src: plugin_url + "assets/img/really-simple-ssl-logo.svg",
4113
- alt: "Really Simple SSL logo"
4114
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4115
- className: "rsssl-header-left"
4116
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("nav", {
4117
- className: "rsssl-header-menu"
4118
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("ul", null, menu.map((menu_item, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
4119
- key: i
4120
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
4121
- className: active_menu_item === menu_item.id ? 'active' : '',
4122
- onClick: () => this.handleClick(menu_item.id),
4123
- href: "#" + menu_item.id.toString()
4124
- }, menu_item.title)))))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4125
- className: "rsssl-header-right"
4126
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
4127
- className: "rsssl-knowledge-base-link",
4128
- href: "https://really-simple-ssl.com/knowledge-base",
4129
- target: "_blank"
4130
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Documentation", "really-simple-ssl")), rsssl_settings.pro_plugin_active && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
4131
- href: "https://wordpress.org/support/plugin/really-simple-ssl/",
4132
- className: "button button-black",
4133
- target: "_blank"
4134
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Support", "really-simple-ssl")), !rsssl_settings.pro_plugin_active && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
4135
- href: rsssl_settings.upgrade_link,
4136
- className: "button button-black",
4137
- target: "_blank"
4138
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Go Pro", "really-simple-ssl")))));
4139
- }
4140
- }
4141
- /* harmony default export */ __webpack_exports__["default"] = (Header);
4142
-
4143
- /***/ }),
4144
-
4145
- /***/ "./src/LetsEncrypt/Activate.js":
4146
- /*!*************************************!*\
4147
- !*** ./src/LetsEncrypt/Activate.js ***!
4148
- \*************************************/
4149
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4150
-
4151
- "use strict";
4152
- __webpack_require__.r(__webpack_exports__);
4153
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4154
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
4155
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4156
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
4157
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
4158
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! immutability-helper */ "./node_modules/immutability-helper/index.js");
4159
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(immutability_helper__WEBPACK_IMPORTED_MODULE_3__);
4160
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
4161
- /* harmony import */ var _Onboarding_Onboarding__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Onboarding/Onboarding */ "./src/Onboarding/Onboarding.js");
4162
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
4163
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__);
4164
-
4165
-
4166
-
4167
-
4168
-
4169
-
4170
-
4171
-
4172
-
4173
- const Activate = props => {
4174
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4175
- className: "rsssl-lets-encrypt-tests"
4176
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Onboarding_Onboarding__WEBPACK_IMPORTED_MODULE_5__["default"], {
4177
- selectMainMenu: props.selectMainMenu
4178
- }));
4179
- };
4180
- /* harmony default export */ __webpack_exports__["default"] = (Activate);
4181
-
4182
- /***/ }),
4183
-
4184
- /***/ "./src/LetsEncrypt/Directories.js":
4185
- /*!****************************************!*\
4186
- !*** ./src/LetsEncrypt/Directories.js ***!
4187
- \****************************************/
4188
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4189
-
4190
- "use strict";
4191
- __webpack_require__.r(__webpack_exports__);
4192
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4193
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
4194
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4195
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
4196
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
4197
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
4198
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__);
4199
- /* harmony import */ var _Settings_Notices__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Settings/Notices */ "./src/Settings/Notices.js");
4200
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! immutability-helper */ "./node_modules/immutability-helper/index.js");
4201
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(immutability_helper__WEBPACK_IMPORTED_MODULE_5__);
4202
- /* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-use */ "./node_modules/react-use/esm/useUpdateEffect.js");
4203
- /* harmony import */ var _utils_sleeper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/sleeper */ "./src/utils/sleeper.js");
4204
- /* harmony import */ var _utils_Hyperlink__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/Hyperlink */ "./src/utils/Hyperlink.js");
4205
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
4206
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__);
4207
-
4208
-
4209
-
4210
-
4211
-
4212
-
4213
-
4214
-
4215
-
4216
-
4217
-
4218
- const Directories = props => {
4219
- const action = props.action;
4220
- (0,react_use__WEBPACK_IMPORTED_MODULE_9__["default"])(() => {
4221
- if (action.action === 'challenge_directory_reachable' && action.status === 'error') {
4222
- props.addHelp(props.field.id, 'default', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("The challenge directory is used to verify the domain ownership.", "really-simple-ssl"));
4223
- }
4224
- if (action.action === 'check_key_directory' && action.status === 'error') {
4225
- props.addHelp(props.field.id, 'default', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("The key directory is needed to store the generated keys.", "really-simple-ssl") + ' ' + (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("By placing it outside the root folder, it is not publicly accessible.", "really-simple-ssl"));
4226
- }
4227
- if (action.action === 'check_certs_directory' && action.status === 'error') {
4228
- props.addHelp(props.field.id, 'default', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("The certificate will get stored in this directory.", "really-simple-ssl") + ' ' + (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("By placing it outside the root folder, it is not publicly accessible.", "really-simple-ssl"));
4229
- }
4230
- });
4231
- if (!action) {
4232
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null);
4233
- }
4234
- const handleSwitchToDNS = () => {
4235
- props.updateField('verification_type', 'dns');
4236
- return _utils_api__WEBPACK_IMPORTED_MODULE_2__.runLetsEncryptTest('update_verification_type', 'dns').then(response => {
4237
- props.selectMenu('le-dns-verification');
4238
- const notice = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.dispatch)('core/notices').createNotice('success', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Switched to DNS', 'really-simple-ssl'), {
4239
- __unstableHTML: true,
4240
- id: 'rsssl_switched_to_dns',
4241
- type: 'snackbar',
4242
- isDismissible: true
4243
- }).then((0,_utils_sleeper__WEBPACK_IMPORTED_MODULE_6__["default"])(3000)).then(response => {
4244
- (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.dispatch)('core/notices').removeNotice('rsssl_switched_to_dns');
4245
- });
4246
- });
4247
- };
4248
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4249
- className: "rsssl-test-results"
4250
- }, action.status === 'error' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h4", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Next step", "really-simple-ssl")), action.status === 'error' && action.action === 'challenge_directory_reachable' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("If the challenge directory cannot be created, or is not reachable, you can either remove the server limitation, or change to DNS verification.", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.Button, {
4251
- variant: "secondary",
4252
- onClick: () => handleSwitchToDNS()
4253
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Switch to DNS verification', 'really-simple-ssl'))), action.status !== 'error' && rsssl_settings.hosting_dashboard === 'cpanel' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Hyperlink__WEBPACK_IMPORTED_MODULE_7__["default"], {
4254
- target: "_blank",
4255
- text: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("If you also want to secure subdomains like mail.domain.com, cpanel.domain.com, you have to use the %sDNS%s challenge.", "really-simple-ssl"),
4256
- url: "https://really-simple-ssl.com/lets-encrypt-authorization-with-dns"
4257
- }), "\xA0", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Please note that auto-renewal with a DNS challenge might not be possible.", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.Button, {
4258
- variant: "secondary",
4259
- onClick: () => handleSwitchToDNS()
4260
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Switch to DNS verification', 'really-simple-ssl'))), action.status === 'error' && action.action === 'check_challenge_directory' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h4", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Create a challenge directory", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Navigate in FTP or File Manager to the root of your WordPress installation:", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("ul", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
4261
- className: "rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"
4262
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Create a folder called “.well-known”', 'really-simple-ssl')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
4263
- className: "rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"
4264
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Inside the folder called “.well-known” create a new folder called “acme-challenge”, with 644 writing permissions.', 'really-simple-ssl')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
4265
- className: "rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"
4266
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Click the refresh button.', 'really-simple-ssl'))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h4", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Or you can switch to DNS verification", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("If the challenge directory cannot be created, you can either remove the server limitation, or change to DNS verification.", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.Button, {
4267
- variant: "secondary",
4268
- onClick: () => handleSwitchToDNS()
4269
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Switch to DNS verification', 'really-simple-ssl'))), action.status === 'error' && action.action === 'check_key_directory' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h4", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Create a key directory", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Navigate in FTP or File Manager to one level above the root of your WordPress installation:", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("ul", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
4270
- className: "rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"
4271
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Create a folder called “ssl”', 'really-simple-ssl')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
4272
- className: "rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"
4273
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Inside the folder called “ssl” create a new folder called “keys”, with 644 writing permissions.', 'really-simple-ssl')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
4274
- className: "rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"
4275
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Click the refresh button.', 'really-simple-ssl')))), action.status === 'error' && action.action === 'check_certs_directory' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h4", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Create a certs directory", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Navigate in FTP or File Manager to one level above the root of your WordPress installation:", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("ul", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
4276
- className: "rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"
4277
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Create a folder called “ssl”', 'really-simple-ssl')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
4278
- className: "rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"
4279
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Inside the folder called “ssl” create a new folder called “certs”, with 644 writing permissions.', 'really-simple-ssl')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
4280
- className: "rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"
4281
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Click the refresh button.', 'really-simple-ssl')))));
4282
- };
4283
- /* harmony default export */ __webpack_exports__["default"] = (Directories);
4284
-
4285
- /***/ }),
4286
-
4287
- /***/ "./src/LetsEncrypt/DnsVerification.js":
4288
- /*!********************************************!*\
4289
- !*** ./src/LetsEncrypt/DnsVerification.js ***!
4290
- \********************************************/
4291
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4292
-
4293
- "use strict";
4294
- __webpack_require__.r(__webpack_exports__);
4295
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4296
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
4297
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4298
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
4299
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
4300
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
4301
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__);
4302
- /* harmony import */ var _Settings_Notices__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Settings/Notices */ "./src/Settings/Notices.js");
4303
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! immutability-helper */ "./node_modules/immutability-helper/index.js");
4304
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(immutability_helper__WEBPACK_IMPORTED_MODULE_5__);
4305
- /* harmony import */ var _utils_Hyperlink__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/Hyperlink */ "./src/utils/Hyperlink.js");
4306
- /* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-use */ "./node_modules/react-use/esm/useUpdateEffect.js");
4307
- /* harmony import */ var _utils_sleeper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/sleeper */ "./src/utils/sleeper.js");
4308
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
4309
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__);
4310
-
4311
-
4312
-
4313
-
4314
-
4315
-
4316
-
4317
-
4318
-
4319
-
4320
-
4321
- const DnsVerification = props => {
4322
- const action = props.action;
4323
- const [tokens, setTokens] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
4324
- (0,react_use__WEBPACK_IMPORTED_MODULE_9__["default"])(() => {
4325
- if (action && action.action === 'challenge_directory_reachable' && action.status === 'error') {
4326
- props.addHelp(props.field.id, 'default', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("The challenge directory is used to verify the domain ownership.", "really-simple-ssl"));
4327
- }
4328
- let newTokens = action ? action.output : false;
4329
- if (typeof newTokens === "undefined" || newTokens.length === 0) {
4330
- newTokens = false;
4331
- }
4332
- if (newTokens) {
4333
- setTokens(newTokens);
4334
- }
4335
- });
4336
- const handleSwitchToDir = () => {
4337
- props.updateField('verification_type', 'dir');
4338
- return _utils_api__WEBPACK_IMPORTED_MODULE_2__.runLetsEncryptTest('update_verification_type', 'dir').then(response => {
4339
- props.selectMenu('le-directories');
4340
- const notice = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.dispatch)('core/notices').createNotice('success', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Switched to directory', 'really-simple-ssl'), {
4341
- __unstableHTML: true,
4342
- id: 'rsssl_switched_to_dns',
4343
- type: 'snackbar',
4344
- isDismissible: true
4345
- }).then((0,_utils_sleeper__WEBPACK_IMPORTED_MODULE_7__["default"])(3000)).then(response => {
4346
- (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.dispatch)('core/notices').removeNotice('rsssl_switched_to_dns');
4347
- });
4348
- });
4349
- };
4350
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, tokens && tokens.length > 0 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4351
- className: "rsssl-test-results"
4352
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h4", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Next step", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Add the following token as text record to your DNS records. We recommend to use a short TTL during installation, in case you need to change it.", "really-simple-ssl"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Hyperlink__WEBPACK_IMPORTED_MODULE_6__["default"], {
4353
- target: "_blank",
4354
- text: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Read more", "really-simple-ssl"),
4355
- url: "https://really-simple-ssl.com/how-to-add-a-txt-record-to-dns"
4356
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4357
- className: "rsssl-dns-text-records"
4358
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4359
- key: 0
4360
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4361
- className: "rsssl-dns-domain"
4362
- }, "@/", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("domain", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4363
- className: "rsssl-dns-field"
4364
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Value", "really-simple-ssl"))), tokens.map((tokenData, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4365
- key: i + 1
4366
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4367
- className: "rsssl-dns-"
4368
- }, "_acme-challenge.", tokenData.domain), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4369
- className: "rsssl-dns-field rsssl-selectable"
4370
- }, tokenData.token))))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4371
- className: "rsssl-test-results"
4372
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("DNS verification active. You can switch back to directory verification here.", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.Button, {
4373
- variant: "secondary",
4374
- onClick: () => handleSwitchToDir()
4375
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Switch to directory verification', 'really-simple-ssl'))));
4376
- };
4377
- /* harmony default export */ __webpack_exports__["default"] = (DnsVerification);
4378
-
4379
- /***/ }),
4380
-
4381
- /***/ "./src/LetsEncrypt/Generation.js":
4382
- /*!***************************************!*\
4383
- !*** ./src/LetsEncrypt/Generation.js ***!
4384
- \***************************************/
4385
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4386
-
4387
- "use strict";
4388
- __webpack_require__.r(__webpack_exports__);
4389
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4390
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
4391
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4392
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
4393
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
4394
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
4395
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__);
4396
- /* harmony import */ var _Settings_Notices__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Settings/Notices */ "./src/Settings/Notices.js");
4397
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! immutability-helper */ "./node_modules/immutability-helper/index.js");
4398
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(immutability_helper__WEBPACK_IMPORTED_MODULE_5__);
4399
- /* harmony import */ var _utils_sleeper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/sleeper */ "./src/utils/sleeper.js");
4400
- /* harmony import */ var _utils_Hyperlink__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/Hyperlink */ "./src/utils/Hyperlink.js");
4401
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
4402
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__);
4403
-
4404
-
4405
-
4406
-
4407
-
4408
-
4409
-
4410
-
4411
-
4412
-
4413
-
4414
- const Generation = props => {
4415
- const action = props.action;
4416
- if (!action) {
4417
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null);
4418
- }
4419
- const handleSkipDNS = () => {
4420
- return _utils_api__WEBPACK_IMPORTED_MODULE_2__.runLetsEncryptTest('skip_dns_check').then(response => {
4421
- props.restartTests();
4422
- const notice = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.dispatch)('core/notices').createNotice('success', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Skip DNS verification ', 'really-simple-ssl'), {
4423
- __unstableHTML: true,
4424
- id: 'rsssl_skip_dns',
4425
- type: 'snackbar',
4426
- isDismissible: true
4427
- }).then((0,_utils_sleeper__WEBPACK_IMPORTED_MODULE_6__["default"])(3000)).then(response => {
4428
- (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.dispatch)('core/notices').removeNotice('rsssl_skip_dns');
4429
- });
4430
- });
4431
- };
4432
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4433
- className: "rsssl-test-results"
4434
- }, action.status === 'error' && action.action === 'verify_dns' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("We could not check the DNS records. If you just added the record, please check in a few minutes.", "really-simple-ssl"), "\xA0", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Hyperlink__WEBPACK_IMPORTED_MODULE_7__["default"], {
4435
- target: "_blank",
4436
- text: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("You can manually check the DNS records in an %sonline tool%s.", "really-simple-ssl"),
4437
- url: "https://mxtoolbox.com/SuperTool.aspx"
4438
- }), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("If you're sure it's set correctly, you can click the button to skip the DNS check.", "really-simple-ssl"), "\xA0"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.Button, {
4439
- variant: "secondary",
4440
- onClick: () => handleSkipDNS()
4441
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Skip DNS check', 'really-simple-ssl'))));
4442
- };
4443
- /* harmony default export */ __webpack_exports__["default"] = (Generation);
4444
-
4445
- /***/ }),
4446
-
4447
- /***/ "./src/LetsEncrypt/Installation.js":
4448
- /*!*****************************************!*\
4449
- !*** ./src/LetsEncrypt/Installation.js ***!
4450
- \*****************************************/
4451
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4452
-
4453
- "use strict";
4454
- __webpack_require__.r(__webpack_exports__);
4455
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4456
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
4457
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4458
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
4459
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
4460
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
4461
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_3__);
4462
- /* harmony import */ var _Settings_Notices__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Settings/Notices */ "./src/Settings/Notices.js");
4463
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! immutability-helper */ "./node_modules/immutability-helper/index.js");
4464
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(immutability_helper__WEBPACK_IMPORTED_MODULE_5__);
4465
- /* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-use */ "./node_modules/react-use/esm/useUpdateEffect.js");
4466
- /* harmony import */ var _utils_sleeper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/sleeper */ "./src/utils/sleeper.js");
4467
- /* harmony import */ var _utils_Hyperlink__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/Hyperlink */ "./src/utils/Hyperlink.js");
4468
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
4469
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__);
4470
-
4471
-
4472
-
4473
-
4474
-
4475
-
4476
-
4477
-
4478
-
4479
-
4480
-
4481
- const Installation = props => {
4482
- const action = props.action;
4483
- const [installationData, setInstallationData] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
4484
- (0,react_use__WEBPACK_IMPORTED_MODULE_9__["default"])(() => {
4485
- if (action && action.status === 'warning' && installationData && installationData.generated_by_rsssl) {
4486
- props.addHelp(props.field.id, 'default', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("This is the certificate, which you need to install in your hosting dashboard.", "really-simple-ssl"), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Certificate (CRT)", "really-simple-ssl"));
4487
- props.addHelp(props.field.id, 'default', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("The private key can be uploaded or pasted in the appropriate field on your hosting dashboard.", "really-simple-ssl"), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Private Key (KEY)", "really-simple-ssl"));
4488
- props.addHelp(props.field.id, 'default', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("The CA Bundle will sometimes be automatically detected. If not, you can use this file.", "really-simple-ssl"), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Certificate Authority Bundle (CABUNDLE)", "really-simple-ssl"));
4489
- }
4490
- if (action && (action.status === 'error' || action.status === 'warning')) {
4491
- _utils_api__WEBPACK_IMPORTED_MODULE_2__.runLetsEncryptTest('installation_data').then(response => {
4492
- if (response) {
4493
- setInstallationData(response.data.output);
4494
- }
4495
- });
4496
- }
4497
- });
4498
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {});
4499
- const handleCopyAction = type => {
4500
- let success;
4501
- let data = document.querySelector('.rsssl-' + type).innerText;
4502
- const el = document.createElement('textarea');
4503
- el.value = data; //str is your string to copy
4504
- document.body.appendChild(el);
4505
- el.select();
4506
- try {
4507
- success = document.execCommand("copy");
4508
- } catch (e) {
4509
- success = false;
4510
- }
4511
- document.body.removeChild(el);
4512
- const notice = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.dispatch)('core/notices').createNotice('success', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Copied!', 'really-simple-ssl'), {
4513
- __unstableHTML: true,
4514
- id: 'rsssl_copied_data',
4515
- type: 'snackbar',
4516
- isDismissible: true
4517
- }).then((0,_utils_sleeper__WEBPACK_IMPORTED_MODULE_6__["default"])(3000)).then(response => {
4518
- (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.dispatch)('core/notices').removeNotice('rsssl_copied_data');
4519
- });
4520
- };
4521
- if (!action) {
4522
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null);
4523
- }
4524
- if (!installationData) {
4525
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null);
4526
- }
4527
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4528
- className: "rsssl-test-results"
4529
- }, !installationData.generated_by_rsssl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("The certificate is not generated by Really Simple SSL, so there are no installation files here", "really-simple-ssl")), installationData.generated_by_rsssl && action.status === 'warning' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h4", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Next step", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4530
- className: "rsssl-template-intro"
4531
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Install your certificate.", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h4", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Certificate (CRT)", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4532
- className: "rsssl-certificate-data rsssl-certificate",
4533
- id: "rsssl-certificate"
4534
- }, installationData.certificate_content), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
4535
- href: installationData.download_url + "&type=certificate",
4536
- className: "button button-secondary"
4537
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Download", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
4538
- type: "button",
4539
- onClick: e => handleCopyAction('certificate'),
4540
- className: "button button-primary"
4541
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Copy content", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h4", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Private Key (KEY)", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4542
- className: "rsssl-certificate-data rsssl-key",
4543
- id: "rsssl-key"
4544
- }, installationData.key_content), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
4545
- href: installationData.download_url + "&type=private_key",
4546
- className: "button button-secondary"
4547
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Download", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
4548
- type: "button",
4549
- className: "button button-primary",
4550
- onClick: e => handleCopyAction('key')
4551
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Copy content", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h4", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Certificate Authority Bundle (CABUNDLE)", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4552
- className: "rsssl-certificate-data rsssl-cabundle",
4553
- id: "rsssl-cabundle"
4554
- }, installationData.ca_bundle_content), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
4555
- href: installationData.download_url + "&type=intermediate",
4556
- className: "button button-secondary"
4557
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Download", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
4558
- type: "button",
4559
- className: "button button-primary",
4560
- onClick: e => handleCopyAction('cabundle')
4561
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Copy content", "really-simple-ssl"))));
4562
- };
4563
- /* harmony default export */ __webpack_exports__["default"] = (Installation);
4564
-
4565
- /***/ }),
4566
-
4567
- /***/ "./src/LetsEncrypt/LetsEncrypt.js":
4568
- /*!****************************************!*\
4569
- !*** ./src/LetsEncrypt/LetsEncrypt.js ***!
4570
- \****************************************/
4571
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4572
-
4573
- "use strict";
4574
- __webpack_require__.r(__webpack_exports__);
4575
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4576
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
4577
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
4578
- /* harmony import */ var _utils_sleeper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/sleeper */ "./src/utils/sleeper.js");
4579
- /* harmony import */ var _Directories__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Directories */ "./src/LetsEncrypt/Directories.js");
4580
- /* harmony import */ var _DnsVerification__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DnsVerification */ "./src/LetsEncrypt/DnsVerification.js");
4581
- /* harmony import */ var _Generation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Generation */ "./src/LetsEncrypt/Generation.js");
4582
- /* harmony import */ var _Activate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Activate */ "./src/LetsEncrypt/Activate.js");
4583
- /* harmony import */ var _Installation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Installation */ "./src/LetsEncrypt/Installation.js");
4584
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4585
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__);
4586
- /* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-use */ "./node_modules/react-use/esm/useUpdateEffect.js");
4587
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
4588
-
4589
-
4590
-
4591
-
4592
-
4593
-
4594
-
4595
-
4596
-
4597
-
4598
-
4599
-
4600
- const LetsEncrypt = props => {
4601
- const [id, setId] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(props.field.id);
4602
- const [actionUpdated, setActionUpdated] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
4603
- const [progress, setProgress] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(0);
4604
- const actionIndex = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);
4605
- const sleep = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(1500);
4606
- const maxAttempts = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(1);
4607
- const intervalId = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
4608
- const lastActionStatus = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)('');
4609
- // const previousProgress = useRef(0);
4610
- const previousActionIndex = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(-1);
4611
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
4612
- props.handleNextButtonDisabled(true);
4613
- runTest(0);
4614
- intervalId.current = setInterval(() => setProgress(progress => progress + 0.2), 100);
4615
- }, []);
4616
- const restartTests = () => {
4617
- //clear statuses to ensure the bullets are grey
4618
- let actions = props.field.actions;
4619
- for (const action of actions) {
4620
- action.status = 'inactive';
4621
- }
4622
- props.field.actions = actions;
4623
- actionIndex.current = 0;
4624
- previousActionIndex.current = -1;
4625
- lastActionStatus.current = '';
4626
- setProgress(0);
4627
- runTest(0);
4628
- };
4629
- const getAction = () => {
4630
- let newActions = props.field.actions;
4631
- return newActions[actionIndex.current];
4632
- };
4633
- (0,react_use__WEBPACK_IMPORTED_MODULE_10__["default"])(() => {
4634
- let maxIndex = props.field.actions.length - 1;
4635
- if (actionIndex.current > previousActionIndex.current) {
4636
- previousActionIndex.current = actionIndex.current;
4637
- setProgress(100 / maxIndex * actionIndex.current);
4638
- }
4639
-
4640
- //ensure that progress does not get to 100 when retries are still running
4641
- let currentAction = getAction();
4642
- if (currentAction && currentAction.do === 'retry' && currentAction.attemptCount > 1) {
4643
- setProgress(90);
4644
- }
4645
- if (props.refreshTests) {
4646
- props.resetRefreshTests();
4647
- restartTests();
4648
- }
4649
- });
4650
- const adjustActionsForDNS = actions => {
4651
- //find verification_type
4652
- let verification_type = props.getFieldValue('verification_type');
4653
- if (!verification_type) verification_type = 'dir';
4654
- if (verification_type === 'dns') {
4655
- //check if dns verification already is added
4656
- let dnsVerificationAdded = false;
4657
- actions.forEach(function (action, i) {
4658
- if (action.action === "verify_dns") {
4659
- dnsVerificationAdded = true;
4660
- }
4661
- });
4662
-
4663
- //find bundle index
4664
- let create_bundle_index = -1;
4665
- actions.forEach(function (action, i) {
4666
- if (action.action === "create_bundle_or_renew") {
4667
- create_bundle_index = i;
4668
- }
4669
- });
4670
- if (!dnsVerificationAdded && create_bundle_index > 0) {
4671
- //store create bundle action
4672
- let createBundleAction = actions[create_bundle_index];
4673
- //overwrite create bundle action
4674
- let newAction = {};
4675
- newAction.action = 'verify_dns';
4676
- newAction.description = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__.__)("Verifying DNS records...", "really-simple-ssl");
4677
- newAction.attempts = 2;
4678
- actions[create_bundle_index] = newAction;
4679
- actions.push(createBundleAction);
4680
- }
4681
- }
4682
- return actions;
4683
- };
4684
- const processTestResult = action => {
4685
- lastActionStatus.current = action.status;
4686
- let maxIndex = props.field.actions.length - 1;
4687
- if (action.status === 'success') {
4688
- action.attemptCount = 0;
4689
- } else {
4690
- if (!Number.isInteger(action.attemptCount)) {
4691
- action.attemptCount = 0;
4692
- }
4693
- action.attemptCount += 1;
4694
- }
4695
- setActionUpdated(true);
4696
-
4697
- //used for dns verification actions
4698
- var event = new CustomEvent('rsssl_le_response', {
4699
- detail: action
4700
- });
4701
- document.dispatchEvent(event);
4702
- //if all tests are finished with success
4703
-
4704
- //finalize happens when halfway through our tests it's finished. We can skip all others.
4705
- if (action.do === 'finalize') {
4706
- clearInterval(intervalId.current);
4707
- props.field.actions.forEach(function (action, i) {
4708
- if (i > actionIndex.current) {
4709
- action.hide = true;
4710
- }
4711
- });
4712
- actionIndex.current = maxIndex;
4713
- props.handleNextButtonDisabled(false);
4714
- } else if (action.do === 'continue' || action.do === 'skip') {
4715
- //new action, so reset the attempts count
4716
- action.attemptCount = 1;
4717
- //skip: drop previous completely, skip to next.
4718
- if (action.do === 'skip') {
4719
- action.hide = true;
4720
- }
4721
- //move to next action, but not if we're already on the max
4722
- if (maxIndex > actionIndex.current) {
4723
- actionIndex.current = actionIndex.current + 1;
4724
- runTest(actionIndex.current);
4725
- } else {
4726
- actionIndex.current = maxIndex;
4727
- props.handleNextButtonDisabled(false);
4728
- clearInterval(intervalId.current);
4729
- }
4730
- } else if (action.do === 'retry') {
4731
- if (action.attemptCount >= maxAttempts.current) {
4732
- actionIndex.current = maxIndex;
4733
- clearInterval(intervalId.current);
4734
- } else {
4735
- // clearInterval(intervalId.current);
4736
- runTest(actionIndex.current);
4737
- }
4738
- } else if (action.do === 'stop') {
4739
- clearInterval(intervalId.current);
4740
- }
4741
- };
4742
- const runTest = () => {
4743
- setActionUpdated(false);
4744
- if (props.field.id === 'generation') {
4745
- props.field.actions = adjustActionsForDNS(props.field.actions);
4746
- }
4747
- const startTime = new Date();
4748
- let action = getAction();
4749
- let test = action.action;
4750
- maxAttempts.current = action.attempts;
4751
- _utils_api__WEBPACK_IMPORTED_MODULE_1__.runLetsEncryptTest(test, props.field.id).then(response => {
4752
- const endTime = new Date();
4753
- let timeDiff = endTime - startTime; //in ms
4754
- const elapsedTime = Math.round(timeDiff);
4755
- let action = getAction();
4756
- action.status = response.data.status ? response.data.status : 'inactive';
4757
- action.hide = false;
4758
- action.description = response.data.message;
4759
- action.do = response.data.action;
4760
- action.output = response.data.output ? response.data.output : false;
4761
- sleep.current = 500;
4762
- if (elapsedTime < 1500) {
4763
- sleep.current = 1500 - elapsedTime;
4764
- }
4765
- }).then((0,_utils_sleeper__WEBPACK_IMPORTED_MODULE_2__["default"])(sleep.current)).then(() => {
4766
- processTestResult(action);
4767
- });
4768
- };
4769
- const getStyles = () => {
4770
- return Object.assign({}, {
4771
- width: progress + "%"
4772
- });
4773
- };
4774
- const getStatusIcon = action => {
4775
- if (!statuses.hasOwnProperty(action.status)) {
4776
- return statuses['inactive'].icon;
4777
- }
4778
- return statuses[action.status].icon;
4779
- };
4780
- const getStatusColor = action => {
4781
- if (!statuses.hasOwnProperty(action.status)) {
4782
- return statuses['inactive'].color;
4783
- }
4784
- return statuses[action.status].color;
4785
- };
4786
- let progressBarColor = lastActionStatus.current === 'error' ? 'rsssl-orange' : '';
4787
- if (!props.field.actions) {
4788
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null);
4789
- }
4790
- // keep current action, before it is filtered. The actionindex doesn't match anymore after filtering
4791
- let currentAction = props.field.actions[actionIndex.current];
4792
- //filter out skipped actions
4793
- let actions = props.field.actions.filter(action => action.hide !== true);
4794
- const statuses = {
4795
- 'inactive': {
4796
- 'icon': 'circle-times',
4797
- 'color': 'grey'
4798
- },
4799
- 'warning': {
4800
- 'icon': 'circle-times',
4801
- 'color': 'orange'
4802
- },
4803
- 'error': {
4804
- 'icon': 'circle-times',
4805
- 'color': 'red'
4806
- },
4807
- 'success': {
4808
- 'icon': 'circle-check',
4809
- 'color': 'green'
4810
- }
4811
- };
4812
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4813
- className: "rsssl-lets-encrypt-tests"
4814
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4815
- className: "rsssl-progress-bar"
4816
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4817
- className: "rsssl-progress"
4818
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4819
- className: 'rsssl-bar ' + progressBarColor,
4820
- style: getStyles()
4821
- }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4822
- className: "rsssl_letsencrypt_container rsssl-progress-container field-group"
4823
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("ul", null, actions.map((action, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
4824
- key: i
4825
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
4826
- name: getStatusIcon(action),
4827
- color: getStatusColor(action)
4828
- }), action.do === 'retry' && action.attemptCount >= 1 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_8__.__)("Attempt %s.", "really-simple-ssl").replace('%s', action.attemptCount), " "), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
4829
- dangerouslySetInnerHTML: {
4830
- __html: action.description
4831
- }
4832
- }))))), props.field.id === 'directories' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Directories__WEBPACK_IMPORTED_MODULE_3__["default"], {
4833
- save: props.save,
4834
- selectMenu: props.selectMenu,
4835
- field: props.field,
4836
- updateField: props.updateField,
4837
- addHelp: props.addHelp,
4838
- progress: progress,
4839
- action: currentAction
4840
- }), props.field.id === 'dns-verification' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_DnsVerification__WEBPACK_IMPORTED_MODULE_4__["default"], {
4841
- save: props.save,
4842
- selectMenu: props.selectMenu,
4843
- field: props.field,
4844
- updateField: props.updateField,
4845
- addHelp: props.addHelp,
4846
- progress: progress,
4847
- action: currentAction
4848
- }), props.field.id === 'generation' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Generation__WEBPACK_IMPORTED_MODULE_5__["default"], {
4849
- restartTests: restartTests,
4850
- save: props.save,
4851
- selectMenu: props.selectMenu,
4852
- field: props.field,
4853
- updateField: props.updateField,
4854
- addHelp: props.addHelp,
4855
- progress: progress,
4856
- action: currentAction
4857
- }), props.field.id === 'installation' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Installation__WEBPACK_IMPORTED_MODULE_7__["default"], {
4858
- restartTests: restartTests,
4859
- save: props.save,
4860
- selectMenu: props.selectMenu,
4861
- field: props.field,
4862
- updateField: props.updateField,
4863
- addHelp: props.addHelp,
4864
- progress: progress,
4865
- action: currentAction
4866
- }), props.field.id === 'activate' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Activate__WEBPACK_IMPORTED_MODULE_6__["default"], {
4867
- restartTests: restartTests,
4868
- save: props.save,
4869
- selectMainMenu: props.selectMainMenu,
4870
- selectMenu: props.selectMenu,
4871
- field: props.field,
4872
- updateField: props.updateField,
4873
- addHelp: props.addHelp,
4874
- progress: progress,
4875
- action: currentAction
4876
- })));
4877
- };
4878
- /* harmony default export */ __webpack_exports__["default"] = (LetsEncrypt);
4879
-
4880
- /***/ }),
4881
-
4882
- /***/ "./src/Menu/Menu.js":
4883
- /*!**************************!*\
4884
- !*** ./src/Menu/Menu.js ***!
4885
- \**************************/
4886
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4887
-
4888
- "use strict";
4889
- __webpack_require__.r(__webpack_exports__);
4890
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4891
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
4892
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
4893
- /* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MenuItem */ "./src/Menu/MenuItem.js");
4894
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4895
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
4896
-
4897
-
4898
-
4899
-
4900
-
4901
-
4902
- /**
4903
- * Menu block, rendering th entire menu
4904
- */
4905
- class Menu extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
4906
- constructor() {
4907
- super(...arguments);
4908
- }
4909
- render() {
4910
- let hasPremiumItems = this.props.menu.menu_items.filter(item => {
4911
- return item.premium === true;
4912
- }).length > 0;
4913
- if (!this.props.isAPILoaded) {
4914
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_1__["default"], null);
4915
- }
4916
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4917
- className: "rsssl-wizard-menu rsssl-grid-item"
4918
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4919
- className: "rsssl-grid-item-header"
4920
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h1", {
4921
- className: "rsssl-h4"
4922
- }, this.props.menu.title)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4923
- className: "rsssl-grid-item-content"
4924
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4925
- className: "rsssl-wizard-menu-items"
4926
- }, this.props.menu.menu_items.map((menuItem, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
4927
- key: i,
4928
- isAPILoaded: this.props.isAPILoaded,
4929
- menuItem: menuItem,
4930
- selectMenu: this.props.selectMenu,
4931
- selectStep: this.props.selectStep,
4932
- selectedMenuItem: this.props.selectedMenuItem,
4933
- selectedMainMenuItem: this.props.selectedMainMenuItem,
4934
- getPreviousAndNextMenuItems: this.props.getPreviousAndNextMenuItems
4935
- })), hasPremiumItems && !rsssl_settings.pro_plugin_active && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4936
- className: "rsssl-premium-menu-item"
4937
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
4938
- target: "_blank",
4939
- href: rsssl_settings.upgrade_link,
4940
- className: "button button-black"
4941
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Go Pro', 'really-simple-ssl')))))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4942
- className: "rsssl-grid-item-footer"
4943
- }));
4944
- }
4945
- }
4946
- /* harmony default export */ __webpack_exports__["default"] = (Menu);
4947
-
4948
- /***/ }),
4949
-
4950
- /***/ "./src/Menu/MenuItem.js":
4951
- /*!******************************!*\
4952
- !*** ./src/Menu/MenuItem.js ***!
4953
- \******************************/
4954
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4955
-
4956
- "use strict";
4957
- __webpack_require__.r(__webpack_exports__);
4958
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
4959
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
4960
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
4961
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
4962
-
4963
-
4964
-
4965
- class MenuItem extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
4966
- constructor() {
4967
- super(...arguments);
4968
- }
4969
- handleClick() {
4970
- this.props.selectMenu(this.props.menuItem.id);
4971
- }
4972
- componentDidMount() {
4973
- this.handleClick = this.handleClick.bind(this);
4974
- }
4975
- render() {
4976
- /*
4977
- * Menu is selected if the item is the same, or if it is a child.
4978
- */
4979
- let menuIsSelected = this.props.selectedMenuItem === this.props.menuItem.id;
4980
- if (this.props.menuItem.menu_items) {
4981
- for (const item of this.props.menuItem.menu_items) {
4982
- if (item.id === this.props.selectedMenuItem) {
4983
- menuIsSelected = true;
4984
- }
4985
- }
4986
- }
4987
- let menuClass = menuIsSelected ? ' rsssl-active' : '';
4988
- menuClass += this.props.menuItem.featured ? ' rsssl-featured' : '';
4989
- menuClass += this.props.menuItem.premium && !rsssl_settings.pro_plugin_active ? ' rsssl-premium' : '';
4990
- let href = '#' + this.props.selectedMainMenuItem + '/' + this.props.menuItem.id;
4991
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, this.props.menuItem.visible && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4992
- className: "rsssl-menu-item" + menuClass
4993
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
4994
- href: href,
4995
- onClick: () => this.handleClick()
4996
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", null, this.props.menuItem.title), this.props.menuItem.featured && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
4997
- className: "rsssl-menu-item-featured-pill"
4998
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('New', 'really-simple-ssl')))), this.props.menuItem.menu_items && menuIsSelected && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
4999
- className: "rsssl-submenu-item"
5000
- }, this.props.menuItem.menu_items.map((subMenuItem, i) => subMenuItem.visible && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(MenuItem, {
5001
- key: i,
5002
- menuItem: subMenuItem,
5003
- selectMenu: this.props.selectMenu,
5004
- selectedMenuItem: this.props.selectedMenuItem
5005
- })))));
5006
- }
5007
- }
5008
- /* harmony default export */ __webpack_exports__["default"] = (MenuItem);
5009
-
5010
- /***/ }),
5011
-
5012
- /***/ "./src/Modal/Modal.js":
5013
- /*!****************************!*\
5014
- !*** ./src/Modal/Modal.js ***!
5015
- \****************************/
5016
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5017
-
5018
- "use strict";
5019
- __webpack_require__.r(__webpack_exports__);
5020
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
5021
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
5022
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
5023
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
5024
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
5025
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
5026
-
5027
-
5028
-
5029
-
5030
-
5031
- class Modal extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
5032
- constructor() {
5033
- super(...arguments);
5034
- this.state = {
5035
- data: [],
5036
- buttonsDisabled: false
5037
- };
5038
- }
5039
- dismissModal(dropItem) {
5040
- this.props.handleModal(false, null, dropItem);
5041
- }
5042
- componentDidMount() {
5043
- this.setState({
5044
- data: this.props.data,
5045
- buttonsDisabled: false
5046
- });
5047
- }
5048
- handleFix(e) {
5049
- //set to disabled
5050
- let action = this.props.data.action;
5051
- this.setState({
5052
- buttonsDisabled: true
5053
- });
5054
- _utils_api__WEBPACK_IMPORTED_MODULE_2__.runTest(action, 'refresh', this.props.data).then(response => {
5055
- let {
5056
- data
5057
- } = this.state;
5058
- data.description = response.data.msg;
5059
- data.subtitle = '';
5060
- this.setState({
5061
- data: data
5062
- });
5063
- let item = this.props.data;
5064
- if (response.data.success) {
5065
- this.dismissModal(this.props.data);
5066
- }
5067
- });
5068
- }
5069
- render() {
5070
- const {
5071
- data,
5072
- buttonsDisabled
5073
- } = this.state;
5074
- let disabled = buttonsDisabled ? 'disabled' : '';
5075
- let description = data.description;
5076
- if (!Array.isArray(description)) {
5077
- description = [description];
5078
- }
5079
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5080
- className: "rsssl-modal-backdrop",
5081
- onClick: e => this.dismissModal(e)
5082
- }, "\xA0"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5083
- className: "rsssl-modal",
5084
- id: "{id}"
5085
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5086
- className: "rsssl-modal-header"
5087
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h2", {
5088
- className: "modal-title"
5089
- }, data.title), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
5090
- type: "button",
5091
- className: "rsssl-modal-close",
5092
- "data-dismiss": "modal",
5093
- "aria-label": "Close",
5094
- onClick: e => this.dismissModal(e)
5095
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
5096
- name: "times"
5097
- }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5098
- className: "rsssl-modal-content"
5099
- }, data.subtitle && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5100
- className: "rsssl-modal-subtitle"
5101
- }, data.subtitle), Array.isArray(description) && description.map((s, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5102
- key: i,
5103
- className: "rsssl-modal-description"
5104
- }, s))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5105
- className: "rsssl-modal-footer"
5106
- }, data.edit && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
5107
- href: data.edit,
5108
- target: "_blank",
5109
- className: "button button-secondary"
5110
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Edit", "really-simple-ssl")), data.help && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
5111
- href: data.help,
5112
- target: "_blank",
5113
- className: "button rsssl-button-help"
5114
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Help", "really-simple-ssl")), !data.ignored && data.action === 'ignore_url' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
5115
- disabled: disabled,
5116
- className: "button button-primary",
5117
- onClick: e => this.handleFix(e)
5118
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ignore", "really-simple-ssl")), data.action !== 'ignore_url' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
5119
- disabled: disabled,
5120
- className: "button button-primary",
5121
- onClick: e => this.handleFix(e)
5122
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Fix", "really-simple-ssl")))));
5123
- }
5124
- }
5125
- /* harmony default export */ __webpack_exports__["default"] = (Modal);
5126
-
5127
- /***/ }),
5128
-
5129
- /***/ "./src/Modal/ModalControl.js":
5130
- /*!***********************************!*\
5131
- !*** ./src/Modal/ModalControl.js ***!
5132
- \***********************************/
5133
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5134
-
5135
- "use strict";
5136
- __webpack_require__.r(__webpack_exports__);
5137
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
5138
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
5139
-
5140
-
5141
- class ModalControl extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
5142
- constructor() {
5143
- super(...arguments);
5144
- }
5145
- componentDidMount() {
5146
- this.onClickHandler = this.onClickHandler.bind(this);
5147
- }
5148
- onClickHandler() {
5149
- this.props.handleModal(true, this.props.modalData);
5150
- }
5151
- render() {
5152
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
5153
- className: "button button-" + this.props.btnStyle,
5154
- onClick: e => this.onClickHandler(e)
5155
- }, this.props.btnText);
5156
- }
5157
- }
5158
- /* harmony default export */ __webpack_exports__["default"] = (ModalControl);
5159
-
5160
- /***/ }),
5161
-
5162
- /***/ "./src/Onboarding/Onboarding.js":
5163
- /*!**************************************!*\
5164
- !*** ./src/Onboarding/Onboarding.js ***!
5165
- \**************************************/
5166
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5167
-
5168
- "use strict";
5169
- __webpack_require__.r(__webpack_exports__);
5170
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
5171
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
5172
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
5173
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
5174
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
5175
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
5176
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
5177
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! immutability-helper */ "./node_modules/immutability-helper/index.js");
5178
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(immutability_helper__WEBPACK_IMPORTED_MODULE_4__);
5179
- /* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-use */ "./node_modules/react-use/esm/useUpdateEffect.js");
5180
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
5181
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
5182
-
5183
-
5184
-
5185
-
5186
-
5187
-
5188
-
5189
-
5190
-
5191
- const Onboarding = props => {
5192
- const [steps, setSteps] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)([]);
5193
- const [overrideSSL, setOverrideSSL] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
5194
- const [certificateValid, setCertificateValid] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
5195
- const [sslActivated, setsslActivated] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
5196
- const [activateSSLDisabled, setActivateSSLDisabled] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(true);
5197
- const [stepsChanged, setStepsChanged] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)('');
5198
- const [networkwide, setNetworkwide] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
5199
- const [networkActivationStatus, setNetworkActivationStatus] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
5200
- const [networkProgress, setNetworkProgress] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(0);
5201
- (0,react_use__WEBPACK_IMPORTED_MODULE_7__["default"])(() => {
5202
- if (networkProgress < 100 && networkwide && networkActivationStatus === 'main_site_activated') {
5203
- _utils_api__WEBPACK_IMPORTED_MODULE_2__.runTest('activate_ssl_networkwide').then(response => {
5204
- if (response.data.success) {
5205
- setNetworkProgress(response.data.progress);
5206
- if (response.data.progress >= 100) {
5207
- updateActionForItem('ssl_enabled', '', 'success');
5208
- }
5209
- }
5210
- });
5211
- }
5212
- });
5213
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
5214
- updateOnBoardingData(false);
5215
- }, []);
5216
- const updateOnBoardingData = forceRefresh => {
5217
- _utils_api__WEBPACK_IMPORTED_MODULE_2__.getOnboarding(forceRefresh).then(response => {
5218
- let steps = response.data.steps;
5219
- setNetworkwide(response.data.networkwide);
5220
- setOverrideSSL(response.data.ssl_detection_overridden);
5221
- setActivateSSLDisabled(!response.data.ssl_detection_overridden);
5222
- setCertificateValid(response.data.certificate_valid);
5223
- setsslActivated(response.data.ssl_enabled);
5224
- steps[0].visible = true;
5225
- //if ssl is already enabled, the server will send only one step. In that case we can skip the below.
5226
- //it's only needed when SSL is activated just now, client side.
5227
- if (response.data.ssl_enabled && steps.length > 1) {
5228
- steps[0].visible = false;
5229
- steps[1].visible = true;
5230
- }
5231
- setNetworkActivationStatus(response.data.network_activation_status);
5232
- if (response.data.network_activation_status === 'completed') {
5233
- setNetworkProgress(100);
5234
- }
5235
- setSteps(steps);
5236
- setStepsChanged('initial');
5237
- });
5238
- };
5239
- const refreshSSLStatus = e => {
5240
- e.preventDefault();
5241
- steps.forEach(function (step, i) {
5242
- if (step.id === 'activate_ssl') {
5243
- step.items.forEach(function (item, j) {
5244
- if (item.status === 'error') {
5245
- steps[i].items[j].status = 'processing';
5246
- steps[i].items[j].title = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Re-checking SSL certificate, please wait...", "really-simple-ssl");
5247
- }
5248
- });
5249
- }
5250
- });
5251
- setSteps(steps);
5252
- setStepsChanged(true);
5253
- setTimeout(function () {
5254
- updateOnBoardingData(true);
5255
- }, 1000); //add a delay, otherwise it's so fast the user may not trust it.
5256
- };
5257
-
5258
- const activateSSL = () => {
5259
- setStepsChanged(false);
5260
- let sslUrl = window.location.href.replace("http://", "https://");
5261
- _utils_api__WEBPACK_IMPORTED_MODULE_2__.runTest('activate_ssl').then(response => {
5262
- steps[0].visible = false;
5263
- steps[1].visible = true;
5264
- //change url to https, after final check
5265
- if (response.data.success) {
5266
- setSteps(steps);
5267
- setStepsChanged(true);
5268
- setsslActivated(response.data.success);
5269
- props.updateField('ssl_enabled', true);
5270
- if (response.data.site_url_changed) {
5271
- window.location.reload();
5272
- } else {
5273
- props.getFields();
5274
- if (networkwide) {
5275
- setNetworkActivationStatus('main_site_activated');
5276
- }
5277
- }
5278
- }
5279
- });
5280
- };
5281
- const updateActionForItem = (findItem, newAction, newStatus) => {
5282
- let stepsCopy = steps;
5283
- stepsCopy.forEach(function (step, i) {
5284
- stepsCopy[i].items.forEach(function (item, j) {
5285
- if (item.id === findItem) {
5286
- let itemCopy = stepsCopy[i].items[j];
5287
- itemCopy.current_action = newAction;
5288
- if (newStatus) {
5289
- itemCopy.status = newStatus;
5290
- }
5291
- stepsCopy[i].items[j] = itemCopy;
5292
- }
5293
- });
5294
- });
5295
- setSteps(stepsCopy);
5296
- setStepsChanged(findItem + newAction + newStatus);
5297
- };
5298
- const itemButtonHandler = (id, action) => {
5299
- let data = {};
5300
- data.id = id;
5301
- updateActionForItem(id, action, false);
5302
- _utils_api__WEBPACK_IMPORTED_MODULE_2__.doAction(action, data).then(response => {
5303
- if (response.data.success) {
5304
- if (action === 'activate_setting') {
5305
- //ensure all fields are updated, and progress is retrieved again
5306
- props.getFields();
5307
- }
5308
- let nextAction = response.data.next_action;
5309
- if (nextAction !== 'none' && nextAction !== 'completed') {
5310
- updateActionForItem(id, nextAction, false);
5311
- _utils_api__WEBPACK_IMPORTED_MODULE_2__.doAction(nextAction, data).then(response => {
5312
- if (response.data.success) {
5313
- updateActionForItem(id, 'completed', 'success');
5314
- } else {
5315
- updateActionForItem(id, 'failed', 'error');
5316
- }
5317
- }).catch(error => {
5318
- updateActionForItem(id, 'failed', 'error');
5319
- });
5320
- } else {
5321
- updateActionForItem(id, 'completed', 'success');
5322
- }
5323
- } else {
5324
- updateActionForItem(id, 'failed', 'error');
5325
- }
5326
- }).catch(error => {
5327
- updateActionForItem(id, 'failed', 'error');
5328
- });
5329
- };
5330
- const parseStepItems = items => {
5331
- return items.map((item, index) => {
5332
- let {
5333
- title,
5334
- current_action,
5335
- action,
5336
- status,
5337
- button,
5338
- id
5339
- } = item;
5340
- if (id === 'ssl_enabled' && networkwide) {
5341
- if (networkProgress >= 100) {
5342
- status = 'success';
5343
- title = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("SSL has been activated network wide", "really-simple-ssl");
5344
- } else {
5345
- status = 'processing';
5346
- title = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Processing activation of subsites networkwide", "really-simple-ssl");
5347
- }
5348
- }
5349
- const statuses = {
5350
- 'inactive': {
5351
- 'icon': 'info',
5352
- 'color': 'grey'
5353
- },
5354
- 'warning': {
5355
- 'icon': 'circle-times',
5356
- 'color': 'orange'
5357
- },
5358
- 'error': {
5359
- 'icon': 'circle-times',
5360
- 'color': 'red'
5361
- },
5362
- 'success': {
5363
- 'icon': 'circle-check',
5364
- 'color': 'green'
5365
- },
5366
- 'processing': {
5367
- 'icon': 'file-download',
5368
- 'color': 'red'
5369
- }
5370
- };
5371
- const statusIcon = statuses[status].icon;
5372
- const statusColor = statuses[status].color;
5373
- const currentActions = {
5374
- 'activate_setting': (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Activating...', "really-simple-ssl"),
5375
- 'activate': (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Activating...', "really-simple-ssl"),
5376
- 'install_plugin': (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Installing...', "really-simple-ssl"),
5377
- 'error': (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Failed', "really-simple-ssl"),
5378
- 'completed': (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Finished', "really-simple-ssl")
5379
- };
5380
- let buttonTitle = '';
5381
- if (button) {
5382
- buttonTitle = button;
5383
- if (current_action !== 'none') {
5384
- buttonTitle = currentActions[current_action];
5385
- if (current_action === 'failed') {
5386
- buttonTitle = currentActions['error'];
5387
- }
5388
- }
5389
- }
5390
- let showLink = button && button === buttonTitle;
5391
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
5392
- key: index
5393
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_5__["default"], {
5394
- name: statusIcon,
5395
- color: statusColor
5396
- }), title, id === 'ssl_enabled' && networkwide && networkActivationStatus === 'main_site_activated' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "\xA0-\xA0", networkProgress < 100 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("working", "really-simple-ssl"), "\xA0", networkProgress, "%"), networkProgress >= 100 && (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("completed", "really-simple-ssl")), button && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, "\xA0-\xA0", showLink && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, {
5397
- className: "button button-secondary",
5398
- isLink: true,
5399
- onClick: () => itemButtonHandler(id, action)
5400
- }, buttonTitle), !showLink && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, buttonTitle)));
5401
- });
5402
- };
5403
- const goToDashboard = () => {
5404
- if (props.isModal) props.dismissModal();
5405
- props.selectMainMenu('dashboard');
5406
- };
5407
- const goToLetsEncrypt = () => {
5408
- if (props.isModal) props.dismissModal();
5409
- window.location.href = rsssl_settings.letsencrypt_url;
5410
- };
5411
- const controlButtons = () => {
5412
- let ActivateSSLText = networkwide ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Activate SSL networkwide", "really-simple-ssl") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Activate SSL", "really-simple-ssl");
5413
- if (steps[0].visible && steps.length > 1) {
5414
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
5415
- disabled: !certificateValid && !overrideSSL,
5416
- className: "button button-primary",
5417
- onClick: () => {
5418
- activateSSL();
5419
- }
5420
- }, ActivateSSLText), certificateValid && !rsssl_settings.pro_plugin_active && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
5421
- target: "_blank",
5422
- href: rsssl_settings.upgrade_link,
5423
- className: "button button-default"
5424
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Improve Security with PRO", "really-simple-ssl")), !certificateValid && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
5425
- className: "button button-default",
5426
- onClick: () => {
5427
- goToLetsEncrypt();
5428
- }
5429
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Install SSL", "really-simple-ssl")), !certificateValid && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, {
5430
- label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Override SSL detection", "really-simple-ssl"),
5431
- checked: overrideSSL,
5432
- onChange: value => {
5433
- setOverrideSSL(value);
5434
- let data = {};
5435
- data.overrideSSL = value;
5436
- _utils_api__WEBPACK_IMPORTED_MODULE_2__.doAction('override_ssl_detection', data).then(response => {
5437
- setActivateSSLDisabled(!value);
5438
- });
5439
- }
5440
- }));
5441
- }
5442
- if (steps.length > 1 && steps[1].visible || steps[0].visible) {
5443
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
5444
- className: "button button-primary",
5445
- onClick: () => {
5446
- goToDashboard();
5447
- }
5448
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Go to Dashboard', 'really-simple-ssl')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
5449
- className: "button button-default",
5450
- onClick: () => {
5451
- props.dismissModal();
5452
- }
5453
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Dismiss', 'really-simple-ssl')));
5454
- }
5455
- };
5456
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, !stepsChanged && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_6__["default"], {
5457
- lines: "12"
5458
- }), stepsChanged && steps.map((step, index) => {
5459
- const {
5460
- title,
5461
- subtitle,
5462
- items,
5463
- info_text: infoText,
5464
- visible
5465
- } = step;
5466
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5467
- className: "rsssl-modal-content-step",
5468
- key: index,
5469
- style: {
5470
- display: visible ? 'block' : 'none'
5471
- }
5472
- }, title && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h2", {
5473
- className: "rsssl-modal-subtitle"
5474
- }, title), subtitle && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5475
- className: "rsssl-modal-description"
5476
- }, subtitle), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("ul", null, parseStepItems(items)), certificateValid && infoText && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5477
- className: "rsssl-modal-description",
5478
- dangerouslySetInnerHTML: {
5479
- __html: infoText
5480
- }
5481
- }), !certificateValid && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5482
- className: "rsssl-modal-description"
5483
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
5484
- href: "#",
5485
- onClick: e => refreshSSLStatus(e)
5486
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Refresh SSL status", "really-simple-ssl")), "\xA0", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("The SSL detection method is not 100% accurate.", "really-simple-ssl"), "\xA0", (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("If you’re certain an SSL certificate is present, and refresh SSL status does not work, please check “Override SSL detection” to continue activating SSL.", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5487
- className: "rsssl-modal-content-step-footer"
5488
- }, controlButtons()));
5489
- }));
5490
- };
5491
- /* harmony default export */ __webpack_exports__["default"] = (Onboarding);
5492
-
5493
- /***/ }),
5494
-
5495
- /***/ "./src/Onboarding/OnboardingModal.js":
5496
- /*!*******************************************!*\
5497
- !*** ./src/Onboarding/OnboardingModal.js ***!
5498
- \*******************************************/
5499
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5500
-
5501
- "use strict";
5502
- __webpack_require__.r(__webpack_exports__);
5503
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
5504
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
5505
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
5506
- /* harmony import */ var _Onboarding__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Onboarding */ "./src/Onboarding/Onboarding.js");
5507
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! immutability-helper */ "./node_modules/immutability-helper/index.js");
5508
- /* harmony import */ var immutability_helper__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(immutability_helper__WEBPACK_IMPORTED_MODULE_3__);
5509
- /* harmony import */ var react_use__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-use */ "./node_modules/react-use/esm/useUpdateEffect.js");
5510
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
5511
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
5512
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__);
5513
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
5514
-
5515
-
5516
-
5517
-
5518
-
5519
-
5520
-
5521
-
5522
-
5523
- const OnboardingModal = props => {
5524
- const [modalLoaded, setModalLoaded] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
5525
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
5526
- if (!modalLoaded) {
5527
- _utils_api__WEBPACK_IMPORTED_MODULE_1__.runTest('get_modal_status').then(response => {
5528
- setModalLoaded(true);
5529
- props.setShowOnBoardingModal(!response.data.dismissed);
5530
- });
5531
- }
5532
- });
5533
- (0,react_use__WEBPACK_IMPORTED_MODULE_7__["default"])(() => {
5534
- if (props.showOnBoardingModal === true) {
5535
- let data = {};
5536
- data.dismiss = false;
5537
- _utils_api__WEBPACK_IMPORTED_MODULE_1__.runTest('dismiss_modal', 'refresh', data).then(response => {});
5538
- }
5539
- });
5540
- const dismissModal = () => {
5541
- let data = {};
5542
- data.dismiss = true;
5543
- props.setShowOnBoardingModal(false);
5544
- _utils_api__WEBPACK_IMPORTED_MODULE_1__.runTest('dismiss_modal', 'refresh', data).then(response => {});
5545
- };
5546
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, props.showOnBoardingModal && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5547
- className: "rsssl-modal-backdrop"
5548
- }, "\xA0"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5549
- className: "rsssl-modal rsssl-onboarding"
5550
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5551
- className: "rsssl-modal-header"
5552
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
5553
- className: "rsssl-logo",
5554
- src: rsssl_settings.plugin_url + 'assets/img/really-simple-ssl-logo.svg',
5555
- alt: "Really Simple SSL logo"
5556
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
5557
- type: "button",
5558
- className: "rsssl-modal-close",
5559
- "data-dismiss": "modal",
5560
- "aria-label": "Close",
5561
- onClick: dismissModal
5562
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
5563
- "aria-hidden": "true",
5564
- focusable: "false",
5565
- role: "img",
5566
- xmlns: "http://www.w3.org/2000/svg",
5567
- viewBox: "0 0 320 512",
5568
- height: "24"
5569
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
5570
- fill: "#000000",
5571
- d: "M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"
5572
- })))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5573
- className: "rsssl-modal-content"
5574
- }, !props.isAPILoaded && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("ul", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
5575
- name: "file-download",
5576
- color: "orange"
5577
- }), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Please wait while we detect your setup", "really-simple-ssl"))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_4__["default"], {
5578
- lines: "10"
5579
- })), props.isAPILoaded && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Onboarding__WEBPACK_IMPORTED_MODULE_2__["default"], {
5580
- getFields: props.getFields,
5581
- updateField: props.updateField,
5582
- selectMainMenu: props.selectMainMenu,
5583
- isModal: true,
5584
- dismissModal: dismissModal
5585
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5586
- className: "rssl-modal-footer"
5587
- }))));
5588
- };
5589
- /* harmony default export */ __webpack_exports__["default"] = (OnboardingModal);
5590
-
5591
- /***/ }),
5592
-
5593
- /***/ "./src/Page.js":
5594
- /*!*********************!*\
5595
- !*** ./src/Page.js ***!
5596
- \*********************/
5597
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5598
-
5599
- "use strict";
5600
- __webpack_require__.r(__webpack_exports__);
5601
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
5602
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
5603
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/api */ "./src/utils/api.js");
5604
- /* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Header */ "./src/Header.js");
5605
- /* harmony import */ var _DashBoard_DashboardPage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DashBoard/DashboardPage */ "./src/DashBoard/DashboardPage.js");
5606
- /* harmony import */ var _Settings_SettingsPage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Settings/SettingsPage */ "./src/Settings/SettingsPage.js");
5607
- /* harmony import */ var _Modal_Modal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Modal/Modal */ "./src/Modal/Modal.js");
5608
- /* harmony import */ var _Placeholder_PagePlaceholder__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Placeholder/PagePlaceholder */ "./src/Placeholder/PagePlaceholder.js");
5609
- /* harmony import */ var _Onboarding_OnboardingModal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Onboarding/OnboardingModal */ "./src/Onboarding/OnboardingModal.js");
5610
- /* harmony import */ var _utils_getAnchor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/getAnchor */ "./src/utils/getAnchor.js");
5611
-
5612
-
5613
-
5614
-
5615
-
5616
-
5617
-
5618
-
5619
-
5620
-
5621
- class Page extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
5622
- constructor() {
5623
- super(...arguments);
5624
- this.pageProps = [];
5625
- this.pageProps['licenseStatus'] = rsssl_settings.licenseStatus;
5626
- this.updateFields = this.updateFields.bind(this);
5627
- this.updateProgress = this.updateProgress.bind(this);
5628
- this.getFields = this.getFields.bind(this);
5629
- this.selectMenu = this.selectMenu.bind(this);
5630
- this.getSelectedMenu = this.getSelectedMenu.bind(this);
5631
- this.selectStep = this.selectStep.bind(this);
5632
- this.handleModal = this.handleModal.bind(this);
5633
- this.highLightField = this.highLightField.bind(this);
5634
- this.updateField = this.updateField.bind(this);
5635
- this.getFieldValue = this.getFieldValue.bind(this);
5636
- this.addHelp = this.addHelp.bind(this);
5637
- this.selectMainMenu = this.selectMainMenu.bind(this);
5638
- this.setPageProps = this.setPageProps.bind(this);
5639
- this.getPreviousAndNextMenuItems = this.getPreviousAndNextMenuItems.bind(this);
5640
- this.setShowOnBoardingModal = this.setShowOnBoardingModal.bind(this);
5641
- this.state = {
5642
- selectedMainMenuItem: '',
5643
- showOnBoardingModal: false,
5644
- selectedMenuItem: '',
5645
- selectedStep: 1,
5646
- highLightedField: '',
5647
- fields: '',
5648
- menu: [],
5649
- progress: '',
5650
- isAPILoaded: false,
5651
- pageProps: this.pageProps,
5652
- showModal: false,
5653
- modalData: [],
5654
- dropItemFromModal: false,
5655
- nextMenuItem: '',
5656
- previousMenuItem: ''
5657
- };
5658
- this.getFields();
5659
- }
5660
- setShowOnBoardingModal(status) {
5661
- const {
5662
- showOnBoardingModal
5663
- } = this.state;
5664
- if (status !== showOnBoardingModal) {
5665
- this.setState({
5666
- showOnBoardingModal: status
5667
- });
5668
- }
5669
- }
5670
- updateFields(fields) {
5671
- this.fields = fields;
5672
- this.setState({
5673
- fields: fields
5674
- });
5675
- }
5676
- updateProgress(progress) {
5677
- this.progress = progress;
5678
- this.setState({
5679
- progress: progress
5680
- });
5681
- }
5682
- componentDidMount() {
5683
- window.addEventListener('hashchange', () => {
5684
- let selectedMainMenuItem = (0,_utils_getAnchor__WEBPACK_IMPORTED_MODULE_8__["default"])('main') || 'dashboard';
5685
- this.menu = this.getSelectedMenu(this.superMenu, selectedMainMenuItem);
5686
- this.setState({
5687
- selectedMainMenuItem: selectedMainMenuItem,
5688
- selectedMenuItem: this.getDefaultMenuItem(),
5689
- menu: this.menu
5690
- }, () => {
5691
- this.getPreviousAndNextMenuItems();
5692
- });
5693
- });
5694
- }
5695
-
5696
- /*
5697
- * filter sidebar menu from complete menu structure
5698
- */
5699
-
5700
- getSelectedMenu(superMenu, selectedMainMenuItem) {
5701
- for (const key in superMenu) {
5702
- if (superMenu.hasOwnProperty(key)) {
5703
- if (superMenu[key] && superMenu[key].id === selectedMainMenuItem) {
5704
- return superMenu[key];
5705
- }
5706
- }
5707
- }
5708
- }
5709
- getFields() {
5710
- _utils_api__WEBPACK_IMPORTED_MODULE_1__.getFields().then(response => {
5711
- this.superMenu = response.data.menu;
5712
- let selectedMainMenuItem = (0,_utils_getAnchor__WEBPACK_IMPORTED_MODULE_8__["default"])('main') || 'dashboard';
5713
- this.menu = this.getSelectedMenu(this.superMenu, selectedMainMenuItem);
5714
- this.fields = response.data.fields;
5715
- this.progress = response.data.progress;
5716
- this.setState({
5717
- isAPILoaded: true,
5718
- fields: this.fields,
5719
- progress: this.progress,
5720
- menu: this.menu,
5721
- selectedMenuItem: this.getDefaultMenuItem(),
5722
- selectedMainMenuItem: selectedMainMenuItem
5723
- }, () => {
5724
- this.getPreviousAndNextMenuItems();
5725
- });
5726
- });
5727
- }
5728
- /*
5729
- * Allow child blocks to set data on the gridblock
5730
- * @param key
5731
- * @param value
5732
- */
5733
- setPageProps(key, value) {
5734
- const {
5735
- pageProps
5736
- } = this.state;
5737
- //if (pageProps[key] !== value ) {
5738
- this.pageProps[key] = value;
5739
- this.setState({
5740
- pageProps: this.pageProps
5741
- });
5742
- //}
5743
- }
5744
-
5745
- /*
5746
- * Handle instantiation of a modal window
5747
- * @param showModal
5748
- * @param data
5749
- * @param dropItem
5750
- */
5751
- handleModal(showModal, data, dropItem) {
5752
- this.setState({
5753
- showModal: showModal,
5754
- modalData: data,
5755
- dropItemFromModal: dropItem
5756
- });
5757
- }
5758
- selectMenu(selectedMenuItem) {
5759
- this.setState({
5760
- selectedMenuItem: selectedMenuItem
5761
- });
5762
- }
5763
- selectStep(selectedStep) {
5764
- this.setState({
5765
- selectedStep: selectedStep
5766
- });
5767
- }
5768
- getDefaultMenuItem() {
5769
- let fallBackMenuItem = this.menu && this.menu.menu_items.hasOwnProperty(0) ? this.menu.menu_items[0].id : 'general';
5770
- let anchor = (0,_utils_getAnchor__WEBPACK_IMPORTED_MODULE_8__["default"])('menu');
5771
- let foundAnchorInMenu = false;
5772
- //check if this anchor actually exists in our current submenu. If not, clear it
5773
- for (const key in this.menu.menu_items) {
5774
- if (this.menu.menu_items.hasOwnProperty(key) && this.menu.menu_items[key].id === anchor) {
5775
- foundAnchorInMenu = true;
5776
- }
5777
- }
5778
- if (!foundAnchorInMenu) anchor = false;
5779
- return anchor ? anchor : fallBackMenuItem;
5780
- }
5781
- selectMainMenu(selectedMainMenuItem) {
5782
- this.menu = this.getSelectedMenu(this.superMenu, selectedMainMenuItem);
5783
- let selectedMenuItem = this.getDefaultMenuItem();
5784
- this.setState({
5785
- menu: this.menu,
5786
- selectedMainMenuItem: selectedMainMenuItem,
5787
- selectedMenuItem: selectedMenuItem
5788
- });
5789
- }
5790
-
5791
- /*
5792
- * Update a field
5793
- * @param field
5794
- */
5795
- updateField(id, value) {
5796
- let fields = this.fields;
5797
- for (const fieldItem of fields) {
5798
- if (fieldItem.id === id) {
5799
- fieldItem.value = value;
5800
- }
5801
- }
5802
- this.fields = fields;
5803
- this.setState({
5804
- fields: fields
5805
- });
5806
- }
5807
-
5808
- /*
5809
- * Allow children to check a field value from another page (in a page, only visible fields are know)
5810
- */
5811
- getFieldValue(id) {
5812
- let fields = this.fields;
5813
- for (const fieldItem of fields) {
5814
- if (fieldItem.id === id) {
5815
- return fieldItem.value;
5816
- }
5817
- }
5818
- return false;
5819
- }
5820
- addHelp(id, label, text, title) {
5821
- //create help object
5822
- let help = {};
5823
- help.label = label;
5824
- help.text = text;
5825
- if (title) help.title = title;
5826
- let fields = this.fields;
5827
-
5828
- //add to selected field
5829
- for (const fieldItem of fields) {
5830
- if (fieldItem.id === id && !fieldItem.help) {
5831
- fieldItem.help = help;
5832
- this.fields = fields;
5833
- this.setState({
5834
- fields: fields
5835
- });
5836
- }
5837
- }
5838
- }
5839
- highLightField(fieldId) {
5840
- //switch to settings page
5841
- this.selectMainMenu('settings');
5842
- //get menu item based on fieldId
5843
- let selectedField = null;
5844
- let fields = this.fields.filter(field => field.id === fieldId);
5845
- if (fields.length) {
5846
- selectedField = fields[0];
5847
- this.selectMenu(selectedField.menu_id);
5848
- }
5849
- this.highLightedField = fieldId;
5850
- }
5851
- /*
5852
- * Get anchor from URL
5853
- * @returns {string|boolean}
5854
- */
5855
-
5856
- // Parses menu items and nested items in single array
5857
- menuItemParser(parsedMenuItems, menuItems) {
5858
- menuItems.forEach(menuItem => {
5859
- if (menuItem.visible) {
5860
- parsedMenuItems.push(menuItem.id);
5861
- if (menuItem.hasOwnProperty('menu_items')) {
5862
- this.menuItemParser(parsedMenuItems, menuItem.menu_items);
5863
- }
5864
- }
5865
- });
5866
- return parsedMenuItems;
5867
- }
5868
- getPreviousAndNextMenuItems() {
5869
- let previousMenuItem;
5870
- let nextMenuItem;
5871
- const {
5872
- menu_items: menuItems
5873
- } = this.state.menu;
5874
- const parsedMenuItems = [];
5875
- this.menuItemParser(parsedMenuItems, menuItems);
5876
- // Finds current menu item index
5877
- const currentMenuItemIndex = parsedMenuItems.findIndex(menuItem => menuItem === this.state.selectedMenuItem);
5878
- if (currentMenuItemIndex !== -1) {
5879
- previousMenuItem = parsedMenuItems[currentMenuItemIndex === 0 ? '' : currentMenuItemIndex - 1];
5880
- nextMenuItem = parsedMenuItems[currentMenuItemIndex === parsedMenuItems.length - 1 ? '' : currentMenuItemIndex + 1];
5881
- this.setState({
5882
- previousMenuItem: previousMenuItem ? previousMenuItem : parsedMenuItems[0],
5883
- nextMenuItem: nextMenuItem ? nextMenuItem : parsedMenuItems[parsedMenuItems.length - 1]
5884
- });
5885
- }
5886
- return {
5887
- nextMenuItem,
5888
- previousMenuItem
5889
- };
5890
- }
5891
- render() {
5892
- const {
5893
- pageProps,
5894
- selectedMainMenuItem,
5895
- showOnBoardingModal,
5896
- selectedMenuItem,
5897
- fields,
5898
- menu,
5899
- progress,
5900
- isAPILoaded,
5901
- showModal,
5902
- modalData,
5903
- dropItemFromModal
5904
- } = this.state;
5905
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5906
- className: "rsssl-wrapper"
5907
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Onboarding_OnboardingModal__WEBPACK_IMPORTED_MODULE_7__["default"], {
5908
- isAPILoaded: isAPILoaded,
5909
- selectMenu: this.selectMenu,
5910
- selectMainMenu: this.selectMainMenu,
5911
- getFields: this.getFields,
5912
- updateField: this.updateField,
5913
- setShowOnBoardingModal: this.setShowOnBoardingModal,
5914
- showOnBoardingModal: showOnBoardingModal,
5915
- pageProps: this.pageProps,
5916
- setPageProps: this.setPageProps
5917
- }), !isAPILoaded && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Placeholder_PagePlaceholder__WEBPACK_IMPORTED_MODULE_6__["default"], null), showModal && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Modal_Modal__WEBPACK_IMPORTED_MODULE_5__["default"], {
5918
- handleModal: this.handleModal,
5919
- data: modalData
5920
- }), isAPILoaded && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Header__WEBPACK_IMPORTED_MODULE_2__["default"], {
5921
- selectedMainMenuItem: selectedMainMenuItem,
5922
- selectMainMenu: this.selectMainMenu,
5923
- superMenu: this.superMenu,
5924
- fields: fields
5925
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5926
- className: "rsssl-content-area rsssl-grid rsssl-" + selectedMainMenuItem
5927
- }, selectedMainMenuItem !== 'dashboard' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Settings_SettingsPage__WEBPACK_IMPORTED_MODULE_4__["default"], {
5928
- dropItemFromModal: dropItemFromModal,
5929
- updateFields: this.updateFields,
5930
- updateProgress: this.updateProgress,
5931
- pageProps: this.pageProps,
5932
- handleModal: this.handleModal,
5933
- getDefaultMenuItem: this.getDefaultMenuItem,
5934
- updateField: this.updateField,
5935
- getFieldValue: this.getFieldValue,
5936
- addHelp: this.addHelp,
5937
- setPageProps: this.setPageProps,
5938
- selectMenu: this.selectMenu,
5939
- selectStep: this.selectStep,
5940
- selectedStep: this.state.selectedStep,
5941
- highLightField: this.highLightField,
5942
- highLightedField: this.highLightedField,
5943
- selectedMenuItem: selectedMenuItem,
5944
- selectedMainMenuItem: selectedMainMenuItem,
5945
- selectMainMenu: this.selectMainMenu,
5946
- isAPILoaded: isAPILoaded,
5947
- fields: fields,
5948
- menu: menu,
5949
- progress: progress,
5950
- getPreviousAndNextMenuItems: this.getPreviousAndNextMenuItems,
5951
- nextMenuItem: this.state.nextMenuItem,
5952
- previousMenuItem: this.state.previousMenuItem
5953
- }), selectedMainMenuItem === 'dashboard' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_DashBoard_DashboardPage__WEBPACK_IMPORTED_MODULE_3__["default"], {
5954
- setShowOnBoardingModal: this.setShowOnBoardingModal,
5955
- isAPILoaded: isAPILoaded,
5956
- fields: fields,
5957
- selectMainMenu: this.selectMainMenu,
5958
- highLightField: this.highLightField,
5959
- pageProps: pageProps
5960
- }))));
5961
- }
5962
- }
5963
- /* harmony default export */ __webpack_exports__["default"] = (Page);
5964
-
5965
- /***/ }),
5966
-
5967
- /***/ "./src/Placeholder/PagePlaceholder.js":
5968
- /*!********************************************!*\
5969
- !*** ./src/Placeholder/PagePlaceholder.js ***!
5970
- \********************************************/
5971
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5972
-
5973
- "use strict";
5974
- __webpack_require__.r(__webpack_exports__);
5975
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
5976
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
5977
-
5978
-
5979
- class PagePlaceholder extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
5980
- constructor() {
5981
- super(...arguments);
5982
- }
5983
- render() {
5984
- let plugin_url = rsssl_settings.plugin_url;
5985
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5986
- className: "rsssl-header-container"
5987
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5988
- className: "rsssl-header"
5989
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
5990
- className: "rsssl-logo",
5991
- src: plugin_url + 'assets/img/really-simple-ssl-logo.svg',
5992
- alt: "Really Simple SSL logo"
5993
- }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5994
- className: "rsssl-content-area rsssl-grid rsssl-dashboard rsssl-page-placeholder"
5995
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5996
- className: "rsssl-grid-item rsssl-column-2 rsssl-row-2 "
5997
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
5998
- className: "rsssl-grid-item rsssl-row-2"
5999
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6000
- className: "rsssl-grid-item rsssl-row-2"
6001
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6002
- className: "rsssl-grid-item rsssl-column-2"
6003
- })));
6004
- }
6005
- }
6006
- /* harmony default export */ __webpack_exports__["default"] = (PagePlaceholder);
6007
-
6008
- /***/ }),
6009
-
6010
- /***/ "./src/Placeholder/Placeholder.js":
6011
- /*!****************************************!*\
6012
- !*** ./src/Placeholder/Placeholder.js ***!
6013
- \****************************************/
6014
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6015
-
6016
- "use strict";
6017
- __webpack_require__.r(__webpack_exports__);
6018
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6019
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
6020
-
6021
-
6022
- class Placeholder extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
6023
- constructor() {
6024
- super(...arguments);
6025
- }
6026
- render() {
6027
- let lines = this.props.lines;
6028
- if (!lines) lines = 4;
6029
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6030
- className: "rsssl-placeholder"
6031
- }, Array.from({
6032
- length: lines
6033
- }).map((item, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6034
- className: "rsssl-placeholder-line",
6035
- key: i
6036
- })));
6037
- }
6038
- }
6039
- /* harmony default export */ __webpack_exports__["default"] = (Placeholder);
6040
-
6041
- /***/ }),
6042
-
6043
- /***/ "./src/Settings/ChangeStatus.js":
6044
- /*!**************************************!*\
6045
- !*** ./src/Settings/ChangeStatus.js ***!
6046
- \**************************************/
6047
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6048
-
6049
- "use strict";
6050
- __webpack_require__.r(__webpack_exports__);
6051
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6052
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
6053
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
6054
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
6055
-
6056
-
6057
-
6058
- class ChangeStatus extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
6059
- constructor() {
6060
- super(...arguments);
6061
- }
6062
- render() {
6063
- let statusClass = this.props.item.status == 1 ? 'button button-primary rsssl-status-allowed' : 'button button-default rsssl-status-revoked';
6064
- let label = this.props.item.status == 1 ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Revoke", "really-simple-ssl") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Allow", "really-simple-ssl");
6065
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
6066
- onClick: () => this.props.onChangeHandlerDataTableStatus(this.props.item.status, this.props.item, 'status'),
6067
- className: statusClass
6068
- }, label);
6069
- }
6070
- }
6071
- /* harmony default export */ __webpack_exports__["default"] = (ChangeStatus);
6072
-
6073
- /***/ }),
6074
-
6075
- /***/ "./src/Settings/Field.js":
6076
- /*!*******************************!*\
6077
- !*** ./src/Settings/Field.js ***!
6078
- \*******************************/
6079
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6080
-
6081
- "use strict";
6082
- __webpack_require__.r(__webpack_exports__);
6083
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6084
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
6085
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
6086
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
6087
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
6088
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
6089
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
6090
- /* harmony import */ var _License__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./License */ "./src/Settings/License.js");
6091
- /* harmony import */ var _Password__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Password */ "./src/Settings/Password.js");
6092
- /* harmony import */ var _Host__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Host */ "./src/Settings/Host.js");
6093
- /* harmony import */ var _utils_Hyperlink__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/Hyperlink */ "./src/utils/Hyperlink.js");
6094
- /* harmony import */ var _LetsEncrypt_LetsEncrypt__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../LetsEncrypt/LetsEncrypt */ "./src/LetsEncrypt/LetsEncrypt.js");
6095
- /* harmony import */ var _LetsEncrypt_Activate__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../LetsEncrypt/Activate */ "./src/LetsEncrypt/Activate.js");
6096
- /* harmony import */ var _MixedContentScan__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MixedContentScan */ "./src/Settings/MixedContentScan.js");
6097
- /* harmony import */ var _PermissionsPolicy__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./PermissionsPolicy */ "./src/Settings/PermissionsPolicy.js");
6098
- /* harmony import */ var _Support__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Support */ "./src/Settings/Support.js");
6099
- /* harmony import */ var _LearningMode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./LearningMode */ "./src/Settings/LearningMode.js");
6100
- /* harmony import */ var _ChangeStatus__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ChangeStatus */ "./src/Settings/ChangeStatus.js");
6101
- /* harmony import */ var react_data_table_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-data-table-component */ "./node_modules/react-data-table-component/dist/index.cjs.js");
6102
-
6103
-
6104
-
6105
-
6106
-
6107
-
6108
-
6109
-
6110
-
6111
-
6112
-
6113
-
6114
-
6115
-
6116
-
6117
-
6118
-
6119
- /*
6120
- * https://react-data-table-component.netlify.app
6121
- */
6122
-
6123
- class Field extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
6124
- constructor() {
6125
- super(...arguments);
6126
- this.onChangeHandlerDataTableStatus = this.onChangeHandlerDataTableStatus.bind(this);
6127
- this.onChangeHandler = this.onChangeHandler.bind(this);
6128
- }
6129
- componentDidMount() {}
6130
- onChangeHandler(fieldValue) {
6131
- let fields = this.props.fields;
6132
- let field = this.props.field;
6133
- fields[this.props.index]['value'] = fieldValue;
6134
-
6135
- //we can configure other fields if a field is enabled, or set to a certain value.
6136
- let configureFieldCondition = false;
6137
- if (field.configure_on_activation) {
6138
- if (field.configure_on_activation.hasOwnProperty('condition') && this.props.field.value == field.configure_on_activation.condition) {
6139
- configureFieldCondition = true;
6140
- }
6141
- let configureField = field.configure_on_activation[0];
6142
- for (let fieldId in configureField) {
6143
- if (configureFieldCondition && configureField.hasOwnProperty(fieldId)) {
6144
- this.props.updateField(fieldId, configureField[fieldId]);
6145
- }
6146
- }
6147
- }
6148
- this.props.saveChangedFields(field.id);
6149
- }
6150
-
6151
- /*
6152
- * Handle data update for a datatable, for the status only (true/false)
6153
- * @param enabled
6154
- * @param clickedItem
6155
- * @param type
6156
- */
6157
- onChangeHandlerDataTableStatus(enabled, clickedItem, type) {
6158
- let field = this.props.field;
6159
- enabled = enabled == 1 ? 0 : 1;
6160
- if (typeof field.value === 'object') {
6161
- field.value = Object.values(field.value);
6162
- }
6163
- //find this item in the field list
6164
- for (const item of field.value) {
6165
- if (item.id === clickedItem.id) {
6166
- item[type] = enabled;
6167
- }
6168
- delete item.valueControl;
6169
- delete item.statusControl;
6170
- delete item.deleteControl;
6171
- }
6172
- //the updateItemId allows us to update one specific item in a field set.
6173
- field.updateItemId = clickedItem.id;
6174
- let saveFields = [];
6175
- saveFields.push(field);
6176
- this.props.updateField(field.id, field.value);
6177
- _utils_api__WEBPACK_IMPORTED_MODULE_3__.setFields(saveFields).then(response => {
6178
- //this.props.showSavedSettingsNotice();
6179
- });
6180
- }
6181
- onCloseTaskHandler() {}
6182
- render() {
6183
- let field = this.props.field;
6184
- let fieldValue = field.value;
6185
- let fields = this.props.fields;
6186
- let disabled = field.disabled;
6187
- this.highLightClass = this.props.highLightedField === this.props.field.id ? 'rsssl-field-wrap rsssl-highlight' : 'rsssl-field-wrap';
6188
- let options = [];
6189
- if (field.options) {
6190
- for (var key in field.options) {
6191
- if (field.options.hasOwnProperty(key)) {
6192
- let item = {};
6193
- item.label = field.options[key];
6194
- item.value = key;
6195
- options.push(item);
6196
- }
6197
- }
6198
- }
6199
-
6200
- //if a feature can only be used on networkwide or single site setups, pass that info here.
6201
- if (!rsssl_settings.networkwide_active && field.networkwide_required) {
6202
- disabled = true;
6203
- field.comment = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("This feature is only available networkwide.", "really-simple-ssl"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Hyperlink__WEBPACK_IMPORTED_MODULE_7__["default"], {
6204
- target: "_blank",
6205
- text: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Network settings", "really-simple-ssl"),
6206
- url: rsssl_settings.network_link
6207
- }));
6208
- }
6209
- if (field.conditionallyDisabled) {
6210
- disabled = true;
6211
- }
6212
- if (!field.visible) {
6213
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null);
6214
- }
6215
- if (field.type === 'checkbox') {
6216
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6217
- className: this.highLightClass
6218
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.ToggleControl, {
6219
- disabled: disabled,
6220
- checked: field.value == 1,
6221
- label: field.label,
6222
- onChange: fieldValue => this.onChangeHandler(fieldValue)
6223
- }), field.comment && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6224
- className: "rsssl-comment",
6225
- dangerouslySetInnerHTML: {
6226
- __html: field.comment
6227
- }
6228
- }));
6229
- }
6230
- if (field.type === 'hidden') {
6231
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("input", {
6232
- type: "hidden",
6233
- value: field.value
6234
- });
6235
- }
6236
- if (field.type === 'radio') {
6237
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6238
- className: this.highLightClass
6239
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.RadioControl, {
6240
- label: field.label,
6241
- onChange: fieldValue => this.onChangeHandler(fieldValue),
6242
- selected: fieldValue,
6243
- options: options
6244
- }));
6245
- }
6246
- if (field.type === 'text' || field.type === 'email') {
6247
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6248
- className: this.highLightClass
6249
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, {
6250
- required: field.required,
6251
- disabled: disabled,
6252
- help: field.comment,
6253
- label: field.label,
6254
- onChange: fieldValue => this.onChangeHandler(fieldValue),
6255
- value: fieldValue
6256
- }));
6257
- }
6258
- if (field.type === 'button') {
6259
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6260
- className: 'rsssl-field-button ' + this.highLightClass
6261
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", null, field.label), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Hyperlink__WEBPACK_IMPORTED_MODULE_7__["default"], {
6262
- className: "button button-default",
6263
- text: field.button_text,
6264
- url: field.url
6265
- }));
6266
- }
6267
- if (field.type === 'password') {
6268
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6269
- className: this.highLightClass
6270
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Password__WEBPACK_IMPORTED_MODULE_5__["default"], {
6271
- index: this.props.index,
6272
- field: field,
6273
- fields: this.props.fields,
6274
- saveChangedFields: this.props.saveChangedFields
6275
- }));
6276
- }
6277
- if (field.type === 'textarea') {
6278
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6279
- className: this.highLightClass
6280
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextareaControl, {
6281
- label: field.label,
6282
- help: field.comment,
6283
- value: fieldValue,
6284
- onChange: fieldValue => this.onChangeHandler(fieldValue)
6285
- }));
6286
- }
6287
- if (field.type === 'license') {
6288
- let field = this.props.field;
6289
- let fieldValue = field.value;
6290
- let fields = this.props.fields;
6291
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6292
- className: this.highLightClass
6293
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_License__WEBPACK_IMPORTED_MODULE_4__["default"], {
6294
- setPageProps: this.props.setPageProps,
6295
- fieldsUpdateComplete: this.props.fieldsUpdateComplete,
6296
- index: this.props.index,
6297
- fields: fields,
6298
- field: field,
6299
- fieldValue: fieldValue,
6300
- saveChangedFields: this.props.saveChangedFields,
6301
- highLightField: this.props.highLightField,
6302
- highLightedField: this.props.highLightedField
6303
- }));
6304
- }
6305
- if (field.type === 'number') {
6306
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6307
- className: this.highLightClass
6308
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.__experimentalNumberControl, {
6309
- onChange: fieldValue => this.onChangeHandler(fieldValue),
6310
- help: field.comment,
6311
- label: field.label,
6312
- value: fieldValue
6313
- }));
6314
- }
6315
- if (field.type === 'email') {
6316
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6317
- className: this.highLightClass
6318
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextControl, {
6319
- help: field.comment,
6320
- label: field.label,
6321
- onChange: fieldValue => this.onChangeHandler(fieldValue),
6322
- value: fieldValue
6323
- }));
6324
- }
6325
- if (field.type === 'host') {
6326
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6327
- className: this.highLightClass
6328
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Host__WEBPACK_IMPORTED_MODULE_6__["default"], {
6329
- index: this.props.index,
6330
- saveChangedFields: this.props.saveChangedFields,
6331
- handleNextButtonDisabled: this.props.handleNextButtonDisabled,
6332
- updateFields: this.props.updateFields,
6333
- fields: this.props.fields,
6334
- field: this.props.field
6335
- }));
6336
- }
6337
- if (field.type === 'select') {
6338
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6339
- className: this.highLightClass
6340
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.SelectControl, {
6341
- disabled: disabled,
6342
- help: field.comment,
6343
- label: field.label,
6344
- onChange: fieldValue => this.onChangeHandler(fieldValue),
6345
- value: fieldValue,
6346
- options: options
6347
- }));
6348
- }
6349
- if (field.type === 'support') {
6350
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6351
- className: this.highLightClass
6352
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Support__WEBPACK_IMPORTED_MODULE_12__["default"], null));
6353
- }
6354
- if (field.type === 'permissionspolicy') {
6355
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6356
- className: this.highLightClass
6357
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_PermissionsPolicy__WEBPACK_IMPORTED_MODULE_11__["default"], {
6358
- disabled: disabled,
6359
- updateField: this.props.updateField,
6360
- field: this.props.field,
6361
- options: options,
6362
- highLightClass: this.highLightClass,
6363
- fields: fields
6364
- }));
6365
- }
6366
- if (field.type === 'learningmode') {
6367
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6368
- className: this.highLightClass
6369
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_LearningMode__WEBPACK_IMPORTED_MODULE_13__["default"], {
6370
- disabled: disabled,
6371
- onChangeHandlerDataTableStatus: this.onChangeHandlerDataTableStatus,
6372
- updateField: this.props.updateField,
6373
- field: this.props.field,
6374
- options: options,
6375
- highLightClass: this.highLightClass,
6376
- fields: fields
6377
- }));
6378
- }
6379
- if (field.type === 'mixedcontentscan') {
6380
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6381
- className: this.highLightClass
6382
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_MixedContentScan__WEBPACK_IMPORTED_MODULE_10__["default"], {
6383
- dropItemFromModal: this.props.dropItemFromModal,
6384
- handleModal: this.props.handleModal,
6385
- field: this.props.field,
6386
- fields: this.props.selectedFields
6387
- }));
6388
- }
6389
- if (field.type === 'letsencrypt') {
6390
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_LetsEncrypt_LetsEncrypt__WEBPACK_IMPORTED_MODULE_8__["default"], {
6391
- key: field.id,
6392
- resetRefreshTests: this.props.resetRefreshTests,
6393
- refreshTests: this.props.refreshTests,
6394
- getFieldValue: this.props.getFieldValue,
6395
- save: this.props.save,
6396
- selectMenu: this.props.selectMenu,
6397
- addHelp: this.props.addHelp,
6398
- updateField: this.props.updateField,
6399
- fields: this.props.fields,
6400
- field: field,
6401
- handleNextButtonDisabled: this.props.handleNextButtonDisabled
6402
- });
6403
- }
6404
- if (field.type === 'activate') {
6405
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_LetsEncrypt_Activate__WEBPACK_IMPORTED_MODULE_9__["default"], {
6406
- key: field.id,
6407
- selectMainMenu: this.props.selectMainMenu,
6408
- resetRefreshTests: this.props.resetRefreshTests,
6409
- refreshTests: this.props.refreshTests,
6410
- getFieldValue: this.props.getFieldValue,
6411
- save: this.props.save,
6412
- selectMenu: this.props.selectMenu,
6413
- addHelp: this.props.addHelp,
6414
- updateField: this.props.updateField,
6415
- fields: this.props.fields,
6416
- field: field,
6417
- handleNextButtonDisabled: this.props.handleNextButtonDisabled
6418
- });
6419
- }
6420
- return 'not found field type ' + field.type;
6421
- }
6422
- }
6423
- /* harmony default export */ __webpack_exports__["default"] = (Field);
6424
-
6425
- /***/ }),
6426
-
6427
- /***/ "./src/Settings/Help.js":
6428
- /*!******************************!*\
6429
- !*** ./src/Settings/Help.js ***!
6430
- \******************************/
6431
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6432
-
6433
- "use strict";
6434
- __webpack_require__.r(__webpack_exports__);
6435
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6436
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
6437
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
6438
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
6439
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
6440
-
6441
-
6442
-
6443
-
6444
-
6445
- /**
6446
- * Render a help notice in the sidebar
6447
- */
6448
- class Help extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
6449
- render() {
6450
- let notice = this.props.help;
6451
- if (!notice.title) {
6452
- notice.title = notice.text;
6453
- notice.text = false;
6454
- }
6455
- let openStatus = this.props.noticesExpanded ? 'open' : '';
6456
- //we can use notice.linked_field to create a visual link to the field.
6457
-
6458
- let target = notice.url && notice.url.indexOf("really-simple-ssl.com") !== -1 ? "_blank" : '_self';
6459
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, notice.title && notice.text && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("details", {
6460
- className: "rsssl-wizard-help-notice rsssl-" + notice.label.toLowerCase(),
6461
- open: openStatus
6462
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("summary", null, notice.title, " ", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_1__["default"], {
6463
- name: "chevron-down"
6464
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6465
- dangerouslySetInnerHTML: {
6466
- __html: notice.text
6467
- }
6468
- }), notice.url && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6469
- className: "rsssl-help-more-info"
6470
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
6471
- target: target,
6472
- href: notice.url
6473
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("More info", "really-simple-ssl")))), notice.title && !notice.text && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6474
- className: "rsssl-wizard-help-notice rsssl-" + notice.label.toLowerCase()
6475
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, notice.title)));
6476
- }
6477
- }
6478
- /* harmony default export */ __webpack_exports__["default"] = (Help);
6479
-
6480
- /***/ }),
6481
-
6482
- /***/ "./src/Settings/Host.js":
6483
- /*!******************************!*\
6484
- !*** ./src/Settings/Host.js ***!
6485
- \******************************/
6486
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6487
-
6488
- "use strict";
6489
- __webpack_require__.r(__webpack_exports__);
6490
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6491
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
6492
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
6493
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
6494
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
6495
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
6496
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
6497
-
6498
-
6499
-
6500
-
6501
-
6502
- class Host extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
6503
- constructor() {
6504
- super(...arguments);
6505
- this.disabled = false;
6506
- }
6507
- onChangeHandler(fieldValue) {
6508
- let fields = this.props.fields;
6509
- let field = this.props.field;
6510
- field.value = fieldValue;
6511
- fields[this.props.index]['value'] = fieldValue;
6512
-
6513
- //force update, and get new fields.
6514
- this.disabled = true;
6515
- let saveFields = [];
6516
- this.props.handleNextButtonDisabled(true);
6517
- saveFields.push(field);
6518
- _utils_api__WEBPACK_IMPORTED_MODULE_3__.setFields(saveFields).then(response => {
6519
- this.props.updateFields(response.data.fields);
6520
- this.disabled = false;
6521
- this.props.handleNextButtonDisabled(false);
6522
- });
6523
- }
6524
- render() {
6525
- let fieldValue = this.props.field.value;
6526
- let field = this.props.field;
6527
- let options = [];
6528
- if (field.options) {
6529
- for (var key in field.options) {
6530
- if (field.options.hasOwnProperty(key)) {
6531
- let item = {};
6532
- item.label = field.options[key];
6533
- item.value = key;
6534
- options.push(item);
6535
- }
6536
- }
6537
- }
6538
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.SelectControl, {
6539
- label: field.label,
6540
- onChange: fieldValue => this.onChangeHandler(fieldValue),
6541
- value: fieldValue,
6542
- options: options,
6543
- disabled: this.disabled
6544
- });
6545
- }
6546
- }
6547
- /* harmony default export */ __webpack_exports__["default"] = (Host);
6548
-
6549
- /***/ }),
6550
-
6551
- /***/ "./src/Settings/LearningMode.js":
6552
- /*!**************************************!*\
6553
- !*** ./src/Settings/LearningMode.js ***!
6554
- \**************************************/
6555
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6556
-
6557
- "use strict";
6558
- __webpack_require__.r(__webpack_exports__);
6559
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6560
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
6561
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
6562
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
6563
- /* harmony import */ var _ChangeStatus__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChangeStatus */ "./src/Settings/ChangeStatus.js");
6564
- /* harmony import */ var react_data_table_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-data-table-component */ "./node_modules/react-data-table-component/dist/index.cjs.js");
6565
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
6566
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
6567
-
6568
-
6569
-
6570
-
6571
-
6572
-
6573
-
6574
- class Delete extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
6575
- constructor() {
6576
- super(...arguments);
6577
- }
6578
- render() {
6579
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
6580
- type: "button",
6581
- className: " rsssl-learning-mode-delete",
6582
- onClick: () => this.props.onDeleteHandler(this.props.item)
6583
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
6584
- "aria-hidden": "true",
6585
- focusable: "false",
6586
- role: "img",
6587
- xmlns: "http://www.w3.org/2000/svg",
6588
- viewBox: "0 0 320 512",
6589
- height: "16"
6590
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
6591
- fill: "#000000",
6592
- d: "M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"
6593
- })));
6594
- }
6595
- }
6596
- class LearningMode extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
6597
- constructor() {
6598
- super(...arguments);
6599
- this.state = {
6600
- enforce: 0,
6601
- learning_mode: 0,
6602
- lm_enabled_once: 0,
6603
- learning_mode_completed: 0,
6604
- filterValue: -1
6605
- };
6606
- }
6607
- componentDidMount() {
6608
- this.doFilter = this.doFilter.bind(this);
6609
- this.onDeleteHandler = this.onDeleteHandler.bind(this);
6610
- let field = this.props.fields.filter(field => field.id === this.props.field.control_field)[0];
6611
- let enforce = field.value === 'enforce';
6612
- let learning_mode = field.value === 'learning_mode';
6613
- let learning_mode_completed = field.value === 'completed';
6614
- let lm_enabled_once_field_name = this.props.field.control_field + '_lm_enabled_once';
6615
- let lm_enabled_once_field = this.props.fields.filter(field => field.id === lm_enabled_once_field_name)[0];
6616
- let lm_enabled_once = lm_enabled_once_field.value;
6617
-
6618
- //we somehow need this to initialize the field. Otherwise it doesn't work on load. need to figure that out.
6619
- this.props.updateField(field.id, field.value);
6620
- this.setState({
6621
- enforce: enforce,
6622
- learning_mode: learning_mode,
6623
- lm_enabled_once: lm_enabled_once,
6624
- learning_mode_completed: learning_mode_completed
6625
- });
6626
- }
6627
- doFilter(e) {
6628
- this.setState({
6629
- filterValue: e.target.value
6630
- });
6631
- }
6632
- toggleEnforce(e, enforce) {
6633
- e.preventDefault();
6634
- let fields = this.props.fields;
6635
- let field = fields.filter(field => field.id === this.props.field.control_field)[0];
6636
-
6637
- //enforce this setting
6638
- field.value = enforce == 1 ? 'enforce' : 'disabled';
6639
- this.setState({
6640
- enforce: enforce,
6641
- learning_mode_completed: 0
6642
- });
6643
- let saveFields = [];
6644
- saveFields.push(field);
6645
- _utils_api__WEBPACK_IMPORTED_MODULE_4__.setFields(saveFields).then(response => {});
6646
- }
6647
- toggleLearningMode(e) {
6648
- e.preventDefault();
6649
- let fields = this.props.fields;
6650
- let field = fields.filter(field => field.id === this.props.field.control_field)[0];
6651
- let lm_enabled_once_field_name = this.props.field.control_field + '_lm_enabled_once';
6652
- let lm_enabled_once_field = fields.filter(field => field.id === lm_enabled_once_field_name)[0];
6653
- let learning_mode = field.value === 'learning_mode' ? 1 : 0;
6654
- let learning_mode_completed = field.value === 'completed' ? 1 : 0;
6655
- if (learning_mode) {
6656
- lm_enabled_once_field.value = 1;
6657
- }
6658
- field.value = learning_mode || learning_mode_completed ? 'disabled' : 'learning_mode';
6659
- if (learning_mode || learning_mode_completed) {
6660
- learning_mode = 0;
6661
- } else {
6662
- learning_mode = 1;
6663
- }
6664
- learning_mode_completed = 0;
6665
- this.setState({
6666
- learning_mode: learning_mode,
6667
- lm_enabled_once: lm_enabled_once_field.value,
6668
- learning_mode_completed: learning_mode_completed
6669
- });
6670
- let saveFields = [];
6671
- saveFields.push(field);
6672
- saveFields.push(lm_enabled_once_field);
6673
- _utils_api__WEBPACK_IMPORTED_MODULE_4__.setFields(saveFields).then(response => {});
6674
- }
6675
-
6676
- /*
6677
- * Handle data delete
6678
- * @param enabled
6679
- * @param clickedItem
6680
- * @param type
6681
- */
6682
- onDeleteHandler(clickedItem) {
6683
- let field = this.props.field;
6684
- if (typeof field.value === 'object') {
6685
- field.value = Object.values(field.value);
6686
- }
6687
-
6688
- //find this item in the field list and remove it.
6689
- field.value.forEach(function (item, i) {
6690
- if (item.id === clickedItem.id) {
6691
- field.value.splice(i, 1);
6692
- }
6693
- });
6694
-
6695
- //remove objects from values
6696
- for (const item of field.value) {
6697
- delete item.valueControl;
6698
- delete item.statusControl;
6699
- delete item.deleteControl;
6700
- }
6701
-
6702
- //the updateItemId allows us to update one specific item in a field set.
6703
- field.updateItemId = clickedItem.id;
6704
- field.action = 'delete';
6705
- let saveFields = [];
6706
- saveFields.push(field);
6707
- this.props.updateField(field.id, field.value);
6708
- _utils_api__WEBPACK_IMPORTED_MODULE_4__.setFields(saveFields).then(response => {});
6709
- }
6710
- render() {
6711
- let field = this.props.field;
6712
- let fieldValue = field.value;
6713
- let options = this.props.options;
6714
- let configuringString = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("We're configuring your %s. Exit to edit and enforce.", "really-simple-ssl").replace('%s', field.label);
6715
- let disabledString = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("%s has been disabled.", "really-simple-ssl").replace('%s', field.label);
6716
- let enforcedString = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("%s is enforced.", "really-simple-ssl").replace('%s', field.label);
6717
- const {
6718
- filterValue,
6719
- enforce,
6720
- learning_mode,
6721
- lm_enabled_once,
6722
- learning_mode_completed
6723
- } = this.state;
6724
- let enforceDisabled = !lm_enabled_once;
6725
- const Filter = () => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("select", {
6726
- onChange: e => this.doFilter(e),
6727
- value: filterValue
6728
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("option", {
6729
- value: "-1"
6730
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("All", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("option", {
6731
- value: "1"
6732
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Allowed", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("option", {
6733
- value: "0"
6734
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Blocked", "really-simple-ssl"))));
6735
-
6736
- //build our header
6737
- columns = [];
6738
- field.columns.forEach(function (item, i) {
6739
- let newItem = {
6740
- name: item.name,
6741
- sortable: item.sortable,
6742
- width: item.width,
6743
- selector: row => row[item.column]
6744
- };
6745
- columns.push(newItem);
6746
- });
6747
- let data = field.value;
6748
- if (typeof data === 'object') {
6749
- data = Object.values(data);
6750
- }
6751
- if (!Array.isArray(data)) {
6752
- data = [];
6753
- }
6754
- data = data.filter(item => item.status < 2);
6755
- if (filterValue != -1) {
6756
- data = data.filter(item => item.status == filterValue);
6757
- }
6758
- for (const item of data) {
6759
- if (item.login_status) item.login_statusControl = item.login_status == 1 ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("success", "really-simple-ssl") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("failed", "really-simple-ssl");
6760
- item.statusControl = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_ChangeStatus__WEBPACK_IMPORTED_MODULE_2__["default"], {
6761
- item: item,
6762
- onChangeHandlerDataTableStatus: this.props.onChangeHandlerDataTableStatus
6763
- });
6764
- item.deleteControl = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(Delete, {
6765
- item: item,
6766
- onDeleteHandler: this.onDeleteHandler
6767
- });
6768
- }
6769
- const conditionalRowStyles = [{
6770
- when: row => row.status == 0,
6771
- classNames: ['rsssl-datatables-revoked']
6772
- }];
6773
- const customStyles = {
6774
- headCells: {
6775
- style: {
6776
- paddingLeft: '0',
6777
- // override the cell padding for head cells
6778
- paddingRight: '0'
6779
- }
6780
- },
6781
- cells: {
6782
- style: {
6783
- paddingLeft: '0',
6784
- // override the cell padding for data cells
6785
- paddingRight: '0'
6786
- }
6787
- }
6788
- };
6789
- (0,react_data_table_component__WEBPACK_IMPORTED_MODULE_3__.createTheme)('really-simple-plugins', {
6790
- divider: {
6791
- default: 'transparent'
6792
- }
6793
- }, 'light');
6794
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6795
- className: this.highLightClass
6796
- }, data.length == 0 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6797
- className: "rsssl-learningmode-placeholder"
6798
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null))), data.length > 0 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_data_table_component__WEBPACK_IMPORTED_MODULE_3__["default"], {
6799
- columns: columns,
6800
- data: data,
6801
- dense: true,
6802
- pagination: true,
6803
- noDataComponent: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("No results", "really-simple-ssl"),
6804
- persistTableHead: true,
6805
- theme: "really-simple-plugins",
6806
- customStyles: customStyles,
6807
- conditionalRowStyles: conditionalRowStyles
6808
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6809
- className: "rsssl-learning-mode-footer"
6810
- }, enforce != 1 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
6811
- disabled: enforceDisabled,
6812
- className: "button button-primary",
6813
- onClick: e => this.toggleEnforce(e, true)
6814
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Enforce", "really-simple-ssl")), enforce == 1 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
6815
- className: "button",
6816
- onClick: e => this.toggleEnforce(e, false)
6817
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Disable", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("input", {
6818
- type: "checkbox",
6819
- disabled: enforce,
6820
- checked: learning_mode == 1,
6821
- value: learning_mode,
6822
- onChange: e => this.toggleLearningMode(e)
6823
- }), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Enable Learning Mode", "really-simple-ssl")), enforce == 1 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6824
- className: "rsssl-locked"
6825
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6826
- className: "rsssl-shield-overlay"
6827
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_5__["default"], {
6828
- name: "shield",
6829
- size: "80px"
6830
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6831
- className: "rsssl-locked-overlay"
6832
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
6833
- className: "rsssl-progress-status rsssl-learning-mode-enforced"
6834
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Enforced", "really-simple-ssl")), enforcedString, "\xA0", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
6835
- className: "rsssl-learning-mode-link",
6836
- href: "#",
6837
- onClick: e => this.toggleEnforce(e)
6838
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Disable to configure", "really-simple-ssl")))), learning_mode == 1 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6839
- className: "rsssl-locked"
6840
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6841
- className: "rsssl-locked-overlay"
6842
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
6843
- className: "rsssl-progress-status rsssl-learning-mode"
6844
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Learning Mode", "really-simple-ssl")), configuringString, "\xA0", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
6845
- className: "rsssl-learning-mode-link",
6846
- href: "#",
6847
- onClick: e => this.toggleLearningMode(e)
6848
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Exit learning mode", "really-simple-ssl")))), learning_mode_completed == 1 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6849
- className: "rsssl-locked"
6850
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6851
- className: "rsssl-locked-overlay"
6852
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
6853
- className: "rsssl-progress-status rsssl-learning-mode-completed"
6854
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Learning Mode", "really-simple-ssl")), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("We finished the configuration.", "really-simple-ssl"), "\xA0", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
6855
- className: "rsssl-learning-mode-link",
6856
- href: "#",
6857
- onClick: e => this.toggleLearningMode(e)
6858
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Review the settings and enforce the policy", "really-simple-ssl")))), rsssl_settings.pro_plugin_active && this.props.disabled && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6859
- className: "rsssl-locked"
6860
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6861
- className: "rsssl-locked-overlay"
6862
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
6863
- className: "rsssl-progress-status rsssl-disabled"
6864
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Disabled ", "really-simple-ssl")), disabledString)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(Filter, null))));
6865
- }
6866
- }
6867
- /* harmony default export */ __webpack_exports__["default"] = (LearningMode);
6868
-
6869
- /***/ }),
6870
-
6871
- /***/ "./src/Settings/License.js":
6872
- /*!*********************************!*\
6873
- !*** ./src/Settings/License.js ***!
6874
- \*********************************/
6875
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6876
-
6877
- "use strict";
6878
- __webpack_require__.r(__webpack_exports__);
6879
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
6880
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
6881
- /* harmony import */ var _DashBoard_TaskElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DashBoard/TaskElement */ "./src/DashBoard/TaskElement.js");
6882
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
6883
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
6884
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
6885
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
6886
-
6887
-
6888
-
6889
-
6890
-
6891
-
6892
- class License extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
6893
- constructor() {
6894
- super(...arguments);
6895
- this.noticesLoaded = false;
6896
- this.fieldsUpdateComplete = false;
6897
- this.licenseStatus = 'invalid';
6898
- this.getLicenseNotices = this.getLicenseNotices.bind(this);
6899
- this.state = {
6900
- licenseStatus: 'invalid',
6901
- noticesLoaded: false,
6902
- notices: []
6903
- };
6904
- }
6905
- getLicenseNotices() {
6906
- return _utils_api__WEBPACK_IMPORTED_MODULE_3__.runTest('licenseNotices', 'refresh').then(response => {
6907
- return response.data;
6908
- });
6909
- }
6910
- componentDidMount() {
6911
- this.props.highLightField('');
6912
- this.setState({
6913
- noticesLoaded: this.noticesLoaded,
6914
- licenseStatus: this.licenseStatus,
6915
- notices: this.notices
6916
- });
6917
- }
6918
- componentDidUpdate(prevProps) {
6919
- if (!this.fieldsUpdateComplete && this.props.fieldsUpdateComplete) {
6920
- this.getLicenseNotices().then(response => {
6921
- this.fieldsUpdateComplete = this.props.fieldsUpdateComplete;
6922
- this.props.setPageProps('licenseStatus', response.licenseStatus);
6923
- this.notices = response.notices;
6924
- this.licenseStatus = response.licenseStatus;
6925
- this.noticesLoaded = true;
6926
- this.setState({
6927
- noticesLoaded: this.noticesLoaded,
6928
- licenseStatus: this.licenseStatus,
6929
- notices: this.notices
6930
- });
6931
- });
6932
- }
6933
- }
6934
- onChangeHandler(fieldValue) {
6935
- this.fieldsUpdateComplete = false;
6936
- let fields = this.props.fields;
6937
- let field = this.props.field;
6938
- fields[this.props.index]['value'] = fieldValue;
6939
- this.props.saveChangedFields(field.id);
6940
- this.setState({
6941
- fields: fields
6942
- });
6943
- }
6944
- onCloseTaskHandler() {}
6945
- toggleActivation() {
6946
- this.setState({
6947
- noticesLoaded: false
6948
- });
6949
- const {
6950
- licenseStatus
6951
- } = this.state;
6952
- if (licenseStatus === 'valid') {
6953
- _utils_api__WEBPACK_IMPORTED_MODULE_3__.runTest('deactivate_license').then(response => {
6954
- this.props.setPageProps('licenseStatus', response.data.licenseStatus);
6955
- this.notices = response.data.notices;
6956
- this.licenseStatus = response.data.licenseStatus;
6957
- this.noticesLoaded = true;
6958
- this.setState({
6959
- noticesLoaded: this.noticesLoaded,
6960
- licenseStatus: this.licenseStatus,
6961
- notices: this.notices
6962
- });
6963
- });
6964
- } else {
6965
- let data = {};
6966
- data.license = this.props.field.value;
6967
- _utils_api__WEBPACK_IMPORTED_MODULE_3__.doAction('activate_license', data).then(response => {
6968
- this.props.setPageProps('licenseStatus', response.data.licenseStatus);
6969
- this.notices = response.data.notices;
6970
- this.licenseStatus = response.data.licenseStatus;
6971
- this.noticesLoaded = true;
6972
- this.setState({
6973
- noticesLoaded: this.noticesLoaded,
6974
- licenseStatus: this.licenseStatus,
6975
- notices: this.notices
6976
- });
6977
- });
6978
- }
6979
- }
6980
- render() {
6981
- const {
6982
- noticesLoaded,
6983
- notices,
6984
- licenseStatus
6985
- } = this.state;
6986
- let field = this.props.field;
6987
- let fieldValue = field.value;
6988
- let fields = this.props.fields;
6989
- /**
6990
- * There is no "PasswordControl" in WordPress react yet, so we create our own license field.
6991
- */
6992
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6993
- className: "components-base-control"
6994
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
6995
- className: "components-base-control__field"
6996
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", {
6997
- className: "components-base-control__label",
6998
- htmlFor: field.id
6999
- }, field.label), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7000
- className: "rsssl-license-field"
7001
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("input", {
7002
- className: "components-text-control__input",
7003
- type: "password",
7004
- id: field.id,
7005
- value: fieldValue,
7006
- onChange: e => this.onChangeHandler(e.target.value)
7007
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
7008
- className: "button button-default",
7009
- onClick: () => this.toggleActivation()
7010
- }, licenseStatus === 'valid' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Deactivate", "really-simple-ssl")), licenseStatus !== 'valid' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Activate", "really-simple-ssl"))))), !noticesLoaded && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_2__["default"], null), noticesLoaded && notices.map((notice, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_DashBoard_TaskElement__WEBPACK_IMPORTED_MODULE_1__["default"], {
7011
- key: i,
7012
- index: i,
7013
- notice: notice,
7014
- onCloseTaskHandler: this.onCloseTaskHandler,
7015
- highLightField: ""
7016
- })));
7017
- }
7018
- }
7019
- /* harmony default export */ __webpack_exports__["default"] = (License);
7020
-
7021
- /***/ }),
7022
-
7023
- /***/ "./src/Settings/MixedContentScan.js":
7024
- /*!******************************************!*\
7025
- !*** ./src/Settings/MixedContentScan.js ***!
7026
- \******************************************/
7027
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7028
-
7029
- "use strict";
7030
- __webpack_require__.r(__webpack_exports__);
7031
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
7032
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
7033
- /* harmony import */ var react_data_table_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-data-table-component */ "./node_modules/react-data-table-component/dist/index.cjs.js");
7034
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
7035
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
7036
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
7037
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
7038
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
7039
- /* harmony import */ var _Modal_ModalControl__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Modal/ModalControl */ "./src/Modal/ModalControl.js");
7040
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
7041
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
7042
-
7043
-
7044
-
7045
-
7046
-
7047
-
7048
-
7049
-
7050
-
7051
- class subHeaderComponentMemo extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
7052
- constructor() {
7053
- super(...arguments);
7054
- }
7055
- render() {
7056
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("select", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("option", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("All results", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("option", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Show", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("option", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("All results", "really-simple-ssl")));
7057
- }
7058
- }
7059
- class MixedContentScan extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
7060
- constructor() {
7061
- super(...arguments);
7062
- this.nonce = '';
7063
- this.state = {
7064
- data: [],
7065
- progress: 0,
7066
- action: '',
7067
- state: 'stop',
7068
- paused: false,
7069
- showIgnoredUrls: false,
7070
- resetPaginationToggle: false
7071
- };
7072
- }
7073
- getScanStatus() {
7074
- return _utils_api__WEBPACK_IMPORTED_MODULE_4__.runTest('scan_status', 'refresh').then(response => {
7075
- return response.data;
7076
- });
7077
- }
7078
- componentDidMount() {
7079
- let data = [];
7080
- let progress = 0;
7081
- let action = '';
7082
- let state = 'stop';
7083
- let completedStatus = 'never';
7084
- if (this.props.field.value.data) {
7085
- data = this.props.field.value.data;
7086
- }
7087
- if (this.props.field.value.progress) {
7088
- progress = this.props.field.value.progress;
7089
- }
7090
- if (this.props.field.value.action) {
7091
- action = this.props.field.value.action;
7092
- }
7093
- if (this.props.field.value.state) {
7094
- state = this.props.field.value.state;
7095
- }
7096
- if (this.props.field.value.completed_status) {
7097
- completedStatus = this.props.field.value.completed_status;
7098
- }
7099
- if (this.props.field.value.nonce) {
7100
- this.nonce = this.props.field.value.nonce;
7101
- }
7102
- this.setState({
7103
- completedStatus: completedStatus,
7104
- data: data,
7105
- progress: progress,
7106
- action: action,
7107
- state: state
7108
- });
7109
- }
7110
- start(e) {
7111
- //add start_full option
7112
- let state = 'start';
7113
- if (this.state.paused) {
7114
- state = 'running';
7115
- }
7116
- this.setState({
7117
- state: 'running',
7118
- paused: false
7119
- });
7120
- _utils_api__WEBPACK_IMPORTED_MODULE_4__.runTest('mixed_content_scan', state).then(response => {
7121
- this.setState({
7122
- data: response.data.data,
7123
- progress: response.data.progress,
7124
- action: response.data.action,
7125
- state: response.data.state
7126
- });
7127
- if (response.data.state === 'running') {
7128
- this.run();
7129
- }
7130
- });
7131
- }
7132
- run(e) {
7133
- if (this.state.paused) {
7134
- return;
7135
- }
7136
- _utils_api__WEBPACK_IMPORTED_MODULE_4__.runTest('mixed_content_scan', 'running').then(response => {
7137
- this.setState({
7138
- completedStatus: response.data.completed_status,
7139
- data: response.data.data,
7140
- progress: response.data.progress,
7141
- action: response.data.action,
7142
- state: response.data.state
7143
- });
7144
- //if scan was stopped while running, set it to stopped now.
7145
- if (this.state.paused) {
7146
- this.stop();
7147
- } else if (response.data.state === 'running') {
7148
- this.run();
7149
- }
7150
- });
7151
- }
7152
- toggleIgnoredUrls(e) {
7153
- let {
7154
- showIgnoredUrls
7155
- } = this.state;
7156
- this.setState({
7157
- showIgnoredUrls: !showIgnoredUrls
7158
- });
7159
- }
7160
- stop(e) {
7161
- this.setState({
7162
- state: 'stop',
7163
- paused: true
7164
- });
7165
- _utils_api__WEBPACK_IMPORTED_MODULE_4__.runTest('mixed_content_scan', 'stop').then(response => {
7166
- this.setState({
7167
- completedStatus: response.data.completed_status,
7168
- data: response.data.data,
7169
- progress: response.data.progress,
7170
- action: response.data.action
7171
- });
7172
- });
7173
- }
7174
-
7175
- /**
7176
- * After an update, remove an item from the data array
7177
- * @param removeItem
7178
- */
7179
- removeDataItem(removeItem) {
7180
- const updatedData = this.state.data.filter(item => item.id === removeItem.id);
7181
- this.setState({
7182
- data: updatedData
7183
- });
7184
- }
7185
- render() {
7186
- let {
7187
- completedStatus,
7188
- data,
7189
- action,
7190
- progress,
7191
- state,
7192
- showIgnoredUrls,
7193
- resetPaginationToggle
7194
- } = this.state;
7195
- let field = this.props.field;
7196
- let fieldValue = field.value;
7197
- let fields = this.props.fields;
7198
- if (!rsssl_settings.pro_plugin_active) progress = 80;
7199
- columns = [];
7200
- field.columns.forEach(function (item, i) {
7201
- let newItem = {
7202
- name: item.name,
7203
- sortable: item.sortable,
7204
- grow: item.grow,
7205
- selector: row => row[item.column],
7206
- right: !!item.right
7207
- };
7208
- columns.push(newItem);
7209
- });
7210
- if (typeof data === 'object') {
7211
- data = Object.values(data);
7212
- }
7213
- if (!Array.isArray(data)) {
7214
- data = [];
7215
- }
7216
- completedStatus = completedStatus ? completedStatus.toLowerCase() : 'never';
7217
- let dropItem = this.props.dropItemFromModal;
7218
- for (const item of data) {
7219
- item.warningControl = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
7220
- className: "rsssl-task-status rsssl-warning"
7221
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Warning", "really-simple-ssl"));
7222
- //@todo check action for correct filter or drop action.
7223
- if (dropItem && dropItem.url === item.blocked_url) {
7224
- if (dropItem.action === 'ignore_url') {
7225
- item.ignored = true;
7226
- } else {
7227
- item.fixed = true;
7228
- }
7229
- }
7230
- //give fix and details the url as prop
7231
- if (item.fix) {
7232
- item.fix.url = item.blocked_url;
7233
- item.fix.nonce = this.nonce;
7234
- }
7235
- if (item.details) {
7236
- item.details.url = item.blocked_url;
7237
- item.details.nonce = this.nonce;
7238
- item.details.ignored = item.ignored;
7239
- }
7240
- if (item.location.length > 0) {
7241
- if (item.location.indexOf('http://') !== -1 || item.location.indexOf('https://') !== -1) {
7242
- item.locationControl = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
7243
- href: item.location,
7244
- target: "_blank"
7245
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("View", "really-simple-ssl"));
7246
- } else {
7247
- item.locationControl = item.location;
7248
- }
7249
- }
7250
- item.detailsControl = item.details && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Modal_ModalControl__WEBPACK_IMPORTED_MODULE_5__["default"], {
7251
- removeDataItem: this.removeDataItem,
7252
- handleModal: this.props.handleModal,
7253
- item: item,
7254
- btnText: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Details", "really-simple-ssl"),
7255
- btnStyle: "secondary",
7256
- modalData: item.details
7257
- });
7258
- item.fixControl = item.fix && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Modal_ModalControl__WEBPACK_IMPORTED_MODULE_5__["default"], {
7259
- className: "button button-primary",
7260
- removeDataItem: this.removeDataItem,
7261
- handleModal: this.props.handleModal,
7262
- item: item,
7263
- btnText: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Fix", "really-simple-ssl"),
7264
- btnStyle: "primary",
7265
- modalData: item.fix
7266
- });
7267
- }
7268
- if (!showIgnoredUrls) {
7269
- data = data.filter(item => !item.ignored);
7270
- }
7271
-
7272
- //filter also recently fixed items
7273
- data = data.filter(item => !item.fixed);
7274
- progress += '%';
7275
- let startDisabled = state === 'running';
7276
- let stopDisabled = state !== 'running';
7277
- let label = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Show ignored URLs", 'burst-statistics');
7278
- const customStyles = {
7279
- headCells: {
7280
- style: {
7281
- paddingLeft: '0',
7282
- // override the cell padding for head cells
7283
- paddingRight: '0'
7284
- }
7285
- },
7286
- cells: {
7287
- style: {
7288
- paddingLeft: '0',
7289
- // override the cell padding for data cells
7290
- paddingRight: '0'
7291
- }
7292
- }
7293
- };
7294
- (0,react_data_table_component__WEBPACK_IMPORTED_MODULE_1__.createTheme)('really-simple-plugins', {
7295
- divider: {
7296
- default: 'transparent'
7297
- }
7298
- }, 'light');
7299
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7300
- className: "rsssl-progress-container"
7301
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7302
- className: "rsssl-progress-bar",
7303
- style: {
7304
- width: progress
7305
- }
7306
- })), state === 'running' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7307
- className: "rsssl-current-scan-action"
7308
- }, action), data.length == 0 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7309
- className: "rsssl-mixed-content-description"
7310
- }, state !== 'running' && completedStatus === 'never' && (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("No results. Start your first scan", "really-simple-ssl"), state !== 'running' && completedStatus === 'completed' && (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Everything is now served over SSL", "really-simple-ssl")), (state === 'running' || completedStatus !== 'completed') && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7311
- className: "rsssl-mixed-content-placeholder"
7312
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null)), state !== 'running' && completedStatus === 'completed' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7313
- className: "rsssl-shield-overlay"
7314
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
7315
- name: "shield",
7316
- size: "80px"
7317
- }))), data.length > 0 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7318
- className: 'rsssl-mixed-content-datatable'
7319
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_data_table_component__WEBPACK_IMPORTED_MODULE_1__["default"], {
7320
- columns: columns,
7321
- data: data,
7322
- dense: true,
7323
- pagination: true,
7324
- paginationResetDefaultPage: resetPaginationToggle // optionally, a hook to reset pagination to page 1
7325
- ,
7326
- noDataComponent: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("No results", "really-simple-ssl") //or your component
7327
- ,
7328
- theme: "really-simple-plugins",
7329
- customStyles: customStyles
7330
-
7331
- // subHeader
7332
- // subHeaderComponent=<subHeaderComponentMemo/>
7333
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7334
- className: "rsssl-grid-item-content-footer"
7335
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
7336
- className: "button",
7337
- disabled: startDisabled,
7338
- onClick: e => this.start(e)
7339
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Start scan", "really-simple-ssl-pro")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
7340
- className: "button",
7341
- disabled: stopDisabled,
7342
- onClick: e => this.stop(e)
7343
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Stop", "really-simple-ssl-pro")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.ToggleControl, {
7344
- checked: showIgnoredUrls == 1,
7345
- onChange: e => this.toggleIgnoredUrls(e)
7346
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)('Show ignored URLs', 'burst-statistics'))));
7347
- }
7348
- }
7349
- /* harmony default export */ __webpack_exports__["default"] = (MixedContentScan);
7350
-
7351
- /***/ }),
7352
-
7353
- /***/ "./src/Settings/Notices.js":
7354
- /*!*********************************!*\
7355
- !*** ./src/Settings/Notices.js ***!
7356
- \*********************************/
7357
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7358
-
7359
- "use strict";
7360
- __webpack_require__.r(__webpack_exports__);
7361
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
7362
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
7363
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
7364
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
7365
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
7366
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_2__);
7367
- /* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/notices */ "@wordpress/notices");
7368
- /* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_notices__WEBPACK_IMPORTED_MODULE_3__);
7369
-
7370
- /**
7371
- * Notice after saving was successfull
7372
- */
7373
-
7374
-
7375
-
7376
- const Notices = () => {
7377
- const notices = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.useSelect)(select => select(_wordpress_notices__WEBPACK_IMPORTED_MODULE_3__.store).getNotices().filter(notice => notice.type === 'snackbar'), []);
7378
- if (typeof notices === 'undefined') {
7379
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null);
7380
- }
7381
- const {
7382
- removeNotice
7383
- } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_2__.useDispatch)(_wordpress_notices__WEBPACK_IMPORTED_MODULE_3__.store);
7384
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.SnackbarList, {
7385
- className: "edit-site-notices",
7386
- notices: notices,
7387
- onRemove: removeNotice
7388
- });
7389
- };
7390
- /* harmony default export */ __webpack_exports__["default"] = (Notices);
7391
-
7392
- /***/ }),
7393
-
7394
- /***/ "./src/Settings/Password.js":
7395
- /*!**********************************!*\
7396
- !*** ./src/Settings/Password.js ***!
7397
- \**********************************/
7398
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7399
-
7400
- "use strict";
7401
- __webpack_require__.r(__webpack_exports__);
7402
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
7403
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
7404
-
7405
-
7406
- class Password extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
7407
- constructor() {
7408
- super(...arguments);
7409
- }
7410
- onChangeHandler(fieldValue) {
7411
- let fields = this.props.fields;
7412
- let field = this.props.field;
7413
- fields[this.props.index]['value'] = fieldValue;
7414
- this.props.saveChangedFields(field.id);
7415
- this.setState({
7416
- fields: fields
7417
- });
7418
- }
7419
- render() {
7420
- let field = this.props.field;
7421
- let fieldValue = field.value;
7422
- let fields = this.props.fields;
7423
-
7424
- /**
7425
- * There is no "PasswordControl" in WordPress react yet, so we create our own license field.
7426
- */
7427
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7428
- className: "components-base-control"
7429
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7430
- className: "components-base-control__field"
7431
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("label", {
7432
- className: "components-base-control__label",
7433
- htmlFor: field.id
7434
- }, field.label), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("input", {
7435
- className: "components-text-control__input",
7436
- type: "password",
7437
- id: field.id,
7438
- value: fieldValue,
7439
- onChange: e => this.onChangeHandler(e.target.value)
7440
- })));
7441
- }
7442
- }
7443
- /* harmony default export */ __webpack_exports__["default"] = (Password);
7444
-
7445
- /***/ }),
7446
-
7447
- /***/ "./src/Settings/PermissionsPolicy.js":
7448
- /*!*******************************************!*\
7449
- !*** ./src/Settings/PermissionsPolicy.js ***!
7450
- \*******************************************/
7451
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7452
-
7453
- "use strict";
7454
- __webpack_require__.r(__webpack_exports__);
7455
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
7456
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
7457
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
7458
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
7459
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
7460
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
7461
- /* harmony import */ var _ChangeStatus__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ChangeStatus */ "./src/Settings/ChangeStatus.js");
7462
- /* harmony import */ var react_data_table_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-data-table-component */ "./node_modules/react-data-table-component/dist/index.cjs.js");
7463
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
7464
- /* harmony import */ var _utils_Icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/Icon */ "./src/utils/Icon.js");
7465
-
7466
-
7467
-
7468
-
7469
-
7470
-
7471
-
7472
-
7473
- class PermissionsPolicy extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
7474
- constructor() {
7475
- super(...arguments);
7476
- this.state = {
7477
- enable_permissions_policy: 0
7478
- };
7479
- }
7480
- componentDidMount() {
7481
- this.togglePermissionsPolicyStatus = this.togglePermissionsPolicyStatus.bind(this);
7482
- this.onChangeHandler = this.onChangeHandler.bind(this);
7483
- let field = this.props.fields.filter(field => field.id === 'enable_permissions_policy')[0];
7484
- this.setState({
7485
- enable_permissions_policy: field.value
7486
- });
7487
- }
7488
- onChangeHandler(value, clickedItem) {
7489
- let field = this.props.field;
7490
- if (typeof field.value === 'object') {
7491
- field.value = Object.values(field.value);
7492
- }
7493
- //find this item in the field list
7494
- for (const item of field.value) {
7495
- if (item.id === clickedItem.id) {
7496
- item['value'] = value;
7497
- }
7498
- delete item.valueControl;
7499
- delete item.statusControl;
7500
- delete item.deleteControl;
7501
- }
7502
- //the updateItemId allows us to update one specific item in a field set.
7503
- field.updateItemId = clickedItem.id;
7504
- let saveFields = [];
7505
- saveFields.push(field);
7506
- this.props.updateField(field.id, field.value);
7507
- _utils_api__WEBPACK_IMPORTED_MODULE_5__.setFields(saveFields).then(response => {
7508
- //this.props.showSavedSettingsNotice();
7509
- });
7510
- }
7511
- togglePermissionsPolicyStatus(e, enforce) {
7512
- e.preventDefault();
7513
- let fields = this.props.fields;
7514
- //look up permissions policy enable field //enable_permissions_policy
7515
- let field = fields.filter(field => field.id === 'enable_permissions_policy')[0];
7516
- //enforce this setting
7517
- field.value = enforce;
7518
- this.setState({
7519
- enable_permissions_policy: enforce
7520
- });
7521
- let saveFields = [];
7522
- saveFields.push(field);
7523
- this.props.updateField(field.id, field.value);
7524
- _utils_api__WEBPACK_IMPORTED_MODULE_5__.setFields(saveFields).then(response => {
7525
- //this.props.showSavedSettingsNotice();
7526
- });
7527
- }
7528
- render() {
7529
- let field = this.props.field;
7530
- let fieldValue = field.value;
7531
- let options = this.props.options;
7532
- const {
7533
- enable_permissions_policy
7534
- } = this.state;
7535
- columns = [];
7536
- field.columns.forEach(function (item, i) {
7537
- let newItem = {
7538
- name: item.name,
7539
- sortable: item.sortable,
7540
- width: item.width,
7541
- selector: row => row[item.column]
7542
- };
7543
- columns.push(newItem);
7544
- });
7545
- let data = field.value;
7546
- if (typeof data === 'object') {
7547
- data = Object.values(data);
7548
- }
7549
- if (!Array.isArray(data)) {
7550
- data = [];
7551
- }
7552
- let disabled = false;
7553
- for (const item of data) {
7554
- item.valueControl = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.SelectControl, {
7555
- help: "",
7556
- value: item.value,
7557
- disabled: disabled,
7558
- options: options,
7559
- label: "",
7560
- onChange: fieldValue => this.onChangeHandler(fieldValue, item, 'value')
7561
- });
7562
- }
7563
- const customStyles = {
7564
- headCells: {
7565
- style: {
7566
- paddingLeft: '0',
7567
- // override the cell padding for head cells
7568
- paddingRight: '0'
7569
- }
7570
- },
7571
- cells: {
7572
- style: {
7573
- paddingLeft: '0',
7574
- // override the cell padding for data cells
7575
- paddingRight: '0'
7576
- }
7577
- }
7578
- };
7579
- (0,react_data_table_component__WEBPACK_IMPORTED_MODULE_4__.createTheme)('really-simple-plugins', {
7580
- divider: {
7581
- default: 'transparent'
7582
- }
7583
- }, 'light');
7584
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7585
- className: this.props.highLightClass
7586
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_data_table_component__WEBPACK_IMPORTED_MODULE_4__["default"], {
7587
- columns: columns,
7588
- data: data,
7589
- dense: true,
7590
- pagination: false,
7591
- customStyles: customStyles,
7592
- theme: "really-simple-plugins"
7593
- }), enable_permissions_policy != 1 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
7594
- className: "button button-primary",
7595
- onClick: e => this.togglePermissionsPolicyStatus(e, true)
7596
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Enforce", "really-simple-ssl")), enable_permissions_policy == 1 && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7597
- className: "rsssl-locked"
7598
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7599
- className: "rsssl-shield-overlay"
7600
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
7601
- name: "shield",
7602
- size: "80px"
7603
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7604
- className: "rsssl-locked-overlay"
7605
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
7606
- className: "rsssl-progress-status rsssl-learning-mode-enforced"
7607
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Enforced", "really-simple-ssl")), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Permissions Policy is enforced.", "really-simple-ssl"), "\xA0", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
7608
- className: "rsssl-learning-mode-link",
7609
- href: "#",
7610
- onClick: e => this.togglePermissionsPolicyStatus(e, false)
7611
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Disable", "really-simple-ssl")))));
7612
- }
7613
- }
7614
- /* harmony default export */ __webpack_exports__["default"] = (PermissionsPolicy);
7615
-
7616
- /***/ }),
7617
-
7618
- /***/ "./src/Settings/Settings.js":
7619
- /*!**********************************!*\
7620
- !*** ./src/Settings/Settings.js ***!
7621
- \**********************************/
7622
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7623
-
7624
- "use strict";
7625
- __webpack_require__.r(__webpack_exports__);
7626
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
7627
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
7628
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
7629
- /* harmony import */ var _utils_lib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/lib */ "./src/utils/lib.js");
7630
- /* harmony import */ var _SettingsGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SettingsGroup */ "./src/Settings/SettingsGroup.js");
7631
- /* harmony import */ var _Help__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Help */ "./src/Settings/Help.js");
7632
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
7633
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__);
7634
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
7635
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);
7636
-
7637
-
7638
-
7639
-
7640
-
7641
-
7642
-
7643
-
7644
-
7645
- /**
7646
- * Renders the selected settings
7647
- *
7648
- */
7649
- class Settings extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
7650
- constructor() {
7651
- super(...arguments);
7652
- this.state = {
7653
- noticesExpanded: true
7654
- };
7655
- this.toggleNotices = this.toggleNotices.bind(this);
7656
- this.saveAndContinue = this.saveAndContinue.bind(this);
7657
- this.save = this.save.bind(this);
7658
- }
7659
- componentDidMount() {}
7660
- toggleNotices() {
7661
- const {
7662
- noticesExpanded
7663
- } = this.state;
7664
- this.setState({
7665
- noticesExpanded: !noticesExpanded
7666
- });
7667
- }
7668
- save() {
7669
- this.props.save();
7670
- }
7671
- saveAndContinue() {
7672
- if (!this.props.nextButtonDisabled) {
7673
- this.props.saveAndContinue();
7674
- }
7675
- }
7676
- render() {
7677
- let isAPILoaded = this.props.isAPILoaded;
7678
- let progress = this.props.progress;
7679
- let selectedMenuItem = this.props.selectedMenuItem;
7680
- let fields = this.props.fields;
7681
- let selectedStep = this.props.selectedStep;
7682
- let menu = this.props.menu;
7683
- const {
7684
- menu_items: menuItems
7685
- } = menu;
7686
- const {
7687
- noticesExpanded
7688
- } = this.state;
7689
- if (!isAPILoaded) {
7690
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_1__["default"], null);
7691
- }
7692
- let selectedFields = fields.filter(field => field.menu_id === selectedMenuItem);
7693
- let groups = [];
7694
- for (const selectedField of selectedFields) {
7695
- if (!(0,_utils_lib__WEBPACK_IMPORTED_MODULE_2__.in_array)(selectedField.group_id, groups)) {
7696
- groups.push(selectedField.group_id);
7697
- }
7698
- }
7699
- let btnSaveText = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Save', 'really-simple-ssl');
7700
- for (const menuItem of menuItems) {
7701
- if (menuItem.id === selectedMenuItem && menuItem.tests_only) {
7702
- btnSaveText = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Refresh', 'really-simple-ssl');
7703
- }
7704
- }
7705
-
7706
- //convert progress notices to an array useful for the help blocks
7707
- let notices = [];
7708
- for (const notice of progress.notices) {
7709
- let noticeIsLinkedToField = false;
7710
-
7711
- //notices that are linked to a field. Only in case of warnings.
7712
- if (notice.show_with_options && notice.output.icon === 'warning') {
7713
- let noticeFields = selectedFields.filter(field => notice.show_with_options.includes(field.id));
7714
- noticeIsLinkedToField = noticeFields.length > 0;
7715
- }
7716
- //notices that are linked to a menu id.
7717
- if (noticeIsLinkedToField || notice.menu_id === selectedMenuItem) {
7718
- let help = {};
7719
- help.title = notice.output.title ? notice.output.title : false;
7720
- help.label = notice.output.label;
7721
- help.id = notice.id;
7722
- help.text = notice.output.msg;
7723
- help.url = notice.output.url;
7724
- help.linked_field = notice.show_with_option;
7725
- notices.push(help);
7726
- }
7727
- }
7728
- for (const notice of selectedFields.filter(field => field.help)) {
7729
- let help = notice.help;
7730
- help.id = notice.id;
7731
- notices.push(notice.help);
7732
- }
7733
- notices = notices.filter(notice => notice.label.toLowerCase() !== 'completed');
7734
- let continueLink = this.props.nextButtonDisabled ? `#${this.props.selectedMainMenuItem}/${this.props.selectedMenuItem}` : `#${this.props.selectedMainMenuItem}/${this.props.nextMenuItem}`;
7735
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7736
- className: "rsssl-wizard-settings"
7737
- }, groups.map((group, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_SettingsGroup__WEBPACK_IMPORTED_MODULE_3__["default"], {
7738
- updateFields: this.props.updateFields,
7739
- dropItemFromModal: this.props.dropItemFromModal,
7740
- selectMenu: this.props.selectMenu,
7741
- selectMainMenu: this.props.selectMainMenu,
7742
- handleNextButtonDisabled: this.props.handleNextButtonDisabled,
7743
- menu: this.props.menu,
7744
- handleModal: this.props.handleModal,
7745
- showSavedSettingsNotice: this.props.showSavedSettingsNotice,
7746
- updateField: this.props.updateField,
7747
- getFieldValue: this.props.getFieldValue,
7748
- refreshTests: this.props.refreshTests,
7749
- resetRefreshTests: this.props.resetRefreshTests,
7750
- addHelp: this.props.addHelp,
7751
- pageProps: this.props.pageProps,
7752
- setPageProps: this.props.setPageProps,
7753
- fieldsUpdateComplete: this.props.fieldsUpdateComplete,
7754
- key: i,
7755
- index: i,
7756
- highLightField: this.props.highLightField,
7757
- highLightedField: this.props.highLightedField,
7758
- selectedMenuItem: selectedMenuItem,
7759
- saveChangedFields: this.props.saveChangedFields,
7760
- group: group,
7761
- fields: selectedFields
7762
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7763
- className: "rsssl-grid-item-footer"
7764
- }, this.props.selectedMenuItem !== menuItems[0].id && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
7765
- className: "button button-secondary",
7766
- href: `#${this.props.selectedMainMenuItem}/${this.props.previousMenuItem}`,
7767
- onClick: () => this.props.previousStep(true)
7768
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Previous', 'really-simple-ssl')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("button", {
7769
- className: "button button-primary",
7770
- onClick: this.save
7771
- }, btnSaveText), this.props.selectedMenuItem !== menuItems[menuItems.length - 1].id && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
7772
- disabled: this.props.nextButtonDisabled,
7773
- className: "button button-primary",
7774
- href: continueLink,
7775
- onClick: this.saveAndContinue
7776
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Save and Continue', 'really-simple-ssl'))))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7777
- className: "rsssl-wizard-help"
7778
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7779
- className: "rsssl-help-header"
7780
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7781
- className: "rsssl-help-title rsssl-h4"
7782
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)("Notifications", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7783
- className: "rsssl-help-control",
7784
- onClick: () => this.toggleNotices()
7785
- }, !noticesExpanded && (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)("Expand all", "really-simple-ssl"), noticesExpanded && (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)("Collapse all", "really-simple-ssl"))), notices.map((field, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Help__WEBPACK_IMPORTED_MODULE_4__["default"], {
7786
- key: i,
7787
- noticesExpanded: noticesExpanded,
7788
- index: i,
7789
- help: field,
7790
- fieldId: field.id
7791
- }))));
7792
- }
7793
- }
7794
- /* harmony default export */ __webpack_exports__["default"] = (Settings);
7795
-
7796
- /***/ }),
7797
-
7798
- /***/ "./src/Settings/SettingsGroup.js":
7799
- /*!***************************************!*\
7800
- !*** ./src/Settings/SettingsGroup.js ***!
7801
- \***************************************/
7802
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7803
-
7804
- "use strict";
7805
- __webpack_require__.r(__webpack_exports__);
7806
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
7807
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
7808
- /* harmony import */ var _Field__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Field */ "./src/Settings/Field.js");
7809
- /* harmony import */ var _utils_Hyperlink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/Hyperlink */ "./src/utils/Hyperlink.js");
7810
- /* harmony import */ var _utils_getAnchor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/getAnchor */ "./src/utils/getAnchor.js");
7811
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
7812
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
7813
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
7814
-
7815
-
7816
-
7817
-
7818
-
7819
-
7820
-
7821
-
7822
- /**
7823
- * Render a grouped block of settings
7824
- */
7825
- class SettingsGroup extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
7826
- constructor() {
7827
- super(...arguments);
7828
- this.state = {
7829
- fields: this.props.fields,
7830
- isAPILoaded: this.props.isAPILoaded
7831
- };
7832
- this.upgrade = 'https://really-simple-ssl.com/pro/';
7833
- this.fields = this.props.fields;
7834
- }
7835
- componentDidMount() {
7836
- this.getLicenseStatus = this.getLicenseStatus.bind(this);
7837
- this.handleLetsEncryptReset = this.handleLetsEncryptReset.bind(this);
7838
- }
7839
- getLicenseStatus() {
7840
- if (this.props.pageProps.hasOwnProperty('licenseStatus')) {
7841
- return this.props.pageProps['licenseStatus'];
7842
- }
7843
- return 'invalid';
7844
- }
7845
-
7846
- /*
7847
- * On reset of LE, send this info to the back-end, and redirect to the first step.
7848
- * reload to ensure that.
7849
- */
7850
- handleLetsEncryptReset(e) {
7851
- e.preventDefault();
7852
- _utils_api__WEBPACK_IMPORTED_MODULE_5__.runLetsEncryptTest('reset').then(response => {
7853
- let url = window.location.href.replace(/#letsencrypt.*/, '&r=' + +new Date() + '#letsencrypt/le-system-status');
7854
- window.location.href = url;
7855
- });
7856
- }
7857
- render() {
7858
- let selectedMenuItem = this.props.selectedMenuItem;
7859
- let selectedFields = [];
7860
- //get all fields with group_id this.props.group_id
7861
- for (const selectedField of this.props.fields) {
7862
- if (selectedField.group_id === this.props.group) {
7863
- selectedFields.push(selectedField);
7864
- }
7865
- }
7866
- let activeGroup;
7867
- //first, set the selected menu item as activate group, so we have a default in case there are no groups
7868
- for (const item of this.props.menu.menu_items) {
7869
- if (item.id === selectedMenuItem) {
7870
- activeGroup = item;
7871
- } else if (item.menu_items) {
7872
- activeGroup = item.menu_items.filter(menuItem => menuItem.id === selectedMenuItem)[0];
7873
- }
7874
- if (activeGroup) {
7875
- break;
7876
- }
7877
- }
7878
-
7879
- //now check if we have actual groups
7880
- for (const item of this.props.menu.menu_items) {
7881
- if (item.id === selectedMenuItem && item.hasOwnProperty('groups')) {
7882
- let currentGroup = item.groups.filter(group => group.id === this.props.group);
7883
- if (currentGroup.length > 0) {
7884
- activeGroup = currentGroup[0];
7885
- }
7886
- }
7887
- }
7888
- let status = 'invalid';
7889
- let msg = activeGroup.premium_text ? activeGroup.premium_text : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Learn more about %sPremium%s", "really-simple-ssl");
7890
- if (rsssl_settings.pro_plugin_active) {
7891
- status = this.getLicenseStatus();
7892
- if (status === 'empty' || status === 'deactivated') {
7893
- msg = rsssl_settings.messageInactive;
7894
- } else {
7895
- msg = rsssl_settings.messageInvalid;
7896
- }
7897
- }
7898
- let disabled = status !== 'valid' && activeGroup.premium;
7899
- //if a feature can only be used on networkwide or single site setups, pass that info here.
7900
- let networkwide_error = !rsssl_settings.networkwide_active && activeGroup.networkwide_required;
7901
- this.upgrade = activeGroup.upgrade ? activeGroup.upgrade : this.upgrade;
7902
- let helplinkText = activeGroup.helpLink_text ? activeGroup.helpLink_text : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Instructions", "really-simple-ssl");
7903
- let anchor = (0,_utils_getAnchor__WEBPACK_IMPORTED_MODULE_3__["default"])('main');
7904
- let disabledClass = disabled || networkwide_error ? 'rsssl-disabled' : '';
7905
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7906
- className: "rsssl-grid-item rsssl-" + activeGroup.id + ' ' + disabledClass
7907
- }, activeGroup.title && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7908
- className: "rsssl-grid-item-header"
7909
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("h3", {
7910
- className: "rsssl-h4"
7911
- }, activeGroup.title), activeGroup.helpLink && anchor !== 'letsencrypt' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7912
- className: "rsssl-grid-item-controls"
7913
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Hyperlink__WEBPACK_IMPORTED_MODULE_2__["default"], {
7914
- target: "_blank",
7915
- className: "rsssl-helplink",
7916
- text: helplinkText,
7917
- url: activeGroup.helpLink
7918
- })), anchor === 'letsencrypt' && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7919
- className: "rsssl-grid-item-controls"
7920
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
7921
- href: "#",
7922
- className: "rsssl-helplink",
7923
- onClick: e => this.handleLetsEncryptReset(e)
7924
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Reset Let's Encrypt", "really-simple-ssl")))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7925
- className: "rsssl-grid-item-content"
7926
- }, activeGroup.intro && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7927
- className: "rsssl-settings-block-intro"
7928
- }, activeGroup.intro), selectedFields.map((field, i) => (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Field__WEBPACK_IMPORTED_MODULE_1__["default"], {
7929
- key: i,
7930
- index: i,
7931
- updateFields: this.props.updateFields,
7932
- selectMenu: this.props.selectMenu,
7933
- selectMainMenu: this.props.selectMainMenu,
7934
- dropItemFromModal: this.props.dropItemFromModal,
7935
- handleNextButtonDisabled: this.props.handleNextButtonDisabled,
7936
- handleModal: this.props.handleModal,
7937
- showSavedSettingsNotice: this.props.showSavedSettingsNotice,
7938
- updateField: this.props.updateField,
7939
- getFieldValue: this.props.getFieldValue,
7940
- refreshTests: this.props.refreshTests,
7941
- resetRefreshTests: this.props.resetRefreshTests,
7942
- addHelp: this.props.addHelp,
7943
- setPageProps: this.props.setPageProps,
7944
- fieldsUpdateComplete: this.props.fieldsUpdateComplete,
7945
- highLightField: this.props.highLightField,
7946
- highLightedField: this.props.highLightedField,
7947
- saveChangedFields: this.props.saveChangedFields,
7948
- field: field,
7949
- fields: selectedFields
7950
- }))), disabled && !networkwide_error && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7951
- className: "rsssl-locked"
7952
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7953
- className: "rsssl-locked-overlay"
7954
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
7955
- className: "rsssl-task-status rsssl-premium"
7956
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Upgrade", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", null, rsssl_settings.pro_plugin_active && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", null, msg, "\xA0", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
7957
- className: "rsssl-locked-link",
7958
- href: "#settings/license"
7959
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Check license", "really-simple-ssl"))), !rsssl_settings.pro_plugin_active && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Hyperlink__WEBPACK_IMPORTED_MODULE_2__["default"], {
7960
- target: "_blank",
7961
- text: msg,
7962
- url: this.upgrade
7963
- })))), networkwide_error && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7964
- className: "rsssl-locked"
7965
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
7966
- className: "rsssl-locked-overlay"
7967
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
7968
- className: "rsssl-task-status rsssl-warning"
7969
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Network feature", "really-simple-ssl")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("This feature is only available networkwide.", "really-simple-ssl"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_utils_Hyperlink__WEBPACK_IMPORTED_MODULE_2__["default"], {
7970
- target: "_blank",
7971
- text: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__)("Network settings", "really-simple-ssl"),
7972
- url: rsssl_settings.network_link
7973
- })))));
7974
- }
7975
- }
7976
- /* harmony default export */ __webpack_exports__["default"] = (SettingsGroup);
7977
-
7978
- /***/ }),
7979
-
7980
- /***/ "./src/Settings/SettingsPage.js":
7981
- /*!**************************************!*\
7982
- !*** ./src/Settings/SettingsPage.js ***!
7983
- \**************************************/
7984
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7985
-
7986
- "use strict";
7987
- __webpack_require__.r(__webpack_exports__);
7988
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
7989
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
7990
- /* harmony import */ var _utils_lib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/lib */ "./src/utils/lib.js");
7991
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
7992
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
7993
- /* harmony import */ var _Menu_Menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Menu/Menu */ "./src/Menu/Menu.js");
7994
- /* harmony import */ var _Notices__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Notices */ "./src/Settings/Notices.js");
7995
- /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Settings */ "./src/Settings/Settings.js");
7996
- /* harmony import */ var _utils_sleeper_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/sleeper.js */ "./src/utils/sleeper.js");
7997
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
7998
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_8__);
7999
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
8000
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__);
8001
-
8002
-
8003
-
8004
-
8005
-
8006
-
8007
-
8008
-
8009
-
8010
-
8011
-
8012
-
8013
- /*
8014
- * Renders the settings page with Menu and currently selected settings
8015
- *
8016
- */
8017
-
8018
- class SettingsPage extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
8019
- constructor() {
8020
- super(...arguments);
8021
- this.state = {
8022
- refreshTests: false,
8023
- fields: '',
8024
- isAPILoaded: false,
8025
- changedFields: '',
8026
- nextButtonDisabled: false
8027
- };
8028
- }
8029
- componentDidMount() {
8030
- this.save = this.save.bind(this);
8031
- this.saveAndContinue = this.saveAndContinue.bind(this);
8032
- this.wizardNextPrevious = this.wizardNextPrevious.bind(this);
8033
- this.saveChangedFields = this.saveChangedFields.bind(this);
8034
- this.addVisibleToMenuItems = this.addVisibleToMenuItems.bind(this);
8035
- this.updateFieldsListWithConditions = this.updateFieldsListWithConditions.bind(this);
8036
- this.filterMenuItems = this.filterMenuItems.bind(this);
8037
- this.showSavedSettingsNotice = this.showSavedSettingsNotice.bind(this);
8038
- this.resetRefreshTests = this.resetRefreshTests.bind(this);
8039
- this.handleNextButtonDisabled = this.handleNextButtonDisabled.bind(this);
8040
- this.checkRequiredFields = this.checkRequiredFields.bind(this);
8041
- let fields = this.props.fields;
8042
- //if count >1, it's a wizard
8043
- let changedFields = [];
8044
- let selectedMenuItem = this.props.selectedMenuItem;
8045
- this.selectedMenuItem = selectedMenuItem;
8046
- this.changedFields = changedFields;
8047
- this.setState({
8048
- isAPILoaded: true,
8049
- fields: this.props.fields,
8050
- changedFields: changedFields,
8051
- selectedMainMenuItem: this.props.selectedMainMenuItem
8052
- });
8053
- }
8054
- componentDidChange() {}
8055
- addVisibleToMenuItems(menuItems) {
8056
- const newMenuItems = menuItems;
8057
- for (const [index, menuItem] of menuItems.entries()) {
8058
- menuItem.visible = true;
8059
- if (menuItem.hasOwnProperty('menu_items')) {
8060
- menuItem.menu_items = this.addVisibleToMenuItems(menuItem.menu_items);
8061
- }
8062
- newMenuItems[index] = menuItem;
8063
- }
8064
- return newMenuItems;
8065
- }
8066
- /*
8067
- * Set next button to disabled from the fields
8068
- */
8069
- handleNextButtonDisabled(disable) {
8070
- const {
8071
- nextButtonDisabled
8072
- } = this.state;
8073
- if (nextButtonDisabled !== disable) {
8074
- this.setState({
8075
- nextButtonDisabled: disable
8076
- });
8077
- }
8078
- }
8079
-
8080
- //check if all required fields have been enabled. If so, enable save/continue button
8081
- checkRequiredFields() {
8082
- let fieldsOnPage = [];
8083
- //get all fields with group_id this.props.group_id
8084
- for (const field of this.props.fields) {
8085
- if (field.menu_id === this.props.selectedMenuItem) {
8086
- fieldsOnPage.push(field);
8087
- }
8088
- }
8089
- //if the only field on this page has actions, this is a tests page, the nextButtonDisabled should be handled by the LE componenent
8090
- let isTestPage = fieldsOnPage.length == 1 && fieldsOnPage[0].actions && fieldsOnPage[0].actions.length > 0;
8091
- if (!isTestPage) {
8092
- let requiredFields = fieldsOnPage.filter(field => field.required && (field.value.length == 0 || !field.value));
8093
- if (requiredFields.length > 0) {
8094
- this.handleNextButtonDisabled(true);
8095
- } else {
8096
- this.handleNextButtonDisabled(false);
8097
- }
8098
- }
8099
- }
8100
- filterMenuItems(menuItems) {
8101
- const newMenuItems = menuItems;
8102
- for (const [index, menuItem] of menuItems.entries()) {
8103
- const searchResult = this.props.fields.filter(field => {
8104
- return field.menu_id === menuItem.id && field.visible;
8105
- });
8106
- if (searchResult.length === 0) {
8107
- newMenuItems[index].visible = false;
8108
- } else {
8109
- newMenuItems[index].visible = true;
8110
- if (menuItem.hasOwnProperty('menu_items')) {
8111
- newMenuItems[index].menu_items = this.filterMenuItems(menuItem.menu_items);
8112
- }
8113
- }
8114
- }
8115
- return newMenuItems;
8116
- }
8117
- updateFieldsListWithConditions() {
8118
- for (const field of this.props.fields) {
8119
- let enabled = !(field.hasOwnProperty('react_conditions') && !this.validateConditions(field.react_conditions, this.props.fields));
8120
-
8121
- //we want to update the changed fields if this field has just become visible. Otherwise the new field won't get saved.
8122
- let previouslyDisabled = this.props.fields[this.props.fields.indexOf(field)].conditionallyDisabled;
8123
- this.props.fields[this.props.fields.indexOf(field)].conditionallyDisabled = !enabled;
8124
- if (previouslyDisabled && enabled) {
8125
- //if this is a learning mode field, do not add it to the changed fields list
8126
- let changedFields = this.changedFields;
8127
- if (field.type !== 'learningmode' && !(0,_utils_lib__WEBPACK_IMPORTED_MODULE_1__.in_array)(field.id, changedFields)) {
8128
- changedFields.push(field.id);
8129
- }
8130
- this.changedFields = changedFields;
8131
- this.setState({
8132
- changedFields: changedFields
8133
- });
8134
- }
8135
- if (!enabled && (field.type === 'letsencrypt' || field.condition_action === 'hide')) {
8136
- this.props.fields[this.props.fields.indexOf(field)].visible = false;
8137
- } else {
8138
- this.props.fields[this.props.fields.indexOf(field)].visible = true;
8139
- }
8140
- }
8141
- this.filterMenuItems(this.props.menu.menu_items);
8142
- }
8143
- saveChangedFields(changedField) {
8144
- this.updateFieldsListWithConditions();
8145
- let changedFields = this.changedFields;
8146
- if (!(0,_utils_lib__WEBPACK_IMPORTED_MODULE_1__.in_array)(changedField, changedFields)) {
8147
- changedFields.push(changedField);
8148
- }
8149
- this.changedFields = changedFields;
8150
- this.setState({
8151
- changedFields: changedFields
8152
- });
8153
- }
8154
- showSavedSettingsNotice() {
8155
- const notice = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.dispatch)('core/notices').createNotice('success', (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_9__.__)('Settings Saved', 'really-simple-ssl'), {
8156
- __unstableHTML: true,
8157
- id: 'rsssl_settings_saved',
8158
- type: 'snackbar',
8159
- isDismissible: true
8160
- }).then((0,_utils_sleeper_js__WEBPACK_IMPORTED_MODULE_7__["default"])(2000)).then(response => {
8161
- (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_8__.dispatch)('core/notices').removeNotice('rsssl_settings_saved');
8162
- });
8163
- }
8164
- save(skipRefreshTests) {
8165
- //skipRefreshTests is default false, but when called from next/previous, it is true
8166
- //this prevents the LE test from restarting on next/previous.
8167
- const {
8168
- fields
8169
- } = this.state;
8170
- let saveFields = [];
8171
- for (const field of fields) {
8172
- if ((0,_utils_lib__WEBPACK_IMPORTED_MODULE_1__.in_array)(field.id, this.changedFields)) {
8173
- saveFields.push(field);
8174
- }
8175
- }
8176
- _utils_api__WEBPACK_IMPORTED_MODULE_2__.setFields(saveFields).then(response => {
8177
- this.changedFields = [];
8178
- this.props.updateProgress(response.data.progress);
8179
- this.setState({
8180
- changedFields: []
8181
- });
8182
- if (!skipRefreshTests) {
8183
- this.setState({
8184
- refreshTests: true
8185
- });
8186
- }
8187
- this.showSavedSettingsNotice();
8188
- });
8189
- }
8190
- resetRefreshTests() {
8191
- this.setState({
8192
- refreshTests: false
8193
- });
8194
- }
8195
- wizardNextPrevious(isPrevious) {
8196
- const {
8197
- nextMenuItem,
8198
- previousMenuItem
8199
- } = this.props.getPreviousAndNextMenuItems();
8200
- this.props.selectMenu(isPrevious ? previousMenuItem : nextMenuItem);
8201
- }
8202
- saveAndContinue() {
8203
- this.wizardNextPrevious(false);
8204
- this.save(true);
8205
- }
8206
- validateConditions(conditions, fields) {
8207
- let relation = conditions.relation === 'OR' ? 'OR' : 'AND';
8208
- let conditionApplies = relation === 'AND' ? true : false;
8209
- for (const key in conditions) {
8210
- if (conditions.hasOwnProperty(key)) {
8211
- let thisConditionApplies = relation === 'AND' ? true : false;
8212
- let subConditionsArray = conditions[key];
8213
- if (subConditionsArray.hasOwnProperty('relation')) {
8214
- thisConditionApplies = this.validateConditions(subConditionsArray, fields);
8215
- } else {
8216
- for (let conditionField in subConditionsArray) {
8217
- let invert = conditionField.indexOf('!') === 0;
8218
- if (subConditionsArray.hasOwnProperty(conditionField)) {
8219
- let conditionValue = subConditionsArray[conditionField];
8220
- conditionField = conditionField.replace('!', '');
8221
- let conditionFields = fields.filter(field => field.id === conditionField);
8222
- if (conditionFields.hasOwnProperty(0)) {
8223
- if (conditionFields[0].type === 'checkbox') {
8224
- let actualValue = +conditionFields[0].value;
8225
- conditionValue = +conditionValue;
8226
- thisConditionApplies = actualValue === conditionValue;
8227
- } else {
8228
- if (conditionValue.indexOf('EMPTY') !== -1) {
8229
- thisConditionApplies = conditionFields[0].value.length === 0;
8230
- } else {
8231
- thisConditionApplies = conditionFields[0].value.toLowerCase() === conditionValue.toLowerCase();
8232
- }
8233
- }
8234
- }
8235
- if (invert) {
8236
- thisConditionApplies = !thisConditionApplies;
8237
- }
8238
- if (relation === 'AND') {
8239
- conditionApplies = conditionApplies && thisConditionApplies;
8240
- } else {
8241
- conditionApplies = conditionApplies || thisConditionApplies;
8242
- }
8243
- }
8244
- }
8245
- }
8246
- }
8247
- }
8248
- return conditionApplies ? 1 : 0;
8249
- }
8250
- render() {
8251
- const {
8252
- selectedStep,
8253
- isAPILoaded,
8254
- refreshTests,
8255
- changedFields,
8256
- nextButtonDisabled
8257
- } = this.state;
8258
- if (!isAPILoaded) {
8259
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_3__["default"], null);
8260
- }
8261
- this.props.menu.menu_items = this.addVisibleToMenuItems(this.props.menu.menu_items);
8262
- this.checkRequiredFields();
8263
- this.updateFieldsListWithConditions();
8264
- let fieldsUpdateComplete = changedFields.length === 0;
8265
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Menu_Menu__WEBPACK_IMPORTED_MODULE_4__["default"], {
8266
- isAPILoaded: isAPILoaded,
8267
- menu: this.props.menu,
8268
- selectMenu: this.props.selectMenu,
8269
- selectStep: this.props.selectStep,
8270
- selectedStep: this.props.selectedStep,
8271
- selectedMenuItem: this.props.selectedMenuItem,
8272
- selectedMainMenuItem: this.props.selectedMainMenuItem,
8273
- getPreviousAndNextMenuItems: this.props.getPreviousAndNextMenuItems
8274
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Settings__WEBPACK_IMPORTED_MODULE_6__["default"], {
8275
- updateFields: this.props.updateFields,
8276
- dropItemFromModal: this.props.dropItemFromModal,
8277
- selectMenu: this.props.selectMenu,
8278
- selectMainMenu: this.props.selectMainMenu,
8279
- nextButtonDisabled: nextButtonDisabled,
8280
- handleNextButtonDisabled: this.handleNextButtonDisabled,
8281
- getDefaultMenuItem: this.props.getDefaultMenuItem,
8282
- handleModal: this.props.handleModal,
8283
- showSavedSettingsNotice: this.showSavedSettingsNotice,
8284
- updateField: this.props.updateField,
8285
- getFieldValue: this.props.getFieldValue,
8286
- resetRefreshTests: this.resetRefreshTests,
8287
- refreshTests: refreshTests,
8288
- addHelp: this.props.addHelp,
8289
- pageProps: this.props.pageProps,
8290
- setPageProps: this.props.setPageProps,
8291
- fieldsUpdateComplete: fieldsUpdateComplete,
8292
- highLightField: this.props.highLightField,
8293
- highLightedField: this.props.highLightedField,
8294
- isAPILoaded: isAPILoaded,
8295
- fields: this.props.fields,
8296
- progress: this.props.progress,
8297
- saveChangedFields: this.saveChangedFields,
8298
- menu: this.props.menu,
8299
- save: this.save,
8300
- saveAndContinue: this.saveAndContinue,
8301
- selectedMenuItem: this.props.selectedMenuItem,
8302
- selectedMainMenuItem: this.props.selectedMainMenuItem,
8303
- selectedStep: this.props.selectedStep,
8304
- previousStep: this.wizardNextPrevious,
8305
- nextMenuItem: this.props.nextMenuItem,
8306
- previousMenuItem: this.props.previousMenuItem
8307
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Notices__WEBPACK_IMPORTED_MODULE_5__["default"], {
8308
- className: "rsssl-wizard-notices"
8309
- }));
8310
- }
8311
- }
8312
- /* harmony default export */ __webpack_exports__["default"] = (SettingsPage);
8313
-
8314
- /***/ }),
8315
-
8316
- /***/ "./src/Settings/Support.js":
8317
- /*!*********************************!*\
8318
- !*** ./src/Settings/Support.js ***!
8319
- \*********************************/
8320
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8321
-
8322
- "use strict";
8323
- __webpack_require__.r(__webpack_exports__);
8324
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
8325
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
8326
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
8327
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__);
8328
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
8329
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__);
8330
- /* harmony import */ var _Placeholder_Placeholder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Placeholder/Placeholder */ "./src/Placeholder/Placeholder.js");
8331
- /* harmony import */ var _utils_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/api */ "./src/utils/api.js");
8332
-
8333
-
8334
-
8335
-
8336
-
8337
-
8338
- class Support extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
8339
- constructor() {
8340
- super(...arguments);
8341
- this.state = {
8342
- message: '',
8343
- sending: false
8344
- };
8345
- }
8346
- componentDidMount() {
8347
- this.onChangeHandler = this.onChangeHandler.bind(this);
8348
- this.onClickHandler = this.onClickHandler.bind(this);
8349
- }
8350
- onChangeHandler(message) {
8351
- this.setState({
8352
- message: message
8353
- });
8354
- }
8355
- onClickHandler(event) {
8356
- this.setState({
8357
- sending: true
8358
- });
8359
- return _utils_api__WEBPACK_IMPORTED_MODULE_4__.runTest('supportData', 'refresh').then(response => {
8360
- const {
8361
- message
8362
- } = this.state;
8363
- let encodedMessage = message.replace(/(?:\r\n|\r|\n)/g, '--br--');
8364
- let url = 'https://really-simple-ssl.com/support' + '?customername=' + encodeURIComponent(response.data.customer_name) + '&email=' + response.data.email + '&domain=' + response.data.domain + '&scanresults=' + encodeURIComponent(response.data.scan_results) + '&licensekey=' + encodeURIComponent(response.data.license_key) + '&supportrequest=' + encodeURIComponent(encodedMessage) + '&htaccesscontents=' + response.data.htaccess_contents + '&debuglog=' + response.data.system_status;
8365
- window.location.assign(url);
8366
- });
8367
- }
8368
- render() {
8369
- const {
8370
- message,
8371
- sending
8372
- } = this.state;
8373
- let disabled = sending || message.length == 0;
8374
- let textAreaDisabled = sending;
8375
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.TextareaControl, {
8376
- disabled: textAreaDisabled,
8377
- placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)("Type your question here", "really-simple-ssl"),
8378
- onChange: message => this.onChangeHandler(message)
8379
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__.Button, {
8380
- disabled: disabled,
8381
- variant: "secondary",
8382
- onClick: e => this.onClickHandler(e)
8383
- }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Send', 'really-simple-ssl')));
8384
- }
8385
- }
8386
- /* harmony default export */ __webpack_exports__["default"] = (Support);
8387
-
8388
- /***/ }),
8389
-
8390
- /***/ "./src/utils/Hyperlink.js":
8391
- /*!********************************!*\
8392
- !*** ./src/utils/Hyperlink.js ***!
8393
- \********************************/
8394
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8395
-
8396
- "use strict";
8397
- __webpack_require__.r(__webpack_exports__);
8398
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
8399
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
8400
-
8401
-
8402
- class Hyperlink extends _wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Component {
8403
- constructor() {
8404
- super(...arguments);
8405
- }
8406
- render() {
8407
- let label_pre = '';
8408
- let label_post = '';
8409
- let link_text = '';
8410
- if (this.props.text.indexOf('%s') !== -1) {
8411
- let parts = this.props.text.split(/%s/);
8412
- label_pre = parts[0];
8413
- link_text = parts[1];
8414
- label_post = parts[2];
8415
- } else {
8416
- link_text = this.props.text;
8417
- }
8418
- let className = this.props.className ? this.props.className : 'rsssl-link';
8419
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, label_pre, " ", (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("a", {
8420
- className: className,
8421
- target: this.props.target,
8422
- href: this.props.url
8423
- }, link_text), label_post);
8424
- }
8425
- }
8426
- /* harmony default export */ __webpack_exports__["default"] = (Hyperlink);
8427
-
8428
- /***/ }),
8429
-
8430
- /***/ "./src/utils/Icon.js":
8431
- /*!***************************!*\
8432
- !*** ./src/utils/Icon.js ***!
8433
- \***************************/
8434
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8435
-
8436
- "use strict";
8437
- __webpack_require__.r(__webpack_exports__);
8438
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
8439
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
8440
-
8441
- const Icon = props => {
8442
- const {
8443
- name,
8444
- color,
8445
- size
8446
- } = props;
8447
- // set defaults if not se
8448
-
8449
- const iconName = name || 'bullet';
8450
- const iconColor = color || 'black';
8451
- const iconSize = size || 15;
8452
- const iconColors = {
8453
- 'black': 'var(--rsp-black)',
8454
- 'green': 'var(--rsp-green)',
8455
- 'yellow': 'var(--rsp-yellow)',
8456
- 'orange': 'var(--rsp-yellow)',
8457
- 'red': 'var(--rsp-red)',
8458
- 'grey': 'var(--rsp-grey-400)'
8459
- };
8460
- let renderedIcon = '';
8461
- if (iconName === 'bullet') {
8462
- renderedIcon = {
8463
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8464
- "aria-hidden": "true",
8465
- focusable: "false",
8466
- role: "img",
8467
- xmlns: "http://www.w3.org/2000/svg",
8468
- viewBox: "0 0 512 512",
8469
- height: iconSize
8470
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8471
- fill: iconColors[iconColor],
8472
- d: "M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"
8473
- }))
8474
- };
8475
- }
8476
- if (iconName === 'circle') {
8477
- renderedIcon = {
8478
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8479
- "aria-hidden": "true",
8480
- focusable: "false",
8481
- role: "img",
8482
- xmlns: "http://www.w3.org/2000/svg",
8483
- viewBox: "0 0 512 512",
8484
- height: iconSize
8485
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8486
- fill: iconColors[iconColor],
8487
- d: "M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"
8488
- }))
8489
- };
8490
- }
8491
- if (iconName === 'check') {
8492
- renderedIcon = {
8493
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8494
- "aria-hidden": "true",
8495
- focusable: "false",
8496
- role: "img",
8497
- xmlns: "http://www.w3.org/2000/svg",
8498
- viewBox: "0 0 512 512",
8499
- height: iconSize
8500
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8501
- fill: iconColors[iconColor],
8502
- d: "M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"
8503
- }))
8504
- };
8505
- }
8506
- if (iconName === 'warning') {
8507
- renderedIcon = {
8508
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8509
- "aria-hidden": "true",
8510
- focusable: "false",
8511
- role: "img",
8512
- xmlns: "http://www.w3.org/2000/svg",
8513
- viewBox: "0 0 512 512",
8514
- height: iconSize
8515
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8516
- fill: iconColors[iconColor],
8517
- d: "M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"
8518
- }))
8519
- };
8520
- }
8521
- if (iconName === 'error') {
8522
- renderedIcon = {
8523
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8524
- "aria-hidden": "true",
8525
- focusable: "false",
8526
- role: "img",
8527
- xmlns: "http://www.w3.org/2000/svg",
8528
- viewBox: "0 0 512 512",
8529
- height: iconSize
8530
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8531
- fill: iconColors[iconColor],
8532
- d: "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"
8533
- }))
8534
- };
8535
- }
8536
- if (iconName === 'times') {
8537
- renderedIcon = {
8538
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8539
- "aria-hidden": "true",
8540
- focusable: "false",
8541
- role: "img",
8542
- xmlns: "http://www.w3.org/2000/svg",
8543
- viewBox: "0 0 320 512",
8544
- height: iconSize
8545
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8546
- fill: iconColors[iconColor],
8547
- d: "M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"
8548
- }))
8549
- };
8550
- }
8551
- if (iconName === 'circle-check') {
8552
- renderedIcon = {
8553
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8554
- "aria-hidden": "true",
8555
- focusable: "false",
8556
- role: "img",
8557
- xmlns: "http://www.w3.org/2000/svg",
8558
- viewBox: "0 0 512 512",
8559
- height: iconSize
8560
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8561
- fill: iconColors[iconColor],
8562
- d: "M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"
8563
- }))
8564
- };
8565
- }
8566
- if (iconName === 'circle-times') {
8567
- renderedIcon = {
8568
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8569
- "aria-hidden": "true",
8570
- focusable: "false",
8571
- role: "img",
8572
- xmlns: "http://www.w3.org/2000/svg",
8573
- viewBox: "0 0 512 512",
8574
- height: iconSize
8575
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8576
- fill: iconColors[iconColor],
8577
- d: "M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"
8578
- }))
8579
- };
8580
- }
8581
- if (iconName === 'chevron-up') {
8582
- renderedIcon = {
8583
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8584
- "aria-hidden": "true",
8585
- focusable: "false",
8586
- role: "img",
8587
- xmlns: "http://www.w3.org/2000/svg",
8588
- viewBox: "0 0 448 512",
8589
- height: iconSize
8590
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8591
- fill: iconColors[iconColor],
8592
- d: "M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"
8593
- }))
8594
- };
8595
- }
8596
- if (iconName === 'chevron-down') {
8597
- renderedIcon = {
8598
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8599
- "aria-hidden": "true",
8600
- focusable: "false",
8601
- role: "img",
8602
- xmlns: "http://www.w3.org/2000/svg",
8603
- viewBox: "0 0 448 512",
8604
- height: iconSize
8605
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8606
- fill: iconColors[iconColor],
8607
- d: "M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"
8608
- }))
8609
- };
8610
- }
8611
- if (iconName === 'chevron-right') {
8612
- renderedIcon = {
8613
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8614
- "aria-hidden": "true",
8615
- focusable: "false",
8616
- role: "img",
8617
- xmlns: "http://www.w3.org/2000/svg",
8618
- viewBox: "0 0 320 512",
8619
- height: iconSize
8620
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8621
- fill: iconColors[iconColor],
8622
- d: "M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"
8623
- }))
8624
- };
8625
- }
8626
- if (iconName === 'chevron-left') {
8627
- renderedIcon = {
8628
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8629
- "aria-hidden": "true",
8630
- focusable: "false",
8631
- role: "img",
8632
- xmlns: "http://www.w3.org/2000/svg",
8633
- viewBox: "0 0 320 512",
8634
- height: iconSize
8635
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8636
- fill: iconColors[iconColor],
8637
- d: "M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"
8638
- }))
8639
- };
8640
- }
8641
- if (iconName === 'plus') {
8642
- renderedIcon = {
8643
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8644
- "aria-hidden": "true",
8645
- focusable: "false",
8646
- role: "img",
8647
- xmlns: "http://www.w3.org/2000/svg",
8648
- viewBox: "0 0 512 512",
8649
- height: iconSize
8650
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8651
- fill: iconColors[iconColor],
8652
- d: "M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"
8653
- }))
8654
- };
8655
- }
8656
- if (iconName === 'minus') {
8657
- renderedIcon = {
8658
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8659
- "aria-hidden": "true",
8660
- focusable: "false",
8661
- role: "img",
8662
- xmlns: "http://www.w3.org/2000/svg",
8663
- viewBox: "0 0 512 512",
8664
- height: iconSize
8665
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8666
- fill: iconColors[iconColor],
8667
- d: "M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"
8668
- }))
8669
- };
8670
- }
8671
- if (iconName === 'sync') {
8672
- renderedIcon = {
8673
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8674
- "aria-hidden": "true",
8675
- focusable: "false",
8676
- role: "img",
8677
- xmlns: "http://www.w3.org/2000/svg",
8678
- viewBox: "0 0 512 512",
8679
- height: iconSize
8680
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8681
- fill: iconColors[iconColor],
8682
- d: "M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"
8683
- }))
8684
- };
8685
- }
8686
- if (iconName === 'sync-error') {
8687
- renderedIcon = {
8688
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8689
- "aria-hidden": "true",
8690
- focusable: "false",
8691
- role: "img",
8692
- xmlns: "http://www.w3.org/2000/svg",
8693
- viewBox: "0 0 512 512",
8694
- height: iconSize
8695
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8696
- fill: iconColors[iconColor],
8697
- d: "M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"
8698
- }))
8699
- };
8700
- }
8701
- if (iconName === 'shortcode') {
8702
- renderedIcon = {
8703
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8704
- "aria-hidden": "true",
8705
- focusable: "false",
8706
- role: "img",
8707
- xmlns: "http://www.w3.org/2000/svg",
8708
- viewBox: "0 0 448 512",
8709
- height: iconSize
8710
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8711
- fill: iconColors[iconColor],
8712
- d: "M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"
8713
- }))
8714
- };
8715
- }
8716
- if (iconName === 'file') {
8717
- renderedIcon = {
8718
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8719
- "aria-hidden": "true",
8720
- focusable: "false",
8721
- role: "img",
8722
- xmlns: "http://www.w3.org/2000/svg",
8723
- viewBox: "0 0 384 512",
8724
- height: iconSize
8725
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8726
- fill: iconColors[iconColor],
8727
- d: "M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"
8728
- }))
8729
- };
8730
- }
8731
- if (iconName === 'file-disabled') {
8732
- renderedIcon = {
8733
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8734
- "aria-hidden": "true",
8735
- focusable: "false",
8736
- role: "img",
8737
- xmlns: "http://www.w3.org/2000/svg",
8738
- viewBox: "0 0 640 512",
8739
- height: iconSize
8740
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8741
- fill: iconColors[iconColor],
8742
- d: "M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"
8743
- }))
8744
- };
8745
- }
8746
- if (iconName === 'file-download') {
8747
- renderedIcon = {
8748
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8749
- "aria-hidden": "true",
8750
- focusable: "false",
8751
- role: "img",
8752
- xmlns: "http://www.w3.org/2000/svg",
8753
- viewBox: "0 0 384 512",
8754
- height: iconSize
8755
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8756
- fill: iconColors[iconColor],
8757
- d: "M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"
8758
- }))
8759
- };
8760
- }
8761
- if (iconName === 'calendar') {
8762
- renderedIcon = {
8763
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8764
- "aria-hidden": "true",
8765
- focusable: "false",
8766
- role: "img",
8767
- xmlns: "http://www.w3.org/2000/svg",
8768
- viewBox: "0 0 448 512",
8769
- height: iconSize
8770
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8771
- fill: iconColors[iconColor],
8772
- d: "M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"
8773
- }))
8774
- };
8775
- }
8776
- if (iconName === 'calendar-error') {
8777
- renderedIcon = {
8778
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8779
- "aria-hidden": "true",
8780
- focusable: "false",
8781
- role: "img",
8782
- xmlns: "http://www.w3.org/2000/svg",
8783
- viewBox: "0 0 576 512",
8784
- height: iconSize
8785
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8786
- fill: iconColors[iconColor],
8787
- d: "M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"
8788
- }))
8789
- };
8790
- }
8791
- if (iconName === 'help') {
8792
- renderedIcon = {
8793
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8794
- "aria-hidden": "true",
8795
- focusable: "false",
8796
- role: "img",
8797
- xmlns: "http://www.w3.org/2000/svg",
8798
- viewBox: "0 0 512 512",
8799
- height: iconSize
8800
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8801
- fill: iconColors[iconColor],
8802
- d: "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"
8803
- }))
8804
- };
8805
- }
8806
- if (iconName === 'copy') {
8807
- renderedIcon = {
8808
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8809
- "aria-hidden": "true",
8810
- focusable: "false",
8811
- role: "img",
8812
- xmlns: "http://www.w3.org/2000/svg",
8813
- viewBox: "0 0 512 512",
8814
- height: iconSize
8815
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8816
- fill: iconColors[iconColor],
8817
- d: "M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"
8818
- }))
8819
- };
8820
- }
8821
- if (iconName === 'info') {
8822
- renderedIcon = {
8823
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8824
- "aria-hidden": "true",
8825
- focusable: "false",
8826
- role: "img",
8827
- xmlns: "http://www.w3.org/2000/svg",
8828
- viewBox: "0 0 512 512",
8829
- height: iconSize
8830
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8831
- fill: iconColors[iconColor],
8832
- d: "M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"
8833
- }))
8834
- };
8835
- }
8836
- if (iconName === 'list') {
8837
- renderedIcon = {
8838
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8839
- "aria-hidden": "true",
8840
- focusable: "false",
8841
- role: "img",
8842
- xmlns: "http://www.w3.org/2000/svg",
8843
- viewBox: "0 0 512 512",
8844
- height: iconSize
8845
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8846
- fill: iconColors[iconColor],
8847
- d: "M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"
8848
- }))
8849
- };
8850
- }
8851
- if (iconName === 'external-link') {
8852
- renderedIcon = {
8853
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8854
- "aria-hidden": "true",
8855
- focusable: "false",
8856
- role: "img",
8857
- xmlns: "http://www.w3.org/2000/svg",
8858
- viewBox: "0 0 512 512",
8859
- height: iconSize
8860
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8861
- fill: iconColors[iconColor],
8862
- d: "M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"
8863
- }))
8864
- };
8865
- }
8866
- if (iconName === 'shield') {
8867
- renderedIcon = {
8868
- html: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
8869
- height: iconSize,
8870
- "aria-hidden": "true",
8871
- focusable: "false",
8872
- role: "img",
8873
- id: "uuid-026a4e87-44db-4336-a398-3c29d25b7317",
8874
- xmlns: "http://www.w3.org/2000/svg",
8875
- viewBox: "0 0 280.8 363.67"
8876
- }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8877
- fill: "#f9c23e",
8878
- d: "M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"
8879
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("rect", {
8880
- className: "uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",
8881
- x: "155",
8882
- y: "266.8",
8883
- width: "77.6",
8884
- height: "6"
8885
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8886
- fill: "#1d2327",
8887
- d: "M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"
8888
- })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8889
- fill: "#1d2327",
8890
- d: "M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"
8891
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8892
- className: "uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",
8893
- d: "M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"
8894
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8895
- class: "uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",
8896
- d: "M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"
8897
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8898
- class: "uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",
8899
- d: "M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"
8900
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8901
- class: "uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",
8902
- d: "M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"
8903
- }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
8904
- class: "uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",
8905
- d: "M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"
8906
- }))))
8907
- };
8908
- }
8909
- return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
8910
- className: 'rsssl-icon rsssl-icon-' + iconName
8911
- }, renderedIcon.html);
8912
- };
8913
- /* harmony default export */ __webpack_exports__["default"] = (Icon);
8914
-
8915
- /***/ }),
8916
-
8917
- /***/ "./src/utils/api.js":
8918
- /*!**************************!*\
8919
- !*** ./src/utils/api.js ***!
8920
- \**************************/
8921
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8922
-
8923
- "use strict";
8924
- __webpack_require__.r(__webpack_exports__);
8925
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8926
- /* harmony export */ "doAction": function() { return /* binding */ doAction; },
8927
- /* harmony export */ "getBlock": function() { return /* binding */ getBlock; },
8928
- /* harmony export */ "getFields": function() { return /* binding */ getFields; },
8929
- /* harmony export */ "getOnboarding": function() { return /* binding */ getOnboarding; },
8930
- /* harmony export */ "getRandomToken": function() { return /* binding */ getRandomToken; },
8931
- /* harmony export */ "runLetsEncryptTest": function() { return /* binding */ runLetsEncryptTest; },
8932
- /* harmony export */ "runTest": function() { return /* binding */ runTest; },
8933
- /* harmony export */ "setFields": function() { return /* binding */ setFields; }
8934
- /* harmony export */ });
8935
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
8936
- /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);
8937
- /* harmony import */ var _getAnchor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getAnchor */ "./src/utils/getAnchor.js");
8938
-
8939
-
8940
-
8941
- /*
8942
- * Makes a get request to the fields list
8943
- *
8944
- * @param {string|boolean} restBase - rest base for the query.
8945
- * @param {object} args
8946
- * @returns {AxiosPromise<any>}
8947
- */
8948
-
8949
- const getRandomToken = () => {
8950
- return '&token=' + Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5);
8951
- };
8952
- const getFields = () => {
8953
- //we pass the anchor, so we know when LE is loaded
8954
- let anchor = (0,_getAnchor__WEBPACK_IMPORTED_MODULE_1__["default"])('main');
8955
- let config = {
8956
- headers: {
8957
- 'X-WP-Nonce': rsssl_settings.nonce
8958
- }
8959
- };
8960
- let glue = rsssl_settings.site_url.indexOf('?') !== -1 ? '&' : '?';
8961
- return axios__WEBPACK_IMPORTED_MODULE_0___default().get(rsssl_settings.site_url + 'reallysimplessl/v1/fields/get' + glue + anchor + '&nonce=' + rsssl_settings.rsssl_nonce + getRandomToken(), config);
8962
- };
8963
-
8964
- /*
8965
- * Post our data to the back-end
8966
- * @param data
8967
- * @returns {Promise<AxiosResponse<any>>}
8968
- */
8969
- const setFields = data => {
8970
- //we pass the anchor, so we know when LE is loaded
8971
- let anchor = (0,_getAnchor__WEBPACK_IMPORTED_MODULE_1__["default"])('main');
8972
- let config = {
8973
- headers: {
8974
- 'X-WP-Nonce': rsssl_settings.nonce,
8975
- 'rsssl-nonce': rsssl_settings.nonce
8976
- }
8977
- };
8978
- let nonce = {
8979
- 'nonce': rsssl_settings.rsssl_nonce
8980
- };
8981
- data.push(nonce);
8982
- let glue = rsssl_settings.site_url.indexOf('?') !== -1 ? '&' : '?';
8983
- return axios__WEBPACK_IMPORTED_MODULE_0___default().post(rsssl_settings.site_url + 'reallysimplessl/v1/fields/set' + glue + anchor, data, config);
8984
- };
8985
- const getBlock = block => {
8986
- let config = {
8987
- headers: {
8988
- 'X-WP-Nonce': rsssl_settings.nonce
8989
- }
8990
- };
8991
- let glue = rsssl_settings.site_url.indexOf('?') !== -1 ? '&' : '?';
8992
- return axios__WEBPACK_IMPORTED_MODULE_0___default().get(rsssl_settings.site_url + 'reallysimplessl/v1/block/' + block + glue + 'nonce=' + rsssl_settings.rsssl_nonce + getRandomToken(), config);
8993
- };
8994
- const runTest = (test, state, data) => {
8995
- let config = {
8996
- headers: {
8997
- 'X-WP-Nonce': rsssl_settings.nonce
8998
- }
8999
- };
9000
- if (data) {
9001
- data = encodeURIComponent(JSON.stringify(data));
9002
- }
9003
- let glue = rsssl_settings.site_url.indexOf('?') !== -1 ? '&' : '?';
9004
- return axios__WEBPACK_IMPORTED_MODULE_0___default().get(rsssl_settings.site_url + 'reallysimplessl/v1/tests/' + test + glue + 'state=' + state + '&nonce=' + rsssl_settings.rsssl_nonce + getRandomToken() + '&data=' + data, config);
9005
- };
9006
- const runLetsEncryptTest = (test, id) => {
9007
- let config = {
9008
- headers: {
9009
- 'X-WP-Nonce': rsssl_settings.nonce
9010
- }
9011
- };
9012
- let glue = rsssl_settings.site_url.indexOf('?') !== -1 ? '&' : '?';
9013
- return axios__WEBPACK_IMPORTED_MODULE_0___default().get(rsssl_settings.site_url + 'reallysimplessl/v1/tests/' + test + glue + 'letsencrypt=1&id=' + id + '&nonce=' + rsssl_settings.rsssl_nonce + getRandomToken(), config);
9014
- };
9015
- const doAction = (action, data) => {
9016
- let config = {
9017
- headers: {
9018
- 'X-WP-Nonce': rsssl_settings.nonce
9019
- }
9020
- };
9021
- data.nonce = rsssl_settings.rsssl_nonce;
9022
- return axios__WEBPACK_IMPORTED_MODULE_0___default().post(rsssl_settings.site_url + 'reallysimplessl/v1/do_action/' + action, data, config);
9023
- };
9024
- const getOnboarding = forceRefresh => {
9025
- let config = {
9026
- headers: {
9027
- 'X-WP-Nonce': rsssl_settings.nonce
9028
- }
9029
- };
9030
- let glue = rsssl_settings.site_url.indexOf('?') !== -1 ? '&' : '?';
9031
- return axios__WEBPACK_IMPORTED_MODULE_0___default().get(rsssl_settings.site_url + 'reallysimplessl/v1/onboarding' + glue + 'forceRefresh=' + forceRefresh + '&nonce=' + rsssl_settings.rsssl_nonce + getRandomToken(), config);
9032
- };
9033
-
9034
- /***/ }),
9035
-
9036
- /***/ "./src/utils/getAnchor.js":
9037
- /*!********************************!*\
9038
- !*** ./src/utils/getAnchor.js ***!
9039
- \********************************/
9040
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9041
-
9042
- "use strict";
9043
- __webpack_require__.r(__webpack_exports__);
9044
- /*
9045
- * helper function to delay after a promise
9046
- * @param ms
9047
- * @returns {function(*): Promise<unknown>}
9048
- */
9049
- const getAnchor = level => {
9050
- let url = window.location.href;
9051
- if (url.indexOf('#') === -1) {
9052
- return false;
9053
- }
9054
- let queryString = url.split('#');
9055
- if (queryString.length === 1) {
9056
- return false;
9057
- }
9058
- let urlPart = queryString[1];
9059
-
9060
- //for submenu, we have to get the string after the slash.
9061
- if (level === 'menu') {
9062
- //if there is no slash, there is no menu level
9063
- if (urlPart.indexOf('/') === -1) {
9064
- return false;
9065
- } else {
9066
- let urlParts = urlPart.split('/');
9067
- if (urlParts.length <= 1) {
9068
- return false;
9069
- } else {
9070
- return urlParts[1];
9071
- }
9072
- }
9073
- } else {
9074
- //main, just get the first.
9075
- if (urlPart.indexOf('/') === -1) {
9076
- return urlPart;
9077
- } else {
9078
- let urlParts = urlPart.split('/');
9079
- return urlParts[0];
9080
- }
9081
- }
9082
- return false;
9083
- };
9084
- /* harmony default export */ __webpack_exports__["default"] = (getAnchor);
9085
-
9086
- /***/ }),
9087
-
9088
- /***/ "./src/utils/lib.js":
9089
- /*!**************************!*\
9090
- !*** ./src/utils/lib.js ***!
9091
- \**************************/
9092
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9093
-
9094
- "use strict";
9095
- __webpack_require__.r(__webpack_exports__);
9096
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9097
- /* harmony export */ "in_array": function() { return /* binding */ in_array; }
9098
- /* harmony export */ });
9099
- const in_array = (needle, haystack) => {
9100
- let length = haystack.length;
9101
- for (let i = 0; i < length; i++) {
9102
- if (haystack[i] == needle) return true;
9103
- }
9104
- return false;
9105
- };
9106
-
9107
- /***/ }),
9108
-
9109
- /***/ "./src/utils/sleeper.js":
9110
- /*!******************************!*\
9111
- !*** ./src/utils/sleeper.js ***!
9112
- \******************************/
9113
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
9114
-
9115
- "use strict";
9116
- __webpack_require__.r(__webpack_exports__);
9117
- /*
9118
- * helper function to delay after a promise
9119
- * @param ms
9120
- * @returns {function(*): Promise<unknown>}
9121
- */
9122
- const sleeper = ms => {
9123
- return function (x) {
9124
- return new Promise(resolve => setTimeout(() => resolve(x), ms));
9125
- };
9126
- };
9127
- /* harmony default export */ __webpack_exports__["default"] = (sleeper);
9128
-
9129
- /***/ }),
9130
-
9131
- /***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":
9132
- /*!**********************************************************************************!*\
9133
- !*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***!
9134
- \**********************************************************************************/
9135
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
9136
-
9137
- "use strict";
9138
-
9139
-
9140
- var reactIs = __webpack_require__(/*! react-is */ "./node_modules/hoist-non-react-statics/node_modules/react-is/index.js");
9141
-
9142
- /**
9143
- * Copyright 2015, Yahoo! Inc.
9144
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
9145
- */
9146
- var REACT_STATICS = {
9147
- childContextTypes: true,
9148
- contextType: true,
9149
- contextTypes: true,
9150
- defaultProps: true,
9151
- displayName: true,
9152
- getDefaultProps: true,
9153
- getDerivedStateFromError: true,
9154
- getDerivedStateFromProps: true,
9155
- mixins: true,
9156
- propTypes: true,
9157
- type: true
9158
- };
9159
- var KNOWN_STATICS = {
9160
- name: true,
9161
- length: true,
9162
- prototype: true,
9163
- caller: true,
9164
- callee: true,
9165
- arguments: true,
9166
- arity: true
9167
- };
9168
- var FORWARD_REF_STATICS = {
9169
- '$$typeof': true,
9170
- render: true,
9171
- defaultProps: true,
9172
- displayName: true,
9173
- propTypes: true
9174
- };
9175
- var MEMO_STATICS = {
9176
- '$$typeof': true,
9177
- compare: true,
9178
- defaultProps: true,
9179
- displayName: true,
9180
- propTypes: true,
9181
- type: true
9182
- };
9183
- var TYPE_STATICS = {};
9184
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
9185
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
9186
-
9187
- function getStatics(component) {
9188
- // React v16.11 and below
9189
- if (reactIs.isMemo(component)) {
9190
- return MEMO_STATICS;
9191
- } // React v16.12 and above
9192
-
9193
-
9194
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
9195
- }
9196
-
9197
- var defineProperty = Object.defineProperty;
9198
- var getOwnPropertyNames = Object.getOwnPropertyNames;
9199
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
9200
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
9201
- var getPrototypeOf = Object.getPrototypeOf;
9202
- var objectPrototype = Object.prototype;
9203
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
9204
- if (typeof sourceComponent !== 'string') {
9205
- // don't hoist over string (html) components
9206
- if (objectPrototype) {
9207
- var inheritedComponent = getPrototypeOf(sourceComponent);
9208
-
9209
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
9210
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
9211
- }
9212
- }
9213
-
9214
- var keys = getOwnPropertyNames(sourceComponent);
9215
-
9216
- if (getOwnPropertySymbols) {
9217
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
9218
- }
9219
-
9220
- var targetStatics = getStatics(targetComponent);
9221
- var sourceStatics = getStatics(sourceComponent);
9222
-
9223
- for (var i = 0; i < keys.length; ++i) {
9224
- var key = keys[i];
9225
-
9226
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
9227
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
9228
-
9229
- try {
9230
- // Avoid failures from read-only properties
9231
- defineProperty(targetComponent, key, descriptor);
9232
- } catch (e) {}
9233
- }
9234
- }
9235
- }
9236
-
9237
- return targetComponent;
9238
- }
9239
-
9240
- module.exports = hoistNonReactStatics;
9241
-
9242
-
9243
- /***/ }),
9244
-
9245
- /***/ "./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js":
9246
- /*!************************************************************************************************!*\
9247
- !*** ./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js ***!
9248
- \************************************************************************************************/
9249
- /***/ (function(__unused_webpack_module, exports) {
9250
-
9251
- "use strict";
9252
- /** @license React v16.13.1
9253
- * react-is.development.js
9254
- *
9255
- * Copyright (c) Facebook, Inc. and its affiliates.
9256
- *
9257
- * This source code is licensed under the MIT license found in the
9258
- * LICENSE file in the root directory of this source tree.
9259
- */
9260
-
9261
-
9262
-
9263
-
9264
-
9265
- if (true) {
9266
- (function() {
9267
- 'use strict';
9268
-
9269
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
9270
- // nor polyfill, then a plain number is used for performance.
9271
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
9272
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
9273
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
9274
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
9275
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
9276
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
9277
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
9278
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
9279
- // (unstable) APIs that have been removed. Can we remove the symbols?
9280
-
9281
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
9282
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
9283
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
9284
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
9285
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
9286
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
9287
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
9288
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
9289
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
9290
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
9291
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
9292
-
9293
- function isValidElementType(type) {
9294
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
9295
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
9296
- }
9297
-
9298
- function typeOf(object) {
9299
- if (typeof object === 'object' && object !== null) {
9300
- var $$typeof = object.$$typeof;
9301
-
9302
- switch ($$typeof) {
9303
- case REACT_ELEMENT_TYPE:
9304
- var type = object.type;
9305
-
9306
- switch (type) {
9307
- case REACT_ASYNC_MODE_TYPE:
9308
- case REACT_CONCURRENT_MODE_TYPE:
9309
- case REACT_FRAGMENT_TYPE:
9310
- case REACT_PROFILER_TYPE:
9311
- case REACT_STRICT_MODE_TYPE:
9312
- case REACT_SUSPENSE_TYPE:
9313
- return type;
9314
-
9315
- default:
9316
- var $$typeofType = type && type.$$typeof;
9317
-
9318
- switch ($$typeofType) {
9319
- case REACT_CONTEXT_TYPE:
9320
- case REACT_FORWARD_REF_TYPE:
9321
- case REACT_LAZY_TYPE:
9322
- case REACT_MEMO_TYPE:
9323
- case REACT_PROVIDER_TYPE:
9324
- return $$typeofType;
9325
-
9326
- default:
9327
- return $$typeof;
9328
- }
9329
-
9330
- }
9331
-
9332
- case REACT_PORTAL_TYPE:
9333
- return $$typeof;
9334
- }
9335
- }
9336
-
9337
- return undefined;
9338
- } // AsyncMode is deprecated along with isAsyncMode
9339
-
9340
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
9341
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
9342
- var ContextConsumer = REACT_CONTEXT_TYPE;
9343
- var ContextProvider = REACT_PROVIDER_TYPE;
9344
- var Element = REACT_ELEMENT_TYPE;
9345
- var ForwardRef = REACT_FORWARD_REF_TYPE;
9346
- var Fragment = REACT_FRAGMENT_TYPE;
9347
- var Lazy = REACT_LAZY_TYPE;
9348
- var Memo = REACT_MEMO_TYPE;
9349
- var Portal = REACT_PORTAL_TYPE;
9350
- var Profiler = REACT_PROFILER_TYPE;
9351
- var StrictMode = REACT_STRICT_MODE_TYPE;
9352
- var Suspense = REACT_SUSPENSE_TYPE;
9353
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
9354
-
9355
- function isAsyncMode(object) {
9356
- {
9357
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
9358
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
9359
-
9360
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
9361
- }
9362
- }
9363
-
9364
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
9365
- }
9366
- function isConcurrentMode(object) {
9367
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
9368
- }
9369
- function isContextConsumer(object) {
9370
- return typeOf(object) === REACT_CONTEXT_TYPE;
9371
- }
9372
- function isContextProvider(object) {
9373
- return typeOf(object) === REACT_PROVIDER_TYPE;
9374
- }
9375
- function isElement(object) {
9376
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
9377
- }
9378
- function isForwardRef(object) {
9379
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
9380
- }
9381
- function isFragment(object) {
9382
- return typeOf(object) === REACT_FRAGMENT_TYPE;
9383
- }
9384
- function isLazy(object) {
9385
- return typeOf(object) === REACT_LAZY_TYPE;
9386
- }
9387
- function isMemo(object) {
9388
- return typeOf(object) === REACT_MEMO_TYPE;
9389
- }
9390
- function isPortal(object) {
9391
- return typeOf(object) === REACT_PORTAL_TYPE;
9392
- }
9393
- function isProfiler(object) {
9394
- return typeOf(object) === REACT_PROFILER_TYPE;
9395
- }
9396
- function isStrictMode(object) {
9397
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
9398
- }
9399
- function isSuspense(object) {
9400
- return typeOf(object) === REACT_SUSPENSE_TYPE;
9401
- }
9402
-
9403
- exports.AsyncMode = AsyncMode;
9404
- exports.ConcurrentMode = ConcurrentMode;
9405
- exports.ContextConsumer = ContextConsumer;
9406
- exports.ContextProvider = ContextProvider;
9407
- exports.Element = Element;
9408
- exports.ForwardRef = ForwardRef;
9409
- exports.Fragment = Fragment;
9410
- exports.Lazy = Lazy;
9411
- exports.Memo = Memo;
9412
- exports.Portal = Portal;
9413
- exports.Profiler = Profiler;
9414
- exports.StrictMode = StrictMode;
9415
- exports.Suspense = Suspense;
9416
- exports.isAsyncMode = isAsyncMode;
9417
- exports.isConcurrentMode = isConcurrentMode;
9418
- exports.isContextConsumer = isContextConsumer;
9419
- exports.isContextProvider = isContextProvider;
9420
- exports.isElement = isElement;
9421
- exports.isForwardRef = isForwardRef;
9422
- exports.isFragment = isFragment;
9423
- exports.isLazy = isLazy;
9424
- exports.isMemo = isMemo;
9425
- exports.isPortal = isPortal;
9426
- exports.isProfiler = isProfiler;
9427
- exports.isStrictMode = isStrictMode;
9428
- exports.isSuspense = isSuspense;
9429
- exports.isValidElementType = isValidElementType;
9430
- exports.typeOf = typeOf;
9431
- })();
9432
- }
9433
-
9434
-
9435
- /***/ }),
9436
-
9437
- /***/ "./node_modules/hoist-non-react-statics/node_modules/react-is/index.js":
9438
- /*!*****************************************************************************!*\
9439
- !*** ./node_modules/hoist-non-react-statics/node_modules/react-is/index.js ***!
9440
- \*****************************************************************************/
9441
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
9442
-
9443
- "use strict";
9444
-
9445
-
9446
- if (false) {} else {
9447
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js");
9448
- }
9449
-
9450
-
9451
- /***/ }),
9452
-
9453
- /***/ "./node_modules/immutability-helper/index.js":
9454
- /*!***************************************************!*\
9455
- !*** ./node_modules/immutability-helper/index.js ***!
9456
- \***************************************************/
9457
- /***/ (function(module, exports) {
9458
-
9459
- "use strict";
9460
-
9461
- Object.defineProperty(exports, "__esModule", ({ value: true }));
9462
- function stringifiable(obj) {
9463
- // Safely stringify Object.create(null)
9464
- /* istanbul ignore next */
9465
- return typeof obj === 'object' && !('toString' in obj) ?
9466
- Object.prototype.toString.call(obj).slice(8, -1) :
9467
- obj;
9468
- }
9469
- var isProduction = typeof process === 'object' && "development" === 'production';
9470
- function invariant(condition, message) {
9471
- if (!condition) {
9472
- /* istanbul ignore next */
9473
- if (isProduction) {
9474
- throw new Error('Invariant failed');
9475
- }
9476
- throw new Error(message());
9477
- }
9478
- }
9479
- exports.invariant = invariant;
9480
- var hasOwnProperty = Object.prototype.hasOwnProperty;
9481
- var splice = Array.prototype.splice;
9482
- var toString = Object.prototype.toString;
9483
- function type(obj) {
9484
- return toString.call(obj).slice(8, -1);
9485
- }
9486
- var assign = Object.assign || /* istanbul ignore next */ (function (target, source) {
9487
- getAllKeys(source).forEach(function (key) {
9488
- if (hasOwnProperty.call(source, key)) {
9489
- target[key] = source[key];
9490
- }
9491
- });
9492
- return target;
9493
- });
9494
- var getAllKeys = typeof Object.getOwnPropertySymbols === 'function'
9495
- ? function (obj) { return Object.keys(obj).concat(Object.getOwnPropertySymbols(obj)); }
9496
- /* istanbul ignore next */
9497
- : function (obj) { return Object.keys(obj); };
9498
- function copy(object) {
9499
- return Array.isArray(object)
9500
- ? assign(object.constructor(object.length), object)
9501
- : (type(object) === 'Map')
9502
- ? new Map(object)
9503
- : (type(object) === 'Set')
9504
- ? new Set(object)
9505
- : (object && typeof object === 'object')
9506
- ? assign(Object.create(Object.getPrototypeOf(object)), object)
9507
- /* istanbul ignore next */
9508
- : object;
9509
- }
9510
- var Context = /** @class */ (function () {
9511
- function Context() {
9512
- this.commands = assign({}, defaultCommands);
9513
- this.update = this.update.bind(this);
9514
- // Deprecated: update.extend, update.isEquals and update.newContext
9515
- this.update.extend = this.extend = this.extend.bind(this);
9516
- this.update.isEquals = function (x, y) { return x === y; };
9517
- this.update.newContext = function () { return new Context().update; };
9518
- }
9519
- Object.defineProperty(Context.prototype, "isEquals", {
9520
- get: function () {
9521
- return this.update.isEquals;
9522
- },
9523
- set: function (value) {
9524
- this.update.isEquals = value;
9525
- },
9526
- enumerable: true,
9527
- configurable: true
9528
- });
9529
- Context.prototype.extend = function (directive, fn) {
9530
- this.commands[directive] = fn;
9531
- };
9532
- Context.prototype.update = function (object, $spec) {
9533
- var _this = this;
9534
- var spec = (typeof $spec === 'function') ? { $apply: $spec } : $spec;
9535
- if (!(Array.isArray(object) && Array.isArray(spec))) {
9536
- invariant(!Array.isArray(spec), function () { return "update(): You provided an invalid spec to update(). The spec may " +
9537
- "not contain an array except as the value of $set, $push, $unshift, " +
9538
- "$splice or any custom command allowing an array value."; });
9539
- }
9540
- invariant(typeof spec === 'object' && spec !== null, function () { return "update(): You provided an invalid spec to update(). The spec and " +
9541
- "every included key path must be plain objects containing one of the " +
9542
- ("following commands: " + Object.keys(_this.commands).join(', ') + "."); });
9543
- var nextObject = object;
9544
- getAllKeys(spec).forEach(function (key) {
9545
- if (hasOwnProperty.call(_this.commands, key)) {
9546
- var objectWasNextObject = object === nextObject;
9547
- nextObject = _this.commands[key](spec[key], nextObject, spec, object);
9548
- if (objectWasNextObject && _this.isEquals(nextObject, object)) {
9549
- nextObject = object;
9550
- }
9551
- }
9552
- else {
9553
- var nextValueForKey = type(object) === 'Map'
9554
- ? _this.update(object.get(key), spec[key])
9555
- : _this.update(object[key], spec[key]);
9556
- var nextObjectValue = type(nextObject) === 'Map'
9557
- ? nextObject.get(key)
9558
- : nextObject[key];
9559
- if (!_this.isEquals(nextValueForKey, nextObjectValue)
9560
- || typeof nextValueForKey === 'undefined'
9561
- && !hasOwnProperty.call(object, key)) {
9562
- if (nextObject === object) {
9563
- nextObject = copy(object);
9564
- }
9565
- if (type(nextObject) === 'Map') {
9566
- nextObject.set(key, nextValueForKey);
9567
- }
9568
- else {
9569
- nextObject[key] = nextValueForKey;
9570
- }
9571
- }
9572
- }
9573
- });
9574
- return nextObject;
9575
- };
9576
- return Context;
9577
- }());
9578
- exports.Context = Context;
9579
- var defaultCommands = {
9580
- $push: function (value, nextObject, spec) {
9581
- invariantPushAndUnshift(nextObject, spec, '$push');
9582
- return value.length ? nextObject.concat(value) : nextObject;
9583
- },
9584
- $unshift: function (value, nextObject, spec) {
9585
- invariantPushAndUnshift(nextObject, spec, '$unshift');
9586
- return value.length ? value.concat(nextObject) : nextObject;
9587
- },
9588
- $splice: function (value, nextObject, spec, originalObject) {
9589
- invariantSplices(nextObject, spec);
9590
- value.forEach(function (args) {
9591
- invariantSplice(args);
9592
- if (nextObject === originalObject && args.length) {
9593
- nextObject = copy(originalObject);
9594
- }
9595
- splice.apply(nextObject, args);
9596
- });
9597
- return nextObject;
9598
- },
9599
- $set: function (value, _nextObject, spec) {
9600
- invariantSet(spec);
9601
- return value;
9602
- },
9603
- $toggle: function (targets, nextObject) {
9604
- invariantSpecArray(targets, '$toggle');
9605
- var nextObjectCopy = targets.length ? copy(nextObject) : nextObject;
9606
- targets.forEach(function (target) {
9607
- nextObjectCopy[target] = !nextObject[target];
9608
- });
9609
- return nextObjectCopy;
9610
- },
9611
- $unset: function (value, nextObject, _spec, originalObject) {
9612
- invariantSpecArray(value, '$unset');
9613
- value.forEach(function (key) {
9614
- if (Object.hasOwnProperty.call(nextObject, key)) {
9615
- if (nextObject === originalObject) {
9616
- nextObject = copy(originalObject);
9617
- }
9618
- delete nextObject[key];
9619
- }
9620
- });
9621
- return nextObject;
9622
- },
9623
- $add: function (values, nextObject, _spec, originalObject) {
9624
- invariantMapOrSet(nextObject, '$add');
9625
- invariantSpecArray(values, '$add');
9626
- if (type(nextObject) === 'Map') {
9627
- values.forEach(function (_a) {
9628
- var key = _a[0], value = _a[1];
9629
- if (nextObject === originalObject && nextObject.get(key) !== value) {
9630
- nextObject = copy(originalObject);
9631
- }
9632
- nextObject.set(key, value);
9633
- });
9634
- }
9635
- else {
9636
- values.forEach(function (value) {
9637
- if (nextObject === originalObject && !nextObject.has(value)) {
9638
- nextObject = copy(originalObject);
9639
- }
9640
- nextObject.add(value);
9641
- });
9642
- }
9643
- return nextObject;
9644
- },
9645
- $remove: function (value, nextObject, _spec, originalObject) {
9646
- invariantMapOrSet(nextObject, '$remove');
9647
- invariantSpecArray(value, '$remove');
9648
- value.forEach(function (key) {
9649
- if (nextObject === originalObject && nextObject.has(key)) {
9650
- nextObject = copy(originalObject);
9651
- }
9652
- nextObject.delete(key);
9653
- });
9654
- return nextObject;
9655
- },
9656
- $merge: function (value, nextObject, _spec, originalObject) {
9657
- invariantMerge(nextObject, value);
9658
- getAllKeys(value).forEach(function (key) {
9659
- if (value[key] !== nextObject[key]) {
9660
- if (nextObject === originalObject) {
9661
- nextObject = copy(originalObject);
9662
- }
9663
- nextObject[key] = value[key];
9664
- }
9665
- });
9666
- return nextObject;
9667
- },
9668
- $apply: function (value, original) {
9669
- invariantApply(value);
9670
- return value(original);
9671
- },
9672
- };
9673
- var defaultContext = new Context();
9674
- exports.isEquals = defaultContext.update.isEquals;
9675
- exports.extend = defaultContext.extend;
9676
- exports["default"] = defaultContext.update;
9677
- // @ts-ignore
9678
- exports["default"]["default"] = module.exports = assign(exports.default, exports);
9679
- // invariants
9680
- function invariantPushAndUnshift(value, spec, command) {
9681
- invariant(Array.isArray(value), function () { return "update(): expected target of " + stringifiable(command) + " to be an array; got " + stringifiable(value) + "."; });
9682
- invariantSpecArray(spec[command], command);
9683
- }
9684
- function invariantSpecArray(spec, command) {
9685
- invariant(Array.isArray(spec), function () { return "update(): expected spec of " + stringifiable(command) + " to be an array; got " + stringifiable(spec) + ". " +
9686
- "Did you forget to wrap your parameter in an array?"; });
9687
- }
9688
- function invariantSplices(value, spec) {
9689
- invariant(Array.isArray(value), function () { return "Expected $splice target to be an array; got " + stringifiable(value); });
9690
- invariantSplice(spec.$splice);
9691
- }
9692
- function invariantSplice(value) {
9693
- invariant(Array.isArray(value), function () { return "update(): expected spec of $splice to be an array of arrays; got " + stringifiable(value) + ". " +
9694
- "Did you forget to wrap your parameters in an array?"; });
9695
- }
9696
- function invariantApply(fn) {
9697
- invariant(typeof fn === 'function', function () { return "update(): expected spec of $apply to be a function; got " + stringifiable(fn) + "."; });
9698
- }
9699
- function invariantSet(spec) {
9700
- invariant(Object.keys(spec).length === 1, function () { return "Cannot have more than one key in an object with $set"; });
9701
- }
9702
- function invariantMerge(target, specValue) {
9703
- invariant(specValue && typeof specValue === 'object', function () { return "update(): $merge expects a spec of type 'object'; got " + stringifiable(specValue); });
9704
- invariant(target && typeof target === 'object', function () { return "update(): $merge expects a target of type 'object'; got " + stringifiable(target); });
9705
- }
9706
- function invariantMapOrSet(target, command) {
9707
- var typeOfTarget = type(target);
9708
- invariant(typeOfTarget === 'Map' || typeOfTarget === 'Set', function () { return "update(): " + stringifiable(command) + " expects a target of type Set or Map; got " + stringifiable(typeOfTarget); });
9709
- }
9710
-
9711
-
9712
- /***/ }),
9713
-
9714
- /***/ "./node_modules/react-data-table-component/dist/index.cjs.js":
9715
- /*!*******************************************************************!*\
9716
- !*** ./node_modules/react-data-table-component/dist/index.cjs.js ***!
9717
- \*******************************************************************/
9718
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
9719
-
9720
- "use strict";
9721
- Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_require__(/*! react */ "react"),t=__webpack_require__(/*! styled-components */ "./node_modules/styled-components/dist/styled-components.browser.esm.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a,l=o(e),r=n(e),i=n(t);function s(e,t){return e[t]}function d(e,t){return t.split(".").reduce(((e,t)=>{const n=t.match(/[^\]\\[.]+/g);if(n&&n.length>1)for(let t=0;t<n.length;t++)return e[n[t]][n[t+1]];return e[t]}),e)}function c(e=[],t,n=0){return[...e.slice(0,n),t,...e.slice(n)]}function g(e=[],t,n="id"){const o=e.slice(),a=s(t,n);return a?o.splice(o.findIndex((e=>s(e,n)===a)),1):o.splice(o.findIndex((e=>e===t)),1),o}function u(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function p(e,t){return Math.ceil(e/t)}function b(e,t){return Math.min(e,t)}!function(e){e.ASC="asc",e.DESC="desc"}(a||(a={}));const m=()=>null;function f(e,t=[],n=[]){let o={},a=[...n];return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(o=t.style||{},t.classNames&&(a=[...a,...t.classNames]),"function"==typeof t.style&&(o=t.style(e)||{}))})),{style:o,classNames:a.join(" ")}}function h(e,t=[],n="id"){const o=s(e,n);return o?t.some((e=>s(e,n)===o)):t.some((t=>t===e))}function w(e,t){return t?e.findIndex((e=>x(e.id,t))):-1}function x(e,t){return e==t}function C(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:n,rows:o,rowCount:a,mergeSelections:l}=t,r=!e.allSelected,i=!e.toggleOnSelectedRowsChange;if(l){const t=r?[...e.selectedRows,...o.filter((t=>!h(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!h(e,o,n)));return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:i})}return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:r?a:0,selectedRows:r?o:[],toggleOnSelectedRowsChange:i})}case"SELECT_SINGLE_ROW":{const{keyField:o,row:a,isSelected:l,rowCount:r,singleSelect:i}=t;return i?l?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[a],toggleOnSelectedRowsChange:n}):l?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:g(e.selectedRows,a,o),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===r,selectedRows:c(e.selectedRows,a),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:o,selectedRows:a,totalRows:l,mergeSelections:r}=t;if(r){const t=[...e.selectedRows,...a.filter((t=>!h(t,e.selectedRows,o)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:a.length,allSelected:a.length===l,selectedRows:a,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:n}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:n})}case"SORT_CHANGE":{const{sortDirection:o,selectedColumn:a,clearSelectedOnSort:l}=t;return Object.assign(Object.assign(Object.assign({},e),{selectedColumn:a,sortDirection:o,currentPage:1}),l&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:o,paginationServer:a,visibleOnly:l,persistSelectedOnPageChange:r}=t,i=a&&r,s=a&&!r||l;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:o}),i&&{allSelected:!1}),s&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:n,page:o}=t;return Object.assign(Object.assign({},e),{currentPage:o,rowsPerPage:n})}}}const y=t.css`
9722
  pointer-events: none;
9723
  opacity: 0.4;
9724
- `,v=i.default.div`
9725
  position: relative;
9726
  box-sizing: border-box;
9727
  display: flex;
@@ -9729,41 +9,37 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9729
  width: 100%;
9730
  height: 100%;
9731
  max-width: 100%;
9732
- ${({disabled:e})=>e&&y};
9733
  ${({theme:e})=>e.table.style};
9734
- `,R=t.css`
9735
  position: sticky;
9736
  position: -webkit-sticky; /* Safari */
9737
  top: 0;
9738
  z-index: 1;
9739
- `,S=i.default.div`
9740
  display: flex;
9741
  width: 100%;
9742
- ${({fixedHeader:e})=>e&&R};
9743
  ${({theme:e})=>e.head.style};
9744
- `,E=i.default.div`
9745
  display: flex;
9746
  align-items: stretch;
9747
  width: 100%;
9748
  ${({theme:e})=>e.headRow.style};
9749
  ${({dense:e,theme:t})=>e&&t.headRow.denseStyle};
9750
- `,O=(e,...n)=>t.css`
9751
  @media screen and (max-width: ${599}px) {
9752
- ${t.css(e,...n)}
9753
  }
9754
- `,P=(e,...n)=>t.css`
9755
  @media screen and (max-width: ${959}px) {
9756
- ${t.css(e,...n)}
9757
  }
9758
- `,k=(e,...n)=>t.css`
9759
  @media screen and (max-width: ${1280}px) {
9760
- ${t.css(e,...n)}
9761
  }
9762
- `,D=e=>(n,...o)=>t.css`
9763
- @media screen and (max-width: ${e}px) {
9764
- ${t.css(n,...o)}
9765
- }
9766
- `,H=i.default.div`
9767
  position: relative;
9768
  display: flex;
9769
  align-items: center;
@@ -9771,13 +47,13 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9771
  line-height: normal;
9772
  ${({theme:e,headCell:t})=>e[t?"headCells":"cells"].style};
9773
  ${({noPadding:e})=>e&&"padding: 0"};
9774
- `,$=i.default(H)`
9775
  flex-grow: ${({button:e,grow:t})=>0===t||e?0:t||1};
9776
  flex-shrink: 0;
9777
  flex-basis: 0;
9778
  max-width: ${({maxWidth:e})=>e||"100%"};
9779
  min-width: ${({minWidth:e})=>e||"100px"};
9780
- ${({width:e})=>e&&t.css`
9781
  min-width: ${e};
9782
  max-width: ${e};
9783
  `};
@@ -9786,36 +62,40 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9786
  ${({compact:e,button:t})=>(e||t)&&"padding: 0"};
9787
 
9788
  /* handle hiding cells */
9789
- ${({hide:e})=>e&&"sm"===e&&O`
9790
  display: none;
9791
  `};
9792
  ${({hide:e})=>e&&"md"===e&&P`
9793
  display: none;
9794
  `};
9795
- ${({hide:e})=>e&&"lg"===e&&k`
9796
  display: none;
9797
  `};
9798
- ${({hide:e})=>e&&Number.isInteger(e)&&D(e)`
 
 
 
 
9799
  display: none;
9800
  `};
9801
- `,j=t.css`
9802
  div:first-child {
9803
  white-space: ${({wrapCell:e})=>e?"normal":"nowrap"};
9804
  overflow: ${({allowOverflow:e})=>e?"visible":"hidden"};
9805
  text-overflow: ellipsis;
9806
  }
9807
- `,F=i.default($).attrs((e=>({style:e.style})))`
9808
- ${({renderAsCell:e})=>!e&&j};
9809
  ${({theme:e,isDragging:t})=>t&&e.cells.draggingStyle};
9810
  ${({cellStyle:e})=>e};
9811
- `;var T=l.memo((function({id:e,column:t,row:n,rowIndex:o,dataTag:a,isDragging:r,onDragStart:i,onDragOver:s,onDragEnd:c,onDragEnter:g,onDragLeave:u}){const{style:p,classNames:b}=f(n,t.conditionalCellStyles,["rdt_TableCell"]);return l.createElement(F,{id:e,"data-column-id":t.id,role:"cell",className:b,"data-tag":a,cellStyle:t.style,renderAsCell:!!t.cell,allowOverflow:t.allowOverflow,button:t.button,center:t.center,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,width:t.width,wrapCell:t.wrap,style:p,isDragging:r,onDragStart:i,onDragOver:s,onDragEnd:c,onDragEnter:g,onDragLeave:u},!t.cell&&l.createElement("div",{"data-tag":a},function(e,t,n,o){if(!t)return null;if("string"!=typeof t&&"function"!=typeof t)throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return n&&"function"==typeof n?n(e,o):t&&"function"==typeof t?t(e,o):d(e,t)}(n,t.selector,t.format,o)),t.cell&&t.cell(n,o,t,e))}));var I=l.memo((function({name:e,component:t="input",componentOptions:n={style:{}},indeterminate:o=!1,checked:a=!1,disabled:r=!1,onClick:i=m}){const s=t,d="input"!==s?n.style:(e=>Object.assign(Object.assign({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(r),c=l.useMemo((()=>function(e,...t){let n;return Object.keys(e).map((t=>e[t])).forEach(((o,a)=>{const l=e;"function"==typeof o&&(n=Object.assign(Object.assign({},l),{[Object.keys(e)[a]]:o(...t)}))})),n||e}(n,o)),[n,o]);return l.createElement(s,Object.assign({type:"checkbox",ref:e=>{e&&(e.indeterminate=o)},style:d,onClick:r?m:i,name:e,"aria-label":e,checked:a,disabled:r},c,{onChange:m}))}));const M=i.default(H)`
9812
  flex: 0 0 48px;
9813
  min-width: 48px;
9814
  justify-content: center;
9815
  align-items: center;
9816
  user-select: none;
9817
  white-space: nowrap;
9818
- `;function A({name:e,keyField:t,row:n,rowCount:o,selected:a,selectableRowsComponent:r,selectableRowsComponentProps:i,selectableRowsSingle:s,selectableRowDisabled:d,onSelectedRow:c}){const g=!(!d||!d(n));return l.createElement(M,{onClick:e=>e.stopPropagation(),className:"rdt_TableCell",noPadding:!0},l.createElement(I,{name:e,component:r,componentOptions:i,checked:a,"aria-checked":a,onClick:()=>{c({type:"SELECT_SINGLE_ROW",row:n,isSelected:a,keyField:t,rowCount:o,singleSelect:s})},disabled:g}))}const L=i.default.button`
9819
  display: inline-flex;
9820
  align-items: center;
9821
  user-select: none;
@@ -9823,25 +103,25 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9823
  border: none;
9824
  background-color: transparent;
9825
  ${({theme:e})=>e.expanderButton.style};
9826
- `;function _({disabled:e=!1,expanded:t=!1,expandableIcon:n,id:o,row:a,onToggled:r}){const i=t?n.expanded:n.collapsed;return l.createElement(L,{"aria-disabled":e,onClick:()=>r&&r(a),"data-testid":`expander-button-${o}`,disabled:e,"aria-label":t?"Collapse Row":"Expand Row",role:"button",type:"button"},i)}const z=i.default(H)`
9827
  white-space: nowrap;
9828
  font-weight: 400;
9829
  min-width: 48px;
9830
  ${({theme:e})=>e.expanderCell.style};
9831
- `;function N({row:e,expanded:t=!1,expandableIcon:n,id:o,onToggled:a,disabled:r=!1}){return l.createElement(z,{onClick:e=>e.stopPropagation(),noPadding:!0},l.createElement(_,{id:o,row:e,expanded:t,expandableIcon:n,disabled:r,onToggled:a}))}const W=i.default.div`
9832
  width: 100%;
9833
  box-sizing: border-box;
9834
  ${({theme:e})=>e.expanderRow.style};
9835
  ${({extendedRowStyle:e})=>e};
9836
- `;var B=l.memo((function({data:e,ExpanderComponent:t,expanderComponentProps:n,extendedRowStyle:o,extendedClassNames:a}){const r=["rdt_ExpanderRow",...a.split(" ").filter((e=>"rdt_TableRow"!==e))].join(" ");return l.createElement(W,{className:r,extendedRowStyle:o},l.createElement(t,Object.assign({data:e},n)))}));var G,V,U;exports.Direction=void 0,(G=exports.Direction||(exports.Direction={})).LTR="ltr",G.RTL="rtl",G.AUTO="auto",exports.Alignment=void 0,(V=exports.Alignment||(exports.Alignment={})).LEFT="left",V.RIGHT="right",V.CENTER="center",exports.Media=void 0,(U=exports.Media||(exports.Media={})).SM="sm",U.MD="md",U.LG="lg";const q=t.css`
9837
  &:hover {
9838
  ${({highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle};
9839
  }
9840
- `,Y=t.css`
9841
  &:hover {
9842
  cursor: pointer;
9843
  }
9844
- `,K=i.default.div.attrs((e=>({style:e.style})))`
9845
  display: flex;
9846
  align-items: stretch;
9847
  align-content: stretch;
@@ -9850,20 +130,20 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9850
  ${({theme:e})=>e.rows.style};
9851
  ${({dense:e,theme:t})=>e&&t.rows.denseStyle};
9852
  ${({striped:e,theme:t})=>e&&t.rows.stripedStyle};
9853
- ${({highlightOnHover:e})=>e&&q};
9854
- ${({pointerOnHover:e})=>e&&Y};
9855
  ${({selected:e,theme:t})=>e&&t.rows.selectedHighlightStyle};
9856
- `;function J({columns:e=[],conditionalRowStyles:t=[],defaultExpanded:n=!1,defaultExpanderDisabled:o=!1,dense:a=!1,expandableIcon:r,expandableRows:i=!1,expandableRowsComponent:d,expandableRowsComponentProps:c,expandableRowsHideExpander:g,expandOnRowClicked:u=!1,expandOnRowDoubleClicked:p=!1,highlightOnHover:b=!1,id:h,expandableInheritConditionalStyles:w,keyField:C,onRowClicked:y=m,onRowDoubleClicked:v=m,onRowMouseEnter:R=m,onRowMouseLeave:S=m,onRowExpandToggled:E=m,onSelectedRow:O=m,pointerOnHover:P=!1,row:k,rowCount:D,rowIndex:H,selectableRowDisabled:$=null,selectableRows:j=!1,selectableRowsComponent:F,selectableRowsComponentProps:I,selectableRowsHighlight:M=!1,selectableRowsSingle:L=!1,selected:_,striped:z=!1,draggingColumnId:W,onDragStart:G,onDragOver:V,onDragEnd:U,onDragEnter:q,onDragLeave:Y}){const[J,Q]=l.useState(n);l.useEffect((()=>{Q(n)}),[n]);const X=l.useCallback((()=>{Q(!J),E(!J,k)}),[J,E,k]),Z=P||i&&(u||p),ee=l.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(y(k,e),!o&&i&&u&&X())}),[o,u,i,X,y,k]),te=l.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(v(k,e),!o&&i&&p&&X())}),[o,p,i,X,v,k]),ne=l.useCallback((e=>{R(k,e)}),[R,k]),oe=l.useCallback((e=>{S(k,e)}),[S,k]),ae=s(k,C),{style:le,classNames:re}=f(k,t,["rdt_TableRow"]),ie=M&&_,se=w?le:{},de=z&&H%2==0;return l.createElement(l.Fragment,null,l.createElement(K,{id:`row-${h}`,role:"row",striped:de,highlightOnHover:b,pointerOnHover:!o&&Z,dense:a,onClick:ee,onDoubleClick:te,onMouseEnter:ne,onMouseLeave:oe,className:re,selected:ie,style:le},j&&l.createElement(A,{name:`select-row-${ae}`,keyField:C,row:k,rowCount:D,selected:_,selectableRowsComponent:F,selectableRowsComponentProps:I,selectableRowDisabled:$,selectableRowsSingle:L,onSelectedRow:O}),i&&!g&&l.createElement(N,{id:ae,expandableIcon:r,expanded:J,row:k,onToggled:X,disabled:o}),e.map((e=>e.omit?null:l.createElement(T,{id:`cell-${e.id}-${ae}`,key:`cell-${e.id}-${ae}`,dataTag:e.ignoreRowClick||e.button?null:"allowRowEvents",column:e,row:k,rowIndex:H,isDragging:x(W,e.id),onDragStart:G,onDragOver:V,onDragEnd:U,onDragEnter:q,onDragLeave:Y})))),i&&J&&l.createElement(B,{key:`expander-${ae}`,data:k,extendedRowStyle:se,extendedClassNames:re,ExpanderComponent:d,expanderComponentProps:c}))}const Q=i.default.span`
9857
  padding: 2px;
9858
  color: inherit;
9859
  flex-grow: 0;
9860
  flex-shrink: 0;
9861
  ${({sortActive:e})=>e?"opacity: 1":"opacity: 0"};
9862
  ${({sortDirection:e})=>"desc"===e&&"transform: rotate(180deg)"};
9863
- `,X=({sortActive:e,sortDirection:t})=>r.default.createElement(Q,{sortActive:e,sortDirection:t},"▲"),Z=i.default($)`
9864
  ${({button:e})=>e&&"text-align: center"};
9865
  ${({theme:e,isDragging:t})=>t&&e.headCells.draggingStyle};
9866
- `,ee=t.css`
9867
  cursor: pointer;
9868
  span.__rdt_custom_sort_icon__ {
9869
  i,
@@ -9886,7 +166,7 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9886
  }
9887
  }
9888
 
9889
- ${({sortActive:e})=>!e&&t.css`
9890
  &:hover,
9891
  &:focus {
9892
  opacity: 0.7;
@@ -9897,7 +177,7 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9897
  }
9898
  }
9899
  `};
9900
- `,te=i.default.div`
9901
  display: inline-flex;
9902
  align-items: center;
9903
  justify-content: inherit;
@@ -9906,19 +186,19 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9906
  outline: none;
9907
  user-select: none;
9908
  overflow: hidden;
9909
- ${({disabled:e})=>!e&&ee};
9910
- `,ne=i.default.div`
9911
  overflow: hidden;
9912
  white-space: nowrap;
9913
  text-overflow: ellipsis;
9914
- `;var oe=l.memo((function({column:e,disabled:t,draggingColumnId:n,selectedColumn:o={},sortDirection:r,sortIcon:i,sortServer:s,pagination:d,paginationServer:c,persistSelectedOnSort:g,selectableRowsVisibleOnly:u,onSort:p,onDragStart:b,onDragOver:m,onDragEnd:f,onDragEnter:h,onDragLeave:w}){l.useEffect((()=>{"string"==typeof e.selector&&console.error(`Warning: ${e.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]);const[C,y]=l.useState(!1),v=l.useRef(null);if(l.useEffect((()=>{v.current&&y(v.current.scrollWidth>v.current.clientWidth)}),[C]),e.omit)return null;const R=()=>{if(!e.sortable&&!e.selector)return;let t=r;x(o.id,e.id)&&(t=r===a.ASC?a.DESC:a.ASC),p({type:"SORT_CHANGE",sortDirection:t,selectedColumn:e,clearSelectedOnSort:d&&c&&!g||s||u})},S=e=>l.createElement(X,{sortActive:e,sortDirection:r}),E=()=>l.createElement("span",{className:[r,"__rdt_custom_sort_icon__"].join(" ")},i),O=!(!e.sortable||!x(o.id,e.id)),P=!e.sortable||t,k=e.sortable&&!i&&!e.right,D=e.sortable&&!i&&e.right,H=e.sortable&&i&&!e.right,$=e.sortable&&i&&e.right;return l.createElement(Z,{"data-column-id":e.id,className:"rdt_TableCol",headCell:!0,allowOverflow:e.allowOverflow,button:e.button,compact:e.compact,grow:e.grow,hide:e.hide,maxWidth:e.maxWidth,minWidth:e.minWidth,right:e.right,center:e.center,width:e.width,draggable:e.reorder,isDragging:x(e.id,n),onDragStart:b,onDragOver:m,onDragEnd:f,onDragEnter:h,onDragLeave:w},e.name&&l.createElement(te,{"data-column-id":e.id,"data-sort-id":e.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:P?void 0:R,onKeyPress:P?void 0:e=>{"Enter"===e.key&&R()},sortActive:!P&&O,disabled:P},!P&&$&&E(),!P&&D&&S(O),"string"==typeof e.name?l.createElement(ne,{title:C?e.name:void 0,ref:v,"data-column-id":e.id},e.name):e.name,!P&&H&&E(),!P&&k&&S(O)))}));const ae=i.default(H)`
9915
  flex: 0 0 48px;
9916
  justify-content: center;
9917
  align-items: center;
9918
  user-select: none;
9919
  white-space: nowrap;
9920
  font-size: unset;
9921
- `;function le({headCell:e=!0,rowData:t,keyField:n,allSelected:o,mergeSelections:a,selectedRows:r,selectableRowsComponent:i,selectableRowsComponentProps:s,selectableRowDisabled:d,onSelectAllRows:c}){const g=r.length>0&&!o,u=d?t.filter((e=>!d(e))):t,p=0===u.length,b=Math.min(t.length,u.length);return l.createElement(ae,{className:"rdt_TableCol",headCell:e,noPadding:!0},l.createElement(I,{name:"select-all-rows",component:i,componentOptions:s,onClick:()=>{c({type:"SELECT_ALL_ROWS",rows:u,rowCount:b,mergeSelections:a,keyField:n})},checked:o,indeterminate:g,disabled:p}))}function re(e=exports.Direction.AUTO){const t="object"==typeof window,[n,o]=l.useState(!1);return l.useEffect((()=>{if(t)if("auto"!==e)o("rtl"===e);else{const e=!(!window.document||!window.document.createElement),t=document.getElementsByTagName("BODY")[0],n=document.getElementsByTagName("HTML")[0],a="rtl"===t.dir||"rtl"===n.dir;o(e&&a)}}),[e,t]),n}const ie=i.default.div`
9922
  display: flex;
9923
  align-items: center;
9924
  flex: 1 0 auto;
@@ -9926,12 +206,12 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9926
  color: ${({theme:e})=>e.contextMenu.fontColor};
9927
  font-size: ${({theme:e})=>e.contextMenu.fontSize};
9928
  font-weight: 400;
9929
- `,se=i.default.div`
9930
  display: flex;
9931
  align-items: center;
9932
  justify-content: flex-end;
9933
  flex-wrap: wrap;
9934
- `,de=i.default.div`
9935
  position: absolute;
9936
  top: 0;
9937
  left: 0;
@@ -9945,7 +225,7 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9945
  ${({rtl:e})=>e&&"direction: rtl"};
9946
  ${({theme:e})=>e.contextMenu.style};
9947
  ${({theme:e,visible:t})=>t&&e.contextMenu.activeStyle};
9948
- `;function ce({contextMessage:e,contextActions:t,contextComponent:n,selectedCount:o,direction:a}){const r=re(a),i=o>0;return n?l.createElement(de,{visible:i},l.cloneElement(n,{selectedCount:o})):l.createElement(de,{visible:i,rtl:r},l.createElement(ie,null,((e,t,n)=>{if(0===t)return null;const o=1===t?e.singular:e.plural;return n?`${t} ${e.message||""} ${o}`:`${t} ${o} ${e.message||""}`})(e,o,r)),l.createElement(se,null,t))}const ge=i.default.div`
9949
  position: relative;
9950
  box-sizing: border-box;
9951
  overflow: hidden;
@@ -9956,12 +236,12 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9956
  width: 100%;
9957
  flex-wrap: wrap;
9958
  ${({theme:e})=>e.header.style}
9959
- `,ue=i.default.div`
9960
  flex: 1 0 auto;
9961
  color: ${({theme:e})=>e.header.fontColor};
9962
  font-size: ${({theme:e})=>e.header.fontSize};
9963
  font-weight: 400;
9964
- `,pe=i.default.div`
9965
  flex: 1 0 auto;
9966
  display: flex;
9967
  align-items: center;
@@ -9970,21 +250,7 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));var e=__webpack_requi
9970
  > * {
9971
  margin-left: 5px;
9972
  }
9973
- `,be=({title:e,actions:t=null,contextMessage:n,contextActions:o,contextComponent:a,selectedCount:r,direction:i,showMenu:s=!0})=>l.createElement(ge,{className:"rdt_TableHeader",role:"heading","aria-level":1},l.createElement(ue,null,e),t&&l.createElement(pe,null,t),s&&l.createElement(ce,{contextMessage:n,contextActions:o,contextComponent:a,direction:i,selectedCount:r}))
9974
- /*! *****************************************************************************
9975
- Copyright (c) Microsoft Corporation.
9976
-
9977
- Permission to use, copy, modify, and/or distribute this software for any
9978
- purpose with or without fee is hereby granted.
9979
-
9980
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9981
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9982
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
9983
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
9984
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
9985
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
9986
- PERFORMANCE OF THIS SOFTWARE.
9987
- ***************************************************************************** */;function me(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n}const fe={left:"flex-start",right:"flex-end",center:"center"},he=i.default.header`
9988
  position: relative;
9989
  display: flex;
9990
  flex: 1 1 auto;
@@ -9992,49 +258,49 @@ PERFORMANCE OF THIS SOFTWARE.
9992
  align-items: center;
9993
  padding: 4px 16px 4px 24px;
9994
  width: 100%;
9995
- justify-content: ${({align:e})=>fe[e]};
9996
  flex-wrap: ${({wrapContent:e})=>e?"wrap":"nowrap"};
9997
  ${({theme:e})=>e.subHeader.style}
9998
- `,we=e=>{var{align:t="right",wrapContent:n=!0}=e,o=me(e,["align","wrapContent"]);return l.createElement(he,Object.assign({align:t,wrapContent:n},o))},xe=i.default.div`
9999
  display: flex;
10000
  flex-direction: column;
10001
- `,Ce=i.default.div`
10002
  position: relative;
10003
  width: 100%;
10004
  border-radius: inherit;
10005
- ${({responsive:e,fixedHeader:n})=>e&&t.css`
10006
  overflow-x: auto;
10007
 
10008
  // hidden prevents vertical scrolling in firefox when fixedHeader is disabled
10009
- overflow-y: ${n?"auto":"hidden"};
10010
  min-height: 0;
10011
  `};
10012
 
10013
- ${({fixedHeader:e=!1,fixedHeaderScrollHeight:n="100vh"})=>e&&t.css`
10014
- max-height: ${n};
10015
  -webkit-overflow-scrolling: touch;
10016
  `};
10017
 
10018
  ${({theme:e})=>e.responsiveWrapper.style};
10019
- `,ye=i.default.div`
10020
  position: relative;
10021
  box-sizing: border-box;
10022
  width: 100%;
10023
  height: 100%;
10024
  ${e=>e.theme.progress.style};
10025
- `,ve=i.default.div`
10026
  position: relative;
10027
  width: 100%;
10028
  ${({theme:e})=>e.tableWrapper.style};
10029
- `,Re=i.default(H)`
10030
  white-space: nowrap;
10031
  ${({theme:e})=>e.expanderCell.style};
10032
- `,Se=i.default.div`
10033
  box-sizing: border-box;
10034
  width: 100%;
10035
  height: 100%;
10036
  ${({theme:e})=>e.noData.style};
10037
- `,Ee=()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},r.default.createElement("path",{d:"M7 10l5 5 5-5z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),Oe=i.default.select`
10038
  cursor: pointer;
10039
  height: 24px;
10040
  max-width: 100%;
@@ -10061,7 +327,7 @@ PERFORMANCE OF THIS SOFTWARE.
10061
  option {
10062
  color: initial;
10063
  }
10064
- `,Pe=i.default.div`
10065
  position: relative;
10066
  flex-shrink: 0;
10067
  font-size: inherit;
@@ -10080,7 +346,7 @@ PERFORMANCE OF THIS SOFTWARE.
10080
  user-select: none;
10081
  pointer-events: none;
10082
  }
10083
- `,ke=e=>{var{defaultValue:t,onChange:n}=e,o=me(e,["defaultValue","onChange"]);return l.createElement(Pe,null,l.createElement(Oe,Object.assign({onChange:n,defaultValue:t},o)),l.createElement(Ee,null))},De={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return r.default.createElement("div",null,"To add an expander pass in a component instance via ",r.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:r.default.createElement((()=>r.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),r.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:r.default.createElement((()=>r.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),r.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:r.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:r.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:exports.Alignment.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:r.default.createElement((()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},r.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),r.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:r.default.createElement((()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},r.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),r.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:r.default.createElement((()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},r.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:r.default.createElement((()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},r.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),r.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:exports.Direction.AUTO,onChangePage:m,onChangeRowsPerPage:m,onRowClicked:m,onRowDoubleClicked:m,onRowMouseEnter:m,onRowMouseLeave:m,onRowExpandToggled:m,onSelectedRowsChange:m,onSort:m,onColumnOrderChange:m},He={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},$e=i.default.nav`
10084
  display: flex;
10085
  flex: 1 1 auto;
10086
  justify-content: flex-end;
@@ -10090,669 +356,27 @@ PERFORMANCE OF THIS SOFTWARE.
10090
  padding-left: 8px;
10091
  width: 100%;
10092
  ${({theme:e})=>e.pagination.style};
10093
- `,je=i.default.button`
10094
  position: relative;
10095
  display: block;
10096
  user-select: none;
10097
  border: none;
10098
  ${({theme:e})=>e.pagination.pageButtonsStyle};
10099
  ${({isRTL:e})=>e&&"transform: scale(-1, -1)"};
10100
- `,Fe=i.default.div`
10101
  display: flex;
10102
  align-items: center;
10103
  border-radius: 4px;
10104
  white-space: nowrap;
10105
- ${O`
10106
  width: 100%;
10107
  justify-content: space-around;
10108
  `};
10109
- `,Te=i.default.span`
10110
  flex-shrink: 1;
10111
  user-select: none;
10112
- `,Ie=i.default(Te)`
10113
  margin: 0 24px;
10114
- `,Me=i.default(Te)`
10115
  margin: 0 4px;
10116
- `;var Ae=l.memo((function({rowsPerPage:e,rowCount:t,currentPage:n,direction:o=De.direction,paginationRowsPerPageOptions:a=De.paginationRowsPerPageOptions,paginationIconLastPage:r=De.paginationIconLastPage,paginationIconFirstPage:i=De.paginationIconFirstPage,paginationIconNext:s=De.paginationIconNext,paginationIconPrevious:d=De.paginationIconPrevious,paginationComponentOptions:c=De.paginationComponentOptions,onChangeRowsPerPage:g=De.onChangeRowsPerPage,onChangePage:u=De.onChangePage}){const b=(()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[n,o]=l.useState(t);return l.useEffect((()=>{if(!e)return()=>null;function n(){o(t())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[]),n})(),m=re(o),f=b.width&&b.width>599,h=p(t,e),w=n*e,x=w-e+1,C=1===n,y=n===h,v=Object.assign(Object.assign({},He),c),R=n===h?`${x}-${t} ${v.rangeSeparatorText} ${t}`:`${x}-${w} ${v.rangeSeparatorText} ${t}`,S=l.useCallback((()=>u(n-1)),[n,u]),E=l.useCallback((()=>u(n+1)),[n,u]),O=l.useCallback((()=>u(1)),[u]),P=l.useCallback((()=>u(p(t,e))),[u,t,e]),k=l.useCallback((e=>g(Number(e.target.value),n)),[n,g]),D=a.map((e=>l.createElement("option",{key:e,value:e},e)));v.selectAllRowsItem&&D.push(l.createElement("option",{key:-1,value:t},v.selectAllRowsItemText));const H=l.createElement(ke,{onChange:k,defaultValue:e,"aria-label":v.rowsPerPageText},D);return l.createElement($e,{className:"rdt_Pagination"},!v.noRowsPerPage&&f&&l.createElement(l.Fragment,null,l.createElement(Me,null,v.rowsPerPageText),H),f&&l.createElement(Ie,null,R),l.createElement(Fe,null,l.createElement(je,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":C,onClick:O,disabled:C,isRTL:m},i),l.createElement(je,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":C,onClick:S,disabled:C,isRTL:m},d),!f&&H,l.createElement(je,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":y,onClick:E,disabled:y,isRTL:m},s),l.createElement(je,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":y,onClick:P,disabled:y,isRTL:m},r)))}));const Le=(e,t)=>{const n=l.useRef(!0);l.useEffect((()=>{n.current?n.current=!1:e()}),t)};var _e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===ze}(e)}(e)};var ze="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ne(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ue((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function We(e,t,n){return e.concat(t).map((function(e){return Ne(e,n)}))}function Be(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Ge(e,t){try{return t in e}catch(e){return!1}}function Ve(e,t,n){var o={};return n.isMergeableObject(e)&&Be(e).forEach((function(t){o[t]=Ne(e[t],n)})),Be(t).forEach((function(a){(function(e,t){return Ge(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Ge(e,a)&&n.isMergeableObject(t[a])?o[a]=function(e,t){if(!t.customMerge)return Ue;var n=t.customMerge(e);return"function"==typeof n?n:Ue}(a,n)(e[a],t[a],n):o[a]=Ne(t[a],n))})),o}function Ue(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||We,n.isMergeableObject=n.isMergeableObject||_e,n.cloneUnlessOtherwiseSpecified=Ne;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):Ve(e,t,n):Ne(t,n)}Ue.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ue(e,n,t)}),{})};var qe=Ue;const Ye={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},Ke={default:Ye,light:Ye,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function Je(e,t,n,o){const[r,i]=l.useState((()=>u(e))),[s,d]=l.useState(""),c=l.useRef("");Le((()=>{i(u(e))}),[e]);const g=l.useCallback((e=>{var t,n,o;const{attributes:a}=e.target,l=null===(t=a.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;l&&(c.current=(null===(o=null===(n=r[w(r,l)])||void 0===n?void 0:n.id)||void 0===o?void 0:o.toString())||"",d(c.current))}),[r]),p=l.useCallback((e=>{var n;const{attributes:o}=e.target,a=null===(n=o.getNamedItem("data-column-id"))||void 0===n?void 0:n.value;if(a&&c.current&&a!==c.current){const e=w(r,c.current),n=w(r,a),o=[...r];o[e]=r[n],o[n]=r[e],i(o),t(o)}}),[t,r]),b=l.useCallback((e=>{e.preventDefault()}),[]),m=l.useCallback((e=>{e.preventDefault()}),[]),f=l.useCallback((e=>{e.preventDefault(),c.current="",d("")}),[]),h=function(e=!1){return e?a.ASC:a.DESC}(o),x=l.useMemo((()=>r[w(r,null==n?void 0:n.toString())]||{}),[n,r]);return{tableColumns:r,draggingColumnId:s,handleDragStart:g,handleDragEnter:p,handleDragOver:b,handleDragLeave:m,handleDragEnd:f,defaultSortDirection:h,defaultSortColumn:x}}var Qe=l.memo((function(e){const{data:n=De.data,columns:o=De.columns,title:r=De.title,actions:i=De.actions,keyField:c=De.keyField,striped:g=De.striped,highlightOnHover:u=De.highlightOnHover,pointerOnHover:m=De.pointerOnHover,dense:f=De.dense,selectableRows:w=De.selectableRows,selectableRowsSingle:x=De.selectableRowsSingle,selectableRowsHighlight:y=De.selectableRowsHighlight,selectableRowsNoSelectAll:R=De.selectableRowsNoSelectAll,selectableRowsVisibleOnly:O=De.selectableRowsVisibleOnly,selectableRowSelected:P=De.selectableRowSelected,selectableRowDisabled:k=De.selectableRowDisabled,selectableRowsComponent:D=De.selectableRowsComponent,selectableRowsComponentProps:$=De.selectableRowsComponentProps,onRowExpandToggled:j=De.onRowExpandToggled,onSelectedRowsChange:F=De.onSelectedRowsChange,expandableIcon:T=De.expandableIcon,onChangeRowsPerPage:I=De.onChangeRowsPerPage,onChangePage:M=De.onChangePage,paginationServer:A=De.paginationServer,paginationServerOptions:L=De.paginationServerOptions,paginationTotalRows:_=De.paginationTotalRows,paginationDefaultPage:z=De.paginationDefaultPage,paginationResetDefaultPage:N=De.paginationResetDefaultPage,paginationPerPage:W=De.paginationPerPage,paginationRowsPerPageOptions:B=De.paginationRowsPerPageOptions,paginationIconLastPage:G=De.paginationIconLastPage,paginationIconFirstPage:V=De.paginationIconFirstPage,paginationIconNext:U=De.paginationIconNext,paginationIconPrevious:q=De.paginationIconPrevious,paginationComponent:Y=De.paginationComponent,paginationComponentOptions:K=De.paginationComponentOptions,responsive:Q=De.responsive,progressPending:X=De.progressPending,progressComponent:Z=De.progressComponent,persistTableHead:ee=De.persistTableHead,noDataComponent:te=De.noDataComponent,disabled:ne=De.disabled,noTableHead:ae=De.noTableHead,noHeader:re=De.noHeader,fixedHeader:ie=De.fixedHeader,fixedHeaderScrollHeight:se=De.fixedHeaderScrollHeight,pagination:de=De.pagination,subHeader:ce=De.subHeader,subHeaderAlign:ge=De.subHeaderAlign,subHeaderWrap:ue=De.subHeaderWrap,subHeaderComponent:pe=De.subHeaderComponent,noContextMenu:me=De.noContextMenu,contextMessage:fe=De.contextMessage,contextActions:he=De.contextActions,contextComponent:Ee=De.contextComponent,expandableRows:Oe=De.expandableRows,onRowClicked:Pe=De.onRowClicked,onRowDoubleClicked:ke=De.onRowDoubleClicked,onRowMouseEnter:He=De.onRowMouseEnter,onRowMouseLeave:$e=De.onRowMouseLeave,sortIcon:je=De.sortIcon,onSort:Fe=De.onSort,sortFunction:Te=De.sortFunction,sortServer:Ie=De.sortServer,expandableRowsComponent:Me=De.expandableRowsComponent,expandableRowsComponentProps:_e=De.expandableRowsComponentProps,expandableRowDisabled:ze=De.expandableRowDisabled,expandableRowsHideExpander:Ne=De.expandableRowsHideExpander,expandOnRowClicked:We=De.expandOnRowClicked,expandOnRowDoubleClicked:Be=De.expandOnRowDoubleClicked,expandableRowExpanded:Ge=De.expandableRowExpanded,expandableInheritConditionalStyles:Ve=De.expandableInheritConditionalStyles,defaultSortFieldId:Ue=De.defaultSortFieldId,defaultSortAsc:Ye=De.defaultSortAsc,clearSelectedRows:Qe=De.clearSelectedRows,conditionalRowStyles:Xe=De.conditionalRowStyles,theme:Ze=De.theme,customStyles:et=De.customStyles,direction:tt=De.direction,onColumnOrderChange:nt=De.onColumnOrderChange,className:ot}=e,{tableColumns:at,draggingColumnId:lt,handleDragStart:rt,handleDragEnter:it,handleDragOver:st,handleDragLeave:dt,handleDragEnd:ct,defaultSortDirection:gt,defaultSortColumn:ut}=Je(o,nt,Ue,Ye),[{rowsPerPage:pt,currentPage:bt,selectedRows:mt,allSelected:ft,selectedCount:ht,selectedColumn:wt,sortDirection:xt,toggleOnSelectedRowsChange:Ct},yt]=l.useReducer(C,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:ut,toggleOnSelectedRowsChange:!1,sortDirection:gt,currentPage:z,rowsPerPage:W,selectedRowsFlag:!1,contextMessage:De.contextMessage}),{persistSelectedOnSort:vt=!1,persistSelectedOnPageChange:Rt=!1}=L,St=!(!A||!Rt&&!vt),Et=de&&!X&&n.length>0,Ot=Y||Ae,Pt=l.useMemo((()=>((e={},t="default",n="default")=>{const o=Ke[t]?t:n;return qe({table:{style:{color:(a=Ke[o]).text.primary,backgroundColor:a.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:a.text.primary,backgroundColor:a.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:a.background.default,minHeight:"52px"}},head:{style:{color:a.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:a.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:a.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:a.context.background,fontSize:"18px",fontWeight:400,color:a.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:a.text.primary,backgroundColor:a.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:a.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:a.selected.text,backgroundColor:a.selected.default,borderBottomColor:a.background.default}},highlightOnHoverStyle:{color:a.highlightOnHover.text,backgroundColor:a.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:a.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:a.background.default},stripedStyle:{color:a.striped.text,backgroundColor:a.striped.default}},expanderRow:{style:{color:a.text.primary,backgroundColor:a.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:a.button.default,fill:a.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:a.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:a.button.hover},"&:focus":{outline:"none",backgroundColor:a.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:a.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:a.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:a.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:a.button.default,fill:a.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:a.button.disabled,fill:a.button.disabled},"&:hover:not(:disabled)":{backgroundColor:a.button.hover},"&:focus":{outline:"none",backgroundColor:a.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:a.text.primary,backgroundColor:a.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:a.text.primary,backgroundColor:a.background.default}}},e);var a})(et,Ze)),[et,Ze]),kt=l.useMemo((()=>Object.assign({},"auto"!==tt&&{dir:tt})),[tt]),Dt=l.useMemo((()=>{if(Ie)return n;if((null==wt?void 0:wt.sortFunction)&&"function"==typeof wt.sortFunction){const e=wt.sortFunction,t=xt===a.ASC?e:(t,n)=>-1*e(t,n);return[...n].sort(t)}return function(e,t,n,o){return t?o&&"function"==typeof o?o(e.slice(0),t,n):e.slice(0).sort(((e,o)=>{let a,l;if("string"==typeof t?(a=d(e,t),l=d(o,t)):(a=t(e),l=t(o)),"asc"===n){if(a<l)return-1;if(a>l)return 1}if("desc"===n){if(a>l)return-1;if(a<l)return 1}return 0})):e}(n,null==wt?void 0:wt.selector,xt,Te)}),[Ie,wt,xt,n,Te]),Ht=l.useMemo((()=>{if(de&&!A){const e=bt*pt,t=e-pt;return Dt.slice(t,e)}return Dt}),[bt,de,A,pt,Dt]),$t=l.useCallback((e=>{yt(e)}),[]),jt=l.useCallback((e=>{yt(e)}),[]),Ft=l.useCallback((e=>{yt(e)}),[]),Tt=l.useCallback(((e,t)=>Pe(e,t)),[Pe]),It=l.useCallback(((e,t)=>ke(e,t)),[ke]),Mt=l.useCallback(((e,t)=>He(e,t)),[He]),At=l.useCallback(((e,t)=>$e(e,t)),[$e]),Lt=l.useCallback((e=>yt({type:"CHANGE_PAGE",page:e,paginationServer:A,visibleOnly:O,persistSelectedOnPageChange:Rt})),[A,Rt,O]),_t=l.useCallback((e=>{const t=p(_||Ht.length,e),n=b(bt,t);A||Lt(n),yt({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})}),[bt,Lt,A,_,Ht.length]);if(de&&!A&&Dt.length>0&&0===Ht.length){const e=p(Dt.length,pt),t=b(bt,e);Lt(t)}Le((()=>{F({allSelected:ft,selectedCount:ht,selectedRows:mt.slice(0)})}),[Ct]),Le((()=>{Fe(wt,xt,Dt.slice(0))}),[wt,xt]),Le((()=>{M(bt,_||Dt.length)}),[bt]),Le((()=>{I(pt,bt)}),[pt]),Le((()=>{Lt(z)}),[z,N]),Le((()=>{if(de&&A&&_>0){const e=p(_,pt),t=b(bt,e);bt!==t&&Lt(t)}}),[_]),l.useEffect((()=>{yt({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Qe})}),[x,Qe]),l.useEffect((()=>{if(!P)return;const e=Dt.filter((e=>P(e))),t=x?e.slice(0,1):e;yt({type:"SELECT_MULTIPLE_ROWS",keyField:c,selectedRows:t,totalRows:Dt.length,mergeSelections:St})}),[n,P]);const zt=O?Ht:Dt,Nt=Rt||x||R;return l.createElement(t.ThemeProvider,{theme:Pt},!re&&(!!r||!!i)&&l.createElement(be,{title:r,actions:i,showMenu:!me,selectedCount:ht,direction:tt,contextActions:he,contextComponent:Ee,contextMessage:fe}),ce&&l.createElement(we,{align:ge,wrapContent:ue},pe),l.createElement(Ce,Object.assign({responsive:Q,fixedHeader:ie,fixedHeaderScrollHeight:se,className:ot},kt),l.createElement(ve,null,X&&!ee&&l.createElement(ye,null,Z),l.createElement(v,{disabled:ne,className:"rdt_Table",role:"table"},!ae&&(!!ee||Dt.length>0&&!X)&&l.createElement(S,{className:"rdt_TableHead",role:"rowgroup",fixedHeader:ie},l.createElement(E,{className:"rdt_TableHeadRow",role:"row",dense:f},w&&(Nt?l.createElement(H,{style:{flex:"0 0 48px"}}):l.createElement(le,{allSelected:ft,selectedRows:mt,selectableRowsComponent:D,selectableRowsComponentProps:$,selectableRowDisabled:k,rowData:zt,keyField:c,mergeSelections:St,onSelectAllRows:jt})),Oe&&!Ne&&l.createElement(Re,null),at.map((e=>l.createElement(oe,{key:e.id,column:e,selectedColumn:wt,disabled:X||0===Dt.length,pagination:de,paginationServer:A,persistSelectedOnSort:vt,selectableRowsVisibleOnly:O,sortDirection:xt,sortIcon:je,sortServer:Ie,onSort:$t,onDragStart:rt,onDragOver:st,onDragEnd:ct,onDragEnter:it,onDragLeave:dt,draggingColumnId:lt}))))),!Dt.length&&!X&&l.createElement(Se,null,te),X&&ee&&l.createElement(ye,null,Z),!X&&Dt.length>0&&l.createElement(xe,{className:"rdt_TableBody",role:"rowgroup"},Ht.map(((e,t)=>{const n=s(e,c),o=function(e=""){return"number"!=typeof e&&(!e||0===e.length)}(n)?t:n,a=h(e,mt,c),r=!!(Oe&&Ge&&Ge(e)),i=!!(Oe&&ze&&ze(e));return l.createElement(J,{id:o,key:o,keyField:c,"data-row-id":o,columns:at,row:e,rowCount:Dt.length,rowIndex:t,selectableRows:w,expandableRows:Oe,expandableIcon:T,highlightOnHover:u,pointerOnHover:m,dense:f,expandOnRowClicked:We,expandOnRowDoubleClicked:Be,expandableRowsComponent:Me,expandableRowsComponentProps:_e,expandableRowsHideExpander:Ne,defaultExpanderDisabled:i,defaultExpanded:r,expandableInheritConditionalStyles:Ve,conditionalRowStyles:Xe,selected:a,selectableRowsHighlight:y,selectableRowsComponent:D,selectableRowsComponentProps:$,selectableRowDisabled:k,selectableRowsSingle:x,striped:g,onRowExpandToggled:j,onRowClicked:Tt,onRowDoubleClicked:It,onRowMouseEnter:Mt,onRowMouseLeave:At,onSelectedRow:Ft,draggingColumnId:lt,onDragStart:rt,onDragOver:st,onDragEnd:ct,onDragEnter:it,onDragLeave:dt})})))))),Et&&l.createElement("div",null,l.createElement(Ot,{onChangePage:Lt,onChangeRowsPerPage:_t,rowCount:_||Dt.length,currentPage:bt,rowsPerPage:pt,direction:tt,paginationRowsPerPageOptions:B,paginationIconLastPage:G,paginationIconFirstPage:V,paginationIconNext:U,paginationIconPrevious:q,paginationComponentOptions:K})))}));exports.STOP_PROP_TAG="allowRowEvents",exports.createTheme=function(e="default",t,n="default"){return Ke[e]||(Ke[e]=qe(Ke[n],t||{})),Ke[e]=qe(Ke[e],t||{}),Ke[e]},exports["default"]=Qe,exports.defaultThemes=Ke;
10117
- //# sourceMappingURL=index.cjs.js.map
10118
-
10119
-
10120
- /***/ }),
10121
-
10122
- /***/ "./node_modules/react-is/cjs/react-is.development.js":
10123
- /*!***********************************************************!*\
10124
- !*** ./node_modules/react-is/cjs/react-is.development.js ***!
10125
- \***********************************************************/
10126
- /***/ (function(__unused_webpack_module, exports) {
10127
-
10128
- "use strict";
10129
- /**
10130
- * @license React
10131
- * react-is.development.js
10132
- *
10133
- * Copyright (c) Facebook, Inc. and its affiliates.
10134
- *
10135
- * This source code is licensed under the MIT license found in the
10136
- * LICENSE file in the root directory of this source tree.
10137
- */
10138
-
10139
-
10140
-
10141
- if (true) {
10142
- (function() {
10143
- 'use strict';
10144
-
10145
- // ATTENTION
10146
- // When adding new symbols to this file,
10147
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
10148
- // The Symbol used to tag the ReactElement-like types.
10149
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
10150
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
10151
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
10152
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
10153
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
10154
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
10155
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
10156
- var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
10157
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
10158
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
10159
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
10160
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
10161
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
10162
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
10163
-
10164
- // -----------------------------------------------------------------------------
10165
-
10166
- var enableScopeAPI = false; // Experimental Create Event Handle API.
10167
- var enableCacheElement = false;
10168
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
10169
-
10170
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
10171
- // stuff. Intended to enable React core members to more easily debug scheduling
10172
- // issues in DEV builds.
10173
-
10174
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
10175
-
10176
- var REACT_MODULE_REFERENCE;
10177
-
10178
- {
10179
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
10180
- }
10181
-
10182
- function isValidElementType(type) {
10183
- if (typeof type === 'string' || typeof type === 'function') {
10184
- return true;
10185
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
10186
-
10187
-
10188
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
10189
- return true;
10190
- }
10191
-
10192
- if (typeof type === 'object' && type !== null) {
10193
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
10194
- // types supported by any Flight configuration anywhere since
10195
- // we don't know which Flight build this will end up being used
10196
- // with.
10197
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
10198
- return true;
10199
- }
10200
- }
10201
-
10202
- return false;
10203
- }
10204
-
10205
- function typeOf(object) {
10206
- if (typeof object === 'object' && object !== null) {
10207
- var $$typeof = object.$$typeof;
10208
-
10209
- switch ($$typeof) {
10210
- case REACT_ELEMENT_TYPE:
10211
- var type = object.type;
10212
-
10213
- switch (type) {
10214
- case REACT_FRAGMENT_TYPE:
10215
- case REACT_PROFILER_TYPE:
10216
- case REACT_STRICT_MODE_TYPE:
10217
- case REACT_SUSPENSE_TYPE:
10218
- case REACT_SUSPENSE_LIST_TYPE:
10219
- return type;
10220
-
10221
- default:
10222
- var $$typeofType = type && type.$$typeof;
10223
-
10224
- switch ($$typeofType) {
10225
- case REACT_SERVER_CONTEXT_TYPE:
10226
- case REACT_CONTEXT_TYPE:
10227
- case REACT_FORWARD_REF_TYPE:
10228
- case REACT_LAZY_TYPE:
10229
- case REACT_MEMO_TYPE:
10230
- case REACT_PROVIDER_TYPE:
10231
- return $$typeofType;
10232
-
10233
- default:
10234
- return $$typeof;
10235
- }
10236
-
10237
- }
10238
-
10239
- case REACT_PORTAL_TYPE:
10240
- return $$typeof;
10241
- }
10242
- }
10243
-
10244
- return undefined;
10245
- }
10246
- var ContextConsumer = REACT_CONTEXT_TYPE;
10247
- var ContextProvider = REACT_PROVIDER_TYPE;
10248
- var Element = REACT_ELEMENT_TYPE;
10249
- var ForwardRef = REACT_FORWARD_REF_TYPE;
10250
- var Fragment = REACT_FRAGMENT_TYPE;
10251
- var Lazy = REACT_LAZY_TYPE;
10252
- var Memo = REACT_MEMO_TYPE;
10253
- var Portal = REACT_PORTAL_TYPE;
10254
- var Profiler = REACT_PROFILER_TYPE;
10255
- var StrictMode = REACT_STRICT_MODE_TYPE;
10256
- var Suspense = REACT_SUSPENSE_TYPE;
10257
- var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
10258
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
10259
- var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
10260
-
10261
- function isAsyncMode(object) {
10262
- {
10263
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
10264
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
10265
-
10266
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
10267
- }
10268
- }
10269
-
10270
- return false;
10271
- }
10272
- function isConcurrentMode(object) {
10273
- {
10274
- if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
10275
- hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
10276
-
10277
- console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
10278
- }
10279
- }
10280
-
10281
- return false;
10282
- }
10283
- function isContextConsumer(object) {
10284
- return typeOf(object) === REACT_CONTEXT_TYPE;
10285
- }
10286
- function isContextProvider(object) {
10287
- return typeOf(object) === REACT_PROVIDER_TYPE;
10288
- }
10289
- function isElement(object) {
10290
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
10291
- }
10292
- function isForwardRef(object) {
10293
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
10294
- }
10295
- function isFragment(object) {
10296
- return typeOf(object) === REACT_FRAGMENT_TYPE;
10297
- }
10298
- function isLazy(object) {
10299
- return typeOf(object) === REACT_LAZY_TYPE;
10300
- }
10301
- function isMemo(object) {
10302
- return typeOf(object) === REACT_MEMO_TYPE;
10303
- }
10304
- function isPortal(object) {
10305
- return typeOf(object) === REACT_PORTAL_TYPE;
10306
- }
10307
- function isProfiler(object) {
10308
- return typeOf(object) === REACT_PROFILER_TYPE;
10309
- }
10310
- function isStrictMode(object) {
10311
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
10312
- }
10313
- function isSuspense(object) {
10314
- return typeOf(object) === REACT_SUSPENSE_TYPE;
10315
- }
10316
- function isSuspenseList(object) {
10317
- return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
10318
- }
10319
-
10320
- exports.ContextConsumer = ContextConsumer;
10321
- exports.ContextProvider = ContextProvider;
10322
- exports.Element = Element;
10323
- exports.ForwardRef = ForwardRef;
10324
- exports.Fragment = Fragment;
10325
- exports.Lazy = Lazy;
10326
- exports.Memo = Memo;
10327
- exports.Portal = Portal;
10328
- exports.Profiler = Profiler;
10329
- exports.StrictMode = StrictMode;
10330
- exports.Suspense = Suspense;
10331
- exports.SuspenseList = SuspenseList;
10332
- exports.isAsyncMode = isAsyncMode;
10333
- exports.isConcurrentMode = isConcurrentMode;
10334
- exports.isContextConsumer = isContextConsumer;
10335
- exports.isContextProvider = isContextProvider;
10336
- exports.isElement = isElement;
10337
- exports.isForwardRef = isForwardRef;
10338
- exports.isFragment = isFragment;
10339
- exports.isLazy = isLazy;
10340
- exports.isMemo = isMemo;
10341
- exports.isPortal = isPortal;
10342
- exports.isProfiler = isProfiler;
10343
- exports.isStrictMode = isStrictMode;
10344
- exports.isSuspense = isSuspense;
10345
- exports.isSuspenseList = isSuspenseList;
10346
- exports.isValidElementType = isValidElementType;
10347
- exports.typeOf = typeOf;
10348
- })();
10349
- }
10350
-
10351
-
10352
- /***/ }),
10353
-
10354
- /***/ "./node_modules/react-is/index.js":
10355
- /*!****************************************!*\
10356
- !*** ./node_modules/react-is/index.js ***!
10357
- \****************************************/
10358
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
10359
-
10360
- "use strict";
10361
-
10362
-
10363
- if (false) {} else {
10364
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
10365
- }
10366
-
10367
-
10368
- /***/ }),
10369
-
10370
- /***/ "./node_modules/react-use/esm/useFirstMountState.js":
10371
- /*!**********************************************************!*\
10372
- !*** ./node_modules/react-use/esm/useFirstMountState.js ***!
10373
- \**********************************************************/
10374
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10375
-
10376
- "use strict";
10377
- __webpack_require__.r(__webpack_exports__);
10378
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10379
- /* harmony export */ "useFirstMountState": function() { return /* binding */ useFirstMountState; }
10380
- /* harmony export */ });
10381
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10382
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10383
-
10384
- function useFirstMountState() {
10385
- var isFirst = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true);
10386
- if (isFirst.current) {
10387
- isFirst.current = false;
10388
- return true;
10389
- }
10390
- return isFirst.current;
10391
- }
10392
-
10393
-
10394
- /***/ }),
10395
-
10396
- /***/ "./node_modules/react-use/esm/useUpdateEffect.js":
10397
- /*!*******************************************************!*\
10398
- !*** ./node_modules/react-use/esm/useUpdateEffect.js ***!
10399
- \*******************************************************/
10400
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10401
-
10402
- "use strict";
10403
- __webpack_require__.r(__webpack_exports__);
10404
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10405
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10406
- /* harmony import */ var _useFirstMountState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useFirstMountState */ "./node_modules/react-use/esm/useFirstMountState.js");
10407
-
10408
-
10409
- var useUpdateEffect = function (effect, deps) {
10410
- var isFirstMount = (0,_useFirstMountState__WEBPACK_IMPORTED_MODULE_1__.useFirstMountState)();
10411
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
10412
- if (!isFirstMount) {
10413
- return effect();
10414
- }
10415
- }, deps);
10416
- };
10417
- /* harmony default export */ __webpack_exports__["default"] = (useUpdateEffect);
10418
-
10419
-
10420
- /***/ }),
10421
-
10422
- /***/ "./node_modules/shallowequal/index.js":
10423
- /*!********************************************!*\
10424
- !*** ./node_modules/shallowequal/index.js ***!
10425
- \********************************************/
10426
- /***/ (function(module) {
10427
-
10428
- //
10429
-
10430
- module.exports = function shallowEqual(objA, objB, compare, compareContext) {
10431
- var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
10432
-
10433
- if (ret !== void 0) {
10434
- return !!ret;
10435
- }
10436
-
10437
- if (objA === objB) {
10438
- return true;
10439
- }
10440
-
10441
- if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
10442
- return false;
10443
- }
10444
-
10445
- var keysA = Object.keys(objA);
10446
- var keysB = Object.keys(objB);
10447
-
10448
- if (keysA.length !== keysB.length) {
10449
- return false;
10450
- }
10451
-
10452
- var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
10453
-
10454
- // Test for A's keys different from B.
10455
- for (var idx = 0; idx < keysA.length; idx++) {
10456
- var key = keysA[idx];
10457
-
10458
- if (!bHasOwnProperty(key)) {
10459
- return false;
10460
- }
10461
-
10462
- var valueA = objA[key];
10463
- var valueB = objB[key];
10464
-
10465
- ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
10466
-
10467
- if (ret === false || (ret === void 0 && valueA !== valueB)) {
10468
- return false;
10469
- }
10470
- }
10471
-
10472
- return true;
10473
- };
10474
-
10475
-
10476
- /***/ }),
10477
-
10478
- /***/ "./node_modules/styled-components/dist/styled-components.browser.esm.js":
10479
- /*!******************************************************************************!*\
10480
- !*** ./node_modules/styled-components/dist/styled-components.browser.esm.js ***!
10481
- \******************************************************************************/
10482
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10483
-
10484
- "use strict";
10485
- __webpack_require__.r(__webpack_exports__);
10486
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10487
- /* harmony export */ "ServerStyleSheet": function() { return /* binding */ Je; },
10488
- /* harmony export */ "StyleSheetConsumer": function() { return /* binding */ le; },
10489
- /* harmony export */ "StyleSheetContext": function() { return /* binding */ ue; },
10490
- /* harmony export */ "StyleSheetManager": function() { return /* binding */ ye; },
10491
- /* harmony export */ "ThemeConsumer": function() { return /* binding */ Le; },
10492
- /* harmony export */ "ThemeContext": function() { return /* binding */ Ge; },
10493
- /* harmony export */ "ThemeProvider": function() { return /* binding */ Fe; },
10494
- /* harmony export */ "__PRIVATE__": function() { return /* binding */ Ke; },
10495
- /* harmony export */ "createGlobalStyle": function() { return /* binding */ We; },
10496
- /* harmony export */ "css": function() { return /* binding */ Ce; },
10497
- /* harmony export */ "isStyledComponent": function() { return /* binding */ N; },
10498
- /* harmony export */ "keyframes": function() { return /* binding */ Ue; },
10499
- /* harmony export */ "useTheme": function() { return /* binding */ Ze; },
10500
- /* harmony export */ "version": function() { return /* binding */ C; },
10501
- /* harmony export */ "withTheme": function() { return /* binding */ Xe; }
10502
- /* harmony export */ });
10503
- /* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
10504
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
10505
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
10506
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
10507
- /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_2__);
10508
- /* harmony import */ var _emotion_stylis__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/stylis */ "./node_modules/@emotion/stylis/dist/stylis.browser.esm.js");
10509
- /* harmony import */ var _emotion_unitless__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/unitless */ "./node_modules/styled-components/node_modules/@emotion/unitless/dist/unitless.browser.esm.js");
10510
- /* harmony import */ var _emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @emotion/is-prop-valid */ "./node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js");
10511
- /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
10512
- /* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6__);
10513
- function v(){return(v=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)}var g=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},S=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!(0,react_is__WEBPACK_IMPORTED_MODULE_0__.typeOf)(t)},w=Object.freeze([]),E=Object.freeze({});function b(e){return"function"==typeof e}function _(e){return true&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function N(e){return e&&"string"==typeof e.styledComponentId}var A="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="5.3.6",I="undefined"!=typeof window&&"HTMLElement"in window,P=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!=="development"),O={},R= true?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:0;function D(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t)})),e}function j(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw false?0:new Error(D.apply(void 0,[R[e]].concat(n)).trim())}var T=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&j(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),x=new Map,k=new Map,V=1,B=function(e){if(x.has(e))return x.get(e);for(;k.has(V);)V++;var t=V++;return true&&((0|t)<0||t>1<<30)&&j(16,""+t),x.set(e,t),k.set(t,e),t},z=function(e){return k.get(e)},M=function(e,t){t>=V&&(V=t+1),x.set(e,t),k.set(t,e)},G="style["+A+'][data-styled-version="5.3.6"]',L=new RegExp("^"+A+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},Y=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(L);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(M(u,c),F(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},q=function(){return true?__webpack_require__.nc:0},H=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(A))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(A,"active"),r.setAttribute("data-styled-version","5.3.6");var i=q();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},$=function(){function e(e){var t=this.element=H(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}j(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),W=function(){function e(e){var t=this.element=H(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),U=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),J=I,X={isServer:!I,useCSSOMInjection:!P},Z=function(){function e(e,t,n){void 0===e&&(e=E),void 0===t&&(t={}),this.options=v({},X,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&I&&J&&(J=!1,function(e){for(var t=document.querySelectorAll(G),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(A)&&(Y(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return B(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(v({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new U(o):r?new $(o):new W(o),new T(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(B(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(B(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(B(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=A+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),K=/(a)(d)/gi,Q=function(e){return String.fromCharCode(e+(e>25?39:97))};function ee(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Q(t%52)+n;return(Q(t%52)+n).replace(K,"$1-$2")}var te=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ne=function(e){return te(5381,e)};function re(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(b(n)&&!N(n))return!1}return!0}var oe=ne("5.3.6"),se=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic= false&&0,this.componentId=t,this.baseHash=te(oe,t),this.baseStyle=n,Z.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var s=Ne(this.rules,e,t,n).join(""),i=ee(te(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,u=te(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h, true&&(u=te(u,h+d));else if(h){var p=Ne(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=te(u,f+d),l+=f}}if(l){var m=ee(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y)}o.push(m)}}return o.join(" ")},e}(),ie=/^\s*\/\/.*$/gm,ae=[":","[",".","#"];function ce(e){var t,n,r,o,s=void 0===e?E:e,i=s.options,a=void 0===i?E:i,c=s.plugins,u=void 0===c?w:c,l=new _emotion_stylis__WEBPACK_IMPORTED_MODULE_3__["default"](a),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,s){return 0===r&&-1!==ae.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(ie,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||j(15),te(e,t.name)}),5381).toString():"",m}var ue=react__WEBPACK_IMPORTED_MODULE_1___default().createContext(),le=ue.Consumer,de=react__WEBPACK_IMPORTED_MODULE_1___default().createContext(),he=(de.Consumer,new Z),pe=ce();function fe(){return (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(ue)||he}function me(){return (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(de)||pe}function ye(e){var t=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(e.stylisPlugins),n=t[0],s=t[1],c=fe(),u=(0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((function(){return ce({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){shallowequal__WEBPACK_IMPORTED_MODULE_2___default()(n,e.stylisPlugins)||s(e.stylisPlugins)}),[e.stylisPlugins]),react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ue.Provider,{value:u},react__WEBPACK_IMPORTED_MODULE_1___default().createElement(de.Provider,{value:l}, true?react__WEBPACK_IMPORTED_MODULE_1___default().Children.only(e.children):0))}var ve=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=pe);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return j(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=pe),this.name+e.hash},e}(),ge=/([A-Z])/,Se=/([A-Z])/g,we=/^ms-/,Ee=function(e){return"-"+e.toLowerCase()};function be(e){return ge.test(e)?e.replace(Se,Ee).replace(we,"-ms-"):e}var _e=function(e){return null==e||!1===e||""===e};function Ne(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=Ne(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(_e(e))return"";if(N(e))return"."+e.styledComponentId;if(b(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return true&&(0,react_is__WEBPACK_IMPORTED_MODULE_0__.isElement)(u)&&console.warn(_(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Ne(u,n,r,o)}var l;return e instanceof ve?r?(e.inject(r,o),e.getName(o)):e:S(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!_e(t[i])&&(Array.isArray(t[i])&&t[i].isCss||b(t[i])?s.push(be(i)+":",t[i],";"):S(t[i])?s.push.apply(s,e(t[i],i)):s.push(be(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in _emotion_unitless__WEBPACK_IMPORTED_MODULE_4__["default"]?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ae=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return b(e)||S(e)?Ae(Ne(g(w,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ae(Ne(g(e,n)))}var Ie=/invalid hook call/i,Pe=new Set,Oe=function(e,t){if(true){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var o=!0;console.error=function(e){if(Ie.test(e))o=!1,Pe.delete(n);else{for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r.apply(void 0,[e].concat(s))}},(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(),o&&!Pe.has(n)&&(console.warn(n),Pe.add(n))}catch(e){Ie.test(e.message)&&Pe.delete(n)}finally{console.error=r}}},Re=function(e,t,n){return void 0===n&&(n=E),e.theme!==n.theme&&e.theme||t||n.theme},De=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,je=/(^-|-$)/g;function Te(e){return e.replace(De,"-").replace(je,"")}var xe=function(e){return ee(ne(e)>>>0)};function ke(e){return"string"==typeof e&&( false||e.charAt(0)===e.charAt(0).toLowerCase())}var Ve=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Be=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];Ve(t)&&Ve(r)?Me(r,t):e[n]=t}function Me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(Ve(i))for(var a in i)Be(a)&&ze(e,i[a],a)}return e}var Ge=react__WEBPACK_IMPORTED_MODULE_1___default().createContext(),Le=Ge.Consumer;function Fe(e){var t=(0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(Ge),n=(0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)((function(){return function(e,t){if(!e)return j(14);if(b(e)){var n=e(t);return false||null!==n&&!Array.isArray(n)&&"object"==typeof n?n:j(7)}return Array.isArray(e)||"object"!=typeof e?j(8):t?v({},t,{},e):e}(e.theme,t)}),[e.theme,t]);return e.children?react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Ge.Provider,{value:n},e.children):null}var Ye={};function qe(e,t,n){var o=N(e),i=!ke(e),a=t.attrs,c=void 0===a?w:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":Te(e);Ye[n]=(Ye[n]||0)+1;var r=n+"-"+xe("5.3.6"+n+Ye[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,f=void 0===p?function(e){return ke(e)?"styled."+e:"Styled("+_(e)+")"}(e):p,g=t.displayName&&t.componentId?Te(t.displayName)+"-"+t.componentId:t.componentId||h,S=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new se(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target; true&&(0,react__WEBPACK_IMPORTED_MODULE_1__.useDebugValue)(h);var f=function(e,t,n){void 0===e&&(e=E);var r=v({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in b(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t]})),[r,o]}(Re(t,(0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(Ge),a)||E,t,o),y=f[0],g=f[1],S=function(e,t,n,r){var o=fe(),s=me(),i=t?e.generateAndInjectStyles(E,o,s):e.generateAndInjectStyles(n,o,s);return true&&(0,react__WEBPACK_IMPORTED_MODULE_1__.useDebugValue)(i), true&&!t&&r&&r(i),i}(i,r,y, true?e.warnTooManyClasses:0),w=n,_=g.$as||t.$as||g.as||t.as||p,N=ke(_),A=g!==t?v({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,_emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_5__["default"],_):!N||(0,_emotion_is_prop_valid__WEBPACK_IMPORTED_MODULE_5__["default"])(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=v({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=w,(0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(_,C)}(C,e,t,P)};return O.displayName=f,(C=react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(O)).attrs=S,C.componentStyle=I,C.displayName=f,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):w,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(ke(e)?e:Te(_(e)));return qe(e,v({},o,{attrs:S,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Me({},e.defaultProps,t):t}}), true&&(Oe(f,g),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(f,g)),C.toString=function(){return"."+C.styledComponentId},i&&hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default()(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var He=function(e){return function e(t,r,o){if(void 0===o&&(o=E),!(0,react_is__WEBPACK_IMPORTED_MODULE_0__.isValidElementType)(r))return j(1,String(r));var s=function(){return t(r,o,Ce.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,v({},o,{},n))},s.attrs=function(n){return e(t,r,v({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(qe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){He[e]=He(e)}));var $e=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=re(e),Z.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(Ne(this.rules,t,n,r).join(""),""),s=this.componentId+e;n.insertRules(s,s,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Z.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function We(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=Ce.apply(void 0,[e].concat(n)),a="sc-global-"+xe(JSON.stringify(i)),u=new $e(i,a);function l(e){var t=fe(),n=me(),o=(0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(Ge),l=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(t.allocateGSInstance(a)).current;return true&&react__WEBPACK_IMPORTED_MODULE_1___default().Children.count(e.children)&&console.warn("The global style component "+a+" was given child JSX. createGlobalStyle does not render children."), true&&i.some((function(e){return"string"==typeof e&&-1!==e.indexOf("@import")}))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.server&&h(l,e,t,o,n),(0,react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)((function(){if(!t.server)return h(l,e,t,o,n),function(){return u.removeStyles(l,t)}}),[l,e,t,o,n]),null}function h(e,t,n,r,o){if(u.isStatic)u.renderStyles(e,O,n,o);else{var s=v({},t,{theme:Re(t,r,l.defaultProps)});u.renderStyles(e,s,n,o)}}return true&&Oe(a),react__WEBPACK_IMPORTED_MODULE_1___default().memo(l)}function Ue(e){ true&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Ce.apply(void 0,[e].concat(n)).join(""),s=xe(o);return new ve(s,o)}var Je=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=q();return"<style "+[n&&'nonce="'+n+'"',A+'="true"','data-styled-version="5.3.6"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?j(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return j(2);var n=((t={})[A]="",t["data-styled-version"]="5.3.6",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=q();return o&&(n.nonce=o),[react__WEBPACK_IMPORTED_MODULE_1___default().createElement("style",v({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Z({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?j(2):react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ye,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return j(3)},e}(),Xe=function(e){var t=react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef((function(t,n){var o=(0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(Ge),i=e.defaultProps,a=Re(t,o,i);return true&&void 0===a&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'+_(e)+'"'),react__WEBPACK_IMPORTED_MODULE_1___default().createElement(e,v({},t,{theme:a,ref:n}))}));return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_6___default()(t,e),t.displayName="WithTheme("+_(e)+")",t},Ze=function(){return (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(Ge)},Ke={StyleSheet:Z,masterSheet:he}; true&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"), true&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);/* harmony default export */ __webpack_exports__["default"] = (He);
10514
- //# sourceMappingURL=styled-components.browser.esm.js.map
10515
-
10516
-
10517
- /***/ }),
10518
-
10519
- /***/ "./node_modules/styled-components/node_modules/@emotion/unitless/dist/unitless.browser.esm.js":
10520
- /*!****************************************************************************************************!*\
10521
- !*** ./node_modules/styled-components/node_modules/@emotion/unitless/dist/unitless.browser.esm.js ***!
10522
- \****************************************************************************************************/
10523
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10524
-
10525
- "use strict";
10526
- __webpack_require__.r(__webpack_exports__);
10527
- var unitlessKeys = {
10528
- animationIterationCount: 1,
10529
- borderImageOutset: 1,
10530
- borderImageSlice: 1,
10531
- borderImageWidth: 1,
10532
- boxFlex: 1,
10533
- boxFlexGroup: 1,
10534
- boxOrdinalGroup: 1,
10535
- columnCount: 1,
10536
- columns: 1,
10537
- flex: 1,
10538
- flexGrow: 1,
10539
- flexPositive: 1,
10540
- flexShrink: 1,
10541
- flexNegative: 1,
10542
- flexOrder: 1,
10543
- gridRow: 1,
10544
- gridRowEnd: 1,
10545
- gridRowSpan: 1,
10546
- gridRowStart: 1,
10547
- gridColumn: 1,
10548
- gridColumnEnd: 1,
10549
- gridColumnSpan: 1,
10550
- gridColumnStart: 1,
10551
- msGridRow: 1,
10552
- msGridRowSpan: 1,
10553
- msGridColumn: 1,
10554
- msGridColumnSpan: 1,
10555
- fontWeight: 1,
10556
- lineHeight: 1,
10557
- opacity: 1,
10558
- order: 1,
10559
- orphans: 1,
10560
- tabSize: 1,
10561
- widows: 1,
10562
- zIndex: 1,
10563
- zoom: 1,
10564
- WebkitLineClamp: 1,
10565
- // SVG-related properties
10566
- fillOpacity: 1,
10567
- floodOpacity: 1,
10568
- stopOpacity: 1,
10569
- strokeDasharray: 1,
10570
- strokeDashoffset: 1,
10571
- strokeMiterlimit: 1,
10572
- strokeOpacity: 1,
10573
- strokeWidth: 1
10574
- };
10575
-
10576
- /* harmony default export */ __webpack_exports__["default"] = (unitlessKeys);
10577
-
10578
-
10579
- /***/ }),
10580
-
10581
- /***/ "react":
10582
- /*!************************!*\
10583
- !*** external "React" ***!
10584
- \************************/
10585
- /***/ (function(module) {
10586
-
10587
- "use strict";
10588
- module.exports = window["React"];
10589
-
10590
- /***/ }),
10591
-
10592
- /***/ "@wordpress/components":
10593
- /*!************************************!*\
10594
- !*** external ["wp","components"] ***!
10595
- \************************************/
10596
- /***/ (function(module) {
10597
-
10598
- "use strict";
10599
- module.exports = window["wp"]["components"];
10600
-
10601
- /***/ }),
10602
-
10603
- /***/ "@wordpress/data":
10604
- /*!******************************!*\
10605
- !*** external ["wp","data"] ***!
10606
- \******************************/
10607
- /***/ (function(module) {
10608
-
10609
- "use strict";
10610
- module.exports = window["wp"]["data"];
10611
-
10612
- /***/ }),
10613
-
10614
- /***/ "@wordpress/element":
10615
- /*!*********************************!*\
10616
- !*** external ["wp","element"] ***!
10617
- \*********************************/
10618
- /***/ (function(module) {
10619
-
10620
- "use strict";
10621
- module.exports = window["wp"]["element"];
10622
-
10623
- /***/ }),
10624
-
10625
- /***/ "@wordpress/i18n":
10626
- /*!******************************!*\
10627
- !*** external ["wp","i18n"] ***!
10628
- \******************************/
10629
- /***/ (function(module) {
10630
-
10631
- "use strict";
10632
- module.exports = window["wp"]["i18n"];
10633
-
10634
- /***/ }),
10635
-
10636
- /***/ "@wordpress/notices":
10637
- /*!*********************************!*\
10638
- !*** external ["wp","notices"] ***!
10639
- \*********************************/
10640
- /***/ (function(module) {
10641
-
10642
- "use strict";
10643
- module.exports = window["wp"]["notices"];
10644
-
10645
- /***/ })
10646
-
10647
- /******/ });
10648
- /************************************************************************/
10649
- /******/ // The module cache
10650
- /******/ var __webpack_module_cache__ = {};
10651
- /******/
10652
- /******/ // The require function
10653
- /******/ function __webpack_require__(moduleId) {
10654
- /******/ // Check if module is in cache
10655
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
10656
- /******/ if (cachedModule !== undefined) {
10657
- /******/ return cachedModule.exports;
10658
- /******/ }
10659
- /******/ // Create a new module (and put it into the cache)
10660
- /******/ var module = __webpack_module_cache__[moduleId] = {
10661
- /******/ // no module.id needed
10662
- /******/ // no module.loaded needed
10663
- /******/ exports: {}
10664
- /******/ };
10665
- /******/
10666
- /******/ // Execute the module function
10667
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
10668
- /******/
10669
- /******/ // Return the exports of the module
10670
- /******/ return module.exports;
10671
- /******/ }
10672
- /******/
10673
- /************************************************************************/
10674
- /******/ /* webpack/runtime/compat get default export */
10675
- /******/ !function() {
10676
- /******/ // getDefaultExport function for compatibility with non-harmony modules
10677
- /******/ __webpack_require__.n = function(module) {
10678
- /******/ var getter = module && module.__esModule ?
10679
- /******/ function() { return module['default']; } :
10680
- /******/ function() { return module; };
10681
- /******/ __webpack_require__.d(getter, { a: getter });
10682
- /******/ return getter;
10683
- /******/ };
10684
- /******/ }();
10685
- /******/
10686
- /******/ /* webpack/runtime/define property getters */
10687
- /******/ !function() {
10688
- /******/ // define getter functions for harmony exports
10689
- /******/ __webpack_require__.d = function(exports, definition) {
10690
- /******/ for(var key in definition) {
10691
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
10692
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
10693
- /******/ }
10694
- /******/ }
10695
- /******/ };
10696
- /******/ }();
10697
- /******/
10698
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
10699
- /******/ !function() {
10700
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
10701
- /******/ }();
10702
- /******/
10703
- /******/ /* webpack/runtime/make namespace object */
10704
- /******/ !function() {
10705
- /******/ // define __esModule on exports
10706
- /******/ __webpack_require__.r = function(exports) {
10707
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
10708
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
10709
- /******/ }
10710
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
10711
- /******/ };
10712
- /******/ }();
10713
- /******/
10714
- /******/ /* webpack/runtime/nonce */
10715
- /******/ !function() {
10716
- /******/ __webpack_require__.nc = undefined;
10717
- /******/ }();
10718
- /******/
10719
- /************************************************************************/
10720
- var __webpack_exports__ = {};
10721
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
10722
- !function() {
10723
- "use strict";
10724
- /*!**********************!*\
10725
- !*** ./src/index.js ***!
10726
- \**********************/
10727
- __webpack_require__.r(__webpack_exports__);
10728
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
10729
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
10730
- /* harmony import */ var _Page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Page */ "./src/Page.js");
10731
-
10732
-
10733
-
10734
-
10735
- /**
10736
- * Initialize
10737
- */
10738
-
10739
- document.addEventListener('DOMContentLoaded', () => {
10740
- const container = document.getElementById('really-simple-ssl');
10741
- if (container) {
10742
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.render)((0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Page__WEBPACK_IMPORTED_MODULE_1__["default"], null)), container);
10743
- }
10744
- });
10745
-
10746
- /*
10747
- * Some oldschool stuff
10748
- */
10749
-
10750
- document.addEventListener('click', e => {
10751
- if (e.target.closest('#ssl-labs-check-button')) {
10752
- document.querySelector('.rsssl-ssllabs').classList.add('rsssl-block-highlight');
10753
- }
10754
- });
10755
- }();
10756
- /******/ })()
10757
- ;
10758
- //# sourceMappingURL=index.js.map
1
+ !function(){var e={669:function(e,t,s){e.exports=s(609)},448:function(e,t,s){"use strict";var n=s(867),r=s(26),a=s(372),l=s(327),i=s(97),o=s(109),c=s(985),d=s(61),u=s(655),p=s(263);e.exports=function(e){return new Promise((function(t,s){var h,m=e.data,g=e.headers,f=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}n.isFormData(m)&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(y+":"+w)}var E=i(e.baseURL,e.url);function C(){if(b){var n="getAllResponseHeaders"in b?o(b.getAllResponseHeaders()):null,a={data:f&&"text"!==f&&"json"!==f?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};r((function(e){t(e),v()}),(function(e){s(e),v()}),a),b=null}}if(b.open(e.method.toUpperCase(),l(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(C)},b.onabort=function(){b&&(s(d("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){s(d("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||u.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),s(d(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},n.isStandardBrowserEnv()){var _=(e.withCredentials||c(E))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;_&&(g[e.xsrfHeaderName]=_)}"setRequestHeader"in b&&n.forEach(g,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),f&&"json"!==f&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(s(!e||e&&e.type?new p("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null),b.send(m)}))}},609:function(e,t,s){"use strict";var n=s(867),r=s(849),a=s(321),l=s(185),i=function e(t){var s=new a(t),i=r(a.prototype.request,s);return n.extend(i,a.prototype,s),n.extend(i,s),i.create=function(s){return e(l(t,s))},i}(s(655));i.Axios=a,i.Cancel=s(263),i.CancelToken=s(972),i.isCancel=s(502),i.VERSION=s(288).version,i.all=function(e){return Promise.all(e)},i.spread=s(713),i.isAxiosError=s(268),e.exports=i,e.exports.default=i},263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:function(e,t,s){"use strict";var n=s(263);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var s=this;this.promise.then((function(e){if(s._listeners){var t,n=s._listeners.length;for(t=0;t<n;t++)s._listeners[t](e);s._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){s.subscribe(e),t=e})).then(e);return n.cancel=function(){s.unsubscribe(t)},n},e((function(e){s.reason||(s.reason=new n(e),t(s.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:function(e,t,s){"use strict";var n=s(867),r=s(327),a=s(782),l=s(572),i=s(185),o=s(875),c=o.validators;function d(e){this.defaults=e,this.interceptors={request:new a,response:new a}}d.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=i(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var s=t.transitional;void 0!==s&&o.assertOptions(s,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var a,d=[];if(this.interceptors.response.forEach((function(e){d.push(e.fulfilled,e.rejected)})),!r){var u=[l,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(d),a=Promise.resolve(t);u.length;)a=a.then(u.shift(),u.shift());return a}for(var p=t;n.length;){var h=n.shift(),m=n.shift();try{p=h(p)}catch(e){m(e);break}}try{a=l(p)}catch(e){return Promise.reject(e)}for(;d.length;)a=a.then(d.shift(),d.shift());return a},d.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=i(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,s){return this.request(i(s||{},{method:e,url:t,data:(s||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,s,n){return this.request(i(n||{},{method:e,url:t,data:s}))}})),e.exports=d},782:function(e,t,s){"use strict";var n=s(867);function r(){this.handlers=[]}r.prototype.use=function(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!s&&s.synchronous,runWhen:s?s.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},97:function(e,t,s){"use strict";var n=s(793),r=s(303);e.exports=function(e,t){return e&&!n(t)?r(e,t):t}},61:function(e,t,s){"use strict";var n=s(481);e.exports=function(e,t,s,r,a){var l=new Error(e);return n(l,t,s,r,a)}},572:function(e,t,s){"use strict";var n=s(867),r=s(527),a=s(502),l=s(655),i=s(263);function o(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new i("canceled")}e.exports=function(e){return o(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||l.adapter)(e).then((function(t){return o(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(o(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:function(e){"use strict";e.exports=function(e,t,s,n,r){return e.config=t,s&&(e.code=s),e.request=n,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},185:function(e,t,s){"use strict";var n=s(867);e.exports=function(e,t){t=t||{};var s={};function r(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function a(s){return n.isUndefined(t[s])?n.isUndefined(e[s])?void 0:r(void 0,e[s]):r(e[s],t[s])}function l(e){if(!n.isUndefined(t[e]))return r(void 0,t[e])}function i(s){return n.isUndefined(t[s])?n.isUndefined(e[s])?void 0:r(void 0,e[s]):r(void 0,t[s])}function o(s){return s in t?r(e[s],t[s]):s in e?r(void 0,e[s]):void 0}var c={url:l,method:l,data:l,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||a,r=t(e);n.isUndefined(r)&&t!==o||(s[e]=r)})),s}},26:function(e,t,s){"use strict";var n=s(61);e.exports=function(e,t,s){var r=s.config.validateStatus;s.status&&r&&!r(s.status)?t(n("Request failed with status code "+s.status,s.config,null,s.request,s)):e(s)}},527:function(e,t,s){"use strict";var n=s(867),r=s(655);e.exports=function(e,t,s){var a=this||r;return n.forEach(s,(function(s){e=s.call(a,e,t)})),e}},655:function(e,t,s){"use strict";var n=s(867),r=s(16),a=s(481),l={"Content-Type":"application/x-www-form-urlencoded"};function i(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(o=s(448)),o),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(i(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(i(t,"application/json"),function(e,t,s){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,s=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,l=!s&&"json"===this.responseType;if(l||r&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(l){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(l)})),e.exports=c},288:function(e){e.exports={version:"0.25.0"}},849:function(e){"use strict";e.exports=function(e,t){return function(){for(var s=new Array(arguments.length),n=0;n<s.length;n++)s[n]=arguments[n];return e.apply(t,s)}}},327:function(e,t,s){"use strict";var n=s(867);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,s){if(!t)return e;var a;if(s)a=s(t);else if(n.isURLSearchParams(t))a=t.toString();else{var l=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),l.push(r(t)+"="+r(e))})))})),a=l.join("&")}if(a){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:function(e,t,s){"use strict";var n=s(867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,s,r,a,l){var i=[];i.push(e+"="+encodeURIComponent(t)),n.isNumber(s)&&i.push("expires="+new Date(s).toGMTString()),n.isString(r)&&i.push("path="+r),n.isString(a)&&i.push("domain="+a),!0===l&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},268:function(e,t,s){"use strict";var n=s(867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},985:function(e,t,s){"use strict";var n=s(867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");function r(e){var n=e;return t&&(s.setAttribute("href",n),n=s.href),s.setAttribute("href",n),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}return e=r(window.location.href),function(t){var s=n.isString(t)?r(t):t;return s.protocol===e.protocol&&s.host===e.host}}():function(){return!0}},16:function(e,t,s){"use strict";var n=s(867);e.exports=function(e,t){n.forEach(e,(function(s,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=s,delete e[n])}))}},109:function(e,t,s){"use strict";var n=s(867),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,s,a,l={};return e?(n.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=n.trim(e.substr(0,a)).toLowerCase(),s=n.trim(e.substr(a+1)),t){if(l[t]&&r.indexOf(t)>=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([s]):l[t]?l[t]+", "+s:s}})),l):l}},713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:function(e,t,s){"use strict";var n=s(288).version,r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}}));var a={};r.transitional=function(e,t,s){function r(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(s?". "+s:"")}return function(s,n,l){if(!1===e)throw new Error(r(n," has been removed"+(t?" in "+t:"")));return t&&!a[n]&&(a[n]=!0,console.warn(r(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(s,n,l)}},e.exports={assertOptions:function(e,t,s){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),r=n.length;r-- >0;){var a=n[r],l=t[a];if(l){var i=e[a],o=void 0===i||l(i,a,e);if(!0!==o)throw new TypeError("option "+a+" must be "+o)}else if(!0!==s)throw Error("Unknown option "+a)}},validators:r}},867:function(e,t,s){"use strict";var n=s(849),r=Object.prototype.toString;function a(e){return Array.isArray(e)}function l(e){return void 0===e}function i(e){return"[object ArrayBuffer]"===r.call(e)}function o(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){return"[object Function]"===r.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var s=0,n=e.length;s<n;s++)t.call(null,e[s],s,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:a,isArrayBuffer:i,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===r.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&i(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:o,isPlainObject:c,isUndefined:l,isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:d,isStream:function(e){return o(e)&&d(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===r.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function s(s,n){c(t[n])&&c(s)?t[n]=e(t[n],s):c(s)?t[n]=e({},s):a(s)?t[n]=s.slice():t[n]=s}for(var n=0,r=arguments.length;n<r;n++)u(arguments[n],s);return t},extend:function(e,t,s){return u(t,(function(t,r){e[r]=s&&"function"==typeof t?n(t,s):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},679:function(e,t,s){"use strict";var n=s(296),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(e){return n.isMemo(e)?l:i[e.$$typeof]||r}i[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[n.Memo]=l;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,s,n){if("string"!=typeof s){if(m){var r=h(s);r&&r!==m&&e(t,r,n)}var l=d(s);u&&(l=l.concat(u(s)));for(var i=o(t),g=o(s),f=0;f<l.length;++f){var v=l[f];if(!(a[v]||n&&n[v]||g&&g[v]||i&&i[v])){var b=p(s,v);try{c(t,v,b)}catch(e){}}}}return t}},103:function(e,t){"use strict";var s="function"==typeof Symbol&&Symbol.for,n=s?Symbol.for("react.element"):60103,r=s?Symbol.for("react.portal"):60106,a=s?Symbol.for("react.fragment"):60107,l=s?Symbol.for("react.strict_mode"):60108,i=s?Symbol.for("react.profiler"):60114,o=s?Symbol.for("react.provider"):60109,c=s?Symbol.for("react.context"):60110,d=s?Symbol.for("react.async_mode"):60111,u=s?Symbol.for("react.concurrent_mode"):60111,p=s?Symbol.for("react.forward_ref"):60112,h=s?Symbol.for("react.suspense"):60113,m=s?Symbol.for("react.suspense_list"):60120,g=s?Symbol.for("react.memo"):60115,f=s?Symbol.for("react.lazy"):60116,v=s?Symbol.for("react.block"):60121,b=s?Symbol.for("react.fundamental"):60117,y=s?Symbol.for("react.responder"):60118,w=s?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case d:case u:case a:case i:case l:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case f:case g:case o:return e;default:return t}}case r:return t}}}function C(e){return E(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=o,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Lazy=f,t.Memo=g,t.Portal=r,t.Profiler=i,t.StrictMode=l,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||E(e)===d},t.isConcurrentMode=C,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===o},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===f},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===i},t.isStrictMode=function(e){return E(e)===l},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===i||e===l||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===g||e.$$typeof===o||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},296:function(e,t,s){"use strict";e.exports=s(103)},145:function(e,t){"use strict";function s(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var n="object"==typeof process&&!0;function r(e,t){if(!e){if(n)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=r;var a=Object.prototype.hasOwnProperty,l=Array.prototype.splice,i=Object.prototype.toString;function o(e){return i.call(e).slice(8,-1)}var c=Object.assign||function(e,t){return d(t).forEach((function(s){a.call(t,s)&&(e[s]=t[s])})),e},d="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function u(e){return Array.isArray(e)?c(e.constructor(e.length),e):"Map"===o(e)?new Map(e):"Set"===o(e)?new Set(e):e&&"object"==typeof e?c(Object.create(Object.getPrototypeOf(e)),e):e}var p=function(){function e(){this.commands=c({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var s=this,n="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(n)||r(!Array.isArray(n),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),r("object"==typeof n&&null!==n,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(s.commands).join(", ")+"."}));var l=e;return d(n).forEach((function(t){if(a.call(s.commands,t)){var r=e===l;l=s.commands[t](n[t],l,n,e),r&&s.isEquals(l,e)&&(l=e)}else{var i="Map"===o(e)?s.update(e.get(t),n[t]):s.update(e[t],n[t]),c="Map"===o(l)?l.get(t):l[t];s.isEquals(i,c)&&(void 0!==i||a.call(e,t))||(l===e&&(l=u(e)),"Map"===o(l)?l.set(t,i):l[t]=i)}})),l},e}();t.Context=p;var h={$push:function(e,t,s){return g(t,s,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,s){return g(t,s,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,a){return function(e,t){r(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+s(e)})),v(t.$splice)}(t,n),e.forEach((function(e){v(e),t===a&&e.length&&(t=u(a)),l.apply(t,e)})),t},$set:function(e,t,s){return function(e){r(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(s),e},$toggle:function(e,t){f(e,"$toggle");var s=e.length?u(t):t;return e.forEach((function(e){s[e]=!t[e]})),s},$unset:function(e,t,s,n){return f(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===n&&(t=u(n)),delete t[e])})),t},$add:function(e,t,s,n){return b(t,"$add"),f(e,"$add"),"Map"===o(t)?e.forEach((function(e){var s=e[0],r=e[1];t===n&&t.get(s)!==r&&(t=u(n)),t.set(s,r)})):e.forEach((function(e){t!==n||t.has(e)||(t=u(n)),t.add(e)})),t},$remove:function(e,t,s,n){return b(t,"$remove"),f(e,"$remove"),e.forEach((function(e){t===n&&t.has(e)&&(t=u(n)),t.delete(e)})),t},$merge:function(e,t,n,a){var l,i;return l=t,r((i=e)&&"object"==typeof i,(function(){return"update(): $merge expects a spec of type 'object'; got "+s(i)})),r(l&&"object"==typeof l,(function(){return"update(): $merge expects a target of type 'object'; got "+s(l)})),d(e).forEach((function(s){e[s]!==t[s]&&(t===a&&(t=u(a)),t[s]=e[s])})),t},$apply:function(e,t){var n;return r("function"==typeof(n=e),(function(){return"update(): expected spec of $apply to be a function; got "+s(n)+"."})),e(t)}},m=new p;function g(e,t,n){r(Array.isArray(e),(function(){return"update(): expected target of "+s(n)+" to be an array; got "+s(e)+"."})),f(t[n],n)}function f(e,t){r(Array.isArray(e),(function(){return"update(): expected spec of "+s(t)+" to be an array; got "+s(e)+". Did you forget to wrap your parameter in an array?"}))}function v(e){r(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+s(e)+". Did you forget to wrap your parameters in an array?"}))}function b(e,t){var n=o(e);r("Map"===n||"Set"===n,(function(){return"update(): "+s(t)+" expects a target of type Set or Map; got "+s(n)}))}t.isEquals=m.update.isEquals,t.extend=m.extend,t.default=m.update,t.default.default=e.exports=c(t.default,t)},44:function(e,t,s){"use strict";var n=s(196),r=s(94);function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l,i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(s){if("default"!==s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}})),t.default=e,Object.freeze(t)}(n),o=a(n),c=a(r);function d(e,t){return e[t]}function u(e,t){return t.split(".").reduce(((e,t)=>{const s=t.match(/[^\]\\[.]+/g);if(s&&s.length>1)for(let t=0;t<s.length;t++)return e[s[t]][s[t+1]];return e[t]}),e)}function p(e=[],t,s=0){return[...e.slice(0,s),t,...e.slice(s)]}function h(e=[],t,s="id"){const n=e.slice(),r=d(t,s);return r?n.splice(n.findIndex((e=>d(e,s)===r)),1):n.splice(n.findIndex((e=>e===t)),1),n}function m(e){return e.map(((e,t)=>{const s=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(s.id=t+1),s}))}function g(e,t){return Math.ceil(e/t)}function f(e,t){return Math.min(e,t)}!function(e){e.ASC="asc",e.DESC="desc"}(l||(l={}));const v=()=>null;function b(e,t=[],s=[]){let n={},r=[...s];return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(n=t.style||{},t.classNames&&(r=[...r,...t.classNames]),"function"==typeof t.style&&(n=t.style(e)||{}))})),{style:n,classNames:r.join(" ")}}function y(e,t=[],s="id"){const n=d(e,s);return n?t.some((e=>d(e,s)===n)):t.some((t=>t===e))}function w(e,t){return t?e.findIndex((e=>E(e.id,t))):-1}function E(e,t){return e==t}function C(e,t){const s=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:s,rows:n,rowCount:r,mergeSelections:a}=t,l=!e.allSelected,i=!e.toggleOnSelectedRowsChange;if(a){const t=l?[...e.selectedRows,...n.filter((t=>!y(t,e.selectedRows,s)))]:e.selectedRows.filter((e=>!y(e,n,s)));return Object.assign(Object.assign({},e),{allSelected:l,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:i})}return Object.assign(Object.assign({},e),{allSelected:l,selectedCount:l?r:0,selectedRows:l?n:[],toggleOnSelectedRowsChange:i})}case"SELECT_SINGLE_ROW":{const{keyField:n,row:r,isSelected:a,rowCount:l,singleSelect:i}=t;return i?a?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:s}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[r],toggleOnSelectedRowsChange:s}):a?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:h(e.selectedRows,r,n),toggleOnSelectedRowsChange:s}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===l,selectedRows:p(e.selectedRows,r),toggleOnSelectedRowsChange:s})}case"SELECT_MULTIPLE_ROWS":{const{keyField:n,selectedRows:r,totalRows:a,mergeSelections:l}=t;if(l){const t=[...e.selectedRows,...r.filter((t=>!y(t,e.selectedRows,n)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:s})}return Object.assign(Object.assign({},e),{selectedCount:r.length,allSelected:r.length===a,selectedRows:r,toggleOnSelectedRowsChange:s})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:s}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:s})}case"SORT_CHANGE":{const{sortDirection:n,selectedColumn:r,clearSelectedOnSort:a}=t;return Object.assign(Object.assign(Object.assign({},e),{selectedColumn:r,sortDirection:n,currentPage:1}),a&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:s})}case"CHANGE_PAGE":{const{page:n,paginationServer:r,visibleOnly:a,persistSelectedOnPageChange:l}=t,i=r&&l,o=r&&!l||a;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:n}),i&&{allSelected:!1}),o&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:s})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:s,page:n}=t;return Object.assign(Object.assign({},e),{currentPage:n,rowsPerPage:s})}}}const _=r.css`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  pointer-events: none;
3
  opacity: 0.4;
4
+ `,x=c.default.div`
5
  position: relative;
6
  box-sizing: border-box;
7
  display: flex;
9
  width: 100%;
10
  height: 100%;
11
  max-width: 100%;
12
+ ${({disabled:e})=>e&&_};
13
  ${({theme:e})=>e.table.style};
14
+ `,S=r.css`
15
  position: sticky;
16
  position: -webkit-sticky; /* Safari */
17
  top: 0;
18
  z-index: 1;
19
+ `,k=c.default.div`
20
  display: flex;
21
  width: 100%;
22
+ ${({fixedHeader:e})=>e&&S};
23
  ${({theme:e})=>e.head.style};
24
+ `,M=c.default.div`
25
  display: flex;
26
  align-items: stretch;
27
  width: 100%;
28
  ${({theme:e})=>e.headRow.style};
29
  ${({dense:e,theme:t})=>e&&t.headRow.denseStyle};
30
+ `,N=(e,...t)=>r.css`
31
  @media screen and (max-width: ${599}px) {
32
+ ${r.css(e,...t)}
33
  }
34
+ `,P=(e,...t)=>r.css`
35
  @media screen and (max-width: ${959}px) {
36
+ ${r.css(e,...t)}
37
  }
38
+ `,R=(e,...t)=>r.css`
39
  @media screen and (max-width: ${1280}px) {
40
+ ${r.css(e,...t)}
41
  }
42
+ `,O=c.default.div`
 
 
 
 
43
  position: relative;
44
  display: flex;
45
  align-items: center;
47
  line-height: normal;
48
  ${({theme:e,headCell:t})=>e[t?"headCells":"cells"].style};
49
  ${({noPadding:e})=>e&&"padding: 0"};
50
+ `,F=c.default(O)`
51
  flex-grow: ${({button:e,grow:t})=>0===t||e?0:t||1};
52
  flex-shrink: 0;
53
  flex-basis: 0;
54
  max-width: ${({maxWidth:e})=>e||"100%"};
55
  min-width: ${({minWidth:e})=>e||"100px"};
56
+ ${({width:e})=>e&&r.css`
57
  min-width: ${e};
58
  max-width: ${e};
59
  `};
62
  ${({compact:e,button:t})=>(e||t)&&"padding: 0"};
63
 
64
  /* handle hiding cells */
65
+ ${({hide:e})=>e&&"sm"===e&&N`
66
  display: none;
67
  `};
68
  ${({hide:e})=>e&&"md"===e&&P`
69
  display: none;
70
  `};
71
+ ${({hide:e})=>e&&"lg"===e&&R`
72
  display: none;
73
  `};
74
+ ${({hide:e})=>e&&Number.isInteger(e)&&(e=>(t,...s)=>r.css`
75
+ @media screen and (max-width: ${e}px) {
76
+ ${r.css(t,...s)}
77
+ }
78
+ `)(e)`
79
  display: none;
80
  `};
81
+ `,L=r.css`
82
  div:first-child {
83
  white-space: ${({wrapCell:e})=>e?"normal":"nowrap"};
84
  overflow: ${({allowOverflow:e})=>e?"visible":"hidden"};
85
  text-overflow: ellipsis;
86
  }
87
+ `,I=c.default(F).attrs((e=>({style:e.style})))`
88
+ ${({renderAsCell:e})=>!e&&L};
89
  ${({theme:e,isDragging:t})=>t&&e.cells.draggingStyle};
90
  ${({cellStyle:e})=>e};
91
+ `;var A=i.memo((function({id:e,column:t,row:s,rowIndex:n,dataTag:r,isDragging:a,onDragStart:l,onDragOver:o,onDragEnd:c,onDragEnter:d,onDragLeave:p}){const{style:h,classNames:m}=b(s,t.conditionalCellStyles,["rdt_TableCell"]);return i.createElement(I,{id:e,"data-column-id":t.id,role:"cell",className:m,"data-tag":r,cellStyle:t.style,renderAsCell:!!t.cell,allowOverflow:t.allowOverflow,button:t.button,center:t.center,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,width:t.width,wrapCell:t.wrap,style:h,isDragging:a,onDragStart:l,onDragOver:o,onDragEnd:c,onDragEnter:d,onDragLeave:p},!t.cell&&i.createElement("div",{"data-tag":r},function(e,t,s,n){if(!t)return null;if("string"!=typeof t&&"function"!=typeof t)throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return s&&"function"==typeof s?s(e,n):t&&"function"==typeof t?t(e,n):u(e,t)}(s,t.selector,t.format,n)),t.cell&&t.cell(s,n,t,e))})),D=i.memo((function({name:e,component:t="input",componentOptions:s={style:{}},indeterminate:n=!1,checked:r=!1,disabled:a=!1,onClick:l=v}){const o=t,c="input"!==o?s.style:(e=>Object.assign(Object.assign({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(a),d=i.useMemo((()=>function(e,...t){let s;return Object.keys(e).map((t=>e[t])).forEach(((n,r)=>{const a=e;"function"==typeof n&&(s=Object.assign(Object.assign({},a),{[Object.keys(e)[r]]:n(...t)}))})),s||e}(s,n)),[s,n]);return i.createElement(o,Object.assign({type:"checkbox",ref:e=>{e&&(e.indeterminate=n)},style:c,onClick:a?v:l,name:e,"aria-label":e,checked:r,disabled:a},d,{onChange:v}))}));const T=c.default(O)`
92
  flex: 0 0 48px;
93
  min-width: 48px;
94
  justify-content: center;
95
  align-items: center;
96
  user-select: none;
97
  white-space: nowrap;
98
+ `;function H({name:e,keyField:t,row:s,rowCount:n,selected:r,selectableRowsComponent:a,selectableRowsComponentProps:l,selectableRowsSingle:o,selectableRowDisabled:c,onSelectedRow:d}){const u=!(!c||!c(s));return i.createElement(T,{onClick:e=>e.stopPropagation(),className:"rdt_TableCell",noPadding:!0},i.createElement(D,{name:e,component:a,componentOptions:l,checked:r,"aria-checked":r,onClick:()=>{d({type:"SELECT_SINGLE_ROW",row:s,isSelected:r,keyField:t,rowCount:n,singleSelect:o})},disabled:u}))}const j=c.default.button`
99
  display: inline-flex;
100
  align-items: center;
101
  user-select: none;
103
  border: none;
104
  background-color: transparent;
105
  ${({theme:e})=>e.expanderButton.style};
106
+ `;function $({disabled:e=!1,expanded:t=!1,expandableIcon:s,id:n,row:r,onToggled:a}){const l=t?s.expanded:s.collapsed;return i.createElement(j,{"aria-disabled":e,onClick:()=>a&&a(r),"data-testid":`expander-button-${n}`,disabled:e,"aria-label":t?"Collapse Row":"Expand Row",role:"button",type:"button"},l)}const B=c.default(O)`
107
  white-space: nowrap;
108
  font-weight: 400;
109
  min-width: 48px;
110
  ${({theme:e})=>e.expanderCell.style};
111
+ `;function z({row:e,expanded:t=!1,expandableIcon:s,id:n,onToggled:r,disabled:a=!1}){return i.createElement(B,{onClick:e=>e.stopPropagation(),noPadding:!0},i.createElement($,{id:n,row:e,expanded:t,expandableIcon:s,disabled:a,onToggled:r}))}const V=c.default.div`
112
  width: 100%;
113
  box-sizing: border-box;
114
  ${({theme:e})=>e.expanderRow.style};
115
  ${({extendedRowStyle:e})=>e};
116
+ `;var U,W,q,G=i.memo((function({data:e,ExpanderComponent:t,expanderComponentProps:s,extendedRowStyle:n,extendedClassNames:r}){const a=["rdt_ExpanderRow",...r.split(" ").filter((e=>"rdt_TableRow"!==e))].join(" ");return i.createElement(V,{className:a,extendedRowStyle:n},i.createElement(t,Object.assign({data:e},s)))}));t.Nm=void 0,(U=t.Nm||(t.Nm={})).LTR="ltr",U.RTL="rtl",U.AUTO="auto",t.v2=void 0,(W=t.v2||(t.v2={})).LEFT="left",W.RIGHT="right",W.CENTER="center",t.pU=void 0,(q=t.pU||(t.pU={})).SM="sm",q.MD="md",q.LG="lg";const Y=r.css`
117
  &:hover {
118
  ${({highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle};
119
  }
120
+ `,X=r.css`
121
  &:hover {
122
  cursor: pointer;
123
  }
124
+ `,J=c.default.div.attrs((e=>({style:e.style})))`
125
  display: flex;
126
  align-items: stretch;
127
  align-content: stretch;
130
  ${({theme:e})=>e.rows.style};
131
  ${({dense:e,theme:t})=>e&&t.rows.denseStyle};
132
  ${({striped:e,theme:t})=>e&&t.rows.stripedStyle};
133
+ ${({highlightOnHover:e})=>e&&Y};
134
+ ${({pointerOnHover:e})=>e&&X};
135
  ${({selected:e,theme:t})=>e&&t.rows.selectedHighlightStyle};
136
+ `;function Z({columns:e=[],conditionalRowStyles:t=[],defaultExpanded:s=!1,defaultExpanderDisabled:n=!1,dense:r=!1,expandableIcon:a,expandableRows:l=!1,expandableRowsComponent:o,expandableRowsComponentProps:c,expandableRowsHideExpander:u,expandOnRowClicked:p=!1,expandOnRowDoubleClicked:h=!1,highlightOnHover:m=!1,id:g,expandableInheritConditionalStyles:f,keyField:y,onRowClicked:w=v,onRowDoubleClicked:C=v,onRowMouseEnter:_=v,onRowMouseLeave:x=v,onRowExpandToggled:S=v,onSelectedRow:k=v,pointerOnHover:M=!1,row:N,rowCount:P,rowIndex:R,selectableRowDisabled:O=null,selectableRows:F=!1,selectableRowsComponent:L,selectableRowsComponentProps:I,selectableRowsHighlight:D=!1,selectableRowsSingle:T=!1,selected:j,striped:$=!1,draggingColumnId:B,onDragStart:V,onDragOver:U,onDragEnd:W,onDragEnter:q,onDragLeave:Y}){const[X,Z]=i.useState(s);i.useEffect((()=>{Z(s)}),[s]);const K=i.useCallback((()=>{Z(!X),S(!X,N)}),[X,S,N]),Q=M||l&&(p||h),ee=i.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(w(N,e),!n&&l&&p&&K())}),[n,p,l,K,w,N]),te=i.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(C(N,e),!n&&l&&h&&K())}),[n,h,l,K,C,N]),se=i.useCallback((e=>{_(N,e)}),[_,N]),ne=i.useCallback((e=>{x(N,e)}),[x,N]),re=d(N,y),{style:ae,classNames:le}=b(N,t,["rdt_TableRow"]),ie=D&&j,oe=f?ae:{},ce=$&&R%2==0;return i.createElement(i.Fragment,null,i.createElement(J,{id:`row-${g}`,role:"row",striped:ce,highlightOnHover:m,pointerOnHover:!n&&Q,dense:r,onClick:ee,onDoubleClick:te,onMouseEnter:se,onMouseLeave:ne,className:le,selected:ie,style:ae},F&&i.createElement(H,{name:`select-row-${re}`,keyField:y,row:N,rowCount:P,selected:j,selectableRowsComponent:L,selectableRowsComponentProps:I,selectableRowDisabled:O,selectableRowsSingle:T,onSelectedRow:k}),l&&!u&&i.createElement(z,{id:re,expandableIcon:a,expanded:X,row:N,onToggled:K,disabled:n}),e.map((e=>e.omit?null:i.createElement(A,{id:`cell-${e.id}-${re}`,key:`cell-${e.id}-${re}`,dataTag:e.ignoreRowClick||e.button?null:"allowRowEvents",column:e,row:N,rowIndex:R,isDragging:E(B,e.id),onDragStart:V,onDragOver:U,onDragEnd:W,onDragEnter:q,onDragLeave:Y})))),l&&X&&i.createElement(G,{key:`expander-${re}`,data:N,extendedRowStyle:oe,extendedClassNames:le,ExpanderComponent:o,expanderComponentProps:c}))}const K=c.default.span`
137
  padding: 2px;
138
  color: inherit;
139
  flex-grow: 0;
140
  flex-shrink: 0;
141
  ${({sortActive:e})=>e?"opacity: 1":"opacity: 0"};
142
  ${({sortDirection:e})=>"desc"===e&&"transform: rotate(180deg)"};
143
+ `,Q=({sortActive:e,sortDirection:t})=>o.default.createElement(K,{sortActive:e,sortDirection:t},"▲"),ee=c.default(F)`
144
  ${({button:e})=>e&&"text-align: center"};
145
  ${({theme:e,isDragging:t})=>t&&e.headCells.draggingStyle};
146
+ `,te=r.css`
147
  cursor: pointer;
148
  span.__rdt_custom_sort_icon__ {
149
  i,
166
  }
167
  }
168
 
169
+ ${({sortActive:e})=>!e&&r.css`
170
  &:hover,
171
  &:focus {
172
  opacity: 0.7;
177
  }
178
  }
179
  `};
180
+ `,se=c.default.div`
181
  display: inline-flex;
182
  align-items: center;
183
  justify-content: inherit;
186
  outline: none;
187
  user-select: none;
188
  overflow: hidden;
189
+ ${({disabled:e})=>!e&&te};
190
+ `,ne=c.default.div`
191
  overflow: hidden;
192
  white-space: nowrap;
193
  text-overflow: ellipsis;
194
+ `;var re=i.memo((function({column:e,disabled:t,draggingColumnId:s,selectedColumn:n={},sortDirection:r,sortIcon:a,sortServer:o,pagination:c,paginationServer:d,persistSelectedOnSort:u,selectableRowsVisibleOnly:p,onSort:h,onDragStart:m,onDragOver:g,onDragEnd:f,onDragEnter:v,onDragLeave:b}){i.useEffect((()=>{"string"==typeof e.selector&&console.error(`Warning: ${e.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]);const[y,w]=i.useState(!1),C=i.useRef(null);if(i.useEffect((()=>{C.current&&w(C.current.scrollWidth>C.current.clientWidth)}),[y]),e.omit)return null;const _=()=>{if(!e.sortable&&!e.selector)return;let t=r;E(n.id,e.id)&&(t=r===l.ASC?l.DESC:l.ASC),h({type:"SORT_CHANGE",sortDirection:t,selectedColumn:e,clearSelectedOnSort:c&&d&&!u||o||p})},x=e=>i.createElement(Q,{sortActive:e,sortDirection:r}),S=()=>i.createElement("span",{className:[r,"__rdt_custom_sort_icon__"].join(" ")},a),k=!(!e.sortable||!E(n.id,e.id)),M=!e.sortable||t,N=e.sortable&&!a&&!e.right,P=e.sortable&&!a&&e.right,R=e.sortable&&a&&!e.right,O=e.sortable&&a&&e.right;return i.createElement(ee,{"data-column-id":e.id,className:"rdt_TableCol",headCell:!0,allowOverflow:e.allowOverflow,button:e.button,compact:e.compact,grow:e.grow,hide:e.hide,maxWidth:e.maxWidth,minWidth:e.minWidth,right:e.right,center:e.center,width:e.width,draggable:e.reorder,isDragging:E(e.id,s),onDragStart:m,onDragOver:g,onDragEnd:f,onDragEnter:v,onDragLeave:b},e.name&&i.createElement(se,{"data-column-id":e.id,"data-sort-id":e.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:M?void 0:_,onKeyPress:M?void 0:e=>{"Enter"===e.key&&_()},sortActive:!M&&k,disabled:M},!M&&O&&S(),!M&&P&&x(k),"string"==typeof e.name?i.createElement(ne,{title:y?e.name:void 0,ref:C,"data-column-id":e.id},e.name):e.name,!M&&R&&S(),!M&&N&&x(k)))}));const ae=c.default(O)`
195
  flex: 0 0 48px;
196
  justify-content: center;
197
  align-items: center;
198
  user-select: none;
199
  white-space: nowrap;
200
  font-size: unset;
201
+ `;function le({headCell:e=!0,rowData:t,keyField:s,allSelected:n,mergeSelections:r,selectedRows:a,selectableRowsComponent:l,selectableRowsComponentProps:o,selectableRowDisabled:c,onSelectAllRows:d}){const u=a.length>0&&!n,p=c?t.filter((e=>!c(e))):t,h=0===p.length,m=Math.min(t.length,p.length);return i.createElement(ae,{className:"rdt_TableCol",headCell:e,noPadding:!0},i.createElement(D,{name:"select-all-rows",component:l,componentOptions:o,onClick:()=>{d({type:"SELECT_ALL_ROWS",rows:p,rowCount:m,mergeSelections:r,keyField:s})},checked:n,indeterminate:u,disabled:h}))}function ie(e=t.Nm.AUTO){const s="object"==typeof window,[n,r]=i.useState(!1);return i.useEffect((()=>{if(s)if("auto"!==e)r("rtl"===e);else{const e=!(!window.document||!window.document.createElement),t=document.getElementsByTagName("BODY")[0],s=document.getElementsByTagName("HTML")[0],n="rtl"===t.dir||"rtl"===s.dir;r(e&&n)}}),[e,s]),n}const oe=c.default.div`
202
  display: flex;
203
  align-items: center;
204
  flex: 1 0 auto;
206
  color: ${({theme:e})=>e.contextMenu.fontColor};
207
  font-size: ${({theme:e})=>e.contextMenu.fontSize};
208
  font-weight: 400;
209
+ `,ce=c.default.div`
210
  display: flex;
211
  align-items: center;
212
  justify-content: flex-end;
213
  flex-wrap: wrap;
214
+ `,de=c.default.div`
215
  position: absolute;
216
  top: 0;
217
  left: 0;
225
  ${({rtl:e})=>e&&"direction: rtl"};
226
  ${({theme:e})=>e.contextMenu.style};
227
  ${({theme:e,visible:t})=>t&&e.contextMenu.activeStyle};
228
+ `;function ue({contextMessage:e,contextActions:t,contextComponent:s,selectedCount:n,direction:r}){const a=ie(r),l=n>0;return s?i.createElement(de,{visible:l},i.cloneElement(s,{selectedCount:n})):i.createElement(de,{visible:l,rtl:a},i.createElement(oe,null,((e,t,s)=>{if(0===t)return null;const n=1===t?e.singular:e.plural;return s?`${t} ${e.message||""} ${n}`:`${t} ${n} ${e.message||""}`})(e,n,a)),i.createElement(ce,null,t))}const pe=c.default.div`
229
  position: relative;
230
  box-sizing: border-box;
231
  overflow: hidden;
236
  width: 100%;
237
  flex-wrap: wrap;
238
  ${({theme:e})=>e.header.style}
239
+ `,he=c.default.div`
240
  flex: 1 0 auto;
241
  color: ${({theme:e})=>e.header.fontColor};
242
  font-size: ${({theme:e})=>e.header.fontSize};
243
  font-weight: 400;
244
+ `,me=c.default.div`
245
  flex: 1 0 auto;
246
  display: flex;
247
  align-items: center;
250
  > * {
251
  margin-left: 5px;
252
  }
253
+ `,ge=({title:e,actions:t=null,contextMessage:s,contextActions:n,contextComponent:r,selectedCount:a,direction:l,showMenu:o=!0})=>i.createElement(pe,{className:"rdt_TableHeader",role:"heading","aria-level":1},i.createElement(he,null,e),t&&i.createElement(me,null,t),o&&i.createElement(ue,{contextMessage:s,contextActions:n,contextComponent:r,direction:l,selectedCount:a}));function fe(e,t){var s={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(s[n[r]]=e[n[r]])}return s}const ve={left:"flex-start",right:"flex-end",center:"center"},be=c.default.header`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  position: relative;
255
  display: flex;
256
  flex: 1 1 auto;
258
  align-items: center;
259
  padding: 4px 16px 4px 24px;
260
  width: 100%;
261
+ justify-content: ${({align:e})=>ve[e]};
262
  flex-wrap: ${({wrapContent:e})=>e?"wrap":"nowrap"};
263
  ${({theme:e})=>e.subHeader.style}
264
+ `,ye=e=>{var{align:t="right",wrapContent:s=!0}=e,n=fe(e,["align","wrapContent"]);return i.createElement(be,Object.assign({align:t,wrapContent:s},n))},we=c.default.div`
265
  display: flex;
266
  flex-direction: column;
267
+ `,Ee=c.default.div`
268
  position: relative;
269
  width: 100%;
270
  border-radius: inherit;
271
+ ${({responsive:e,fixedHeader:t})=>e&&r.css`
272
  overflow-x: auto;
273
 
274
  // hidden prevents vertical scrolling in firefox when fixedHeader is disabled
275
+ overflow-y: ${t?"auto":"hidden"};
276
  min-height: 0;
277
  `};
278
 
279
+ ${({fixedHeader:e=!1,fixedHeaderScrollHeight:t="100vh"})=>e&&r.css`
280
+ max-height: ${t};
281
  -webkit-overflow-scrolling: touch;
282
  `};
283
 
284
  ${({theme:e})=>e.responsiveWrapper.style};
285
+ `,Ce=c.default.div`
286
  position: relative;
287
  box-sizing: border-box;
288
  width: 100%;
289
  height: 100%;
290
  ${e=>e.theme.progress.style};
291
+ `,_e=c.default.div`
292
  position: relative;
293
  width: 100%;
294
  ${({theme:e})=>e.tableWrapper.style};
295
+ `,xe=c.default(O)`
296
  white-space: nowrap;
297
  ${({theme:e})=>e.expanderCell.style};
298
+ `,Se=c.default.div`
299
  box-sizing: border-box;
300
  width: 100%;
301
  height: 100%;
302
  ${({theme:e})=>e.noData.style};
303
+ `,ke=()=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},o.default.createElement("path",{d:"M7 10l5 5 5-5z"}),o.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),Me=c.default.select`
304
  cursor: pointer;
305
  height: 24px;
306
  max-width: 100%;
327
  option {
328
  color: initial;
329
  }
330
+ `,Ne=c.default.div`
331
  position: relative;
332
  flex-shrink: 0;
333
  font-size: inherit;
346
  user-select: none;
347
  pointer-events: none;
348
  }
349
+ `,Pe=e=>{var{defaultValue:t,onChange:s}=e,n=fe(e,["defaultValue","onChange"]);return i.createElement(Ne,null,i.createElement(Me,Object.assign({onChange:s,defaultValue:t},n)),i.createElement(ke,null))},Re={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return o.default.createElement("div",null,"To add an expander pass in a component instance via ",o.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:o.default.createElement((()=>o.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},o.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),o.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:o.default.createElement((()=>o.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},o.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),o.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:o.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:o.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:t.v2.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:o.default.createElement((()=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},o.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),o.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:o.default.createElement((()=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},o.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),o.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:o.default.createElement((()=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},o.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),o.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:o.default.createElement((()=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},o.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),o.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:t.Nm.AUTO,onChangePage:v,onChangeRowsPerPage:v,onRowClicked:v,onRowDoubleClicked:v,onRowMouseEnter:v,onRowMouseLeave:v,onRowExpandToggled:v,onSelectedRowsChange:v,onSort:v,onColumnOrderChange:v},Oe={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},Fe=c.default.nav`
350
  display: flex;
351
  flex: 1 1 auto;
352
  justify-content: flex-end;
356
  padding-left: 8px;
357
  width: 100%;
358
  ${({theme:e})=>e.pagination.style};
359
+ `,Le=c.default.button`
360
  position: relative;
361
  display: block;
362
  user-select: none;
363
  border: none;
364
  ${({theme:e})=>e.pagination.pageButtonsStyle};
365
  ${({isRTL:e})=>e&&"transform: scale(-1, -1)"};
366
+ `,Ie=c.default.div`
367
  display: flex;
368
  align-items: center;
369
  border-radius: 4px;
370
  white-space: nowrap;
371
+ ${N`
372
  width: 100%;
373
  justify-content: space-around;
374
  `};
375
+ `,Ae=c.default.span`
376
  flex-shrink: 1;
377
  user-select: none;
378
+ `,De=c.default(Ae)`
379
  margin: 0 24px;
380
+ `,Te=c.default(Ae)`
381
  margin: 0 4px;
382
+ `;var He=i.memo((function({rowsPerPage:e,rowCount:t,currentPage:s,direction:n=Re.direction,paginationRowsPerPageOptions:r=Re.paginationRowsPerPageOptions,paginationIconLastPage:a=Re.paginationIconLastPage,paginationIconFirstPage:l=Re.paginationIconFirstPage,paginationIconNext:o=Re.paginationIconNext,paginationIconPrevious:c=Re.paginationIconPrevious,paginationComponentOptions:d=Re.paginationComponentOptions,onChangeRowsPerPage:u=Re.onChangeRowsPerPage,onChangePage:p=Re.onChangePage}){const h=(()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[s,n]=i.useState(t);return i.useEffect((()=>{if(!e)return()=>null;function s(){n(t())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)}),[]),s})(),m=ie(n),f=h.width&&h.width>599,v=g(t,e),b=s*e,y=b-e+1,w=1===s,E=s===v,C=Object.assign(Object.assign({},Oe),d),_=s===v?`${y}-${t} ${C.rangeSeparatorText} ${t}`:`${y}-${b} ${C.rangeSeparatorText} ${t}`,x=i.useCallback((()=>p(s-1)),[s,p]),S=i.useCallback((()=>p(s+1)),[s,p]),k=i.useCallback((()=>p(1)),[p]),M=i.useCallback((()=>p(g(t,e))),[p,t,e]),N=i.useCallback((e=>u(Number(e.target.value),s)),[s,u]),P=r.map((e=>i.createElement("option",{key:e,value:e},e)));C.selectAllRowsItem&&P.push(i.createElement("option",{key:-1,value:t},C.selectAllRowsItemText));const R=i.createElement(Pe,{onChange:N,defaultValue:e,"aria-label":C.rowsPerPageText},P);return i.createElement(Fe,{className:"rdt_Pagination"},!C.noRowsPerPage&&f&&i.createElement(i.Fragment,null,i.createElement(Te,null,C.rowsPerPageText),R),f&&i.createElement(De,null,_),i.createElement(Ie,null,i.createElement(Le,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":w,onClick:k,disabled:w,isRTL:m},l),i.createElement(Le,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":w,onClick:x,disabled:w,isRTL:m},c),!f&&R,i.createElement(Le,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":E,onClick:S,disabled:E,isRTL:m},o),i.createElement(Le,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":E,onClick:M,disabled:E,isRTL:m},a)))}));const je=(e,t)=>{const s=i.useRef(!0);i.useEffect((()=>{s.current?s.current=!1:e()}),t)};var $e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Be}(e)}(e)},Be="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ze(e,t){return!1!==t.clone&&t.isMergeableObject(e)?qe((s=e,Array.isArray(s)?[]:{}),e,t):e;var s}function Ve(e,t,s){return e.concat(t).map((function(e){return ze(e,s)}))}function Ue(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function We(e,t){try{return t in e}catch(e){return!1}}function qe(e,t,s){(s=s||{}).arrayMerge=s.arrayMerge||Ve,s.isMergeableObject=s.isMergeableObject||$e,s.cloneUnlessOtherwiseSpecified=ze;var n=Array.isArray(t);return n===Array.isArray(e)?n?s.arrayMerge(e,t,s):function(e,t,s){var n={};return s.isMergeableObject(e)&&Ue(e).forEach((function(t){n[t]=ze(e[t],s)})),Ue(t).forEach((function(r){(function(e,t){return We(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(We(e,r)&&s.isMergeableObject(t[r])?n[r]=function(e,t){if(!t.customMerge)return qe;var s=t.customMerge(e);return"function"==typeof s?s:qe}(r,s)(e[r],t[r],s):n[r]=ze(t[r],s))})),n}(e,t,s):ze(t,s)}qe.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,s){return qe(e,s,t)}),{})};var Ge=qe;const Ye={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},Xe={default:Ye,light:Ye,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function Je(e,t,s,n){const[r,a]=i.useState((()=>m(e))),[o,c]=i.useState(""),d=i.useRef("");je((()=>{a(m(e))}),[e]);const u=i.useCallback((e=>{var t,s,n;const{attributes:a}=e.target,l=null===(t=a.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;l&&(d.current=(null===(n=null===(s=r[w(r,l)])||void 0===s?void 0:s.id)||void 0===n?void 0:n.toString())||"",c(d.current))}),[r]),p=i.useCallback((e=>{var s;const{attributes:n}=e.target,l=null===(s=n.getNamedItem("data-column-id"))||void 0===s?void 0:s.value;if(l&&d.current&&l!==d.current){const e=w(r,d.current),s=w(r,l),n=[...r];n[e]=r[s],n[s]=r[e],a(n),t(n)}}),[t,r]),h=i.useCallback((e=>{e.preventDefault()}),[]),g=i.useCallback((e=>{e.preventDefault()}),[]),f=i.useCallback((e=>{e.preventDefault(),d.current="",c("")}),[]),v=function(e=!1){return e?l.ASC:l.DESC}(n),b=i.useMemo((()=>r[w(r,null==s?void 0:s.toString())]||{}),[s,r]);return{tableColumns:r,draggingColumnId:o,handleDragStart:u,handleDragEnter:p,handleDragOver:h,handleDragLeave:g,handleDragEnd:f,defaultSortDirection:v,defaultSortColumn:b}}var Ze=i.memo((function(e){const{data:t=Re.data,columns:s=Re.columns,title:n=Re.title,actions:a=Re.actions,keyField:o=Re.keyField,striped:c=Re.striped,highlightOnHover:p=Re.highlightOnHover,pointerOnHover:h=Re.pointerOnHover,dense:m=Re.dense,selectableRows:v=Re.selectableRows,selectableRowsSingle:b=Re.selectableRowsSingle,selectableRowsHighlight:w=Re.selectableRowsHighlight,selectableRowsNoSelectAll:E=Re.selectableRowsNoSelectAll,selectableRowsVisibleOnly:_=Re.selectableRowsVisibleOnly,selectableRowSelected:S=Re.selectableRowSelected,selectableRowDisabled:N=Re.selectableRowDisabled,selectableRowsComponent:P=Re.selectableRowsComponent,selectableRowsComponentProps:R=Re.selectableRowsComponentProps,onRowExpandToggled:F=Re.onRowExpandToggled,onSelectedRowsChange:L=Re.onSelectedRowsChange,expandableIcon:I=Re.expandableIcon,onChangeRowsPerPage:A=Re.onChangeRowsPerPage,onChangePage:D=Re.onChangePage,paginationServer:T=Re.paginationServer,paginationServerOptions:H=Re.paginationServerOptions,paginationTotalRows:j=Re.paginationTotalRows,paginationDefaultPage:$=Re.paginationDefaultPage,paginationResetDefaultPage:B=Re.paginationResetDefaultPage,paginationPerPage:z=Re.paginationPerPage,paginationRowsPerPageOptions:V=Re.paginationRowsPerPageOptions,paginationIconLastPage:U=Re.paginationIconLastPage,paginationIconFirstPage:W=Re.paginationIconFirstPage,paginationIconNext:q=Re.paginationIconNext,paginationIconPrevious:G=Re.paginationIconPrevious,paginationComponent:Y=Re.paginationComponent,paginationComponentOptions:X=Re.paginationComponentOptions,responsive:J=Re.responsive,progressPending:K=Re.progressPending,progressComponent:Q=Re.progressComponent,persistTableHead:ee=Re.persistTableHead,noDataComponent:te=Re.noDataComponent,disabled:se=Re.disabled,noTableHead:ne=Re.noTableHead,noHeader:ae=Re.noHeader,fixedHeader:ie=Re.fixedHeader,fixedHeaderScrollHeight:oe=Re.fixedHeaderScrollHeight,pagination:ce=Re.pagination,subHeader:de=Re.subHeader,subHeaderAlign:ue=Re.subHeaderAlign,subHeaderWrap:pe=Re.subHeaderWrap,subHeaderComponent:he=Re.subHeaderComponent,noContextMenu:me=Re.noContextMenu,contextMessage:fe=Re.contextMessage,contextActions:ve=Re.contextActions,contextComponent:be=Re.contextComponent,expandableRows:ke=Re.expandableRows,onRowClicked:Me=Re.onRowClicked,onRowDoubleClicked:Ne=Re.onRowDoubleClicked,onRowMouseEnter:Pe=Re.onRowMouseEnter,onRowMouseLeave:Oe=Re.onRowMouseLeave,sortIcon:Fe=Re.sortIcon,onSort:Le=Re.onSort,sortFunction:Ie=Re.sortFunction,sortServer:Ae=Re.sortServer,expandableRowsComponent:De=Re.expandableRowsComponent,expandableRowsComponentProps:Te=Re.expandableRowsComponentProps,expandableRowDisabled:$e=Re.expandableRowDisabled,expandableRowsHideExpander:Be=Re.expandableRowsHideExpander,expandOnRowClicked:ze=Re.expandOnRowClicked,expandOnRowDoubleClicked:Ve=Re.expandOnRowDoubleClicked,expandableRowExpanded:Ue=Re.expandableRowExpanded,expandableInheritConditionalStyles:We=Re.expandableInheritConditionalStyles,defaultSortFieldId:qe=Re.defaultSortFieldId,defaultSortAsc:Ye=Re.defaultSortAsc,clearSelectedRows:Ze=Re.clearSelectedRows,conditionalRowStyles:Ke=Re.conditionalRowStyles,theme:Qe=Re.theme,customStyles:et=Re.customStyles,direction:tt=Re.direction,onColumnOrderChange:st=Re.onColumnOrderChange,className:nt}=e,{tableColumns:rt,draggingColumnId:at,handleDragStart:lt,handleDragEnter:it,handleDragOver:ot,handleDragLeave:ct,handleDragEnd:dt,defaultSortDirection:ut,defaultSortColumn:pt}=Je(s,st,qe,Ye),[{rowsPerPage:ht,currentPage:mt,selectedRows:gt,allSelected:ft,selectedCount:vt,selectedColumn:bt,sortDirection:yt,toggleOnSelectedRowsChange:wt},Et]=i.useReducer(C,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:pt,toggleOnSelectedRowsChange:!1,sortDirection:ut,currentPage:$,rowsPerPage:z,selectedRowsFlag:!1,contextMessage:Re.contextMessage}),{persistSelectedOnSort:Ct=!1,persistSelectedOnPageChange:_t=!1}=H,xt=!(!T||!_t&&!Ct),St=ce&&!K&&t.length>0,kt=Y||He,Mt=i.useMemo((()=>((e={},t="default",s="default")=>{const n=Xe[t]?t:s;return Ge({table:{style:{color:(r=Xe[n]).text.primary,backgroundColor:r.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:r.text.primary,backgroundColor:r.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:r.background.default,minHeight:"52px"}},head:{style:{color:r.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:r.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:r.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:r.context.background,fontSize:"18px",fontWeight:400,color:r.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:r.text.primary,backgroundColor:r.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:r.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:r.selected.text,backgroundColor:r.selected.default,borderBottomColor:r.background.default}},highlightOnHoverStyle:{color:r.highlightOnHover.text,backgroundColor:r.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:r.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:r.background.default},stripedStyle:{color:r.striped.text,backgroundColor:r.striped.default}},expanderRow:{style:{color:r.text.primary,backgroundColor:r.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:r.button.default,fill:r.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:r.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:r.button.hover},"&:focus":{outline:"none",backgroundColor:r.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:r.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:r.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:r.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:r.button.default,fill:r.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:r.button.disabled,fill:r.button.disabled},"&:hover:not(:disabled)":{backgroundColor:r.button.hover},"&:focus":{outline:"none",backgroundColor:r.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:r.text.primary,backgroundColor:r.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:r.text.primary,backgroundColor:r.background.default}}},e);var r})(et,Qe)),[et,Qe]),Nt=i.useMemo((()=>Object.assign({},"auto"!==tt&&{dir:tt})),[tt]),Pt=i.useMemo((()=>{if(Ae)return t;if((null==bt?void 0:bt.sortFunction)&&"function"==typeof bt.sortFunction){const e=bt.sortFunction,s=yt===l.ASC?e:(t,s)=>-1*e(t,s);return[...t].sort(s)}return function(e,t,s,n){return t?n&&"function"==typeof n?n(e.slice(0),t,s):e.slice(0).sort(((e,n)=>{let r,a;if("string"==typeof t?(r=u(e,t),a=u(n,t)):(r=t(e),a=t(n)),"asc"===s){if(r<a)return-1;if(r>a)return 1}if("desc"===s){if(r>a)return-1;if(r<a)return 1}return 0})):e}(t,null==bt?void 0:bt.selector,yt,Ie)}),[Ae,bt,yt,t,Ie]),Rt=i.useMemo((()=>{if(ce&&!T){const e=mt*ht,t=e-ht;return Pt.slice(t,e)}return Pt}),[mt,ce,T,ht,Pt]),Ot=i.useCallback((e=>{Et(e)}),[]),Ft=i.useCallback((e=>{Et(e)}),[]),Lt=i.useCallback((e=>{Et(e)}),[]),It=i.useCallback(((e,t)=>Me(e,t)),[Me]),At=i.useCallback(((e,t)=>Ne(e,t)),[Ne]),Dt=i.useCallback(((e,t)=>Pe(e,t)),[Pe]),Tt=i.useCallback(((e,t)=>Oe(e,t)),[Oe]),Ht=i.useCallback((e=>Et({type:"CHANGE_PAGE",page:e,paginationServer:T,visibleOnly:_,persistSelectedOnPageChange:_t})),[T,_t,_]),jt=i.useCallback((e=>{const t=g(j||Rt.length,e),s=f(mt,t);T||Ht(s),Et({type:"CHANGE_ROWS_PER_PAGE",page:s,rowsPerPage:e})}),[mt,Ht,T,j,Rt.length]);if(ce&&!T&&Pt.length>0&&0===Rt.length){const e=g(Pt.length,ht),t=f(mt,e);Ht(t)}je((()=>{L({allSelected:ft,selectedCount:vt,selectedRows:gt.slice(0)})}),[wt]),je((()=>{Le(bt,yt,Pt.slice(0))}),[bt,yt]),je((()=>{D(mt,j||Pt.length)}),[mt]),je((()=>{A(ht,mt)}),[ht]),je((()=>{Ht($)}),[$,B]),je((()=>{if(ce&&T&&j>0){const e=g(j,ht),t=f(mt,e);mt!==t&&Ht(t)}}),[j]),i.useEffect((()=>{Et({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Ze})}),[b,Ze]),i.useEffect((()=>{if(!S)return;const e=Pt.filter((e=>S(e))),t=b?e.slice(0,1):e;Et({type:"SELECT_MULTIPLE_ROWS",keyField:o,selectedRows:t,totalRows:Pt.length,mergeSelections:xt})}),[t,S]);const $t=_?Rt:Pt,Bt=_t||b||E;return i.createElement(r.ThemeProvider,{theme:Mt},!ae&&(!!n||!!a)&&i.createElement(ge,{title:n,actions:a,showMenu:!me,selectedCount:vt,direction:tt,contextActions:ve,contextComponent:be,contextMessage:fe}),de&&i.createElement(ye,{align:ue,wrapContent:pe},he),i.createElement(Ee,Object.assign({responsive:J,fixedHeader:ie,fixedHeaderScrollHeight:oe,className:nt},Nt),i.createElement(_e,null,K&&!ee&&i.createElement(Ce,null,Q),i.createElement(x,{disabled:se,className:"rdt_Table",role:"table"},!ne&&(!!ee||Pt.length>0&&!K)&&i.createElement(k,{className:"rdt_TableHead",role:"rowgroup",fixedHeader:ie},i.createElement(M,{className:"rdt_TableHeadRow",role:"row",dense:m},v&&(Bt?i.createElement(O,{style:{flex:"0 0 48px"}}):i.createElement(le,{allSelected:ft,selectedRows:gt,selectableRowsComponent:P,selectableRowsComponentProps:R,selectableRowDisabled:N,rowData:$t,keyField:o,mergeSelections:xt,onSelectAllRows:Ft})),ke&&!Be&&i.createElement(xe,null),rt.map((e=>i.createElement(re,{key:e.id,column:e,selectedColumn:bt,disabled:K||0===Pt.length,pagination:ce,paginationServer:T,persistSelectedOnSort:Ct,selectableRowsVisibleOnly:_,sortDirection:yt,sortIcon:Fe,sortServer:Ae,onSort:Ot,onDragStart:lt,onDragOver:ot,onDragEnd:dt,onDragEnter:it,onDragLeave:ct,draggingColumnId:at}))))),!Pt.length&&!K&&i.createElement(Se,null,te),K&&ee&&i.createElement(Ce,null,Q),!K&&Pt.length>0&&i.createElement(we,{className:"rdt_TableBody",role:"rowgroup"},Rt.map(((e,t)=>{const s=d(e,o),n=function(e=""){return"number"!=typeof e&&(!e||0===e.length)}(s)?t:s,r=y(e,gt,o),a=!!(ke&&Ue&&Ue(e)),l=!!(ke&&$e&&$e(e));return i.createElement(Z,{id:n,key:n,keyField:o,"data-row-id":n,columns:rt,row:e,rowCount:Pt.length,rowIndex:t,selectableRows:v,expandableRows:ke,expandableIcon:I,highlightOnHover:p,pointerOnHover:h,dense:m,expandOnRowClicked:ze,expandOnRowDoubleClicked:Ve,expandableRowsComponent:De,expandableRowsComponentProps:Te,expandableRowsHideExpander:Be,defaultExpanderDisabled:l,defaultExpanded:a,expandableInheritConditionalStyles:We,conditionalRowStyles:Ke,selected:r,selectableRowsHighlight:w,selectableRowsComponent:P,selectableRowsComponentProps:R,selectableRowDisabled:N,selectableRowsSingle:b,striped:c,onRowExpandToggled:F,onRowClicked:It,onRowDoubleClicked:At,onRowMouseEnter:Dt,onRowMouseLeave:Tt,onSelectedRow:Lt,draggingColumnId:at,onDragStart:lt,onDragOver:ot,onDragEnd:dt,onDragEnter:it,onDragLeave:ct})})))))),St&&i.createElement("div",null,i.createElement(kt,{onChangePage:Ht,onChangeRowsPerPage:jt,rowCount:j||Pt.length,currentPage:mt,rowsPerPage:ht,direction:tt,paginationRowsPerPageOptions:V,paginationIconLastPage:U,paginationIconFirstPage:W,paginationIconNext:q,paginationIconPrevious:G,paginationComponentOptions:X})))}));t.jG=function(e="default",t,s="default"){return Xe[e]||(Xe[e]=Ge(Xe[s],t||{})),Xe[e]=Ge(Xe[e],t||{}),Xe[e]},t.ZP=Ze},921:function(e,t){"use strict";var s,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");s=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===i||e===l||e===p||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===o||e.$$typeof===c||e.$$typeof===u||e.$$typeof===s||void 0!==e.getModuleId)},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case i:case l:case p:case h:return e;default:switch(e=e&&e.$$typeof){case d:case c:case u:case g:case m:case o:return e;default:return t}}case r:return t}}}},864:function(e,t,s){"use strict";e.exports=s(921)},774:function(e){e.exports=function(e,t,s,n){var r=s?s.call(n,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),o=0;o<a.length;o++){var c=a[o];if(!i(c))return!1;var d=e[c],u=t[c];if(!1===(r=s?s.call(n,d,u,c):void 0)||void 0===r&&d!==u)return!1}return!0}},94:function(e,t,s){"use strict";s.r(t),s.d(t,{ServerStyleSheet:function(){return Be},StyleSheetConsumer:function(){return ae},StyleSheetContext:function(){return re},StyleSheetManager:function(){return ue},ThemeConsumer:function(){return Le},ThemeContext:function(){return Fe},ThemeProvider:function(){return Ie},__PRIVATE__:function(){return Ue},createGlobalStyle:function(){return je},css:function(){return Ee},default:function(){return We},isStyledComponent:function(){return E},keyframes:function(){return $e},useTheme:function(){return Ve},version:function(){return _},withTheme:function(){return ze}});var n=s(864),r=s(196),a=s.n(r),l=s(774),i=s.n(l),o=function(e){function t(e,n,o,c,p){for(var h,m,g,f,w,C=0,_=0,x=0,S=0,k=0,F=0,I=g=h=0,D=0,T=0,H=0,j=0,$=o.length,B=$-1,z="",V="",U="",W="";D<$;){if(m=o.charCodeAt(D),D===B&&0!==_+S+x+C&&(0!==_&&(m=47===_?10:47),S=x=C=0,$++,B++),0===_+S+x+C){if(D===B&&(0<T&&(z=z.replace(u,"")),0<z.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:z+=o.charAt(D)}m=59}switch(m){case 123:for(h=(z=z.trim()).charCodeAt(0),g=1,j=++D;D<$;){switch(m=o.charCodeAt(D)){case 123:g++;break;case 125:g--;break;case 47:switch(m=o.charCodeAt(D+1)){case 42:case 47:e:{for(I=D+1;I<B;++I)switch(o.charCodeAt(I)){case 47:if(42===m&&42===o.charCodeAt(I-1)&&D+2!==I){D=I+1;break e}break;case 10:if(47===m){D=I+1;break e}}D=I}}break;case 91:m++;case 40:m++;case 34:case 39:for(;D++<B&&o.charCodeAt(D)!==m;);}if(0===g)break;D++}if(g=o.substring(j,D),0===h&&(h=(z=z.replace(d,"").trim()).charCodeAt(0)),64===h){switch(0<T&&(z=z.replace(u,"")),m=z.charCodeAt(1)){case 100:case 109:case 115:case 45:T=n;break;default:T=O}if(j=(g=t(n,T,g,m,p+1)).length,0<L&&(w=i(3,g,T=s(O,z,H),n,N,M,j,m,p,c),z=T.join(""),void 0!==w&&0===(j=(g=w.trim()).length)&&(m=0,g="")),0<j)switch(m){case 115:z=z.replace(E,l);case 100:case 109:case 45:g=z+"{"+g+"}";break;case 107:g=(z=z.replace(v,"$1 $2"))+"{"+g+"}",g=1===R||2===R&&a("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=z+g,112===c&&(V+=g,g="")}else g=""}else g=t(n,s(n,z,H),g,c,p+1);U+=g,g=H=T=I=h=0,z="",m=o.charCodeAt(++D);break;case 125:case 59:if(1<(j=(z=(0<T?z.replace(u,""):z).trim()).length))switch(0===I&&(h=z.charCodeAt(0),45===h||96<h&&123>h)&&(j=(z=z.replace(" ",":")).length),0<L&&void 0!==(w=i(1,z,n,e,N,M,V.length,c,p,c))&&0===(j=(z=w.trim()).length)&&(z="\0\0"),h=z.charCodeAt(0),m=z.charCodeAt(1),h){case 0:break;case 64:if(105===m||99===m){W+=z+o.charAt(D);break}default:58!==z.charCodeAt(j-1)&&(V+=r(z,h,m,z.charCodeAt(2)))}H=T=I=h=0,z="",m=o.charCodeAt(++D)}}switch(m){case 13:case 10:47===_?_=0:0===1+h&&107!==c&&0<z.length&&(T=1,z+="\0"),0<L*A&&i(0,z,n,e,N,M,V.length,c,p,c),M=1,N++;break;case 59:case 125:if(0===_+S+x+C){M++;break}default:switch(M++,f=o.charAt(D),m){case 9:case 32:if(0===S+C+_)switch(k){case 44:case 58:case 9:case 32:f="";break;default:32!==m&&(f=" ")}break;case 0:f="\\0";break;case 12:f="\\f";break;case 11:f="\\v";break;case 38:0===S+_+C&&(T=H=1,f="\f"+f);break;case 108:if(0===S+_+C+P&&0<I)switch(D-I){case 2:112===k&&58===o.charCodeAt(D-3)&&(P=k);case 8:111===F&&(P=F)}break;case 58:0===S+_+C&&(I=D);break;case 44:0===_+x+S+C&&(T=1,f+="\r");break;case 34:case 39:0===_&&(S=S===m?0:0===S?m:S);break;case 91:0===S+_+x&&C++;break;case 93:0===S+_+x&&C--;break;case 41:0===S+_+C&&x--;break;case 40:0===S+_+C&&(0===h&&(2*k+3*F==533||(h=1)),x++);break;case 64:0===_+x+S+C+I+g&&(g=1);break;case 42:case 47:if(!(0<S+C+x))switch(_){case 0:switch(2*m+3*o.charCodeAt(D+1)){case 235:_=47;break;case 220:j=D,_=42}break;case 42:47===m&&42===k&&j+2!==D&&(33===o.charCodeAt(j+2)&&(V+=o.substring(j,D+1)),f="",_=0)}}0===_&&(z+=f)}F=k,k=m,D++}if(0<(j=V.length)){if(T=n,0<L&&void 0!==(w=i(2,V,T,e,N,M,j,c,p,c))&&0===(V=w).length)return W+V+U;if(V=T.join(",")+"{"+V+"}",0!=R*P){switch(2!==R||a(V,2)||(P=0),P){case 111:V=V.replace(y,":-moz-$1")+V;break;case 112:V=V.replace(b,"::-webkit-input-$1")+V.replace(b,"::-moz-$1")+V.replace(b,":-ms-input-$1")+V}P=0}}return W+V+U}function s(e,t,s){var r=t.trim().split(g);t=r;var a=r.length,l=e.length;switch(l){case 0:case 1:var i=0;for(e=0===l?"":e[0]+" ";i<a;++i)t[i]=n(e,t[i],s).trim();break;default:var o=i=0;for(t=[];i<a;++i)for(var c=0;c<l;++c)t[o++]=n(e[c]+" ",r[i],s).trim()}return t}function n(e,t,s){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(f,"$1"+e.trim());case 58:return e.trim()+t.replace(f,"$1"+e.trim());default:if(0<1*s&&0<t.indexOf("\f"))return t.replace(f,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,s,n){var l=e+";",i=2*t+3*s+4*n;if(944===i){e=l.indexOf(":",9)+1;var o=l.substring(e,l.length-1).trim();return o=l.substring(0,e).trim()+o+";",1===R||2===R&&a(o,1)?"-webkit-"+o+o:o}if(0===R||2===R&&!a(l,1))return l;switch(i){case 1015:return 97===l.charCodeAt(10)?"-webkit-"+l+l:l;case 951:return 116===l.charCodeAt(3)?"-webkit-"+l+l:l;case 963:return 110===l.charCodeAt(5)?"-webkit-"+l+l:l;case 1009:if(100!==l.charCodeAt(4))break;case 969:case 942:return"-webkit-"+l+l;case 978:return"-webkit-"+l+"-moz-"+l+l;case 1019:case 983:return"-webkit-"+l+"-moz-"+l+"-ms-"+l+l;case 883:if(45===l.charCodeAt(8))return"-webkit-"+l+l;if(0<l.indexOf("image-set(",11))return l.replace(k,"$1-webkit-$2")+l;break;case 932:if(45===l.charCodeAt(4))switch(l.charCodeAt(5)){case 103:return"-webkit-box-"+l.replace("-grow","")+"-webkit-"+l+"-ms-"+l.replace("grow","positive")+l;case 115:return"-webkit-"+l+"-ms-"+l.replace("shrink","negative")+l;case 98:return"-webkit-"+l+"-ms-"+l.replace("basis","preferred-size")+l}return"-webkit-"+l+"-ms-"+l+l;case 964:return"-webkit-"+l+"-ms-flex-"+l+l;case 1023:if(99!==l.charCodeAt(8))break;return"-webkit-box-pack"+(o=l.substring(l.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+l+"-ms-flex-pack"+o+l;case 1005:return h.test(l)?l.replace(p,":-webkit-")+l.replace(p,":-moz-")+l:l;case 1e3:switch(t=(o=l.substring(13).trim()).indexOf("-")+1,o.charCodeAt(0)+o.charCodeAt(t)){case 226:o=l.replace(w,"tb");break;case 232:o=l.replace(w,"tb-rl");break;case 220:o=l.replace(w,"lr");break;default:return l}return"-webkit-"+l+"-ms-"+o+l;case 1017:if(-1===l.indexOf("sticky",9))break;case 975:switch(t=(l=e).length-10,i=(o=(33===l.charCodeAt(t)?l.substring(0,t):l).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|o.charCodeAt(7))){case 203:if(111>o.charCodeAt(8))break;case 115:l=l.replace(o,"-webkit-"+o)+";"+l;break;case 207:case 102:l=l.replace(o,"-webkit-"+(102<i?"inline-":"")+"box")+";"+l.replace(o,"-webkit-"+o)+";"+l.replace(o,"-ms-"+o+"box")+";"+l}return l+";";case 938:if(45===l.charCodeAt(5))switch(l.charCodeAt(6)){case 105:return o=l.replace("-items",""),"-webkit-"+l+"-webkit-box-"+o+"-ms-flex-"+o+l;case 115:return"-webkit-"+l+"-ms-flex-item-"+l.replace(_,"")+l;default:return"-webkit-"+l+"-ms-flex-line-pack"+l.replace("align-content","").replace(_,"")+l}break;case 973:case 989:if(45!==l.charCodeAt(3)||122===l.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(o=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,s,n).replace(":fill-available",":stretch"):l.replace(o,"-webkit-"+o)+l.replace(o,"-moz-"+o.replace("fill-",""))+l;break;case 962:if(l="-webkit-"+l+(102===l.charCodeAt(5)?"-ms-"+l:"")+l,211===s+n&&105===l.charCodeAt(13)&&0<l.indexOf("transform",10))return l.substring(0,l.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+l}return l}function a(e,t){var s=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?s:10);return s=e.substring(s+1,e.length-1),I(2!==t?n:n.replace(x,"$1"),s,t)}function l(e,t){var s=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return s!==t+";"?s.replace(C," or ($1)").substring(4):"("+t+")"}function i(e,t,s,n,r,a,l,i,o,d){for(var u,p=0,h=t;p<L;++p)switch(u=F[p].call(c,e,h,s,n,r,a,l,i,o,d)){case void 0:case!1:case!0:case null:break;default:h=u}if(h!==t)return h}function o(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?R=1:(R=2,I=e):R=0),o}function c(e,s){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<L){var r=i(-1,s,n,n,N,M,0,0,0,0);void 0!==r&&"string"==typeof r&&(s=r)}var a=t(O,n,s,0,0);return 0<L&&void 0!==(r=i(-2,a,n,n,N,M,a.length,0,0,0))&&(a=r),P=0,M=N=1,a}var d=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,h=/zoo|gra/,m=/([,: ])(transform)/g,g=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,_=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,M=1,N=1,P=0,R=1,O=[],F=[],L=0,I=null,A=0;return c.use=function e(t){switch(t){case void 0:case null:L=F.length=0;break;default:if("function"==typeof t)F[L++]=t;else if("object"==typeof t)for(var s=0,n=t.length;s<n;++s)e(t[s]);else A=0|!!t}return e},c.set=o,void 0!==e&&o(e),c},c={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},d=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,u=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=(s=e,d.test(s)||111===s.charCodeAt(0)&&110===s.charCodeAt(1)&&s.charCodeAt(2)<91)),t[e];var s}}(),p=s(679),h=s.n(p);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e}).apply(this,arguments)}var g=function(e,t){for(var s=[e[0]],n=0,r=t.length;n<r;n+=1)s.push(t[n],e[n+1]);return s},f=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},v=Object.freeze([]),b=Object.freeze({});function y(e){return"function"==typeof e}function w(e){return e.displayName||e.name||"Component"}function E(e){return e&&"string"==typeof e.styledComponentId}var C="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",_="5.3.6",x="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),k={};function M(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(s.length>0?" Args: "+s.join(", "):""))}var N=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,s=0;s<e;s++)t+=this.groupSizes[s];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var s=this.groupSizes,n=s.length,r=n;e>=r;)(r<<=1)<0&&M(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(s),this.length=r;for(var a=n;a<r;a++)this.groupSizes[a]=0}for(var l=this.indexOfGroup(e+1),i=0,o=t.length;i<o;i++)this.tag.insertRule(l,t[i])&&(this.groupSizes[e]++,l++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],s=this.indexOfGroup(e),n=s+t;this.groupSizes[e]=0;for(var r=s;r<n;r++)this.tag.deleteRule(s)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var s=this.groupSizes[e],n=this.indexOfGroup(e),r=n+s,a=n;a<r;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),P=new Map,R=new Map,O=1,F=function(e){if(P.has(e))return P.get(e);for(;R.has(O);)O++;var t=O++;return P.set(e,t),R.set(t,e),t},L=function(e){return R.get(e)},I=function(e,t){t>=O&&(O=t+1),P.set(e,t),R.set(t,e)},A="style["+C+'][data-styled-version="5.3.6"]',D=new RegExp("^"+C+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),T=function(e,t,s){for(var n,r=s.split(","),a=0,l=r.length;a<l;a++)(n=r[a])&&e.registerName(t,n)},H=function(e,t){for(var s=(t.textContent||"").split("/*!sc*/\n"),n=[],r=0,a=s.length;r<a;r++){var l=s[r].trim();if(l){var i=l.match(D);if(i){var o=0|parseInt(i[1],10),c=i[2];0!==o&&(I(c,o),T(e,c,i[3]),e.getTag().insertRules(o,n)),n.length=0}else n.push(l)}}},j=function(){return s.nc},$=function(e){var t=document.head,s=e||t,n=document.createElement("style"),r=function(e){for(var t=e.childNodes,s=t.length;s>=0;s--){var n=t[s];if(n&&1===n.nodeType&&n.hasAttribute(C))return n}}(s),a=void 0!==r?r.nextSibling:null;n.setAttribute(C,"active"),n.setAttribute("data-styled-version","5.3.6");var l=j();return l&&n.setAttribute("nonce",l),s.insertBefore(n,a),n},B=function(){function e(e){var t=this.element=$(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,s=0,n=t.length;s<n;s++){var r=t[s];if(r.ownerNode===e)return r}M(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),z=function(){function e(e){var t=this.element=$(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var s=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(s,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),V=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=x,W={isServer:!x,useCSSOMInjection:!S},q=function(){function e(e,t,s){void 0===e&&(e=b),void 0===t&&(t={}),this.options=m({},W,{},e),this.gs=t,this.names=new Map(s),this.server=!!e.isServer,!this.server&&x&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(A),s=0,n=t.length;s<n;s++){var r=t[s];r&&"active"!==r.getAttribute(C)&&(H(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return F(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,s){return void 0===s&&(s=!0),new e(m({},this.options,{},t),this.gs,s&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(s=(t=this.options).isServer,n=t.useCSSOMInjection,r=t.target,e=s?new V(r):n?new B(r):new z(r),new N(e)));var e,t,s,n,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(F(e),this.names.has(e))this.names.get(e).add(t);else{var s=new Set;s.add(t),this.names.set(e,s)}},t.insertRules=function(e,t,s){this.registerName(e,t),this.getTag().insertRules(F(e),s)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(F(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),s=t.length,n="",r=0;r<s;r++){var a=L(r);if(void 0!==a){var l=e.names.get(a),i=t.getGroup(r);if(l&&i&&l.size){var o=C+".g"+r+'[id="'+a+'"]',c="";void 0!==l&&l.forEach((function(e){e.length>0&&(c+=e+",")})),n+=""+i+o+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),G=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function X(e){var t,s="";for(t=Math.abs(e);t>52;t=t/52|0)s=Y(t%52)+s;return(Y(t%52)+s).replace(G,"$1-$2")}var J=function(e,t){for(var s=t.length;s;)e=33*e^t.charCodeAt(--s);return e},Z=function(e){return J(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var s=e[t];if(y(s)&&!E(s))return!1}return!0}var Q=Z("5.3.6"),ee=function(){function e(e,t,s){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===s||s.isStatic)&&K(e),this.componentId=t,this.baseHash=J(Q,t),this.baseStyle=s,q.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,s){var n=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,s)),this.isStatic&&!s.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))r.push(this.staticRulesId);else{var a=ye(this.rules,e,t,s).join(""),l=X(J(this.baseHash,a)>>>0);if(!t.hasNameForId(n,l)){var i=s(a,"."+l,void 0,n);t.insertRules(n,l,i)}r.push(l),this.staticRulesId=l}else{for(var o=this.rules.length,c=J(this.baseHash,s.hash),d="",u=0;u<o;u++){var p=this.rules[u];if("string"==typeof p)d+=p;else if(p){var h=ye(p,e,t,s),m=Array.isArray(h)?h.join(""):h;c=J(c,m+u),d+=m}}if(d){var g=X(c>>>0);if(!t.hasNameForId(n,g)){var f=s(d,"."+g,void 0,n);t.insertRules(n,g,f)}r.push(g)}}return r.join(" ")},e}(),te=/^\s*\/\/.*$/gm,se=[":","[",".","#"];function ne(e){var t,s,n,r,a=void 0===e?b:e,l=a.options,i=void 0===l?b:l,c=a.plugins,d=void 0===c?v:c,u=new o(i),p=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(s,n,r,a,l,i,o,c,d,u){switch(s){case 1:if(0===d&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(r[0]+n),"";default:return n+(0===u?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),m=function(e,n,a){return 0===n&&-1!==se.indexOf(a[s.length])||a.match(r)?e:"."+t};function g(e,a,l,i){void 0===i&&(i="&");var o=e.replace(te,""),c=a&&l?l+" "+a+" { "+o+" }":o;return t=i,s=a,n=new RegExp("\\"+s+"\\b","g"),r=new RegExp("(\\"+s+"\\b){2,}"),u(l||!a?"":a,c)}return u.use([].concat(d,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(s)>0&&(r[0]=r[0].replace(n,m))},h,function(e){if(-2===e){var t=p;return p=[],t}}])),g.hash=d.length?d.reduce((function(e,t){return t.name||M(15),J(e,t.name)}),5381).toString():"",g}var re=a().createContext(),ae=re.Consumer,le=a().createContext(),ie=(le.Consumer,new q),oe=ne();function ce(){return(0,r.useContext)(re)||ie}function de(){return(0,r.useContext)(le)||oe}function ue(e){var t=(0,r.useState)(e.stylisPlugins),s=t[0],n=t[1],l=ce(),o=(0,r.useMemo)((function(){var t=l;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,r.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:s})}),[e.disableVendorPrefixes,s]);return(0,r.useEffect)((function(){i()(s,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),a().createElement(re.Provider,{value:o},a().createElement(le.Provider,{value:c},e.children))}var pe=function(){function e(e,t){var s=this;this.inject=function(e,t){void 0===t&&(t=oe);var n=s.name+t.hash;e.hasNameForId(s.id,n)||e.insertRules(s.id,n,t(s.rules,n,"@keyframes"))},this.toString=function(){return M(12,String(s.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=oe),this.name+e.hash},e}(),he=/([A-Z])/,me=/([A-Z])/g,ge=/^ms-/,fe=function(e){return"-"+e.toLowerCase()};function ve(e){return he.test(e)?e.replace(me,fe).replace(ge,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function ye(e,t,s,n){if(Array.isArray(e)){for(var r,a=[],l=0,i=e.length;l<i;l+=1)""!==(r=ye(e[l],t,s,n))&&(Array.isArray(r)?a.push.apply(a,r):a.push(r));return a}return be(e)?"":E(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(o=e)||o.prototype&&o.prototype.isReactComponent||!t?e:ye(e(t),t,s,n):e instanceof pe?s?(e.inject(s,n),e.getName(n)):e:f(e)?function e(t,s){var n,r,a=[];for(var l in t)t.hasOwnProperty(l)&&!be(t[l])&&(Array.isArray(t[l])&&t[l].isCss||y(t[l])?a.push(ve(l)+":",t[l],";"):f(t[l])?a.push.apply(a,e(t[l],l)):a.push(ve(l)+": "+(n=l,(null==(r=t[l])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in c?String(r).trim():r+"px")+";")));return s?[s+" {"].concat(a,["}"]):a}(e):e.toString();var o}var we=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ee(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return y(e)||f(e)?we(ye(g(v,[e].concat(s)))):0===s.length&&1===e.length&&"string"==typeof e[0]?e:we(ye(g(e,s)))}new Set;var Ce=function(e,t,s){return void 0===s&&(s=b),e.theme!==s.theme&&e.theme||t||s.theme},_e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xe=/(^-|-$)/g;function Se(e){return e.replace(_e,"-").replace(xe,"")}var ke=function(e){return X(Z(e)>>>0)};function Me(e){return"string"==typeof e&&!0}var Ne=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Pe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Re(e,t,s){var n=e[s];Ne(t)&&Ne(n)?Oe(n,t):e[s]=t}function Oe(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];for(var r=0,a=s;r<a.length;r++){var l=a[r];if(Ne(l))for(var i in l)Pe(i)&&Re(e,l[i],i)}return e}var Fe=a().createContext(),Le=Fe.Consumer;function Ie(e){var t=(0,r.useContext)(Fe),s=(0,r.useMemo)((function(){return function(e,t){return e?y(e)?e(t):Array.isArray(e)||"object"!=typeof e?M(8):t?m({},t,{},e):e:M(14)}(e.theme,t)}),[e.theme,t]);return e.children?a().createElement(Fe.Provider,{value:s},e.children):null}var Ae={};function De(e,t,s){var n=E(e),l=!Me(e),i=t.attrs,o=void 0===i?v:i,c=t.componentId,d=void 0===c?function(e,t){var s="string"!=typeof e?"sc":Se(e);Ae[s]=(Ae[s]||0)+1;var n=s+"-"+ke("5.3.6"+s+Ae[s]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):c,p=t.displayName,g=void 0===p?function(e){return Me(e)?"styled."+e:"Styled("+w(e)+")"}(e):p,f=t.displayName&&t.componentId?Se(t.displayName)+"-"+t.componentId:t.componentId||d,C=n&&e.attrs?Array.prototype.concat(e.attrs,o).filter(Boolean):o,_=t.shouldForwardProp;n&&e.shouldForwardProp&&(_=t.shouldForwardProp?function(s,n,r){return e.shouldForwardProp(s,n,r)&&t.shouldForwardProp(s,n,r)}:e.shouldForwardProp);var x,S=new ee(s,f,n?e.componentStyle:void 0),k=S.isStatic&&0===o.length,M=function(e,t){return function(e,t,s,n){var a=e.attrs,l=e.componentStyle,i=e.defaultProps,o=e.foldedComponentIds,c=e.shouldForwardProp,d=e.styledComponentId,p=e.target,h=function(e,t,s){void 0===e&&(e=b);var n=m({},t,{theme:e}),r={};return s.forEach((function(e){var t,s,a,l=e;for(t in y(l)&&(l=l(n)),l)n[t]=r[t]="className"===t?(s=r[t],a=l[t],s&&a?s+" "+a:s||a):l[t]})),[n,r]}(Ce(t,(0,r.useContext)(Fe),i)||b,t,a),g=h[0],f=h[1],v=function(e,t,s,n){var r=ce(),a=de();return t?e.generateAndInjectStyles(b,r,a):e.generateAndInjectStyles(s,r,a)}(l,n,g),w=s,E=f.$as||t.$as||f.as||t.as||p,C=Me(E),_=f!==t?m({},t,{},f):t,x={};for(var S in _)"$"!==S[0]&&"as"!==S&&("forwardedAs"===S?x.as=_[S]:(c?c(S,u,E):!C||u(S))&&(x[S]=_[S]));return t.style&&f.style!==t.style&&(x.style=m({},t.style,{},f.style)),x.className=Array.prototype.concat(o,d,v!==d?v:null,t.className,f.className).filter(Boolean).join(" "),x.ref=w,(0,r.createElement)(E,x)}(x,e,t,k)};return M.displayName=g,(x=a().forwardRef(M)).attrs=C,x.componentStyle=S,x.displayName=g,x.shouldForwardProp=_,x.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,x.styledComponentId=f,x.target=n?e.target:e,x.withComponent=function(e){var n=t.componentId,r=function(e,t){if(null==e)return{};var s,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)s=a[n],t.indexOf(s)>=0||(r[s]=e[s]);return r}(t,["componentId"]),a=n&&n+"-"+(Me(e)?e:Se(w(e)));return De(e,m({},r,{attrs:C,componentId:a}),s)},Object.defineProperty(x,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Oe({},e.defaultProps,t):t}}),x.toString=function(){return"."+x.styledComponentId},l&&h()(x,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),x}var Te=function(e){return function e(t,s,r){if(void 0===r&&(r=b),!(0,n.isValidElementType)(s))return M(1,String(s));var a=function(){return t(s,r,Ee.apply(void 0,arguments))};return a.withConfig=function(n){return e(t,s,m({},r,{},n))},a.attrs=function(n){return e(t,s,m({},r,{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},a}(De,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Te[e]=Te(e)}));var He=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),q.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,s,n){var r=n(ye(this.rules,t,s,n).join(""),""),a=this.componentId+e;s.insertRules(a,a,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,s,n){e>2&&q.registerId(this.componentId+e),this.removeStyles(e,s),this.createStyles(e,t,s,n)},e}();function je(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];var l=Ee.apply(void 0,[e].concat(s)),i="sc-global-"+ke(JSON.stringify(l)),o=new He(l,i);function c(e){var t=ce(),s=de(),n=(0,r.useContext)(Fe),a=(0,r.useRef)(t.allocateGSInstance(i)).current;return t.server&&d(a,e,t,n,s),(0,r.useLayoutEffect)((function(){if(!t.server)return d(a,e,t,n,s),function(){return o.removeStyles(a,t)}}),[a,e,t,n,s]),null}function d(e,t,s,n,r){if(o.isStatic)o.renderStyles(e,k,s,r);else{var a=m({},t,{theme:Ce(t,n,c.defaultProps)});o.renderStyles(e,a,s,r)}}return a().memo(c)}function $e(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];var r=Ee.apply(void 0,[e].concat(s)).join(""),a=ke(r);return new pe(a,r)}var Be=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var s=j();return"<style "+[s&&'nonce="'+s+'"',C+'="true"','data-styled-version="5.3.6"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?M(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return M(2);var s=((t={})[C]="",t["data-styled-version"]="5.3.6",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=j();return n&&(s.nonce=n),[a().createElement("style",m({},s,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new q({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?M(2):a().createElement(ue,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return M(3)},e}(),ze=function(e){var t=a().forwardRef((function(t,s){var n=(0,r.useContext)(Fe),l=e.defaultProps,i=Ce(t,n,l);return a().createElement(e,m({},t,{theme:i,ref:s}))}));return h()(t,e),t.displayName="WithTheme("+w(e)+")",t},Ve=function(){return(0,r.useContext)(Fe)},Ue={StyleSheet:q,masterSheet:ie},We=Te},196:function(e){"use strict";e.exports=window.React}},t={};function s(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,s),a.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0,function(){"use strict";var e=window.wp.element,t=s(669),n=s.n(t),r=e=>{let t=window.location.href;if(-1===t.indexOf("#"))return!1;let s=t.split("#");if(1===s.length)return!1;let n=s[1];if("menu"===e){if(-1===n.indexOf("/"))return!1;{let e=n.split("/");return!(e.length<=1)&&e[1]}}return-1===n.indexOf("/")?n:n.split("/")[0]};const a=()=>"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),l=e=>{let t=r("main"),s={headers:{"X-WP-Nonce":rsssl_settings.nonce,"rsssl-nonce":rsssl_settings.nonce}},a={nonce:rsssl_settings.rsssl_nonce};e.push(a);let l=-1!==rsssl_settings.site_url.indexOf("?")?"&":"?";return n().post(rsssl_settings.site_url+"reallysimplessl/v1/fields/set"+l+t,e,s)},i=(e,t,s)=>{let r={headers:{"X-WP-Nonce":rsssl_settings.nonce}};s&&(s=encodeURIComponent(JSON.stringify(s)));let l=-1!==rsssl_settings.site_url.indexOf("?")?"&":"?";return n().get(rsssl_settings.site_url+"reallysimplessl/v1/tests/"+e+l+"state="+t+"&nonce="+rsssl_settings.rsssl_nonce+a()+"&data="+s,r)},o=(e,t)=>{let s={headers:{"X-WP-Nonce":rsssl_settings.nonce}},r=-1!==rsssl_settings.site_url.indexOf("?")?"&":"?";return n().get(rsssl_settings.site_url+"reallysimplessl/v1/tests/"+e+r+"letsencrypt=1&id="+t+"&nonce="+rsssl_settings.rsssl_nonce+a(),s)},c=(e,t)=>{let s={headers:{"X-WP-Nonce":rsssl_settings.nonce}};return t.nonce=rsssl_settings.rsssl_nonce,n().post(rsssl_settings.site_url+"reallysimplessl/v1/do_action/"+e,t,s)};var d=window.wp.i18n;class u extends e.Component{constructor(){super(...arguments)}handleClick(e){this.props.selectMainMenu(e)}componentDidMount(){this.handleClick=this.handleClick.bind(this)}render(){let t=rsssl_settings.plugin_url,s=this.props.selectedMainMenuItem;var n=Object.values(this.props.superMenu);n=n.filter((e=>null!==e));let a=r("main");return n=n.filter((e=>!e.default_hidden||a===e.id)),(0,e.createElement)("div",{className:"rsssl-header-container"},(0,e.createElement)("div",{className:"rsssl-header"},(0,e.createElement)("img",{className:"rsssl-logo",src:t+"assets/img/really-simple-ssl-logo.svg",alt:"Really Simple SSL logo"}),(0,e.createElement)("div",{className:"rsssl-header-left"},(0,e.createElement)("nav",{className:"rsssl-header-menu"},(0,e.createElement)("ul",null,n.map(((t,n)=>(0,e.createElement)("li",{key:n},(0,e.createElement)("a",{className:s===t.id?"active":"",onClick:()=>this.handleClick(t.id),href:"#"+t.id.toString()},t.title))))))),(0,e.createElement)("div",{className:"rsssl-header-right"},(0,e.createElement)("a",{className:"rsssl-knowledge-base-link",href:"https://really-simple-ssl.com/knowledge-base",target:"_blank"},(0,d.__)("Documentation","really-simple-ssl")),rsssl_settings.pro_plugin_active&&(0,e.createElement)("a",{href:"https://wordpress.org/support/plugin/really-simple-ssl/",className:"button button-black",target:"_blank"},(0,d.__)("Support","really-simple-ssl")),!rsssl_settings.pro_plugin_active&&(0,e.createElement)("a",{href:rsssl_settings.upgrade_link,className:"button button-black",target:"_blank"},(0,d.__)("Go Pro","really-simple-ssl")))))}}var p=u,h=t=>{const{name:s,color:n,size:r}=t,a=s||"bullet",l=n||"black",i=r||15,o={black:"var(--rsp-black)",green:"var(--rsp-green)",yellow:"var(--rsp-yellow)",orange:"var(--rsp-yellow)",red:"var(--rsp-red)",grey:"var(--rsp-grey-400)"};let c="";return"bullet"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"}))}),"circle"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"check"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"warning"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"}))}),"error"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"}))}),"times"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"}))}),"circle-check"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"}))}),"circle-times"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"}))}),"chevron-up"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"}))}),"chevron-down"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"}))}),"chevron-right"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"}))}),"chevron-left"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"}))}),"plus"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"}))}),"minus"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"}))}),"sync"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"}))}),"sync-error"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"}))}),"shortcode"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"}))}),"file"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"}))}),"file-disabled"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"}))}),"file-download"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"}))}),"calendar"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"}))}),"calendar-error"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"}))}),"help"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"}))}),"copy"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"}))}),"info"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"}))}),"list"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"}))}),"external-link"===a&&(c={html:(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:i},(0,e.createElement)("path",{fill:o[l],d:"M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"}))}),"shield"===a&&(c={html:(0,e.createElement)("svg",{height:i,"aria-hidden":"true",focusable:"false",role:"img",id:"uuid-026a4e87-44db-4336-a398-3c29d25b7317",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"},(0,e.createElement)("path",{fill:"#f9c23e",d:"M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"}),(0,e.createElement)("g",null,(0,e.createElement)("g",null,(0,e.createElement)("rect",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",x:"155",y:"266.8",width:"77.6",height:"6"}),(0,e.createElement)("path",{fill:"#1d2327",d:"M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"})),(0,e.createElement)("g",null,(0,e.createElement)("path",{fill:"#1d2327",d:"M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"}),(0,e.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"}),(0,e.createElement)("path",{class:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"}),(0,e.createElement)("path",{class:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"}),(0,e.createElement)("path",{class:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"}),(0,e.createElement)("path",{class:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"}))))}),(0,e.createElement)("div",{className:"rsssl-icon rsssl-icon-"+a},c.html)};class m extends e.Component{constructor(){super(...arguments)}handleClick(){this.props.highLightField(this.props.notice.output.highlight_field_id)}componentDidMount(){this.handleClick=this.handleClick.bind(this)}render(){let t=this.props.notice,s="premium"===t.output.icon,n=t.output.url&&-1!==t.output.url.indexOf("really-simple-ssl.com");return(0,e.createElement)("div",{className:"rsssl-task-element"},(0,e.createElement)("span",{className:"rsssl-task-status rsssl-"+t.output.icon},t.output.label),(0,e.createElement)("p",{className:"rsssl-task-message",dangerouslySetInnerHTML:{__html:t.output.msg}}),n&&t.output.url&&(0,e.createElement)("a",{target:"_blank",href:t.output.url},(0,d.__)("More info","really-simple-ssl")),!s&&!n&&t.output.url&&(0,e.createElement)("a",{className:"rsssl-task-enable button button-secondary",href:t.output.url},(0,d.__)("Fix","really-simple-ssl")),!s&&t.output.highlight_field_id&&(0,e.createElement)("span",{className:"rsssl-task-enable button button-secondary",onClick:this.handleClick},(0,d.__)("Fix","really-simple-ssl")),t.output.plusone&&(0,e.createElement)("span",{className:"rsssl-plusone"},"1"),t.output.dismissible&&"completed"!==t.output.status&&(0,e.createElement)("div",{className:"rsssl-task-dismiss"},(0,e.createElement)("button",{type:"button","data-id":t.id,onClick:this.props.onCloseTaskHandler},(0,e.createElement)(h,{name:"times"}))))}}var g=m;class f extends e.Component{constructor(){super(...arguments)}render(){let t=this.props.lines;return t||(t=4),(0,e.createElement)("div",{className:"rsssl-placeholder"},Array.from({length:t}).map(((t,s)=>(0,e.createElement)("div",{className:"rsssl-placeholder-line",key:s}))))}}var v=f;class b extends e.Component{constructor(){super(...arguments),this.percentageCompleted=0,this.progressText="",this.filter="all",this.notices=null,this.progressLoaded=!1,this.fields=this.props.fields,this.state={progressText:"",filter:"all",notices:null,percentageCompleted:0,progressLoaded:!1}}componentDidMount(){this.getProgressData=this.getProgressData.bind(this),this.onCloseTaskHandler=this.onCloseTaskHandler.bind(this),this.getProgressData()}componentDidUpdate(){this.fields!==this.props.fields&&(this.fields=this.props.fields,this.getProgressData())}getStyles(){return Object.assign({},{width:this.percentageCompleted+"%"})}getProgressData(){i("progressData","refresh").then((e=>{this.progressText=e.data.text,this.filter=e.data.filter,this.percentageCompleted=e.data.percentage,this.notices=e.data.notices,this.progressLoaded=!0,this.setState({progressLoaded:this.progressLoaded,progressText:this.progressText,filter:this.filter,notices:this.notices,percentageCompleted:this.percentageCompleted}),this.props.setBlockProps("notices",this.notices)}))}onCloseTaskHandler(e){let t=e.target.closest("button"),s=t.getAttribute("data-id"),n=t.closest(".rsssl-task-element");n.animate({marginLeft:["0px","-1000px"]},{duration:500,easing:"linear",iterations:1,fill:"both"}).onfinish=function(){n.parentElement.removeChild(n)};let r=this.props.BlockProps.notices;return r=r.filter((function(e){return e.id!==s})),this.props.setBlockProps("notices",r),i("dismiss_task",s).then((e=>{this.percentageCompleted=e.data.percentage,this.setState({percentageCompleted:this.percentageCompleted})}))}render(){let t="";if(this.percentageCompleted<80&&(t+="rsssl-orange"),!this.progressLoaded)return(0,e.createElement)(v,{lines:"9"});let s="all";this.props.BlockProps&&this.props.BlockProps.filterStatus&&(s=this.props.BlockProps.filterStatus);let n=this.notices;return"remaining"===s&&(n=n.filter((function(e){return"open"===e.output.status}))),(0,e.createElement)("div",{className:"rsssl-progress-block"},(0,e.createElement)("div",{className:"rsssl-progress-bar"},(0,e.createElement)("div",{className:"rsssl-progress"},(0,e.createElement)("div",{className:"rsssl-bar "+t,style:this.getStyles()}))),(0,e.createElement)("div",{className:"rsssl-progress-text"},(0,e.createElement)("h1",{className:"rsssl-progress-percentage"},this.percentageCompleted,"%"),(0,e.createElement)("h5",{className:"rsssl-progress-text-span"},this.progressText)),(0,e.createElement)("div",{className:"rsssl-scroll-container"},n.map(((t,s)=>(0,e.createElement)(g,{key:s,index:s,notice:t,onCloseTaskHandler:this.onCloseTaskHandler,highLightField:this.props.highLightField})))))}}var y=b;class w extends e.Component{constructor(){super(...arguments),this.filter="all"}componentDidMount(){this.onClickHandler=this.onClickHandler.bind(this),this.setState({filter:this.filter})}onClickHandler(e){let t=e.target.getAttribute("data-filter");"all"!==t&&"remaining"!==t||(this.filter=t,this.setState({filter:this.filter}),this.props.setBlockProps("filterStatus",t),sessionStorage.rsssl_task_filter=t)}render(){"undefined"!=typeof Storage&&sessionStorage.rsssl_task_filter&&(this.filter=sessionStorage.rsssl_task_filter);let t=0,s=0,n=[];return this.props.BlockProps&&this.props.BlockProps.notices&&(n=this.props.BlockProps.notices,t=n.length,s=n.filter((function(e){return"open"===e.output.status})).length),(0,e.createElement)("div",{className:"rsssl-task-switcher-container rsssl-active-filter-"+this.filter},(0,e.createElement)("span",{className:"rsssl-task-switcher rsssl-all-tasks",onClick:this.onClickHandler,htmlFor:"rsssl-all-tasks","data-filter":"all"},(0,d.__)("All tasks","really-simple-ssl"),(0,e.createElement)("span",{className:"rsssl_task_count"},"(",t,")")),(0,e.createElement)("span",{className:"rsssl-task-switcher rsssl-remaining-tasks",onClick:this.onClickHandler,htmlFor:"rsssl-remaining-tasks","data-filter":"remaining"},(0,d.__)("Remaining tasks","really-simple-ssl"),(0,e.createElement)("span",{className:"rsssl_task_count"},"(",s,")")))}}var E=w;s(145);var C=s(196),_=function(e,t){var s,n=(s=(0,C.useRef)(!0)).current?(s.current=!1,!0):s.current;(0,C.useEffect)((function(){if(!n)return e()}),t)},x=window.wp.components;class S extends e.Component{constructor(){super(...arguments)}render(){let t="",s="",n="";if(-1!==this.props.text.indexOf("%s")){let e=this.props.text.split(/%s/);t=e[0],n=e[1],s=e[2]}else n=this.props.text;let r=this.props.className?this.props.className:"rsssl-link";return(0,e.createElement)(e.Fragment,null,t," ",(0,e.createElement)("a",{className:r,target:this.props.target,href:this.props.url},n),s)}}var k=S;class M extends e.Component{constructor(){super(...arguments)}componentDidMount(){}render(){let t=this.props.field,s=[];return s.name=1==t.value?"circle-check":"circle-times",s.color=1==t.value?"green":"red",(0,e.createElement)("div",{className:"rsssl-new-feature"},(0,e.createElement)(h,{name:s.name,color:s.color}),(0,e.createElement)("div",{className:"rsssl-new-feature-label"},1==t.value&&t.new_features_block.active,1!=t.value&&t.new_features_block.readmore.length>0&&(0,e.createElement)(k,{target:"_blank",text:t.new_features_block.inactive+" - "+(0,d.__)("%sRead more%s","really-simple-ssl"),url:t.new_features_block.readmore})))}}var N=M;class P extends e.Component{constructor(){super(...arguments)}componentDidMount(){}render(){if(this.props.fields&&0==this.props.fields.length)return(0,e.createElement)(v,null);let t=this.props.fields;return t=t.filter((e=>e.new_features_block)),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-new-features"},t.map(((s,n)=>(0,e.createElement)(N,{key:n,index:n,field:s,fields:t})))),(0,e.createElement)("div",{className:"rsssl-new-feature-desc"},(0,e.createElement)("p",null,(0,d.__)("Improve WordPress security.","really-simple-ssl")," ",(0,e.createElement)(k,{target:"_blank",text:(0,d.__)("Check our %sdocumentation%s","really-simple-ssl"),url:"https://really-simple-ssl.com/instructions/about-hardening-features"})," ",(0,e.createElement)(k,{target:"_blank",text:(0,d.__)("or use the %sWordPress forum%s.","really-simple-ssl"),url:"https://wordpress.org/support/plugin/really-simple-ssl/"}))))}}var R=P;class O extends e.Component{constructor(){super(...arguments)}render(){return(0,e.createElement)("a",{className:"button button-default",href:"#settings"},(0,d.__)("Settings","really-simple-ssl"))}}var F={SecurityFeaturesBlock:R,SecurityFeaturesFooter:O,ProgressBlock:y,ProgressHeader:E,ProgressFooter:t=>{const[s,n]=(0,e.useState)(!1),[r,a]=(0,e.useState)(!1);if((0,e.useEffect)((()=>{i("ssl_status_data").then((e=>{n(e.data.certificate_is_valid),a(!0)}))}),[]),!r)return(0,e.createElement)(e.Fragment,null);let l=t.fields.filter((e=>"redirect"===e.id))[0].value,o=t.fields.filter((e=>"ssl_enabled"===e.id))[0].value,c=rsssl_settings.wpconfig_fix_required,u=t.fields.filter((e=>"mixed_content_fixer"===e.id))[0].value,p="wp_redirect"===l||"htaccess"===l,m=o?(0,d.__)("SSL Activated","really-simple-ssl"):(0,d.__)("SSL not activated","really-simple-ssl"),g=o?"circle-check":"circle-times",f=o?"green":"red",v=p?"circle-check":"circle-times",b=p?"green":"red",y=u?"circle-check":"circle-times",w=u?"green":"red",E=c?"disabled":"";return(0,e.createElement)(e.Fragment,null,!o&&(0,e.createElement)("button",{disabled:E,onClick:()=>{t.setShowOnBoardingModal(!0)},className:"button button-primary"},(0,d.__)("Activate SSL","really-simple-ssl")),rsssl_settings.pro_plugin_active&&(0,e.createElement)("span",{className:"rsssl-footer-left"},"Really Simple SSL Pro ",rsssl_settings.pro_version),!rsssl_settings.pro_plugin_active&&(0,e.createElement)("a",{href:rsssl_settings.upgrade_link,target:"_blank",className:"button button-default"},(0,d.__)("Go Pro","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-legend"},(0,e.createElement)(h,{name:g,color:f}),(0,e.createElement)("div",null,m)),(0,e.createElement)("div",{className:"rsssl-legend"},(0,e.createElement)(h,{name:y,color:w}),(0,e.createElement)("div",null,(0,d.__)("Mixed content","really-simple-ssl"))),(0,e.createElement)("div",{className:"rsssl-legend"},(0,e.createElement)(h,{name:v,color:b}),(0,e.createElement)("div",null,(0,d.__)("301 redirect","really-simple-ssl"))))},SslLabs:t=>{const[s,n]=(0,e.useState)(!1),[r,a]=(0,e.useState)([]),[l,o]=(0,e.useState)(!1),u=(0,e.useRef)(!1),p=(0,e.useRef)(!1),m=(0,e.useRef)(!1),g=(0,e.useRef)(!1);(0,e.useEffect)((()=>{l||i("ssltest_get").then((e=>{if(e.data.hasOwnProperty("host")){let t=y(e.data);n(t),a(t.endpointData),o(!0)}}))}));const f=()=>!s,v=()=>-1!==window.location.host.indexOf("localhost");_((()=>{if(v())return;let e=!!t.BlockProps.hasOwnProperty("sslScan")&&t.BlockProps.sslScan;"active"===e&&s.summary&&s.summary.progress>=100&&(p.current=!0,u.current=!1,n(!1),a(!1)),"active"===e&&"ERROR"===s.status&&(p.current=!0,n(!1),a(!1));let r=s&&"READY"!==s.status,l="active"===e;p.current&&(r=!0);let i=!(s.errors||"ERROR"===s.status)&&(r||l);!m.current&&i?(t.setBlockProps("sslScan","active"),m.current=!0,u.current||(b(),g.current=setInterval((function(){b()}),3e3),u.current=!0)):s&&"READY"===s.status&&(t.setBlockProps("sslScan","completed"),clearInterval(g.current))}));const b=()=>{E().then((e=>{if(e&&"ERROR"===e.status)e=y(e),n(e),t.setBlockProps("sslScan","completed"),clearInterval(g.current);else if(e.endpoints&&e.endpoints.filter((e=>"Ready"===e.statusMessage)).length>0){let t=e.endpoints.filter((e=>"Ready"===e.statusMessage)),s=t[t.length-1].ipAddress;w(s).then((t=>{if(!t.errors&&r){let s=!1;r.forEach((function(e,n){e.ipAddress===t.ipAddress&&(r[n]=t,s=!0)})),s||(r[r.length]=t),a(r),e.endpointData=r}e.errors||c("store_ssl_labs",e).then((e=>{})),e=y(e),n(e),m.current=!1}))}else a([]),e.endpointData=r,e=y(e),n(e),e.errors||c("store_ssl_labs",e).then((e=>{})),m.current=!1}))},y=e=>{let s=100,n=e.progress?e.progress:0,r=e.startTime?e.startTime:"",a=e.statusMessage?e.statusMessage:"",l=e.grade?e.grade:"?",i="";if(e.endpoints){s=100*e.endpoints.length;let t=e.endpoints.filter((e=>"Ready"===e.statusMessage)),r=t.length,o=t[r-1],c=e.endpoints.filter((e=>"In progress"===e.statusMessage))[0],d=0;c&&(d=c.progress?c.progress:0,a=c.statusDetailsMessage,i=c.ipAddress),o&&(l=o.grade),n=(100*r+d)/e.endpoints.length}e.errors&&(l="?",a=e.errors[0].message,n=100);let o={};return n>=100&&t.setBlockProps("sslScan","completed"),o.grade=l,o.startTime=r,o.statusMessage=a,o.ipAddress=i,o.progress=n,e.summary=o,e},w=e=>{const t="https://api.ssllabs.com/api/v3/getEndpointData?host="+window.location.host+"&s="+e;let s={};return s.url=t,c("ssltest_run",s).then((e=>JSON.parse(e.data)))},E=e=>{let t="";p.current&&(p.current=!1,t="&startNew=on",n(!1));const s="https://api.ssllabs.com/api/v3/analyze?host="+window.location.host+t;let r={};return r.url=s,c("ssltest_run",r).then((e=>JSON.parse(e.data)))},C=e=>{let t=0;return t=0==e?0:e<128?20:e<256?80:100,t},x=(t,s)=>(0,e.createElement)("div",{className:"rsssl-score-container"},(0,e.createElement)("div",{className:"rsssl-score-snippet "+t},s));let S="rsssl-inactive",k=s?s.summary.progress:0,M=!!s&&s.summary.startTime,N="";if(M){let e=new Date;e.setTime(M),N=e.toLocaleString()}else N=(0,d.__)("No test started yet","really-simple-ssl");let P=!!s&&s.summary.statusMessage,R=s?s.summary.grade:"?";s&&s.summary.ipAddress,s&&"READY"===s.status&&(S=-1!==R.indexOf("A")?"rsssl-success":"rsssl-error"),f()&&(S="rsssl-inactive");let O=f()?"inactive":R,F=window.location.protocol+"//"+window.location.host,L="https://www.ssllabs.com/analyze.html?d="+encodeURIComponent(F),I=!1,A="",D="black";return v()?(I=!0,D="red",A=(0,d.__)("Not available on localhost","really-simple-ssl")):s&&(s.errors||"ERROR"===s.status)?(I=!0,D="red",A=P):s&&k<100&&(I=!0,D="orange",A=P),(0,e.createElement)("div",{className:S},(0,e.createElement)("div",{className:"rsssl-gridblock-progress-container "+S},(0,e.createElement)("div",{className:"rsssl-gridblock-progress",style:(()=>{let e=0;return s&&s.summary.progress?e=s.summary.progress:0==e&&"active"===t.BlockProps.sslScan&&(e=5),Object.assign({},{width:e+"%"})})()})),(0,e.createElement)("div",{className:"rsssl-ssl-test-container "+S},(0,e.createElement)("div",{className:"rsssl-ssl-test "},(0,e.createElement)("div",{className:"rsssl-ssl-test-information"},(()=>{let t="processing";return f()&&(t="inactive"),r&&r.length>0&&(t="success",r.forEach((function(e,s){e.details.protocols.forEach((function(e,s){"1.1"===e.version&&(t="error")}))}))),(0,e.createElement)(e.Fragment,null,"inactive"===t&&x("rsssl-test-inactive","Protocol support"),"processing"===t&&x("rsssl-test-processing","Protocol support..."),"error"===t&&x("rsssl-test-error","Supports TLS 1.1"),"success"===t&&x("rsssl-test-success","No TLS 1.1"))})(),(()=>{let t="processing";return f()&&(t="inactive"),r&&r.length>0&&(t=r.filter((function(e){return"present"!==e.details.hstsPolicy.status})).length>0?"error":"success"),(0,e.createElement)(e.Fragment,null,"inactive"===t&&x("rsssl-test-inactive","HSTS"),"processing"===t&&x("rsssl-test-processing","HSTS..."),"error"===t&&x("rsssl-test-error","No HSTS header"),"success"===t&&x("rsssl-test-success","HSTS header detected"))})(),(()=>{let t="processing";return f()&&(t="inactive"),r&&r.length>0&&(t=r.filter((function(e){return-1===e.grade.indexOf("A")})).length>0?"error":"success"),(0,e.createElement)(e.Fragment,null,"inactive"===t&&x("rsssl-test-inactive","Certificate"),"processing"===t&&x("rsssl-test-processing","Certificate..."),"error"===t&&!I&&x("rsssl-test-error","Certificate issue"),"success"===t&&x("rsssl-test-success","Valid certificate"))})(),(()=>{let t=0,s="rsssl-test-processing";if(f()&&(s="rsssl-test-inactive"),r&&r.length>0){status="success";let e=256,n=128;r.forEach((function(t,s){t.details.suites.forEach((function(t,s){t.list.forEach((function(t,s){e=t.cipherStrength<e?t.cipherStrength:e,n=t.cipherStrength>n?t.cipherStrength:n}))}))})),t=(C(e)+C(n))/2,t=Math.round(t),s=t>70?"rsssl-test-success":"rsssl-test-error"}return(0,e.createElement)(e.Fragment,null,x(s,(0,d.__)("Cipher strength","really-simple-ssl")+" "+t+"%"))})()),(0,e.createElement)("div",{className:"rsssl-ssl-test-grade rsssl-grade-"+O},!f()&&(0,e.createElement)("span",null,R),f()&&(0,e.createElement)("div",null)))),(0,e.createElement)("div",{className:"rsssl-details"},(0,e.createElement)("div",{className:"rsssl-detail-icon"},(0,e.createElement)(h,{name:"info",color:D})),(0,e.createElement)("div",{className:"rsssl-detail rsssl-status-"+D},I&&(0,e.createElement)(e.Fragment,null,A),!I&&(0,e.createElement)(e.Fragment,null," ",(0,d.__)("What does my score mean?","really-simple-ssl")," ",(0,e.createElement)("a",{href:"https://really-simple-ssl.com/instructions/about-ssl-labs/",target:"_blank"},(0,d.__)("Read more","really-simple-ssl"))))),(0,e.createElement)("div",{className:"rsssl-details"},(0,e.createElement)("div",{className:"rsssl-detail-icon"},(0,e.createElement)(h,{name:"list",color:"black"})),(0,e.createElement)("div",{className:"rsssl-detail"},(0,d.__)("Last check:","really-simple-ssl")," ",N)),(0,e.createElement)("div",{className:"rsssl-details"},(0,e.createElement)("div",{className:"rsssl-detail-icon"},(0,e.createElement)(h,{name:"external-link",color:"black"})),(0,e.createElement)("div",{className:"rsssl-detail"},(0,e.createElement)("a",{href:L,target:"_blank"},(0,d.__)("View detailed report on Qualys SSL Labs","really-simple-ssl")))))},SslLabsFooter:t=>{let s=!(!t.BlockProps||!t.BlockProps.hasOwnProperty("sslScan"))&&t.BlockProps.sslScan,n="active"===s||-1!==window.location.host.indexOf("localhost");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{disabled:n,onClick:e=>{t.setBlockProps("sslScan","active")},className:"button button-default"},"paused"===s&&(0,d.__)("Continue SSL Health check","really-simple-ssl"),"paused"!==s&&(0,d.__)("Check SSL Health","really-simple-ssl")))},OtherPlugins:t=>{const[s,n]=(0,e.useState)(!1),[r,a]=(0,e.useState)(""),[l,o]=(0,e.useState)(!1);(0,e.useEffect)((()=>{s||i("otherpluginsdata").then((e=>{e.data.forEach((function(t,s){e.data[s].pluginActionNice=m(t.pluginAction)})),o(e.data),n(!0)}))}));const u=(e,t,s)=>{s&&s.preventDefault();let n={};n.slug=e,n.pluginAction=t;let r=p(e);"download"===t?r.pluginAction="downloading":"activate"===t&&(r.pluginAction="activating"),r.pluginActionNice=m(r.pluginAction),h(e,r),"installed"!==t&&"upgrade-to-premium"!==t&&c("plugin_actions",n).then((t=>{r=t.data,h(e,r),u(e,r.pluginAction)}))},p=e=>l.filter((t=>t.slug===e))[0],h=(e,t)=>{l.forEach((function(s,n){s.slug===e&&(l[n]=t)})),o(l),a(e+t.pluginAction)},m=e=>({download:(0,d.__)("Install","really-simple-ssl"),activate:(0,d.__)("Activate","really-simple-ssl"),activating:(0,d.__)("Activating...","really-simple-ssl"),downloading:(0,d.__)("Downloading...","really-simple-ssl"),"upgrade-to-premium":(0,d.__)("Downloading...","really-simple-ssl")}[e]);return s?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-other-plugins-container"},l.map(((t,s)=>((t,s)=>(0,e.createElement)("div",{key:s,className:"rsssl-other-plugins-element rsssl-"+t.slug},(0,e.createElement)("a",{href:t.wordpress_url,target:"_blank",title:t.title},(0,e.createElement)("div",{className:"rsssl-bullet"}),(0,e.createElement)("div",{className:"rsssl-other-plugins-content"},t.title)),(0,e.createElement)("div",{className:"rsssl-other-plugin-status"},"upgrade-to-premium"===t.pluginAction&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{target:"_blank",href:t.upgrade_url},(0,d.__)("Upgrade","really-simple-ssl"))),"upgrade-to-premium"!==t.pluginAction&&"installed"!==t.pluginAction&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{href:"#",onClick:e=>u(t.slug,t.pluginAction,e)},t.pluginActionNice)),"installed"===t.pluginAction&&(0,e.createElement)(e.Fragment,null,(0,d.__)("Installed","really-simple-ssl")))))(t,s))))):(0,e.createElement)(v,{lines:"3"})}};class L extends e.Component{constructor(){super(...arguments),this.footerHtml=this.props.block.footer.data,this.highLightField=this.highLightField.bind(this),this.setBlockProps=this.setBlockProps.bind(this);let e=this.props.block.content.data,t=this.props.block.footer.data;this.state={content:"",testDisabled:!1,footerHtml:this.props.block.footer.html,BlockProps:[],content:e,footer:t}}setBlockProps(e,t){let{BlockProps:s}=this.state;s.hasOwnProperty(e)&&s[e]===t||(s[e]=t,this.setState({BlockProps:s}))}highLightField(e){this.props.highLightField(e)}render(){let{content:t,footer:s,BlockProps:n}=this.state,r=this.props.block,a="rsssl-grid-item "+r.class+" rsssl-"+r.id;"react"===this.props.block.content.type&&(t=this.props.block.content.data),"react"===this.props.block.footer.type&&(s=this.props.block.footer.data);let l={saveChangedFields:this.props.saveChangedFields,setShowOnBoardingModal:this.props.setShowOnBoardingModal,setBlockProps:this.setBlockProps,BlockProps:n,runTest:this.runTest,fields:this.props.fields,isApiLoaded:this.props.isApiLoaded,highLightField:this.highLightField,selectMainMenu:this.props.selectMainMenu};return(0,e.createElement)("div",{className:a},(0,e.createElement)("div",{className:"rsssl-grid-item-header"},(0,e.createElement)("h3",{className:"rsssl-grid-title rsssl-h4"},r.title),(0,e.createElement)("div",{className:"rsssl-grid-item-controls"},r.controls&&"url"===r.controls.type&&(0,e.createElement)("a",{href:r.controls.data},(0,d.__)("Instructions","really-simple-ssl")),r.controls&&"html"===r.controls.type&&(0,e.createElement)("span",{className:"rsssl-header-html",dangerouslySetInnerHTML:{__html:r.controls.data}}),r.controls&&"react"===r.controls.type&&wp.element.createElement(F[r.controls.data],l))),"react"!==r.content.type&&(0,e.createElement)("div",{className:"rsssl-grid-item-content",dangerouslySetInnerHTML:{__html:t}}),"react"===r.content.type&&(0,e.createElement)("div",{className:"rsssl-grid-item-content"},wp.element.createElement(F[t],l)),"html"===r.footer.type&&(0,e.createElement)("div",{className:"rsssl-grid-item-footer",dangerouslySetInnerHTML:{__html:this.footerHtml}}),"react"===r.footer.type&&(0,e.createElement)("div",{className:"rsssl-grid-item-footer"},wp.element.createElement(F[s],l)))}}var I=L;class A extends e.Component{constructor(){super(...arguments)}render(){let t=rsssl_settings.blocks;return(0,e.createElement)(e.Fragment,null,t.map(((t,s)=>(0,e.createElement)(I,{key:s,block:t,setShowOnBoardingModal:this.props.setShowOnBoardingModal,isApiLoaded:this.props.isAPILoaded,fields:this.props.fields,highLightField:this.props.highLightField,selectMainMenu:this.props.selectMainMenu}))))}}var D=A;const T=(e,t)=>{let s=t.length;for(let n=0;n<s;n++)if(t[n]==e)return!0;return!1};class H extends e.Component{constructor(){super(...arguments)}handleClick(){this.props.selectMenu(this.props.menuItem.id)}componentDidMount(){this.handleClick=this.handleClick.bind(this)}render(){let t=this.props.selectedMenuItem===this.props.menuItem.id;if(this.props.menuItem.menu_items)for(const e of this.props.menuItem.menu_items)e.id===this.props.selectedMenuItem&&(t=!0);let s=t?" rsssl-active":"";s+=this.props.menuItem.featured?" rsssl-featured":"",s+=this.props.menuItem.premium&&!rsssl_settings.pro_plugin_active?" rsssl-premium":"";let n="#"+this.props.selectedMainMenuItem+"/"+this.props.menuItem.id;return(0,e.createElement)(e.Fragment,null,this.props.menuItem.visible&&(0,e.createElement)("div",{className:"rsssl-menu-item"+s},(0,e.createElement)("a",{href:n,onClick:()=>this.handleClick()},(0,e.createElement)("span",null,this.props.menuItem.title),this.props.menuItem.featured&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"rsssl-menu-item-featured-pill"},(0,d.__)("New","really-simple-ssl")))),this.props.menuItem.menu_items&&t&&(0,e.createElement)("div",{className:"rsssl-submenu-item"},this.props.menuItem.menu_items.map(((t,s)=>t.visible&&(0,e.createElement)(H,{key:s,menuItem:t,selectMenu:this.props.selectMenu,selectedMenuItem:this.props.selectedMenuItem,selectedMainMenuItem:this.props.selectedMainMenuItem}))))))}}var j=H;class $ extends e.Component{constructor(){super(...arguments)}render(){let t=this.props.menu.menu_items.filter((e=>!0===e.premium)).length>0;return this.props.isAPILoaded?(0,e.createElement)("div",{className:"rsssl-wizard-menu rsssl-grid-item"},(0,e.createElement)("div",{className:"rsssl-grid-item-header"},(0,e.createElement)("h1",{className:"rsssl-h4"},this.props.menu.title)),(0,e.createElement)("div",{className:"rsssl-grid-item-content"},(0,e.createElement)("div",{className:"rsssl-wizard-menu-items"},this.props.menu.menu_items.map(((t,s)=>(0,e.createElement)(j,{key:s,isAPILoaded:this.props.isAPILoaded,menuItem:t,selectMenu:this.props.selectMenu,selectStep:this.props.selectStep,selectedMenuItem:this.props.selectedMenuItem,selectedMainMenuItem:this.props.selectedMainMenuItem,getPreviousAndNextMenuItems:this.props.getPreviousAndNextMenuItems}))),t&&!rsssl_settings.pro_plugin_active&&(0,e.createElement)("div",{className:"rsssl-premium-menu-item"},(0,e.createElement)("div",null,(0,e.createElement)("a",{target:"_blank",href:rsssl_settings.upgrade_link,className:"button button-black"},(0,d.__)("Go Pro","really-simple-ssl")))))),(0,e.createElement)("div",{className:"rsssl-grid-item-footer"})):(0,e.createElement)(v,null)}}var B=$,z=window.wp.data,V=window.wp.notices,U=()=>{const t=(0,z.useSelect)((e=>e(V.store).getNotices().filter((e=>"snackbar"===e.type))),[]);if(void 0===t)return(0,e.createElement)(e.Fragment,null);const{removeNotice:s}=(0,z.useDispatch)(V.store);return(0,e.createElement)(x.SnackbarList,{className:"edit-site-notices",notices:t,onRemove:s})};class W extends e.Component{constructor(){super(...arguments),this.noticesLoaded=!1,this.fieldsUpdateComplete=!1,this.licenseStatus="invalid",this.getLicenseNotices=this.getLicenseNotices.bind(this),this.state={licenseStatus:"invalid",noticesLoaded:!1,notices:[]}}getLicenseNotices(){return i("licenseNotices","refresh").then((e=>e.data))}componentDidMount(){this.props.highLightField(""),this.setState({noticesLoaded:this.noticesLoaded,licenseStatus:this.licenseStatus,notices:this.notices})}componentDidUpdate(e){!this.fieldsUpdateComplete&&this.props.fieldsUpdateComplete&&this.getLicenseNotices().then((e=>{this.fieldsUpdateComplete=this.props.fieldsUpdateComplete,this.props.setPageProps("licenseStatus",e.licenseStatus),this.notices=e.notices,this.licenseStatus=e.licenseStatus,this.noticesLoaded=!0,this.setState({noticesLoaded:this.noticesLoaded,licenseStatus:this.licenseStatus,notices:this.notices})}))}onChangeHandler(e){this.fieldsUpdateComplete=!1;let t=this.props.fields,s=this.props.field;t[this.props.index].value=e,this.props.saveChangedFields(s.id),this.setState({fields:t})}onCloseTaskHandler(){}toggleActivation(){this.setState({noticesLoaded:!1});const{licenseStatus:e}=this.state;if("valid"===e)i("deactivate_license").then((e=>{this.props.setPageProps("licenseStatus",e.data.licenseStatus),this.notices=e.data.notices,this.licenseStatus=e.data.licenseStatus,this.noticesLoaded=!0,this.setState({noticesLoaded:this.noticesLoaded,licenseStatus:this.licenseStatus,notices:this.notices})}));else{let e={};e.license=this.props.field.value,c("activate_license",e).then((e=>{this.props.setPageProps("licenseStatus",e.data.licenseStatus),this.notices=e.data.notices,this.licenseStatus=e.data.licenseStatus,this.noticesLoaded=!0,this.setState({noticesLoaded:this.noticesLoaded,licenseStatus:this.licenseStatus,notices:this.notices})}))}}render(){const{noticesLoaded:t,notices:s,licenseStatus:n}=this.state;let r=this.props.field,a=r.value;return this.props.fields,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("div",{className:"components-base-control__field"},(0,e.createElement)("label",{className:"components-base-control__label",htmlFor:r.id},r.label),(0,e.createElement)("div",{className:"rsssl-license-field"},(0,e.createElement)("input",{className:"components-text-control__input",type:"password",id:r.id,value:a,onChange:e=>this.onChangeHandler(e.target.value)}),(0,e.createElement)("button",{className:"button button-default",onClick:()=>this.toggleActivation()},"valid"===n&&(0,e.createElement)(e.Fragment,null,(0,d.__)("Deactivate","really-simple-ssl")),"valid"!==n&&(0,e.createElement)(e.Fragment,null,(0,d.__)("Activate","really-simple-ssl"))))),!t&&(0,e.createElement)(v,null),t&&s.map(((t,s)=>(0,e.createElement)(g,{key:s,index:s,notice:t,onCloseTaskHandler:this.onCloseTaskHandler,highLightField:""}))))}}var q=W;class G extends e.Component{constructor(){super(...arguments)}onChangeHandler(e){let t=this.props.fields,s=this.props.field;t[this.props.index].value=e,this.props.saveChangedFields(s.id),this.setState({fields:t})}render(){let t=this.props.field,s=t.value;return this.props.fields,(0,e.createElement)("div",{className:"components-base-control"},(0,e.createElement)("div",{className:"components-base-control__field"},(0,e.createElement)("label",{className:"components-base-control__label",htmlFor:t.id},t.label),(0,e.createElement)("input",{className:"components-text-control__input",type:"password",id:t.id,value:s,onChange:e=>this.onChangeHandler(e.target.value)})))}}var Y=G;class X extends e.Component{constructor(){super(...arguments),this.disabled=!1}onChangeHandler(e){let t=this.props.fields,s=this.props.field;s.value=e,t[this.props.index].value=e,this.disabled=!0;let n=[];this.props.handleNextButtonDisabled(!0),n.push(s),l(n).then((e=>{this.props.updateFields(e.data.fields),this.disabled=!1,this.props.handleNextButtonDisabled(!1)}))}render(){let t=this.props.field.value,s=this.props.field,n=[];if(s.options)for(var r in s.options)if(s.options.hasOwnProperty(r)){let e={};e.label=s.options[r],e.value=r,n.push(e)}return(0,e.createElement)(x.SelectControl,{label:s.label,onChange:e=>this.onChangeHandler(e),value:t,options:n,disabled:this.disabled})}}var J=X,Z=e=>function(t){return new Promise((s=>setTimeout((()=>s(t)),e)))},K=t=>{const s=t.action;if(_((()=>{"challenge_directory_reachable"===s.action&&"error"===s.status&&t.addHelp(t.field.id,"default",(0,d.__)("The challenge directory is used to verify the domain ownership.","really-simple-ssl")),"check_key_directory"===s.action&&"error"===s.status&&t.addHelp(t.field.id,"default",(0,d.__)("The key directory is needed to store the generated keys.","really-simple-ssl")+" "+(0,d.__)("By placing it outside the root folder, it is not publicly accessible.","really-simple-ssl")),"check_certs_directory"===s.action&&"error"===s.status&&t.addHelp(t.field.id,"default",(0,d.__)("The certificate will get stored in this directory.","really-simple-ssl")+" "+(0,d.__)("By placing it outside the root folder, it is not publicly accessible.","really-simple-ssl"))})),!s)return(0,e.createElement)(e.Fragment,null);const n=()=>(t.updateField("verification_type","dns"),o("update_verification_type","dns").then((e=>{t.selectMenu("le-dns-verification"),(0,z.dispatch)("core/notices").createNotice("success",(0,d.__)("Switched to DNS","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_switched_to_dns",type:"snackbar",isDismissible:!0}).then(Z(3e3)).then((e=>{(0,z.dispatch)("core/notices").removeNotice("rsssl_switched_to_dns")}))})));return(0,e.createElement)("div",{className:"rsssl-test-results"},"error"===s.status&&(0,e.createElement)("h4",null,(0,d.__)("Next step","really-simple-ssl")),"error"===s.status&&"challenge_directory_reachable"===s.action&&(0,e.createElement)("div",null,(0,e.createElement)("p",null,(0,d.__)("If the challenge directory cannot be created, or is not reachable, you can either remove the server limitation, or change to DNS verification.","really-simple-ssl")),(0,e.createElement)(x.Button,{variant:"secondary",onClick:()=>n()},(0,d.__)("Switch to DNS verification","really-simple-ssl"))),"error"!==s.status&&"cpanel"===rsssl_settings.hosting_dashboard&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,(0,e.createElement)(k,{target:"_blank",text:(0,d.__)("If you also want to secure subdomains like mail.domain.com, cpanel.domain.com, you have to use the %sDNS%s challenge.","really-simple-ssl"),url:"https://really-simple-ssl.com/lets-encrypt-authorization-with-dns"})," ",(0,d.__)("Please note that auto-renewal with a DNS challenge might not be possible.","really-simple-ssl")),(0,e.createElement)(x.Button,{variant:"secondary",onClick:()=>n()},(0,d.__)("Switch to DNS verification","really-simple-ssl"))),"error"===s.status&&"check_challenge_directory"===s.action&&(0,e.createElement)("div",null,(0,e.createElement)("h4",null,(0,d.__)("Create a challenge directory","really-simple-ssl")),(0,e.createElement)("p",null,(0,d.__)("Navigate in FTP or File Manager to the root of your WordPress installation:","really-simple-ssl")),(0,e.createElement)("ul",null,(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,d.__)("Create a folder called “.well-known”","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,d.__)("Inside the folder called “.well-known” create a new folder called “acme-challenge”, with 644 writing permissions.","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,d.__)("Click the refresh button.","really-simple-ssl"))),(0,e.createElement)("h4",null,(0,d.__)("Or you can switch to DNS verification","really-simple-ssl")),(0,e.createElement)("p",null,(0,d.__)("If the challenge directory cannot be created, you can either remove the server limitation, or change to DNS verification.","really-simple-ssl")),(0,e.createElement)(x.Button,{variant:"secondary",onClick:()=>n()},(0,d.__)("Switch to DNS verification","really-simple-ssl"))),"error"===s.status&&"check_key_directory"===s.action&&(0,e.createElement)("div",null,(0,e.createElement)("h4",null,(0,d.__)("Create a key directory","really-simple-ssl")),(0,e.createElement)("p",null,(0,d.__)("Navigate in FTP or File Manager to one level above the root of your WordPress installation:","really-simple-ssl")),(0,e.createElement)("ul",null,(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,d.__)("Create a folder called “ssl”","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,d.__)("Inside the folder called “ssl” create a new folder called “keys”, with 644 writing permissions.","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,d.__)("Click the refresh button.","really-simple-ssl")))),"error"===s.status&&"check_certs_directory"===s.action&&(0,e.createElement)("div",null,(0,e.createElement)("h4",null,(0,d.__)("Create a certs directory","really-simple-ssl")),(0,e.createElement)("p",null,(0,d.__)("Navigate in FTP or File Manager to one level above the root of your WordPress installation:","really-simple-ssl")),(0,e.createElement)("ul",null,(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,d.__)("Create a folder called “ssl”","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,d.__)("Inside the folder called “ssl” create a new folder called “certs”, with 644 writing permissions.","really-simple-ssl")),(0,e.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,d.__)("Click the refresh button.","really-simple-ssl")))))},Q=t=>{const s=t.action,[n,r]=(0,e.useState)(!1);return _((()=>{s&&"challenge_directory_reachable"===s.action&&"error"===s.status&&t.addHelp(t.field.id,"default",(0,d.__)("The challenge directory is used to verify the domain ownership.","really-simple-ssl"));let e=!!s&&s.output;void 0!==e&&0!==e.length||(e=!1),e&&r(e)})),(0,e.createElement)(e.Fragment,null,n&&n.length>0&&(0,e.createElement)("div",{className:"rsssl-test-results"},(0,e.createElement)("h4",null,(0,d.__)("Next step","really-simple-ssl")),(0,e.createElement)("p",null,(0,d.__)("Add the following token as text record to your DNS records. We recommend to use a short TTL during installation, in case you need to change it.","really-simple-ssl"),(0,e.createElement)(k,{target:"_blank",text:(0,d.__)("Read more","really-simple-ssl"),url:"https://really-simple-ssl.com/how-to-add-a-txt-record-to-dns"})),(0,e.createElement)("div",{className:"rsssl-dns-text-records"},(0,e.createElement)("div",{key:0},(0,e.createElement)("div",{className:"rsssl-dns-domain"},"@/",(0,d.__)("domain","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-dns-field"},(0,d.__)("Value","really-simple-ssl"))),n.map(((t,s)=>(0,e.createElement)("div",{key:s+1},(0,e.createElement)("div",{className:"rsssl-dns-"},"_acme-challenge.",t.domain),(0,e.createElement)("div",{className:"rsssl-dns-field rsssl-selectable"},t.token)))))),(0,e.createElement)("div",{className:"rsssl-test-results"},(0,e.createElement)("p",null,(0,d.__)("DNS verification active. You can switch back to directory verification here.","really-simple-ssl")),(0,e.createElement)(x.Button,{variant:"secondary",onClick:()=>(t.updateField("verification_type","dir"),o("update_verification_type","dir").then((e=>{t.selectMenu("le-directories"),(0,z.dispatch)("core/notices").createNotice("success",(0,d.__)("Switched to directory","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_switched_to_dns",type:"snackbar",isDismissible:!0}).then(Z(3e3)).then((e=>{(0,z.dispatch)("core/notices").removeNotice("rsssl_switched_to_dns")}))})))},(0,d.__)("Switch to directory verification","really-simple-ssl"))))},ee=t=>{const s=t.action;return s?(0,e.createElement)("div",{className:"rsssl-test-results"},"error"===s.status&&"verify_dns"===s.action&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("p",null,(0,d.__)("We could not check the DNS records. If you just added the record, please check in a few minutes.","really-simple-ssl")," ",(0,e.createElement)(k,{target:"_blank",text:(0,d.__)("You can manually check the DNS records in an %sonline tool%s.","really-simple-ssl"),url:"https://mxtoolbox.com/SuperTool.aspx"}),(0,d.__)("If you're sure it's set correctly, you can click the button to skip the DNS check.","really-simple-ssl")," "),(0,e.createElement)(x.Button,{variant:"secondary",onClick:()=>o("skip_dns_check").then((e=>{t.restartTests(),(0,z.dispatch)("core/notices").createNotice("success",(0,d.__)("Skip DNS verification ","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_skip_dns",type:"snackbar",isDismissible:!0}).then(Z(3e3)).then((e=>{(0,z.dispatch)("core/notices").removeNotice("rsssl_skip_dns")}))}))},(0,d.__)("Skip DNS check","really-simple-ssl")))):(0,e.createElement)(e.Fragment,null)},te=t=>{const[s,r]=(0,e.useState)([]),[l,o]=(0,e.useState)(!1),[u,p]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),[f,b]=(0,e.useState)(!0),[y,w]=(0,e.useState)(""),[E,C]=(0,e.useState)(!1),[S,k]=(0,e.useState)(!1),[M,N]=(0,e.useState)(0);_((()=>{M<100&&E&&"main_site_activated"===S&&i("activate_ssl_networkwide").then((e=>{e.data.success&&(N(e.data.progress),e.data.progress>=100&&R("ssl_enabled","","success"))}))})),(0,e.useEffect)((()=>{P(!1)}),[]);const P=e=>{(e=>{let t={headers:{"X-WP-Nonce":rsssl_settings.nonce}},s=-1!==rsssl_settings.site_url.indexOf("?")?"&":"?";return n().get(rsssl_settings.site_url+"reallysimplessl/v1/onboarding"+s+"forceRefresh="+e+"&nonce="+rsssl_settings.rsssl_nonce+a(),t)})(e).then((e=>{let t=e.data.steps;C(e.data.networkwide),o(e.data.ssl_detection_overridden),b(!e.data.ssl_detection_overridden),p(e.data.certificate_valid),g(e.data.ssl_enabled),t[0].visible=!0,e.data.ssl_enabled&&t.length>1&&(t[0].visible=!1,t[1].visible=!0),k(e.data.network_activation_status),"completed"===e.data.network_activation_status&&N(100),r(t),w("initial")}))},R=(e,t,n)=>{let a=s;a.forEach((function(s,r){a[r].items.forEach((function(s,l){if(s.id===e){let e=a[r].items[l];e.current_action=t,n&&(e.status=n),a[r].items[l]=e}}))})),r(a),w(e+t+n)};return(0,e.createElement)(e.Fragment,null,!y&&(0,e.createElement)(v,{lines:"12"}),y&&s.map(((n,a)=>{const{title:p,subtitle:m,items:f,info_text:v,visible:y}=n;return(0,e.createElement)("div",{className:"rsssl-modal-content-step",key:a,style:{display:y?"block":"none"}},p&&(0,e.createElement)("h2",{className:"rsssl-modal-subtitle"},p),m&&(0,e.createElement)("div",{className:"rsssl-modal-description"},m),(0,e.createElement)("ul",null,(s=>s.map(((s,n)=>{let{title:r,current_action:a,action:l,status:i,button:o,id:u}=s;"ssl_enabled"===u&&E&&(M>=100?(i="success",r=(0,d.__)("SSL has been activated network wide","really-simple-ssl")):(i="processing",r=(0,d.__)("Processing activation of subsites networkwide","really-simple-ssl")));const p={inactive:{icon:"info",color:"grey"},warning:{icon:"circle-times",color:"orange"},error:{icon:"circle-times",color:"red"},success:{icon:"circle-check",color:"green"},processing:{icon:"file-download",color:"red"}},m=p[i].icon,g=p[i].color,f={activate_setting:(0,d.__)("Activating...","really-simple-ssl"),activate:(0,d.__)("Activating...","really-simple-ssl"),install_plugin:(0,d.__)("Installing...","really-simple-ssl"),error:(0,d.__)("Failed","really-simple-ssl"),completed:(0,d.__)("Finished","really-simple-ssl")};let v="";o&&(v=o,"none"!==a&&(v=f[a],"failed"===a&&(v=f.error)));let b=o&&o===v;return(0,e.createElement)("li",{key:n},(0,e.createElement)(h,{name:m,color:g}),r,"ssl_enabled"===u&&E&&"main_site_activated"===S&&(0,e.createElement)(e.Fragment,null," - ",M<100&&(0,e.createElement)(e.Fragment,null,(0,d.__)("working","really-simple-ssl")," ",M,"%"),M>=100&&(0,d.__)("completed","really-simple-ssl")),o&&(0,e.createElement)(e.Fragment,null," - ",b&&(0,e.createElement)(x.Button,{className:"button button-secondary",isLink:!0,onClick:()=>((e,s)=>{let n={};n.id=e,R(e,s,!1),c(s,n).then((r=>{if(r.data.success){"activate_setting"===s&&t.getFields();let a=r.data.next_action;"none"!==a&&"completed"!==a?(R(e,a,!1),c(a,n).then((t=>{t.data.success?R(e,"completed","success"):R(e,"failed","error")})).catch((t=>{R(e,"failed","error")}))):R(e,"completed","success")}else R(e,"failed","error")})).catch((t=>{R(e,"failed","error")}))})(u,l)},v),!b&&(0,e.createElement)(e.Fragment,null,v)))})))(f)),u&&v&&(0,e.createElement)("div",{className:"rsssl-modal-description",dangerouslySetInnerHTML:{__html:v}}),!u&&(0,e.createElement)("div",{className:"rsssl-modal-description"},(0,e.createElement)("a",{href:"#",onClick:e=>(e=>{e.preventDefault(),s.forEach((function(e,t){"activate_ssl"===e.id&&e.items.forEach((function(e,n){"error"===e.status&&(s[t].items[n].status="processing",s[t].items[n].title=(0,d.__)("Re-checking SSL certificate, please wait...","really-simple-ssl"))}))})),r(s),w(!0),setTimeout((function(){P(!0)}),1e3)})(e)},(0,d.__)("Refresh SSL status","really-simple-ssl"))," ",(0,d.__)("The SSL detection method is not 100% accurate.","really-simple-ssl")," ",(0,d.__)("If you’re certain an SSL certificate is present, and refresh SSL status does not work, please check “Override SSL detection” to continue activating SSL.","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-modal-content-step-footer"},(()=>{let n=E?(0,d.__)("Activate SSL networkwide","really-simple-ssl"):(0,d.__)("Activate SSL","really-simple-ssl");return s[0].visible&&s.length>1?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{disabled:!u&&!l,className:"button button-primary",onClick:()=>{w(!1),window.location.href.replace("http://","https://"),i("activate_ssl").then((e=>{s[0].visible=!1,s[1].visible=!0,e.data.success&&(r(s),w(!0),g(e.data.success),t.updateField("ssl_enabled",!0),e.data.site_url_changed?window.location.reload():(t.getFields(),E&&k("main_site_activated")))}))}},n),u&&!rsssl_settings.pro_plugin_active&&(0,e.createElement)("a",{target:"_blank",href:rsssl_settings.upgrade_link,className:"button button-default"},(0,d.__)("Improve Security with PRO","really-simple-ssl")),!u&&(0,e.createElement)("button",{className:"button button-default",onClick:()=>{t.isModal&&t.dismissModal(),window.location.href=rsssl_settings.letsencrypt_url}},(0,d.__)("Install SSL","really-simple-ssl")),!u&&(0,e.createElement)(x.ToggleControl,{label:(0,d.__)("Override SSL detection","really-simple-ssl"),checked:l,onChange:e=>{o(e);let t={};t.overrideSSL=e,c("override_ssl_detection",t).then((t=>{b(!e)}))}})):s.length>1&&s[1].visible||s[0].visible?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{className:"button button-primary",onClick:()=>{t.isModal&&t.dismissModal(),t.selectMainMenu("dashboard")}},(0,d.__)("Go to Dashboard","really-simple-ssl")),(0,e.createElement)("button",{className:"button button-default",onClick:()=>{t.dismissModal()}},(0,d.__)("Dismiss","really-simple-ssl"))):void 0})()))})))},se=t=>(0,e.createElement)("div",{className:"rsssl-lets-encrypt-tests"},(0,e.createElement)(te,{selectMainMenu:t.selectMainMenu})),ne=t=>{const s=t.action,[n,r]=(0,e.useState)(!1);_((()=>{s&&"warning"===s.status&&n&&n.generated_by_rsssl&&(t.addHelp(t.field.id,"default",(0,d.__)("This is the certificate, which you need to install in your hosting dashboard.","really-simple-ssl"),(0,d.__)("Certificate (CRT)","really-simple-ssl")),t.addHelp(t.field.id,"default",(0,d.__)("The private key can be uploaded or pasted in the appropriate field on your hosting dashboard.","really-simple-ssl"),(0,d.__)("Private Key (KEY)","really-simple-ssl")),t.addHelp(t.field.id,"default",(0,d.__)("The CA Bundle will sometimes be automatically detected. If not, you can use this file.","really-simple-ssl"),(0,d.__)("Certificate Authority Bundle (CABUNDLE)","really-simple-ssl"))),!s||"error"!==s.status&&"warning"!==s.status||o("installation_data").then((e=>{e&&r(e.data.output)}))})),(0,e.useEffect)((()=>{}));const a=e=>{let t,s=document.querySelector(".rsssl-"+e).innerText;const n=document.createElement("textarea");n.value=s,document.body.appendChild(n),n.select();try{t=document.execCommand("copy")}catch(e){t=!1}document.body.removeChild(n),(0,z.dispatch)("core/notices").createNotice("success",(0,d.__)("Copied!","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_copied_data",type:"snackbar",isDismissible:!0}).then(Z(3e3)).then((e=>{(0,z.dispatch)("core/notices").removeNotice("rsssl_copied_data")}))};return s&&n?(0,e.createElement)("div",{className:"rsssl-test-results"},!n.generated_by_rsssl&&(0,e.createElement)(e.Fragment,null,(0,d.__)("The certificate is not generated by Really Simple SSL, so there are no installation files here","really-simple-ssl")),n.generated_by_rsssl&&"warning"===s.status&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h4",null,(0,d.__)("Next step","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-template-intro"},(0,d.__)("Install your certificate.","really-simple-ssl")),(0,e.createElement)("h4",null,(0,d.__)("Certificate (CRT)","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-certificate-data rsssl-certificate",id:"rsssl-certificate"},n.certificate_content),(0,e.createElement)("a",{href:n.download_url+"&type=certificate",className:"button button-secondary"},(0,d.__)("Download","really-simple-ssl")),(0,e.createElement)("button",{type:"button",onClick:e=>a("certificate"),className:"button button-primary"},(0,d.__)("Copy content","really-simple-ssl")),(0,e.createElement)("h4",null,(0,d.__)("Private Key (KEY)","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-certificate-data rsssl-key",id:"rsssl-key"},n.key_content),(0,e.createElement)("a",{href:n.download_url+"&type=private_key",className:"button button-secondary"},(0,d.__)("Download","really-simple-ssl")),(0,e.createElement)("button",{type:"button",className:"button button-primary",onClick:e=>a("key")},(0,d.__)("Copy content","really-simple-ssl")),(0,e.createElement)("h4",null,(0,d.__)("Certificate Authority Bundle (CABUNDLE)","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-certificate-data rsssl-cabundle",id:"rsssl-cabundle"},n.ca_bundle_content),(0,e.createElement)("a",{href:n.download_url+"&type=intermediate",className:"button button-secondary"},(0,d.__)("Download","really-simple-ssl")),(0,e.createElement)("button",{type:"button",className:"button button-primary",onClick:e=>a("cabundle")},(0,d.__)("Copy content","really-simple-ssl")))):(0,e.createElement)(e.Fragment,null)},re=t=>{const[s,n]=(0,e.useState)(t.field.id),[r,a]=(0,e.useState)(!1),[l,i]=(0,e.useState)(0),c=(0,e.useRef)(0),u=(0,e.useRef)(1500),p=(0,e.useRef)(1),m=(0,e.useRef)(!1),g=(0,e.useRef)(""),f=(0,e.useRef)(-1);(0,e.useEffect)((()=>{t.handleNextButtonDisabled(!0),y(0),m.current=setInterval((()=>i((e=>e+.2))),100)}),[]);const v=()=>{let e=t.field.actions;for(const t of e)t.status="inactive";t.field.actions=e,c.current=0,f.current=-1,g.current="",i(0),y(0)},b=()=>t.field.actions[c.current];_((()=>{let e=t.field.actions.length-1;c.current>f.current&&(f.current=c.current,i(100/e*c.current));let s=b();s&&"retry"===s.do&&s.attemptCount>1&&i(90),t.refreshTests&&(t.resetRefreshTests(),v())}));const y=()=>{a(!1),"generation"===t.field.id&&(t.field.actions=(e=>{let s=t.getFieldValue("verification_type");if(s||(s="dir"),"dns"===s){let t=!1;e.forEach((function(e,s){"verify_dns"===e.action&&(t=!0)}));let s=-1;if(e.forEach((function(e,t){"create_bundle_or_renew"===e.action&&(s=t)})),!t&&s>0){let t=e[s],n={action:"verify_dns"};n.description=(0,d.__)("Verifying DNS records...","really-simple-ssl"),n.attempts=2,e[s]=n,e.push(t)}}return e})(t.field.actions));const e=new Date;let s=b(),n=s.action;p.current=s.attempts,o(n,t.field.id).then((t=>{let s=new Date-e;const n=Math.round(s);let r=b();r.status=t.data.status?t.data.status:"inactive",r.hide=!1,r.description=t.data.message,r.do=t.data.action,r.output=!!t.data.output&&t.data.output,u.current=500,n<1500&&(u.current=1500-n)})).then(Z(u.current)).then((()=>{(e=>{g.current=e.status;let s=t.field.actions.length-1;"success"===e.status?e.attemptCount=0:(Number.isInteger(e.attemptCount)||(e.attemptCount=0),e.attemptCount+=1),a(!0);var n=new CustomEvent("rsssl_le_response",{detail:e});document.dispatchEvent(n),"finalize"===e.do?(clearInterval(m.current),t.field.actions.forEach((function(e,t){t>c.current&&(e.hide=!0)})),c.current=s,t.handleNextButtonDisabled(!1)):"continue"===e.do||"skip"===e.do?(e.attemptCount=1,"skip"===e.do&&(e.hide=!0),s>c.current?(c.current=c.current+1,y(c.current)):(c.current=s,t.handleNextButtonDisabled(!1),clearInterval(m.current))):"retry"===e.do?e.attemptCount>=p.current?(c.current=s,clearInterval(m.current)):y(c.current):"stop"===e.do&&clearInterval(m.current)})(s)}))},w=e=>k.hasOwnProperty(e.status)?k[e.status].icon:k.inactive.icon,E=e=>k.hasOwnProperty(e.status)?k[e.status].color:k.inactive.color;let C="error"===g.current?"rsssl-orange":"";if(!t.field.actions)return(0,e.createElement)(e.Fragment,null);let x=t.field.actions[c.current],S=t.field.actions.filter((e=>!0!==e.hide));const k={inactive:{icon:"circle-times",color:"grey"},warning:{icon:"circle-times",color:"orange"},error:{icon:"circle-times",color:"red"},success:{icon:"circle-check",color:"green"}};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-lets-encrypt-tests"},(0,e.createElement)("div",{className:"rsssl-progress-bar"},(0,e.createElement)("div",{className:"rsssl-progress"},(0,e.createElement)("div",{className:"rsssl-bar "+C,style:Object.assign({},{width:l+"%"})}))),(0,e.createElement)("div",{className:"rsssl_letsencrypt_container rsssl-progress-container field-group"},(0,e.createElement)("ul",null,S.map(((t,s)=>(0,e.createElement)("li",{key:s},(0,e.createElement)(h,{name:w(t),color:E(t)}),"retry"===t.do&&t.attemptCount>=1&&(0,e.createElement)(e.Fragment,null,(0,d.__)("Attempt %s.","really-simple-ssl").replace("%s",t.attemptCount)," "),(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:t.description}})))))),"directories"===t.field.id&&(0,e.createElement)(K,{save:t.save,selectMenu:t.selectMenu,field:t.field,updateField:t.updateField,addHelp:t.addHelp,progress:l,action:x}),"dns-verification"===t.field.id&&(0,e.createElement)(Q,{save:t.save,selectMenu:t.selectMenu,field:t.field,updateField:t.updateField,addHelp:t.addHelp,progress:l,action:x}),"generation"===t.field.id&&(0,e.createElement)(ee,{restartTests:v,save:t.save,selectMenu:t.selectMenu,field:t.field,updateField:t.updateField,addHelp:t.addHelp,progress:l,action:x}),"installation"===t.field.id&&(0,e.createElement)(ne,{restartTests:v,save:t.save,selectMenu:t.selectMenu,field:t.field,updateField:t.updateField,addHelp:t.addHelp,progress:l,action:x}),"activate"===t.field.id&&(0,e.createElement)(se,{restartTests:v,save:t.save,selectMainMenu:t.selectMainMenu,selectMenu:t.selectMenu,field:t.field,updateField:t.updateField,addHelp:t.addHelp,progress:l,action:x})))},ae=s(44);class le extends e.Component{constructor(){super(...arguments)}componentDidMount(){this.onClickHandler=this.onClickHandler.bind(this)}onClickHandler(){this.props.handleModal(!0,this.props.modalData)}render(){return(0,e.createElement)("button",{className:"button button-"+this.props.btnStyle,onClick:e=>this.onClickHandler(e)},this.props.btnText)}}var ie=le;class oe extends e.Component{constructor(){super(...arguments),this.nonce="",this.state={data:[],progress:0,action:"",state:"stop",paused:!1,showIgnoredUrls:!1,resetPaginationToggle:!1}}getScanStatus(){return i("scan_status","refresh").then((e=>e.data))}componentDidMount(){let e=[],t=0,s="",n="stop",r="never";this.props.field.value.data&&(e=this.props.field.value.data),this.props.field.value.progress&&(t=this.props.field.value.progress),this.props.field.value.action&&(s=this.props.field.value.action),this.props.field.value.state&&(n=this.props.field.value.state),this.props.field.value.completed_status&&(r=this.props.field.value.completed_status),this.props.field.value.nonce&&(this.nonce=this.props.field.value.nonce),this.setState({completedStatus:r,data:e,progress:t,action:s,state:n})}start(e){let t="start";this.state.paused&&(t="running"),this.setState({state:"running",paused:!1}),i("mixed_content_scan",t).then((e=>{this.setState({data:e.data.data,progress:e.data.progress,action:e.data.action,state:e.data.state}),"running"===e.data.state&&this.run()}))}run(e){this.state.paused||i("mixed_content_scan","running").then((e=>{this.setState({completedStatus:e.data.completed_status,data:e.data.data,progress:e.data.progress,action:e.data.action,state:e.data.state}),this.state.paused?this.stop():"running"===e.data.state&&this.run()}))}toggleIgnoredUrls(e){let{showIgnoredUrls:t}=this.state;this.setState({showIgnoredUrls:!t})}stop(e){this.setState({state:"stop",paused:!0}),i("mixed_content_scan","stop").then((e=>{this.setState({completedStatus:e.data.completed_status,data:e.data.data,progress:e.data.progress,action:e.data.action})}))}removeDataItem(e){const t=this.state.data.filter((t=>t.id===e.id));this.setState({data:t})}render(){let{completedStatus:t,data:s,action:n,progress:r,state:a,showIgnoredUrls:l,resetPaginationToggle:i}=this.state,o=this.props.field;o.value,this.props.fields,rsssl_settings.pro_plugin_active||(r=80),columns=[],o.columns.forEach((function(e,t){let s={name:e.name,sortable:e.sortable,grow:e.grow,selector:t=>t[e.column],right:!!e.right};columns.push(s)})),"object"==typeof s&&(s=Object.values(s)),Array.isArray(s)||(s=[]),t=t?t.toLowerCase():"never";let c=this.props.dropItemFromModal;for(const t of s)t.warningControl=(0,e.createElement)("span",{className:"rsssl-task-status rsssl-warning"},(0,d.__)("Warning","really-simple-ssl")),c&&c.url===t.blocked_url&&("ignore_url"===c.action?t.ignored=!0:t.fixed=!0),t.fix&&(t.fix.url=t.blocked_url,t.fix.nonce=this.nonce),t.details&&(t.details.url=t.blocked_url,t.details.nonce=this.nonce,t.details.ignored=t.ignored),t.location.length>0&&(-1!==t.location.indexOf("http://")||-1!==t.location.indexOf("https://")?t.locationControl=(0,e.createElement)("a",{href:t.location,target:"_blank"},(0,d.__)("View","really-simple-ssl")):t.locationControl=t.location),t.detailsControl=t.details&&(0,e.createElement)(ie,{removeDataItem:this.removeDataItem,handleModal:this.props.handleModal,item:t,btnText:(0,d.__)("Details","really-simple-ssl"),btnStyle:"secondary",modalData:t.details}),t.fixControl=t.fix&&(0,e.createElement)(ie,{className:"button button-primary",removeDataItem:this.removeDataItem,handleModal:this.props.handleModal,item:t,btnText:(0,d.__)("Fix","really-simple-ssl"),btnStyle:"primary",modalData:t.fix});l||(s=s.filter((e=>!e.ignored))),s=s.filter((e=>!e.fixed)),r+="%";let u="running"===a,p="running"!==a;return(0,d.__)("Show ignored URLs","burst-statistics"),(0,ae.jG)("really-simple-plugins",{divider:{default:"transparent"}},"light"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-progress-container"},(0,e.createElement)("div",{className:"rsssl-progress-bar",style:{width:r}})),"running"===a&&(0,e.createElement)("div",{className:"rsssl-current-scan-action"},n),0==s.length&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-mixed-content-description"},"running"!==a&&"never"===t&&(0,d.__)("No results. Start your first scan","really-simple-ssl"),"running"!==a&&"completed"===t&&(0,d.__)("Everything is now served over SSL","really-simple-ssl")),("running"===a||"completed"!==t)&&(0,e.createElement)("div",{className:"rsssl-mixed-content-placeholder"},(0,e.createElement)("div",null),(0,e.createElement)("div",null),(0,e.createElement)("div",null)),"running"!==a&&"completed"===t&&(0,e.createElement)("div",{className:"rsssl-shield-overlay"},(0,e.createElement)(h,{name:"shield",size:"80px"}))),s.length>0&&(0,e.createElement)("div",{className:"rsssl-mixed-content-datatable"},(0,e.createElement)(ae.ZP,{columns:columns,data:s,dense:!0,pagination:!0,paginationResetDefaultPage:i,noDataComponent:(0,d.__)("No results","really-simple-ssl"),theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}})),(0,e.createElement)("div",{className:"rsssl-grid-item-content-footer"},(0,e.createElement)("button",{className:"button",disabled:u,onClick:e=>this.start(e)},(0,d.__)("Start scan","really-simple-ssl-pro")),(0,e.createElement)("button",{className:"button",disabled:p,onClick:e=>this.stop(e)},(0,d.__)("Stop","really-simple-ssl-pro")),(0,e.createElement)(x.ToggleControl,{checked:1==l,onChange:e=>this.toggleIgnoredUrls(e)}),(0,e.createElement)("label",null,(0,d.__)("Show ignored URLs","burst-statistics"))))}}var ce=oe;class de extends e.Component{constructor(){super(...arguments)}render(){let t=1==this.props.item.status?"button button-primary rsssl-status-allowed":"button button-default rsssl-status-revoked",s=1==this.props.item.status?(0,d.__)("Revoke","really-simple-ssl"):(0,d.__)("Allow","really-simple-ssl");return(0,e.createElement)("button",{onClick:()=>this.props.onChangeHandlerDataTableStatus(this.props.item.status,this.props.item,"status"),className:t},s)}}var ue=de;class pe extends e.Component{constructor(){super(...arguments),this.state={enable_permissions_policy:0}}componentDidMount(){this.togglePermissionsPolicyStatus=this.togglePermissionsPolicyStatus.bind(this),this.onChangeHandler=this.onChangeHandler.bind(this);let e=this.props.fields.filter((e=>"enable_permissions_policy"===e.id))[0];this.setState({enable_permissions_policy:e.value})}onChangeHandler(e,t){let s=this.props.field;"object"==typeof s.value&&(s.value=Object.values(s.value));for(const n of s.value)n.id===t.id&&(n.value=e),delete n.valueControl,delete n.statusControl,delete n.deleteControl;s.updateItemId=t.id;let n=[];n.push(s),this.props.updateField(s.id,s.value),l(n).then((e=>{}))}togglePermissionsPolicyStatus(e,t){e.preventDefault();let s=this.props.fields.filter((e=>"enable_permissions_policy"===e.id))[0];s.value=t,this.setState({enable_permissions_policy:t});let n=[];n.push(s),this.props.updateField(s.id,s.value),l(n).then((e=>{}))}render(){let t=this.props.field,s=(t.value,this.props.options);const{enable_permissions_policy:n}=this.state;columns=[],t.columns.forEach((function(e,t){let s={name:e.name,sortable:e.sortable,width:e.width,selector:t=>t[e.column]};columns.push(s)}));let r=t.value;"object"==typeof r&&(r=Object.values(r)),Array.isArray(r)||(r=[]);for(const t of r)t.valueControl=(0,e.createElement)(x.SelectControl,{help:"",value:t.value,disabled:!1,options:s,label:"",onChange:e=>this.onChangeHandler(e,t,"value")});return(0,ae.jG)("really-simple-plugins",{divider:{default:"transparent"}},"light"),(0,e.createElement)("div",{className:this.props.highLightClass},(0,e.createElement)(ae.ZP,{columns:columns,data:r,dense:!0,pagination:!1,customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}},theme:"really-simple-plugins"}),1!=n&&(0,e.createElement)("button",{className:"button button-primary",onClick:e=>this.togglePermissionsPolicyStatus(e,!0)},(0,d.__)("Enforce","really-simple-ssl")),1==n&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-shield-overlay"},(0,e.createElement)(h,{name:"shield",size:"80px"})),(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-enforced"},(0,d.__)("Enforced","really-simple-ssl")),(0,d.__)("Permissions Policy is enforced.","really-simple-ssl")," ",(0,e.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>this.togglePermissionsPolicyStatus(e,!1)},(0,d.__)("Disable","really-simple-ssl")))))}}var he=pe;class me extends e.Component{constructor(){super(...arguments),this.state={message:"",sending:!1}}componentDidMount(){this.onChangeHandler=this.onChangeHandler.bind(this),this.onClickHandler=this.onClickHandler.bind(this)}onChangeHandler(e){this.setState({message:e})}onClickHandler(e){return this.setState({sending:!0}),i("supportData","refresh").then((e=>{const{message:t}=this.state;let s=t.replace(/(?:\r\n|\r|\n)/g,"--br--"),n="https://really-simple-ssl.com/support?customername="+encodeURIComponent(e.data.customer_name)+"&email="+e.data.email+"&domain="+e.data.domain+"&scanresults="+encodeURIComponent(e.data.scan_results)+"&licensekey="+encodeURIComponent(e.data.license_key)+"&supportrequest="+encodeURIComponent(s)+"&htaccesscontents="+e.data.htaccess_contents+"&debuglog="+e.data.system_status;window.location.assign(n)}))}render(){const{message:t,sending:s}=this.state;let n=s||0==t.length,r=s;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x.TextareaControl,{disabled:r,placeholder:(0,d.__)("Type your question here","really-simple-ssl"),onChange:e=>this.onChangeHandler(e)}),(0,e.createElement)(x.Button,{disabled:n,variant:"secondary",onClick:e=>this.onClickHandler(e)},(0,d.__)("Send","really-simple-ssl")))}}var ge=me;class fe extends e.Component{constructor(){super(...arguments)}render(){return(0,e.createElement)("button",{type:"button",className:" rsssl-learning-mode-delete",onClick:()=>this.props.onDeleteHandler(this.props.item)},(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:"16"},(0,e.createElement)("path",{fill:"#000000",d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"})))}}class ve extends e.Component{constructor(){super(...arguments),this.state={enforce:0,learning_mode:0,lm_enabled_once:0,learning_mode_completed:0,filterValue:-1}}componentDidMount(){this.doFilter=this.doFilter.bind(this),this.onDeleteHandler=this.onDeleteHandler.bind(this);let e=this.props.fields.filter((e=>e.id===this.props.field.control_field))[0],t="enforce"===e.value,s="learning_mode"===e.value,n="completed"===e.value,r=this.props.field.control_field+"_lm_enabled_once",a=this.props.fields.filter((e=>e.id===r))[0],l=a.value;this.props.updateField(e.id,e.value),this.setState({enforce:t,learning_mode:s,lm_enabled_once:l,learning_mode_completed:n})}doFilter(e){this.setState({filterValue:e.target.value})}toggleEnforce(e,t){e.preventDefault();let s=this.props.fields.filter((e=>e.id===this.props.field.control_field))[0];s.value=1==t?"enforce":"disabled",this.setState({enforce:t,learning_mode_completed:0});let n=[];n.push(s),l(n).then((e=>{}))}toggleLearningMode(e){e.preventDefault();let t=this.props.fields,s=t.filter((e=>e.id===this.props.field.control_field))[0],n=this.props.field.control_field+"_lm_enabled_once",r=t.filter((e=>e.id===n))[0],a="learning_mode"===s.value?1:0,i="completed"===s.value?1:0;a&&(r.value=1),s.value=a||i?"disabled":"learning_mode",a=a||i?0:1,i=0,this.setState({learning_mode:a,lm_enabled_once:r.value,learning_mode_completed:i});let o=[];o.push(s),o.push(r),l(o).then((e=>{}))}onDeleteHandler(e){let t=this.props.field;"object"==typeof t.value&&(t.value=Object.values(t.value)),t.value.forEach((function(s,n){s.id===e.id&&t.value.splice(n,1)}));for(const e of t.value)delete e.valueControl,delete e.statusControl,delete e.deleteControl;t.updateItemId=e.id,t.action="delete";let s=[];s.push(t),this.props.updateField(t.id,t.value),l(s).then((e=>{}))}render(){let t=this.props.field,s=(t.value,this.props.options,(0,d.__)("We're configuring your %s. Exit to edit and enforce.","really-simple-ssl").replace("%s",t.label)),n=(0,d.__)("%s has been disabled.","really-simple-ssl").replace("%s",t.label),r=(0,d.__)("%s is enforced.","really-simple-ssl").replace("%s",t.label);const{filterValue:a,enforce:l,learning_mode:i,lm_enabled_once:o,learning_mode_completed:c}=this.state;let u=!o;columns=[],t.columns.forEach((function(e,t){let s={name:e.name,sortable:e.sortable,width:e.width,selector:t=>t[e.column]};columns.push(s)}));let p=t.value;"object"==typeof p&&(p=Object.values(p)),Array.isArray(p)||(p=[]),p=p.filter((e=>e.status<2)),-1!=a&&(p=p.filter((e=>e.status==a)));for(const t of p)t.login_status&&(t.login_statusControl=1==t.login_status?(0,d.__)("success","really-simple-ssl"):(0,d.__)("failed","really-simple-ssl")),t.statusControl=(0,e.createElement)(ue,{item:t,onChangeHandlerDataTableStatus:this.props.onChangeHandlerDataTableStatus}),t.deleteControl=(0,e.createElement)(fe,{item:t,onDeleteHandler:this.onDeleteHandler});return(0,ae.jG)("really-simple-plugins",{divider:{default:"transparent"}},"light"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:this.highLightClass},0==p.length&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-learningmode-placeholder"},(0,e.createElement)("div",null),(0,e.createElement)("div",null),(0,e.createElement)("div",null),(0,e.createElement)("div",null))),p.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ae.ZP,{columns:columns,data:p,dense:!0,pagination:!0,noDataComponent:(0,d.__)("No results","really-simple-ssl"),persistTableHead:!0,theme:"really-simple-plugins",customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}},conditionalRowStyles:[{when:e=>0==e.status,classNames:["rsssl-datatables-revoked"]}]})),(0,e.createElement)("div",{className:"rsssl-learning-mode-footer"},1!=l&&(0,e.createElement)("button",{disabled:u,className:"button button-primary",onClick:e=>this.toggleEnforce(e,!0)},(0,d.__)("Enforce","really-simple-ssl")),1==l&&(0,e.createElement)("button",{className:"button",onClick:e=>this.toggleEnforce(e,!1)},(0,d.__)("Disable","really-simple-ssl")),(0,e.createElement)("label",null,(0,e.createElement)("input",{type:"checkbox",disabled:l,checked:1==i,value:i,onChange:e=>this.toggleLearningMode(e)}),(0,d.__)("Enable Learning Mode","really-simple-ssl")),1==l&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-shield-overlay"},(0,e.createElement)(h,{name:"shield",size:"80px"})),(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-enforced"},(0,d.__)("Enforced","really-simple-ssl")),r," ",(0,e.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>this.toggleEnforce(e)},(0,d.__)("Disable to configure","really-simple-ssl")))),1==i&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode"},(0,d.__)("Learning Mode","really-simple-ssl")),s," ",(0,e.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>this.toggleLearningMode(e)},(0,d.__)("Exit learning mode","really-simple-ssl")))),1==c&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-completed"},(0,d.__)("Learning Mode","really-simple-ssl")),(0,d.__)("We finished the configuration.","really-simple-ssl")," ",(0,e.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>this.toggleLearningMode(e)},(0,d.__)("Review the settings and enforce the policy","really-simple-ssl")))),rsssl_settings.pro_plugin_active&&this.props.disabled&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-progress-status rsssl-disabled"},(0,d.__)("Disabled ","really-simple-ssl")),n)),(0,e.createElement)((()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("select",{onChange:e=>this.doFilter(e),value:a},(0,e.createElement)("option",{value:"-1"},(0,d.__)("All","really-simple-ssl")),(0,e.createElement)("option",{value:"1"},(0,d.__)("Allowed","really-simple-ssl")),(0,e.createElement)("option",{value:"0"},(0,d.__)("Blocked","really-simple-ssl"))))),null))))}}var be=ve;class ye extends e.Component{constructor(){super(...arguments),this.onChangeHandlerDataTableStatus=this.onChangeHandlerDataTableStatus.bind(this),this.onChangeHandler=this.onChangeHandler.bind(this)}componentDidMount(){}onChangeHandler(e){let t=this.props.fields,s=this.props.field;t[this.props.index].value=e;let n=!1;if(s.configure_on_activation){s.configure_on_activation.hasOwnProperty("condition")&&this.props.field.value==s.configure_on_activation.condition&&(n=!0);let e=s.configure_on_activation[0];for(let t in e)n&&e.hasOwnProperty(t)&&this.props.updateField(t,e[t])}this.props.saveChangedFields(s.id)}onChangeHandlerDataTableStatus(e,t,s){let n=this.props.field;e=1==e?0:1,"object"==typeof n.value&&(n.value=Object.values(n.value));for(const r of n.value)r.id===t.id&&(r[s]=e),delete r.valueControl,delete r.statusControl,delete r.deleteControl;n.updateItemId=t.id;let r=[];r.push(n),this.props.updateField(n.id,n.value),l(r).then((e=>{}))}onCloseTaskHandler(){}render(){let t=this.props.field,s=t.value,n=this.props.fields,r=t.disabled;this.highLightClass=this.props.highLightedField===this.props.field.id?"rsssl-field-wrap rsssl-highlight":"rsssl-field-wrap";let a=[];if(t.options)for(var l in t.options)if(t.options.hasOwnProperty(l)){let e={};e.label=t.options[l],e.value=l,a.push(e)}if(!rsssl_settings.networkwide_active&&t.networkwide_required&&(r=!0,t.comment=(0,e.createElement)(e.Fragment,null,(0,d.__)("This feature is only available networkwide.","really-simple-ssl"),(0,e.createElement)(k,{target:"_blank",text:(0,d.__)("Network settings","really-simple-ssl"),url:rsssl_settings.network_link}))),t.conditionallyDisabled&&(r=!0),!t.visible)return(0,e.createElement)(e.Fragment,null);if("checkbox"===t.type)return(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(x.ToggleControl,{disabled:r,checked:1==t.value,label:t.label,onChange:e=>this.onChangeHandler(e)}),t.comment&&(0,e.createElement)("div",{className:"rsssl-comment",dangerouslySetInnerHTML:{__html:t.comment}}));if("hidden"===t.type)return(0,e.createElement)("input",{type:"hidden",value:t.value});if("radio"===t.type)return(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(x.RadioControl,{label:t.label,onChange:e=>this.onChangeHandler(e),selected:s,options:a}));if("text"===t.type||"email"===t.type)return(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(x.TextControl,{required:t.required,disabled:r,help:t.comment,label:t.label,onChange:e=>this.onChangeHandler(e),value:s}));if("button"===t.type)return(0,e.createElement)("div",{className:"rsssl-field-button "+this.highLightClass},(0,e.createElement)("label",null,t.label),(0,e.createElement)(k,{className:"button button-default",text:t.button_text,url:t.url}));if("password"===t.type)return(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(Y,{index:this.props.index,field:t,fields:this.props.fields,saveChangedFields:this.props.saveChangedFields}));if("textarea"===t.type)return(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(x.TextareaControl,{label:t.label,help:t.comment,value:s,onChange:e=>this.onChangeHandler(e)}));if("license"===t.type){let t=this.props.field,s=t.value,n=this.props.fields;return(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(q,{setPageProps:this.props.setPageProps,fieldsUpdateComplete:this.props.fieldsUpdateComplete,index:this.props.index,fields:n,field:t,fieldValue:s,saveChangedFields:this.props.saveChangedFields,highLightField:this.props.highLightField,highLightedField:this.props.highLightedField}))}return"number"===t.type?(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(x.__experimentalNumberControl,{onChange:e=>this.onChangeHandler(e),help:t.comment,label:t.label,value:s})):"email"===t.type?(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(x.TextControl,{help:t.comment,label:t.label,onChange:e=>this.onChangeHandler(e),value:s})):"host"===t.type?(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(J,{index:this.props.index,saveChangedFields:this.props.saveChangedFields,handleNextButtonDisabled:this.props.handleNextButtonDisabled,updateFields:this.props.updateFields,fields:this.props.fields,field:this.props.field})):"select"===t.type?(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(x.SelectControl,{disabled:r,help:t.comment,label:t.label,onChange:e=>this.onChangeHandler(e),value:s,options:a})):"support"===t.type?(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(ge,null)):"permissionspolicy"===t.type?(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(he,{disabled:r,updateField:this.props.updateField,field:this.props.field,options:a,highLightClass:this.highLightClass,fields:n})):"learningmode"===t.type?(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(be,{disabled:r,onChangeHandlerDataTableStatus:this.onChangeHandlerDataTableStatus,updateField:this.props.updateField,field:this.props.field,options:a,highLightClass:this.highLightClass,fields:n})):"mixedcontentscan"===t.type?(0,e.createElement)("div",{className:this.highLightClass},(0,e.createElement)(ce,{dropItemFromModal:this.props.dropItemFromModal,handleModal:this.props.handleModal,field:this.props.field,fields:this.props.selectedFields})):"letsencrypt"===t.type?(0,e.createElement)(re,{key:t.id,resetRefreshTests:this.props.resetRefreshTests,refreshTests:this.props.refreshTests,getFieldValue:this.props.getFieldValue,save:this.props.save,selectMenu:this.props.selectMenu,addHelp:this.props.addHelp,updateField:this.props.updateField,fields:this.props.fields,field:t,handleNextButtonDisabled:this.props.handleNextButtonDisabled}):"activate"===t.type?(0,e.createElement)(se,{key:t.id,selectMainMenu:this.props.selectMainMenu,resetRefreshTests:this.props.resetRefreshTests,refreshTests:this.props.refreshTests,getFieldValue:this.props.getFieldValue,save:this.props.save,selectMenu:this.props.selectMenu,addHelp:this.props.addHelp,updateField:this.props.updateField,fields:this.props.fields,field:t,handleNextButtonDisabled:this.props.handleNextButtonDisabled}):"not found field type "+t.type}}var we=ye;class Ee extends e.Component{constructor(){super(...arguments),this.state={fields:this.props.fields,isAPILoaded:this.props.isAPILoaded},this.upgrade="https://really-simple-ssl.com/pro/",this.fields=this.props.fields}componentDidMount(){this.getLicenseStatus=this.getLicenseStatus.bind(this),this.handleLetsEncryptReset=this.handleLetsEncryptReset.bind(this)}getLicenseStatus(){return this.props.pageProps.hasOwnProperty("licenseStatus")?this.props.pageProps.licenseStatus:"invalid"}handleLetsEncryptReset(e){e.preventDefault(),o("reset").then((e=>{let t=window.location.href.replace(/#letsencrypt.*/,"&r="+ +new Date+"#letsencrypt/le-system-status");window.location.href=t}))}render(){let t,s=this.props.selectedMenuItem,n=[];for(const e of this.props.fields)e.group_id===this.props.group&&n.push(e);for(const e of this.props.menu.menu_items)if(e.id===s?t=e:e.menu_items&&(t=e.menu_items.filter((e=>e.id===s))[0]),t)break;for(const e of this.props.menu.menu_items)if(e.id===s&&e.hasOwnProperty("groups")){let s=e.groups.filter((e=>e.id===this.props.group));s.length>0&&(t=s[0])}let a="invalid",l=t.premium_text?t.premium_text:(0,d.__)("Learn more about %sPremium%s","really-simple-ssl");rsssl_settings.pro_plugin_active&&(a=this.getLicenseStatus(),l="empty"===a||"deactivated"===a?rsssl_settings.messageInactive:rsssl_settings.messageInvalid);let i="valid"!==a&&t.premium,o=!rsssl_settings.networkwide_active&&t.networkwide_required;this.upgrade=t.upgrade?t.upgrade:this.upgrade;let c=t.helpLink_text?t.helpLink_text:(0,d.__)("Instructions","really-simple-ssl"),u=r("main"),p=i||o?"rsssl-disabled":"";return(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-"+t.id+" "+p},t.title&&(0,e.createElement)("div",{className:"rsssl-grid-item-header"},(0,e.createElement)("h3",{className:"rsssl-h4"},t.title),t.helpLink&&"letsencrypt"!==u&&(0,e.createElement)("div",{className:"rsssl-grid-item-controls"},(0,e.createElement)(k,{target:"_blank",className:"rsssl-helplink",text:c,url:t.helpLink})),"letsencrypt"===u&&(0,e.createElement)("div",{className:"rsssl-grid-item-controls"},(0,e.createElement)("a",{href:"#",className:"rsssl-helplink",onClick:e=>this.handleLetsEncryptReset(e)},(0,d.__)("Reset Let's Encrypt","really-simple-ssl")))),(0,e.createElement)("div",{className:"rsssl-grid-item-content"},t.intro&&(0,e.createElement)("div",{className:"rsssl-settings-block-intro"},t.intro),n.map(((t,s)=>(0,e.createElement)(we,{key:s,index:s,updateFields:this.props.updateFields,selectMenu:this.props.selectMenu,selectMainMenu:this.props.selectMainMenu,dropItemFromModal:this.props.dropItemFromModal,handleNextButtonDisabled:this.props.handleNextButtonDisabled,handleModal:this.props.handleModal,showSavedSettingsNotice:this.props.showSavedSettingsNotice,updateField:this.props.updateField,getFieldValue:this.props.getFieldValue,refreshTests:this.props.refreshTests,resetRefreshTests:this.props.resetRefreshTests,addHelp:this.props.addHelp,setPageProps:this.props.setPageProps,fieldsUpdateComplete:this.props.fieldsUpdateComplete,highLightField:this.props.highLightField,highLightedField:this.props.highLightedField,saveChangedFields:this.props.saveChangedFields,field:t,fields:n})))),i&&!o&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-task-status rsssl-premium"},(0,d.__)("Upgrade","really-simple-ssl")),(0,e.createElement)("span",null,rsssl_settings.pro_plugin_active&&(0,e.createElement)("span",null,l," ",(0,e.createElement)("a",{className:"rsssl-locked-link",href:"#settings/license"},(0,d.__)("Check license","really-simple-ssl"))),!rsssl_settings.pro_plugin_active&&(0,e.createElement)(k,{target:"_blank",text:l,url:this.upgrade})))),o&&(0,e.createElement)("div",{className:"rsssl-locked"},(0,e.createElement)("div",{className:"rsssl-locked-overlay"},(0,e.createElement)("span",{className:"rsssl-task-status rsssl-warning"},(0,d.__)("Network feature","really-simple-ssl")),(0,e.createElement)("span",null,(0,d.__)("This feature is only available networkwide.","really-simple-ssl"),(0,e.createElement)(k,{target:"_blank",text:(0,d.__)("Network settings","really-simple-ssl"),url:rsssl_settings.network_link})))))}}var Ce=Ee;class _e extends e.Component{render(){let t=this.props.help;t.title||(t.title=t.text,t.text=!1);let s=this.props.noticesExpanded?"open":"",n=t.url&&-1!==t.url.indexOf("really-simple-ssl.com")?"_blank":"_self";return(0,e.createElement)(e.Fragment,null,t.title&&t.text&&(0,e.createElement)("details",{className:"rsssl-wizard-help-notice rsssl-"+t.label.toLowerCase(),open:s},(0,e.createElement)("summary",null,t.title," ",(0,e.createElement)(h,{name:"chevron-down"})),(0,e.createElement)("div",{dangerouslySetInnerHTML:{__html:t.text}}),t.url&&(0,e.createElement)("div",{className:"rsssl-help-more-info"},(0,e.createElement)("a",{target:n,href:t.url},(0,d.__)("More info","really-simple-ssl")))),t.title&&!t.text&&(0,e.createElement)("div",{className:"rsssl-wizard-help-notice rsssl-"+t.label.toLowerCase()},(0,e.createElement)("p",null,t.title)))}}var xe=_e;class Se extends e.Component{constructor(){super(...arguments),this.state={noticesExpanded:!0},this.toggleNotices=this.toggleNotices.bind(this),this.saveAndContinue=this.saveAndContinue.bind(this),this.save=this.save.bind(this)}componentDidMount(){}toggleNotices(){const{noticesExpanded:e}=this.state;this.setState({noticesExpanded:!e})}save(){this.props.save()}saveAndContinue(){this.props.nextButtonDisabled||this.props.saveAndContinue()}render(){let t=this.props.isAPILoaded,s=this.props.progress,n=this.props.selectedMenuItem,r=this.props.fields,a=(this.props.selectedStep,this.props.menu);const{menu_items:l}=a,{noticesExpanded:i}=this.state;if(!t)return(0,e.createElement)(v,null);let o=r.filter((e=>e.menu_id===n)),c=[];for(const e of o)T(e.group_id,c)||c.push(e.group_id);let u=(0,d.__)("Save","really-simple-ssl");for(const e of l)e.id===n&&e.tests_only&&(u=(0,d.__)("Refresh","really-simple-ssl"));let p=[];for(const e of s.notices){let t=!1;if(e.show_with_options&&"warning"===e.output.icon&&(t=o.filter((t=>e.show_with_options.includes(t.id))).length>0),t||e.menu_id===n){let t={};t.title=!!e.output.title&&e.output.title,t.label=e.output.label,t.id=e.id,t.text=e.output.msg,t.url=e.output.url,t.linked_field=e.show_with_option,p.push(t)}}for(const e of o.filter((e=>e.help)))e.help.id=e.id,p.push(e.help);p=p.filter((e=>"completed"!==e.label.toLowerCase()));let h=this.props.nextButtonDisabled?`#${this.props.selectedMainMenuItem}/${this.props.selectedMenuItem}`:`#${this.props.selectedMainMenuItem}/${this.props.nextMenuItem}`;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-wizard-settings"},c.map(((t,s)=>(0,e.createElement)(Ce,{updateFields:this.props.updateFields,dropItemFromModal:this.props.dropItemFromModal,selectMenu:this.props.selectMenu,selectMainMenu:this.props.selectMainMenu,handleNextButtonDisabled:this.props.handleNextButtonDisabled,menu:this.props.menu,handleModal:this.props.handleModal,showSavedSettingsNotice:this.props.showSavedSettingsNotice,updateField:this.props.updateField,getFieldValue:this.props.getFieldValue,refreshTests:this.props.refreshTests,resetRefreshTests:this.props.resetRefreshTests,addHelp:this.props.addHelp,pageProps:this.props.pageProps,setPageProps:this.props.setPageProps,fieldsUpdateComplete:this.props.fieldsUpdateComplete,key:s,index:s,highLightField:this.props.highLightField,highLightedField:this.props.highLightedField,selectedMenuItem:n,saveChangedFields:this.props.saveChangedFields,group:t,fields:o}))),(0,e.createElement)("div",{className:"rsssl-grid-item-footer"},this.props.selectedMenuItem!==l[0].id&&(0,e.createElement)("a",{className:"button button-secondary",href:`#${this.props.selectedMainMenuItem}/${this.props.previousMenuItem}`,onClick:()=>this.props.previousStep(!0)},(0,d.__)("Previous","really-simple-ssl")),(0,e.createElement)("button",{className:"button button-primary",onClick:this.save},u),this.props.selectedMenuItem!==l[l.length-1].id&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",{disabled:this.props.nextButtonDisabled,className:"button button-primary",href:h,onClick:this.saveAndContinue},(0,d.__)("Save and Continue","really-simple-ssl"))))),(0,e.createElement)("div",{className:"rsssl-wizard-help"},(0,e.createElement)("div",{className:"rsssl-help-header"},(0,e.createElement)("div",{className:"rsssl-help-title rsssl-h4"},(0,d.__)("Notifications","really-simple-ssl")),(0,e.createElement)("div",{className:"rsssl-help-control",onClick:()=>this.toggleNotices()},!i&&(0,d.__)("Expand all","really-simple-ssl"),i&&(0,d.__)("Collapse all","really-simple-ssl"))),p.map(((t,s)=>(0,e.createElement)(xe,{key:s,noticesExpanded:i,index:s,help:t,fieldId:t.id})))))}}var ke=Se;class Me extends e.Component{constructor(){super(...arguments),this.state={refreshTests:!1,fields:"",isAPILoaded:!1,changedFields:"",nextButtonDisabled:!1}}componentDidMount(){this.save=this.save.bind(this),this.saveAndContinue=this.saveAndContinue.bind(this),this.wizardNextPrevious=this.wizardNextPrevious.bind(this),this.saveChangedFields=this.saveChangedFields.bind(this),this.addVisibleToMenuItems=this.addVisibleToMenuItems.bind(this),this.updateFieldsListWithConditions=this.updateFieldsListWithConditions.bind(this),this.filterMenuItems=this.filterMenuItems.bind(this),this.showSavedSettingsNotice=this.showSavedSettingsNotice.bind(this),this.resetRefreshTests=this.resetRefreshTests.bind(this),this.handleNextButtonDisabled=this.handleNextButtonDisabled.bind(this),this.checkRequiredFields=this.checkRequiredFields.bind(this),this.props.fields;let e=[],t=this.props.selectedMenuItem;this.selectedMenuItem=t,this.changedFields=e,this.props.menu.menu_items=this.addVisibleToMenuItems(this.props.menu.menu_items),this.checkRequiredFields(),this.updateFieldsListWithConditions(),this.setState({isAPILoaded:!0,fields:this.props.fields,changedFields:e,selectedMainMenuItem:this.props.selectedMainMenuItem})}componentDidChange(){}addVisibleToMenuItems(e){const t=e;for(const[s,n]of e.entries())n.visible=!0,n.hasOwnProperty("menu_items")&&(n.menu_items=this.addVisibleToMenuItems(n.menu_items)),t[s]=n;return t}handleNextButtonDisabled(e){const{nextButtonDisabled:t}=this.state;t!==e&&this.setState({nextButtonDisabled:e})}checkRequiredFields(){let e=[];for(const t of this.props.fields)t.menu_id===this.props.selectedMenuItem&&e.push(t);1==e.length&&e[0].actions&&e[0].actions.length>0||(e.filter((e=>e.required&&(0==e.value.length||!e.value))).length>0?this.handleNextButtonDisabled(!0):this.handleNextButtonDisabled(!1))}filterMenuItems(e){const t=e;for(const[s,n]of e.entries()){const e=this.props.fields.filter((e=>e.menu_id===n.id&&e.visible));if(0!==e.length||n.hasOwnProperty("menu_items")?(t[s].visible=!0,n.hasOwnProperty("menu_items")&&(t[s].menu_items=this.filterMenuItems(n.menu_items))):t[s].visible=!1,n.id===this.props.selectedMenuItem&&0===e.length&&n.hasOwnProperty("menu_items")){const e=t[s].menu_items[0].id;console.log("select "+e),this.props.selectMenu(e)}}return t}updateFieldsListWithConditions(){for(const e of this.props.fields){let t=!(e.hasOwnProperty("react_conditions")&&!this.validateConditions(e.react_conditions,this.props.fields)),s=this.props.fields[this.props.fields.indexOf(e)].conditionallyDisabled;if(this.props.fields[this.props.fields.indexOf(e)].conditionallyDisabled=!t,s&&t){let t=this.changedFields;"learningmode"===e.type||T(e.id,t)||t.push(e.id),this.changedFields=t,this.setState({changedFields:t})}t||"letsencrypt"!==e.type&&"hide"!==e.condition_action?this.props.fields[this.props.fields.indexOf(e)].visible=!0:this.props.fields[this.props.fields.indexOf(e)].visible=!1}this.filterMenuItems(this.props.menu.menu_items)}saveChangedFields(e){this.updateFieldsListWithConditions();let t=this.changedFields;T(e,t)||t.push(e),this.changedFields=t,this.setState({changedFields:t})}showSavedSettingsNotice(){(0,z.dispatch)("core/notices").createNotice("success",(0,d.__)("Settings Saved","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_settings_saved",type:"snackbar",isDismissible:!0}).then(Z(2e3)).then((e=>{(0,z.dispatch)("core/notices").removeNotice("rsssl_settings_saved")}))}save(e){const{fields:t}=this.state;let s=[];for(const e of t)T(e.id,this.changedFields)&&s.push(e);l(s).then((t=>{this.changedFields=[],this.props.updateProgress(t.data.progress),this.setState({changedFields:[]}),e||this.setState({refreshTests:!0}),this.showSavedSettingsNotice()}))}resetRefreshTests(){this.setState({refreshTests:!1})}wizardNextPrevious(e){const{nextMenuItem:t,previousMenuItem:s}=this.props.getPreviousAndNextMenuItems();this.props.selectMenu(e?s:t)}saveAndContinue(){this.wizardNextPrevious(!1),this.save(!0)}validateConditions(e,t){let s="OR"===e.relation?"OR":"AND",n="AND"===s;for(const r in e)if(e.hasOwnProperty(r)){let a="AND"===s,l=e[r];if(l.hasOwnProperty("relation"))a=this.validateConditions(l,t);else for(let e in l){let r=0===e.indexOf("!");if(l.hasOwnProperty(e)){let i=l[e];e=e.replace("!","");let o=t.filter((t=>t.id===e));if(o.hasOwnProperty(0))if("checkbox"===o[0].type){let e=+o[0].value;i=+i,a=e===i}else a=-1!==i.indexOf("EMPTY")?0===o[0].value.length:o[0].value.toLowerCase()===i.toLowerCase();r&&(a=!a),n="AND"===s?n&&a:n||a}}}return n?1:0}render(){const{selectedStep:t,isAPILoaded:s,refreshTests:n,changedFields:r,nextButtonDisabled:a}=this.state;if(!s)return(0,e.createElement)(v,null);let l=0===r.length;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(B,{isAPILoaded:s,menu:this.props.menu,selectMenu:this.props.selectMenu,selectStep:this.props.selectStep,selectedStep:this.props.selectedStep,selectedMenuItem:this.props.selectedMenuItem,selectedMainMenuItem:this.props.selectedMainMenuItem,getPreviousAndNextMenuItems:this.props.getPreviousAndNextMenuItems}),(0,e.createElement)(ke,{updateFields:this.props.updateFields,dropItemFromModal:this.props.dropItemFromModal,selectMenu:this.props.selectMenu,selectMainMenu:this.props.selectMainMenu,nextButtonDisabled:a,handleNextButtonDisabled:this.handleNextButtonDisabled,getDefaultMenuItem:this.props.getDefaultMenuItem,handleModal:this.props.handleModal,showSavedSettingsNotice:this.showSavedSettingsNotice,updateField:this.props.updateField,getFieldValue:this.props.getFieldValue,resetRefreshTests:this.resetRefreshTests,refreshTests:n,addHelp:this.props.addHelp,pageProps:this.props.pageProps,setPageProps:this.props.setPageProps,fieldsUpdateComplete:l,highLightField:this.props.highLightField,highLightedField:this.props.highLightedField,isAPILoaded:s,fields:this.props.fields,progress:this.props.progress,saveChangedFields:this.saveChangedFields,menu:this.props.menu,save:this.save,saveAndContinue:this.saveAndContinue,selectedMenuItem:this.props.selectedMenuItem,selectedMainMenuItem:this.props.selectedMainMenuItem,selectedStep:this.props.selectedStep,previousStep:this.wizardNextPrevious,nextMenuItem:this.props.nextMenuItem,previousMenuItem:this.props.previousMenuItem}),(0,e.createElement)(U,{className:"rsssl-wizard-notices"}))}}var Ne=Me;class Pe extends e.Component{constructor(){super(...arguments),this.state={data:[],buttonsDisabled:!1}}dismissModal(e){this.props.handleModal(!1,null,e)}componentDidMount(){this.setState({data:this.props.data,buttonsDisabled:!1})}handleFix(e){let t=this.props.data.action;this.setState({buttonsDisabled:!0}),i(t,"refresh",this.props.data).then((e=>{let{data:t}=this.state;t.description=e.data.msg,t.subtitle="",this.setState({data:t}),this.props.data,e.data.success&&this.dismissModal(this.props.data)}))}render(){const{data:t,buttonsDisabled:s}=this.state;let n=s?"disabled":"",r=t.description;return Array.isArray(r)||(r=[r]),(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"rsssl-modal-backdrop",onClick:e=>this.dismissModal(e)}," "),(0,e.createElement)("div",{className:"rsssl-modal",id:"{id}"},(0,e.createElement)("div",{className:"rsssl-modal-header"},(0,e.createElement)("h2",{className:"modal-title"},t.title),(0,e.createElement)("button",{type:"button",className:"rsssl-modal-close","data-dismiss":"modal","aria-label":"Close",onClick:e=>this.dismissModal(e)},(0,e.createElement)(h,{name:"times"}))),(0,e.createElement)("div",{className:"rsssl-modal-content"},t.subtitle&&(0,e.createElement)("div",{className:"rsssl-modal-subtitle"},t.subtitle),Array.isArray(r)&&r.map(((t,s)=>(0,e.createElement)("div",{key:s,className:"rsssl-modal-description"},t)))),(0,e.createElement)("div",{className:"rsssl-modal-footer"},t.edit&&(0,e.createElement)("a",{href:t.edit,target:"_blank",className:"button button-secondary"},(0,d.__)("Edit","really-simple-ssl")),t.help&&(0,e.createElement)("a",{href:t.help,target:"_blank",className:"button rsssl-button-help"},(0,d.__)("Help","really-simple-ssl")),!t.ignored&&"ignore_url"===t.action&&(0,e.createElement)("button",{disabled:n,className:"button button-primary",onClick:e=>this.handleFix(e)},(0,d.__)("Ignore","really-simple-ssl")),"ignore_url"!==t.action&&(0,e.createElement)("button",{disabled:n,className:"button button-primary",onClick:e=>this.handleFix(e)},(0,d.__)("Fix","really-simple-ssl")))))}}var Re=Pe;class Oe extends e.Component{constructor(){super(...arguments)}render(){let t=rsssl_settings.plugin_url;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-header-container"},(0,e.createElement)("div",{className:"rsssl-header"},(0,e.createElement)("img",{className:"rsssl-logo",src:t+"assets/img/really-simple-ssl-logo.svg",alt:"Really Simple SSL logo"}))),(0,e.createElement)("div",{className:"rsssl-content-area rsssl-grid rsssl-dashboard rsssl-page-placeholder"},(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-column-2 rsssl-row-2 "}),(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-row-2"}),(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-row-2"}),(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-column-2"})))}}var Fe=Oe,Le=t=>{const[s,n]=(0,e.useState)(!1);(0,e.useEffect)((()=>{s||i("get_modal_status").then((e=>{n(!0),t.setShowOnBoardingModal(!e.data.dismissed)}))})),_((()=>{if(!0===t.showOnBoardingModal){i("dismiss_modal","refresh",{dismiss:!1}).then((e=>{}))}}));const r=()=>{t.setShowOnBoardingModal(!1),i("dismiss_modal","refresh",{dismiss:!0}).then((e=>{}))};return(0,e.createElement)(e.Fragment,null,t.showOnBoardingModal&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-modal-backdrop"}," "),(0,e.createElement)("div",{className:"rsssl-modal rsssl-onboarding"},(0,e.createElement)("div",{className:"rsssl-modal-header"},(0,e.createElement)("img",{className:"rsssl-logo",src:rsssl_settings.plugin_url+"assets/img/really-simple-ssl-logo.svg",alt:"Really Simple SSL logo"}),(0,e.createElement)("button",{type:"button",className:"rsssl-modal-close","data-dismiss":"modal","aria-label":"Close",onClick:r},(0,e.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:"24"},(0,e.createElement)("path",{fill:"#000000",d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"})))),(0,e.createElement)("div",{className:"rsssl-modal-content"},!t.isAPILoaded&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",null,(0,e.createElement)("li",null,(0,e.createElement)(h,{name:"file-download",color:"orange"}),(0,d.__)("Please wait while we detect your setup","really-simple-ssl"))),(0,e.createElement)(v,{lines:"10"})),t.isAPILoaded&&(0,e.createElement)(te,{getFields:t.getFields,updateField:t.updateField,selectMainMenu:t.selectMainMenu,isModal:!0,dismissModal:r})),(0,e.createElement)("div",{className:"rssl-modal-footer"}))))};class Ie extends e.Component{constructor(){super(...arguments),this.pageProps=[],this.pageProps.licenseStatus=rsssl_settings.licenseStatus,this.updateFields=this.updateFields.bind(this),this.updateProgress=this.updateProgress.bind(this),this.getFields=this.getFields.bind(this),this.selectMenu=this.selectMenu.bind(this),this.getSelectedMenu=this.getSelectedMenu.bind(this),this.selectStep=this.selectStep.bind(this),this.handleModal=this.handleModal.bind(this),this.highLightField=this.highLightField.bind(this),this.updateField=this.updateField.bind(this),this.getFieldValue=this.getFieldValue.bind(this),this.addHelp=this.addHelp.bind(this),this.selectMainMenu=this.selectMainMenu.bind(this),this.setPageProps=this.setPageProps.bind(this),this.getPreviousAndNextMenuItems=this.getPreviousAndNextMenuItems.bind(this),this.setShowOnBoardingModal=this.setShowOnBoardingModal.bind(this),this.state={selectedMainMenuItem:"",showOnBoardingModal:!1,selectedMenuItem:"",selectedStep:1,highLightedField:"",fields:"",menu:[],progress:"",isAPILoaded:!1,pageProps:this.pageProps,showModal:!1,modalData:[],dropItemFromModal:!1,nextMenuItem:"",previousMenuItem:""},this.getFields()}setShowOnBoardingModal(e){const{showOnBoardingModal:t}=this.state;e!==t&&this.setState({showOnBoardingModal:e})}updateFields(e){this.fields=e,this.setState({fields:e})}updateProgress(e){this.progress=e,this.setState({progress:e})}componentDidMount(){window.addEventListener("hashchange",(()=>{let e=r("main")||"dashboard";this.menu=this.getSelectedMenu(this.superMenu,e),this.setState({selectedMainMenuItem:e,selectedMenuItem:this.getDefaultMenuItem(),menu:this.menu},(()=>{this.getPreviousAndNextMenuItems()}))}))}getSelectedMenu(e,t){for(const s in e)if(e.hasOwnProperty(s)&&e[s]&&e[s].id===t)return e[s]}getFields(){(()=>{let e=r("main"),t={headers:{"X-WP-Nonce":rsssl_settings.nonce}},s=-1!==rsssl_settings.site_url.indexOf("?")?"&":"?";return n().get(rsssl_settings.site_url+"reallysimplessl/v1/fields/get"+s+e+"&nonce="+rsssl_settings.rsssl_nonce+a(),t)})().then((e=>{this.superMenu=e.data.menu;let t=r("main")||"dashboard";this.menu=this.getSelectedMenu(this.superMenu,t),this.fields=e.data.fields,this.progress=e.data.progress,this.setState({isAPILoaded:!0,fields:this.fields,progress:this.progress,menu:this.menu,selectedMenuItem:this.getDefaultMenuItem(),selectedMainMenuItem:t},(()=>{this.getPreviousAndNextMenuItems()}))}))}setPageProps(e,t){const{pageProps:s}=this.state;this.pageProps[e]=t,this.setState({pageProps:this.pageProps})}handleModal(e,t,s){this.setState({showModal:e,modalData:t,dropItemFromModal:s})}selectMenu(e){this.setState({selectedMenuItem:e})}selectStep(e){this.setState({selectedStep:e})}getDefaultMenuItem(){let e=this.menu&&this.menu.menu_items.hasOwnProperty(0)?this.menu.menu_items[0].id:"general",t=r("menu"),s=!1;for(const e in this.menu.menu_items)this.menu.menu_items.hasOwnProperty(e)&&this.menu.menu_items[e].id===t&&(s=!0);return s||(t=!1),t||e}selectMainMenu(e){this.menu=this.getSelectedMenu(this.superMenu,e);let t=this.getDefaultMenuItem();this.setState({menu:this.menu,selectedMainMenuItem:e,selectedMenuItem:t})}updateField(e,t){let s=this.fields;for(const n of s)n.id===e&&(n.value=t);this.fields=s,this.setState({fields:s})}getFieldValue(e){let t=this.fields;for(const s of t)if(s.id===e)return s.value;return!1}addHelp(e,t,s,n){let r={};r.label=t,r.text=s,n&&(r.title=n);let a=this.fields;for(const t of a)t.id!==e||t.help||(t.help=r,this.fields=a,this.setState({fields:a}))}highLightField(e){this.selectMainMenu("settings");let t=null,s=this.fields.filter((t=>t.id===e));s.length&&(t=s[0],this.selectMenu(t.menu_id)),this.highLightedField=e}menuItemParser(e,t){return t.forEach((t=>{t.visible&&(e.push(t.id),t.hasOwnProperty("menu_items")&&this.menuItemParser(e,t.menu_items))})),e}getPreviousAndNextMenuItems(){let e,t;const{menu_items:s}=this.state.menu,n=[];this.menuItemParser(n,s);const r=n.findIndex((e=>e===this.state.selectedMenuItem));return-1!==r&&(e=n[0===r?"":r-1],t=n[r===n.length-1?"":r+1],this.setState({previousMenuItem:e||n[0],nextMenuItem:t||n[n.length-1]})),{nextMenuItem:t,previousMenuItem:e}}render(){const{pageProps:t,selectedMainMenuItem:s,showOnBoardingModal:n,selectedMenuItem:r,fields:a,menu:l,progress:i,isAPILoaded:o,showModal:c,modalData:d,dropItemFromModal:u}=this.state;return(0,e.createElement)("div",{className:"rsssl-wrapper"},(0,e.createElement)(Le,{isAPILoaded:o,selectMenu:this.selectMenu,selectMainMenu:this.selectMainMenu,getFields:this.getFields,updateField:this.updateField,setShowOnBoardingModal:this.setShowOnBoardingModal,showOnBoardingModal:n,pageProps:this.pageProps,setPageProps:this.setPageProps}),!o&&(0,e.createElement)(Fe,null),c&&(0,e.createElement)(Re,{handleModal:this.handleModal,data:d}),o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(p,{selectedMainMenuItem:s,selectMainMenu:this.selectMainMenu,superMenu:this.superMenu,fields:a}),(0,e.createElement)("div",{className:"rsssl-content-area rsssl-grid rsssl-"+s},"dashboard"!==s&&(0,e.createElement)(Ne,{dropItemFromModal:u,updateFields:this.updateFields,updateProgress:this.updateProgress,pageProps:this.pageProps,handleModal:this.handleModal,getDefaultMenuItem:this.getDefaultMenuItem,updateField:this.updateField,getFieldValue:this.getFieldValue,addHelp:this.addHelp,setPageProps:this.setPageProps,selectMenu:this.selectMenu,selectStep:this.selectStep,selectedStep:this.state.selectedStep,highLightField:this.highLightField,highLightedField:this.highLightedField,selectedMenuItem:r,selectedMainMenuItem:s,selectMainMenu:this.selectMainMenu,isAPILoaded:o,fields:a,menu:l,progress:i,getPreviousAndNextMenuItems:this.getPreviousAndNextMenuItems,nextMenuItem:this.state.nextMenuItem,previousMenuItem:this.state.previousMenuItem}),"dashboard"===s&&(0,e.createElement)(D,{setShowOnBoardingModal:this.setShowOnBoardingModal,isAPILoaded:o,fields:a,selectMainMenu:this.selectMainMenu,highLightField:this.highLightField,pageProps:t}))))}}var Ae=Ie;document.addEventListener("DOMContentLoaded",(()=>{const t=document.getElementById("really-simple-ssl");t&&(0,e.render)((0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ae,null)),t)})),document.addEventListener("click",(e=>{e.target.closest("#ssl-labs-check-button")&&document.querySelector(".rsssl-ssllabs").classList.add("rsssl-block-highlight")}))}()}();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
settings/config/config.php CHANGED
@@ -111,7 +111,6 @@ function rsssl_menu() {
111
  [
112
  'id' => 'hsts',
113
  'title' => __( 'HTTP Strict Transport Security', 'really-simple-ssl' ),
114
- 'intro' => __( "Intro HSTS", "really-simple-ssl" ),
115
  'premium' => true,
116
  'groups' => [
117
  [
111
  [
112
  'id' => 'hsts',
113
  'title' => __( 'HTTP Strict Transport Security', 'really-simple-ssl' ),
 
114
  'premium' => true,
115
  'groups' => [
116
  [
settings/settings.php CHANGED
@@ -9,7 +9,6 @@ defined('ABSPATH') or die();
9
 
10
  require_once( rsssl_path . 'settings/config/config.php' );
11
  require_once( rsssl_path . 'settings/config/disable-fields-filter.php' );
12
- //require_once( rsssl_path . 'settings/rest-api-optimizer/rest-api-optimizer.php' );
13
 
14
  /**
15
  * Fix for WPML issue where WPML breaks the rest api by adding a language locale in the url
@@ -22,13 +21,25 @@ require_once( rsssl_path . 'settings/config/disable-fields-filter.php' );
22
  * @return string
23
  */
24
  function rsssl_fix_rest_url_for_wpml( $url, $path, $blog_id, $scheme) {
 
 
 
 
 
25
  if ( function_exists( 'icl_register_string' ) ) {
26
  $current_language = apply_filters( 'wpml_current_language', null );
27
- if ( strpos($url, '/'.$current_language.'/wp-json/') ) {
28
- $url = str_replace( '/'.$current_language.'/wp-json/', '/wp-json/', $url);
29
- }
30
  }
31
- return $url;
 
 
 
 
 
 
 
 
 
 
32
  }
33
  add_filter( 'rest_url', 'rsssl_fix_rest_url_for_wpml', 10, 4 );
34
 
@@ -425,7 +436,7 @@ function rsssl_rest_api_fields_set($request){
425
 
426
  $config_field_index = array_search($field['id'], $config_ids);
427
  $config_field = $config_fields[$config_field_index];
428
- if ( !$config_field_index ){
429
  unset($fields[$index]);
430
  continue;
431
  }
@@ -505,11 +516,11 @@ function rsssl_update_option( $name, $value ) {
505
  $config_fields = rsssl_fields(false);
506
  $config_ids = array_column($config_fields, 'id');
507
  $config_field_index = array_search($name, $config_ids);
508
- $config_field = $config_fields[$config_field_index];
509
  if ( $config_field_index === false ){
510
  return;
511
  }
512
 
 
513
  $type = $config_field['type'] ?? false;
514
  if ( !$type ) {
515
  return;
@@ -525,6 +536,11 @@ function rsssl_update_option( $name, $value ) {
525
  $type = rsssl_sanitize_field_type($config_field['type']);
526
  $value = rsssl_sanitize_field( $value, $type, $name );
527
  $value = apply_filters("rsssl_fieldvalue", $value, sanitize_text_field($name), $type);
 
 
 
 
 
528
  $options[$name] = $value;
529
  if ( is_multisite() && rsssl_is_networkwide_active() ) {
530
  update_site_option( 'rsssl_options', $options );
@@ -593,20 +609,22 @@ function rsssl_drop_empty_menu_items( $menu_items, $fields) {
593
  if ( !rsssl_user_can_manage() ) {
594
  return $menu_items;
595
  }
596
- $new_menu_items = $menu_items;
597
- foreach($menu_items as $key => $menu_item) {
598
- $searchResult = array_search($menu_item['id'], array_column($fields, 'menu_id'));
599
- if($searchResult === false) {
600
- unset($new_menu_items[$key]);
601
- //reset array keys to prevent issues with react
602
- $new_menu_items = array_values($new_menu_items);
603
- } else {
604
- if(isset($menu_item['menu_items'])){
605
- $updatedValue = rsssl_drop_empty_menu_items($menu_item['menu_items'], $fields);
606
- $new_menu_items[$key]['menu_items'] = $updatedValue;
607
- }
608
- }
609
- }
 
 
610
  return $new_menu_items;
611
  }
612
 
9
 
10
  require_once( rsssl_path . 'settings/config/config.php' );
11
  require_once( rsssl_path . 'settings/config/disable-fields-filter.php' );
 
12
 
13
  /**
14
  * Fix for WPML issue where WPML breaks the rest api by adding a language locale in the url
21
  * @return string
22
  */
23
  function rsssl_fix_rest_url_for_wpml( $url, $path, $blog_id, $scheme) {
24
+ if ( strpos($url, 'reallysimplessl/v')===false ) {
25
+ return $url;
26
+ }
27
+
28
+ $current_language = false;
29
  if ( function_exists( 'icl_register_string' ) ) {
30
  $current_language = apply_filters( 'wpml_current_language', null );
 
 
 
31
  }
32
+
33
+ if ( function_exists('qtranxf_getLanguage') ){
34
+ $current_language = qtranxf_getLanguage();
35
+ }
36
+
37
+ if ( $current_language ) {
38
+ if ( strpos($url, '/'.$current_language.'/wp-json/') ) {
39
+ $url = str_replace( '/'.$current_language.'/wp-json/', '/wp-json/', $url);
40
+ }
41
+ }
42
+ return $url;
43
  }
44
  add_filter( 'rest_url', 'rsssl_fix_rest_url_for_wpml', 10, 4 );
45
 
436
 
437
  $config_field_index = array_search($field['id'], $config_ids);
438
  $config_field = $config_fields[$config_field_index];
439
+ if ( $config_field_index===false ){
440
  unset($fields[$index]);
441
  continue;
442
  }
516
  $config_fields = rsssl_fields(false);
517
  $config_ids = array_column($config_fields, 'id');
518
  $config_field_index = array_search($name, $config_ids);
 
519
  if ( $config_field_index === false ){
520
  return;
521
  }
522
 
523
+ $config_field = $config_fields[$config_field_index];
524
  $type = $config_field['type'] ?? false;
525
  if ( !$type ) {
526
  return;
536
  $type = rsssl_sanitize_field_type($config_field['type']);
537
  $value = rsssl_sanitize_field( $value, $type, $name );
538
  $value = apply_filters("rsssl_fieldvalue", $value, sanitize_text_field($name), $type);
539
+
540
+ #skip if value wasn't changed
541
+ if ($options[$name]===$value) {
542
+ return;
543
+ }
544
  $options[$name] = $value;
545
  if ( is_multisite() && rsssl_is_networkwide_active() ) {
546
  update_site_option( 'rsssl_options', $options );
609
  if ( !rsssl_user_can_manage() ) {
610
  return $menu_items;
611
  }
612
+ $new_menu_items = $menu_items;
613
+ foreach($menu_items as $key => $menu_item) {
614
+ //if menu has submenu items, show anyway
615
+ $has_submenu = isset($menu_item['menu_items']);
616
+ $has_fields = array_search($menu_item['id'], array_column($fields, 'menu_id'));
617
+ if( $has_fields === false && !$has_submenu) {
618
+ unset($new_menu_items[$key]);
619
+ //reset array keys to prevent issues with react
620
+ $new_menu_items = array_values($new_menu_items);
621
+ } else {
622
+ if( $has_submenu ){
623
+ $updatedValue = rsssl_drop_empty_menu_items($menu_item['menu_items'], $fields);
624
+ $new_menu_items[$key]['menu_items'] = $updatedValue;
625
+ }
626
+ }
627
+ }
628
  return $new_menu_items;
629
  }
630
 
settings/src/Menu/MenuItem.js CHANGED
@@ -44,7 +44,9 @@ class MenuItem extends Component {
44
  (subMenuItem, i) => subMenuItem.visible && <MenuItem key={i}
45
  menuItem={subMenuItem}
46
  selectMenu={this.props.selectMenu}
47
- selectedMenuItem={this.props.selectedMenuItem}/>
 
 
48
  )}
49
  </div>}
50
  </div>}
44
  (subMenuItem, i) => subMenuItem.visible && <MenuItem key={i}
45
  menuItem={subMenuItem}
46
  selectMenu={this.props.selectMenu}
47
+ selectedMenuItem={this.props.selectedMenuItem}
48
+ selectedMainMenuItem={this.props.selectedMainMenuItem}
49
+ />
50
  )}
51
  </div>}
52
  </div>}
settings/src/Settings/SettingsPage.js CHANGED
@@ -44,6 +44,11 @@ class SettingsPage extends Component {
44
  let selectedMenuItem = this.props.selectedMenuItem;
45
  this.selectedMenuItem = selectedMenuItem;
46
  this.changedFields = changedFields;
 
 
 
 
 
47
  this.setState({
48
  isAPILoaded: true,
49
  fields: this.props.fields,
@@ -108,17 +113,25 @@ class SettingsPage extends Component {
108
  filterMenuItems(menuItems) {
109
  const newMenuItems = menuItems;
110
  for (const [index, menuItem] of menuItems.entries()) {
111
- const searchResult = this.props.fields.filter((field) => {
112
  return (field.menu_id === menuItem.id && field.visible)
113
  });
114
- if(searchResult.length === 0) {
115
  newMenuItems[index].visible = false;
116
  } else {
117
  newMenuItems[index].visible = true;
118
- if(menuItem.hasOwnProperty('menu_items')) {
119
  newMenuItems[index].menu_items = this.filterMenuItems(menuItem.menu_items);
120
  }
121
  }
 
 
 
 
 
 
 
 
122
  }
123
  return newMenuItems;
124
  }
@@ -284,9 +297,6 @@ class SettingsPage extends Component {
284
  <Placeholder></Placeholder>
285
  );
286
  }
287
- this.props.menu.menu_items = this.addVisibleToMenuItems(this.props.menu.menu_items);
288
- this.checkRequiredFields();
289
- this.updateFieldsListWithConditions();
290
 
291
  let fieldsUpdateComplete = changedFields.length === 0;
292
  return (
44
  let selectedMenuItem = this.props.selectedMenuItem;
45
  this.selectedMenuItem = selectedMenuItem;
46
  this.changedFields = changedFields;
47
+
48
+ this.props.menu.menu_items = this.addVisibleToMenuItems(this.props.menu.menu_items);
49
+ this.checkRequiredFields();
50
+ this.updateFieldsListWithConditions();
51
+
52
  this.setState({
53
  isAPILoaded: true,
54
  fields: this.props.fields,
113
  filterMenuItems(menuItems) {
114
  const newMenuItems = menuItems;
115
  for (const [index, menuItem] of menuItems.entries()) {
116
+ const menuItemFields = this.props.fields.filter((field) => {
117
  return (field.menu_id === menuItem.id && field.visible)
118
  });
119
+ if( menuItemFields.length === 0 && !menuItem.hasOwnProperty('menu_items') ) {
120
  newMenuItems[index].visible = false;
121
  } else {
122
  newMenuItems[index].visible = true;
123
+ if( menuItem.hasOwnProperty('menu_items') ) {
124
  newMenuItems[index].menu_items = this.filterMenuItems(menuItem.menu_items);
125
  }
126
  }
127
+
128
+ //if the current selected menu item has no fields, but it has a submenu, select the submenu.
129
+ if ( menuItem.id === this.props.selectedMenuItem && menuItemFields.length === 0 && menuItem.hasOwnProperty('menu_items')){
130
+ //get first item of submenu's
131
+ const firstSubMenuItem = newMenuItems[index].menu_items[0].id;
132
+ console.log("select "+firstSubMenuItem);
133
+ this.props.selectMenu(firstSubMenuItem);
134
+ }
135
  }
136
  return newMenuItems;
137
  }
297
  <Placeholder></Placeholder>
298
  );
299
  }
 
 
 
300
 
301
  let fieldsUpdateComplete = changedFields.length === 0;
302
  return (
settings/src/utils/api.js CHANGED
@@ -22,7 +22,8 @@ export const getFields = () => {
22
  'X-WP-Nonce': rsssl_settings.nonce,
23
  }
24
  }
25
- let glue = rsssl_settings.site_url.indexOf('?')!==-1 ? '&' : '?';
 
26
  return axios.get(rsssl_settings.site_url+'reallysimplessl/v1/fields/get'+glue+anchor+'&nonce='+rsssl_settings.rsssl_nonce+getRandomToken(), config);
27
  };
28
 
22
  'X-WP-Nonce': rsssl_settings.nonce,
23
  }
24
  }
25
+
26
+ let glue = rsssl_settings.site_url.indexOf('?') !==-1 ? '&' : '?';
27
  return axios.get(rsssl_settings.site_url+'reallysimplessl/v1/fields/get'+glue+anchor+'&nonce='+rsssl_settings.rsssl_nonce+getRandomToken(), config);
28
  };
29
 
upgrade.php CHANGED
@@ -19,10 +19,6 @@ function rsssl_upgrade() {
19
  delete_transient( 'rsssl_plusone_count' );
20
  }
21
 
22
- if ( $prev_version && version_compare( $prev_version, '4.0', '<' ) ) {
23
- update_option('rsssl_remaining_tasks', true, false );
24
- }
25
-
26
  if ( $prev_version && version_compare( $prev_version, '5.1.3', '<=' ) ) {
27
  if ( get_option( 'rsssl_disable_ocsp' ) ) {
28
  $options = get_option( 'rsssl_options_lets-encrypt' );
19
  delete_transient( 'rsssl_plusone_count' );
20
  }
21
 
 
 
 
 
22
  if ( $prev_version && version_compare( $prev_version, '5.1.3', '<=' ) ) {
23
  if ( get_option( 'rsssl_disable_ocsp' ) ) {
24
  $options = get_option( 'rsssl_options_lets-encrypt' );