Forminator Payment, Quiz and Contact Form Plugin - Version 1.21.0

Version Description

( 2022-12-05 ) =

  • Fix: Security improvements
  • Fix: Lead submissions to an unpublished quiz
  • Fix: Signature field does not work on Divi Popups
  • Fix: Stripe field not visible in pop-ups with on-click triggers
  • Fix: MailChimp Tags Modal window doesn't appear for quizzes
  • Fix: Phone field "National" validation fails when entering a valid international number
  • Fix: If Akismet protection is enabled, the form will display a warning when the Signature field is submitted
  • Fix: Redirect after submission isn't working
  • Fix: API method for adding polls isn't working
  • Fix: It is only possible to pre-populate a query variable if the option is set to 'Selected'
  • Fix: Uncaught exception for Mailchimp causes a fatal error
  • Fix: Register/login links disappear after submission
  • Fix: Multiselect email routing bug
  • Fix: Content filed in the Post Data field doesn't work with save and continue
  • Fix: The thousands separator is not working in email when using the {calc-ID} macro
  • Fix: Although calculations is disabled for a Number field, it is still used in calculations
  • Fix: The ampersand (&) sign is counted as 5 characters instead of 1
  • Fix: Bypass adding the required email notification recipient
  • Fix: Error when adding an ampersand (&) sign as a Checkbox option value
  • Fix: PayPal shows an error message when adding multiple forms with a PayPal button on the same page
  • Fix: An extra "+" character is added to phone number upon submission if the number is incorrect
  • Fix: Performing calculations on two number fields are initially out of sync when using the increase/decrease buttons
Download this release

Release Info

Developer Dency
Plugin Icon 128x128 Forminator Payment, Quiz and Contact Form Plugin
Version 1.21.0
Comparing to
See all releases

Code changes from version 1.20.1 to 1.21.0

addons/pro/activecampaign/class-forminator-addon-activecampaign.php CHANGED
@@ -322,7 +322,9 @@ final class Forminator_Addon_Activecampaign extends Forminator_Addon_Abstract {
322
  $show_success = true;
323
  }
324
  } catch ( Forminator_Addon_Activecampaign_Exception $e ) {
325
- $template_params['error_message'] = $e->getMessage();
 
 
326
  $has_errors = true;
327
  }
328
  }
@@ -384,12 +386,12 @@ final class Forminator_Addon_Activecampaign extends Forminator_Addon_Abstract {
384
  */
385
  public function validate_api_url( $api_url ) {
386
  if ( empty( $api_url ) ) {
387
- throw new Forminator_Addon_Activecampaign_Exception( __( 'Please put a valid ActiveCampaign API URL', 'forminator' ) );
388
  }
389
 
390
  $api_url = wp_http_validate_url( $api_url );
391
  if ( false === $api_url ) {
392
- throw new Forminator_Addon_Activecampaign_Exception( __( 'Please put a valid ActiveCampaign API URL', 'forminator' ) );
393
  }
394
 
395
  return $api_url;
@@ -407,7 +409,7 @@ final class Forminator_Addon_Activecampaign extends Forminator_Addon_Abstract {
407
  */
408
  public function validate_api_key( $api_key ) {
409
  if ( empty( $api_key ) ) {
410
- throw new Forminator_Addon_Activecampaign_Exception( __( 'Please put a valid ActiveCampaign API Key', 'forminator' ) );
411
  }
412
 
413
  return $api_key;
322
  $show_success = true;
323
  }
324
  } catch ( Forminator_Addon_Activecampaign_Exception $e ) {
325
+ $template_params['error_message'] = $this->connection_failed();
326
+ $template_params['api_key_error'] = esc_html__( 'Please enter a valid ActiveCampaign API Key', 'forminator' );
327
+ $template_params['api_url_error'] = esc_html__( 'Please enter a valid ActiveCampaign API URL', 'forminator' );
328
  $has_errors = true;
329
  }
330
  }
386
  */
387
  public function validate_api_url( $api_url ) {
388
  if ( empty( $api_url ) ) {
389
+ throw new Forminator_Addon_Activecampaign_Exception( __( 'Please enter a valid ActiveCampaign API URL', 'forminator' ) );
390
  }
391
 
392
  $api_url = wp_http_validate_url( $api_url );
393
  if ( false === $api_url ) {
394
+ throw new Forminator_Addon_Activecampaign_Exception( __( 'Please enter a valid ActiveCampaign API URL', 'forminator' ) );
395
  }
396
 
397
  return $api_url;
409
  */
410
  public function validate_api_key( $api_key ) {
411
  if ( empty( $api_key ) ) {
412
+ throw new Forminator_Addon_Activecampaign_Exception( __( 'Please enter a valid ActiveCampaign API Key', 'forminator' ) );
413
  }
414
 
415
  return $api_key;
addons/pro/mailchimp/class-forminator-addon-mailchimp-form-settings.php CHANGED
@@ -140,12 +140,21 @@ class Forminator_Addon_Mailchimp_Form_Settings extends Forminator_Addon_Form_Set
140
 
141
  $error_message = '';
142
  $input_error_messages = array();
 
143
 
144
  $html_select_mail_list = '';
145
  $html_field_mail_list = '';
146
 
147
  try {
148
  $api = $this->addon->get_api();
 
 
 
 
 
 
 
 
149
  $mail_lists = $api->get_all_lists();
150
  $lists = wp_list_pluck( $mail_lists, 'name', 'id' );
151
 
@@ -234,6 +243,10 @@ class Forminator_Addon_Mailchimp_Form_Settings extends Forminator_Addon_Form_Set
234
 
235
  $error_message .= '<p>' . $e->getMessage() . '</p>';
236
 
 
 
 
 
237
  $error_message .= '</div>';
238
 
239
  $error_message .= '</div>';
@@ -242,30 +255,33 @@ class Forminator_Addon_Mailchimp_Form_Settings extends Forminator_Addon_Form_Set
242
  }
243
 
244
  $buttons = array();
245
- // add disconnect button if already is_form_connected.
246
- if ( $this->addon->is_form_connected( $this->form_id ) ) {
247
- $buttons['disconnect']['markup'] = Forminator_Addon_Mailchimp::get_button_markup(
248
- esc_html__( 'Deactivate', 'forminator' ),
249
- 'sui-button-ghost sui-tooltip sui-tooltip-top-center forminator-addon-form-disconnect',
250
- esc_html__( 'Deactivate Mailchimp from this Form.', 'forminator' )
251
- );
252
- }
253
 
254
- $buttons['next']['markup'] = '<div class="sui-actions-right">' .
255
- Forminator_Addon_Mailchimp::get_button_markup( esc_html__( 'Next', 'forminator' ), 'forminator-addon-next' ) .
256
- '</div>';
 
 
 
 
 
 
257
 
258
- $gdpr_fields = '';
259
- if ( Forminator_Addon_Mailchimp::is_enable_gdpr() ) {
260
- $gdpr_fields = '<div class="sui-form-field">' .
261
- '<label class="sui-label">' . __( 'Enable GDPR', 'forminator' ) . '</label>
262
- <input type="checkbox" name="enable_gdpr" value="1" ' . checked( 1, $current_data['enable_double_opt_in'], false ) . '>
263
- </div>
 
 
 
 
264
 
265
- <div class="sui-form-field">
266
- <label class="sui-label">' . __( 'GDPR Text', 'forminator' ) . '</label>
267
- <textarea name="gdpr_text">' . $current_data['gdpr_text'] . '</textarea>
268
- </div>';
 
269
  }
270
 
271
  $html = '<div class="forminator-integration-popup__header">';
@@ -273,17 +289,20 @@ class Forminator_Addon_Mailchimp_Form_Settings extends Forminator_Addon_Form_Set
273
  $html .= '<p class="sui-description">' . __( 'Choose the audience you want to send form data to.', 'forminator' ) . '</p>';
274
  $html .= $error_message;
275
  $html .= '</div>';
276
- $html .= '<form enctype="multipart/form-data">';
277
- $html .= $html_field_mail_list;
278
- $html .= '<div class="sui-form-field">';
279
- $html .= '<label class="sui-toggle">';
280
- $html .= '<input type="checkbox" name="enable_double_opt_in" value="1" id="forminator_addon_mailchimp_enable_double_opt_in" ' . checked( 1, $current_data['enable_double_opt_in'], false ) . ' />';
281
- $html .= '<span class="sui-toggle-slider"></span>';
282
- $html .= '<span class="sui-toggle-label">' . __( 'Use Double Opt in', 'forminator' ) . '</span>';
283
- $html .= '</label>';
284
- $html .= '</div>';
285
- $html .= $gdpr_fields;
286
- $html .= '</form>';
 
 
 
287
 
288
  return array(
289
  'html' => $html,
@@ -662,23 +681,35 @@ class Forminator_Addon_Mailchimp_Form_Settings extends Forminator_Addon_Form_Set
662
  private function get_second_step_options_tags( $selected_ids ) {
663
  ob_start();
664
  // Reset cache.
665
- $this->set_tags( true );
666
- ?>
667
- <div class="sui-form-field">
668
- <label class="sui-label" for="tags"><strong><?php echo esc_html__( 'Tags', 'forminator' ) . '</strong>&nbsp;(' . esc_html__( 'Optional', 'forminator' ) . ')'; ?></label>
669
- <select class="sui-select" name="tags[]" id="tags"
670
- multiple="multiple"
671
- data-tags="false"
672
- data-token-separators="[',']"
673
- data-placeholder="<?php esc_html_e( 'Start typing to add tags', 'forminator' ); ?>"
674
- data-allow-clear="false">
675
-
676
- <?php foreach ( $this->tags_data as $tag_id => $name ) { ?>
677
- <option value="<?php echo esc_attr( $tag_id ); ?>"<?php selected( in_array( $tag_id, array_keys( $selected_ids ), true ) ); ?>><?php echo esc_html( $name ); ?></option>
678
- <?php } ?>
679
- </select>
680
- </div>
681
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
682
  $html = ob_get_clean();
683
 
684
  return $html;
140
 
141
  $error_message = '';
142
  $input_error_messages = array();
143
+ $api_error = false;
144
 
145
  $html_select_mail_list = '';
146
  $html_field_mail_list = '';
147
 
148
  try {
149
  $api = $this->addon->get_api();
150
+
151
+ // Check API key first if valid.
152
+ $check_api = $api->ping();
153
+ if ( 'Forminator_Addon_Mailchimp_Wp_Api_Exception' === get_class( $check_api ) ) {
154
+ $api_error = true;
155
+ throw new Forminator_Addon_Mailchimp_Exception( $check_api->getMessage() );
156
+ }
157
+
158
  $mail_lists = $api->get_all_lists();
159
  $lists = wp_list_pluck( $mail_lists, 'name', 'id' );
160
 
243
 
244
  $error_message .= '<p>' . $e->getMessage() . '</p>';
245
 
246
+ if ( $api_error ) {
247
+ $error_message .= '<p>' . esc_html__( 'See if creating a new API key helps.', 'forminator' ) . '</p>';
248
+ }
249
+
250
  $error_message .= '</div>';
251
 
252
  $error_message .= '</div>';
255
  }
256
 
257
  $buttons = array();
 
 
 
 
 
 
 
 
258
 
259
+ if ( ! $api_error ) {
260
+ // add disconnect button if already is_form_connected.
261
+ if ( $this->addon->is_form_connected( $this->form_id ) ) {
262
+ $buttons['disconnect']['markup'] = Forminator_Addon_Mailchimp::get_button_markup(
263
+ esc_html__( 'Deactivate', 'forminator' ),
264
+ 'sui-button-ghost sui-tooltip sui-tooltip-top-center forminator-addon-form-disconnect',
265
+ esc_html__( 'Deactivate Mailchimp from this Form.', 'forminator' )
266
+ );
267
+ }
268
 
269
+ $buttons['next']['markup'] = '<div class="sui-actions-right">' .
270
+ Forminator_Addon_Mailchimp::get_button_markup( esc_html__( 'Next', 'forminator' ), 'forminator-addon-next' ) .
271
+ '</div>';
272
+
273
+ $gdpr_fields = '';
274
+ if ( Forminator_Addon_Mailchimp::is_enable_gdpr() ) {
275
+ $gdpr_fields = '<div class="sui-form-field">' .
276
+ '<label class="sui-label">' . __( 'Enable GDPR', 'forminator' ) . '</label>
277
+ <input type="checkbox" name="enable_gdpr" value="1" ' . checked( 1, $current_data['enable_double_opt_in'], false ) . '>
278
+ </div>
279
 
280
+ <div class="sui-form-field">
281
+ <label class="sui-label">' . __( 'GDPR Text', 'forminator' ) . '</label>
282
+ <textarea name="gdpr_text">' . $current_data['gdpr_text'] . '</textarea>
283
+ </div>';
284
+ }
285
  }
286
 
287
  $html = '<div class="forminator-integration-popup__header">';
289
  $html .= '<p class="sui-description">' . __( 'Choose the audience you want to send form data to.', 'forminator' ) . '</p>';
290
  $html .= $error_message;
291
  $html .= '</div>';
292
+
293
+ if ( ! $api_error ) {
294
+ $html .= '<form enctype="multipart/form-data">';
295
+ $html .= $html_field_mail_list;
296
+ $html .= '<div class="sui-form-field">';
297
+ $html .= '<label class="sui-toggle">';
298
+ $html .= '<input type="checkbox" name="enable_double_opt_in" value="1" id="forminator_addon_mailchimp_enable_double_opt_in" ' . checked( 1, $current_data['enable_double_opt_in'], false ) . ' />';
299
+ $html .= '<span class="sui-toggle-slider"></span>';
300
+ $html .= '<span class="sui-toggle-label">' . __( 'Use Double Opt in', 'forminator' ) . '</span>';
301
+ $html .= '</label>';
302
+ $html .= '</div>';
303
+ $html .= $gdpr_fields;
304
+ $html .= '</form>';
305
+ }
306
 
307
  return array(
308
  'html' => $html,
681
  private function get_second_step_options_tags( $selected_ids ) {
682
  ob_start();
683
  // Reset cache.
684
+ try {
685
+ $this->set_tags( true );
686
+ ?>
687
+ <div class="sui-form-field">
688
+ <label class="sui-label" for="tags"><strong><?php echo esc_html__( 'Tags', 'forminator' ) . '</strong>&nbsp;(' . esc_html__( 'Optional', 'forminator' ) . ')'; ?></label>
689
+ <select class="sui-select" name="tags[]" id="tags"
690
+ multiple="multiple"
691
+ data-tags="false"
692
+ data-token-separators="[',']"
693
+ data-placeholder="<?php esc_html_e( 'Start typing to add tags', 'forminator' ); ?>"
694
+ data-allow-clear="false">
695
+
696
+ <?php foreach ( $this->tags_data as $tag_id => $name ) { ?>
697
+ <option value="<?php echo esc_attr( $tag_id ); ?>"<?php selected( in_array( $tag_id, array_keys( $selected_ids ), true ) ); ?>><?php echo esc_html( $name ); ?></option>
698
+ <?php } ?>
699
+ </select>
700
+ </div>
701
+ <?php
702
+ } catch ( Exception $e ) {
703
+ ?>
704
+ <div role="alert" class="sui-notice sui-notice-red sui-active" style="display: block; text-align: left;" aria-live="assertive">
705
+ <div class="sui-notice-content">
706
+ <div class="sui-notice-message"><span class="sui-notice-icon sui-icon-info" aria-hidden="true"></span>
707
+ <p><?php echo esc_html( $e->getMessage() ); ?></p>
708
+ </div>
709
+ </div>
710
+ </div>
711
+ <?php
712
+ }
713
  $html = ob_get_clean();
714
 
715
  return $html;
addons/pro/mailchimp/class-forminator-addon-mailchimp-quiz-hooks.php CHANGED
@@ -21,7 +21,6 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
21
  *
22
  * @since 1.0 Mailchimp Addon
23
  * @var Forminator_Addon_Mailchimp_Quiz_Settings | null
24
- *
25
  */
26
  protected $quiz_settings_instance;
27
 
@@ -142,10 +141,10 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
142
  *
143
  * @since 1.0 Mailchimp Addon
144
  *
145
- * @param array $form_settings
146
- * @param string $key
147
  * @param $default
148
- * @param string $type
149
  *
150
  * @return int|mixed
151
  */
@@ -289,6 +288,7 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
289
 
290
  $quiz_id = $this->quiz_id;
291
  $quiz_settings_instance = $this->quiz_settings_instance;
 
292
 
293
  /**
294
  * Filter mailchimp submitted form data to be processed
@@ -308,15 +308,42 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
308
 
309
  forminator_addon_maybe_log( __METHOD__, $submitted_data );
310
 
311
- $quiz_submitted_data = get_quiz_submitted_data( $this->quiz, $submitted_data, $form_entry_fields );
312
 
313
  $addon_setting_values = $this->quiz_settings_instance->get_quiz_settings_values();
314
  $quiz_settings = $this->quiz_settings_instance->get_quiz_settings();
315
  $addons_fields = $this->quiz_settings_instance->get_form_fields();
316
 
317
- $form_entry_fields = forminator_lead_form_data( $submitted_data );
318
- $submitted_data = get_addons_lead_form_entry_data( $quiz_settings, $submitted_data, $addons_fields );
319
- $submitted_data = array_merge( $submitted_data, $quiz_submitted_data );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
 
321
  // initialize as null.
322
  $mailchimp_api = null;
@@ -329,7 +356,7 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
329
  $entry_name .= "-{$this->addon->multi_global_id}";
330
  }
331
 
332
- //check required fields
333
  try {
334
  $mailchimp_api = $this->addon->get_api();
335
 
@@ -338,7 +365,7 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
338
  if ( isset( $addon_setting_values['enable_gdpr'] ) && $addon_setting_values['enable_gdpr'] ) {
339
  if ( isset( $addon_setting_values['gdpr_text'] ) && ! empty( $addon_setting_values['gdpr_text'] ) ) {
340
  if ( ! $this->gdpr_is_checked ) {
341
- //GDPR not checked, add error
342
  throw new Forminator_Addon_Mailchimp_Exception(
343
  __(
344
  'Forminator Addon Mailchimp was not sending subscriber to mailchimp as GDPR field is not checked on input',
@@ -380,7 +407,7 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
380
  }
381
  }
382
 
383
- //check required fields fulfilled
384
  foreach ( $mailchimp_required_fields as $mailchimp_required_field ) {
385
  if ( 'address' === $mailchimp_required_field->type ) {
386
  $address_fields = $this->quiz_settings_instance->mail_address_fields();
@@ -438,7 +465,7 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
438
  }
439
  }
440
  } catch ( Forminator_Addon_Mailchimp_Wp_Api_Not_Found_Exception $e ) {
441
- //Member not yet subscribed, keep going on, mark status based on double-opt-in option
442
  if ( $is_double_opt_in_enabled ) {
443
  $status = 'pending';
444
  }
@@ -483,6 +510,8 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
483
  $args['merge_fields'] = $merge_fields;
484
  }
485
 
 
 
486
  $mail_list_id = $addon_setting_values['mail_list_id'];
487
 
488
  /**
@@ -613,6 +642,49 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
613
  return $entry_fields;
614
  }
615
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
616
  /**
617
  * Add new row of Mailchimp Integration on render entry
618
  * subentries that included are:
@@ -869,7 +941,7 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
869
  *
870
  * @param $addon_meta_data
871
  * @param $key
872
- * @param string $default
873
  *
874
  * @return string
875
  */
@@ -904,7 +976,7 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
904
  * @since 1.0 Mailchimp Addon
905
  *
906
  * @param Forminator_Form_Entry_Model $entry_model
907
- * @param array $addon_meta_data
908
  *
909
  * @return bool
910
  */
@@ -1055,39 +1127,39 @@ class Forminator_Addon_Mailchimp_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_
1055
 
1056
  // delete links available on data_received of mailchimp.
1057
  /** == Addon meta data reference ==*/
1058
- //[
1059
- // {.
1060
- // "name": "status",
1061
- // "value": {.
1062
- // "is_sent": true,
1063
- // "description": "Successfully added or updated member on Mailchimp list",.
1064
- // "data_sent": {.
1065
- // ...
1066
- // },
1067
- // "data_received": {.
1068
- // "id": "XXXXXXX",
1069
- // ...
1070
- // "list_id": "XXXXXXX",.
1071
- // "_links": [.
1072
- // {.
1073
- // "rel": "upsert",
1074
- // "href": "https:\/\/us9.api.mailchimp.com\/3.0\/lists\/XXXXXXX\/members\/XXXXXXX",.
1075
- // "method": "PUT",.
1076
- // "targetSchema": "https:\/\/us9.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/Response.json",.
1077
- // "schema": "https:\/\/us9.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/PUT.json".
1078
- // },.
1079
- // {.
1080
- // "rel": "delete",
1081
- // "href": "https:\/\/us9.api.mailchimp.com\/3.0\/lists\/XXXXXXX\/members\/XXXXXXX",.
1082
- // "method": "DELETE".
1083
- // },.
1084
- // ...
1085
- // ].
1086
- // },.
1087
- // "url_request": "https:\/\/us9.api.mailchimp.com\/3.0\/lists\/XXXX\/members\/XXXXXXX".
1088
- // }.
1089
- // }.
1090
- //]
1091
  /** == Addon meta data reference ==*/
1092
 
1093
  $delete_member_url = '';
21
  *
22
  * @since 1.0 Mailchimp Addon
23
  * @var Forminator_Addon_Mailchimp_Quiz_Settings | null
 
24
  */
25
  protected $quiz_settings_instance;
26
 
141
  *
142
  * @since 1.0 Mailchimp Addon
143
  *
144
+ * @param array $form_settings
145
+ * @param string $key
146
  * @param $default
147
+ * @param string $type
148
  *
149
  * @return int|mixed
150
  */
288
 
289
  $quiz_id = $this->quiz_id;
290
  $quiz_settings_instance = $this->quiz_settings_instance;
291
+ $gdpr = false;
292
 
293
  /**
294
  * Filter mailchimp submitted form data to be processed
308
 
309
  forminator_addon_maybe_log( __METHOD__, $submitted_data );
310
 
311
+ $quiz_submitted_data = get_quiz_submitted_data( $this->quiz, $submitted_data, $form_entry_fields );
312
 
313
  $addon_setting_values = $this->quiz_settings_instance->get_quiz_settings_values();
314
  $quiz_settings = $this->quiz_settings_instance->get_quiz_settings();
315
  $addons_fields = $this->quiz_settings_instance->get_form_fields();
316
 
317
+ $form_entry_fields = forminator_lead_form_data( $submitted_data );
318
+ $submitted_data = get_addons_lead_form_entry_data( $quiz_settings, $submitted_data, $addons_fields );
319
+
320
+ // Check if there is a date field-type then modify it to a format that mailchimp accepts.
321
+ foreach ( $submitted_data as $field => $value ) {
322
+ // Also Check the date field doesn't include the '-year', '-month' or '-day'.
323
+ if (
324
+ false !== stripos( $field, 'date-' ) &&
325
+ false === stripos( $field, '-year' ) &&
326
+ false === stripos( $field, '-month' ) &&
327
+ false === stripos( $field, '-day' ) &&
328
+ ! empty( $value )
329
+ ) {
330
+
331
+ $date_format = Forminator_API::get_form_field( $form_id, $field, false )->date_format;
332
+ $normalized_format = new Forminator_Date();
333
+ $normalized_format = $normalized_format->normalize_date_format( $date_format );
334
+ $mailchimp_format = DateTime::createFromFormat( $normalized_format, $value );
335
+ $mailchimp_formatted = $mailchimp_format->format( 'Y-m-d' );
336
+ $submitted_data[ $field ] = $mailchimp_formatted;
337
+ }
338
+ if (
339
+ ! empty( $value ) &&
340
+ ( false !== strpos( $field, 'gdprcheckbox' ) || false !== strpos( $field, 'consent' ) )
341
+ ) {
342
+ $gdpr = true;
343
+ }
344
+ }
345
+
346
+ $submitted_data = array_merge( $submitted_data, $quiz_submitted_data );
347
 
348
  // initialize as null.
349
  $mailchimp_api = null;
356
  $entry_name .= "-{$this->addon->multi_global_id}";
357
  }
358
 
359
+ // check required fields
360
  try {
361
  $mailchimp_api = $this->addon->get_api();
362
 
365
  if ( isset( $addon_setting_values['enable_gdpr'] ) && $addon_setting_values['enable_gdpr'] ) {
366
  if ( isset( $addon_setting_values['gdpr_text'] ) && ! empty( $addon_setting_values['gdpr_text'] ) ) {
367
  if ( ! $this->gdpr_is_checked ) {
368
+ // GDPR not checked, add error
369
  throw new Forminator_Addon_Mailchimp_Exception(
370
  __(
371
  'Forminator Addon Mailchimp was not sending subscriber to mailchimp as GDPR field is not checked on input',
407
  }
408
  }
409
 
410
+ // check required fields fulfilled
411
  foreach ( $mailchimp_required_fields as $mailchimp_required_field ) {
412
  if ( 'address' === $mailchimp_required_field->type ) {
413
  $address_fields = $this->quiz_settings_instance->mail_address_fields();
465
  }
466
  }
467
  } catch ( Forminator_Addon_Mailchimp_Wp_Api_Not_Found_Exception $e ) {
468
+ // Member not yet subscribed, keep going on, mark status based on double-opt-in option
469
  if ( $is_double_opt_in_enabled ) {
470
  $status = 'pending';
471
  }
510
  $args['merge_fields'] = $merge_fields;
511
  }
512
 
513
+ $args = self::maybe_add_additional_data( $args, $addon_setting_values, $gdpr );
514
+
515
  $mail_list_id = $addon_setting_values['mail_list_id'];
516
 
517
  /**
642
  return $entry_fields;
643
  }
644
 
645
+ /**
646
+ * Add additional data if needed.
647
+ *
648
+ * @param array $args Existed arguments.
649
+ * @param array $addon_setting_values Addon settings.
650
+ * @param bool $gdpr Is a GDPR field exist or not.
651
+ * @return array
652
+ */
653
+ private static function maybe_add_additional_data( $args, $addon_setting_values, $gdpr ) {
654
+ if ( ! empty( $addon_setting_values['group_interest'] ) ) {
655
+ $interests = (array) $addon_setting_values['group_interest'];
656
+ $args['interests'] = array_fill_keys( $interests, true );
657
+ }
658
+
659
+ if ( ! empty( $addon_setting_values['tags'] ) ) {
660
+ $args['tags'] = array_values( $addon_setting_values['tags'] );
661
+ }
662
+
663
+ if ( true === $gdpr && ! empty( $addon_setting_values['gdpr'] ) ) {
664
+ $args['marketing_permissions'] = self::prepare_marketing_permissions( $addon_setting_values['gdpr'] );
665
+ }
666
+
667
+ return $args;
668
+ }
669
+
670
+ /**
671
+ * Prepare GDPR fields for Mailchimp API
672
+ *
673
+ * @param array $gdpr_fields Saved GDPR fields.
674
+ * @return array
675
+ */
676
+ private static function prepare_marketing_permissions( $gdpr_fields ) {
677
+ $permissions = array();
678
+ foreach ( $gdpr_fields as $key => $title ) {
679
+ $permissions[] = array(
680
+ 'marketing_permission_id' => $key,
681
+ 'enabled' => true,
682
+ );
683
+ }
684
+
685
+ return $permissions;
686
+ }
687
+
688
  /**
689
  * Add new row of Mailchimp Integration on render entry
690
  * subentries that included are:
941
  *
942
  * @param $addon_meta_data
943
  * @param $key
944
+ * @param string $default
945
  *
946
  * @return string
947
  */
976
  * @since 1.0 Mailchimp Addon
977
  *
978
  * @param Forminator_Form_Entry_Model $entry_model
979
+ * @param array $addon_meta_data
980
  *
981
  * @return bool
982
  */
1127
 
1128
  // delete links available on data_received of mailchimp.
1129
  /** == Addon meta data reference ==*/
1130
+ // [
1131
+ // {.
1132
+ // "name": "status",
1133
+ // "value": {.
1134
+ // "is_sent": true,
1135
+ // "description": "Successfully added or updated member on Mailchimp list",.
1136
+ // "data_sent": {.
1137
+ // ...
1138
+ // },
1139
+ // "data_received": {.
1140
+ // "id": "XXXXXXX",
1141
+ // ...
1142
+ // "list_id": "XXXXXXX",.
1143
+ // "_links": [.
1144
+ // {.
1145
+ // "rel": "upsert",
1146
+ // "href": "https:\/\/us9.api.mailchimp.com\/3.0\/lists\/XXXXXXX\/members\/XXXXXXX",.
1147
+ // "method": "PUT",.
1148
+ // "targetSchema": "https:\/\/us9.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/Response.json",.
1149
+ // "schema": "https:\/\/us9.api.mailchimp.com\/schema\/3.0\/Definitions\/Lists\/Members\/PUT.json".
1150
+ // },.
1151
+ // {.
1152
+ // "rel": "delete",
1153
+ // "href": "https:\/\/us9.api.mailchimp.com\/3.0\/lists\/XXXXXXX\/members\/XXXXXXX",.
1154
+ // "method": "DELETE".
1155
+ // },.
1156
+ // ...
1157
+ // ].
1158
+ // },.
1159
+ // "url_request": "https:\/\/us9.api.mailchimp.com\/3.0\/lists\/XXXX\/members\/XXXXXXX".
1160
+ // }.
1161
+ // }.
1162
+ // ]
1163
  /** == Addon meta data reference ==*/
1164
 
1165
  $delete_member_url = '';
addons/pro/mailchimp/class-forminator-addon-mailchimp-quiz-settings.php CHANGED
@@ -16,6 +16,27 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
16
  */
17
  protected $addon;
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  /**
20
  * Forminator_Addon_Mailchimp_Form_Settings constructor.
21
  *
@@ -43,19 +64,54 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
43
  */
44
  public function quiz_settings_wizards() {
45
  // already filtered on Abstract.
 
 
46
  // numerical array steps.
47
- return array(
48
  // 1
49
  array(
50
  'callback' => array( $this, 'choose_mail_list' ),
51
  'is_completed' => array( $this, 'step_choose_mail_list_is_completed' ),
52
  ),
53
  // 2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  array(
55
  'callback' => array( $this, 'map_fields' ),
56
  'is_completed' => array( $this, 'step_map_fields_is_completed' ),
57
  ),
58
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  }
60
 
61
  /**
@@ -71,20 +127,14 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
71
 
72
  // already filtered on Forminator_Addon_Abstract::get_wizard.
73
  $this->addon_quiz_settings = $this->get_quiz_settings_values();
74
- $current_data = array(
75
  'mail_list_id' => '',
76
  'enable_double_opt_in' => '',
77
  'enable_gdpr' => '',
78
  'gdpr_text' => '',
79
  );
80
 
81
- foreach ( $current_data as $key => $current_field ) {
82
- if ( isset( $submitted_data[ $key ] ) ) {
83
- $current_data[ $key ] = $submitted_data[ $key ];
84
- } elseif ( isset( $this->addon_quiz_settings[ $key ] ) ) {
85
- $current_data[ $key ] = $this->addon_quiz_settings[ $key ];
86
- }
87
- }
88
 
89
  forminator_addon_maybe_log( __METHOD__, 'current_data', $current_data );
90
 
@@ -92,12 +142,21 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
92
 
93
  $error_message = '';
94
  $input_error_messages = array();
 
95
 
96
  $html_select_mail_list = '';
97
  $html_field_mail_list = '';
98
 
99
  try {
100
- $api = $this->addon->get_api();
 
 
 
 
 
 
 
 
101
  $mail_lists = $api->get_all_lists();
102
  $lists = wp_list_pluck( $mail_lists, 'name', 'id' );
103
 
@@ -121,6 +180,18 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
121
  if ( empty( $mail_list_name ) ) {
122
  throw new Forminator_Addon_Mailchimp_Quiz_Settings_Exception( __( 'Please select a valid Email Audience', 'forminator' ), 'mail_list_id' );
123
  }
 
 
 
 
 
 
 
 
 
 
 
 
124
  $this->addon_quiz_settings['mail_list_id'] = $submitted_data['mail_list_id'];
125
  $this->addon_quiz_settings['mail_list_name'] = $mail_list_name;
126
 
@@ -174,6 +245,10 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
174
 
175
  $error_message .= '<p>' . $e->getMessage() . '</p>';
176
 
 
 
 
 
177
  $error_message .= '</div>';
178
 
179
  $error_message .= '</div>';
@@ -182,48 +257,54 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
182
  }
183
 
184
  $buttons = array();
185
- // add disconnect button if already is_quiz_connected.
186
- if ( $this->addon->is_quiz_connected( $this->quiz_id ) ) {
187
- $buttons['disconnect']['markup'] = Forminator_Addon_Mailchimp::get_button_markup(
188
- esc_html__( 'Deactivate', 'forminator' ),
189
- 'sui-button-ghost sui-tooltip sui-tooltip-top-center forminator-addon-form-disconnect',
190
- esc_html__( 'Deactivate Mailchimp from this quiz.', 'forminator' )
191
- );
192
- }
193
 
194
- $buttons['next']['markup'] = '<div class="sui-actions-right">' .
195
- Forminator_Addon_Mailchimp::get_button_markup( esc_html__( 'Next', 'forminator' ), 'forminator-addon-next' ) .
196
- '</div>';
197
-
198
- $gdpr_fields = '';
199
- if ( Forminator_Addon_Mailchimp::is_enable_gdpr() ) {
200
- $gdpr_fields = '<div class="sui-form-field">' .
201
- '<label class="sui-label">' . __( 'Enable GDPR', 'forminator' ) . '</label>
202
- <input type="checkbox" name="enable_gdpr" value="1" ' . checked( 1, $current_data['enable_double_opt_in'], false ) . '>
203
- </div>
204
 
205
- <div class="sui-form-field">
206
- <label class="sui-label">' . __( 'GDPR Text', 'forminator' ) . '</label>
207
- <textarea name="gdpr_text">' . $current_data['gdpr_text'] . '</textarea>
208
- </div>';
 
 
 
 
 
 
 
 
 
 
 
 
209
  }
210
 
211
- $html = '<div class="forminator-integration-popup__header">';
212
- $html .= '<h3 id="dialogTitle2" class="sui-box-title sui-lg" style="overflow: initial; text-overflow: none; white-space: normal;">' . __( 'Choose audience', 'forminator' ) . '</h3>';
213
- $html .= '<p class="sui-description">' . __( 'Choose the audience you want to send quiz data to.', 'forminator' ) . '</p>';
214
- $html .= $error_message;
215
- $html .= '</div>';
216
- $html .= '<form enctype="multipart/form-data">';
217
- $html .= $html_field_mail_list;
218
- $html .= '<div class="sui-form-field">';
219
- $html .= '<label class="sui-toggle">';
220
- $html .= '<input type="checkbox" name="enable_double_opt_in" value="1" id="forminator_addon_mailchimp_enable_double_opt_in" ' . checked( 1, $current_data['enable_double_opt_in'], false ) . ' />';
221
- $html .= '<span class="sui-toggle-slider"></span>';
222
- $html .= '<span class="sui-toggle-label">' . __( 'Use Double Opt in', 'forminator' ) . '</span>';
223
- $html .= '</label>';
224
- $html .= '</div>';
225
- $html .= $gdpr_fields;
226
- $html .= '</form>';
 
 
 
227
 
228
  return array(
229
  'html' => $html,
@@ -235,6 +316,321 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
235
 
236
  }
237
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  /**
239
  * Step mapping fields on wizard
240
  *
@@ -357,7 +753,7 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
357
  $error_message .= '</div>';
358
  }
359
 
360
- //cleanup map fields input markup placeholder
361
  if ( ! empty( $html_input_map_fields ) ) {
362
  $replaced_html_input_map_fields = $html_input_map_fields;
363
  $replaced_html_input_map_fields = preg_replace( '/\{\{\$error_css_class_(.+)\}\}/', '', $replaced_html_input_map_fields );
@@ -387,14 +783,14 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
387
  );
388
  }
389
 
390
- $html = '<div class="forminator-integration-popup__header">';
391
  $html .= '<h3 id="dialogTitle2" class="sui-box-title sui-lg" style="overflow: initial; text-overflow: none; white-space: normal;">' . __( 'Assign Fields', 'forminator' ) . '</h3>';
392
  $html .= '<p class="sui-description">' . __( 'Lastly, match up your quiz fields with your campaign fields to make sure we\'re sending data to the right place.', 'forminator' ) . '</p>';
393
  $html .= $error_message;
394
- $html .= '</div>';
395
- $html .= '<form enctype="multipart/form-data">';
396
  $html .= $html_input_map_fields;
397
- $html .= '</form>';
398
 
399
  return array(
400
  'html' => $html,
@@ -408,6 +804,234 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
408
  );
409
  }
410
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
411
  /**
412
  * Get input of Map Fields
413
  * its table with html select options as input
@@ -422,7 +1046,7 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
422
 
423
  $quiz_questions = $this->get_quiz_fields();
424
  $quiz_fields = array(
425
- 'quiz-name' => __( 'Quiz Name', 'forminator' ),
426
  );
427
  foreach ( $quiz_questions as $quiz_question ) {
428
  $quiz_fields[ $quiz_question['slug'] ] = $quiz_question['title'];
@@ -503,8 +1127,10 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
503
  <?php selected( $current_data['fields_map'][ $item->tag ], $form_field['element_id'] ); ?>>
504
  <?php echo esc_html( $form_field['field_label'] . ' | ' . $form_field['element_id'] ); ?>
505
  </option>
506
- <?php }
507
- foreach ( $quiz_fields as $quiz_key => $quiz_field ) : ?>
 
 
508
  <option value="<?php echo esc_attr( $quiz_key ); ?>"
509
  <?php selected( $current_data['fields_map'][ $item->tag ], $quiz_key ); ?>>
510
  <?php echo esc_html( $quiz_field . ' | ' . $quiz_key ); ?>
@@ -573,17 +1199,17 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
573
  $quiz_questions = $this->get_quiz_fields();
574
  foreach ( $quiz_questions as $quiz_question ) {
575
  // collect element ids.
576
- $forminator_quiz_element_ids[] = $quiz_question['slug'];
577
  }
578
  if ( 'knowledge' === $this->quiz->quiz_type ) {
579
- array_push( $forminator_quiz_element_ids,'quiz-name','correct-answers', 'total-answers' );
580
  } elseif ( 'nowrong' === $this->quiz->quiz_type ) {
581
- array_push( $forminator_quiz_element_ids,'quiz-name', 'result-answers' );
582
  }
583
 
584
  $forminator_field_element_ids = array_merge( $forminator_field_element_ids, $forminator_quiz_element_ids );
585
 
586
- //map mailchimp maped with tag as its key
587
  $tag_maped_mailchimp_fields = array();
588
  foreach ( $mailchimp_fields_list as $item ) {
589
  $tag_maped_mailchimp_fields[ $item->tag ] = $item;
@@ -611,7 +1237,7 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
611
  $input_exceptions->add_input_exception( $this->_update_quiz_settings_error_message, 'EMAIL' );
612
  }
613
 
614
- //check required fields fulfilled
615
  foreach ( $mailchimp_required_fields as $mailchimp_required_field ) {
616
  if ( 'address' === $mailchimp_required_field->type ) {
617
  $address_fields = $this->mail_address_fields();
@@ -749,4 +1375,14 @@ class Forminator_Addon_Mailchimp_Quiz_Settings extends Forminator_Addon_Quiz_Set
749
  return true;
750
  }
751
 
 
 
 
 
 
 
 
 
 
 
752
  }
16
  */
17
  protected $addon;
18
 
19
+ /**
20
+ * Stores mailchimp group data
21
+ *
22
+ * @var array Groups
23
+ */
24
+ private $groups_data = array();
25
+
26
+ /**
27
+ * Stores mailchimp GDPR data
28
+ *
29
+ * @var array
30
+ */
31
+ private $gdpr_data = array();
32
+
33
+ /**
34
+ * Stores mailchimp tags data ( static segments )
35
+ *
36
+ * @var array Tags
37
+ */
38
+ private $tags_data = array();
39
+
40
  /**
41
  * Forminator_Addon_Mailchimp_Form_Settings constructor.
42
  *
64
  */
65
  public function quiz_settings_wizards() {
66
  // already filtered on Abstract.
67
+ $this->addon_quiz_settings = $this->get_quiz_settings_values();
68
+
69
  // numerical array steps.
70
+ $steps = array(
71
  // 1
72
  array(
73
  'callback' => array( $this, 'choose_mail_list' ),
74
  'is_completed' => array( $this, 'step_choose_mail_list_is_completed' ),
75
  ),
76
  // 2
77
+ array(
78
+ 'callback' => array( $this, 'choose_tags' ),
79
+ 'is_completed' => array( $this, 'step_is_completed' ),
80
+ ),
81
+ // 3
82
+ array(
83
+ 'callback' => array( $this, 'choose_group' ),
84
+ 'is_completed' => array( $this, 'step_is_completed' ),
85
+ ),
86
+ // 4
87
+ array(
88
+ 'callback' => array( $this, 'choose_gdpr' ),
89
+ 'is_completed' => array( $this, 'step_is_completed' ),
90
+ ),
91
+ // 5
92
  array(
93
  'callback' => array( $this, 'map_fields' ),
94
  'is_completed' => array( $this, 'step_map_fields_is_completed' ),
95
  ),
96
  );
97
+
98
+ if ( ! empty( $this->addon_quiz_settings['mail_list_id'] ) ) {
99
+ $this->set_tags();
100
+ $this->set_groups();
101
+ $this->set_gdpr_fields();
102
+ // Note: order DESC is neccessary here!
103
+ if ( empty( $this->gdpr_data ) ) {
104
+ unset( $steps[3] );
105
+ }
106
+ if ( empty( $this->groups_data ) ) {
107
+ unset( $steps[2] );
108
+ }
109
+ if ( empty( $this->tags_data ) ) {
110
+ unset( $steps[1] );
111
+ }
112
+ }
113
+
114
+ return $steps;
115
  }
116
 
117
  /**
127
 
128
  // already filtered on Forminator_Addon_Abstract::get_wizard.
129
  $this->addon_quiz_settings = $this->get_quiz_settings_values();
130
+ $default_data = array(
131
  'mail_list_id' => '',
132
  'enable_double_opt_in' => '',
133
  'enable_gdpr' => '',
134
  'gdpr_text' => '',
135
  );
136
 
137
+ $current_data = $this->get_current_data( $default_data, $submitted_data );
 
 
 
 
 
 
138
 
139
  forminator_addon_maybe_log( __METHOD__, 'current_data', $current_data );
140
 
142
 
143
  $error_message = '';
144
  $input_error_messages = array();
145
+ $api_error = false;
146
 
147
  $html_select_mail_list = '';
148
  $html_field_mail_list = '';
149
 
150
  try {
151
+ $api = $this->addon->get_api();
152
+
153
+ // Check API key first if valid.
154
+ $check_api = $api->ping();
155
+ if ( 'Forminator_Addon_Mailchimp_Wp_Api_Exception' === get_class( $check_api ) ) {
156
+ $api_error = true;
157
+ throw new Forminator_Addon_Mailchimp_Exception( $check_api->getMessage() );
158
+ }
159
+
160
  $mail_lists = $api->get_all_lists();
161
  $lists = wp_list_pluck( $mail_lists, 'name', 'id' );
162
 
180
  if ( empty( $mail_list_name ) ) {
181
  throw new Forminator_Addon_Mailchimp_Quiz_Settings_Exception( __( 'Please select a valid Email Audience', 'forminator' ), 'mail_list_id' );
182
  }
183
+ if ( ! empty( $this->addon_quiz_settings['mail_list_id'] ) && $this->addon_quiz_settings['mail_list_id'] !== $submitted_data['mail_list_id'] ) {
184
+ // reset cache cuz List id is changed.
185
+ unset(
186
+ $this->addon_quiz_settings['tags_data'],
187
+ $this->addon_quiz_settings['groups_data'],
188
+ $this->addon_quiz_settings['gdpr_data'],
189
+ $this->addon_quiz_settings['tags'],
190
+ $this->addon_quiz_settings['group'],
191
+ $this->addon_quiz_settings['group_interest'],
192
+ $this->addon_quiz_settings['gdpr']
193
+ );
194
+ }
195
  $this->addon_quiz_settings['mail_list_id'] = $submitted_data['mail_list_id'];
196
  $this->addon_quiz_settings['mail_list_name'] = $mail_list_name;
197
 
245
 
246
  $error_message .= '<p>' . $e->getMessage() . '</p>';
247
 
248
+ if ( $api_error ) {
249
+ $error_message .= '<p>' . esc_html__( 'See if creating a new API key helps.', 'forminator' ) . '</p>';
250
+ }
251
+
252
  $error_message .= '</div>';
253
 
254
  $error_message .= '</div>';
257
  }
258
 
259
  $buttons = array();
 
 
 
 
 
 
 
 
260
 
261
+ if ( ! $api_error ) {
262
+ // add disconnect button if already is_quiz_connected.
263
+ if ( $this->addon->is_quiz_connected( $this->quiz_id ) ) {
264
+ $buttons['disconnect']['markup'] = Forminator_Addon_Mailchimp::get_button_markup(
265
+ esc_html__( 'Deactivate', 'forminator' ),
266
+ 'sui-button-ghost sui-tooltip sui-tooltip-top-center forminator-addon-form-disconnect',
267
+ esc_html__( 'Deactivate Mailchimp from this quiz.', 'forminator' )
268
+ );
269
+ }
 
270
 
271
+ $buttons['next']['markup'] = '<div class="sui-actions-right">' .
272
+ Forminator_Addon_Mailchimp::get_button_markup( esc_html__( 'Next', 'forminator' ), 'forminator-addon-next' ) .
273
+ '</div>';
274
+
275
+ $gdpr_fields = '';
276
+ if ( Forminator_Addon_Mailchimp::is_enable_gdpr() ) {
277
+ $gdpr_fields = '<div class="sui-form-field">' .
278
+ '<label class="sui-label">' . __( 'Enable GDPR', 'forminator' ) . '</label>
279
+ <input type="checkbox" name="enable_gdpr" value="1" ' . checked( 1, $current_data['enable_double_opt_in'], false ) . '>
280
+ </div>
281
+
282
+ <div class="sui-form-field">
283
+ <label class="sui-label">' . __( 'GDPR Text', 'forminator' ) . '</label>
284
+ <textarea name="gdpr_text">' . $current_data['gdpr_text'] . '</textarea>
285
+ </div>';
286
+ }
287
  }
288
 
289
+ $html = '<div class="forminator-integration-popup__header">';
290
+ $html .= '<h3 id="dialogTitle2" class="sui-box-title sui-lg" style="overflow: initial; text-overflow: none; white-space: normal;">' . __( 'Choose audience', 'forminator' ) . '</h3>';
291
+ $html .= '<p class="sui-description">' . __( 'Choose the audience you want to send quiz data to.', 'forminator' ) . '</p>';
292
+ $html .= $error_message;
293
+ $html .= '</div>';
294
+
295
+ if ( ! $api_error ) {
296
+ $html .= '<form enctype="multipart/form-data">';
297
+ $html .= $html_field_mail_list;
298
+ $html .= '<div class="sui-form-field">';
299
+ $html .= '<label class="sui-toggle">';
300
+ $html .= '<input type="checkbox" name="enable_double_opt_in" value="1" id="forminator_addon_mailchimp_enable_double_opt_in" ' . checked( 1, $current_data['enable_double_opt_in'], false ) . ' />';
301
+ $html .= '<span class="sui-toggle-slider"></span>';
302
+ $html .= '<span class="sui-toggle-label">' . __( 'Use Double Opt in', 'forminator' ) . '</span>';
303
+ $html .= '</label>';
304
+ $html .= '</div>';
305
+ $html .= $gdpr_fields;
306
+ $html .= '</form>';
307
+ }
308
 
309
  return array(
310
  'html' => $html,
316
 
317
  }
318
 
319
+ /**
320
+ * Choose Tags wizard
321
+ *
322
+ * @since 1.21 Mailchimp Addon
323
+ * @param array $submitted_data Submitted data.
324
+ * @return array
325
+ */
326
+ public function choose_tags( $submitted_data ) {
327
+ $this->addon_quiz_settings = $this->get_quiz_settings_values();
328
+ $step = 2;
329
+ $default_data = array(
330
+ 'tags' => array(),
331
+ );
332
+ $is_submit = self::is_submit( $submitted_data, $step );
333
+
334
+ if ( $is_submit && empty( $submitted_data ) ) {
335
+ $submitted_data = $default_data;
336
+ }
337
+
338
+ $current_data = $this->get_current_data( $default_data, $submitted_data );
339
+
340
+ forminator_addon_maybe_log( __METHOD__, 'current_data', $current_data );
341
+
342
+ $selectbox = $this->get_second_step_options_tags( $current_data['tags'] );
343
+
344
+ // Logic when user submit tags.
345
+ if ( $is_submit ) {
346
+ forminator_addon_maybe_log( __METHOD__, '$submitted_data', $submitted_data );
347
+
348
+ if ( is_array( $submitted_data['tags'] ) ) {
349
+
350
+ $save_tags = array();
351
+ // Store the tag id and tag name.
352
+ foreach ( $submitted_data['tags'] as $tag_id ) {
353
+
354
+ if ( '-1' === $tag_id || empty( $this->tags_data[ $tag_id ] ) ) {
355
+ continue;
356
+ }
357
+
358
+ $save_tags[ $tag_id ] = esc_html( $this->tags_data[ $tag_id ] );
359
+ }
360
+
361
+ $this->addon_quiz_settings['tags'] = $save_tags;
362
+ }
363
+
364
+ $this->save_quiz_settings_values( $this->addon_quiz_settings );
365
+ }
366
+
367
+ $buttons = array(
368
+ 'cancel' => array(
369
+ 'markup' => Forminator_Addon_Mailchimp::get_button_markup( esc_html__( 'Back', 'forminator' ), 'sui-button-ghost forminator-addon-back' ),
370
+ ),
371
+ 'next' => array(
372
+ 'markup' => '<div class="sui-actions-right">' .
373
+ Forminator_Addon_Mailchimp::get_button_markup( esc_html__( 'Next', 'forminator' ), 'forminator-addon-next' ) .
374
+ '</div>',
375
+ ),
376
+ );
377
+
378
+ $html = '<div class="forminator-integration-popup__header">';
379
+ $html .= '<h3 id="dialogTitle2" class="sui-box-title sui-lg" style="overflow: initial; text-overflow: none; white-space: normal;">' . esc_html__( 'Mailchimp Tags', 'forminator' ) . '</h3>';
380
+ $html .= '<p class="sui-description">' . esc_html__( 'Mailchimp tags help you organize your audience. You can add as many tags as you’d like to your quiz subscribers.', 'forminator' ) . '</p>';
381
+ $html .= '</div>';
382
+ $html .= '<form enctype="multipart/form-data">';
383
+ $html .= $selectbox;
384
+ $html .= '<input type="hidden" name="is_submit" value="' . $step . '">';
385
+ $html .= '</form>';
386
+
387
+ return array(
388
+ 'html' => $html,
389
+ 'redirect' => false,
390
+ 'buttons' => $buttons,
391
+ 'has_back' => true,
392
+ );
393
+ }
394
+
395
+ /**
396
+ * Choose Groups wizard
397
+ *
398
+ * @since 1.21 Mailchimp Addon
399
+ * @param array $submitted_data Submitted data.
400
+ * @return array
401
+ */
402
+ public function choose_group( $submitted_data ) {
403
+ $this->addon_quiz_settings = $this->get_quiz_settings_values();
404
+ $default_data = array(
405
+ 'group' => '',
406
+ );
407
+ $is_submit = ! empty( $submitted_data );
408
+
409
+ if ( $is_submit && empty( $submitted_data ) ) {
410
+ $submitted_data = $default_data;
411
+ }
412
+ $current_data = $this->get_current_data( $default_data, $submitted_data );
413
+
414
+ forminator_addon_maybe_log( __METHOD__, 'current_data', $current_data );
415
+
416
+ $selectbox = $this->get_third_step_options_groups( $current_data['group'] );
417
+
418
+ // Logic when user submit group.
419
+ if ( $is_submit ) {
420
+ forminator_addon_maybe_log( __METHOD__, '$submitted_data', $submitted_data );
421
+ $group_id = $submitted_data['group'];
422
+
423
+ // Store the selected group_id.
424
+ $this->addon_quiz_settings['group'] = $group_id;
425
+
426
+ if ( ! empty( $submitted_data['group'] ) ) {
427
+ // Store the group name.
428
+ $this->addon_quiz_settings['group_name'] = $this->groups_data[ $group_id ]['name'];
429
+
430
+ // Store the group type.
431
+ $this->addon_quiz_settings['group_type'] = $this->groups_data[ $group_id ]['type'];
432
+ }
433
+ $this->addon_quiz_settings['group_interest'] = isset( $submitted_data['group_interest'] ) ? $submitted_data['group_interest'] : '';
434
+ $interests = $this->get_interests();
435
+
436
+ $this->addon_quiz_settings['interest_options'] = $interests;
437
+
438
+ $this->addon_quiz_settings['group_interest_placeholder'] = isset( $submitted_data['group_interest_placeholder'] ) ? $submitted_data['group_interest_placeholder'] : '';
439
+
440
+ $this->save_quiz_settings_values( $this->addon_quiz_settings );
441
+ }
442
+
443
+ $buttons = array(
444
+ 'cancel' => array(
445
+ 'markup' => Forminator_Addon_Mailchimp::get_button_markup( esc_html__( 'Back', 'forminator' ), 'sui-button-ghost forminator-addon-back' ),
446
+ ),
447
+ 'next' => array(
448
+ 'markup' => '<div class="sui-actions-right">' .
449
+ Forminator_Addon_Mailchimp::get_button_markup( esc_html__( 'Next', 'forminator' ), 'forminator-addon-next' ) .
450
+ '</div>',
451
+ ),
452
+ );
453
+
454
+ $html = '<div class="forminator-integration-popup__header">';
455
+ $html .= '<h3 id="dialogTitle2" class="sui-box-title sui-lg" style="overflow: initial; text-overflow: none; white-space: normal;">' . esc_html__( 'Mailchimp Groups', 'forminator' ) . '</h3>';
456
+ $html .= '<p class="sui-description">' . esc_html__( 'Mailchimp groups allow you to categorize your audience based on their interests. Use the options below to group your audience based on submitted form data.', 'forminator' ) . '</p>';
457
+ $html .= '</div>';
458
+ $html .= '<form enctype="multipart/form-data">';
459
+ $html .= $selectbox;
460
+ $html .= '</form>';
461
+
462
+ return array(
463
+ 'html' => $html,
464
+ 'redirect' => false,
465
+ 'buttons' => $buttons,
466
+ 'has_back' => true,
467
+ );
468
+ }
469
+
470
+ /**
471
+ * Choose GDPR wizard
472
+ *
473
+ * @since 1.15.3 Mailchimp Addon
474
+ * @param array $submitted_data Submitted data.
475
+ * @return array
476
+ */
477
+ public function choose_gdpr( $submitted_data ) {
478
+ $step = 4;
479
+ $default_data = array(
480
+ 'gdpr' => array(),
481
+ );
482
+ $is_submit = self::is_submit( $submitted_data, $step );
483
+
484
+ if ( $is_submit && empty( $submitted_data ) ) {
485
+ $submitted_data = $default_data;
486
+ }
487
+ $current_data = $this->get_current_data( $default_data, $submitted_data );
488
+
489
+ forminator_addon_maybe_log( __METHOD__, 'current_data', $current_data );
490
+
491
+ $checkboxes = $this->get_forth_step_options_gdpr( array_keys( $current_data['gdpr'] ) );
492
+
493
+ // Logic when user submit gdpr.
494
+ if ( $is_submit ) {
495
+ forminator_addon_maybe_log( __METHOD__, '$submitted_data', $submitted_data );
496
+
497
+ if ( is_array( $submitted_data['gdpr'] ) ) {
498
+
499
+ $save_data = array();
500
+ // Store the gdpr id and gdpr title.
501
+ foreach ( $submitted_data['gdpr'] as $gdpr_id ) {
502
+
503
+ if ( empty( $this->gdpr_data[ $gdpr_id ] ) ) {
504
+ continue;
505
+ }
506
+
507
+ $save_data[ $gdpr_id ] = esc_html( $this->gdpr_data[ $gdpr_id ] );
508
+ }
509
+
510
+ $this->addon_quiz_settings['gdpr'] = $save_data;
511
+ }
512
+
513
+ $this->save_quiz_settings_values( $this->addon_quiz_settings );
514
+ }
515
+
516
+ $buttons = array(
517
+ 'cancel' => array(
518
+ 'markup' => Forminator_Addon_Mailchimp::get_button_markup( esc_html__( 'Back', 'forminator' ), 'sui-button-ghost forminator-addon-back' ),
519
+ ),
520
+ 'next' => array(
521
+ 'markup' => '<div class="sui-actions-right">' .
522
+ Forminator_Addon_Mailchimp::get_button_markup( esc_html__( 'Next', 'forminator' ), 'forminator-addon-next' ) .
523
+ '</div>',
524
+ ),
525
+ );
526
+
527
+ $html = '<div class="forminator-integration-popup__header">';
528
+ $html .= '<h3 id="dialogTitle2" class="sui-box-title sui-lg" style="overflow: initial; text-overflow: none; white-space: normal;">' . esc_html__( 'Mailchimp GDPR Permissions', 'forminator' ) . '</h3>';
529
+ $html .= '<p class="sui-description">' . esc_html__( 'You can optionally opt-in the subscribers into your Mailchimp’s audience permissions. Choose the GDPR permissions to opt-in your subscribers.', 'forminator' ) . '</p>';
530
+ $html .= '</div>';
531
+ $html .= '<form enctype="multipart/form-data">';
532
+ $html .= $checkboxes;
533
+ $html .= '<input type="hidden" name="is_submit" value="' . $step . '">';
534
+ $html .= '</form>';
535
+
536
+ return array(
537
+ 'html' => $html,
538
+ 'redirect' => false,
539
+ 'buttons' => $buttons,
540
+ 'has_back' => true,
541
+ );
542
+ }
543
+
544
+ /**
545
+ * Returns Mailchimp group interests list
546
+ *
547
+ * @param array $data Data.
548
+ * @return string
549
+ */
550
+ public function get_group_interests( $data ) {
551
+ if ( ! empty( $data['global_id'] ) ) {
552
+ $this->addon->multi_global_id = $data['global_id'];
553
+ }
554
+
555
+ $this->addon_quiz_settings = $this->get_quiz_settings_values();
556
+
557
+ if ( ! empty( $data['group'] ) ) {
558
+ $group = $data['group'];
559
+ } else {
560
+ return '';
561
+ }
562
+
563
+ $api = $this->addon->get_api();
564
+ $interests = $api->get_interests(
565
+ $this->addon_quiz_settings['mail_list_id'],
566
+ $group
567
+ );
568
+
569
+ // If no group was selected or the selected group doesn't have interests.
570
+ if ( empty( $interests ) || ! is_array( $interests ) ) {
571
+ return '';
572
+ }
573
+
574
+ if ( isset( $this->addon_quiz_settings['group'] ) && isset( $this->addon_quiz_settings['group_interest'] ) && $this->addon_quiz_settings['group'] === $group ) {
575
+ $interest_id = $this->addon_quiz_settings['group_interest'];
576
+ } else {
577
+ $interest_id = '';
578
+ }
579
+
580
+ $this->set_groups();
581
+ $groups = wp_list_pluck( $this->groups_data, 'type', 'id' );
582
+ $group_type = isset( $groups[ $group ] ) ? $groups[ $group ] : '';
583
+
584
+ $html = $this->get_group_interest_options( $group_type, $interests, $interest_id );
585
+
586
+ return $html;
587
+ }
588
+
589
+ /**
590
+ * Return an array of options used to display the settings of Group interests.
591
+ *
592
+ * @todo use $interest_id to show the selected values if set. This can be an array if group type is checkbox.
593
+ *
594
+ * @param string $type Group type.
595
+ * @param array $interests Interests.
596
+ * @param string $interest_id Interest ID.
597
+ * @return array
598
+ */
599
+ private function get_group_interest_options( $type, $interests, $interest_id ) {
600
+ if ( in_array( $type, array( 'dropdown' ), true ) ) {
601
+ $type = 'select';
602
+ }
603
+ if ( in_array( $type, array( 'hidden' ), true ) ) {
604
+ $type = 'checkboxes';
605
+ }
606
+
607
+ $choose_prompt = esc_html__( 'Select Interest(s)', 'forminator' );
608
+ $input_name = 'group_interest';
609
+
610
+ $html = '<div class="sui-form-field">';
611
+ $html .= '<label class="sui-label" for="' . $input_name . '">' . $choose_prompt . '</label>';
612
+
613
+ switch ( $type ) {
614
+ case 'checkboxes':
615
+ $html .= self::get_checkboxes_html( $interests, $input_name . '[]', $interest_id );
616
+ break;
617
+
618
+ case 'radio':
619
+ $html .= self::get_radios_html( $interests, $input_name, $interest_id );
620
+ break;
621
+
622
+ default:
623
+ $html .= '<select id="' . $input_name . '" name="' . $input_name . '" class="sui-select">';
624
+ $html .= self::get_select_html( $interests, $interest_id );
625
+ $html .= '</select>';
626
+ break;
627
+ }
628
+
629
+ $html .= '</div>';
630
+
631
+ return $html;
632
+ }
633
+
634
  /**
635
  * Step mapping fields on wizard
636
  *
753
  $error_message .= '</div>';
754
  }
755
 
756
+ // cleanup map fields input markup placeholder
757
  if ( ! empty( $html_input_map_fields ) ) {
758
  $replaced_html_input_map_fields = $html_input_map_fields;
759
  $replaced_html_input_map_fields = preg_replace( '/\{\{\$error_css_class_(.+)\}\}/', '', $replaced_html_input_map_fields );
783
  );
784
  }
785
 
786
+ $html = '<div class="forminator-integration-popup__header">';
787
  $html .= '<h3 id="dialogTitle2" class="sui-box-title sui-lg" style="overflow: initial; text-overflow: none; white-space: normal;">' . __( 'Assign Fields', 'forminator' ) . '</h3>';
788
  $html .= '<p class="sui-description">' . __( 'Lastly, match up your quiz fields with your campaign fields to make sure we\'re sending data to the right place.', 'forminator' ) . '</p>';
789
  $html .= $error_message;
790
+ $html .= '</div>';
791
+ $html .= '<form enctype="multipart/form-data">';
792
  $html .= $html_input_map_fields;
793
+ $html .= '</form>';
794
 
795
  return array(
796
  'html' => $html,
804
  );
805
  }
806
 
807
+ /**
808
+ * Check if it's submission a step.
809
+ *
810
+ * @param array $submitted_data Submitted data.
811
+ * @param int $step Step.
812
+ * @return boolean
813
+ */
814
+ private static function is_submit( $submitted_data, $step ) {
815
+ if ( ! empty( $submitted_data ) ) {
816
+ return true;
817
+ }
818
+
819
+ $post_data = filter_input( INPUT_POST, 'data' );
820
+
821
+ if ( ! is_array( $post_data ) && is_string( $post_data ) ) {
822
+ $post_string = $post_data;
823
+ $post_data = array();
824
+ wp_parse_str( $post_string, $post_data );
825
+
826
+ return in_array( 'is_submit', array_keys( $post_data ), true ) && strval( $step ) === $post_data['is_submit'];
827
+ }
828
+
829
+ return false;
830
+ }
831
+
832
+ /**
833
+ * Get current data based on submitted or saved data
834
+ *
835
+ * @param array $current_data Default data.
836
+ * @param array $submitted_data Submitted data.
837
+ * @return array
838
+ */
839
+ private function get_current_data( $current_data, $submitted_data ) {
840
+ foreach ( array_keys( $current_data ) as $key ) {
841
+ if ( isset( $submitted_data[ $key ] ) ) {
842
+ $current_data[ $key ] = $submitted_data[ $key ];
843
+ } elseif ( isset( $this->addon_quiz_settings[ $key ] ) ) {
844
+ $current_data[ $key ] = $this->addon_quiz_settings[ $key ];
845
+ }
846
+ }
847
+
848
+ return $current_data;
849
+ }
850
+
851
+ /**
852
+ * Return html of options used to display the settings of the 2nd step for tags.
853
+ *
854
+ * @since 1.15.3
855
+ *
856
+ * @param string $selected_ids Selected Tag ID.
857
+ * @return array
858
+ */
859
+ private function get_second_step_options_tags( $selected_ids ) {
860
+ ob_start();
861
+ // Reset cache.
862
+ try {
863
+ $this->set_tags( true );
864
+ ?>
865
+ <div class="sui-form-field">
866
+ <label class="sui-label" for="tags"><strong><?php echo esc_html__( 'Tags', 'forminator' ) . '</strong>&nbsp;(' . esc_html__( 'Optional', 'forminator' ) . ')'; ?></label>
867
+ <select class="sui-select" name="tags[]" id="tags"
868
+ multiple="multiple"
869
+ data-tags="false"
870
+ data-token-separators="[',']"
871
+ data-placeholder="<?php esc_html_e( 'Start typing to add tags', 'forminator' ); ?>"
872
+ data-allow-clear="false">
873
+
874
+ <?php foreach ( $this->tags_data as $tag_id => $name ) { ?>
875
+ <option value="<?php echo esc_attr( $tag_id ); ?>"<?php selected( in_array( $tag_id, array_keys( $selected_ids ) ) ); ?>><?php echo esc_html( $name ); ?></option>
876
+ <?php } ?>
877
+ </select>
878
+ </div>
879
+ <?php
880
+ } catch ( Exception $e ) {
881
+ ?>
882
+ <div role="alert" class="sui-notice sui-notice-red sui-active" style="display: block; text-align: left;" aria-live="assertive">
883
+ <div class="sui-notice-content">
884
+ <div class="sui-notice-message"><span class="sui-notice-icon sui-icon-info" aria-hidden="true"></span>
885
+ <p><?php echo esc_html( $e->getMessage() ); ?></p>
886
+ </div>
887
+ </div>
888
+ </div>
889
+ <?php
890
+ }
891
+ $html = ob_get_clean();
892
+
893
+ return $html;
894
+ }
895
+
896
+ /**
897
+ * Return html of options used to display the settings of the 3rd step for groups.
898
+ *
899
+ * @since 1.15.3
900
+ *
901
+ * @param string $selected_id Selected group ID.
902
+ * @return array
903
+ */
904
+ private function get_third_step_options_groups( $selected_id ) {
905
+ // Reset cache.
906
+ $this->set_groups( true );
907
+ $lists = wp_list_pluck( $this->groups_data, 'name', 'id' );
908
+
909
+ $html = '<div class="sui-form-field">';
910
+ $html .= '<label class="sui-label" for="group"><strong>' . esc_html__( 'Group category', 'forminator' ) . '</strong>&nbsp;(' . esc_html__( 'Optional', 'forminator' ) . ')</label>';
911
+ $html .= '<select id="group" name="group" data-nonce="' . wp_create_nonce( 'forminator_mailchimp_interests' ) . '" class="sui-select" data-placeholder="' . esc_html__( 'Select group category', 'forminator' ) . '">';
912
+ $html .= '<option></option>';
913
+ $html .= self::get_select_html( $lists, $selected_id );
914
+ $html .= '</select>';
915
+ $html .= '<span class="sui-description">' . esc_html__( 'Select a group category to see more options.', 'forminator' ) . '</span>';
916
+ $html .= '</div>';
917
+
918
+ return $html;
919
+ }
920
+
921
+ /**
922
+ * Return html of options used to display the settings of the 4rd step for GDPR.
923
+ *
924
+ * @since 1.21.0
925
+ *
926
+ * @param string $selected_ids Selected GDRP ID.
927
+ * @return array
928
+ */
929
+ private function get_forth_step_options_gdpr( $selected_ids ) {
930
+ $html = '<div class="sui-form-field">';
931
+ $html .= '<label class="sui-label"><strong>' . esc_html__( 'GDPR permissions', 'forminator' ) . '</strong>&nbsp;(' . esc_html__( 'Optional', 'forminator' ) . ')</label>';
932
+ $html .= self::get_checkboxes_html( $this->gdpr_data, 'gdpr[]', $selected_ids );
933
+ $html .= '</div>';
934
+
935
+ return $html;
936
+ }
937
+
938
+ /**
939
+ * Set the tags of the given list.
940
+ *
941
+ * @param bool $force Optional. If true - don't use cache.
942
+ * @since 1.21.0
943
+ */
944
+ private function set_tags( $force = false ) {
945
+ if ( ! $force && isset( $this->addon_quiz_settings['tags_data'] ) ) {
946
+ $tags = $this->addon_quiz_settings['tags_data'];
947
+ } else {
948
+ $list_id = $this->addon_quiz_settings['mail_list_id'];
949
+ $api = $this->addon->get_api();
950
+ $tags = $api->get_tags( $list_id );
951
+
952
+ $this->addon_quiz_settings['tags_data'] = $tags;
953
+ $this->save_quiz_settings_values( $this->addon_quiz_settings );
954
+ }
955
+ $this->tags_data = $tags;
956
+ }
957
+
958
+ /**
959
+ * Set the GDPR fields that belong to the given list.
960
+ *
961
+ * @since 1.21.0
962
+ */
963
+ private function set_gdpr_fields() {
964
+ if ( isset( $this->addon_quiz_settings['gdpr_data'] ) ) {
965
+ $gdpr_fields = $this->addon_quiz_settings['gdpr_data'];
966
+ } else {
967
+ $list_id = $this->addon_quiz_settings['mail_list_id'];
968
+ $api = $this->addon->get_api();
969
+
970
+ $gdpr_fields = $api->get_gdpr_fields( $list_id );
971
+
972
+ $this->addon_quiz_settings['gdpr_data'] = $gdpr_fields;
973
+ $this->save_quiz_settings_values( $this->addon_quiz_settings );
974
+ }
975
+
976
+ $this->gdpr_data = $gdpr_fields;
977
+ }
978
+
979
+ /**
980
+ * Init the list groups.
981
+ *
982
+ * @param bool $force Optional. If true - don't use cache.
983
+ * @since 1.15.3
984
+ */
985
+ private function set_groups( $force = false ) {
986
+ if ( ! $force && isset( $this->addon_quiz_settings['groups_data'] ) ) {
987
+ $groups_data = $this->addon_quiz_settings['groups_data'];
988
+ } else {
989
+ $list_id = $this->addon_quiz_settings['mail_list_id'];
990
+ $api = $this->addon->get_api();
991
+ $groups = $api->get_list_categories( $list_id, array( 'count' => 1000 ) );
992
+
993
+ $groups_data = array();
994
+
995
+ foreach ( $groups as $group ) {
996
+ $group = (array) $group;
997
+
998
+ // Create an array with the groups data to use it before saving.
999
+ $groups_data[ $group['id'] ]['id'] = $group['id'];
1000
+ $groups_data[ $group['id'] ]['type'] = $group['type'];
1001
+ $groups_data[ $group['id'] ]['name'] = $group['title'] . ' ( ' . ucfirst( $group['type'] ) . ' )';
1002
+ }
1003
+
1004
+ $this->addon_quiz_settings['groups_data'] = $groups_data;
1005
+ $this->save_quiz_settings_values( $this->addon_quiz_settings );
1006
+ }
1007
+
1008
+ $this->groups_data = $groups_data;
1009
+ }
1010
+
1011
+ /**
1012
+ * Calls the API to fetch remote interest options
1013
+ *
1014
+ * @return array
1015
+ */
1016
+ private function get_interests() {
1017
+ $list_id = $this->addon_quiz_settings['mail_list_id'];
1018
+ $group = $this->addon_quiz_settings['group'];
1019
+ $api = $this->addon->get_api();
1020
+
1021
+ if ( empty( $group ) ) {
1022
+ return array();
1023
+ }
1024
+
1025
+ $interests = $api->get_category_interests( $list_id, $group, array( 'count' => 1000 ) );
1026
+ if ( is_wp_error( $interests ) || ! is_array( $interests->interests ) ) {
1027
+ $interests = array();
1028
+ } else {
1029
+ $interests = wp_list_pluck( $interests->interests, 'name', 'id' );
1030
+ }
1031
+
1032
+ return $interests;
1033
+ }
1034
+
1035
  /**
1036
  * Get input of Map Fields
1037
  * its table with html select options as input
1046
 
1047
  $quiz_questions = $this->get_quiz_fields();
1048
  $quiz_fields = array(
1049
+ 'quiz-name' => __( 'Quiz Name', 'forminator' ),
1050
  );
1051
  foreach ( $quiz_questions as $quiz_question ) {
1052
  $quiz_fields[ $quiz_question['slug'] ] = $quiz_question['title'];
1127
  <?php selected( $current_data['fields_map'][ $item->tag ], $form_field['element_id'] ); ?>>
1128
  <?php echo esc_html( $form_field['field_label'] . ' | ' . $form_field['element_id'] ); ?>
1129
  </option>
1130
+ <?php
1131
+ }
1132
+ foreach ( $quiz_fields as $quiz_key => $quiz_field ) :
1133
+ ?>
1134
  <option value="<?php echo esc_attr( $quiz_key ); ?>"
1135
  <?php selected( $current_data['fields_map'][ $item->tag ], $quiz_key ); ?>>
1136
  <?php echo esc_html( $quiz_field . ' | ' . $quiz_key ); ?>
1199
  $quiz_questions = $this->get_quiz_fields();
1200
  foreach ( $quiz_questions as $quiz_question ) {
1201
  // collect element ids.
1202
+ $forminator_quiz_element_ids[] = $quiz_question['slug'];
1203
  }
1204
  if ( 'knowledge' === $this->quiz->quiz_type ) {
1205
+ array_push( $forminator_quiz_element_ids, 'quiz-name', 'correct-answers', 'total-answers' );
1206
  } elseif ( 'nowrong' === $this->quiz->quiz_type ) {
1207
+ array_push( $forminator_quiz_element_ids, 'quiz-name', 'result-answers' );
1208
  }
1209
 
1210
  $forminator_field_element_ids = array_merge( $forminator_field_element_ids, $forminator_quiz_element_ids );
1211
 
1212
+ // map mailchimp maped with tag as its key
1213
  $tag_maped_mailchimp_fields = array();
1214
  foreach ( $mailchimp_fields_list as $item ) {
1215
  $tag_maped_mailchimp_fields[ $item->tag ] = $item;
1237
  $input_exceptions->add_input_exception( $this->_update_quiz_settings_error_message, 'EMAIL' );
1238
  }
1239
 
1240
+ // check required fields fulfilled
1241
  foreach ( $mailchimp_required_fields as $mailchimp_required_field ) {
1242
  if ( 'address' === $mailchimp_required_field->type ) {
1243
  $address_fields = $this->mail_address_fields();
1375
  return true;
1376
  }
1377
 
1378
+ /**
1379
+ * Return as if the step is indeed completed.
1380
+ * The second and third steps are optional, so no real validation is done here.
1381
+ *
1382
+ * @return boolean
1383
+ */
1384
+ public function step_is_completed() {
1385
+ return $this->step_choose_mail_list_is_completed();
1386
+ }
1387
+
1388
  }
addons/pro/mailchimp/class-forminator-addon-mailchimp.php CHANGED
@@ -783,9 +783,10 @@ class Forminator_Addon_Mailchimp extends Forminator_Addon_Abstract {
783
  $data = array();
784
  wp_parse_str( $post_data, $data );
785
  $module_id = isset( $data['module_id'] ) ? $data['module_id'] : '';
 
786
  if ( $module_id ) {
787
- $form_settings_instance = $this->get_addon_settings( $module_id, 'form' );
788
- $html = $form_settings_instance->get_group_interests( $data );
789
  }
790
 
791
  wp_send_json_success( $html );
783
  $data = array();
784
  wp_parse_str( $post_data, $data );
785
  $module_id = isset( $data['module_id'] ) ? $data['module_id'] : '';
786
+ $module_type = isset( $data['module_type'] ) ? $data['module_type'] : '';
787
  if ( $module_id ) {
788
+ $module_settings_instance = $this->get_addon_settings( $module_id, $module_type );
789
+ $html = $module_settings_instance->get_group_interests( $data );
790
  }
791
 
792
  wp_send_json_success( $html );
addons/pro/mailchimp/lib/class-forminator-addon-mailchimp-wp-api.php CHANGED
@@ -69,7 +69,7 @@ class Forminator_Addon_Mailchimp_Wp_Api {
69
  * @throws Forminator_Addon_Mailchimp_Wp_Api_Exception
70
  */
71
  public function __construct( $api_key ) {
72
- //prerequisite
73
  if ( ! $api_key ) {
74
  throw new Forminator_Addon_Mailchimp_Wp_Api_Exception( __( 'Missing required API Key', 'forminator' ) );
75
  }
@@ -140,147 +140,168 @@ class Forminator_Addon_Mailchimp_Wp_Api {
140
  * @throws Forminator_Addon_Mailchimp_Wp_Api_Not_Found_Exception
141
  */
142
  private function request( $verb, $path, $args = array() ) {
143
- // Adding extra user agent for wp remote request.
144
- add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
145
- $url = trailingslashit( $this->_endpoint ) . $path;
146
- $verb = ! empty( $verb ) ? $verb : 'GET';
147
-
148
- /**
149
- * Filter mailchimp url to be used on sending api request
150
- *
151
- * @since 1.1
152
- *
153
- * @param string $url full url with scheme.
154
- * @param string $verb `GET` `POST` `PUT` `DELETE` `PATCH`.
155
- * @param string $path requested path resource.
156
- * @param array $args argument sent to this function.
157
- */
158
- $url = apply_filters( 'forminator_addon_mailchimp_api_url', $url, $verb, $path, $args );
159
-
160
- $this->_last_url_request = $url;
161
-
162
- $headers = array(
163
- 'Authorization' => 'ForminatorMailChimp ' . $this->_api_key,
164
- );
165
-
166
- /**
167
- * Filter mailchimp headers to sent on api request
168
- *
169
- * @since 1.1
170
- *
171
- * @param array $headers
172
- * @param string $verb `GET` `POST` `PUT` `DELETE` `PATCH`.
173
- * @param string $path requested path resource.
174
- * @param array $args argument sent to this function.
175
- */
176
- $headers = apply_filters( 'forminator_addon_mailchimp_api_request_headers', $headers, $verb, $path, $args );
177
-
178
- $_args = array(
179
- 'method' => $verb,
180
- 'headers' => $headers,
181
- );
182
-
183
- $request_data = $args;
184
- /**
185
- * Filter mailchimp request data to be used on sending api request
186
- *
187
- * @since 1.1
188
- *
189
- * @param array $request_data it will be `http_build_query`-ed when `GET` or `wp_json_encode`-ed otherwise.
190
- * @param string $verb `GET` `POST` `PUT` `DELETE` `PATCH`.
191
- * @param string $path requested path resource.
192
- */
193
- $args = apply_filters( 'forminator_addon_mailchimp_api_request_data', $request_data, $verb, $path );
194
-
195
- if ( 'GET' === $verb ) {
196
- $url .= ( '?' . http_build_query( $args ) );
197
- } else {
198
- $_args['body'] = wp_json_encode( $args );
199
- }
200
-
201
- $this->_last_data_sent = $args;
202
 
203
- $res = wp_remote_request( $url, $_args );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
 
205
- remove_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
 
207
- if ( is_wp_error( $res ) || ! $res ) {
208
- forminator_addon_maybe_log( __METHOD__, $res );
209
- throw new Forminator_Addon_Mailchimp_Wp_Api_Exception( __( 'Failed to process request, make sure API KEY is correct and your server has internet connection.', 'forminator' ) );
210
- }
211
 
212
- $body = wp_remote_retrieve_body( $res );
213
 
214
- $response = null;
215
 
216
- // DELETE probably won't receiving contents on success.
217
- if ( 'DELETE' !== $verb ) {
218
- // Got no response from API.
219
- if ( empty( $body ) ) {
220
  forminator_addon_maybe_log( __METHOD__, $res );
221
- throw new Forminator_Addon_Mailchimp_Wp_Api_Exception(
222
- __(
223
- 'Failed to process request, make sure API KEY is correct and your server has internet connection.',
224
- 'forminator'
225
- )
226
- );
227
  }
228
- }
229
 
230
- if ( ! empty( $body ) ) {
231
- $response = json_decode( $body );
232
- $response_code = wp_remote_retrieve_response_code( $res );
233
-
234
- // check response status from API.
235
- if ( isset( $response_code ) ) {
236
- if ( $response_code >= 400 ) {
237
- forminator_addon_maybe_log( __METHOD__, $response );
238
- $msg = '';
239
- if ( isset( $response->detail ) ) {
240
- // if exist, error detail is given by mailchimp here.
241
- $msg = $response->detail;
242
- }
243
- $this->_last_data_received = $response;
244
- if ( 404 === $response_code ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  /* translators: ... */
246
- throw new Forminator_Addon_Mailchimp_Wp_Api_Not_Found_Exception( sprintf( __( 'Failed to process request : %s', 'forminator' ), $msg ) );
247
  }
 
 
 
 
 
 
248
  /* translators: ... */
249
- throw new Forminator_Addon_Mailchimp_Wp_Api_Exception( sprintf( __( 'Failed to process request : %s', 'forminator' ), $msg ) );
250
  }
251
  }
252
 
253
- // Probably response is failed to be json decoded.
 
 
254
  if ( is_null( $response ) ) {
255
- $this->_last_data_received = $body;
256
- forminator_addon_maybe_log( __METHOD__, $res );
257
- /* translators: ... */
258
- throw new Forminator_Addon_Mailchimp_Wp_Api_Exception( sprintf( __( 'Failed to process request : %s', 'forminator' ), json_last_error_msg() ) );
259
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  }
261
 
262
- $wp_response = $res;
263
-
264
- // in case not receving json decoded body use $wp_response.
265
- if ( is_null( $response ) ) {
266
- $response = $wp_response;
267
- }
268
- /**
269
- * Filter mailchimp api response returned to addon
270
- *
271
- * @since 1.1
272
- *
273
- * @param mixed $response
274
- * @param string $body original content of http response's body.
275
- * @param array|WP_Error $wp_response original wp remote request response.
276
- */
277
- $response = apply_filters( 'forminator_addon_mailchimp_api_response', $response, $body, $wp_response );
278
-
279
- $this->_last_data_received = $response;
280
-
281
  return $response;
282
  }
283
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  /**
285
  * Get User Info for the current API KEY
286
  *
@@ -617,7 +638,7 @@ class Forminator_Addon_Mailchimp_Wp_Api {
617
  * @since 1.0 Mailchimp Addon
618
  *
619
  * @param $list_id
620
- * @param string $subscriber_hash The MD5 hash of the lowercase version of the list member’s email address.
621
  * @param $args
622
  *
623
  * @return array|mixed|object
@@ -723,7 +744,7 @@ class Forminator_Addon_Mailchimp_Wp_Api {
723
  * @since 1.0 Mailchimp Addon
724
  *
725
  * @param $list_id
726
- * @param string $subscriber_hash The MD5 hash of the lowercase version of the list member’s email address.
727
  *
728
  * @return array|mixed|object
729
  * @throws Forminator_Addon_Mailchimp_Wp_Api_Exception
69
  * @throws Forminator_Addon_Mailchimp_Wp_Api_Exception
70
  */
71
  public function __construct( $api_key ) {
72
+ // prerequisite
73
  if ( ! $api_key ) {
74
  throw new Forminator_Addon_Mailchimp_Wp_Api_Exception( __( 'Missing required API Key', 'forminator' ) );
75
  }
140
  * @throws Forminator_Addon_Mailchimp_Wp_Api_Not_Found_Exception
141
  */
142
  private function request( $verb, $path, $args = array() ) {
143
+ try {
144
+ // Adding extra user agent for wp remote request.
145
+ add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
146
+ $url = trailingslashit( $this->_endpoint ) . $path;
147
+ $verb = ! empty( $verb ) ? $verb : 'GET';
148
+
149
+ /**
150
+ * Filter mailchimp url to be used on sending api request
151
+ *
152
+ * @since 1.1
153
+ *
154
+ * @param string $url full url with scheme.
155
+ * @param string $verb `GET` `POST` `PUT` `DELETE` `PATCH`.
156
+ * @param string $path requested path resource.
157
+ * @param array $args argument sent to this function.
158
+ */
159
+ $url = apply_filters( 'forminator_addon_mailchimp_api_url', $url, $verb, $path, $args );
160
+
161
+ $this->_last_url_request = $url;
162
+
163
+ $headers = array(
164
+ 'Authorization' => 'ForminatorMailChimp ' . $this->_api_key,
165
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
 
167
+ /**
168
+ * Filter mailchimp headers to sent on api request
169
+ *
170
+ * @since 1.1
171
+ *
172
+ * @param array $headers
173
+ * @param string $verb `GET` `POST` `PUT` `DELETE` `PATCH`.
174
+ * @param string $path requested path resource.
175
+ * @param array $args argument sent to this function.
176
+ */
177
+ $headers = apply_filters( 'forminator_addon_mailchimp_api_request_headers', $headers, $verb, $path, $args );
178
+
179
+ $_args = array(
180
+ 'method' => $verb,
181
+ 'headers' => $headers,
182
+ );
183
 
184
+ $request_data = $args;
185
+ /**
186
+ * Filter mailchimp request data to be used on sending api request
187
+ *
188
+ * @since 1.1
189
+ *
190
+ * @param array $request_data it will be `http_build_query`-ed when `GET` or `wp_json_encode`-ed otherwise.
191
+ * @param string $verb `GET` `POST` `PUT` `DELETE` `PATCH`.
192
+ * @param string $path requested path resource.
193
+ */
194
+ $args = apply_filters( 'forminator_addon_mailchimp_api_request_data', $request_data, $verb, $path );
195
+
196
+ if ( 'GET' === $verb ) {
197
+ $url .= ( '?' . http_build_query( $args ) );
198
+ } else {
199
+ $_args['body'] = wp_json_encode( $args );
200
+ }
201
 
202
+ $this->_last_data_sent = $args;
 
 
 
203
 
204
+ $res = wp_remote_request( $url, $_args );
205
 
206
+ remove_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
207
 
208
+ if ( is_wp_error( $res ) || ! $res ) {
 
 
 
209
  forminator_addon_maybe_log( __METHOD__, $res );
210
+ throw new Forminator_Addon_Mailchimp_Wp_Api_Exception( __( 'Failed to process request, make sure API KEY is correct and your server has internet connection.', 'forminator' ) );
 
 
 
 
 
211
  }
 
212
 
213
+ $body = wp_remote_retrieve_body( $res );
214
+
215
+ $response = null;
216
+
217
+ // DELETE probably won't receiving contents on success.
218
+ if ( 'DELETE' !== $verb ) {
219
+ // Got no response from API.
220
+ if ( empty( $body ) ) {
221
+ forminator_addon_maybe_log( __METHOD__, $res );
222
+ throw new Forminator_Addon_Mailchimp_Wp_Api_Exception(
223
+ __(
224
+ 'Failed to process request, make sure API KEY is correct and your server has internet connection.',
225
+ 'forminator'
226
+ )
227
+ );
228
+ }
229
+ }
230
+
231
+ if ( ! empty( $body ) ) {
232
+ $response = json_decode( $body );
233
+ $response_code = wp_remote_retrieve_response_code( $res );
234
+
235
+ // check response status from API.
236
+ if ( isset( $response_code ) ) {
237
+ if ( $response_code >= 400 ) {
238
+ forminator_addon_maybe_log( __METHOD__, $response );
239
+ $msg = '';
240
+ if ( isset( $response->detail ) ) {
241
+ // if exist, error detail is given by mailchimp here.
242
+ $msg = $response->detail;
243
+ }
244
+ $this->_last_data_received = $response;
245
+ if ( 404 === $response_code ) {
246
+ /* translators: ... */
247
+ throw new Forminator_Addon_Mailchimp_Wp_Api_Not_Found_Exception( sprintf( __( 'Failed to process request : %s', 'forminator' ), $msg ) );
248
+ }
249
  /* translators: ... */
250
+ throw new Forminator_Addon_Mailchimp_Wp_Api_Exception( sprintf( __( 'Failed to process request : %s', 'forminator' ), $msg ) );
251
  }
252
+ }
253
+
254
+ // Probably response is failed to be json decoded.
255
+ if ( is_null( $response ) ) {
256
+ $this->_last_data_received = $body;
257
+ forminator_addon_maybe_log( __METHOD__, $res );
258
  /* translators: ... */
259
+ throw new Forminator_Addon_Mailchimp_Wp_Api_Exception( sprintf( __( 'Failed to process request : %s', 'forminator' ), json_last_error_msg() ) );
260
  }
261
  }
262
 
263
+ $wp_response = $res;
264
+
265
+ // in case not receving json decoded body use $wp_response.
266
  if ( is_null( $response ) ) {
267
+ $response = $wp_response;
 
 
 
268
  }
269
+ /**
270
+ * Filter mailchimp api response returned to addon
271
+ *
272
+ * @since 1.1
273
+ *
274
+ * @param mixed $response
275
+ * @param string $body original content of http response's body.
276
+ * @param array|WP_Error $wp_response original wp remote request response.
277
+ */
278
+ $response = apply_filters( 'forminator_addon_mailchimp_api_response', $response, $body, $wp_response );
279
+
280
+ $this->_last_data_received = $response;
281
+ } catch ( Forminator_Addon_Mailchimp_Wp_Api_Exception $e ) {
282
+ $response = $e;
283
  }
284
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
  return $response;
286
  }
287
 
288
+ /**
289
+ * Ping Mailchimp API to check if API key is valid
290
+ *
291
+ * @since 1.21.0 Mailchimp Addon
292
+ *
293
+ * @param $args
294
+ *
295
+ * @return array|mixed|object
296
+ * @throws Forminator_Addon_Mailchimp_Wp_Api_Exception
297
+ */
298
+ public function ping() {
299
+ return $this->request(
300
+ 'GET',
301
+ 'ping'
302
+ );
303
+ }
304
+
305
  /**
306
  * Get User Info for the current API KEY
307
  *
638
  * @since 1.0 Mailchimp Addon
639
  *
640
  * @param $list_id
641
+ * @param string $subscriber_hash The MD5 hash of the lowercase version of the list member’s email address.
642
  * @param $args
643
  *
644
  * @return array|mixed|object
744
  * @since 1.0 Mailchimp Addon
745
  *
746
  * @param $list_id
747
+ * @param string $subscriber_hash The MD5 hash of the lowercase version of the list member’s email address.
748
  *
749
  * @return array|mixed|object
750
  * @throws Forminator_Addon_Mailchimp_Wp_Api_Exception
admin/classes/class-admin-ajax.php CHANGED
@@ -311,7 +311,11 @@ class Forminator_Admin_AJAX {
311
  }
312
 
313
  // Sanitize settings
314
- $settings = $form_data['settings'];
 
 
 
 
315
  $settings['version'] = $version;
316
  $template->settings = $settings;
317
 
311
  }
312
 
313
  // Sanitize settings
314
+ $settings = $form_data['settings'];
315
+ $activation_method = ! empty( $settings['activation-method'] ) ? $settings['activation-method'] : '';
316
+ if ( 'manual' == $activation_method ) {
317
+ $settings['automatic-login'] = '';
318
+ }
319
  $settings['version'] = $version;
320
  $template->settings = $settings;
321
 
admin/classes/class-admin.php CHANGED
@@ -39,26 +39,6 @@ class Forminator_Admin {
39
  add_action( 'admin_enqueue_scripts', array( $this, 'promote_free_plan_scripts' ) );
40
  }
41
 
42
- if ( ! FORMINATOR_PRO ) {
43
- include_once forminator_plugin_dir() . 'library/lib/wpmudev-blackfriday/banner.php';
44
- $labels = array(
45
- 'close' => __( 'Close', 'forminator' ),
46
- 'get_deal' => __( 'Get deal', 'forminator' ),
47
- 'intro' => __( 'Black Friday offer for WP businesses and agencies', 'forminator' ),
48
- 'off' => __( 'Off', 'forminator' ),
49
- 'title' => __( 'Everything you need to run your WP business for', 'forminator' ),
50
- 'discount' => '83.5',
51
- 'price' => '3000',
52
- 'description' => __( 'From the creators of Forminator, WPMU DEV\'s all-in-one platform gives you all the Pro tools and support you need to run and grow a web development business. Trusted by over 50,000 web developers. Limited deals available.', 'forminator' ),
53
- );
54
-
55
- new \WPMUDEV\BlackFriday\Banner(
56
- $labels,
57
- 'https://wpmudev.com/black-friday/?coupon=BFP-2022&utm_source=forminator&utm_medium=plugin&utm_campaign=BFP-2022-forminator&utm_id=BFP-2022&utm_term=BF-2022-plugin-Forminator&utm_content=BF-2022',
58
- \WPMUDEV\BlackFriday\Banner::FORMINATOR
59
- );
60
- }
61
-
62
  add_action( 'admin_notices', array( $this, 'check_stripe_addon_version' ) );
63
  add_action( 'admin_notices', array( $this, 'show_cf7_importer_notice' ) );
64
  add_action( 'admin_notices', array( $this, 'show_addons_update_notice' ) );
39
  add_action( 'admin_enqueue_scripts', array( $this, 'promote_free_plan_scripts' ) );
40
  }
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  add_action( 'admin_notices', array( $this, 'check_stripe_addon_version' ) );
43
  add_action( 'admin_notices', array( $this, 'show_cf7_importer_notice' ) );
44
  add_action( 'admin_notices', array( $this, 'show_addons_update_notice' ) );
admin/locale.php CHANGED
@@ -190,10 +190,10 @@ $forminator_admin_locale = array(
190
  "If the user filling out the form is logged in, we can auto-fill fields with any available data." => array( null, __("If the user filling out the form is logged in, we can auto-fill fields with any available data.", "forminator" ), ), // src/form/components/behaviour/autofill.js:188
191
  "Enable Autofill" => array( null, __("Enable Autofill", "forminator" ), ), // src/form/components/behaviour/autofill.js:198
192
  "Autofill source" => array( null, __("Autofill source", "forminator" ), ), // src/form/components/behaviour/autofill.js:234
193
- "Disable Autofill" => array( null, __("Disable Autofill", "forminator" ), ), // src/form/components/behaviour/autofill.js:239
194
- "Editable" => array( null, __("Editable", "forminator" ), ), // src/form/components/behaviour/autofill.js:258
195
- "No" => array( null, __("No", "forminator" ), ), // src/form/components/behaviour/autofill.js:262
196
- "Yes" => array( null, __("Yes", "forminator" ), ), // src/form/components/behaviour/autofill.js:265
197
  "more condition(s)" => array( null, __("more condition(s)", "forminator" ), ), // src/form/components/behaviour/behavior.js:97
198
  "Process behavior if" => array( null, __("Process behavior if", "forminator" ), ), // src/form/components/behaviour/behavior.js:104
199
  "Open condition settings" => array( null, __("Open condition settings", "forminator" ), ), // src/form/components/behaviour/behavior.js:172
@@ -309,7 +309,7 @@ To continue where you left off, click the link below or copy the link to your we
309
  "Duplicate" => array( null, __("Duplicate", "forminator" ), ), // src/form/components/builder/field.js:1037
310
  "Insert Fields" => array( null, __("Insert Fields", "forminator" ), ), // src/form/components/builder/insert-fields.js:12
311
  "Add fields to group" => array( null, __("Add fields to group", "forminator" ), ), // src/form/components/builder/insert-fields.js:12
312
- "A form without fields isn’t going to be very useful… Add your first field above!" => array( null, __("A form without fields isn’t going to be very useful… Add your first field above!", "forminator" ), ), // src/form/components/builder/insert-fields.js:61
313
  "Since you are using Page Break field(s) to divide your form into multiple pages, use the pagination settings to customize the page label, progress indicator, and the buttons on each page." => array( null, __("Since you are using Page Break field(s) to divide your form into multiple pages, use the pagination settings to customize the page label, progress indicator, and the buttons on each page.", "forminator" ), ), // src/form/components/builder/pagination.js:44
314
  "Edit field" => array( null, __("Edit field", "forminator" ), ), // src/form/components/builder/pagination.js:77
315
  "PayPal Checkout" => array( null, __("PayPal Checkout", "forminator" ), ), // src/form/components/builder/paypal.js:170
@@ -393,14 +393,15 @@ To continue where you left off, click the link below or copy the link to your we
393
  "Language" => array( null, __("Language", "forminator" ), ), // src/form/components/fields/captcha.js:406
394
  "By default, the global CAPTCHA language setting will be used. However, you can manually select a different language here." => array( null, __("By default, the global CAPTCHA language setting will be used. However, you can manually select a different language here.", "forminator" ), ), // src/form/components/fields/captcha.js:408
395
  "Automatic" => array( null, __("Automatic", "forminator" ), ), // src/form/components/fields/captcha.js:419
396
- "Badge Position" => array( null, __("Badge Position", "forminator" ), ), // src/form/components/fields/captcha.js:445
397
- "Select where the reCAPTCHA badge will be displayed on your page." => array( null, __("Select where the reCAPTCHA badge will be displayed on your page.", "forminator" ), ), // src/form/components/fields/captcha.js:447
398
- "Bottom Right" => array( null, __("Bottom Right", "forminator" ), ), // src/form/components/fields/captcha.js:464
399
- "Bottom Left" => array( null, __("Bottom Left", "forminator" ), ), // src/form/components/fields/captcha.js:472
400
- "Inline in Form" => array( null, __("Inline in Form", "forminator" ), ), // src/form/components/fields/captcha.js:480
401
- "Error Message" => array( null, __("Error Message", "forminator" ), ), // src/form/components/fields/captcha.js:487
402
- "Choose the error message you want to display on your form when reCAPTCHA verification fails." => array( null, __("Choose the error message you want to display on your form when reCAPTCHA verification fails.", "forminator" ), ), // src/form/components/fields/captcha.js:495
403
- "Choose the error message you want to display on your form when hCaptcha verification fails." => array( null, __("Choose the error message you want to display on your form when hCaptcha verification fails.", "forminator" ), ), // src/form/components/fields/captcha.js:515
 
404
  "E.g. Consent" => array( null, __("E.g. Consent", "forminator" ), ), // src/form/components/fields/consent.js:30
405
  "Describe what your users should consent to." => array( null, __("Describe what your users should consent to.", "forminator" ), ), // src/form/components/fields/consent.js:40
406
  "Default Value (optional)" => array( null, __("Default Value (optional)", "forminator" ), ), // src/form/components/fields/currency.js:70
@@ -569,30 +570,21 @@ To continue where you left off, click the link below or copy the link to your we
569
  "SEPA-Lastschrift" => array( null, __("SEPA-Lastschrift", "forminator" ), ), // src/form/components/fields/paypal.js:526
570
  "Sofort" => array( null, __("Sofort", "forminator" ), ), // src/form/components/fields/paypal.js:533
571
  "Venmo" => array( null, __("Venmo", "forminator" ), ), // src/form/components/fields/paypal.js:540
572
- "Disable Card Options" => array( null, __("Disable Card Options", "forminator" ), ), // src/form/components/fields/paypal.js:551
573
- "PayPal automatically decides the card options that appear in the Smart Payment Buttons based visitors geographic location. However you can permanently disable some cards. Choose the cards which should never display to your visitors." => array( null, __("PayPal automatically decides the card options that appear in the Smart Payment Buttons based visitors geographic location. However you can permanently disable some cards. Choose the cards which should never display to your visitors.", "forminator" ), ), // src/form/components/fields/paypal.js:558
574
- "Visa" => array( null, __("Visa", "forminator" ), ), // src/form/components/fields/paypal.js:572
575
- "Mastercard" => array( null, __("Mastercard", "forminator" ), ), // src/form/components/fields/paypal.js:579
576
- "American Express" => array( null, __("American Express", "forminator" ), ), // src/form/components/fields/paypal.js:586
577
- "Discover" => array( null, __("Discover", "forminator" ), ), // src/form/components/fields/paypal.js:593
578
- "JCB" => array( null, __("JCB", "forminator" ), ), // src/form/components/fields/paypal.js:602
579
- "Elo" => array( null, __("Elo", "forminator" ), ), // src/form/components/fields/paypal.js:609
580
- "Hiper" => array( null, __("Hiper", "forminator" ), ), // src/form/components/fields/paypal.js:616
581
- "Pre-fill Billing Details" => array( null, __("Pre-fill Billing Details", "forminator" ), ), // src/form/components/fields/paypal.js:627
582
- "Pre-fill the payer's billing info collected on your form on the Debit or Credit Card checkout, so the payer doesn't have to enter those details again." => array( null, __("Pre-fill the payer's billing info collected on your form on the Debit or Credit Card checkout, so the payer doesn't have to enter those details again.", "forminator" ), ), // src/form/components/fields/paypal.js:634
583
- "Customer name (optional)" => array( null, __("Customer name (optional)", "forminator" ), ), // src/form/components/fields/paypal.js:662
584
- "Select a name field" => array( null, __("Select a name field", "forminator" ), ), // src/form/components/fields/paypal.js:671
585
- "Customer email address (optional)" => array( null, __("Customer email address (optional)", "forminator" ), ), // src/form/components/fields/paypal.js:686
586
- "Select an email field" => array( null, __("Select an email field", "forminator" ), ), // src/form/components/fields/paypal.js:695
587
- "Billing address (optional)" => array( null, __("Billing address (optional)", "forminator" ), ), // src/form/components/fields/paypal.js:713
588
- "Select an address field" => array( null, __("Select an address field", "forminator" ), ), // src/form/components/fields/paypal.js:722
589
- "Ensure the Country option is enabled and required for {{strong}}%(fieldName)s{{/strong}} to process Paypal’s transaction successfully." => array( null, __("Ensure the Country option is enabled and required for {{strong}}%(fieldName)s{{/strong}} to process Paypal’s transaction successfully.", "forminator" ), ), // src/form/components/fields/paypal.js:751
590
- "Shipping Address" => array( null, __("Shipping Address", "forminator" ), ), // src/form/components/fields/paypal.js:788
591
- "If you are selling a product that doesn't need to be shipped, you can choose to disable and hide the shipping address fields from the PayPal payment page." => array( null, __("If you are selling a product that doesn't need to be shipped, you can choose to disable and hide the shipping address fields from the PayPal payment page.", "forminator" ), ), // src/form/components/fields/paypal.js:795
592
- "By default, PayPal detects the language for the visitors based on their geolocation and browser preferences. It is recommended to pass this parameter only if you need the PayPal buttons to render in the same language as the rest of your site. {{link}}Supported locale codes.{{/link}}" => array( null, __("By default, PayPal detects the language for the visitors based on their geolocation and browser preferences. It is recommended to pass this parameter only if you need the PayPal buttons to render in the same language as the rest of your site. {{link}}Supported locale codes.{{/link}}", "forminator" ), ), // src/form/components/fields/paypal.js:825
593
- "Eg. en_US" => array( null, __("Eg. en_US", "forminator" ), ), // src/form/components/fields/paypal.js:844
594
- "Debug Mode" => array( null, __("Debug Mode", "forminator" ), ), // src/form/components/fields/paypal.js:854
595
- "PayPal debug mode helps troubleshoot any issues. However, it's recommended to disable this in production as it causes a significant increase in the script size and performance decrease." => array( null, __("PayPal debug mode helps troubleshoot any issues. However, it's recommended to disable this in production as it causes a significant increase in the script size and performance decrease.", "forminator" ), ), // src/form/components/fields/paypal.js:861
596
  "Make sure the users fill this field as per the selected validation and warn them when they haven't" => array( null, __("Make sure the users fill this field as per the selected validation and warn them when they haven't", "forminator" ), ), // src/form/components/fields/phone.js:43
597
  "National" => array( null, __("National", "forminator" ), ), // src/form/components/fields/phone.js:62
598
  "Select the country to validate phone number for" => array( null, __("Select the country to validate phone number for", "forminator" ), ), // src/form/components/fields/phone.js:69
190
  "If the user filling out the form is logged in, we can auto-fill fields with any available data." => array( null, __("If the user filling out the form is logged in, we can auto-fill fields with any available data.", "forminator" ), ), // src/form/components/behaviour/autofill.js:188
191
  "Enable Autofill" => array( null, __("Enable Autofill", "forminator" ), ), // src/form/components/behaviour/autofill.js:198
192
  "Autofill source" => array( null, __("Autofill source", "forminator" ), ), // src/form/components/behaviour/autofill.js:234
193
+ "Disable Autofill" => array( null, __("Disable Autofill", "forminator" ), ), // src/form/components/behaviour/autofill.js:240
194
+ "Editable" => array( null, __("Editable", "forminator" ), ), // src/form/components/behaviour/autofill.js:259
195
+ "No" => array( null, __("No", "forminator" ), ), // src/form/components/behaviour/autofill.js:264
196
+ "Yes" => array( null, __("Yes", "forminator" ), ), // src/form/components/behaviour/autofill.js:267
197
  "more condition(s)" => array( null, __("more condition(s)", "forminator" ), ), // src/form/components/behaviour/behavior.js:97
198
  "Process behavior if" => array( null, __("Process behavior if", "forminator" ), ), // src/form/components/behaviour/behavior.js:104
199
  "Open condition settings" => array( null, __("Open condition settings", "forminator" ), ), // src/form/components/behaviour/behavior.js:172
309
  "Duplicate" => array( null, __("Duplicate", "forminator" ), ), // src/form/components/builder/field.js:1037
310
  "Insert Fields" => array( null, __("Insert Fields", "forminator" ), ), // src/form/components/builder/insert-fields.js:12
311
  "Add fields to group" => array( null, __("Add fields to group", "forminator" ), ), // src/form/components/builder/insert-fields.js:12
312
+ "A form without fields isn’t going to be very useful… Add your first field above!" => array( null, __("A form without fields isn’t going to be very useful… Add your first field above!", "forminator" ), ), // src/form/components/builder/insert-fields.js:62
313
  "Since you are using Page Break field(s) to divide your form into multiple pages, use the pagination settings to customize the page label, progress indicator, and the buttons on each page." => array( null, __("Since you are using Page Break field(s) to divide your form into multiple pages, use the pagination settings to customize the page label, progress indicator, and the buttons on each page.", "forminator" ), ), // src/form/components/builder/pagination.js:44
314
  "Edit field" => array( null, __("Edit field", "forminator" ), ), // src/form/components/builder/pagination.js:77
315
  "PayPal Checkout" => array( null, __("PayPal Checkout", "forminator" ), ), // src/form/components/builder/paypal.js:170
393
  "Language" => array( null, __("Language", "forminator" ), ), // src/form/components/fields/captcha.js:406
394
  "By default, the global CAPTCHA language setting will be used. However, you can manually select a different language here." => array( null, __("By default, the global CAPTCHA language setting will be used. However, you can manually select a different language here.", "forminator" ), ), // src/form/components/fields/captcha.js:408
395
  "Automatic" => array( null, __("Automatic", "forminator" ), ), // src/form/components/fields/captcha.js:419
396
+ "Select the theme for the captcha." => array( null, __("Select the theme for the captcha.", "forminator" ), ), // src/form/components/fields/captcha.js:443
397
+ "Badge Position" => array( null, __("Badge Position", "forminator" ), ), // src/form/components/fields/captcha.js:473
398
+ "Select where the reCAPTCHA badge will be displayed on your page." => array( null, __("Select where the reCAPTCHA badge will be displayed on your page.", "forminator" ), ), // src/form/components/fields/captcha.js:475
399
+ "Bottom Right" => array( null, __("Bottom Right", "forminator" ), ), // src/form/components/fields/captcha.js:492
400
+ "Bottom Left" => array( null, __("Bottom Left", "forminator" ), ), // src/form/components/fields/captcha.js:500
401
+ "Inline in Form" => array( null, __("Inline in Form", "forminator" ), ), // src/form/components/fields/captcha.js:508
402
+ "Error Message" => array( null, __("Error Message", "forminator" ), ), // src/form/components/fields/captcha.js:515
403
+ "Choose the error message you want to display on your form when reCAPTCHA verification fails." => array( null, __("Choose the error message you want to display on your form when reCAPTCHA verification fails.", "forminator" ), ), // src/form/components/fields/captcha.js:523
404
+ "Choose the error message you want to display on your form when hCaptcha verification fails." => array( null, __("Choose the error message you want to display on your form when hCaptcha verification fails.", "forminator" ), ), // src/form/components/fields/captcha.js:543
405
  "E.g. Consent" => array( null, __("E.g. Consent", "forminator" ), ), // src/form/components/fields/consent.js:30
406
  "Describe what your users should consent to." => array( null, __("Describe what your users should consent to.", "forminator" ), ), // src/form/components/fields/consent.js:40
407
  "Default Value (optional)" => array( null, __("Default Value (optional)", "forminator" ), ), // src/form/components/fields/currency.js:70
570
  "SEPA-Lastschrift" => array( null, __("SEPA-Lastschrift", "forminator" ), ), // src/form/components/fields/paypal.js:526
571
  "Sofort" => array( null, __("Sofort", "forminator" ), ), // src/form/components/fields/paypal.js:533
572
  "Venmo" => array( null, __("Venmo", "forminator" ), ), // src/form/components/fields/paypal.js:540
573
+ "Pre-fill Billing Details" => array( null, __("Pre-fill Billing Details", "forminator" ), ), // src/form/components/fields/paypal.js:550
574
+ "Pre-fill the payer's billing info collected on your form on the Debit or Credit Card checkout, so the payer doesn't have to enter those details again." => array( null, __("Pre-fill the payer's billing info collected on your form on the Debit or Credit Card checkout, so the payer doesn't have to enter those details again.", "forminator" ), ), // src/form/components/fields/paypal.js:557
575
+ "Customer name (optional)" => array( null, __("Customer name (optional)", "forminator" ), ), // src/form/components/fields/paypal.js:585
576
+ "Select a name field" => array( null, __("Select a name field", "forminator" ), ), // src/form/components/fields/paypal.js:594
577
+ "Customer email address (optional)" => array( null, __("Customer email address (optional)", "forminator" ), ), // src/form/components/fields/paypal.js:609
578
+ "Select an email field" => array( null, __("Select an email field", "forminator" ), ), // src/form/components/fields/paypal.js:618
579
+ "Billing address (optional)" => array( null, __("Billing address (optional)", "forminator" ), ), // src/form/components/fields/paypal.js:636
580
+ "Select an address field" => array( null, __("Select an address field", "forminator" ), ), // src/form/components/fields/paypal.js:645
581
+ "Ensure the Country option is enabled and required for {{strong}}%(fieldName)s{{/strong}} to process Paypal’s transaction successfully." => array( null, __("Ensure the Country option is enabled and required for {{strong}}%(fieldName)s{{/strong}} to process Paypal’s transaction successfully.", "forminator" ), ), // src/form/components/fields/paypal.js:674
582
+ "Shipping Address" => array( null, __("Shipping Address", "forminator" ), ), // src/form/components/fields/paypal.js:711
583
+ "If you are selling a product that doesn't need to be shipped, you can choose to disable and hide the shipping address fields from the PayPal payment page." => array( null, __("If you are selling a product that doesn't need to be shipped, you can choose to disable and hide the shipping address fields from the PayPal payment page.", "forminator" ), ), // src/form/components/fields/paypal.js:718
584
+ "By default, PayPal detects the language for the visitors based on their geolocation and browser preferences. It is recommended to pass this parameter only if you need the PayPal buttons to render in the same language as the rest of your site. {{link}}Supported locale codes.{{/link}}" => array( null, __("By default, PayPal detects the language for the visitors based on their geolocation and browser preferences. It is recommended to pass this parameter only if you need the PayPal buttons to render in the same language as the rest of your site. {{link}}Supported locale codes.{{/link}}", "forminator" ), ), // src/form/components/fields/paypal.js:748
585
+ "Eg. en_US" => array( null, __("Eg. en_US", "forminator" ), ), // src/form/components/fields/paypal.js:767
586
+ "Debug Mode" => array( null, __("Debug Mode", "forminator" ), ), // src/form/components/fields/paypal.js:777
587
+ "PayPal debug mode helps troubleshoot any issues. However, it's recommended to disable this in production as it causes a significant increase in the script size and performance decrease." => array( null, __("PayPal debug mode helps troubleshoot any issues. However, it's recommended to disable this in production as it causes a significant increase in the script size and performance decrease.", "forminator" ), ), // src/form/components/fields/paypal.js:784
 
 
 
 
 
 
 
 
 
588
  "Make sure the users fill this field as per the selected validation and warn them when they haven't" => array( null, __("Make sure the users fill this field as per the selected validation and warn them when they haven't", "forminator" ), ), // src/form/components/fields/phone.js:43
589
  "National" => array( null, __("National", "forminator" ), ), // src/form/components/fields/phone.js:62
590
  "Select the country to validate phone number for" => array( null, __("Select the country to validate phone number for", "forminator" ), ), // src/form/components/fields/phone.js:69
admin/views/common/reports/email-report.php CHANGED
@@ -89,24 +89,35 @@
89
  <div style="padding:30px 25px 40px;">
90
  <div style="margin-bottom: 30px;">
91
  <p style="font-size:25px;line-height:30px;font-weight:700;margin:0;">
92
- <?php printf(
93
- __( 'Your Forminator %1$s summary for %2$s', 'forminator' ),
94
- $args['label'],
 
95
  '<a href="' . $args['site_url'] . '" style="color:#286EFA;text-decoration: none;">' . $args['site_name'] . '</a>'
96
- ); ?>
 
97
  </p>
98
  </div>
99
  <div style="font-size:16px;line-height:24px;color:#1a1a1a;">
100
  <p style="margin-bottom: 45px;"
101
- ><?php printf( __( 'Hi %s,', 'forminator' ),
102
- $args['recipient']['name'] ); ?></p>
103
- <p><?php printf(
104
- __( 'Here is the %1$s summary of how your form(s) are performing on %2$s. View the full reports %3$shere%4$s.', 'forminator' ),
105
- $args['schedule'],
106
- '<a href="' . $args['site_url'] . '" style="color:#286EFA;text-decoration: none;">' . $args['site_name'] . '</a>',
107
- '<a href="' . esc_url( admin_url( 'admin.php?page=forminator-reports&section=forminator-reports' ) ) . '" target="_blank" style="color:#286EFA;text-decoration: none;">',
108
- '</a>'
109
- ); ?>
 
 
 
 
 
 
 
 
 
110
  </p>
111
  </div>
112
  </div>
@@ -123,8 +134,10 @@
123
  </tr>
124
  </thead>
125
  <tbody style="font-size:12px;line-height:22px;font-weight:500;color:#666666;">
126
- <?php if( ! empty( $args['reports'] ) ) {
127
- foreach ( $args['reports'] as $report ) { ?>
 
 
128
  <tr style="border-bottom: 1px solid #f2f2f2;">
129
  <td style="padding: 20px 15px 20px 20px;color: #1a1a1a;"><strong><?php echo esc_html( $report['title'] ); ?></strong></td>
130
  <td style="padding: 20px 5px;"><?php echo esc_html( $report['views'] ); ?></td>
@@ -134,17 +147,21 @@
134
  <td style="padding: 20px 20px 20px 5px;"><?php echo esc_html( $report['payments'] ); ?></td>
135
  <?php } ?>
136
  </tr>
137
- <?php }
138
- } ?>
 
 
139
  </tbody>
140
  </table>
141
  <div style="padding: 0 25px;">
142
  <p style="font-size:16px;line-height:24px;color:#1a1a1a;">
143
  <?php
144
- printf( __( 'You can change the frequency of receiving this email in Forminator\'s %1$sReport - Notification%2$s section.', 'forminator' ),
145
- '<a href="' . esc_url( admin_url( 'admin.php?page=forminator-reports&section=forminator-notification' ) ) . '" target="_blank" style="color:#286EFA;text-decoration: none;">',
 
146
  '</a>'
147
- ); ?>
 
148
  </p>
149
  <p style="font-size:16px;line-height:28px;margin: 40px 0 30px;"><strong><?php esc_html_e( 'Forminator', 'forminator' ); ?></strong></p>
150
  <p style="font-size:16px;line-height:28px;"><?php esc_html_e( 'WPMU DEV Team', 'forminator' ); ?></p>
@@ -252,4 +269,4 @@
252
  </tbody>
253
  </table>
254
  </body>
255
- </html>
89
  <div style="padding:30px 25px 40px;">
90
  <div style="margin-bottom: 30px;">
91
  <p style="font-size:25px;line-height:30px;font-weight:700;margin:0;">
92
+ <?php
93
+ printf(
94
+ __( 'Your Forminator %1$s summary for %2$s', 'forminator' ),
95
+ $args['label'],
96
  '<a href="' . $args['site_url'] . '" style="color:#286EFA;text-decoration: none;">' . $args['site_name'] . '</a>'
97
+ );
98
+ ?>
99
  </p>
100
  </div>
101
  <div style="font-size:16px;line-height:24px;color:#1a1a1a;">
102
  <p style="margin-bottom: 45px;"
103
+ >
104
+ <?php
105
+ printf(
106
+ __( 'Hi %s,', 'forminator' ),
107
+ $args['recipient']['name']
108
+ );
109
+ ?>
110
+ </p>
111
+ <p>
112
+ <?php
113
+ printf(
114
+ __( 'Here is the %1$s summary of how your form(s) are performing on %2$s. View the full reports %3$shere%4$s.', 'forminator' ),
115
+ $args['schedule'],
116
+ '<a href="' . $args['site_url'] . '" style="color:#286EFA;text-decoration: none;">' . $args['site_name'] . '</a>',
117
+ '<a href="' . esc_url( admin_url( 'admin.php?page=forminator-reports&section=dashboard' ) ) . '" target="_blank" style="color:#286EFA;text-decoration: none;">',
118
+ '</a>'
119
+ );
120
+ ?>
121
  </p>
122
  </div>
123
  </div>
134
  </tr>
135
  </thead>
136
  <tbody style="font-size:12px;line-height:22px;font-weight:500;color:#666666;">
137
+ <?php
138
+ if ( ! empty( $args['reports'] ) ) {
139
+ foreach ( $args['reports'] as $report ) {
140
+ ?>
141
  <tr style="border-bottom: 1px solid #f2f2f2;">
142
  <td style="padding: 20px 15px 20px 20px;color: #1a1a1a;"><strong><?php echo esc_html( $report['title'] ); ?></strong></td>
143
  <td style="padding: 20px 5px;"><?php echo esc_html( $report['views'] ); ?></td>
147
  <td style="padding: 20px 20px 20px 5px;"><?php echo esc_html( $report['payments'] ); ?></td>
148
  <?php } ?>
149
  </tr>
150
+ <?php
151
+ }
152
+ }
153
+ ?>
154
  </tbody>
155
  </table>
156
  <div style="padding: 0 25px;">
157
  <p style="font-size:16px;line-height:24px;color:#1a1a1a;">
158
  <?php
159
+ printf(
160
+ __( 'You can change the frequency of receiving this email in Forminator\'s %1$sReport - Notification%2$s section.', 'forminator' ),
161
+ '<a href="' . esc_url( admin_url( 'admin.php?page=forminator-reports&section=notification' ) ) . '" target="_blank" style="color:#286EFA;text-decoration: none;">',
162
  '</a>'
163
+ );
164
+ ?>
165
  </p>
166
  <p style="font-size:16px;line-height:28px;margin: 40px 0 30px;"><strong><?php esc_html_e( 'Forminator', 'forminator' ); ?></strong></p>
167
  <p style="font-size:16px;line-height:28px;"><?php esc_html_e( 'WPMU DEV Team', 'forminator' ); ?></p>
269
  </tbody>
270
  </table>
271
  </body>
272
+ </html>
assets/js/front/front.datepicker.js CHANGED
@@ -90,6 +90,9 @@
90
 
91
  this.$el.datepicker({
92
  "beforeShow": function (input, inst) {
 
 
 
93
  // Remove all Hustle UI related classes
94
  ( inst.dpDiv ).removeClass( function( index, css ) {
95
  return ( css.match ( /\bhustle-\S+/g ) || []).join( ' ' );
@@ -127,6 +130,18 @@
127
  $(this).datepicker( 'option', 'maxDate', endDateVal );
128
  }
129
  }
 
 
 
 
 
 
 
 
 
 
 
 
130
  },
131
  "beforeShowDay": disabledWeekDays,
132
  "monthNames": datepickerLang.monthNames,
@@ -207,5 +222,4 @@
207
  }
208
  });
209
  };
210
-
211
  })(jQuery, window, document);
90
 
91
  this.$el.datepicker({
92
  "beforeShow": function (input, inst) {
93
+ // elementor popup
94
+ var popup = $(this).closest('.elementor-popup-modal');
95
+
96
  // Remove all Hustle UI related classes
97
  ( inst.dpDiv ).removeClass( function( index, css ) {
98
  return ( css.match ( /\bhustle-\S+/g ) || []).join( ' ' );
130
  $(this).datepicker( 'option', 'maxDate', endDateVal );
131
  }
132
  }
133
+
134
+ // if elementor popup append datepicker with input
135
+ if( popup.length ) {
136
+ popup.append($('#ui-datepicker-div'));
137
+ var rect = input.getBoundingClientRect();
138
+ setTimeout(function() {
139
+ inst.dpDiv.css({
140
+ top: rect.top + rect.height,
141
+ left: rect.left
142
+ });
143
+ }, 0);
144
+ }
145
  },
146
  "beforeShowDay": disabledWeekDays,
147
  "monthNames": datepickerLang.monthNames,
222
  }
223
  });
224
  };
 
225
  })(jQuery, window, document);
assets/js/front/front.multi.js CHANGED
@@ -65,13 +65,7 @@
65
  this.template_type = '';
66
 
67
  this.init();
68
-
69
- var self = this;
70
- if ( 'undefined' !== typeof DiviArea ) {
71
- DiviArea.addAction( 'show_area', function( area ) {
72
- self.init();
73
- });
74
- }
75
  }
76
 
77
  // Avoid Plugin.prototype conflicts
@@ -199,12 +193,17 @@
199
  // initiate payment if exist
200
  var first_payment = $( form_selector ).find('div[data-is-payment="true"], input[data-is-payment="true"]').first();
201
 
202
- if( self.settings.has_stripe && $( self.element ).is( ':visible' ) ) {
203
  var stripe_payment = $(this.element).find('.forminator-stripe-element').first();
204
 
205
  if ( $( self.element ).is( ':visible' ) ) {
206
  this.renderStripe( self, stripe_payment );
207
  }
 
 
 
 
 
208
  }
209
 
210
  if( self.settings.has_paypal && $( self.element ).is( ':visible' ) ) {
@@ -540,7 +539,8 @@
540
 
541
  // Initialize intlTelInput plugin on each field with "format check" enabled and
542
  // set to check either "international" or "standard" phones.
543
- var is_national_phone = $(this).data('national_mode'),
 
544
  country = $(this).data('country'),
545
  validation = $(this).data('validation');
546
 
@@ -564,17 +564,27 @@
564
  args.autoHideDialCode = false;
565
  }
566
 
567
- $(this).intlTelInput(args);
568
  if ( 'undefined' !== typeof ( validation )
569
  && 'international' === validation ) {
570
  var dial_code = $(this).intlTelInput( 'getSelectedCountryData' ).dialCode,
571
  country_code = '+' + dial_code;
572
  if ( country_code !== $(this).val() ) {
573
- var phone_value = $(this).val().trim().replace( dial_code, '' );
574
  $(this).val( country_code + phone_value );
575
  }
576
  }
577
 
 
 
 
 
 
 
 
 
 
 
578
  if ( ! is_material ) {
579
  $(this).closest( '.forminator-field' ).find( 'div.iti' ).addClass( 'forminator-phone' );
580
  } else {
@@ -989,6 +999,13 @@
989
  'removeMaskOnSubmit': true,
990
  });
991
  });
 
 
 
 
 
 
 
992
  },
993
 
994
  field_time: function () {
@@ -1475,6 +1492,17 @@
1475
  }
1476
  },
1477
 
 
 
 
 
 
 
 
 
 
 
 
1478
  disableFields: function () {
1479
  this.$el.addClass( 'forminator-fields-disabled' );
1480
  },
@@ -1538,6 +1566,11 @@
1538
  $field.find( '#' + editor_id ).trigger( 'change' );
1539
  }
1540
 
 
 
 
 
 
1541
  if ($limit.length) {
1542
  if ($limit.data('limit')) {
1543
  if ($limit.data('type') !== "words") {
65
  this.template_type = '';
66
 
67
  this.init();
68
+ this.handleDiviPopup();
 
 
 
 
 
 
69
  }
70
 
71
  // Avoid Plugin.prototype conflicts
193
  // initiate payment if exist
194
  var first_payment = $( form_selector ).find('div[data-is-payment="true"], input[data-is-payment="true"]').first();
195
 
196
+ if( self.settings.has_stripe ) {
197
  var stripe_payment = $(this.element).find('.forminator-stripe-element').first();
198
 
199
  if ( $( self.element ).is( ':visible' ) ) {
200
  this.renderStripe( self, stripe_payment );
201
  }
202
+
203
+ // Show Stripe on modal display.
204
+ $( document ).on( "hustle:module:displayed", function () {
205
+ self.renderStripe( self, stripe_payment );
206
+ });
207
  }
208
 
209
  if( self.settings.has_paypal && $( self.element ).is( ':visible' ) ) {
539
 
540
  // Initialize intlTelInput plugin on each field with "format check" enabled and
541
  // set to check either "international" or "standard" phones.
542
+ var self = this,
543
+ is_national_phone = $(this).data('national_mode'),
544
  country = $(this).data('country'),
545
  validation = $(this).data('validation');
546
 
564
  args.autoHideDialCode = false;
565
  }
566
 
567
+ var iti = $(this).intlTelInput(args);
568
  if ( 'undefined' !== typeof ( validation )
569
  && 'international' === validation ) {
570
  var dial_code = $(this).intlTelInput( 'getSelectedCountryData' ).dialCode,
571
  country_code = '+' + dial_code;
572
  if ( country_code !== $(this).val() ) {
573
+ var phone_value = $(this).val().trim().replace( dial_code, '' ).replace( '+', '' );
574
  $(this).val( country_code + phone_value );
575
  }
576
  }
577
 
578
+ if ( 'undefined' !== typeof ( validation ) && 'standard' === validation ) {
579
+ // Reset country to default if changed and invalid previously.
580
+ $( this ).on( 'blur', function() {
581
+ if ( '' === $( self ).val() ) {
582
+ iti.intlTelInput( 'setCountry', country );
583
+ form.validate().element( $( self ) );
584
+ }
585
+ });
586
+ }
587
+
588
  if ( ! is_material ) {
589
  $(this).closest( '.forminator-field' ).find( 'div.iti' ).addClass( 'forminator-phone' );
590
  } else {
999
  'removeMaskOnSubmit': true,
1000
  });
1001
  });
1002
+
1003
+ // Fixes the 2nd number input bug: https://incsub.atlassian.net/browse/FOR-3033
1004
+ form.find( 'input[type=number]' ).on( 'mouseover', function() {
1005
+ $( this ).trigger( 'focus' );
1006
+ }).on( 'mouseout', function() {
1007
+ $( this ).trigger( 'blur' );
1008
+ });
1009
  },
1010
 
1011
  field_time: function () {
1492
  }
1493
  },
1494
 
1495
+ handleDiviPopup: function () {
1496
+ var self = this;
1497
+ if ( 'undefined' !== typeof DiviArea ) {
1498
+ DiviArea.addAction( 'show_area', function( area ) {
1499
+ self.init();
1500
+ forminatorSignInit();
1501
+ forminatorSignatureResize();
1502
+ });
1503
+ }
1504
+ },
1505
+
1506
  disableFields: function () {
1507
  this.$el.addClass( 'forminator-fields-disabled' );
1508
  },
1566
  $field.find( '#' + editor_id ).trigger( 'change' );
1567
  }
1568
 
1569
+ if ( -1 !== editor_id.indexOf( 'forminator-field-post-content-' ) ) {
1570
+ editor.save();
1571
+ $field.find( '#' + editor_id ).trigger( 'change' );
1572
+ }
1573
+
1574
  if ($limit.length) {
1575
  if ($limit.data('limit')) {
1576
  if ($limit.data('type') !== "words") {
assets/js/front/front.paypal.js CHANGED
@@ -37,6 +37,7 @@
37
  this._defaults = defaults;
38
  this._name = pluginName;
39
  this.paypalData = null;
 
40
  this.init();
41
  }
42
 
@@ -50,6 +51,7 @@
50
  this.paypalData = this.settings.paymentEl;
51
 
52
  this.render_paypal_button( this.element );
 
53
  },
54
 
55
  is_data_valid: function() {
@@ -97,7 +99,7 @@
97
  style_data.tagline = paypalData.tagline;
98
  }
99
 
100
- paypal.Buttons({
101
  onInit: function(data, actions) {
102
  actions.disable();
103
 
@@ -222,7 +224,8 @@
222
  $target_message.html('<label class="forminator-label--error"><span>' + error_msg + '</span></label>');
223
  self.focus_to_element($target_message);
224
  },
225
- }).render( $form.find( '.forminator-button-paypal' )[0] );
 
226
  },
227
 
228
  configurePayPal: function () {
@@ -512,6 +515,28 @@
512
  return $element.is('select');
513
  },
514
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
515
  });
516
 
517
  // A really lightweight plugin wrapper around the constructor,
37
  this._defaults = defaults;
38
  this._name = pluginName;
39
  this.paypalData = null;
40
+ this.paypalButton = null;
41
  this.init();
42
  }
43
 
51
  this.paypalData = this.settings.paymentEl;
52
 
53
  this.render_paypal_button( this.element );
54
+ this.replaceScriptCurrency();
55
  },
56
 
57
  is_data_valid: function() {
99
  style_data.tagline = paypalData.tagline;
100
  }
101
 
102
+ this.paypalButton = paypal.Buttons({
103
  onInit: function(data, actions) {
104
  actions.disable();
105
 
224
  $target_message.html('<label class="forminator-label--error"><span>' + error_msg + '</span></label>');
225
  self.focus_to_element($target_message);
226
  },
227
+ });
228
+ this.paypalButton.render( $form.find( '.forminator-button-paypal' )[0] );
229
  },
230
 
231
  configurePayPal: function () {
515
  return $element.is('select');
516
  },
517
 
518
+ /*
519
+ * Replaces the currency in the paypal script url params
520
+ * so it will match the currency of another form with paypal checkout
521
+ */
522
+ replaceScriptCurrency: function () {
523
+ var self = this,
524
+ formCurrency = this.paypalData.currency;
525
+
526
+ self.$el.on( 'click', function( e ) {
527
+ var paypalScript = $( "script[src^='https://www.paypal.com/sdk/js']" ),
528
+ paypalScriptSrc = paypalScript.attr( 'src' ),
529
+ scriptCurrency = /currency=([^&]+)/.exec( paypalScriptSrc )[1];
530
+
531
+ if ( formCurrency === scriptCurrency ) {
532
+ return;
533
+ }
534
+
535
+ paypalScript.attr( 'src', paypalScriptSrc.replace( 'currency='+ scriptCurrency, 'currency='+ formCurrency ) );
536
+ self.paypalButton.updateProps();
537
+ });
538
+ },
539
+
540
  });
541
 
542
  // A really lightweight plugin wrapper around the constructor,
assets/js/front/front.submit.js CHANGED
@@ -473,10 +473,10 @@
473
  self.$el.hide();
474
  }
475
  //new tab redirection
476
- window.open( self.decodeHtmlEntity( data.data.url ), '_blank' );
477
  } else {
478
  //same tab redirection
479
- window.location.href = self.decodeHtmlEntity( data.data.url );
480
  }
481
 
482
  }
473
  self.$el.hide();
474
  }
475
  //new tab redirection
476
+ window.open( self.decodeHtmlEntity( decodeURIComponent( data.data.url ) ), '_blank' );
477
  } else {
478
  //same tab redirection
479
+ window.location.href = self.decodeHtmlEntity( decodeURIComponent( data.data.url ) );
480
  }
481
 
482
  }
assets/js/front/front.validate.js CHANGED
@@ -367,9 +367,14 @@
367
  var url = $.validator.methods.url.bind(this);
368
  return url(value, element) || url('http://' + value, element);
369
  });
370
- $.validator.addMethod("forminatorPhoneNational", function (value, element) {
 
 
 
 
 
371
  // Uses intlTelInput to check if the number is valid.
372
- return this.optional(element) || $(element).intlTelInput('isValidNumber');
373
  });
374
  $.validator.addMethod("forminatorPhoneInternational", function (value, element) {
375
  // check whether phone field is international and optional
367
  var url = $.validator.methods.url.bind(this);
368
  return url(value, element) || url('http://' + value, element);
369
  });
370
+ $.validator.addMethod("forminatorPhoneNational", function ( value, element ) {
371
+ var phone = $( element );
372
+ if ( phone.data( 'country' ) !== phone.intlTelInput( 'getSelectedCountryData' ).iso2 ) {
373
+ return false;
374
+ }
375
+
376
  // Uses intlTelInput to check if the number is valid.
377
+ return this.optional( element ) || phone.intlTelInput( 'isValidNumber' );
378
  });
379
  $.validator.addMethod("forminatorPhoneInternational", function (value, element) {
380
  // check whether phone field is international and optional
build/form-scripts.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){function t(r){if(a[r])return a[r].exports;var n=a[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var a={};t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=383)}([function(e,t){e.exports=React},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(){var e=Math.ceil(1e3),t=Math.floor(9999);return Math.floor(Math.random()*(t-e)+e)}function o(){return"wrapper-"+n()+"-"+n()}function l(e,t){var a=void 0;return t.map(function(t){t.wrapper_id===e&&(a=t)}),a}function i(e,t){return"basic"!==u(e)?t:""}function s(e){return"basic"===u(e)?"basic-":""}function u(e){return void 0!==e.formDesign?e.formDesign:void 0!==e.settings&&void 0!==e.settings["forminator-poll-design"]?e.settings["forminator-poll-design"]:void 0!==e.quizDesign?e.quizDesign:""}function c(){return["page-break","paypal","stripe","signature","captcha","postdata","group"]}function p(){return{"behaviour-thankyou":C("Inline Message"),"behaviour-redirect":C("Redirect user to a URL"),"behaviour-hide":C("Hide form")}}function f(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a}function d(e,t){var a=[];t.map(function(t){t.fields.map(function(t){if(t.type===e){var r=t.element_id,n=r.split("-");"page-break"===t.type?a.push(parseInt(n[2])):a.push(parseInt(n[1]))}})});var r=0;return _.isEmpty(a)||(r=_.max(a)),parseInt(r)+1}function m(e,t){var a=[];_.map(t,function(e){var t=e.element_id,r=t.split("-");a.push(parseInt(r[1]))});var r=0;return _.isEmpty(a)||(r=_.max(a)),parseInt(r)+1}function h(e){return e=e.trim().replace(/\s+|\//g,"-")}function b(e){return null===e}function y(e,t){var a=0;return!!b(t)||(t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a>0)}function v(e,t){var a=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&a.push(t)})}),a}function g(e,t){var a=[];return v(e,t).map(function(t){var r=t.field_label;"address"===e&&(r=t.element_id),a.push({value:t.element_id,label:r,element_id:t.element_id})}),a}function E(e,t){var a="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(a=t.field_label)})}),a}function w(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&a++})}),a>0}function O(e,t,a,n,o){o=o||[];var l=[].concat(r(n),[{fields:o}]),i=d(e.type,l);return _.extend(e,{element_id:e.type+"-"+i,formID:t,cols:a})}function P(e,t,a){var r=forminatorData.fields.find(function(t){return t.slug===e}),n=d(r.type,t);return _.extend({element_id:r.type+"-"+n,type:r.type,options:r.options,cols:12,conditions:{},wrapper_id:a},JSON.parse(JSON.stringify(r.defaults)))}function j(e){return e.type}function k(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function x(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t)))}function N(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t+1)))}function C(){return ne.default.translate.apply(null,arguments)}function S(e,t){var a=_.filter(t,function(t){return t.family===e});return _.isUndefined(a[0])||_.isUndefined(a[0].variants)?[C("None")]:a[0].variants}function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}function F(e,t){var a=void 0;if(e.hasOptions&&e.values.length>0){var r=void 0;if(r=_.where(e.values,{value:t})[0],r||(r=_.where(e.values,{label:t})[0]),!r)return;a=r.label}else a=t;return _.isEmpty(a)?C("null"):a}function D(e,t,a,r){var n=[];_.isUndefined(t)&&(t=["page-break","postdata","total","product","captcha"]),Array.isArray(t)&&t.push("group");var o=!1;return _.isUndefined(a)||_.isUndefined(a.main_date_field)||!0!==a.main_date_field||(o=!0),e.map(function(e){e.fields.map(function(e){if(_.isUndefined(r)){if(_.contains(t,e.type))return}else if(!_.contains(r,e.type))return;var a=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(a=e.type,a=T(a)):a=e.field_label,"name"===e.type?n=n.concat(A(e,a)):"address"===e.type?n=n.concat(B(e,a)):"time"===e.type?n=n.concat(q(e,a)):"date"===e.type&&"picker"!==e.field_type&&!1===o||n.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:a,values:L(e),hasOptions:I(e),hasCalcs:R(e),formula:U(e),isNumber:V(e),fieldData:e}),"date"===e.type&&"picker"!==e.field_type&&(n=n.concat(M(e,a)))})}),n}function M(e,t){var a=[],r=void 0;r=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+C("Day"):t+" - "+e.day_label;var n=void 0;n=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+C("Month"):t+" - "+e.month_label;var o=void 0;return o=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+C("Year"):t+" - "+e.year_label,"input"===e.field_type?a.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:n,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:o,values:!1,hasOptions:!1,isNumber:!0}):a.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:L(e),hasOptions:I(e),isNumber:V(e)},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:n,values:L(e),hasOptions:I(e),isNumber:V(e)},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:o,values:L(e),hasOptions:I(e),isNumber:V(e)}),a}function A(e,t){var a=[];return"true"===e.multiple_name||!0===e.multiple_name?[{attr:"prefix",label:"prefix_label",element_suffix:"prefix",hasOptions:!0,values:[{label:"Mr.",value:"Mr"},{label:"Mrs.",value:"Mrs"},{label:"Ms.",value:"Ms"},{label:"Mx.",value:"Mx"},{label:"Miss",value:"Miss"},{label:"Dr.",value:"Dr"},{label:"Prof.",value:"Prof"}],isNumber:!1},{attr:"fname",label:"fname_label",element_suffix:"first-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"mname",label:"mname_label",element_suffix:"middle-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"lname",label:"lname_label",element_suffix:"last-name",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var n=void 0;n=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],a.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:n,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}):a.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:t,values:L(e),hasOptions:I(e),isNumber:V(e)}),a}function V(e){return"number"===e.type||"phone"===e.type||"calculation"===e.type}function R(e){return"true"===e.calculations||!0===e.calculations}function U(e){return!!e.formula&&e.formula}function I(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function L(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function B(e,t){var a=[];return[{attr:"street_address",label:"street_address_label",element_suffix:"street_address",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_line",label:"address_line_label",element_suffix:"address_line",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_city",label:"address_city_label",element_suffix:"city",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_state",label:"address_state_label",element_suffix:"state",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_zip",label:"address_zip_label",element_suffix:"zip",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_country",label:"address_country_label",element_suffix:"country",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var n=void 0;n=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],a.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:n,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}),a}function q(e,t){var a=[],r=void 0;r=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+C("Hour"):t+" - "+e.hh_label;var n=void 0;return n=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+C("Minute"):t+" - "+e.mm_label,a.push({element_id:e.element_id+"-hours",required:e.required,field_type:e.type,field_slug:e.type+"-hours",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-minutes",required:e.required,field_type:e.type,field_slug:e.type+"-minutes",label:n,values:!1,hasOptions:!1,isNumber:!0}),"twelve"===e.time_type&&a.push({element_id:e.element_id+"-ampm",required:e.required,field_type:e.type,field_slug:e.type+"-ampm",label:t+"-AM/PM",values:[{label:"AM",value:"am"},{label:"PM",value:"pm"}],hasOptions:!0,isNumber:!1}),a}function W(e){var t=[],a=forminatorData.fields.filter(function(t){return t.type===e});return a.length<1?[]:(a=a[0],_.isUndefined(a.autofill_settings)||(t=a.autofill_settings),t)}function $(e,t,a){var r=_.isUndefined(a)?"":a;switch(e){case"is":return C("is");case"is_not":return C("is not");case"day_is":return C("day is");case"day_is_not":return C("day is not");case"month_is_not":return C("month is not");case"month_is":return C("month is");case"is_before":return C("is before");case"is_after":return C("is after");case"is_before_n_or_more_days":return C("is before %s or more days from current date").replace("%s",r);case"is_before_less_than_n_days":return C("is before less than %s days from current date").replace("%s",r);case"is_after_n_or_more_days":return C("is after %s or more days from current date").replace("%s",r);case"is_after_less_than_n_days":return C("is after less than %s days from current date").replace("%s",r);case"is_great":return C("is greater than");case"is_less":return C("is less than");case"contains":return C("contains");case"starts":return C("starts with");case"ends":return C("ends with");case"is_correct":return C("is correct");case"is_incorrect":return C("is incorrect");case"is_final_result":return C("is final result");case"is_not_final_result":return C("is not final result");default:return"-"}}function z(e){if(e.length<6)return!1;if(e.indexOf("@",1)<0)return!1;var t=e.split("@",2);if(!t[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(t[1].match(/\.{2,}/))return!1;var a=t[1],r=a.split(".");if(r.length<2)return!1;for(var n=r.length,o=0;o<n;o++)if(!r[o].match(/^[a-z0-9-]+$/i))return!1;return!0}function Y(){"object"===ae(window.SUI)&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery('select.sui-select[data-theme="icon"]').each(function(){SUI.select.initIcon(jQuery(this))}),jQuery('select.sui-select[data-theme="color"]').each(function(){SUI.select.initColor(jQuery(this))}),jQuery('select.sui-select[data-theme="search"]').each(function(){SUI.select.initSearch(jQuery(this))}),jQuery("select.sui-select:not([data-theme]):not(.custom-select2):not(.fui-multi-select)").each(function(){SUI.select.init(jQuery(this))}),jQuery("select.sui-variables").each(function(){SUI.select.initVars(jQuery(this))}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50)}function H(e){var t="none";return ae(e["results-behav"])&&ae(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function Q(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),D(e,t)}function G(e,t){t=_.defaults(t,{allowClear:!0,dropdownCssClass:"sui-select-dropdown"}),e.find("select.sui-select.fui-multi-select").each(function(){jQuery(this).attr("data-reorder")&&jQuery(this).on("select2:select",function(e){var t=e.params.data.element,a=jQuery(t),r=jQuery(this);r.append(a),r.trigger("change.select2")}),jQuery(this).SUIselect2(t)})}function J(e){return"name"!==e.type||"true"!==e.multiple_name&&!0!==e.multiple_name?"address"===e.type?!!(e.street_address_required||e.address_line_required||e.address_city_required||e.address_state_required||e.address_zip_required||e.address_country_required):e.required:!!(e.prefix_required||e.fname_required||e.mname_required||e.lname_required)}function K(e,t,a,r){var n=0;return!!b(e)||(e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[a]&&n++})}),n>0)}function X(e){var t=0;return!!b(e)||(e.map(function(e){e.fields.map(function(e){var a=forminatorData.postCategories[e.post_type];void 0!==a&&a.map(function(a){var r=a.value+"_multiple";1===parseInt(e[r])&&t++})})}),t>0)}function Z(e,t){var a=e.slug,r=[];return _.isEmpty(t)||(_.each(t,function(e,t){_.isEmpty(e.answers)||_.each(e.answers,function(t,n){t.result===a&&r.push({title:e.title,slug:e.slug,question:e})})}),r=_.uniq(r,"slug")),r}function ee(e,t){var a=[];return _.each(t,function(t,r){if(t.amount_type&&t.plan_name||(e.error=C("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r)),"single"===t.payment_method&&("fixed"===t.amount_type&&_.isEmpty(t.amount)||"variable"===t.amount_type&&_.isEmpty(t.variable)))e.error=C("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r);else if("subscription"===t.payment_method){var n=_.isUndefined(t.subscription_amount_type)?"fixed":t.subscription_amount_type,o=_.isUndefined(t.quantity_type)?"fixed":t.quantity_type,l=_.isUndefined(t.quantity)?1:t.quantity,i=_.isUndefined(t.bill_input)?1:t.bill_input;("fixed"===n&&_.isEmpty(t.subscription_amount)||"variable"===n&&_.isEmpty(t.subscription_variable))&&(e.error=C("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r)),("fixed"===o&&!l||"variable"===o&&_.isEmpty(t.variable_quantity))&&(e.error=C("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r)),i?i<=0&&(e.error=C("Billing frequency should be greater than or equal to 1"),e.isValid=!1,a.push(r)):(e.error=C("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r))}}),a.length>0&&(e.paymentKey=a),e}function te(e){if(void 0===e)return!1;switch("string"==typeof e&&(e=e.trim().toLowerCase()),e){case!0:case"true":case 1:case"1":case"on":case"yes":return!0;default:return!1}}Object.defineProperty(t,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.randNumber=n,t.generateWrapperId=o,t.getWrapper=l,t.getDefaultValue=i,t.getThemePrefix=s,t.restrictedGroupFields=c,t.getSubmissionBehaviors=p,t.countFieldsByType=f,t.getMaxIDByType=d,t.getMaxID=m,t.generateValue=h,t.hasFieldType=y,t.getFieldsByType=v,t.mapFieldsByType=g,t.getFieldLabel=E,t.fieldExist=w,t.buildFieldObject=O,t.buildFieldObjectFromSlug=P,t.getFieldType=j,t.getForminatorField=k,t.insertInPosition=x,t.replaceInPosition=N,t.translate=C,t.getFontVariants=S,t.ucfirst=T,t.getConditionLabel=F,t.getFields=D,t.getDateFields=M,t.getNameFields=A,t.fieldHasNumber=V,t.fieldHasCalcs=R,t.fieldFormula=U,t.fieldHasOptions=I,t.getFieldValues=L,t.getAddressFields=B,t.getTimeFields=q,t.getFieldAutofillProviders=W,t.getRuleLabel=$,t.isEmailWp=z,t.suiDelegateEvents=Y,t.getChartType=H,t.getCalculationFields=Q,t.select2Tags=G,t.isFieldRequired=J,t.hasFieldWithAttribute=K,t.hasPostdataFieldWithMultiselect=X,t.getPersonalityQuestions=Z,t.getPlanValidation=ee,t.isTrue=te;var re=a(64),ne=function(e){return e&&e.__esModule?e:{default:e}}(re)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",null,e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),i(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.type)?"text":this.props.type,r=_.isUndefined(this.props.requiredError)?(0,c.translate)("This field is required!"):this.props.requiredError,n=this.isValid(t)?"":"sui-form-field-error",o=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,i="sui-form-control";_.isUndefined(this.props.inputClass)||""===this.props.inputClass||(i+=" "+this.props.inputClass),_.isUndefined(this.props.prefix)||""===this.props.prefix||(i+=" sui-field-has-prefix"),_.isUndefined(this.props.suffix)||""===this.props.suffix||(i+=" sui-field-has-suffix");var s=_.isUndefined(this.props.inputId)?this.props.property:this.props.inputId,p=void 0;this.props.label&&(p=u.default.createElement("label",{htmlFor:"forminator-field-"+s,className:this.props.darkLabel?"sui-settings-label sui-dark":"sui-label"},this.props.label,this.props.isRequired&&u.default.createElement(u.default.Fragment,null," ",u.default.createElement("span",{className:"sui-error"},"*")),this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note)));var f=u.default.createElement("input",l({type:a,placeholder:this.props.placeholder,value:t||"",id:"forminator-field-"+s,className:i},this.props.notWritable&&{readonly:""},this.props.minValue&&{min:this.props.minValue},this.props.maxValue&&{max:this.props.maxValue},this.props.maxLength&&{maxLength:this.props.maxLength},this.props.inputStyles&&{style:this.props.inputStyles},{disabled:!!this.props.disabled,onChange:function(t){e.updateValue(t.target.value)}})),d=u.default.createElement("div",{className:o+" "+n},p,!_.isUndefined(this.props.prefix)&&""!==this.props.prefix&&u.default.createElement("span",{className:"sui-field-prefix"},this.props.prefix),this.props.canTrash?u.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},f,u.default.createElement("button",{className:"sui-button-icon sui-tooltip sui-tooltip-top-right","data-tooltip":(0,c.translate)("Delete")},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}))):f,this.props.suffix&&u.default.createElement("span",{className:"sui-field-suffix"},this.props.suffix),this.props.isRequired&&!this.isValid(t)&&u.default.createElement("span",{className:"sui-error-message"},r),!_.isUndefined(this.props.isPositive)&&!this.isValid(t)&&u.default.createElement("span",{className:"sui-error-message"},(0,c.translate)("Please enter valid number.")),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description));return this.props.simple?f:d}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$el.wpColorPicker({change:function(e,t){jQuery(this).val(t.color.toCSS()).trigger("change")},palettes:["#333333","#FFFFFF","#17A8E3","#E1F6FF","#666666","#AAAAAA","#E6E6E6"]});var e=this.$el,t=e.closest(".sui-colorpicker-wrap"),a=t.find(".sui-colorpicker-value span[role=button]"),r=t.find(".sui-colorpicker-value"),n=r.find("button"),o=e.closest(".wp-picker-container"),l=o.find(".wp-color-result"),i=l.find(".color-alpha"),s=o.find(".wp-picker-clear"),u=i;u=!0===e.data("alpha")?i:l,e.bind("change",function(){a.find("span").css({"background-color":u.css("background-color")}),r.find("input").val(e.val())}),t.find(".sui-button, span[role=button]").on("click",function(e){e.preventDefault(),e.stopPropagation(),l.click()}),n.on("click",function(e){e.preventDefault(),e.stopPropagation(),s.click(),r.find("input").val(""),a.find("span").css({"background-color":""})}),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])||null===this.props.settings[this.props.property]?this.props.defaultValue:this.props.settings[this.props.property],a="";return this.props.label&&(a=s.default.createElement("label",{className:"sui-label",htmlFor:"forminator-color-"+this.props.property},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"}," ",this.props.note))),s.default.createElement("div",{className:"sui-form-field"},a,s.default.createElement("div",{className:"sui-colorpicker-wrap"},s.default.createElement("div",{className:"sui-colorpicker sui-colorpicker-"+(this.props.isAlpha?"rgba":"hex"),"aria-hidden":"true"},s.default.createElement("div",{className:"sui-colorpicker-value"},s.default.createElement("span",{role:"button"},s.default.createElement("span",{style:{backgroundColor:t}})),s.default.createElement("input",{type:"text",defaultValue:t,readOnly:"readonly"}),s.default.createElement("button",null,s.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}))),s.default.createElement("button",{className:"sui-button"},(0,u.translate)("Select"))),s.default.createElement("input",{ref:function(t){return e.el=t},defaultValue:t,id:"forminator-color-"+this.props.property,className:"sui-colorpicker-input","data-alpha":this.props.isAlpha?"true":"false"})),this.props.description&&""!==this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e}),t=this.props.customClass?this.props.customClass:"";return s.default.createElement("div",{className:"sui-col-md-"+this.props.cols+" "+t},e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"toggleValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"getDefaultValue",value:function(){var e=this.props.default?this.props.default:"";return _.isUndefined(this.props.settings[this.props.property])?e:this.props.settings[this.props.property]}},{key:"render",value:function(){var e=this,t=this.getDefaultValue(),a=s.default.Children.map(this.props.children,function(a){if(!a)return s.default.createElement(s.default.Fragment,null);var r=_.isUndefined(a.props.label)?a.props.children:a.props.label;return e.props.disabled?s.default.createElement("div",{className:"sui-tab-item"+(a.props.value===t?" active":""),style:{opacity:.5,cursor:"not-allowed"}},r):e.props.disabled?void 0:s.default.createElement("div",{className:"sui-tab-item"+(a.props.value===t?" active":""),onClick:e.toggleValue.bind(e,a.props.value)},r)}),r=_.isUndefined(this.props.divClass)?"sui-tabs-content":"sui-tabs-content "+this.props.divClass,n=s.default.Children.map(this.props.children,function(e){if(!e)return s.default.createElement(s.default.Fragment,null);var a=_.isUndefined(e.props.boxClass)?"":e.props.boxClass;return"Empty"!==e.type.name?s.default.createElement("div",{className:a+" sui-tab-content"+(e.props.value===t?" active":"")},e.props.value===t&&e):s.default.createElement(s.default.Fragment,null)}),o="";this.props.label&&""!==this.props.label&&(o=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"}," ",this.props.note)));var l="";if(this.props.settingsLabel&&""!==this.props.settingsLabel){var i=this.props.labelClass?this.props.labelClass:"sui-settings-label";l=s.default.createElement("label",{className:i},this.props.settingsLabel)}var u="";this.props.description&&""!==this.props.description&&(u=s.default.createElement("span",{className:"sui-description",style:{marginBottom:10}},this.props.description));var c=_.isUndefined(this.props.wrapperClass)?"":this.props.wrapperClass;c=this.props.basicTabs?"sui-tabs sui-tabs-overflow "+c:"sui-side-tabs "+c;var p=s.default.createElement("div",{className:c},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n));return this.props.simple||(p=s.default.createElement("div",{className:"sui-form-field"},l,o,u,s.default.createElement("div",{className:c},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n)))),p}}]),t}(i.Component);t.default=u},function(e,t,a){e.exports=a(86)()},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={active:a.props.default?a.props.default:""},a}return o(t,e),l(t,[{key:"toggleValue",value:function(e){this.setState({active:e})}},{key:"render",value:function(){var e=this,t=(this.props.default&&this.props.default,this.props.type?this.props.type:"side-tabs"),a=this.props.extraClass?this.props.extraClass:"",r=s.default.Children.map(this.props.children,function(t){if(!_.isUndefined(t)&&!_.isNull(t))return s.default.createElement("div",{className:"forminator-toggle sui-tab-item"+(t.props.value===e.state.active?" active":""),onClick:e.toggleValue.bind(e,t.props.value)},t.props.label," ",t.props.required&&s.default.createElement("span",{className:"sui-error"},"*"))}),n=s.default.Children.map(this.props.children,function(t){if(!_.isUndefined(t)&&!_.isNull(t)){var a=_.isUndefined(t.props.boxClass)?"sui-tab-content":t.props.boxClass;return s.default.createElement("div",{className:a+(t.props.value===e.state.active?" active":"")},t.props.value===e.state.active&&t)}});return s.default.createElement("div",{className:"sui-"+t+" "+a},s.default.createElement("div",{className:"sui-tabs-menu"},r),s.default.createElement("div",{className:"sui-tabs-content"},n))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",{className:"sui-row"+(_.isUndefined(this.props.class)?"":" "+this.props.class)},e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e){if("object"!==(void 0===e?"undefined":m(e))||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function n(e,t,a){function o(){v===y&&(v=y.slice())}function l(){if(g)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return b}function i(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(g)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return o(),v.push(e),function(){if(t){if(g)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,o();var a=v.indexOf(e);v.splice(a,1)}}}function s(e){if(!r(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,b=h(b,e)}finally{g=!1}for(var t=y=v,a=0;a<t.length;a++){(0,t[a])()}return e}function u(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,s({type:d.REPLACE})}function c(){var e,t=i;return e={subscribe:function(e){function a(){e.next&&e.next(l())}if("object"!==(void 0===e?"undefined":m(e))||null===e)throw new TypeError("Expected the observer to be an object.");return a(),{unsubscribe:t(a)}}},e[f.a]=function(){return this},e}var p;if("function"==typeof t&&void 0===a&&(a=t,t=void 0),void 0!==a){if("function"!=typeof a)throw new Error("Expected the enhancer to be a function.");return a(n)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,b=t,y=[],v=y,g=!1;return s({type:d.INIT}),p={dispatch:s,subscribe:i,getState:l,replaceReducer:u},p[f.a]=c,p}function o(e,t){var a=t&&t.type;return"Given "+(a&&'action "'+String(a)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){Object.keys(e).forEach(function(t){var a=e[t];if(void 0===a(void 0,{type:d.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===a(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+d.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function i(e){for(var t=Object.keys(e),a={},r=0;r<t.length;r++){var n=t[r];"function"==typeof e[n]&&(a[n]=e[n])}var i=Object.keys(a),s=void 0;try{l(a)}catch(e){s=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(s)throw s;for(var r=!1,n={},l=0;l<i.length;l++){var u=i[l],c=a[u],p=e[u],f=c(p,t);if(void 0===f){var d=o(u,t);throw new Error(d)}n[u]=f,r=r||f!==p}return r?n:e}}function s(e,t){return function(){return t(e.apply(this,arguments))}}function u(e,t){if("function"==typeof e)return s(e,t);if("object"!==(void 0===e?"undefined":m(e))||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":void 0===e?"undefined":m(e))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var a=Object.keys(e),r={},n=0;n<a.length;n++){var o=a[n],l=e[o];"function"==typeof l&&(r[o]=s(l,t))}return r}function c(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function p(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(e){return function(){for(var a=arguments.length,r=Array(a),n=0;n<a;n++)r[n]=arguments[n];var o=e.apply(void 0,r),l=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:o.getState,dispatch:function(){return l.apply(void 0,arguments)}},s=t.map(function(e){return e(i)});return l=c.apply(void 0,s)(o.dispatch),h({},o,{dispatch:l})}}}Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"createStore",function(){return n}),a.d(t,"combineReducers",function(){return i}),a.d(t,"bindActionCreators",function(){return u}),a.d(t,"applyMiddleware",function(){return p}),a.d(t,"compose",function(){return c}),a.d(t,"__DO_NOT_USE__ActionTypes",function(){return d});var f=a(92),d={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}},function(e,t,a){"use strict";function r(e){return"[object Array]"===P.call(e)}function n(e){return"[object ArrayBuffer]"===P.call(e)}function o(e){return"undefined"!=typeof FormData&&e instanceof FormData}function l(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function i(e){return"string"==typeof e}function s(e){return"number"==typeof e}function u(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===P.call(e)}function f(e){return"[object File]"===P.call(e)}function d(e){return"[object Blob]"===P.call(e)}function m(e){return"[object Function]"===P.call(e)}function h(e){return c(e)&&m(e.pipe)}function b(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function y(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function v(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function g(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),r(e))for(var a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function E(){function e(e,a){"object"==typeof t[a]&&"object"==typeof e?t[a]=E(t[a],e):t[a]=e}for(var t={},a=0,r=arguments.length;a<r;a++)g(arguments[a],e);return t}function _(e,t,a){return g(t,function(t,r){e[r]=a&&"function"==typeof t?w(t,a):t}),e}var w=a(72),O=a(152),P=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:n,isBuffer:O,isFormData:o,isArrayBufferView:l,isString:i,isNumber:s,isObject:c,isUndefined:u,isDate:p,isFile:f,isBlob:d,isFunction:m,isStream:h,isURLSearchParams:b,isStandardBrowserEnv:v,forEach:g,merge:E,extend:_,trim:y}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(85),n=a(53),o=a(89);a.d(t,"Provider",function(){return r.b}),a.d(t,"createProvider",function(){return r.a}),a.d(t,"connectAdvanced",function(){return n.a}),a.d(t,"connect",function(){return o.a})},function(e,t,a){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0);!function(e){e&&e.__esModule}(n)},function(e,t,a){"use strict";var r=function(e,t,a,r,n,o,l,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[a,r,n,o,l,i],c=0;s=new Error(t.replace(/%s/g,function(){return u[c++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e}),t="";this.props.label&&""!==this.props.label&&(t=s.default.createElement("span",{className:"sui-settings-label"+(!0===this.props.labelDark?" sui-dark":"")},this.props.label));var a="",r=10;_.isUndefined(this.props.descriptionSpacing)||""===this.props.descriptionSpacing||(r=this.props.descriptionSpacing),_.isUndefined(this.props.description)||""===this.props.description||(a=!1===this.props.sidebar?s.default.createElement("span",{className:"sui-description",style:{marginBottom:r+"px"}},this.props.description):s.default.createElement("span",{className:"sui-description"},this.props.description));var n="";return(this.props.label&&""!==this.props.label||this.props.description&&""!==this.props.description)&&(n=s.default.createElement("div",{className:"sui-box-settings-col-1"},t,a)),s.default.createElement("div",{className:"sui-box-settings-row"},(_.isUndefined(this.props.sidebar)||!1!==this.props.sidebar)&&n,s.default.createElement("div",{className:"sui-box-settings-col-2"},!_.isUndefined(this.props.sidebar)&&!1===this.props.sidebar&&t,!_.isUndefined(this.props.sidebar)&&!1===this.props.sidebar&&a,e))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=function(e){return e&&e.__esModule?e:{default:e}}(u),p=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.afterSave=a.afterSave.bind(a),a}return l(t,e),s(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el);var e=this.$el.closest(".sui-modal-content"),t=e.attr("id"),a=this.props.hasSearch?0:-1,r=Object.assign({dropdownParent:e.length?jQuery("#"+t):jQuery('body[class*="sui-"]'),minimumResultsForSearch:a,dropdownCssClass:this.$el.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"",width:"100%"},this.props.options);if("function"==typeof this.$el.SUIselect2)this.$el.SUIselect2(r);else{if("function"!=typeof this.$el.FUIselect2)throw Error("SUI Select2 not initiated");this.$el.FUIselect2(r)}this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue),this.props.triggerChange&&this.$el.trigger("change")}},{key:"updateValue",value:function(e){var t=jQuery(e.target).val();"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t),this.afterSave(t)}},{key:"afterSave",value:function(){return!1}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,n=_.isUndefined(this.props.elementId)?this.props.property:this.props.elementId,o=void 0;this.props.label&&(o=c.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label," ",this.props.required&&c.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&c.default.createElement("span",{className:"sui-label-note"},this.props.note)));var l=this.props.multiple,s=this.props,u=(s.formType,s.updateProperty,s.noWrapper,s.fieldClass,r(s,["formType","updateProperty","noWrapper","fieldClass"])),p=c.default.createElement("select",i({id:"forminator-field-"+n,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:l},u),this.props.children),f=c.default.createElement("select",{id:"forminator-field-"+n,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:l},this.props.children);return"md"===this.props.fieldSize||"medium"===this.props.fieldSize?f=c.default.createElement("div",{className:"sui-form-field sui-input-md"},p):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?f=c.default.createElement("div",{className:"sui-form-field sui-input-sm"},p):_.isUndefined(this.props.fieldSize)||""===this.props.fieldSize||(f=c.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},p)),this.props.noWrapper?p:c.default.createElement("div",{className:a},o,f,this.props.description&&c.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))}}]),t}(u.Component);t.default=p},function(e,t,a){"use strict";var r=function(){};e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,r=_.isUndefined(this.props.elementClass)?"":this.props.elementClass,n=_.isUndefined(this.props.elementId)?this.props.property:this.props.elementId,o="";this.props.label&&(o=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,id:"forminator-field-"+this.props.property+"-label",className:"sui-label"},this.props.label," ",this.props.required&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var l=s.default.createElement("select",{defaultValue:t,id:"forminator-field-"+n,className:r,"aria-labelledby":"forminator-field-"+n+"-label",ref:function(t){return e.el=t},style:{maxWidth:"none"}},this.props.children),i=l;"md"===this.props.fieldSize||"medium"===this.props.fieldSize?i=s.default.createElement("div",{className:"sui-form-field sui-input-md"},l):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?i=s.default.createElement("div",{className:"sui-form-field sui-input-sm"},l):""!==this.props.fieldSize&&(i=s.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},l));var u=i;return this.props.simple||(u=s.default.createElement("div",{className:a},o,i,this.props.description&&s.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))),u}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";var r=a(109);a.d(t,"a",function(){return r.a});var n=a(112);a.d(t,"b",function(){return n.a});var o=a(113);a.d(t,"d",function(){return o.a});var l=a(29);a.d(t,"c",function(){return l.a}),a.d(t,"f",function(){return l.b});var i=a(22);a.d(t,"e",function(){return i.b})},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"updateValue",value:function(e){if("function"==typeof this.props.updateProperty){if(this.props.updateProperty(this.props.property,e),"true"===this.props.clearOptions&&"single"===e){var t=[];_.each(this.props.state.options,function(e){e.default=!1,t.push(e)}),this.props.updateProperty("options",t)}}else this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=u.default.Children.map(this.props.children,function(a){return u.default.createElement("button",l({id:"tab-option-"+a.props.value,role:"tab",className:"forminator-toggle sui-tab-item "+(a.props.value===t?"active":""),"aria-selected":a.props.value===t?"true":"false"},a.props.value!==t&&{tabIndex:"-1"},{onClick:e.updateValue.bind(e,a.props.value)}),a.props.children)}),r="";this.props.label&&""!==this.props.label&&(r=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note)));var n="";this.props.description&&""!==this.props.description&&(n=u.default.createElement("span",{className:"sui-description"},this.props.description));var o="";!this.props.label&&this.props.settingsLabel&&(o=u.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var i="";!this.props.label&&this.props.settingsDesc&&(i=u.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc));var s=u.default.createElement("div",{className:"sui-side-tabs",style:this.props.description&&{marginBottom:"5px"}},u.default.createElement("div",{className:"sui-tabs-menu",role:"tablist"},a)),c=u.default.createElement(u.default.Fragment,null,r,s);return this.props.noWrapper||(c=u.default.createElement("div",{className:"sui-form-field"},r,o,i,s,n)),c}}]),t}(s.Component);t.default=c},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(108);a.d(t,"BrowserRouter",function(){return r.a});var n=a(114);a.d(t,"HashRouter",function(){return n.a});var o=a(59);a.d(t,"Link",function(){return o.a});var l=a(115);a.d(t,"MemoryRouter",function(){return l.a});var i=a(117);a.d(t,"NavLink",function(){return i.a});var s=a(119);a.d(t,"Prompt",function(){return s.a});var u=a(121);a.d(t,"Redirect",function(){return u.a});var c=a(60);a.d(t,"Route",function(){return c.a});var p=a(39);a.d(t,"Router",function(){return p.a});var f=a(123);a.d(t,"StaticRouter",function(){return f.a});var d=a(125);a.d(t,"Switch",function(){return d.a});var m=a(127);a.d(t,"generatePath",function(){return m.a});var h=a(128);a.d(t,"matchPath",function(){return h.a});var b=a(129);a.d(t,"withRouter",function(){return b.a})},function(e,t,a){"use strict";a.d(t,"a",function(){return r}),a.d(t,"f",function(){return n}),a.d(t,"c",function(){return o}),a.d(t,"e",function(){return l}),a.d(t,"g",function(){return i}),a.d(t,"d",function(){return s}),a.d(t,"b",function(){return u});var r=function(e){return"/"===e.charAt(0)?e:"/"+e},n=function(e){return"/"===e.charAt(0)?e.substr(1):e},o=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},l=function(e,t){return o(e,t)?e.substr(t.length):e},i=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},s=function(e){var t=e||"/",a="",r="",n=t.indexOf("#");-1!==n&&(r=t.substr(n),t=t.substr(0,n));var o=t.indexOf("?");return-1!==o&&(a=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===a?"":a,hash:"#"===r?"":r}},u=function(e){var t=e.pathname,a=e.search,r=e.hash,n=t||"/";return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),r&&"#"!==r&&(n+="#"===r.charAt(0)?r:"#"+r),n}},function(e,t,a){"use strict";function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){r(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function l(e,t){if(null==e)return{};var a,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}function i(e,t){if(null==e)return{};var a,r,n=l(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"ButtonIcon",function(){return c});var s=a(0),u=a.n(s),c=function(e){var t=e.label,a=e.icon,r=e.iconSize,n=e.design,l=void 0===n?"solid":n,s=e.color,c=e.className,p=e.loading,f=i(e,["label","icon","iconSize","design","color","className","loading"]),d=u.a.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),m=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"sui-icon-".concat(a).concat(r?" sui-"+r:""),"aria-hidden":"true"}),u.a.createElement("span",{className:"sui-screen-reader-text"},t));switch(c="sui-button-icon ".concat(c||""),s){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":c+=" sui-button-"+s;break;case"gray":default:c+=""}switch(l){case"ghost":case"outlined":c+=" sui-button-"+l;break;case"solid":default:c+=""}p&&(c+=" sui-button-onload");var h=f.href?"a":"button";return u.a.createElement(h,o({className:c,disabled:f.disabled||p},f),p?d:m)}},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(482),d=r(f),m=a(20),h=r(m),b=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addRule=a.addRule.bind(a),a.removeRule=a.removeRule.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.fields=(0,p.getFields)(a.props.wrappers,["stripe","paypal","page-break","pagination","section","html"],{main_date_field:!0}),a.fields=_.filter(a.fields,function(e){return e.element_id!==a.props.state.element_id}),"address"!==a.props.state.type&&"date"!==a.props.state.type&&"time"!==a.props.state.type||(a.fields=_.filter(a.fields,function(e){return!e.element_id.startsWith(a.props.state.element_id)})),a.validateConditions(),a}return l(t,e),s(t,[{key:"updateState",value:function(e){this.props.isPayment?this.props.updatePayment(this.props.counter,"conditions",e):this.props.updateProperty("conditions",e)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.conditions,function(t){var a=Object.assign({},t);e.push(a)}),e}},{key:"updateField",value:function(e,t){var a=this.getPropState();a[e].element_id=t,a[e].rule="is",a[e].value="",this.updateState(a)}},{key:"updateRule",value:function(e,t){var a=this.getPropState();a[e].rule=t,this.updateState(a)}},{key:"updateValue",value:function(e,t){var a=this.getPropState();a[e].value=t,this.updateState(a)}},{key:"updateInputValue",value:function(e,t){var a=this.getPropState();a[e].value=t,this.updateState(a)}},{key:"removeRule",value:function(e){var t=this.getPropState();t.splice(e,1),this.updateState(t)}},{key:"addRule",value:function(){var e=this.getPropState(),t=_.isUndefined(this.fields[0])?"":this.fields[0].element_id;e.push({element_id:t,rule:"is",value:""}),this.updateState(e)}},{key:"validateConditions",value:function(){var e=_.pluck(this.props.state.conditions,"element_id"),t=_.pluck(this.fields,"element_id"),a=_.difference(e,t);_.isUndefined(a)||this.removeCondition(a)}},{key:"removeCondition",value:function(e){var t=this.getPropState(),a=_.filter(t,function(t){return!_.contains(e,t.element_id)});this.updateState(a)}},{key:"render",value:function(){var e=this,t=c.default.createElement("div",{className:"fui-visibility-options"},c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(h.default,i({},this.props,{settings:this.props.state,property:"condition_action",defaultValue:"show",noWrapper:!0}),c.default.createElement("span",{value:"show"},(0,p.translate)("Show")),c.default.createElement("span",{value:"hide"},(0,p.translate)("Hide"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("this field if"))),c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(h.default,i({},this.props,{settings:this.props.state,property:"condition_rule",defaultValue:"all",noWrapper:!0}),c.default.createElement("span",{value:"all"},(0,p.translate)("All")),c.default.createElement("span",{value:"any"},(0,p.translate)("Any"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("of the following rules match:"))));this.props.isPayment&&(t=c.default.createElement("div",{className:"fui-visibility-options"},c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Process this plan if"))),c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(h.default,i({},this.props,{settings:this.props.state,property:"condition_rule",defaultValue:"all",noWrapper:!0}),c.default.createElement("span",{value:"all"},(0,p.translate)("All")),c.default.createElement("span",{value:"any"},(0,p.translate)("Any"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("of the following conditions match:")))));var a=c.default.createElement("div",{className:"fui-visibility-group"},this.props.wrappers.length<2&&this.fields.length<2&&_.isEmpty(this.fields)&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active fui-visibility-notice",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You need more than one field to configure visibility conditions. Add more fields!"))))),(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},this.props.isPayment?(0,p.translate)("Conditions"):(0,p.translate)("Rules"))),c.default.createElement("div",{className:"fui-visibility"},c.default.createElement("div",{className:"fui-visibility-empty-message"},(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&c.default.createElement("button",{accessKey:"a",onClick:this.addRule},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),this.props.isPayment?(0,p.translate)("Add conditions"):(0,p.translate)("Add Rule")),c.default.createElement("p",null,!this.props.isPayment&&(0,p.translate)("By default field will always be visible. If you want to hide or show fields based on user input you can add conditions."),this.props.isPayment&&(0,p.translate)("Add conditions for how this plan will be processed based on your form field data.")),!this.props.isPayment&&forminatorData.showBranding&&c.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))));return(_.isUndefined(this.props.state.conditions)||0===this.props.state.conditions.length)&&c.default.createElement(c.default.Fragment,null,a),!_.isUndefined(this.props.state.conditions)&&this.props.state.conditions.length>0&&!_.isEmpty(this.fields)?c.default.createElement("div",{className:"fui-visibility-group"},(this.props.wrappers.length>1||this.fields.length>0)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},this.props.isPayment?(0,p.translate)("Conditions"):(0,p.translate)("Rules"))),c.default.createElement("div",{className:"fui-visibility"},c.default.createElement("div",{className:"fui-visibility-rules"},_.map(this.props.state.conditions,function(t,a){return c.default.createElement(d.default,i({},e.props,{rule:t,key:a,counter:a,removeRule:e.removeRule,updateField:e.updateField,updateRule:e.updateRule,updateValue:e.updateValue,updateInputValue:e.updateInputValue,fields:e.fields}))}))),c.default.createElement("button",{className:"sui-button sui-button-blue",accessKey:"a",onClick:this.addRule},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),this.props.isPayment?(0,p.translate)("Add conditions"):(0,p.translate)("Add Rule"))):c.default.createElement(c.default.Fragment,null,a)}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=_.isUndefined(this.props.customClass)?"sui-form-control":this.props.customClass,r=!_.isUndefined(this.props.disabled)&&this.props.disabled,n=t&&!r,o=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-toggle"},s.default.createElement("input",{type:"checkbox",value:"true",id:"forminator-field-"+this.props.property,className:a,disabled:r?"disabled":"",checked:n?"checked":"",onChange:function(t){e.updateValue(t.target.checked)}}),s.default.createElement("span",{className:"sui-toggle-slider"}),this.props.label&&s.default.createElement(s.default.Fragment,null,s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",this.props.label),s.default.createElement("span",{className:"sui-toggle-label"},this.props.label)),this.props.description&&s.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description)),l="";return this.props.children&&(_.isUndefined(this.props.settings[this.props.property])||this.props.settings[this.props.property])&&(l=s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{tabIndex:"0",className:"sui-toggle-content sui-border-frame","aria-label":this.props.label},this.props.children))),this.props.unWrap?s.default.createElement(s.default.Fragment,null,o,l):this.props.unWrap?void 0:s.default.createElement("div",{className:"sui-form-field"},o,l)}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.state["custom-class"])?"":this.props.state["custom-class"];return s.default.createElement("div",{className:"sui-box-settings-row"},s.default.createElement("div",{className:"sui-box-settings-col-1"},s.default.createElement("span",{className:"sui-settings-label"},(0,u.translate)("Additional CSS Classes")),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("Add classes that will be output on this field's container to aid your theme's default styling."))),s.default.createElement("div",{className:"sui-box-settings-col-2"},s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("E.g. form-field"),className:"sui-form-control",value:t,onChange:function(t){e.props.updateProperty("custom-class",t.target.value)}}),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("These will be output as you see them here."))))}}]),t}(i.Component);t.default=c},,function(e,t,a){"use strict";var r=function(){};e.exports=r},function(e,t,a){"use strict";a.d(t,"a",function(){return i}),a.d(t,"b",function(){return s});var r=a(110),n=a(111),o=a(22),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(e,t,a,n){var i=void 0;"string"==typeof e?(i=Object(o.d)(e),i.state=t):(i=l({},e),void 0===i.pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return a&&(i.key=a),n?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Object(r.a)(i.pathname,n.pathname)):i.pathname=n.pathname:i.pathname||(i.pathname="/"),i},s=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(n.a)(e.state,t.state)}},,function(e,t){e.exports=ReactDOM},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=(function(e){e&&e.__esModule}(i),function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"initialize",value:function(){jQuery(".sui-floating-notices").length||jQuery("main.sui-wrap").prepend('<div class="sui-floating-notices"></div>'),jQuery("#forminator-notification").length?(jQuery("#forminator-notification").remove(),this.initialize()):jQuery(".sui-floating-notices").append('<div role="alert" id="forminator-notification" class="sui-notice" aria-live="assertive"></div>'),this.$notification=jQuery("#forminator-notification")}},{key:"open",value:function(){this.initialize();var e="<p>"+this.props.text+"</p>",t={type:this.props.type||"default",autoclose:{timeout:this.props.time||5e3}};SUI.openNotice("forminator-notification",e,t)}},{key:"close",value:function(){SUI.closeNotice("forminator-notification")}}]),t}(i.Component));t.default=s},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.textEditor=s.default.createRef(),a.updateValue=a.updateValue.bind(a),a.updateEditor=a.updateEditor.bind(a),a.toggleOptions=a.toggleOptions.bind(a),a.state={editorOptionsOpen:!1},a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),setTimeout(function(){e.initEditor()},50)}},{key:"initEditor",value:function(){var e=this;if(_.isUndefined(wp.editor)||"undefined"==typeof tinyMCE)return void setTimeout(function(){e.initEditor()},50);var t={};_.isUndefined(this.props.allowButtonOnclick)||(t.extended_valid_elements="button[onclick|accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|style|tabindex|title|type|value]"),_.isUndefined(this.props.cutomTinymce)||(t.toolbar1=this.props.cutomTinymce),_.isEmpty(t)&&(t=!0),wp.editor.initialize("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),{tinymce:t,quicktags:!0}),this.bindEvents()}},{key:"bindEvents",value:function(){var e=this;if(this.editor=tinyMCE.get("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:"")),null===this.editor)return void setTimeout(function(){e.bindEvents()},50);this.editor.on("keyup",this.updateEditor),this.editor.on("change",this.updateEditor)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateEditor),wp.editor.remove("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:"")),this.$el.unbind().removeData()}},{key:"updateEditor",value:function(){var e=this.editor.getContent();this.updateValue(e)}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"toggleOptions",value:function(){this.state.editorOptionsOpen?this.setState({editorOptionsOpen:!1}):this.setState({editorOptionsOpen:!0})}},{key:"insertContent",value:function(e){if(this.editor.hidden){var t=jQuery(this.textEditor),a=t.prop("selectionStart"),r=t.prop("selectionEnd"),n=t.val();t.val(n.substring(0,a)+"{"+e+"}"+n.substring(r,n.length)),t.trigger("change")}else this.editor.insertContent("{"+e+"}");this.toggleOptions()}},{key:"getDisabledFields",value:function(){var e=["captcha","product","hidden","page-break","postdata","total","upload","stripe","paypal","password"];return!_.isUndefined(this.props.enablePostData)&&this.props.enablePostData&&!_.isUndefined(this.props.enableUpload)&&this.props.enableUpload&&(e=["captcha","product","hidden","page-break","total","stripe","paypal","password"]),e}},{key:"getFields",value:function(){var e=this.getDisabledFields();return(0,u.getFields)(this.props.wrappers,e)}},{key:"getFormData",value:function(){var e=this,t=this.getFields(),a=_.map(t,function(t,a){if(t.required)return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},t.label))}),r=_.isUndefined(this.props.settings.type)?"":this.props.settings.type,n=_.map(t,function(t,a){if(!t.required&&r!==t.field_type)return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},t.label))});return s.default.createElement(s.default.Fragment,null,a&&a.some(function(e){return void 0!==e})&&s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Required Fields"))),s.default.createElement(s.default.Fragment,null,a)),n&&n.some(function(e){return void 0!==e})&&s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Optional Fields"))),s.default.createElement(s.default.Fragment,null,n)))}},{key:"getMiscData",value:function(){var e=this,t=_.isEmpty(this.props.editorOptions)?[]:this.props.editorOptions;return s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Misc Data"))),_.map(t,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))}))}},{key:"getPaymentData",value:function(){var e=this,t=(0,u.getFieldsByType)("paypal",this.props.wrappers),a=(0,u.getFieldsByType)("stripe",this.props.wrappers),r=_.isEmpty(this.props.paymentOptions)?[]:this.props.paymentOptions;if(!_.isEmpty(t)||!_.isEmpty(a))return s.default.createElement(s.default.Fragment,null,this.props.paymentOptions&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Payment Data"))),_.map(r,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))}))}},{key:"getEditorOptions",value:function(){var e=this;if(this.props.hideEditorOptions)return"";var t=this.props.disableMiscData?"":this.getMiscData(),a=this.props.enableFormData?this.getPaymentData():"",r=this.props.enableFormData?this.getFormData():"",n=this.props.mainOptions?this.props.mainOptions:{form_name:(0,u.translate)("Form Name")};return s.default.createElement("ul",{className:this.state.editorOptionsOpen?"sui-active":""},this.props.enableAllFormFields&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_fields")},(0,u.translate)("All Form Fields"))),this.props.enableAllNonFormFields&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_non_empty_fields")},(0,u.translate)("All Non Empty Fields"))),r,s.default.createElement(s.default.Fragment,null,this.props.mainOptionsLabel&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,this.props.mainOptionsLabel)),_.map(n,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))})),t,a)}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=this.getEditorOptions(),r=_.isUndefined(this.props.requiredError)?(0,u.translate)("This field is required!"):this.props.requiredError,n=this.isValid(t)?"":"sui-form-field-error",o=void 0;_.isEmpty(a)||(o=s.default.createElement("div",{className:"sui-editor-options"},s.default.createElement("button",{className:this.state.editorOptionsOpen?"sui-tooltip sui-active":"sui-tooltip","data-tooltip":(0,u.translate)("Add form data"),onClick:this.toggleOptions},s.default.createElement("i",{className:"sui-icon-layout sui-sm","aria-hidden":"true"})),a));var l="";return this.props.label&&(l=s.default.createElement("label",{htmlFor:"forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),className:"sui-label"},this.props.label," ",this.props.isRequired&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),s.default.createElement("div",{className:"sui-form-field "+n},l,this.props.descriptionTop&&s.default.createElement("span",{className:"sui-description",style:{marginBottom:"20px"}},this.props.descriptionTop),s.default.createElement("div",{className:"sui-editor"+(_.isEmpty(a)?"":" sui-editor-with-options")},o,s.default.createElement("textarea",{id:"forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),placeholder:this.props.placeholder,defaultValue:t,onChange:function(t){e.updateValue(t.target.value)},ref:function(t){return e.textEditor=t}})),this.props.isRequired&&!this.isValid(t)&&s.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=(a(1),function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={open:!1},a.toggleState=a.toggleState.bind(a),a}return o(t,e),l(t,[{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"render",value:function(){var e=this,t=this.props.label,a=this.state.open,r="";a&&(r="sui-accordion-item--open");var n=!(!_.isUndefined(this.props.boxedContent)&&""!==this.props.boxedContent)||this.props.boxedContent,o=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",{className:"sui-accordion-item "+r},s.default.createElement("span",{className:"sui-accordion-item-header",onClick:function(){return e.toggleState()}},s.default.createElement("div",{className:"sui-accordion-item-title"},s.default.createElement("span",null,t),s.default.createElement("button",{className:"sui-button-icon sui-accordion-open-indicator",onClick:function(){return e.toggleState()}},s.default.createElement("i",{className:"sui-icon-chevron-down","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},!1===this.state.open?"Open":"Close")))),s.default.createElement("div",{className:"sui-accordion-item-body"},!1===n?a&&o:s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},a&&o),n)))}}]),t}(i.Component));t.default=u},,function(e,t,a){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.a=r},function(e,t){var a;a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(a=window)}e.exports=a},function(e,t,a){"use strict";var r=a(28),n=a.n(r),o=function(){var e=null,t=function(t){return n()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},a=function(t,a,r,o){if(null!=e){var l="function"==typeof e?e(t,a):e;"string"==typeof l?"function"==typeof r?r(l,o):(n()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==l)}else o(!0)},r=[];return{setPrompt:t,confirmTransitionTo:a,appendListener:function(e){var t=!0,a=function(){t&&e.apply(void 0,arguments)};return r.push(a),function(){t=!1,r=r.filter(function(e){return e!==a})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];r.forEach(function(e){return e.apply(void 0,t)})}}};t.a=o},function(e,t,a){"use strict";var r=a(40);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(14),u=a.n(s),c=a(0),p=a.n(c),f=a(7),d=a.n(f),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},h=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.state={match:o.computeMatch(o.props.history.location.pathname)},l=a,n(o,l)}return o(t,e),t.prototype.getChildContext=function(){return{router:m({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,a=t.children,r=t.history;u()(null==a||1===p.a.Children.count(a),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){i()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?p.a.Children.only(e):null},t}(p.a.Component);h.propTypes={history:d.a.object.isRequired,children:d.a.node},h.contextTypes={router:d.a.object},h.childContextTypes={router:d.a.object.isRequired},t.a=h},function(e,t,a){"use strict";var r=a(62),n=a.n(r),o={},l=0,i=function(e,t){var a=""+t.end+t.strict+t.sensitive,r=o[a]||(o[a]={});if(r[e])return r[e];var i=[],s=n()(e,i,t),u={re:s,keys:i};return l<1e4&&(r[e]=u,l++),u},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2];"string"==typeof t&&(t={path:t});var r=t,n=r.path,o=r.exact,l=void 0!==o&&o,s=r.strict,u=void 0!==s&&s,c=r.sensitive,p=void 0!==c&&c;if(null==n)return a;var f=i(n,{end:l,strict:u,sensitive:p}),d=f.re,m=f.keys,h=d.exec(e);if(!h)return null;var b=h[0],y=h.slice(1),v=e===b;return l&&!v?null:{path:n,url:"/"===n&&""===b?"/":b,isExact:v,params:m.reduce(function(e,t,a){return e[t.name]=y[a],e},{})}};t.a=s},function(e,t,a){"use strict";function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var a=[];if("string"==typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)a.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var n=e.charCodeAt(r),o=n>>8,l=255&n;o?a.push(o,l):a.push(l)}else for(r=0;r<e.length;r++)a[r]=0|e[r];return a}function n(e){for(var t="",a=0;a<e.length;a++)t+=i(e[a].toString(16));return t}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e,t){for(var a="",r=0;r<e.length;r++){var n=e[r];"little"===t&&(n=o(n)),a+=s(n.toString(16))}return a}function i(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function u(e,t,a,r){var n=a-t;N(n%4==0);for(var o=new Array(n/4),l=0,i=t;l<o.length;l++,i+=4){var s;s="big"===r?e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]:e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i],o[l]=s>>>0}return o}function c(e,t){for(var a=new Array(4*e.length),r=0,n=0;r<e.length;r++,n+=4){var o=e[r];"big"===t?(a[n]=o>>>24,a[n+1]=o>>>16&255,a[n+2]=o>>>8&255,a[n+3]=255&o):(a[n+3]=o>>>24,a[n+2]=o>>>16&255,a[n+1]=o>>>8&255,a[n]=255&o)}return a}function p(e,t){return e>>>t|e<<32-t}function f(e,t){return e<<t|e>>>32-t}function d(e,t){return e+t>>>0}function m(e,t,a){return e+t+a>>>0}function h(e,t,a,r){return e+t+a+r>>>0}function b(e,t,a,r,n){return e+t+a+r+n>>>0}function y(e,t,a,r){var n=e[t],o=e[t+1],l=r+o>>>0,i=(l<r?1:0)+a+n;e[t]=i>>>0,e[t+1]=l}function v(e,t,a,r){return(t+r>>>0<t?1:0)+e+a>>>0}function g(e,t,a,r){return t+r>>>0}function E(e,t,a,r,n,o,l,i){var s=0,u=t;return u=u+r>>>0,s+=u<t?1:0,u=u+o>>>0,s+=u<o?1:0,u=u+i>>>0,s+=u<i?1:0,e+a+n+l+s>>>0}function _(e,t,a,r,n,o,l,i){return t+r+o+i>>>0}function w(e,t,a,r,n,o,l,i,s,u){var c=0,p=t;return p=p+r>>>0,c+=p<t?1:0,p=p+o>>>0,c+=p<o?1:0,p=p+i>>>0,c+=p<i?1:0,p=p+u>>>0,c+=p<u?1:0,e+a+n+l+s+c>>>0}function O(e,t,a,r,n,o,l,i,s,u){return t+r+o+i+u>>>0}function P(e,t,a){return(t<<32-a|e>>>a)>>>0}function j(e,t,a){return(e<<32-a|t>>>a)>>>0}function k(e,t,a){return e>>>a}function x(e,t,a){return(e<<32-a|t>>>a)>>>0}var N=a(65),C=a(66);t.inherits=C,t.toArray=r,t.toHex=n,t.htonl=o,t.toHex32=l,t.zero2=i,t.zero8=s,t.join32=u,t.split32=c,t.rotr32=p,t.rotl32=f,t.sum32=d,t.sum32_3=m,t.sum32_4=h,t.sum32_5=b,t.sum64=y,t.sum64_hi=v,t.sum64_lo=g,t.sum64_4_hi=E,t.sum64_4_lo=_,t.sum64_5_hi=w,t.sum64_5_lo=O,t.rotr64_hi=P,t.rotr64_lo=j,t.shr64_hi=k,t.shr64_lo=x},function(e,t,a){"use strict";(function(t){function r(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var n=a(11),o=a(154),l={"Content-Type":"application/x-www-form-urlencoded"},i={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=a(73):void 0!==t&&(e=a(73)),e}(),transformRequest:[function(e,t){return o(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)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};i.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){i.headers[e]={}}),n.forEach(["post","put","patch"],function(e){i.headers[e]=n.merge(l)}),e.exports=i}).call(t,a(47))},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(15),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=_.isUndefined(a.props.prefix)?"":a.props.prefix+"_";return a.requiredProp=r+"required",a.requiredValProp=r+"required_message",a.requiredCValProp=r+"required_confirm_message",a}return l(t,e),s(t,[{key:"toggleValue",value:function(e){this.props.updateProperty(this.requiredProp,e)}},{key:"render",value:function(){var e=this,t=!_.isUndefined(this.props.state[this.requiredProp])&&this.props.state[this.requiredProp],a=_.isUndefined(this.props.state[this.requiredValProp])?"":this.props.state[this.requiredValProp],r=_.isUndefined(this.props.state[this.requiredCValProp])?"":this.props.state[this.requiredCValProp],n=_.isUndefined(this.props.state.type)?"":this.props.state.type,o="password"===n&&!_.isUndefined(this.props.state["confirm-password"])&&this.props.state["confirm-password"];return c.default.createElement(d.default,{label:(0,p.translate)("Require"),labelDark:!0,description:(0,p.translate)("Force users to fill out this field, otherwise it will be optional."),descriptionSpacing:20,sidebar:!1},c.default.createElement("div",{className:"sui-tabs sui-side-tabs",style:{marginTop:"10px"}},c.default.createElement("div",{className:"sui-tabs-menu"},c.default.createElement("div",{className:"sui-tab-item"+(t?"":" active"),onClick:this.toggleValue.bind(this,!1)},(0,p.translate)("Optional")),c.default.createElement("div",{className:"sui-tab-item"+(t?" active":""),onClick:this.toggleValue.bind(this,!0)},(0,p.translate)("Required"))),c.default.createElement("div",{className:"sui-tabs-content"},c.default.createElement("div",{className:"sui-tab-boxed"+(t?" active":"")},c.default.createElement("div",i({className:"sui-form-field"},!o&&!(t&&"select"===n)&&{style:{marginBottom:0}}),"password"===n&&c.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,p.translate)("Password error message")),"password"!==n&&c.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,p.translate)("Error message")),c.default.createElement("input",{type:"text",value:a,placeholder:(0,p.translate)("Enter required message"),id:"forminator-field-name-error-msg",className:"sui-form-control",onChange:function(t){e.props.updateProperty(e.requiredValProp,t.target.value)}})),o&&c.default.createElement("div",i({className:"sui-form-field"},!(t&&"select"===n)&&{style:{marginBottom:0}}),c.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,p.translate)("Confirm Password error message")),c.default.createElement("input",{type:"text",value:r,placeholder:(0,p.translate)("Enter confirm password message"),id:"forminator-field-name-error-msg",className:"sui-form-control",onChange:function(t){e.props.updateProperty(e.requiredCValProp,t.target.value)}})),c.default.createElement("div",i({role:"alert",className:"sui-notice sui-notice-warning "+(t&&"select"===n?" sui-active":""),"aria-live":"assertive"},t&&"select"===n&&{style:{display:"block"}}),t&&"select"===n&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Options without a value will be treated as empty options")))))))))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){r(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function l(e,t){if(null==e)return{};var a,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}function i(e,t){if(null==e)return{};var a,r,n=l(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"Button",function(){return c});var s=a(0),u=a.n(s),c=function(e){var t=e.label,a=e.icon,r=e.design,n=void 0===r?"solid":r,l=e.color,s=e.className,c=e.loading,p=i(e,["label","icon","design","color","className","loading"]),f=u.a.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),d=u.a.createElement(u.a.Fragment,null,a&&""!==a&&u.a.createElement("span",{className:"sui-icon-"+a,"aria-hidden":"true"}),t);switch(s="sui-button".concat(s?" "+s:""),l){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":s+=" sui-button-"+l;break;case"gray":default:s+=""}switch(n){case"ghost":case"outlined":s+=" sui-button-"+n;break;case"solid":default:s+=""}c&&(s+=" sui-button-onload");var m="button";return p.href?m="a":p.htmlFor&&(m="label"),u.a.createElement(m,o({className:s,disabled:p.disabled||c},p),c?f:d)}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldId)?this.props.property:this.props.fieldId,r=!(_.isUndefined(this.props.disabled)||!this.props.disabled),n="";return this.props.itemClass&&""!==this.props.itemClass&&(n=" "+this.props.itemClass),s.default.createElement("label",{htmlFor:"forminator-field-"+a,className:"sui-checkbox"+n},s.default.createElement("input",{type:"checkbox",id:"forminator-field-"+a,value:"true",checked:t?"checked":"",disabled:r,onChange:function(t){e.updateValue(t.target.checked)}}),s.default.createElement("span",{"aria-hidden":"true"}),this.props.label&&s.default.createElement("span",null,this.props.label,!_.isUndefined(this.props.tooltip)&&""!==this.props.tooltip&&s.default.createElement("span",{className:"sui-tooltip sui-tooltip-constrained",style:{marginLeft:10,verticalAlign:"middle","--tooltip-width":"165px"},"data-tooltip":this.props.tooltip},s.default.createElement("span",{className:"sui-icon-info","aria-hidden":"true",style:{pointerEvents:"none"}}))))}}]),t}(i.Component);t.default=u},function(e,t){function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function n(e){if(c===setTimeout)return setTimeout(e,0);if((c===a||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function l(){h&&d&&(h=!1,d.length?m=d.concat(m):b=-1,m.length&&i())}function i(){if(!h){var e=n(l);h=!0;for(var t=m.length;t;){for(d=m,m=[];++b<t;)d&&d[b].run();b=-1,t=m.length}d=null,h=!1,o(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}var c,p,f=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:a}catch(e){c=a}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var d,m=[],h=!1,b=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];m.push(new s(e,t)),1!==m.length||h||n(i)},s.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},,function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.updateValue=a.updateValue.bind(a),a.clearValue=a.clearValue.bind(a);var o=_.isUndefined(a.props.defaultValue)?"":a.props.defaultValue,l=_.isUndefined(a.props.settings[a.props.property])?o:a.props.settings[a.props.property];return a.state={value:l},a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),SUI.select.initVars(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",function(t){var a=e.state.value+" "+t.target.value;e.updateValue(a)}),this.clearValue(this.$el)}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e),"function"==typeof this.props.updateValue&&this.props.updateValue(this.props.counter,e),this.setState({value:e})}},{key:"clearValue",value:function(e){e.val(null).trigger("change")}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.defaultValue)?"":this.props.defaultValue,a=_.isUndefined(this.props.settings[this.props.property])?t:this.props.settings[this.props.property],r=_.isUndefined(this.props.requiredError)?(0,u.translate)("This field is required!"):this.props.requiredError,n=this.isValid(a)?"":" sui-form-field-error",o=_.isUndefined(this.props.customClass)?"":" "+this.props.customClass,l="",i="input",c="";"textarea"===this.props.type&&(i="textarea",c="textarea-type"),this.props.label&&(l=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label," ",(this.props.isRequired||this.props.required)&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var p=s.default.createElement(s.default.Fragment,null,"input"===i&&s.default.createElement("input",{type:"text",value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)}}),"textarea"===i&&s.default.createElement("textarea",{value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)},rows:this.props.rows}));return s.default.createElement("div",{className:"sui-form-field"+o+n},l,s.default.createElement("div",{className:"sui-insert-variables "+c},p,s.default.createElement("select",{className:"sui-variables",ref:function(t){return e.el=t}},this.props.children.length<=0&&s.default.createElement("optgroup",{label:(0,u.translate)("No available options")}),this.props.children),this.props.isRequired&&!this.isValid(a)&&s.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description)))}}]),t}(i.Component);t.default=c},function(e,t,a){e.exports=a(151)},function(e,t,a){"use strict";var r=a(169),n=a(170),o=a(78);e.exports={formats:o,parse:n,stringify:r}},function(e,t,a){"use strict";a.d(t,"b",function(){return o}),a.d(t,"a",function(){return l});var r=a(7),n=a.n(r),o=n.a.shape({trySubscribe:n.a.func.isRequired,tryUnsubscribe:n.a.func.isRequired,notifyNestedSubs:n.a.func.isRequired,isSubscribed:n.a.func.isRequired}),l=n.a.shape({subscribe:n.a.func.isRequired,dispatch:n.a.func.isRequired,getState:n.a.func.isRequired})},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function i(){}function s(e,t){var a={run:function(r){try{var n=e(t.getState(),r);(n!==a.props||a.error)&&(a.shouldComponentUpdate=!0,a.props=n,a.error=null)}catch(e){a.shouldComponentUpdate=!0,a.error=e}}};return a}function u(e){var t,a,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.getDisplayName,f=void 0===c?function(e){return"ConnectAdvanced("+e+")"}:c,E=u.methodName,_=void 0===E?"connectAdvanced":E,w=u.renderCountProp,O=void 0===w?void 0:w,P=u.shouldHandleStateChanges,j=void 0===P||P,k=u.storeKey,x=void 0===k?"store":k,N=u.withRef,C=void 0!==N&&N,S=l(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),T=x+"Subscription",F=v++,D=(t={},t[x]=b.a,t[T]=b.b,t),M=(a={},a[T]=b.b,a);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+_+". Instead received "+JSON.stringify(t));var a=t.displayName||t.name||"Component",l=f(a),u=y({},S,{getDisplayName:f,methodName:_,renderCountProp:O,shouldHandleStateChanges:j,storeKey:x,withRef:C,displayName:l,wrappedComponentName:a,WrappedComponent:t}),c=function(a){function c(e,t){r(this,c);var o=n(this,a.call(this,e,t));return o.version=F,o.state={},o.renderCount=0,o.store=e[x]||t[x],o.propsMode=Boolean(e[x]),o.setWrappedInstance=o.setWrappedInstance.bind(o),d()(o.store,'Could not find "'+x+'" in either the context or props of "'+l+'". Either wrap the root component in a <Provider>, or explicitly pass "'+x+'" as a prop to "'+l+'".'),o.initSelector(),o.initSubscription(),o}return o(c,a),c.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[T]=t||this.context[T],e},c.prototype.componentDidMount=function(){j&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},c.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=i,this.store=null,this.selector.run=i,this.selector.shouldComponentUpdate=!1},c.prototype.getWrappedInstance=function(){return d()(C,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+_+"() call."),this.wrappedInstance},c.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},c.prototype.initSelector=function(){var t=e(this.store.dispatch,u);this.selector=s(t,this.store),this.selector.run(this.props)},c.prototype.initSubscription=function(){if(j){var e=(this.propsMode?this.props:this.context)[T];this.subscription=new h.a(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},c.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.prototype.addExtraProps=function(e){if(!(C||O||this.propsMode&&this.subscription))return e;var t=y({},e);return C&&(t.ref=this.setWrappedInstance),O&&(t[O]=this.renderCount++),this.propsMode&&this.subscription&&(t[T]=this.subscription),t},c.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(m.createElement)(t,this.addExtraProps(e.props))},c}(m.Component);return c.WrappedComponent=t,c.displayName=l,c.childContextTypes=M,c.contextTypes=D,c.propTypes=D,p()(c,t)}}t.a=u;var c=a(54),p=a.n(c),f=a(14),d=a.n(f),m=a(0),h=(a.n(m),a(88)),b=a(52),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},v=0,g={}},function(e,t,a){"use strict";function r(e,t,a){if("string"!=typeof t){if(p){var f=c(t);f&&f!==p&&r(e,f,a)}var d=i(t);s&&(d=d.concat(s(t)));for(var m=0;m<d.length;++m){var h=d[m];if(!(n[h]||o[h]||a&&a[h])){var b=u(t,h);try{l(e,h,b)}catch(e){}}}return e}return e}var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l=Object.defineProperty,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,p=c&&c(Object);e.exports=r},function(e,t,a){"use strict";function r(e){return function(t,a){function r(){return n}var n=e(t,a);return r.dependsOnOwnProps=!1,r}}function n(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function o(e,t){return function(t,a){var r=(a.displayName,function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)});return r.dependsOnOwnProps=!0,r.mapToProps=function(t,a){r.mapToProps=e,r.dependsOnOwnProps=n(e);var o=r(t,a);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=n(o),o=r(t,a)),o},r}}t.a=r,t.b=o;a(56)},function(e,t,a){"use strict";a(95),a(36)},function(e,t,a){"use strict";var r=a(97),n=r.a.Symbol;t.a=n},function(e,t,a){"use strict";a.d(t,"b",function(){return r}),a.d(t,"a",function(){return n}),a.d(t,"e",function(){return o}),a.d(t,"c",function(){return l}),a.d(t,"g",function(){return i}),a.d(t,"h",function(){return s}),a.d(t,"f",function(){return u}),a.d(t,"d",function(){return c});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),n=function(e,t,a){return e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent("on"+t,a)},o=function(e,t,a){return e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent("on"+t,a)},l=function(e,t){return t(window.confirm(e))},i=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},s=function(){return-1===window.navigator.userAgent.indexOf("Trident")},u=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},c=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=a(0),s=a.n(i),u=a(7),c=a.n(u),p=a(14),f=a.n(p),d=a(19),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},h=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},b=function(e){function t(){var a,r,l;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=o(this,e.call.apply(e,[this].concat(s))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!h(e)){e.preventDefault();var t=r.context.router.history,a=r.props,n=a.replace,o=a.to;n?t.replace(o):t.push(o)}},l=a,o(r,l)}return l(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),a=e.innerRef,n=r(e,["replace","to","innerRef"]);f()(this.context.router,"You should not use <Link> outside a <Router>"),f()(void 0!==t,'You must specify the "to" property');var o=this.context.router.history,l="string"==typeof t?Object(d.c)(t,null,null,o.location):t,i=o.createHref(l);return s.a.createElement("a",m({},n,{onClick:this.handleClick,href:i,ref:a}))},t}(s.a.Component);b.propTypes={onClick:c.a.func,target:c.a.string,replace:c.a.bool,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired,innerRef:c.a.oneOfType([c.a.string,c.a.func])},b.defaultProps={replace:!1},b.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired,createHref:c.a.func.isRequired}).isRequired}).isRequired},t.a=b},function(e,t,a){"use strict";var r=a(61);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(14),u=a.n(s),c=a(0),p=a.n(c),f=a(7),d=a.n(f),m=a(41),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},b=function(e){return 0===p.a.Children.count(e)},y=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.state={match:o.computeMatch(o.props,o.context.router)},l=a,n(o,l)}return o(t,e),t.prototype.getChildContext=function(){return{router:h({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var a=e.computedMatch,r=e.location,n=e.path,o=e.strict,l=e.exact,i=e.sensitive;if(a)return a;u()(t,"You should not use <Route> or withRouter() outside a <Router>");var s=t.route,c=(r||s.location).pathname;return Object(m.a)(c,{path:n,strict:o,exact:l,sensitive:i},s.match)},t.prototype.componentWillMount=function(){i()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),i()(!(this.props.component&&this.props.children&&!b(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),i()(!(this.props.render&&this.props.children&&!b(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){i()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),i()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,a=t.children,r=t.component,n=t.render,o=this.context.router,l=o.history,i=o.route,s=o.staticContext,u=this.props.location||i.location,c={match:e,location:u,history:l,staticContext:s};return r?e?p.a.createElement(r,c):null:n?e?n(c):null:"function"==typeof a?a(c):a&&!b(a)?p.a.Children.only(a):null},t}(p.a.Component);y.propTypes={computedMatch:d.a.object,path:d.a.string,exact:d.a.bool,strict:d.a.bool,sensitive:d.a.bool,component:d.a.func,render:d.a.func,children:d.a.oneOfType([d.a.func,d.a.node]),location:d.a.object},y.contextTypes={router:d.a.shape({history:d.a.object.isRequired,route:d.a.object.isRequired,staticContext:d.a.object})},y.childContextTypes={router:d.a.object.isRequired},t.a=y},function(e,t,a){function r(e,t){for(var a,r=[],n=0,o=0,l="",i=t&&t.delimiter||"/";null!=(a=v.exec(e));){var c=a[0],p=a[1],f=a.index;if(l+=e.slice(o,f),o=f+c.length,p)l+=p[1];else{var d=e[o],m=a[2],h=a[3],b=a[4],y=a[5],g=a[6],E=a[7];l&&(r.push(l),l="");var _=null!=m&&null!=d&&d!==m,w="+"===g||"*"===g,O="?"===g||"*"===g,P=a[2]||i,j=b||y;r.push({name:h||n++,prefix:m||"",delimiter:P,optional:O,repeat:w,partial:_,asterisk:!!E,pattern:j?u(j):E?".*":"[^"+s(P)+"]+?"})}}return o<e.length&&(l+=e.substr(o)),l&&r.push(l),r}function n(e,t){return i(r(e,t))}function o(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function l(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function i(e){for(var t=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(t[a]=new RegExp("^(?:"+e[a].pattern+")$"));return function(a,r){for(var n="",i=a||{},s=r||{},u=s.pretty?o:encodeURIComponent,c=0;c<e.length;c++){var p=e[c];if("string"!=typeof p){var f,d=i[p.name];if(null==d){if(p.optional){p.partial&&(n+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(y(d)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var m=0;m<d.length;m++){if(f=u(d[m]),!t[c].test(f))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(f)+"`");n+=(0===m?p.prefix:p.delimiter)+f}}else{if(f=p.asterisk?l(d):u(d),!t[c].test(f))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+f+'"');n+=p.prefix+f}}else n+=p}return n}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function f(e,t){var a=e.source.match(/\((?!\?)/g);if(a)for(var r=0;r<a.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}function d(e,t,a){for(var r=[],n=0;n<e.length;n++)r.push(b(e[n],t,a).source);return c(new RegExp("(?:"+r.join("|")+")",p(a)),t)}function m(e,t,a){return h(r(e,a),t,a)}function h(e,t,a){y(t)||(a=t||a,t=[]),a=a||{};for(var r=a.strict,n=!1!==a.end,o="",l=0;l<e.length;l++){var i=e[l];if("string"==typeof i)o+=s(i);else{var u=s(i.prefix),f="(?:"+i.pattern+")";t.push(i),i.repeat&&(f+="(?:"+u+f+")*"),f=i.optional?i.partial?u+"("+f+")?":"(?:"+u+"("+f+"))?":u+"("+f+")",o+=f}}var d=s(a.delimiter||"/"),m=o.slice(-d.length)===d;return r||(o=(m?o.slice(0,-d.length):o)+"(?:"+d+"(?=$))?"),o+=n?"$":r&&m?"":"(?="+d+"|$)",c(new RegExp("^"+o,p(a)),t)}function b(e,t,a){return y(t)||(a=t||a,t=[]),a=a||{},e instanceof RegExp?f(e,t):y(e)?d(e,t,a):m(e,t,a)}var y=a(118);e.exports=b,e.exports.parse=r,e.exports.compile=n,e.exports.tokensToFunction=i,e.exports.tokensToRegExp=h;var v=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(e,t,a){"use strict";var r=a(62),n=a.n(r),o={},l=0,i=function(e){var t=e,a=o[t]||(o[t]={});if(a[e])return a[e];var r=n.a.compile(e);return l<1e4&&(a[e]=r,l++),r},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:i(e)(t,{pretty:!0})};t.a=s},function(e,t,a){var r=a(132),n=new r;e.exports={numberFormat:n.numberFormat.bind(n),translate:n.translate.bind(n),configure:n.configure.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),getLocaleSlug:n.getLocaleSlug.bind(n),addTranslations:n.addTranslations.bind(n),reRenderTranslations:n.reRenderTranslations.bind(n),registerComponentUpdateHook:n.registerComponentUpdateHook.bind(n),registerTranslateHook:n.registerTranslateHook.bind(n),state:n.state,stateObserver:n.stateObserver,on:n.stateObserver.on.bind(n.stateObserver),off:n.stateObserver.removeListener.bind(n.stateObserver),emit:n.stateObserver.emit.bind(n.stateObserver),localize:a(146)(n),$this:n,I18N:r}},function(e,t){function a(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=a,a.equal=function(e,t,a){if(e!=t)throw new Error(a||"Assertion failed: "+e+" != "+t)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}},function(e,t){function a(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function l(e){return void 0===e}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0,a.defaultMaxListeners=10,a.prototype.setMaxListeners=function(e){if(!n(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},a.prototype.emit=function(e){var t,a,n,i,s,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(a=this._events[e],l(a))return!1;if(r(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),a.apply(this,i)}else if(o(a))for(i=Array.prototype.slice.call(arguments,1),u=a.slice(),n=u.length,s=0;s<n;s++)u[s].apply(this,i);return!0},a.prototype.addListener=function(e,t){var n;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(n=l(this._maxListeners)?a.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},a.prototype.on=a.prototype.addListener,a.prototype.once=function(e,t){function a(){this.removeListener(e,a),n||(n=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var n=!1;return a.listener=t,this.on(e,a),this},a.prototype.removeListener=function(e,t){var a,n,l,i;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=this._events[e],l=a.length,n=-1,a===t||r(a.listener)&&a.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(a)){for(i=l;i-- >0;)if(a[i]===t||a[i].listener&&a[i].listener===t){n=i;break}if(n<0)return this;1===a.length?(a.length=0,delete this._events[e]):a.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},a.prototype.removeAllListeners=function(e){var t,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(a=this._events[e],r(a))this.removeListener(e,a);else if(a)for(;a.length;)this.removeListener(e,a[a.length-1]);return delete this._events[e],this},a.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},a.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},a.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,a){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,a){"use strict";function r(e,t,a,r,o,l,i,s){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[a,r,o,l,i,s],p=0;u=new Error(t.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var n=function(e){};e.exports=r},function(e,t){function a(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function r(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}function n(e,t){var a=D(e)||d(e)?r(e.length,String):[],n=a.length,o=!!n;for(var l in e)!t&&!x.call(e,l)||o&&("length"==l||u(l,n))||a.push(l);return a}function o(e,t,a){var r=e[t];x.call(e,t)&&f(r,a)&&(void 0!==a||t in e)||(e[t]=a)}function l(e){if(!p(e))return S(e);var t=[];for(var a in Object(e))x.call(e,a)&&"constructor"!=a&&t.push(a);return t}function i(e,t){return t=T(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,o=T(r.length-t,0),l=Array(o);++n<o;)l[n]=r[t+n];n=-1;for(var i=Array(t+1);++n<t;)i[n]=r[n];return i[t]=l,a(e,this,i)}}function s(e,t,a,r){a||(a={});for(var n=-1,l=t.length;++n<l;){var i=t[n],s=r?r(a[i],e[i],i,a,e):void 0;o(a,i,void 0===s?e[i]:s)}return a}function u(e,t){return!!(t=null==t?_:t)&&("number"==typeof e||j.test(e))&&e>-1&&e%1==0&&e<t}function c(e,t,a){if(!v(a))return!1;var r=typeof t;return!!("number"==r?m(a)&&u(t,a.length):"string"==r&&t in a)&&f(a[t],e)}function p(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||k)}function f(e,t){return e===t||e!==e&&t!==t}function d(e){return h(e)&&x.call(e,"callee")&&(!C.call(e,"callee")||N.call(e)==w)}function m(e){return null!=e&&y(e.length)&&!b(e)}function h(e){return g(e)&&m(e)}function b(e){var t=v(e)?N.call(e):"";return t==O||t==P}function y(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=_}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){return!!e&&"object"==typeof e}function E(e){return m(e)?n(e):l(e)}var _=9007199254740991,w="[object Arguments]",O="[object Function]",P="[object GeneratorFunction]",j=/^(?:0|[1-9]\d*)$/,k=Object.prototype,x=k.hasOwnProperty,N=k.toString,C=k.propertyIsEnumerable,S=function(e,t){return function(a){return e(t(a))}}(Object.keys,Object),T=Math.max,F=!C.call({valueOf:1},"valueOf"),D=Array.isArray,M=function(e){return i(function(t,a){var r=-1,n=a.length,o=n>1?a[n-1]:void 0,l=n>2?a[2]:void 0;for(o=e.length>3&&"function"==typeof o?(n--,o):void 0,l&&c(a[0],a[1],l)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var i=a[r];i&&e(t,i,r,o)}return t})}(function(e,t){if(F||p(t)||m(t))return void s(t,E(t),e);for(var a in t)x.call(t,a)&&o(e,a,t[a])});e.exports=M},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.showModal=function(e,t){return function(a){a({type:"SHOW_MODAL",modalProps:e,modalType:t})}},t.hideModal=function(){return function(e){e({type:"HIDE_MODAL"})}}},function(e,t,a){"use strict";e.exports=function(e,t){return function(){for(var a=new Array(arguments.length),r=0;r<a.length;r++)a[r]=arguments[r];return e.apply(t,a)}}},function(e,t,a){"use strict";var r=a(11),n=a(155),o=a(157),l=a(158),i=a(159),s=a(74),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||a(160);e.exports=function(e){return new Promise(function(t,c){var p=e.data,f=e.headers;r.isFormData(p)&&delete f["Content-Type"];var d=new XMLHttpRequest,m="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||i(e.url)||(d=new window.XDomainRequest,m="onload",h=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var b=e.auth.username||"",y=e.auth.password||"";f.Authorization="Basic "+u(b+":"+y)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[m]=function(){if(d&&(4===d.readyState||h)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var a="getAllResponseHeaders"in d?l(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,o={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:a,config:e,request:d};n(t,c,o),d=null}},d.onerror=function(){c(s("Network Error",e,null,d)),d=null},d.ontimeout=function(){c(s("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=a(161),g=(e.withCredentials||i(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(f,function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),c(e),d=null)}),void 0===p&&(p=null),d.send(p)})}},function(e,t,a){"use strict";var r=a(156);e.exports=function(e,t,a,n,o){var l=new Error(e);return r(l,t,a,n,o)}},function(e,t,a){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,a){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,a){"use strict";var r=Object.prototype.hasOwnProperty,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){for(var t;e.length;){var a=e.pop();if(t=a.obj[a.prop],Array.isArray(t)){for(var r=[],n=0;n<t.length;++n)void 0!==t[n]&&r.push(t[n]);a.obj[a.prop]=r}}return t},l=function(e,t){for(var a=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(a[r]=e[r]);return a},i=function e(t,a,n){if(!a)return t;if("object"!=typeof a){if(Array.isArray(t))t.push(a);else{if("object"!=typeof t)return[t,a];(n.plainObjects||n.allowPrototypes||!r.call(Object.prototype,a))&&(t[a]=!0)}return t}if("object"!=typeof t)return[t].concat(a);var o=t;return Array.isArray(t)&&!Array.isArray(a)&&(o=l(t,n)),Array.isArray(t)&&Array.isArray(a)?(a.forEach(function(a,o){r.call(t,o)?t[o]&&"object"==typeof t[o]?t[o]=e(t[o],a,n):t.push(a):t[o]=a}),t):Object.keys(a).reduce(function(t,o){var l=a[o];return r.call(t,o)?t[o]=e(t[o],l,n):t[o]=l,t},o)},s=function(e,t){return Object.keys(t).reduce(function(e,a){return e[a]=t[a],e},e)},u=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},c=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),a="",r=0;r<t.length;++r){var o=t.charCodeAt(r);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?a+=t.charAt(r):o<128?a+=n[o]:o<2048?a+=n[192|o>>6]+n[128|63&o]:o<55296||o>=57344?a+=n[224|o>>12]+n[128|o>>6&63]+n[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(r)),a+=n[240|o>>18]+n[128|o>>12&63]+n[128|o>>6&63]+n[128|63&o])}return a},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],a=[],r=0;r<t.length;++r)for(var n=t[r],l=n.obj[n.prop],i=Object.keys(l),s=0;s<i.length;++s){var u=i[s],c=l[u];"object"==typeof c&&null!==c&&-1===a.indexOf(c)&&(t.push({obj:l,prop:u}),a.push(c))}return o(t)},f=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},d=function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};e.exports={arrayToObject:l,assign:s,compact:p,decode:u,encode:c,isBuffer:d,isRegExp:f,merge:i}},function(e,t,a){"use strict";var r=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(3),d=r(f),m=a(15),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.prefix)?"":this.props.prefix+"_",t=_.isUndefined(this.props.notice)||""===this.props.notice?(0,p.translate)("{{strong}}Note:{{/strong}} Using WordPress Reserved Terms as query parameters may cause unexpected form behavior. Find the complete list of {{link}}{{icon/}} WordPress Reserved Terms here{{/link}}.",{components:{strong:c.default.createElement("strong",null),link:c.default.createElement("a",{href:"https://codex.wordpress.org/Reserved_Terms",target:"_blank"}),icon:c.default.createElement("span",{className:"sui-icon-open-new-window","aria-hidden":"true"})}}):this.props.notice;return c.default.createElement(h.default,{label:(0,p.translate)("Pre-populate"),labelDark:!0,description:(0,p.translate)("You can pre-populate this field dynamically using the query parameter passed in your form URL. Enter the query parameter key to fetch its value from your form URL below."),descriptionSpacing:20,sidebar:!1},c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Query parameter (optional)"),description:t,placeholder:(0,p.translate)("E.g. query_parameter_key"),property:e+"prefill",inputStyles:{maxWidth:"240px"}})))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"clearImage",value:function(){if("answer_image"===this.props.property){var e=Object.assign({},this.props.answer),t=this.props.property;e[t]="",e[t+"_filename"]="",e[t+"_alt"]="",this.props.actions.builderActions.updateAnswer(e)}else"function"==typeof this.props.updateProperty?(this.props.updateProperty(this.props.property,""),this.props.updateProperty(this.props.property+"_filename",""),this.props.updateProperty(this.props.property+"_alt","")):(this.props.actions.settingsActions.updateSetting(this.props.property,""),this.props.actions.settingsActions.updateSetting(this.props.property+"_filename",""),this.props.actions.settingsActions.updateSetting(this.props.property+"_alt",""))}},{key:"openMedia",value:function(){var e=this,t=wp.media({title:(0,u.translate)("Select image"),button:{text:(0,u.translate)("Select")},multiple:!1}).on("select",function(){var a=void 0,r=t.state().get("selection").first().toJSON();a=_.isUndefined(e.props.imageSize)?r.url:"thumbnail"===e.props.imageSize?r.sizes.thumbnail.url:"medium"===e.props.imageSize?_.isUndefined(r.sizes.medium)?r.sizes.full.url:r.sizes.medium.url:"large"===e.props.imageSize?_.isUndefined(r.sizes.large)?r.sizes.full.url:r.sizes.large.url:r.sizes.full.url,"function"==typeof e.props.updateProperty?(e.props.updateProperty(e.props.property,a),e.props.updateProperty(e.props.property+"_filename",r.filename),e.props.updateProperty(e.props.property+"_alt",r.alt)):(e.props.actions.settingsActions.updateSetting(e.props.property,a),e.props.actions.settingsActions.updateSetting(e.props.property+"_filename",r.filename),e.props.actions.settingsActions.updateSetting(e.props.property+"_alt",r.alt))});t.open()}},{key:"render",value:function(){var e=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],t=_.isEmpty(e)?"":"sui-has_file",a=_.isUndefined(this.props.settings[this.props.property+"_filename"])?e:_.isEmpty(this.props.settings[this.props.property+"_filename"])&&!_.isNull(e)?e.replace(/^.*[\\\/]/,""):this.props.settings[this.props.property+"_filename"],r="";this.props.label&&(r=s.default.createElement("label",{className:"sui-label"},this.props.label));var n="";this.props.description&&(n=s.default.createElement("span",{className:"sui-description"},this.props.description));var o="";if("image"===this.props.type){var l="";e&&(l="url("+e+")"),o=s.default.createElement("div",{className:"sui-upload-image","aria-hidden":"true"},s.default.createElement("div",{className:"sui-image-mask"}),s.default.createElement("div",{role:"button",onClick:this.openMedia.bind(this),className:"sui-image-preview",style:{backgroundImage:l}}))}var i=this.props.fieldClass?" "+this.props.fieldClass:"";return s.default.createElement("div",{className:"sui-form-field"+i},r,s.default.createElement("div",{className:"sui-upload "+t},s.default.createElement("input",{type:"file",value:"",readOnly:"readonly"}),o,s.default.createElement("button",{className:"sui-upload-button",onClick:this.openMedia.bind(this)},s.default.createElement("i",{className:"sui-icon-upload-cloud","aria-hidden":"true"}),"image"===this.props.type?""+(0,u.translate)("Upload image"):""+(0,u.translate)("Upload file")),s.default.createElement("div",{className:"sui-upload-file"},s.default.createElement("span",{title:a},a),s.default.createElement("button",{className:"sui-upload-button--remove",onClick:this.clearImage.bind(this)},s.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},"image"===this.props.type?""+(0,u.translate)("Remove uploaded image"):""+(0,u.translate)("Remove uploaded file"))))),n)}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&amp;")}function n(e){return e.replace(/"/g,"&quot;")}function o(e){return e.replace(/</g,"&lt;")}function l(e){return Object(c.a)(n(r(e)))}function i(e){return o(r(e))}function s(e){return o(e.replace(/&/g,"&amp;"))}function u(e){return!p.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.escapeAmpersand=r,t.escapeQuotationMark=n,t.escapeLessThan=o,t.escapeAttribute=l,t.escapeHTML=i,t.escapeEditableHTML=s,t.isValidAttributeName=u;var c=a(184);const p=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.hasWordFormat=!_.isUndefined(a.props.hasWordFormat)&&a.props.hasWordFormat,a}return o(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el);var t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=this.props.dateFormat?this.props.dateFormat:"d MM yy",r=_.isUndefined(this.props.id)?"forminator-field-"+this.props.property:"forminator-field-"+this.props.id;this.hasWordFormat||this.$el.val(t),this.$el.datepicker({beforeShow:function(t,a){jQuery("#ui-datepicker-div").addClass("sui-calendar"),"forminator-field-date"===e.$el.attr("id")&&("disable"===e.props.state.past_dates?e.$el.datepicker("option","minDate",e.$el.datepicker("getDate")):"enable"===e.props.state.past_dates&&e.$el.datepicker("option","minDate",null))},dateFormat:a,dayNamesMin:forminatorl10n.calendar.day_names_min,monthNames:forminatorl10n.calendar.month_names,onSelect:function(t){e.updateValue(t)}}),this.hasWordFormat&&(this.$el.datepicker("option","altField","#"+r+"-altfield"),this.$el.datepicker("option","altFormat","@"),_.isUndefined(t)||(isNaN(t)&&(t=new Date(t).getTime()),jQuery("#"+r+"-altfield").val(t),this.$el.datepicker("setDate",new Date(parseInt(t))))),this.updateValue=this.updateValue.bind(this)}},{key:"updateValue",value:function(e){this.hasWordFormat&&(e=jQuery(this.$el.datepicker("option","altField")).val()),"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"componentWillUnmount",value:function(){this.$el.datepicker("destroy"),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.customClass)?"sui-form-control":this.props.customClass,a=_.isUndefined(this.props.calendarIcon)?"right":this.props.calendarIcon,r="sui-form-field";_.isUndefined(this.props.fieldClass)||(r+=" "+this.props.fieldClass),this.props.mediumSize&&(r+=" sui-input-md");var n=void 0,o=void 0;this.props.label&&(n=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note))),this.props.canTrash&&(o=u.default.createElement("button",{className:"sui-button-icon"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Remove this date range")))),this.props.canAdd&&(o=u.default.createElement("button",{className:"sui-button-icon"},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Add selected date"))));var i=_.isUndefined(this.props.id)?"forminator-field-"+this.props.property:"forminator-field-"+this.props.id,s=u.default.createElement(u.default.Fragment,null,u.default.createElement("input",l({ref:function(t){return e.el=t},id:i,className:t,placeholder:this.props.placeholder,type:"text",autoComplete:"off"},this.props.onlyRead&&{'readonly="readonly"':""})),this.hasWordFormat&&u.default.createElement("input",{id:i+"-altfield",style:{display:"none"}})),p=u.default.createElement("div",{className:r},n,this.props.noCalendar?s:u.default.createElement("div",{className:"sui-date"},"left"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"}),s,"right"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),u.default.createElement("div",{id:i+"-calendar",className:"sui-date-calendar"}),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description));return this.props.multiDate&&(p=u.default.createElement("div",{className:"sui-multi-date"},u.default.createElement("div",{className:r},n,this.props.noCalendar?s:u.default.createElement("div",{className:"sui-date"},s,u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description)),o)),p}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateSetting=function(e,t){return function(a){window.forminatorChanges.settings=!0,a({type:"UPDATE_SETTING",setting:e,value:t})}},t.updateSettings=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_SETTINGS",settings:e})}},t.resetSettings=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"RESET_SETTINGS",settings:e})}},t.saveBuilder=function(e,t){return function(a){window.forminatorChanges={fields:[],settings:!1,saved:!0},a({type:"UPDATE_SETTING",setting:e,value:t})}}},function(e,t,a){var r=a(364),n="object"==typeof self&&self&&self.Object===Object&&self,o=r||n||Function("return this")();e.exports=o},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",a=arguments[1],l=a||t+"Subscription",s=function(e){function a(o,l){r(this,a);var i=n(this,e.call(this,o,l));return i[t]=o.store,i}return o(a,e),a.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[l]=null,e},a.prototype.render=function(){return i.Children.only(this.props.children)},a}(i.Component);return s.propTypes={store:c.a.isRequired,children:u.a.element.isRequired},s.childContextTypes=(e={},e[t]=c.a.isRequired,e[l]=c.b,e),s}t.a=l;var i=a(0),s=(a.n(i),a(7)),u=a.n(s),c=a(52);a(36);t.b=l()},function(e,t,a){"use strict";function r(){}var n=a(87);e.exports=function(){function e(e,t,a,r,o,l){if(l!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return a.checkPropTypes=r,a.PropTypes=a,a}},function(e,t,a){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(){var e=[],t=[];return{clear:function(){t=o,e=o},notify:function(){for(var a=e=t,r=0;r<a.length;r++)a[r]()},get:function(){return t},subscribe:function(a){var r=!0;return t===e&&(t=e.slice()),t.push(a),function(){r&&e!==o&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(a),1))}}}}a.d(t,"a",function(){return i});var o=null,l={notify:function(){}},i=function(){function e(t,a,n){r(this,e),this.store=t,this.parentSub=a,this.onStateChange=n,this.unsubscribe=null,this.listeners=l}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=n())},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=l)},e}()},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t,a){for(var r=t.length-1;r>=0;r--){var n=t[r](e);if(n)return n}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+a+" argument when connecting component "+r.wrappedComponentName+".")}}function o(e,t){return e===t}var l=a(53),i=a(90),s=a(91),u=a(104),c=a(105),p=a(106),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,a=void 0===t?l.a:t,d=e.mapStateToPropsFactories,m=void 0===d?u.a:d,h=e.mapDispatchToPropsFactories,b=void 0===h?s.a:h,y=e.mergePropsFactories,v=void 0===y?c.a:y,g=e.selectorFactory,E=void 0===g?p.a:g;return function(e,t,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=s.pure,c=void 0===u||u,p=s.areStatesEqual,d=void 0===p?o:p,h=s.areOwnPropsEqual,y=void 0===h?i.a:h,g=s.areStatePropsEqual,_=void 0===g?i.a:g,w=s.areMergedPropsEqual,O=void 0===w?i.a:w,P=r(s,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),j=n(e,m,"mapStateToProps"),k=n(t,b,"mapDispatchToProps"),x=n(l,v,"mergeProps");return a(E,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:j,initMapDispatchToProps:k,initMergeProps:x,pure:c,areStatesEqual:d,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:O},P))}}()},function(e,t,a){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function n(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(var l=0;l<a.length;l++)if(!o.call(t,a[l])||!r(e[a[l]],t[a[l]]))return!1;return!0}t.a=n;var o=Object.prototype.hasOwnProperty},function(e,t,a){"use strict";function r(e){return"function"==typeof e?Object(i.b)(e,"mapDispatchToProps"):void 0}function n(e){return e?void 0:Object(i.a)(function(e){return{dispatch:e}})}function o(e){return e&&"object"==typeof e?Object(i.a)(function(t){return Object(l.bindActionCreators)(e,t)}):void 0}var l=a(10),i=a(55);t.a=[r,n,o]},function(e,t,a){"use strict";(function(e,r){var n,o=a(94);n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var l=Object(o.a)(n);t.a=l}).call(t,a(37),a(93)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,a){"use strict";function r(e){var t,a=e.Symbol;return"function"==typeof a?a.observable?t=a.observable:(t=a("observable"),a.observable=t):t="@@observable",t}t.a=r},function(e,t,a){"use strict";function r(e){if(!Object(l.a)(e)||Object(n.a)(e)!=i)return!1;var t=Object(o.a)(e);if(null===t)return!0;var a=p.call(t,"constructor")&&t.constructor;return"function"==typeof a&&a instanceof a&&c.call(a)==f}var n=a(96),o=a(101),l=a(103),i="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,p=u.hasOwnProperty,f=c.call(Object);t.a=r},function(e,t,a){"use strict";function r(e){return null==e?void 0===e?s:i:u&&u in Object(e)?Object(o.a)(e):Object(l.a)(e)}var n=a(57),o=a(99),l=a(100),i="[object Null]",s="[object Undefined]",u=n.a?n.a.toStringTag:void 0;t.a=r},function(e,t,a){"use strict";var r=a(98),n="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||n||Function("return this")();t.a=o},function(e,t,a){"use strict";(function(e){var a="object"==typeof e&&e&&e.Object===Object&&e;t.a=a}).call(t,a(37))},function(e,t,a){"use strict";function r(e){var t=l.call(e,s),a=e[s];try{e[s]=void 0;var r=!0}catch(e){}var n=i.call(e);return r&&(t?e[s]=a:delete e[s]),n}var n=a(57),o=Object.prototype,l=o.hasOwnProperty,i=o.toString,s=n.a?n.a.toStringTag:void 0;t.a=r},function(e,t,a){"use strict";function r(e){return o.call(e)}var n=Object.prototype,o=n.toString;t.a=r},function(e,t,a){"use strict";var r=a(102),n=Object(r.a)(Object.getPrototypeOf,Object);t.a=n},function(e,t,a){"use strict";function r(e,t){return function(a){return e(t(a))}}t.a=r},function(e,t,a){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,a){"use strict";function r(e){return"function"==typeof e?Object(o.b)(e,"mapStateToProps"):void 0}function n(e){return e?void 0:Object(o.a)(function(){return{}})}var o=a(55);t.a=[r,n]},function(e,t,a){"use strict";function r(e,t,a){return i({},a,e,t)}function n(e){return function(t,a){var r=(a.displayName,a.pure),n=a.areMergedPropsEqual,o=!1,l=void 0;return function(t,a,i){var s=e(t,a,i);return o?r&&n(s,l)||(l=s):(o=!0,l=s),l}}}function o(e){return"function"==typeof e?n(e):void 0}function l(e){return e?void 0:function(){return r}}var i=(a(56),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e});t.a=[o,l]},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t,a,r){return function(n,o){return a(e(n,o),t(r,o),o)}}function o(e,t,a,r,n){function o(n,o){return m=n,h=o,b=e(m,h),y=t(r,h),v=a(b,y,h),d=!0,v}function l(){return b=e(m,h),t.dependsOnOwnProps&&(y=t(r,h)),v=a(b,y,h)}function i(){return e.dependsOnOwnProps&&(b=e(m,h)),t.dependsOnOwnProps&&(y=t(r,h)),v=a(b,y,h)}function s(){var t=e(m,h),r=!f(t,b);return b=t,r&&(v=a(b,y,h)),v}function u(e,t){var a=!p(t,h),r=!c(e,m);return m=e,h=t,a&&r?l():a?i():r?s():v}var c=n.areStatesEqual,p=n.areOwnPropsEqual,f=n.areStatePropsEqual,d=!1,m=void 0,h=void 0,b=void 0,y=void 0,v=void 0;return function(e,t){return d?u(e,t):o(e,t)}}function l(e,t){var a=t.initMapStateToProps,l=t.initMapDispatchToProps,i=t.initMergeProps,s=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=a(e,s),c=l(e,s),p=i(e,s);return(s.pure?o:n)(u,c,p,e,s)}t.a=l;a(107)},function(e,t,a){"use strict";a(36)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(19),d=a(39),m=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.history=Object(f.a)(o.props),l=a,n(o,l)}return o(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);m.propTypes={basename:p.a.string,forceRefresh:p.a.bool,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=m},function(e,t,a){"use strict";var r=a(28),n=a.n(r),o=a(14),l=a.n(o),i=a(29),s=a(22),u=a(38),c=a(58),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},d=function(){try{return window.history.state||{}}catch(e){return{}}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(c.b,"Browser history needs a DOM");var t=window.history,a=Object(c.g)(),r=!Object(c.h)(),o=e.forceRefresh,m=void 0!==o&&o,h=e.getUserConfirmation,b=void 0===h?c.c:h,y=e.keyLength,v=void 0===y?6:y,g=e.basename?Object(s.g)(Object(s.a)(e.basename)):"",E=function(e){var t=e||{},a=t.key,r=t.state,o=window.location,l=o.pathname,u=o.search,c=o.hash,p=l+u+c;return n()(!g||Object(s.c)(p,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+p+'" to begin with "'+g+'".'),g&&(p=Object(s.e)(p,g)),Object(i.a)(p,r,a)},_=function(){return Math.random().toString(36).substr(2,v)},w=Object(u.a)(),O=function(e){f(q,e),q.length=t.length,w.notifyListeners(q.location,q.action)},P=function(e){Object(c.d)(e)||x(E(e.state))},j=function(){x(E(d()))},k=!1,x=function(e){if(k)k=!1,O();else{w.confirmTransitionTo(e,"POP",b,function(t){t?O({action:"POP",location:e}):N(e)})}},N=function(e){var t=q.location,a=S.indexOf(t.key);-1===a&&(a=0);var r=S.indexOf(e.key);-1===r&&(r=0);var n=a-r;n&&(k=!0,M(n))},C=E(d()),S=[C.key],T=function(e){return g+Object(s.b)(e)},F=function(e,r){n()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(o,"PUSH",b,function(e){if(e){var r=T(o),l=o.key,i=o.state;if(a)if(t.pushState({key:l,state:i},null,r),m)window.location.href=r;else{var s=S.indexOf(q.location.key),u=S.slice(0,-1===s?0:s+1);u.push(o.key),S=u,O({action:"PUSH",location:o})}else n()(void 0===i,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},D=function(e,r){n()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(o,"REPLACE",b,function(e){if(e){var r=T(o),l=o.key,i=o.state;if(a)if(t.replaceState({key:l,state:i},null,r),m)window.location.replace(r);else{var s=S.indexOf(q.location.key);-1!==s&&(S[s]=o.key),O({action:"REPLACE",location:o})}else n()(void 0===i,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},M=function(e){t.go(e)},A=function(){return M(-1)},V=function(){return M(1)},R=0,U=function(e){R+=e,1===R?(Object(c.a)(window,"popstate",P),r&&Object(c.a)(window,"hashchange",j)):0===R&&(Object(c.e)(window,"popstate",P),r&&Object(c.e)(window,"hashchange",j))},I=!1,L=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=w.setPrompt(e);return I||(U(1),I=!0),function(){return I&&(I=!1,U(-1)),t()}},B=function(e){var t=w.appendListener(e);return U(1),function(){U(-1),t()}},q={length:t.length,action:"POP",location:C,createHref:T,push:F,replace:D,go:M,goBack:A,goForward:V,block:L,listen:B};return q};t.a=m},function(e,t,a){"use strict";function r(e){return"/"===e.charAt(0)}function n(e,t){for(var a=t,r=a+1,n=e.length;r<n;a+=1,r+=1)e[a]=e[r];e.pop()}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e&&e.split("/")||[],o=t&&t.split("/")||[],l=e&&r(e),i=t&&r(t),s=l||i;if(e&&r(e)?o=a:a.length&&(o.pop(),o=o.concat(a)),!o.length)return"/";var u=void 0;if(o.length){var c=o[o.length-1];u="."===c||".."===c||""===c}else u=!1;for(var p=0,f=o.length;f>=0;f--){var d=o[f];"."===d?n(o,f):".."===d?(n(o,f),p++):p&&(n(o,f),p--)}if(!s)for(;p--;p)o.unshift("..");!s||""===o[0]||o[0]&&r(o[0])||o.unshift("");var m=o.join("/");return u&&"/"!==m.substr(-1)&&(m+="/"),m}t.a=o},function(e,t,a){"use strict";function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,a){return r(e,t[a])});var a=void 0===e?"undefined":n(e);if(a!==(void 0===t?"undefined":n(t)))return!1;if("object"===a){var o=e.valueOf(),l=t.valueOf();if(o!==e||l!==t)return r(o,l);var i=Object.keys(e),s=Object.keys(t);return i.length===s.length&&i.every(function(a){return r(e[a],t[a])})}return!1}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a=r},function(e,t,a){"use strict";var r=a(28),n=a.n(r),o=a(14),l=a.n(o),i=a(29),s=a(22),u=a(38),c=a(58),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},f={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Object(s.f)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:s.f,decodePath:s.a},slash:{encodePath:s.a,decodePath:s.a}},d=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},m=function(e){return window.location.hash=e},h=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(c.b,"Hash history needs a DOM");var t=window.history,a=Object(c.f)(),r=e.getUserConfirmation,o=void 0===r?c.c:r,b=e.hashType,y=void 0===b?"slash":b,v=e.basename?Object(s.g)(Object(s.a)(e.basename)):"",g=f[y],E=g.encodePath,_=g.decodePath,w=function(){var e=_(d());return n()(!v||Object(s.c)(e,v),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+v+'".'),v&&(e=Object(s.e)(e,v)),Object(i.a)(e)},O=Object(u.a)(),P=function(e){p(z,e),z.length=t.length,O.notifyListeners(z.location,z.action)},j=!1,k=null,x=function(){var e=d(),t=E(e);if(e!==t)h(t);else{var a=w(),r=z.location;if(!j&&Object(i.b)(r,a))return;if(k===Object(s.b)(a))return;k=null,N(a)}},N=function(e){if(j)j=!1,P();else{O.confirmTransitionTo(e,"POP",o,function(t){t?P({action:"POP",location:e}):C(e)})}},C=function(e){var t=z.location,a=D.lastIndexOf(Object(s.b)(t));-1===a&&(a=0);var r=D.lastIndexOf(Object(s.b)(e));-1===r&&(r=0);var n=a-r;n&&(j=!0,R(n))},S=d(),T=E(S);S!==T&&h(T);var F=w(),D=[Object(s.b)(F)],M=function(e){return"#"+E(v+Object(s.b)(e))},A=function(e,t){n()(void 0===t,"Hash history cannot push state; it is ignored");var a=Object(i.a)(e,void 0,void 0,z.location);O.confirmTransitionTo(a,"PUSH",o,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);if(d()!==r){k=t,m(r);var o=D.lastIndexOf(Object(s.b)(z.location)),l=D.slice(0,-1===o?0:o+1);l.push(t),D=l,P({action:"PUSH",location:a})}else n()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),P()}})},V=function(e,t){n()(void 0===t,"Hash history cannot replace state; it is ignored");var a=Object(i.a)(e,void 0,void 0,z.location);O.confirmTransitionTo(a,"REPLACE",o,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);d()!==r&&(k=t,h(r));var n=D.indexOf(Object(s.b)(z.location));-1!==n&&(D[n]=t),P({action:"REPLACE",location:a})}})},R=function(e){n()(a,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},U=function(){return R(-1)},I=function(){return R(1)},L=0,B=function(e){L+=e,1===L?Object(c.a)(window,"hashchange",x):0===L&&Object(c.e)(window,"hashchange",x)},q=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return q||(B(1),q=!0),function(){return q&&(q=!1,B(-1)),t()}},$=function(e){var t=O.appendListener(e);return B(1),function(){B(-1),t()}},z={length:t.length,action:"POP",location:F,createHref:M,push:A,replace:V,go:R,goBack:U,goForward:I,block:W,listen:$};return z};t.a=b},function(e,t,a){"use strict";var r=a(28),n=a.n(r),o=a(22),l=a(29),i=a(38),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},c=function(e,t,a){return Math.min(Math.max(e,t),a)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,a=e.initialEntries,r=void 0===a?["/"]:a,p=e.initialIndex,f=void 0===p?0:p,d=e.keyLength,m=void 0===d?6:d,h=Object(i.a)(),b=function(e){u(C,e),C.length=C.entries.length,h.notifyListeners(C.location,C.action)},y=function(){return Math.random().toString(36).substr(2,m)},v=c(f,0,r.length-1),g=r.map(function(e){return"string"==typeof e?Object(l.a)(e,void 0,y()):Object(l.a)(e,void 0,e.key||y())}),E=o.b,_=function(e,a){n()(!("object"===(void 0===e?"undefined":s(e))&&void 0!==e.state&&void 0!==a),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(l.a)(e,a,y(),C.location);h.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=C.index,a=t+1,n=C.entries.slice(0);n.length>a?n.splice(a,n.length-a,r):n.push(r),b({action:"PUSH",location:r,index:a,entries:n})}})},w=function(e,a){n()(!("object"===(void 0===e?"undefined":s(e))&&void 0!==e.state&&void 0!==a),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(l.a)(e,a,y(),C.location);h.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(C.entries[C.index]=r,b({action:"REPLACE",location:r}))})},O=function(e){var a=c(C.index+e,0,C.entries.length-1),r=C.entries[a];h.confirmTransitionTo(r,"POP",t,function(e){e?b({action:"POP",location:r,index:a}):b()})},P=function(){return O(-1)},j=function(){return O(1)},k=function(e){var t=C.index+e;return t>=0&&t<C.entries.length},x=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return h.setPrompt(e)},N=function(e){return h.appendListener(e)},C={length:g.length,action:"POP",location:g[v],index:v,entries:g,createHref:E,push:_,replace:w,go:O,goBack:P,goForward:j,canGo:k,block:x,listen:N};return C};t.a=p},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(19),d=a(39),m=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.history=Object(f.b)(o.props),l=a,n(o,l)}return o(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);m.propTypes={basename:p.a.string,getUserConfirmation:p.a.func,hashType:p.a.oneOf(["hashbang","noslash","slash"]),children:p.a.node},t.a=m},function(e,t,a){"use strict";var r=a(116);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(19),d=a(40),m=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.history=Object(f.d)(o.props),l=a,n(o,l)}return o(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);m.propTypes={initialEntries:p.a.array,initialIndex:p.a.number,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=m},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}var n=a(0),o=a.n(n),l=a(7),i=a.n(l),s=a(60),u=a(59),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(e){var t=e.to,a=e.exact,n=e.strict,l=e.location,i=e.activeClassName,f=e.className,d=e.activeStyle,m=e.style,h=e.isActive,b=e["aria-current"],y=r(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),v="object"===(void 0===t?"undefined":p(t))?t.pathname:t,g=v&&v.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return o.a.createElement(s.a,{path:g,exact:a,strict:n,location:l,children:function(e){var a=e.location,r=e.match,n=!!(h?h(r,a):r);return o.a.createElement(u.a,c({to:t,className:n?[f,i].filter(function(e){return e}).join(" "):f,style:n?c({},m,d):m,"aria-current":n&&b||null},y))}})};f.propTypes={to:u.a.propTypes.to,exact:i.a.bool,strict:i.a.bool,location:i.a.object,activeClassName:i.a.string,className:i.a.string,activeStyle:i.a.object,style:i.a.object,isActive:i.a.func,"aria-current":i.a.oneOf(["page","step","location","date","time","true"])},f.defaultProps={activeClassName:"active","aria-current":"page"},t.a=f},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,a){"use strict";var r=a(120);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(0),i=a.n(l),s=a(7),u=a.n(s),c=a(14),p=a.n(c),f=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return o(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){p()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(i.a.Component);f.propTypes={when:u.a.bool,message:u.a.oneOfType([u.a.func,u.a.string]).isRequired},f.defaultProps={when:!0},f.contextTypes={router:u.a.shape({history:u.a.shape({block:u.a.func.isRequired}).isRequired}).isRequired},t.a=f},function(e,t,a){"use strict";var r=a(122);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(0),i=a.n(l),s=a(7),u=a.n(s),c=a(17),p=a.n(c),f=a(14),d=a.n(f),m=a(19),h=a(63),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},y=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return o(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=Object(m.c)(e.to),a=Object(m.c)(this.props.to);if(Object(m.f)(t,a))return void p()(!1,"You tried to redirect to the same route you're currently on: \""+a.pathname+a.search+'"');this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,a=e.to;return t?"string"==typeof a?Object(h.a)(a,t.params):b({},a,{pathname:Object(h.a)(a.pathname,t.params)}):a},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,a=this.computeTo(this.props);t?e.push(a):e.replace(a)},t.prototype.render=function(){return null},t}(i.a.Component);y.propTypes={computedMatch:u.a.object,push:u.a.bool,from:u.a.string,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired},y.defaultProps={push:!1},y.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired}).isRequired,staticContext:u.a.object}).isRequired},t.a=y},function(e,t,a){"use strict";var r=a(124);t.a=r.a},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=a(17),s=a.n(i),u=a(14),c=a.n(u),p=a(0),f=a.n(p),d=a(7),m=a.n(d),h=a(19),b=a(40),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},v=function(e){return"/"===e.charAt(0)?e:"/"+e},g=function(e,t){return e?y({},t,{pathname:v(e)+t.pathname}):t},E=function(e,t){if(!e)return t;var a=v(e);return 0!==t.pathname.indexOf(a)?t:y({},t,{pathname:t.pathname.substr(a.length)})},_=function(e){return"string"==typeof e?e:Object(h.e)(e)},w=function(e){return function(){c()(!1,"You cannot %s with <StaticRouter>",e)}},O=function(){},P=function(e){function t(){var a,r,l;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=o(this,e.call.apply(e,[this].concat(s))),r.createHref=function(e){return v(r.props.basename+_(e))},r.handlePush=function(e){var t=r.props,a=t.basename,n=t.context;n.action="PUSH",n.location=g(a,Object(h.c)(e)),n.url=_(n.location)},r.handleReplace=function(e){var t=r.props,a=t.basename,n=t.context;n.action="REPLACE",n.location=g(a,Object(h.c)(e)),n.url=_(n.location)},r.handleListen=function(){return O},r.handleBlock=function(){return O},l=a,o(r,l)}return l(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){s()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,a=(e.context,e.location),n=r(e,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:E(t,Object(h.c)(a)),push:this.handlePush,replace:this.handleReplace,go:w("go"),goBack:w("goBack"),goForward:w("goForward"),listen:this.handleListen,block:this.handleBlock};return f.a.createElement(b.a,y({},n,{history:o}))},t}(f.a.Component);P.propTypes={basename:m.a.string,context:m.a.object.isRequired,location:m.a.oneOfType([m.a.string,m.a.object])},P.defaultProps={basename:"",location:"/"},P.childContextTypes={router:m.a.object.isRequired},t.a=P},function(e,t,a){"use strict";var r=a(126);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(0),i=a.n(l),s=a(7),u=a.n(s),c=a(17),p=a.n(c),f=a(14),d=a.n(f),m=a(41),h=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return o(t,e),t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){p()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),p()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,a=this.props.location||e.location,r=void 0,n=void 0;return i.a.Children.forEach(t,function(t){if(null==r&&i.a.isValidElement(t)){var o=t.props,l=o.path,s=o.exact,u=o.strict,c=o.sensitive,p=o.from,f=l||p;n=t,r=Object(m.a)(a.pathname,{path:f,exact:s,strict:u,sensitive:c},e.match)}}),r?i.a.cloneElement(n,{location:a,computedMatch:r}):null},t}(i.a.Component);h.contextTypes={router:u.a.shape({route:u.a.object.isRequired}).isRequired},h.propTypes={children:u.a.node,location:u.a.object},t.a=h},function(e,t,a){"use strict";var r=a(63);t.a=r.a},function(e,t,a){"use strict";var r=a(41);t.a=r.a},function(e,t,a){"use strict";var r=a(130);t.a=r.a},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}var n=a(0),o=a.n(n),l=a(7),i=a.n(l),s=a(54),u=a.n(s),c=a(61),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},f=function(e){var t=function(t){var a=t.wrappedComponentRef,n=r(t,["wrappedComponentRef"]);return o.a.createElement(c.a,{children:function(t){return o.a.createElement(e,p({},n,t,{ref:a}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:i.a.func},u()(t,e)};t.a=f},function(e,t,a){"use strict";function r(e){return function(t){var a=t.dispatch,r=t.getState;return function(t){return function(n){return"function"==typeof n?n(a,r,e):t(n)}}}}Object.defineProperty(t,"__esModule",{value:!0});var n=r();n.withExtraArgument=r,t.default=n},function(e,t,a){function r(){u.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function n(e){return Array.prototype.slice.call(e)}function o(e){var t,a=e[0],o={};for(("string"!=typeof a||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&r("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",n(e),". See https://github.com/pentatonicfunk/i18n-wp-plugin#translate-method"),2===e.length&&"string"==typeof a&&"string"==typeof e[1]&&r("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",n(e)),t=0;t<e.length;t++)"object"==typeof e[t]&&(o=e[t]);if("string"==typeof a?o.original=a:"object"==typeof o.original&&(o.plural=o.original.plural,o.count=o.original.count,o.original=o.original.single),"string"==typeof e[1]&&(o.plural=e[1]),void 0===o.original)throw new Error("Translate called without a `string` value as first argument.");return o}function l(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}function i(e,t){var a,r="gettext";return t.context&&(r="p"+r),"string"==typeof t.original&&"string"==typeof t.plural&&(r="n"+r),a=l(r,t),e[r].apply(e,a)}function s(e,t){var a,r;for(a=v.length-1;a>=0;a--)if(r=v[a](b({},t)),e.state.locale[r.original])return i(e.state.jed,r);return null}function u(){if(!(this instanceof u))return new u;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void 0,locale:void 0,localeSlug:void 0,translations:h({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new d,this.stateObserver.setMaxListeners(0),this.configure()}var c=a(133)("i18n-wp-plugin"),p=a(136),f=a(137),d=a(67).EventEmitter,m=a(140).default,h=a(144),b=a(70),y=a(145),v=[function(e){return e}],g={};u.throwErrors=!1,u.prototype.numberFormat=function(e){var t=arguments[1]||{},a="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",n=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return y(e,a,r,n)},u.prototype.configure=function(e){b(this,e||{}),this.setLocale()},u.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){var t,a,r,n=e[""]["key-hash"],l=function(e,t){const a=!1===t?"":String(t);if(void 0!==g[a+e])return g[a+e];var r=f().update(e).digest("hex");return g[a+e]=t?r.substr(0,t):r},s=function(e){return function(t){return t.context?(t.original=l(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=l(t.original,e),t}};if("sha1"===n.substr(0,4))if(4===n.length)v.push(s(!1));else{var u=n.substr(5).indexOf("-");if(u<0)t=Number(n.substr(5)),v.push(s(t));else for(a=Number(n.substr(5,u)),r=Number(n.substr(6+u)),t=a;t<=r;t++)v.push(s(t))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;b(this.state.locale,e)}else this.state.locale=b({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=new p({locale_data:{messages:this.state.locale}}),this.state.numberFormatSettings.decimal_point=i(this.state.jed,o(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=i(this.state.jed,o(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.getLocale=function(){return this.state.locale},u.prototype.getLocaleSlug=function(){return this.state.localeSlug},u.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.jed.options.locale_data.messages[t]=e[t]);this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.hasTranslation=function(){return!!s(this,o(arguments))},u.prototype.translate=function(){var e,t,a,r,n,l;if(e=o(arguments),l=!e.components){try{n=JSON.stringify(e)}catch(e){l=!1}if(n&&(t=this.state.translations.get(n)))return t}if(t=s(this,e),t||(t=i(this.state.jed,e)),e.args){a=Array.isArray(e.args)?e.args.slice(0):[e.args],a.unshift(t);try{t=p.sprintf.apply(p,a)}catch(e){if(!window||!window.console)return;r=this.throwErrors?"error":"warn","string"!=typeof e?window.console[r](e):window.console[r]("i18n sprintf error:",a)}}return e.components&&(t=m({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach(function(a){t=a(t,e)}),l&&this.state.translations.set(n,t),t},u.prototype.reRenderTranslations=function(){c("Re-rendering all translations due to external request"),this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},u.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},e.exports=u},function(e,t,a){(function(r){function n(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var a=this.useColors;if(e[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+e[0]+(a?"%c ":" ")+"+"+t.humanize(this.diff),a){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))}),e.splice(o,0,r)}}function l(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function s(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=a(134),t.log=l,t.formatArgs=o,t.save=i,t.load=s,t.useColors=n,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(s())}).call(t,a(47))},function(e,t,a){function r(e){var a,r=0;for(a in e)r=(r<<5)-r+e.charCodeAt(a),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function n(e){function a(){if(a.enabled){var e=a,r=+new Date,o=r-(n||r);e.diff=o,e.prev=n,e.curr=r,n=r;for(var l=new Array(arguments.length),i=0;i<l.length;i++)l[i]=arguments[i];l[0]=t.coerce(l[0]),"string"!=typeof l[0]&&l.unshift("%O");var s=0;l[0]=l[0].replace(/%([a-zA-Z%])/g,function(a,r){if("%%"===a)return a;s++;var n=t.formatters[r];if("function"==typeof n){var o=l[s];a=n.call(e,o),l.splice(s,1),s--}return a}),t.formatArgs.call(e,l);(a.log||t.log||console.log.bind(console)).apply(e,l)}}var n;return a.namespace=e,a.enabled=t.enabled(e),a.useColors=t.useColors(),a.color=r(e),a.destroy=o,"function"==typeof t.init&&t.init(a),t.instances.push(a),a}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function l(e){t.save(e),t.names=[],t.skips=[];var a,r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(a=0;a<n;a++)r[a]&&(e=r[a].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(a=0;a<t.instances.length;a++){var o=t.instances[a];o.enabled=t.enabled(o.namespace)}}function i(){t.enable("")}function s(e){if("*"===e[e.length-1])return!0;var a,r;for(a=0,r=t.skips.length;a<r;a++)if(t.skips[a].test(e))return!1;for(a=0,r=t.names.length;a<r;a++)if(t.names[a].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=n.debug=n.default=n,t.coerce=u,t.disable=i,t.enable=l,t.enabled=s,t.humanize=a(135),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){function a(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*c;case"days":case"day":case"d":return a*u;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*i;case"seconds":case"second":case"secs":case"sec":case"s":return a*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function r(e){return e>=u?Math.round(e/u)+"d":e>=s?Math.round(e/s)+"h":e>=i?Math.round(e/i)+"m":e>=l?Math.round(e/l)+"s":e+"ms"}function n(e){return o(e,u,"day")||o(e,s,"hour")||o(e,i,"minute")||o(e,l,"second")||e+" ms"}function o(e,t,a){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+a:Math.ceil(e/t)+" "+a+"s"}var l=1e3,i=60*l,s=60*i,u=24*s,c=365.25*u;e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return a(e);if("number"===o&&!1===isNaN(e))return t.long?n(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,a){/**
2
  * @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed
3
  */
4
  !function(a,r){function n(e){return d.PF.compile(e||"nplurals=2; plural=(n != 1);")}function o(e,t){this._key=e,this._i18n=t}var l=Array.prototype,i=Object.prototype,s=l.slice,u=i.hasOwnProperty,c=l.forEach,p={},f={forEach:function(e,t,a){var r,n,o;if(null!==e)if(c&&e.forEach===c)e.forEach(t,a);else if(e.length===+e.length){for(r=0,n=e.length;r<n;r++)if(r in e&&t.call(a,e[r],r,e)===p)return}else for(o in e)if(u.call(e,o)&&t.call(a,e[o],o,e)===p)return},extend:function(e){return this.forEach(s.call(arguments,1),function(t){for(var a in t)e[a]=t[a]}),e}},d=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=f.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};d.context_delimiter=String.fromCharCode(4),f.extend(o.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?d.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),f.extend(d.prototype,{translate:function(e){return new o(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){/**
@@ -22,4 +22,4 @@ var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.pr
22
  * @author Feross Aboukhadijeh <https://feross.org>
23
  * @license MIT
24
  */
25
- e.exports=function(e){return null!=e&&(a(e)||r(e)||!!e._isBuffer)}},function(e,t,a){"use strict";function r(e){this.defaults=e,this.interceptors={request:new l,response:new l}}var n=a(43),o=a(11),l=a(162),i=a(163);r.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),e=o.merge(n,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[i,void 0],a=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)a=a.then(t.shift(),t.shift());return a},o.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,a){return this.request(o.merge(a||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,a,r){return this.request(o.merge(r||{},{method:e,url:t,data:a}))}}),e.exports=r},function(e,t,a){"use strict";var r=a(11);e.exports=function(e,t){r.forEach(e,function(a,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=a,delete e[r])})}},function(e,t,a){"use strict";var r=a(74);e.exports=function(e,t,a){var n=a.config.validateStatus;a.status&&n&&!n(a.status)?t(r("Request failed with status code "+a.status,a.config,null,a.request,a)):e(a)}},function(e,t,a){"use strict";e.exports=function(e,t,a,r,n){return e.config=t,a&&(e.code=a),e.request=r,e.response=n,e}},function(e,t,a){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var n=a(11);e.exports=function(e,t,a){if(!t)return e;var o;if(a)o=a(t);else if(n.isURLSearchParams(t))o=t.toString();else{var l=[];n.forEach(t,function(e,t){null!==e&&void 0!==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))}))}),o=l.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},function(e,t,a){"use strict";var r=a(11),n=["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,a,o,l={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),a=r.trim(e.substr(o+1)),t){if(l[t]&&n.indexOf(t)>=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([a]):l[t]?l[t]+", "+a:a}}),l):l}},function(e,t,a){"use strict";var r=a(11);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return a&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}var t,a=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");return t=e(window.location.href),function(a){var n=r.isString(a)?e(a):a;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},function(e,t,a){"use strict";function r(){this.message="String contains an invalid character"}function n(e){for(var t,a,n=String(e),l="",i=0,s=o;n.charAt(0|i)||(s="=",i%1);l+=s.charAt(63&t>>8-i%1*8)){if((a=n.charCodeAt(i+=.75))>255)throw new r;t=t<<8|a}return l}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=n},function(e,t,a){"use strict";var r=a(11);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,a,n,o,l){var i=[];i.push(e+"="+encodeURIComponent(t)),r.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),r.isString(n)&&i.push("path="+n),r.isString(o)&&i.push("domain="+o),!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)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,a){"use strict";function r(){this.handlers=[]}var n=a(11);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),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},function(e,t,a){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var n=a(11),o=a(164),l=a(75),i=a(43),s=a(165),u=a(166);e.exports=function(e){return r(e),e.baseURL&&!s(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(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||i.adapter)(e).then(function(t){return r(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return l(t)||(r(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,a){"use strict";var r=a(11);e.exports=function(e,t,a){return r.forEach(a,function(a){e=a(e,t)}),e}},function(e,t,a){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,a){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,a){"use strict";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 a=this;e(function(e){a.reason||(a.reason=new n(e),t(a.reason))})}var n=a(76);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,a){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,a){"use strict";var r=a(77),n=a(78),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Date.prototype.toISOString,i={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(t,a,n,o,l,s,u,c,p,f,d,m){var h=t;if("function"==typeof u)h=u(a,h);else if(h instanceof Date)h=f(h);else if(null===h){if(o)return s&&!m?s(a,i.encoder):a;h=""}if("string"==typeof h||"number"==typeof h||"boolean"==typeof h||r.isBuffer(h)){if(s){return[d(m?a:s(a,i.encoder))+"="+d(s(h,i.encoder))]}return[d(a)+"="+d(String(h))]}var b=[];if(void 0===h)return b;var y;if(Array.isArray(u))y=u;else{var v=Object.keys(h);y=c?v.sort(c):v}for(var g=0;g<y.length;++g){var E=y[g];l&&null===h[E]||(b=Array.isArray(h)?b.concat(e(h[E],n(a,E),n,o,l,s,u,c,p,f,d,m)):b.concat(e(h[E],a+(p?"."+E:"["+E+"]"),n,o,l,s,u,c,p,f,d,m)))}return b};e.exports=function(e,t){var a=e,l=t?r.assign({},t):{};if(null!==l.encoder&&void 0!==l.encoder&&"function"!=typeof l.encoder)throw new TypeError("Encoder has to be a function.");var u=void 0===l.delimiter?i.delimiter:l.delimiter,c="boolean"==typeof l.strictNullHandling?l.strictNullHandling:i.strictNullHandling,p="boolean"==typeof l.skipNulls?l.skipNulls:i.skipNulls,f="boolean"==typeof l.encode?l.encode:i.encode,d="function"==typeof l.encoder?l.encoder:i.encoder,m="function"==typeof l.sort?l.sort:null,h=void 0!==l.allowDots&&l.allowDots,b="function"==typeof l.serializeDate?l.serializeDate:i.serializeDate,y="boolean"==typeof l.encodeValuesOnly?l.encodeValuesOnly:i.encodeValuesOnly;if(void 0===l.format)l.format=n.default;else if(!Object.prototype.hasOwnProperty.call(n.formatters,l.format))throw new TypeError("Unknown format option provided.");var v,g,E=n.formatters[l.format];"function"==typeof l.filter?(g=l.filter,a=g("",a)):Array.isArray(l.filter)&&(g=l.filter,v=g);var _=[];if("object"!=typeof a||null===a)return"";var w;w=l.arrayFormat in o?l.arrayFormat:"indices"in l?l.indices?"indices":"repeat":"indices";var O=o[w];v||(v=Object.keys(a)),m&&v.sort(m);for(var P=0;P<v.length;++P){var j=v[P];p&&null===a[j]||(_=_.concat(s(a[j],j,O,c,p,f?d:null,g,m,h,b,E,y)))}var k=_.join(u),x=!0===l.addQueryPrefix?"?":"";return k.length>0?x+k:""}},function(e,t,a){"use strict";var r=a(77),n=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},l=function(e,t){for(var a={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,i=r.split(t.delimiter,l),s=0;s<i.length;++s){var u,c,p=i[s],f=p.indexOf("]="),d=-1===f?p.indexOf("="):f+1;-1===d?(u=t.decoder(p,o.decoder),c=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,d),o.decoder),c=t.decoder(p.slice(d+1),o.decoder)),n.call(a,u)?a[u]=[].concat(a[u]).concat(c):a[u]=c}return a},i=function(e,t,a){for(var r=t,n=e.length-1;n>=0;--n){var o,l=e[n];if("[]"===l)o=[],o=o.concat(r);else{o=a.plainObjects?Object.create(null):{};var i="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,s=parseInt(i,10);!isNaN(s)&&l!==i&&String(s)===i&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(o=[],o[s]=r):o[i]=r}r=o}return r},s=function(e,t,a){if(e){var r=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=o.exec(r),u=s?r.slice(0,s.index):r,c=[];if(u){if(!a.plainObjects&&n.call(Object.prototype,u)&&!a.allowPrototypes)return;c.push(u)}for(var p=0;null!==(s=l.exec(r))&&p<a.depth;){if(p+=1,!a.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!a.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+r.slice(s.index)+"]"),i(c,t,a)}};e.exports=function(e,t){var a=t?r.assign({},t):{};if(null!==a.decoder&&void 0!==a.decoder&&"function"!=typeof a.decoder)throw new TypeError("Decoder has to be a function.");if(a.ignoreQueryPrefix=!0===a.ignoreQueryPrefix,a.delimiter="string"==typeof a.delimiter||r.isRegExp(a.delimiter)?a.delimiter:o.delimiter,a.depth="number"==typeof a.depth?a.depth:o.depth,a.arrayLimit="number"==typeof a.arrayLimit?a.arrayLimit:o.arrayLimit,a.parseArrays=!1!==a.parseArrays,a.decoder="function"==typeof a.decoder?a.decoder:o.decoder,a.allowDots="boolean"==typeof a.allowDots?a.allowDots:o.allowDots,a.plainObjects="boolean"==typeof a.plainObjects?a.plainObjects:o.plainObjects,a.allowPrototypes="boolean"==typeof a.allowPrototypes?a.allowPrototypes:o.allowPrototypes,a.parameterLimit="number"==typeof a.parameterLimit?a.parameterLimit:o.parameterLimit,a.strictNullHandling="boolean"==typeof a.strictNullHandling?a.strictNullHandling:o.strictNullHandling,""===e||null===e||void 0===e)return a.plainObjects?Object.create(null):{};for(var n="string"==typeof e?l(e,a):e,i=a.plainObjects?Object.create(null):{},u=Object.keys(n),c=0;c<u.length;++c){var p=u[c],f=s(p,n[p],a);i=r.merge(i,f,a)}return r.compact(i)}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.radioClass)?"sui-radio":"sui-radio "+this.props.radioClass,a=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],r=s.default.Children.map(this.props.children,function(r){var n="",o=_.isUndefined(r.props.label)?r.props.children:r.props.label;return r.props.image1x&&r.props.image2x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,srcSet:forminatorData.imagesUrl+"/"+r.props.image1x+" 1x,\n\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.image1x&&!r.props.image2x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image1x,"aria-hidden":"true"})),r.props.image2x&&!r.props.image1x&&(n=s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+r.props.image2x,srcSet:forminatorData.imagesUrl+"/"+r.props.image2x+" 2x","aria-hidden":"true"})),r.props.hasImage?s.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:"sui-radio-image"},n,s.default.createElement("span",{className:t},s.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,value:r.props.value,id:"forminator-field-"+r.props.value,checked:a===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,o))):r.props.hasImage?void 0:s.default.createElement("label",{htmlFor:"forminator-field-"+r.props.value,className:t},s.default.createElement("input",{type:"radio",name:"forminator-"+e.props.property,id:"forminator-field-"+r.props.value,value:r.props.value,checked:a===r.props.value,onChange:e.updateValue.bind(e,r.props.value)}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,o))}),n=s.default.Children.map(this.props.children,function(t){return"true"!==e.props.radioContent||_.isUndefined(t.props.children)?s.default.createElement(s.default.Fragment,null):s.default.createElement("div",{className:"sui-border-frame"+(t.props.value===a?"":" sui-hidden"),style:{marginLeft:"0"}},t.props.value===a&&t)}),o="";this.props.label&&""!==this.props.label&&(o=s.default.createElement("label",{className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var l="";this.props.description&&""!==this.props.description&&(l=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.description));var i="";this.props.settingsLabel&&""!==this.props.settingsLabel&&(i=s.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var u="";return this.props.settingsDesc&&""!==this.props.settingsDesc&&(u=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc)),this.props.noWrapper?r:s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{role:"radiogroup",className:"sui-form-field"},o,i,l,u,r,n))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.insertSelector=a.insertSelector.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.editor=ace.edit("forminator-field-"+this.props.property),this.session=this.editor.getSession(),this.session.setUseWorker(!1),this.editor.setShowPrintMargin(!1),this.session.setMode("ace/mode/css"),this.editor.setTheme("ace/theme/sui"),this.editor.renderer.setShowGutter(!0),this.editor.setHighlightActiveLine(!0),this.editor.focus(),this.editor.on("change",this.updateValue)}},{key:"componentWillUnmount",value:function(){this.editor.destroy(),this.editor=null}},{key:"insertSelector",value:function(e){var t=e+"{}";this.editor.navigateFileEnd(),this.editor.insert(t),this.editor.navigateLeft(1),this.editor.focus()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"updateValue",value:function(){this.props.actions.settingsActions.updateSetting(this.props.property,this.editor.getValue())}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=_.isUndefined(this.props.type)?"form":this.props.type,r=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Form")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-title ")}},(0,u.translate)("Section Title")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-subtitle ")}},(0,u.translate)("Section Subtitle")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-label ")}},(0,u.translate)("Field Label")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-description ")}},(0,u.translate)("Field Description")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-input ")}},(0,u.translate)("Input")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-textarea ")}},(0,u.translate)("Textarea")))),n=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Poll")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-poll--question ")}},(0,u.translate)("Question")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-radio .forminator-radio-bullet ")}},(0,u.translate)("Answer Input")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-radio .forminator-radio-label ")}},(0,u.translate)("Answer Label")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-button ")}},(0,u.translate)("Submit Button")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-poll-footer a.forminator-link, .forminator-poll-footer a.forminator-link:visited ")}},(0,u.translate)("View Results Link")))),o=s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Basic selectors")),s.default.createElement("div",{className:"sui-ace-selectors"},s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" ")}},(0,u.translate)("Quiz")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--title ")}},(0,u.translate)("Title")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-quiz--description p ")}},(0,u.translate)("Description")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-question .forminator-legend ")}},(0,u.translate)("Question")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--design ")}},(0,u.translate)("Answer Container")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(".forminator-answer .forminator-answer--name ")}},(0,u.translate)("Answer Text"))));return s.default.createElement(s.default.Fragment,null,"form"===a&&r,"poll"===a&&n,"quiz"===a&&o,s.default.createElement("div",{id:"forminator-field-"+this.props.property,"data-value":t,style:{height:"210px"}},t))}}]),t}(i.Component);t.default=c},,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(175),f=r(p),d=a(407),m=r(d),h=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.closeModal.bind(a),a}return l(t,e),s(t,[{key:"render",value:function(){var e=c.default.Children.map(this.props.children,function(e){return e}),t=_.isUndefined(this.props.alignment)||""===this.props.alignment?"":this.props.alignment,a=!_.isUndefined(this.props.flatten)&&!0===this.props.flatten,r=!(!_.isUndefined(this.props.canClose)&&!1===this.props.canClose),n=_.isUndefined(this.props.closeType)||""===this.props.closeType?"":this.props.closeType,o=_.isUndefined(this.props.closeColor)||""===this.props.closeColor?"default":this.props.closeColor,l=!_.isUndefined(this.props.imageName)&&""!==this.props.imageName,s=!_.isUndefined(this.props.imageLogo)&&!0===this.props.imageLogo,u=_.isUndefined(this.props.imageAlt)||!0!==this.props.imageAlt?"":this.props.imageAlt,p=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,d="sui-box-header";""!==t&&(d+=" sui-content-"+t),!0===a&&(d+=" sui-flatten"),!0===l&&(d+=" sui-spacing-top--60"),!0===p&&(d+=" "+this.props.customClass);var h=c.default.createElement("div",{className:d},!0===r&&c.default.createElement(f.default,i({type:n,float:"right",color:o},r&&{closeModal:this.closeModal})),!0===l&&c.default.createElement(m.default,{logo:s,filename:this.props.imageName,alt:u}),e);return"center"!==t&&(h=c.default.createElement(c.default.Fragment,null,!0===r&&c.default.createElement(f.default,i({sronly:!0},r&&{closeModal:this.closeModal})),c.default.createElement("div",{className:d},!0===l&&c.default.createElement(m.default,{logo:s,filename:this.props.imageName,alt:u}),e,c.default.createElement("div",{className:"sui-actions-right"},!0===r&&c.default.createElement(f.default,{type:n,color:o,closeModal:this.closeModal}))))),h}}]),t}(u.Component);t.default=h},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.closeModal.bind(a),a}return o(t,e),l(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.label)||""===this.props.label?(0,u.translate)("Close this dialog"):this.props.label,t=_.isUndefined(this.props.color)||""===this.props.color?"":this.props.color,a=!_.isUndefined(this.props.type)&&"icon"===this.props.type,r=!_.isUndefined(this.props.sronly)&&!0===this.props.sronly,n=!_.isUndefined(this.props.icon)&&""!==this.props.icon,o=!_.isUndefined(this.props.float)&&"left"===this.props.float,l=!_.isUndefined(this.props.float)&&"right"===this.props.float,i=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,c="sui-button";return!0===r?c="sui-screen-reader-text":!1===r&&!0===a&&(c="sui-button-icon"),!1===r&&""!==t&&(c+=" sui-button-"+t),!1!==r||!0!==o&&!0!==l||(c+=" sui-button-float--"+this.props.float),!0===i&&(c+=" "+this.props.customClass),c+=" modal-close-button",s.default.createElement("button",{className:c,onClick:this.closeModal},!0===a&&s.default.createElement("i",{className:"sui-icon-close sui-md","aria-hidden":"true"}),!0===n&&s.default.createElement("i",{className:"sui-icon-"+this.props.icon,"aria-hidden":"true"}),!0===a?s.default.createElement("span",{className:"sui-screen-reader-text"},e):e)}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=this.props.id?"modal-"+this.props.id+"--title":"unique-id-required",t=this.props.label?this.props.label:"A title is required for your modals",a=_.isUndefined(this.props.tag)||""===this.props.tag?"":this.props.tag,r=_.isUndefined(this.props.tagColor)||""===this.props.tagColor?"":" sui-tag-"+this.props.titleTagColor,n="sui-box-title";return"lg"===this.props.size&&(n+=" sui-lg"),_.isUndefined(this.props.customClass)||""===this.props.customClass||(n+=" "+this.props.customClass),s.default.createElement("h3",{id:e,className:n},t,""!==a&&s.default.createElement("span",{className:"sui-tag"+r,style:{marginTop:"-2px",marginLeft:"10px"}},a))}}]),t}(i.Component);t.default=u},,,,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(32),f=r(p),d=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r={form:{shortcode:"forminator_form",type:"form",processAction:forminatorData.adminUrl+"admin.php?page=forminator-cform",processNonce:forminatorData.formProcessNonce,exportNonce:forminatorData.formExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_forms&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open form options")},poll:{shortcode:"forminator_poll",type:"poll",processAction:forminatorData.adminUrl+"admin.php?page=forminator-poll",processNonce:forminatorData.pollProcessNonce,exportNonce:forminatorData.pollExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_polls&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open poll options")},quiz:{shortcode:"forminator_quiz",type:"quiz",processAction:forminatorData.adminUrl+"admin.php?page=forminator-quiz",processNonce:forminatorData.quizProcessNonce,exportNonce:forminatorData.quizExportNonce,submissions:forminatorData.adminUrl+"admin.php?page=forminator-entries&form_type=forminator_quizzes&form_id="+a.props.id,dropdownLabel:(0,c.translate)("Open quiz options")}};return a.copyToClipboard=a.copyToClipboard.bind(a),a.resetTrackingData=a.resetTrackingData.bind(a),a.data=r[a.props.type],a}return l(t,e),i(t,[{key:"copyToClipboard",value:function(){this.input.select(),document.execCommand("copy"),new f.default({type:"success",text:(0,c.translate)("Shortcode has been copied successfully."),time:4e3}).open()}},{key:"resetTrackingData",value:function(){var e={action:"forminator_reset_tracking_data",_ajax_nonce:forminatorData.resetTrackingDataNonce,id:this.props.id};this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e){var t=e.success?"success":"error",a=e.data||(0,c.translate)("Something went wrong.");new f.default({type:t,text:a,time:4e3}).open()}})}},{key:"render",value:function(){var e=this,t=this.data.processAction+"&export=true&module_id="+this.props.id+"&exportnonce="+this.data.exportNonce+"&module_type="+this.data.type,a=this.data.processAction+"&delete=true&module_id="+this.props.id+"&nonce="+this.data.processNonce+"&module_type="+this.data.type,r=(0,c.translate)("Create New Form");return"poll"===this.props.type&&(r=(0,c.translate)("Create New Poll")),"quiz"===this.props.type&&(r=(0,c.translate)("Create New Quiz")),u.default.createElement(u.default.Fragment,null,u.default.createElement("input",{type:"text",defaultValue:"["+this.data.shortcode+' id="'+this.props.id+'"]',id:"forminator-form-shortcode",style:{position:"absolute",top:"-1500px"},"aria-hidden":"true",ref:function(t){return e.input=t}}),u.default.createElement("div",{className:this.props.hasLead?"sui-dropdown fui-dropdown-soon":"sui-dropdown"},u.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor","aria-label":"Dropdown"},u.default.createElement("span",{className:"sui-icon-widget-settings-config sui-md","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},this.data.dropdownLabel)),u.default.createElement("ul",null,u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-edit",onClick:this.copyToClipboard},u.default.createElement("span",{className:"sui-icon-code","aria-hidden":"true"}),(0,c.translate)("Copy Shortcode"))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit",href:this.data.submissions},u.default.createElement("span",{className:"sui-icon-community-people","aria-hidden":"true"}),(0,c.translate)("View Submissions"))),u.default.createElement("li",null,u.default.createElement("form",{method:"post",action:this.data.processAction},u.default.createElement("input",{type:"hidden",name:"forminator_action",value:"clone"}),u.default.createElement("input",{type:"hidden",name:"id",value:this.props.id}),u.default.createElement("input",{type:"hidden",id:"forminatorNonce",name:"forminatorNonce",value:forminatorData.cloneNonce}),u.default.createElement("input",{type:"hidden",name:"forminatorRedirect",value:"false"}),this.props.hasLead&&u.default.createElement("button",{type:"submit",disabled:"disabled",className:"fui-button-with-tag sui-tooltip sui-tooltip-left sui-constrained","data-tooltip":(0,c.translate)("Duplicate isn't supported at the moment for the quizzes with lead capturing enabled.")},u.default.createElement("span",{className:"sui-icon-page-multiple","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-button-label"},(0,c.translate)("Duplicate")),u.default.createElement("span",{className:"sui-tag sui-tag-blue sui-tag-sm"},(0,c.translate)("Coming soon"))),!this.props.hasLead&&u.default.createElement("button",{type:"submit"},u.default.createElement("span",{className:"sui-icon-page-multiple","aria-hidden":"true"}),(0,c.translate)("Duplicate")))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit",onClick:this.resetTrackingData},u.default.createElement("span",{className:"sui-icon-update","aria-hidden":"true"}),(0,c.translate)("Reset Tracking Data"))),u.default.createElement("li",null,this.props.hasLead&&u.default.createElement("a",{href:"#",className:"fui-button-with-tag sui-tooltip sui-tooltip-left","data-tooltip":(0,c.translate)("Export isn't supported at the moment for the quizzes with lead capturing enabled.")},u.default.createElement("span",{className:"sui-icon-cloud-migration","aria-hidden":"true"}),u.default.createElement("span",{className:"fui-button-label"},(0,c.translate)("Export")),u.default.createElement("span",{className:"sui-tag sui-tag-blue sui-tag-sm"},(0,c.translate)("Coming soon"))),!this.props.hasLead&&u.default.createElement("a",{className:"forminator-field-edit",href:t},u.default.createElement("span",{className:"sui-icon-cloud-migration","aria-hidden":"true"}),(0,c.translate)("Export"))),u.default.createElement("li",null,u.default.createElement("a",{className:"forminator-field-edit sui-option-red",href:a},u.default.createElement("span",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete"))))),u.default.createElement("a",{href:forminatorData.dashboardUrl+"&createnew="+this.props.type,className:"sui-button-icon sui-tooltip sui-tooltip-bottom","data-tooltip":r},u.default.createElement("span",{className:"sui-icon-plus sui-md","aria-hidden":"true"})))}}]),t}(s.Component);t.default=d},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e}),t=_.isUndefined(this.props.alignment)||""===this.props.alignment?"":this.props.alignment,a=!_.isUndefined(this.props.flatten)&&!0===this.props.flatten,r=!_.isUndefined(this.props.customClass)&&""!==this.props.customClass,n="sui-box-footer";return!0===a&&(n+=" sui-flatten"),""!==t&&(n+=" sui-content-"+t),!0===r&&(n+=" "+this.props.customClass),s.default.createElement("div",{className:n},e)}}]),t}(i.Component);t.default=u},function(e,t,a){function r(e,t){var a=o(e,t);return n(a)?a:void 0}var n=a(422),o=a(427);e.exports=r},function(e,t,a){"use strict";function r(e){return o.default.createElement("hr",{className:"fui-border"})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n)},function(e,t,a){"use strict";function r(e){return e.replace(/>/g,"&gt;")}t.a=r},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(31),p=r(c),f=a(186),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return"undefined"!=typeof document&&(a.previouslyFocusedElement=document.activeElement),a}return l(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this.props.focusTrapOptions,t={returnFocusOnDeactivate:!1,fallbackFocus:"body"};for(var a in e)e.hasOwnProperty(a)&&"returnFocusOnDeactivate"!==a&&(t[a]=e[a]);var r=p.default.findDOMNode(this.focusTrapElement);this.focusTrap=this.props._createFocusTrap(r,t),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}},{key:"componentDidUpdate",value:function(e){if(e.active&&!this.props.active){var t=this.props.focusTrapOptions.returnFocusOnDeactivate,a=t||!1,r={returnFocus:a};this.focusTrap.deactivate(r)}else!e.active&&this.props.active&&this.focusTrap.activate();e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}},{key:"componentWillUnmount",value:function(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus()}},{key:"setFocusTrapElement",value:function(e){this.focusTrapElement=e}},{key:"render",value:function(){var e=this,t=u.default.Children.only(this.props.children),a=function(a){e.setFocusTrapElement(a),"function"==typeof t.ref&&t.ref(a)};return u.default.cloneElement(t,{ref:a})}}]),t}(u.default.Component);m.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d.default},e.exports=m},function(e,t,a){function r(e,t){function a(e){if(!C.active){P(),C.active=!0,C.paused=!1,C.nodeFocusedBeforeActivation=k.activeElement;var t=e&&e.onActivate?e.onActivate:N.onActivate;return t&&t(),m(),S}}function r(e){if(C.active){clearTimeout(s),h(),C.active=!1,C.paused=!1,p.deactivateTrap(S);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:N.onDeactivate;t&&t();return(e&&void 0!==e.returnFocus?e.returnFocus:N.returnFocusOnDeactivate)&&i(function(){j(v(C.nodeFocusedBeforeActivation))}),S}}function f(){!C.paused&&C.active&&(C.paused=!0,h())}function d(){C.paused&&C.active&&(C.paused=!1,P(),m())}function m(){if(C.active)return p.activateTrap(S),s=i(function(){j(y())}),k.addEventListener("focusin",E,!0),k.addEventListener("mousedown",g,{capture:!0,passive:!1}),k.addEventListener("touchstart",g,{capture:!0,passive:!1}),k.addEventListener("click",O,{capture:!0,passive:!1}),k.addEventListener("keydown",_,{capture:!0,passive:!1}),S}function h(){if(C.active)return k.removeEventListener("focusin",E,!0),k.removeEventListener("mousedown",g,!0),k.removeEventListener("touchstart",g,!0),k.removeEventListener("click",O,!0),k.removeEventListener("keydown",_,!0),S}function b(e){var t=N[e],a=t;if(!t)return null;if("string"==typeof t&&!(a=k.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(a=t()))throw new Error("`"+e+"` did not return a node");return a}function y(){var e;if(!(e=null!==b("initialFocus")?b("initialFocus"):x.contains(k.activeElement)?k.activeElement:C.firstTabbableNode||b("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function v(e){var t=b("setReturnFocus");return t||e}function g(e){if(!x.contains(e.target))return N.clickOutsideDeactivates?void r({returnFocus:!u.isFocusable(e.target)}):void(N.allowOutsideClick&&N.allowOutsideClick(e)||e.preventDefault())}function E(e){x.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),j(C.mostRecentlyFocusedNode||y()))}function _(e){return!1!==N.escapeDeactivates&&o(e)?(e.preventDefault(),void r()):l(e)?void w(e):void 0}function w(e){return P(),e.shiftKey&&e.target===C.firstTabbableNode?(e.preventDefault(),void j(C.lastTabbableNode)):e.shiftKey||e.target!==C.lastTabbableNode?void 0:(e.preventDefault(),void j(C.firstTabbableNode))}function O(e){N.clickOutsideDeactivates||x.contains(e.target)||N.allowOutsideClick&&N.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function P(){var e=u(x);C.firstTabbableNode=e[0]||y(),C.lastTabbableNode=e[e.length-1]||y()}function j(e){if(e!==k.activeElement){if(!e||!e.focus)return void j(y());e.focus(),C.mostRecentlyFocusedNode=e,n(e)&&e.select()}}var k=document,x="string"==typeof e?k.querySelector(e):e,N=c({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),C={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},S={activate:a,deactivate:r,pause:f,unpause:d};return S}function n(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}function o(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}function l(e){return"Tab"===e.key||9===e.keyCode}function i(e){return setTimeout(e,0)}var s,u=a(187),c=a(188),p=function(){var e=[];return{activateTrap:function(t){if(e.length>0){var a=e[e.length-1];a!==t&&a.pause()}var r=e.indexOf(t);-1===r?e.push(t):(e.splice(r,1),e.push(t))},deactivateTrap:function(t){var a=e.indexOf(t);-1!==a&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}}}();e.exports=r},function(e,t){function a(e,t){t=t||{};var a=[],n=[],o=e.querySelectorAll(v);t.includeContainer&&g.call(e,v)&&(o=Array.prototype.slice.apply(o),o.unshift(e));var l,u,c;for(l=0;l<o.length;l++)u=o[l],r(u)&&(c=i(u),0===c?a.push(u):n.push({documentOrder:l,tabIndex:c,node:u}));return n.sort(s).map(function(e){return e.node}).concat(a)}function r(e){return!(!o(e)||d(e)||i(e)<0)}function n(e){if(!e)throw new Error("No node provided");return!1!==g.call(e,v)&&r(e)}function o(e){return!(e.disabled||p(e)||b(e))}function l(e){if(!e)throw new Error("No node provided");return!1!==g.call(e,E)&&o(e)}function i(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?u(e)?0:e.tabIndex:t}function s(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function u(e){return"true"===e.contentEditable}function c(e){return"INPUT"===e.tagName}function p(e){return c(e)&&"hidden"===e.type}function f(e){return c(e)&&"radio"===e.type}function d(e){return f(e)&&!h(e)}function m(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}function h(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),a=m(t);return!a||a===e}function b(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}var y=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],v=y.join(","),g="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;a.isTabbable=n,a.isFocusable=l;var E=y.concat("iframe").join(",");e.exports=a},function(e,t){function a(){for(var e={},t=0;t<arguments.length;t++){var a=arguments[t];for(var n in a)r.call(a,n)&&(e[n]=a[n])}return e}e.exports=a;var r=Object.prototype.hasOwnProperty},function(e,t,a){"use strict";(function(t){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,a){if(!t.document)return function(e){function t(){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){return!1}}]),t}(s.Component);a=a||{};var l=function(t){function l(){var t,a,o,i;r(this,l);for(var c=arguments.length,p=Array(c),f=0;f<c;f++)p[f]=arguments[f];return a=o=n(this,(t=l.__proto__||Object.getPrototypeOf(l)).call.apply(t,[this].concat(p))),o.renderDisplaced=function(){u.unstable_renderSubtreeIntoContainer(o,s.createElement(e,o.props,o.props.children),o.container)},o.removeDisplaced=function(){u.unmountComponentAtNode(o.container)},i=a,n(o,i)}return o(l,t),i(l,[{key:"componentWillMount",value:function(){this.container=function(){if(a.renderTo)return"string"==typeof a.renderTo?document.querySelector(a.renderTo):a.renderTo;var e=document.createElement("div");return document.body.appendChild(e),e}()}},{key:"componentDidMount",value:function(){c||this.props.mounted&&this.renderDisplaced()}},{key:"componentDidUpdate",value:function(e){c||(e.mounted&&!this.props.mounted?u.unmountComponentAtNode(this.container):this.props.mounted&&this.renderDisplaced())}},{key:"componentWillUnmount",value:function(){c||u.unmountComponentAtNode(this.container),a.renderTo||this.container.parentNode.removeChild(this.container)}},{key:"render",value:function(){return c&&!1!==this.props.mounted?u.createPortal(s.createElement(e,this.props,this.props.children),this.container):null}}]),l}(s.Component);return l.defaultProps={mounted:!0},l.WrappedComponent=e,l}var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=a(31),c=!!u.createPortal;e.exports=l}).call(t,a(37))},function(e,t,a){"use strict";var r=a(191),n=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(e,t,a,r){function o(e,t){this.$popup={},this._deferred={},this.el=e,this.$el=jQuery(this.el),this.options=_.extend(l,t),this.init()}var l={type:"form"};jQuery.extend(o.prototype,{init:function(){var e=this;this.$el.find(".connect-integration").on("click",function(t){e.open(t)})},open:function(e){var t=this;jQuery("#forminator-integration-popup").remove();var a=jQuery(e.target);a.hasClass("connect-integration")||(a=a.closest(".connect-integration"));var r=function(){return t.close(),!1},o=a.data("nonce"),l=a.data("slug"),i=a.data("multi-global-id"),s=a.data("title"),u=a.data("image"),c=a.data("imagex2"),p=a.data("action"),f=a.data("form-id"),d=a.data("multi-id"),m=a.data("poll-id"),h=a.data("quiz-id"),b=_.template('<div class="sui-modal sui-modal-lg"><div role="dialog" id="forminator-integration-popup" class="sui-modal-content" aria-modal="true" aria-labelledby="forminator-integration-popup__title" aria-describedby="forminator-integration-popup__description"><div class="sui-box" style="margin-bottom: 0;"><div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60"><button class="sui-button-icon sui-button-float--right forminator-popup-close"><span class="sui-icon-close sui-md" aria-hidden="true"></span><span class="sui-screen-reader-text">Close</span></button><button class="sui-button-icon sui-button-float--left forminator-addon-back"><span class="sui-icon-chevron-left sui-md" aria-hidden="true"></span><span class="sui-screen-reader-text">Back</span></button><figure class="sui-box-logo" aria-hidden="true"><img src="<%= image %>" srcset="<%= image %> 1x, <%= image2x %> 2x" alt="<%= title %>" /></figure><div class="forminator-integration-popup__header"></div></div><div class="sui-box-body"></div><div class="sui-box-footer sui-flatten sui-content-center"></div></div></div></div>');jQuery("main.sui-wrap").append(b({image:u,image2x:c,title:s})),this.$popup=jQuery("#forminator-integration-popup");var y={slug:l,nonce:o,action:p,multi_id:d,global_id:i,el:this.$popup,type:t.options.type};return"form"===t.options.type?y.form_id=f:"poll"===t.options.type?y.poll_id=m:"quiz"===t.options.type&&(y.quiz_id=h),new n.default(y).on("modal:closed",function(){t.close()}),this.$popup.find(".forminator-popup-action").remove(),this.$popup.find(".forminator-popup-close").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),SUI.openModal("forminator-integration-popup","forminator-form-appearance",void 0,!0,!0),this._deferred=new jQuery.Deferred,this._deferred.promise()},close:function(e){SUI.closeModal(),this.$el.trigger("reload"),this._deferred.resolve(this.$popup,e)}}),jQuery.fn.ForminatorIntegrationsModal=function(e){return this.each(function(){new o(this,e)})}}(jQuery,window,document)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(32),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){var a;r(this,t);var o=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{el:e.el,tagName:"div",events:{"click .forminator-addon-connect":"connectAddon","click .forminator-addon-disconnect":"disconnectAddon","click .forminator-addon-form-disconnect":"formDisconnectAddon","click .forminator-addon-next":"submitNextStep","click .forminator-addon-back":"goPrevStep","click .forminator-addon-finish":"finishSteps","click .forminator-refresh-email-lists":"refreshLists","change select#group":"showInterests"}}));return o.slug=e.slug,o.nonce=e.nonce,o.action=e.action,o.multi_id=e.multi_id,o.global_id=e.global_id,o.type=e.type,o.step=0,o.next_step=!1,o.prev_step=!1,o.scrollbar_width=o.getScrollbarWidth(),"form"===o.type?o.module_id=e.form_id:"poll"===o.type?o.module_id=e.poll_id:"quiz"===o.type&&(o.module_id=e.quiz_id),a=o.render(),n(o,a)}return o(t,e),l(t,[{key:"render",value:function(){var e={};e.action=this.action,e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.step=this.step,e.data.current_step=this.step,e.data.global_id=this.global_id,e.data=this.getAjaxModuleData(e.data,!0),this.request(e,!1,!0)}},{key:"applyLoader",value:function(e){e.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload")}},{key:"resetLoader",value:function(e){e.find(".sui-button").removeClass("sui-button-onload")}},{key:"request",value:function(e,t,a){var r=this,n={data:e,close:t,loader:a};a&&(this.$el.find(".sui-box-body").html('<p class="fui-loading-dialog" style="text-align: center;" aria-label="Loading content"><span class="sui-icon-loader sui-md sui-loading" aria-hidden="true"></span></p>'),this.$el.find(".sui-box-footer").html(""),this.$el.find(".forminator-integration-popup__header").html("")),r.applyLoader(r.$el),this.ajax=jQuery.post({url:forminatorData.ajaxUrl,type:"post",data:e}).done(function(e){if(e&&e.success){r.renderBody(e),r.renderFooter(e);var a=e.data.data;if(r.onRender(a),r.resetLoader(r.$el),(t||!_.isUndefined(a.is_close)&&a.is_close)&&r.close(r),r.$el.find(".forminator-addon-close").on("click",function(){r.close(r)}),!_.isUndefined(a.notification)&&!_.isUndefined(a.notification.type)&&!_.isUndefined(a.notification.text)){new s.default({type:a.notification.type,text:a.notification.text,time:4e3}).open()}if(_.isUndefined(a.has_back)?r.$el.find(".forminator-addon-back").hide():a.has_back?r.$el.find(".forminator-addon-back").show():r.$el.find(".forminator-addon-back").hide(),!_.isUndefined(a.size)){var o=jQuery("#forminator-integration-popup");"normal"===a.size&&o.removeClass("sui-modal-sm sui-modal-lg"),"small"===a.size&&(o.addClass("sui-modal-sm"),o.removeClass("sui-modal-lg sui-modal-reduced")),"reduced"===a.size&&(o.addClass("sui-modal-sm"),o.removeClass("sui-modal-lg sui-modal-md")),"large"===a.size&&(o.addClass("sui-modal-lg"),o.removeClass("sui-modal-sm sui-modal-md"))}a.is_poll&&setTimeout(r.request(n.data,n.close,n.loader),5e3),setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery('select.sui-select[data-theme="icon"]').each(function(){SUI.select.initIcon(jQuery(this))}),jQuery('select.sui-select[data-theme="color"]').each(function(){SUI.select.initColor(jQuery(this))}),jQuery('select.sui-select[data-theme="search"]').each(function(){SUI.select.initSearch(jQuery(this))}),jQuery("select.sui-select:not([data-theme]):not(.custom-select2):not(.fui-multi-select)").each(function(){SUI.select.init(jQuery(this))}),jQuery("select.sui-variables").each(function(){SUI.select.initVars(jQuery(this))}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},10);jQuery("#forminator-integration-popup .sui-box").height()>jQuery(window).height()?jQuery("#forminator-integration-popup .sui-modal-overlay").css("right",r.scrollbar_width+"px"):jQuery("#forminator-integration-popup .sui-modal-overlay").css("right",0)}if("mailchimp"===r.slug){var l=r.$el.find("#group");l.length&&l.trigger("change")}}),this.ajax.always(function(){r.$el.find(".fui-loading-dialog").remove()})}},{key:"renderBody",value:function(e){this.$el.find(".sui-box-body").html(e.data.data.html);var t=this.$el.find(".sui-box-body .forminator-integration-popup__header").remove();t.length>0&&this.$el.find(".forminator-integration-popup__header").html(t.html())}},{key:"renderFooter",value:function(e){var t=this,a=e.data.data.buttons;t.$el.find(".sui-box-footer").html(""),_.each(a,function(e){t.$el.find(".sui-box-footer").append(e.markup)})}},{key:"onRender",value:function(e){(0,u.suiDelegateEvents)(),(0,u.select2Tags)(this.$el,{}),_.isUndefined(e.forminator_addon_current_step)||(this.step=+e.forminator_addon_current_step),_.isUndefined(e.forminator_addon_has_next_step)||(this.next_step=e.forminator_addon_has_next_step),_.isUndefined(e.forminator_addon_has_prev_step)||(this.prev_step=e.forminator_addon_has_prev_step)}},{key:"close",value:function(e){e.ajax.abort(),e.remove(),this.trigger("modal:closed")}},{key:"refreshLists",value:function(e){e.preventDefault(),e.stopPropagation();var t=jQuery(e.currentTarget),a=this.slug,r=this.global_id,n=this.nonce,o={slug:a,global_id:r};t.addClass("sui-button-onload"),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"forminator_refresh_email_lists",data:o,_ajax_nonce:n}}).done(function(e){if(e.success&&void 0!==e.data.options){var a=t.siblings(".sui-select"),r=a.closest(".sui-modal-content"),n=r.attr("id"),o=r.length?jQuery("#"+n):jQuery("body"),l="true"===a.attr("data-search")?0:-1,i=a.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"";a.html(e.data.options),a.SUIselect2({dropdownParent:o,minimumResultsForSearch:l,dropdownCssClass:i})}}).fail(function(){}).always(function(){t.removeClass("sui-button-onload")})}},{key:"showInterests",value:function(e){var t=this,a=jQuery(e.currentTarget),r=a.data("nonce"),n={},o=t.$el.find("form"),l={slug:t.slug,global_id:this.global_id,module_id:this.module_id},i=o.serialize();i=i+"&"+jQuery.param(l),n.action="forminator_mailchimp_get_group_interests",n._ajax_nonce=r,n.data=i,t.applyLoader(t.$el),jQuery.ajax({url:ajaxurl,type:"POST",data:n}).done(function(e){e.success&&(o.find(".sui-form-field").slice(1).remove(),o.find(".sui-form-field:first-child").after(e.data),o.find(".sui-form-field").slice(1).find("select").each(function(){SUI.select.init(jQuery(this))}))}).fail(function(){}).always(function(){t.resetLoader(t.$el)})}},{key:"submitNextStep",value:function(e){var t={},a=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},n=a.serialize();r=this.getAjaxModuleData(r,!1),n=n+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=n,this.request(t,!1,!1)}},{key:"goPrevStep",value:function(e){var t={},a={slug:this.slug,step:this.getPrevStep(),global_id:this.global_id,current_step:this.step};a=this.getAjaxModuleData(a,!0),t.action=this.action,t._ajax_nonce=this.nonce,t.data=a,this.request(t,!1,!1)}},{key:"finishSteps",value:function(e){var t={},a=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},n=a.serialize();r=this.getAjaxModuleData(r,!0),n=n+"&"+jQuery.param(r),t.action=this.action,t._ajax_nonce=this.nonce,t.data=n,this.request(t,!1,!1)}},{key:"getStep",value:function(){return this.next_step?this.step+1:this.step}},{key:"getPrevStep",value:function(){return this.prev_step?this.step-1:this.step}},{key:"connectAddon",value:function(){var e={},t=this.$el.find("form"),a={slug:this.slug,step:this.getStep(),global_id:this.global_id,current_step:this.step},r=t.serialize();a=this.getAjaxModuleData(a,!0),r=r+"&"+jQuery.param(a),e.action=this.action,e._ajax_nonce=this.nonce,e.data=r,this.request(e,!1,!1)}},{key:"disconnectAddon",value:function(){var e={};e.action="forminator_addon_deactivate",e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data.global_id=this.global_id,this.request(e,!0,!1)}},{key:"formDisconnectAddon",value:function(){var e={};e.action=this.getAjaxModuleAction("deactivate"),e._ajax_nonce=this.nonce,e.data={},e.data.slug=this.slug,e.data=this.getAjaxModuleData(e.data,!0),this.request(e,!0,!1)}},{key:"getScrollbarWidth",value:function(){var e=0;if(navigator.userAgent.match("MSIE")){var t=jQuery('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body"),a=jQuery('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1e3,left:-1e3}).appendTo("body");e=t.width()-a.width(),t.add(a).remove()}else{var r=jQuery("<div />").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1e3,left:-1e3}).prependTo("body").append("<div />").find("div").css({width:"100%",height:200});e=100-r.width(),r.parent().remove()}return e}},{key:"getAjaxModuleData",value:function(e,t){return this.module_id&&(e.module_id=this.module_id,e.module_type=this.type,e.global_id=this.global_id),t&&this.multi_id&&(e.multi_id=this.multi_id),e}},{key:"getAjaxModuleAction",value:function(e){switch(e){case"deactivate":e="forminator_addon_deactivate_for_module"}return e}}]),t}(Backbone.View);t.default=c},function(e,t,a){"use strict";function r(e){return e&&DataView.prototype.isPrototypeOf(e)}function n(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return _.iterable&&(t[Symbol.iterator]=function(){return t}),t}function i(e){this.map={},e instanceof i?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function s(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,a){e.onload=function(){t(e.result)},e.onerror=function(){a(e.error)}})}function c(e){var t=new FileReader,a=u(t);return t.readAsArrayBuffer(e),a}function p(e){var t=new FileReader,a=u(t);return t.readAsText(e),a}function f(e){for(var t=new Uint8Array(e),a=new Array(t.length),r=0;r<t.length;r++)a[r]=String.fromCharCode(t[r]);return a.join("")}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:_.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:_.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:_.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():_.arrayBuffer&&_.blob&&r(e)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):_.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||O(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):_.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},_.blob&&(this.blob=function(){var e=s(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?s(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var e=s(this);if(e)return e;if(this._bodyBlob)return p(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(f(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},_.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}function h(e){var t=e.toUpperCase();return P.indexOf(t)>-1?t:e}function b(e,t){t=t||{};var a=t.body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new i(t.headers)),this.method=h(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var a=e.split("="),r=a.shift().replace(/\+/g," "),n=a.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}}),t}function v(e){var t=new i;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var a=e.split(":"),r=a.shift().trim();if(r){var n=a.join(":").trim();t.append(r,n)}}),t}function g(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e)}function E(e,t){return new Promise(function(a,r){function n(){l.abort()}var o=new b(e,t);if(o.signal&&o.signal.aborted)return r(new k("Aborted","AbortError"));var l=new XMLHttpRequest;l.onload=function(){var e={status:l.status,statusText:l.statusText,headers:v(l.getAllResponseHeaders()||"")};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var t="response"in l?l.response:l.responseText;a(new g(t,e))},l.onerror=function(){r(new TypeError("Network request failed"))},l.ontimeout=function(){r(new TypeError("Network request failed"))},l.onabort=function(){r(new k("Aborted","AbortError"))},l.open(o.method,o.url,!0),"include"===o.credentials?l.withCredentials=!0:"omit"===o.credentials&&(l.withCredentials=!1),"responseType"in l&&_.blob&&(l.responseType="blob"),o.headers.forEach(function(e,t){l.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",n),l.onreadystatechange=function(){4===l.readyState&&o.signal.removeEventListener("abort",n)}),l.send(void 0===o._bodyInit?null:o._bodyInit)})}Object.defineProperty(t,"__esModule",{value:!0}),t.Headers=i,t.Request=b,t.Response=g,a.d(t,"DOMException",function(){return k}),t.fetch=E;var _={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(_.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],O=ArrayBuffer.isView||function(e){return e&&w.indexOf(Object.prototype.toString.call(e))>-1};i.prototype.append=function(e,t){e=n(e),t=o(t);var a=this.map[e];this.map[e]=a?a+", "+t:t},i.prototype.delete=function(e){delete this.map[n(e)]},i.prototype.get=function(e){return e=n(e),this.has(e)?this.map[e]:null},i.prototype.has=function(e){return this.map.hasOwnProperty(n(e))},i.prototype.set=function(e,t){this.map[n(e)]=o(t)},i.prototype.forEach=function(e,t){for(var a in this.map)this.map.hasOwnProperty(a)&&e.call(t,this.map[a],a,this)},i.prototype.keys=function(){var e=[];return this.forEach(function(t,a){e.push(a)}),l(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,a){e.push([a,t])}),l(e)},_.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var P=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var j=[301,302,303,307,308];g.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})};var k=self.DOMException;try{new k}catch(e){k=function(e,t){this.message=e,this.name=t;var a=Error(e);this.stack=a.stack},k.prototype=Object.create(Error.prototype),k.prototype.constructor=k}E.polyfill=!0,self.fetch||(self.fetch=E,self.Headers=i,self.Request=b,self.Response=g)},function(e,t){function a(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=a},function(e,t){function a(e){return null!=e&&"object"==typeof e}e.exports=a},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(6),d=r(f),m=a(13),h=r(m),b=a(501),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.state.options)?[]:this.props.state.options,t=e.length>0?"sui-tab-boxed":"",a=c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether to allow this field to be used in calculations or not. The value used in calculations is the same as the input value of this field."));return this.props.description&&(a=c.default.createElement("span",{className:"sui-description"},this.props.description)),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Calculations")),a,e.length>0&&c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"calculations",description:"",default:"false",noWrapper:!0}),c.default.createElement(y.default,i({},this.props,{value:"true",boxClass:t,label:(0,p.translate)("Enable")})),c.default.createElement(h.default,{value:"false",label:(0,p.translate)("Disable")})),0===e.length&&c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"calculations",default:"false",noWrapper:!0}),c.default.createElement(h.default,i({},this.props,{value:"true",label:(0,p.translate)("Enable")})),c.default.createElement(h.default,{value:"false",label:(0,p.translate)("Disable")}))))}}]),t}(u.Component);t.default=v},,,,,,,,,,,function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateFields=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_FIELDS",wrappers:e})}},t.updateField=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_FIELD",wrapper:e})}},t.updateFieldSettings=function(e,t){return function(a){window.forminatorChanges.fields.push(t),window.forminatorChanges.settings=!0,a({type:"UPDATE_FIELD",wrapper:e})}}},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(412),o=a(413),l=a(414),i=a(415),s=a(416);r.prototype.clear=n,r.prototype.delete=o,r.prototype.get=l,r.prototype.has=i,r.prototype.set=s,e.exports=r},function(e,t,a){function r(e,t){for(var a=e.length;a--;)if(n(e[a][0],t))return a;return-1}var n=a(362);e.exports=r},function(e,t,a){function r(e){return null==e?void 0===e?s:i:u&&u in Object(e)?o(e):l(e)}var n=a(228),o=a(423),l=a(424),i="[object Null]",s="[object Undefined]",u=n?n.toStringTag:void 0;e.exports=r},function(e,t,a){var r=a(182),n=r(Object,"create");e.exports=n},function(e,t,a){function r(e,t){var a=e.__data__;return n(t)?a["string"==typeof t?"string":"hash"]:a.map}var n=a(437);e.exports=r},function(e,t,a){function r(e,t,a,r){var l=!a;a||(a={});for(var i=-1,s=t.length;++i<s;){var u=t[i],c=r?r(a[u],e[u],u,a,e):void 0;void 0===c&&(c=e[u]),l?o(a,u,c):n(a,u,c)}return a}var n=a(366),o=a(367);e.exports=r},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(9),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={open:!1},a.updateValue=a.updateValue.bind(a),a.toggleState=a.toggleState.bind(a),a}return o(t,e),l(t,[{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=this.props.label,a="",r=this.state.open,n=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property];n||(a="sui-accordion-item--disabled"),n&&r&&(a="sui-accordion-item--open");var o=s.default.Children.map(this.props.children,function(e){return e}),l=r&&o;return this.props.noBoxBody||(l=s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},r&&o))),s.default.createElement("div",{className:"sui-accordion-item "+a},s.default.createElement("div",{className:"sui-accordion-item-header",onClick:function(){return e.toggleState()}},s.default.createElement("div",{className:"sui-accordion-item-title"},s.default.createElement("label",{htmlFor:"forminator-"+this.props.property,className:"sui-toggle"},s.default.createElement("input",{type:"checkbox",id:"forminator-"+this.props.property,onChange:function(t){e.updateValue(t.target.checked)},checked:n?"checked":""}),s.default.createElement("span",{className:"sui-toggle-slider"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",t),s.default.createElement("span",{className:"sui-toggle-label"},t,this.props.required&&s.default.createElement("span",{className:"sui-error"}," *")))),s.default.createElement("div",{className:"sui-accordion-col-auto"},s.default.createElement("button",{className:"sui-button-icon sui-accordion-open-indicator",onClick:function(){return e.toggleState()}},s.default.createElement("i",{className:"sui-icon-chevron-down","aria-hidden":"true"})))),s.default.createElement("div",{className:"sui-accordion-item-body"},l))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return c(u.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=a(10),l=a(131),i=r(l),s=a(216),u=r(s),c=(0,o.compose)((0,o.applyMiddleware)(i.default))(o.createStore)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(10),o=a(217),l=r(o),i=a(218),s=r(i),u=a(219),c=r(u),p=a(220),f=r(p),d=a(221),m=r(d),h=a(222),b=r(h),y=(0,n.combineReducers)({wrappers:l.default,settings:s.default,modal:c.default,integrationConditions:f.default,behaviorArray:m.default,notifications:b.default});t.default=y},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){var a=t.wrapper,r=e.findIndex(function(e){return e.wrapper_id===a.wrapper_id});return e=(0,l.replaceInPosition)(e,r,a)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_FIELDS":return t.wrappers;case"UPDATE_FIELD":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var l=a(1)},function(e,t,a){"use strict";function r(e,t){var a=t.setting,r=t.value;return e[a]=r,e}function n(e,t){var a=t.settings;return s({},e,a)}function o(e,t){var a=t.settings;return s({},a)}function l(e,t){var a=t.title;return e.formName=a,e}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],a=Object.assign({},e);switch(t.type){case"UPDATE_SETTINGS":return n(a,t);case"RESET_SETTINGS":return o(a,t);case"UPDATE_SETTING":return r(a,t);case"UPDATE_TITLE":return l(a,t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e};t.default=i},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={modalType:null,modalProps:{}};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case"SHOW_MODAL":return{modalProps:t.modalProps,modalType:t.modalType,type:t.type};case"HIDE_MODAL":return r;default:return e}}},function(e,t,a){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_INTEGRATION_CONDITIONS":return t.conditions;default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;a(1)},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){var a=t.behavior,r=e.findIndex(function(e){return e.slug===a.slug});return e=(0,l.replaceInPosition)(e,r,a)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_BEHAVIORS":return t.behaviors;case"UPDATE_BEHAVIOR":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var l=a(1)},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(e,t){var a=t.notification,r=e.findIndex(function(e){return e.slug===a.slug});return e=(0,l.replaceInPosition)(e,r,a)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"UPDATE_NOTIFICATIONS":return t.notifications;case"UPDATE_NOTIFICATION":return n([].concat(r(e)),t);default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var l=a(1)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateIntegrationConditions=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_INTEGRATION_CONDITIONS",conditions:e})}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateBehaviorArray=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_BEHAVIORS",behaviors:e})}},t.updateBehavior=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_BEHAVIOR",behavior:e})}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateNotifications=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_NOTIFICATIONS",notifications:e})}},t.updateNotification=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_NOTIFICATION",notification:e})}}},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(360),f=(r(p),function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.openModal=a.openModal.bind(a),a.groupId=_.isUndefined(a.props.group)?"":a.props.group,a.actionText=a.groupId?(0,c.translate)("Add fields to group"):(0,c.translate)("Insert Fields"),a}return l(t,e),i(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1,title:this.actionText},"insert-fields")}},{key:"openModal",value:function(){this.props.actions.modalActions.showModal({open:!0,title:this.actionText,closeModal:this.closeModal,id:"insert-fields",groupId:this.groupId,activeElement:jQuery(document.activeElement),focusFirst:".modal-close-button"},"insert-fields")}},{key:"render",value:function(){if("true"===this.props.header)return u.default.createElement("div",{className:"sui-box-header fui-builder-section--insert"},u.default.createElement("button",{className:"sui-button sui-button-purple forminator-open-insert-fields",onClick:this.openModal},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),this.actionText));var e=void 0;return 0!==this.props.wrappers.length||this.groupId||(e=u.default.createElement(u.default.Fragment,null,u.default.createElement("p",{className:"sui-block-content-center"},u.default.createElement("small",null,(0,c.translate)("A form without fields isn’t going to be very useful… Add your first field above!"))),forminatorData.showBranding&&u.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-create-modal.png",srcSet:forminatorData.imagesUrl+"/forminator-create-modal.png 1x,\n\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-create-modal@2x.png 2x",className:"sui-image sui-image-center"}))),u.default.createElement("div",{className:"fui-builder-fields--footer"},u.default.createElement("button",{className:"sui-button sui-button-dashed forminator-open-insert-fields",onClick:this.openModal},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),this.actionText),e)}}]),t}(s.Component));t.default=f},function(e,t,a){var r=a(182),n=a(84),o=r(n,"Map");e.exports=o},function(e,t,a){var r=a(84),n=r.Symbol;e.exports=n},function(e,t,a){function r(e){return l(e)?n(e):o(e)}var n=a(368),o=a(451),l=a(372);e.exports=r},function(e,t){var a=Array.isArray;e.exports=a},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){function a(e){return function(t){return e(t)}}e.exports=a},function(e,t,a){(function(e){var r=a(364),n="object"==typeof t&&t&&!t.nodeType&&t,o=n&&"object"==typeof e&&e&&!e.nodeType&&e,l=o&&o.exports===n,i=l&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s}).call(t,a(231)(e))},function(e,t){function a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=a},function(e,t,a){var r=a(459),n=a(374),o=Object.prototype,l=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return l.call(e,t)}))}:n;e.exports=s},function(e,t,a){var r=a(463),n=a(227),o=a(464),l=a(465),i=a(466),s=a(209),u=a(365),c=u(r),p=u(n),f=u(o),d=u(l),m=u(i),h=s;(r&&"[object DataView]"!=h(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=h(new n)||o&&"[object Promise]"!=h(o.resolve())||l&&"[object Set]"!=h(new l)||i&&"[object WeakMap]"!=h(new i))&&(h=function(e){var t=s(e),a="[object Object]"==t?e.constructor:void 0,r=a?u(a):"";if(r)switch(r){case c:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case m:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,a){function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}var n=a(469);e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=_.isUndefined(a.props.prefix)?"":a.props.prefix+"_";return a.validProp=o+"validation",a.validTextProp=o+"validation_message",a}return o(t,e),l(t,[{key:"toggleValue",value:function(e){this.props.updateProperty(this.validProp,e)}},{key:"render",value:function(){var e=this,t=!_.isUndefined(this.props.state[this.validProp])&&this.props.state[this.validProp],a=_.isUndefined(this.props.state[this.validTextProp])?"":this.props.state[this.validTextProp];return s.default.createElement("div",{className:"sui-box-settings-row"},s.default.createElement("div",{className:"sui-box-settings-col-2"},s.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,u.translate)("Validate")),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("Make sure the user has filled out this field correctly and warn them when they haven't.")),s.default.createElement("div",{className:"sui-side-tabs",style:{marginTop:"10px"}},s.default.createElement("div",{className:"sui-tabs-menu"},s.default.createElement("div",{className:"sui-tab-item"+(t?"":" active"),onClick:this.toggleValue.bind(this,!1)},(0,u.translate)("None")),s.default.createElement("div",{className:"sui-tab-item"+(t?" active":""),onClick:this.toggleValue.bind(this,!0)},(0,u.translate)("Validate Field"))),s.default.createElement("div",{className:"sui-tabs-content"},s.default.createElement("div",{className:"sui-tab-content sui-tab-boxed"+(t?" active":"")},s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,u.translate)("Validation message")),s.default.createElement("input",{type:"text",id:"forminator-field-name-error-msg",className:"sui-form-control",placeholder:(0,u.translate)("Enter validation message"),value:a,onChange:function(t){e.props.updateProperty(e.validTextProp,t.target.value)}})))))))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){var a=[],r=!0,n=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(r=(l=i.next()).done)&&(a.push(l.value),!t||a.length!==t);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw o}}return a}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),p=a(0),f=r(p),d=a(1),m=a(9),h=r(m),b=a(5),y=r(b),v=a(499),g=r(v),E=a(46),w=r(E),O=a(25),P=r(O),j=a(500),k=r(j),x=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.addOption=a.addOption.bind(a),a.removeOption=a.removeOption.bind(a),a.updateLabel=a.updateLabel.bind(a),a.updateValue=a.updateValue.bind(a),a.updateLimit=a.updateLimit.bind(a),a.updateDefault=a.updateDefault.bind(a),a.updateImage=a.updateImage.bind(a),a.updateBulkValue=a.updateBulkValue.bind(a);var r=!_.isUndefined(a.props.state.bulk_edit)&&a.props.state.bulk_edit;return a.state={options:_.isUndefined(a.props.state.options)?[]:[].concat(n(a.props.state.options)),options_bulk_editor:_.isUndefined(a.props.state.options_bulk_editor)?"":a.props.state.options_bulk_editor,options_calcs:a.props.state.calculations?[].concat(n(a.props.state.options)):[],csv_file:null,is_loading:!r,show_standard:!1},a}return i(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.state.limit_status;this.runEditorFunctions(),this.props.state.bulk_edit||0!==this.state.options_bulk_editor.length&&"enable"!==t?this.props.state.bulk_edit&&"enable"===t&&!this.props.state.calculations&&this.convertToStandard():this.convertToBulk(),this.state.is_loading&&setTimeout(function(){e.setState({is_loading:!1,show_standard:!0}),e.addOptionClassToggle()},400)}},{key:"getSnapshotBeforeUpdate",value:function(e,t){var a=this,r=this.state.options,n=this.props.state.bulk_edit,o=this.state.is_loading,l=void 0,i=void 0;if(n||!e.state.bulk_edit||o||this.setState({is_loading:!0}),!n&&o){var s=r.length<50?400:700;clearTimeout(i),i=setTimeout(function(){a.setState({is_loading:!1,show_standard:!0})},s)}return clearTimeout(l),n&&this.props.state.options_bulk_editor!==e.state.options_bulk_editor?l=setTimeout(function(){a.convertToStandard()},500):n||this.props.state.options===e.state.options||(l=setTimeout(function(){a.convertToBulk()},500)),null}},{key:"componentDidUpdate",value:function(e,t){this.props.state.bulk_edit===e.state.bulk_edit&&(this.state.is_loading||this.props.state.bulk_edit)||(this.runEditorFunctions(),this.addOptionClassToggle()),this.state.options_bulk_editor===t.options_bulk_editor&&this.props.state.options_expanded===e.state.options_expanded||this.addOptionClassToggle()}},{key:"runEditorFunctions",value:function(){var e=this,t=this.props.state.bulk_edit,a=this.state.is_loading;if(this.$el=jQuery(this.el),this.$importError=this.$el.find(".importer-error"),!t&&!a){this.moveOption=this.moveOption.bind(this);var r=!0;this.$el.find(".fui-multi-options").sortable({helper:"clone",start:function(t,a){r&&(e.$el.find(".fui-multi-options").sortable("refreshPositions"),r=!1)},stop:function(t,a){var r=a.item.index();e.$el.find(".fui-multi-options").sortable("cancel");var n=a.item.index();e.moveOption(n,r)}})}if(t){e.setState({show_standard:!1}),window.File&&window.FileReader&&window.FileList&&window.Blob||this.showError((0,d.translate)("The File APIs are not fully supported in this browser. You may copy and paste your options on the text area above or switch to a modern browser to use the importer."));var n=this.$el.find(".upload-csv-btn"),o=this.$el.find(".import-csv-btn"),l=this.$el.find(".uploaded-csv-file"),i=l.find(".remove-file"),s=this.$el.find("#upload-csv-input");this.$el.find(".upload-csv-btn, .uploaded-csv-file > span").on("click",function(){s.trigger("click"),e.hideError()}),i.on("click",function(){s.val("").trigger("change")}),s.on("change",function(){var t=s.val();if(t.length>0){e.setState({csv_file:s.get(0).files[0]});"csv"!==t.slice(2+(t.lastIndexOf(".")-1>>>0))?(i.trigger("click"),e.showError((0,d.translate)("Whoops, only .csv filetype is allowed."))):(o.prop("disabled",!1),n.hide(),l.show(),l.find("> span").html(t.replace(/^.*[\\\/]/,"")),0!==e.props.state.options_bulk_editor.length&&e.showError((0,d.translate)("Importing this will replace your current options. Click import to continue."),"warning"))}else o.prop("disabled",!0),n.show(),l.hide(),l.find("> span").html(""),e.hideError()}),o.on("click",function(){e.importCsv()})}}},{key:"importCsv",value:function(){if(window.File&&window.FileReader&&window.FileList&&window.Blob){var e=this,t=this.$el.find("#upload-csv-input"),a=this.state.csv_file;if(t.get(0).files){var r=a,n=new FileReader;this.setState({options_bulk_editor:""}),n.onload=function(){var t=n.result;-1!==t.indexOf("Option label; Option value")&&(t=t.substring(t.indexOf("\n")+1)),e.props.updateProperty("options_bulk_editor",t),e.setState({options_bulk_editor:t}),e.convertToStandard()},n.readAsText(r),this.setState({csv_file:null}),t.trigger("change")}else e.showError((0,d.translate)("This browser doesn't seem to support the `files` property of file inputs."))}}},{key:"showError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";"error"!==t?this.$importError.removeClass("sui-notice-error").addClass("sui-notice-"+t):this.$importError.removeClass().addClass("importer-error sui-notice sui-notice-error"),this.$importError.find("p").text(e),this.$importError.addClass("sui-active"),this.$importError.show()}},{key:"hideError",value:function(){this.$importError.find("p").text(""),this.$importError.removeClass("sui-active"),this.$importError.hide()}},{key:"componentWillUnmount",value:function(){jQuery("#forminator-modal").off("scroll"),this.$el.off().removeData()}},{key:"updateState",value:function(e){this.setState({options:e}),this.props.updateProperty("options",e),this.convertToBulk()}},{key:"updateLabel",value:function(e,t){var a=this.state.options;a[e].label=t,this.updateState(a)}},{key:"updateLimit",value:function(e,t){var a=this.state.options;a[e].limit=t,this.updateState(a)}},{key:"updateValue",value:function(e,t){var a=this.state.options;a[e].value=t,this.updateState(a)}},{key:"moveOption",value:function(e,t){var a=this.state.options;a.splice(t,0,a.splice(e,1)[0]),this.updateState(a)}},{key:"updateDefault",value:function(e,t){var a=this.state.options;this.props.isRadio&&"true"===this.props.isRadio&&_.map(a,function(e,t){a[t].default=!1}),a[e].default=t,this.updateState(a)}},{key:"removeOption",value:function(e){var t=this.state.options;t.splice(e,1),this.updateState(t)}},{key:"updateImage",value:function(e,t,a){var r=this.state.options;"image"===a&&(r[e].image=t),"image"!==a&&(r[e].image_filename=t),this.updateState(r)}},{key:"addOption",value:function(){var e=this.state.options,t=(0,d.randNumber)()+"-"+(0,d.randNumber)();e.push({label:"",value:"",limit:"",default:!1,key:t}),this.updateState(e),this.scrollToNewOpt()}},{key:"scrollToNewOpt",value:function(){var e=jQuery(".standard-editor"),t=void 0;clearTimeout(t),t=setTimeout(function(){e.animate({scrollTop:e.prop("scrollHeight")},300)},200)}},{key:"addOptionClassToggle",value:function(){var e=void 0;clearTimeout(e),e=setTimeout(function(){var e=jQuery(".standard-editor").next(".fui-multi-options");jQuery(".standard-editor").outerHeight()>460?e.addClass("add-option-box"):e.removeClass("add-option-box")},50)}},{key:"generateUniqId",value:function(){return(0,d.randNumber)()+"-"+(0,d.randNumber)()}},{key:"updateBulkValue",value:function(){var e=this.state.options_bulk_editor;return this.setState({options_bulk_editor:e}),e}},{key:"convertToBulk",value:function(){var e=this.state.options,t=this.props.state.type,a=this.props.state.value_type,r="",n=!1;_.map(e,function(e,o){o>0&&(r+="\n");var l=e.label,i=e.value;r+=l,r+=";",_.isUndefined(i)?_.isUndefined(l)?r+="":r+=l:r+=i,_.isUndefined(e.default)||!e.default||("radio"===t||"select"===t&&"single"===a)&&n?(r+="; ",r+="0"):e.default&&(r+="; ",r+="1",n=!0),"select"===t?_.isUndefined(e.limit)||_.isEmpty(e.limit)||(r+="; ",r+=e.limit):_.isUndefined(e.image)||_.isEmpty(e.image)||(r+="; ",r+=e.image)}),this.setState({options_bulk_editor:r}),this.props.updateProperty("options_bulk_editor",r)}},{key:"convertToStandard",value:function(){var e=this,t=this.props.state.type,a=this.props.state.value_type,r=[],n=this.props.state.options_bulk_editor;if(!_.isUndefined(n)&&n.length>0){var o=0,l=!1;n=n.split(/\r\n|\r|\n/),_.map(n,function(n,i){if(Boolean(n)){var s=n.split(";"),u=!_.isUndefined(s[2])&&1==s[2],c=_.isEmpty(s[0])?(0,d.translate)("Option ")+(o+1):s[0],p=_.isUndefined(s[1])?"":s[1];if(p=_.isEmpty(p)?c:p,r[o]={key:e.generateUniqId(),label:c,value:p},r[o].default=("radio"!==t&&("select"!==t||"single"!==a)||!l)&&u,u&&(l=!0),_.isEmpty(s[3])||("select"===t?"enable"===e.props.state.limit_status&&(r[o].limit=s[3]):(r[o].image=s[3],r[o].image_filename=s[3].replace(/^.*[\\\/]/,""))),e.props.state.calculations){var f=_.find(e.state.options_calcs,function(e){return e.label===c});r[o].calculation=_.isUndefined(f)?"":f.calculation}o++}})}this.setState({options:r}),this.props.updateProperty("options",r)}},{key:"findDuplicateOptions",value:function(e){var t=null;return _.map(e,function(a){var r=_.filter(e,{label:a.label}).length,n=_.filter(e,{value:a.value}).length;switch(!0){case _.isEmpty(a.value):t="Warning! Option value is empty it won't appear in the dropdown.",a.error=!0;break;case r>1&&n>1:t="Warning! You've added options with same label and value.",a.error=!0;break;case r>1:t="Warning! You've added options with same label.",a.error=!0;break;case n>1:t="Warning! You've added options with same value.",a.error=!0;break;default:t=null,a.error=!1}}),[e,t]}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.state.options_expanded)||!this.props.state.options_expanded?(0,d.translate)("Expand All"):(0,d.translate)("Collapse All"),a=!_.isUndefined(this.props.state.bulk_edit)&&this.props.state.bulk_edit,r=this.props.state.type,n="select"!==r?"checkbox_radio_bulk_template.csv":"select_bulk_template.csv",o=this.findDuplicateOptions(this.state.options),l=u(o,2),i=l[0],c=l[1],p=this.state.options_bulk_editor,m=this.state.is_loading,b=this.state.show_standard,v=i.length>1e3,E=0===i.length?"no-option":"";switch(r){case"select":(0,d.translate)("Select");break;case"radio":(0,d.translate)("Radio");break;case"checkbox":(0,d.translate)("Checkbox")}var O=(0,d.translate)("Label; value; selection (0 or 1); image-url");"select"===r&&(O="enable"===this.props.state.limit_status?(0,d.translate)("Label; value; selection (0 or 1); submission limit"):(0,d.translate)("Label; value; selection (0 or 1)"));var j=forminatorData.pluginUrl+"assets/csv/"+n;return f.default.createElement("div",{id:"demo-multi-options--radio",className:"sui-form-field multi-options-bulk",ref:function(t){return e.el=t}},v&&a||c&&f.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-yellow sui-active",style:{display:"block"},"aria-live":"assertive"},f.default.createElement("div",{className:"sui-notice-content"},f.default.createElement("div",{className:"sui-notice-message"},f.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),f.default.createElement("p",null,c?(0,d.translate)(c):(0,d.translate)("Warning! You've added more than 1000 options. Switching back to the standard (non-bulk) editor could make your browser slow or unresponsive. Proceed with caution."))))),f.default.createElement(h.default,null,f.default.createElement(y.default,{cols:"3"},f.default.createElement("label",{id:"label-options",className:"sui-label"},(0,d.translate)("Options"))),f.default.createElement(y.default,{cols:"9"},f.default.createElement("div",{className:"switch-box"},!a&&f.default.createElement(w.default,s({},this.props,{settings:this.props.state,label:t,property:"options_expanded",itemClass:"sui-checkbox sui-checkbox-sm collapse-options"})),"select"!==r&&f.default.createElement(w.default,s({},this.props,{settings:this.props.state,label:(0,d.translate)("Enable Images"),property:"enable_images",itemClass:"sui-checkbox-sm "})),f.default.createElement("span",{className:"bulk-edit-toggle "},f.default.createElement(P.default,s({},this.props,{settings:this.props.state,property:"bulk_edit",label:(0,d.translate)("Bulk Edit"),unWrap:!0})))))),m&&f.default.createElement("div",{className:"multi-opts-preloader"},f.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}," ",(0,d.translate)("Loading"),"...")),!a&&b&&f.default.createElement("div",{className:"sui-accordion sui-accordion-block"},f.default.createElement("div",{className:"fui-multi-options standard-editor "+E},_.map(i,function(t,a){return f.default.createElement(g.default,s({key:a,counter:a,option:t,removeOption:e.removeOption,updateValue:e.updateValue,updateLabel:e.updateLabel,updateLimit:e.updateLimit,updateDefault:e.updateDefault,updateImage:e.updateImage},e.props))})),f.default.createElement("div",{className:"fui-multi-options"},f.default.createElement("button",{className:"fui-add-option",onClick:this.addOption},f.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,d.translate)("Add Option")))),a&&f.default.createElement("div",{className:"fui-multi-options"},f.default.createElement("div",{className:"sui-box sui-message sui-message-lg fui-multi-options-bulk"},f.default.createElement(k.default,s({},this.props,{settings:this.props.state,property:"options_bulk_editor",defaultValue:p,value:p,updateValue:this.updateBulkValue,label:(0,d.translate)("Enter field options (one per line)"),description:(0,d.translate)('Type or paste options above (one per line and separated by semicolons) or click \n {{b}}"+ Predefined options"{{/b}} link to select an option. Example: {{b}}'+O+"{{/b}}",{components:{b:f.default.createElement("b",null)}})})),f.default.createElement("div",{className:"sui-form-field bulk-importer"},f.default.createElement("label",{className:"sui-label"},(0,d.translate)("Import options from CSV")),f.default.createElement("div",{className:"sui-upload"},f.default.createElement("input",{id:"upload-csv-input",type:"file",value:"",readOnly:"readonly",accept:".csv"}),f.default.createElement("button",{className:"sui-upload-button upload-csv-btn"},f.default.createElement("span",{className:"sui-icon-upload-cloud","aria-hidden":"true"}),(0,d.translate)("Upload file")),f.default.createElement("div",{className:"sui-upload-file uploaded-csv-file"},f.default.createElement("span",null),f.default.createElement("button",{className:"remove-file","aria-label":"Remove file"},f.default.createElement("span",{className:"sui-icon-close","aria-hidden":"true"}))),f.default.createElement("button",{role:"button",className:"sui-button sui-button-blue import-csv-btn",disabled:!0},f.default.createElement("span",{className:"sui-icon-download-cloud","aria-hidden":"true"}),(0,d.translate)("Import"))),f.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-error","aria-live":"assertive"},f.default.createElement("div",{className:"sui-notice-content"},f.default.createElement("div",{className:"sui-notice-message"},f.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),f.default.createElement("p",null)))),f.default.createElement("span",{className:"sui-description"},(0,d.translate)("Choose a CSV (.csv) file to import field options and values.")+" ",j&&f.default.createElement("a",{className:"blue",href:j,target:"_blank",download:n},(0,d.translate)("Download csv template")))))))}}]),t}(p.Component);t.default=x},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=(a(21),a(1)),f=a(241),d=r(f),m=a(242),h=r(m),b=a(243),y=r(b),v=a(244),g=r(v),E=a(245),_=(r(E),a(246)),w=r(_),O=a(6),P=r(O),j=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Design Style")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose a pre-made style for your form and further customize it's appearance below."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(P.default,i({},this.props,{property:"form-style",default:"default"}),c.default.createElement(d.default,{value:"default",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Default")),c.default.createElement(h.default,{value:"flat",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Flat")),c.default.createElement(y.default,{value:"bold",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Bold")),c.default.createElement(g.default,{value:"material",boxClass:"sui-tab-content sui-tab-boxed"},(0,p.translate)("Material")),c.default.createElement(w.default,{value:"none",boxClass:"sui-tab-content"},(0,p.translate)("None")))))}}]),t}(u.Component);t.default=j},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--default"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Placeholder"),readOnly:"readonly"}),s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"}),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--flat"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Placeholder"),readOnly:"readonly"}),s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"}),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--bold"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Placeholder"),readOnly:"readonly"}),s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"}),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--material"},s.default.createElement("div",{className:"fui-is_empty"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",readOnly:"readonly"})),s.default.createElement("div",{className:"fui-is_filled"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"})),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"fui-demo fui-demo--custom-form fui-demo--basic"},s.default.createElement("div",{className:"fui-is_empty"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",readOnly:"readonly"})),s.default.createElement("div",{className:"fui-is_filled"},s.default.createElement("label",null,(0,u.translate)("Field Label")),s.default.createElement("input",{type:"text",value:(0,u.translate)("Text"),readOnly:"readonly"})),s.default.createElement("button",null,(0,u.translate)("Button")))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){return s.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},s.default.createElement("div",{className:"sui-notice-content"},s.default.createElement("div",{className:"sui-notice-message"},s.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),s.default.createElement("p",null,(0,u.translate)("You have opted for no stylesheet to be enqueued. The form will inherit styles from your theme's CSS.")))))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(51),f=r(p),d=a(50),m=r(d),h=a(1),b=a(34),y=r(b),v=a(248),g=r(v),E=a(249),w=r(E),O=a(250),P=r(O),j=a(251),k=r(j),x=a(252),N=r(x),C=a(253),S=r(C),T=a(254),F=r(T),D=a(255),M=r(D),A=a(256),V=r(A),R=a(257),U=r(R),I=a(258),L=r(I),B=a(259),q=r(B),W=a(260),$=r(W),z=a(261),Y=r(z),H=a(262),Q=r(H),G=a(263),J=r(G),K=a(264),X=r(K),Z=a(265),ee=r(Z),te=a(266),ae=r(te),re=a(267),ne=r(re),oe=a(268),le=r(oe),ie=a(269),se=r(ie),ue=a(270),ce=r(ue),pe=a(13),fe=r(pe),de=a(2),me=r(de),he=a(6),be=r(he),ye=a(271),ve=r(ye),ge=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"componentDidMount",value:function(){this.loadFonts()}},{key:"componentDidUpdate",value:function(){this.loadFonts()}},{key:"loadFonts",value:function(){if(_.isUndefined(window.forminatorFonts)){var e={isObject:!0},t={action:"forminator_load_google_fonts",data:e,_wpnonce:forminatorData.gFontNonce};m.default.post(forminatorData.ajaxUrl,f.default.stringify(t)).then(function(e){window.forminatorFonts=e.data.data}).catch(function(e){console.log(e)})}}},{key:"hasIndicatorEnabled",value:function(e){return void 0!==e["submission-indicator"]&&"show"===e["submission-indicator"]}},{key:"render",value:function(){var e=(0,h.hasFieldType)("page-break",this.props.wrappers),t=(0,h.hasFieldType)("section",this.props.wrappers),a=(0,h.hasFieldWithAttribute)(this.props.wrappers,"radio","value_type","radio"),r=(0,h.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","single"),n=(0,h.hasFieldWithAttribute)(this.props.wrappers,"checkbox","value_type","checkbox"),o=(0,h.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","multiselect"),l=(0,h.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","picker"),s=(0,h.hasFieldType)("signature",this.props.wrappers),u=(0,h.hasFieldType)("group",this.props.wrappers),p=(0,h.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","select"),f=(0,h.hasFieldWithAttribute)(this.props.wrappers,"time","field_type","select")||(0,h.hasFieldWithAttribute)(this.props.wrappers,"time","time_type","twelve"),d=(0,h.hasFieldWithAttribute)(this.props.wrappers,"address","address_country","true"),m=(0,h.hasFieldWithAttribute)(this.props.wrappers,"name","prefix","true"),b=(0,h.hasFieldType)("gdprcheckbox",this.props.wrappers),v=(0,h.hasFieldType)("upload",this.props.wrappers),E=(0,h.hasFieldType)("currency",this.props.wrappers),O=(0,h.hasFieldType)("stripe",this.props.wrappers),j=(0,h.hasFieldType)("calculation",this.props.wrappers),x=(0,h.hasPostdataFieldWithMultiselect)(this.props.wrappers),C=!_.isUndefined(this.props.preset),T=C||this.hasIndicatorEnabled(this.props.settings),D=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header-design"])?"":this.props.settings.paginationData["pagination-header-design"],A=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header"])?"":this.props.settings.paginationData["pagination-header"];return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,h.translate)("Colors")),c.default.createElement("span",{className:"sui-description"},(0,h.translate)("Adjust the default color combinations to match your theme styling."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(be.default,i({},this.props,{property:"cform-color-settings",default:""}),c.default.createElement(fe.default,{value:"",boxClass:""},(0,h.translate)("Use Default Colors")),c.default.createElement(me.default,{value:"true",label:(0,h.translate)("Custom")},c.default.createElement("div",{className:"sui-accordion"},c.default.createElement("div",{className:"sui-accordion-header"},c.default.createElement("div",null,(0,h.translate)("Element"))),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Form Container")}),c.default.createElement(g.default,this.props)),T&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Submission Indicator")}),c.default.createElement(P.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Response Success")}),c.default.createElement("p",{className:"sui-description"},(0,h.translate)("Successful response message will be displayed after form submission succeeds.")),c.default.createElement(N.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Response Error")}),c.default.createElement("p",{className:"sui-description"},(0,h.translate)("Error response message will be displayed after form submission fails.")),c.default.createElement(k.default,this.props)),(C||e&&"show"===D&&"nav"===A)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Pagination Steps")}),c.default.createElement(ae.default,this.props)),(C||e&&"show"===D&&"bar"===A)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Pagination Progress Bar")}),c.default.createElement(ne.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Fields Basics")}),c.default.createElement(w.default,this.props)),t&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Section")}),c.default.createElement(S.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Input and Textarea")}),c.default.createElement(F.default,this.props)),(l||E||O||j)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Input Extras")}),c.default.createElement(M.default,this.props)),(n||a||b)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Radio and Checkbox")}),c.default.createElement(V.default,this.props)),(r||p||f||d||m)&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Select")}),c.default.createElement(U.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Dropdown List")}),c.default.createElement(L.default,this.props))),d&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Dropdown Search")}),c.default.createElement(q.default,this.props)),(o||x)&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Multi Select")}),c.default.createElement($.default,this.props)),l&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Calendar Basics")}),c.default.createElement(Y.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Calendar Table")}),c.default.createElement(ee.default,this.props))),v&&c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("File Upload"),boxedContent:!1}),c.default.createElement(ve.default,this.props)),s&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("E-Signature")}),c.default.createElement(Q.default,this.props))),u&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Field Group")}),c.default.createElement(J.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Repeater Button"),boxedContent:!1}),c.default.createElement(X.default,this.props))),e&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Button Back")}),c.default.createElement(le.default,this.props)),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Button Next")}),c.default.createElement(se.default,this.props))),c.default.createElement(y.default,i({},this.props,{label:(0,h.translate)("Submit Button")}),c.default.createElement(ce.default,this.props)))))))}}]),t}(u.Component);t.default=ge},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(0,0,0,0)"),property:(0,p.getThemePrefix)(this.props)+"cform-form-border",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(0,0,0,0)"),property:(0,p.getThemePrefix)(this.props)+"cform-form-background",label:(0,p.translate)("Background color"),isAlpha:!0})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"cform-label-color",label:(0,p.translate)("Label")})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"cform-asterisk-color",label:(0,p.translate)("Required asterisk")})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"label-helper-color",label:(0,p.translate)("Description")})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"label-validation-background",label:(0,p.translate)("Error message BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"label-validation-color",label:"material"!==this.props.formDesign?(0,p.translate)("Error message color"):(0,p.translate)("Global error color"),description:"material"===this.props.formDesign?(0,p.translate)("This color will be used when fields throw an error as text color, border color, etc."):""})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F8F8F8"),property:(0,p.getThemePrefix)(this.props)+"response-loading-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666"),property:(0,p.getThemePrefix)(this.props)+"response-loading-color",label:(0,p.translate)("Text color")})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"response-error-border",label:(0,p.translate)("Border color"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"response-error-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333"),property:(0,p.getThemePrefix)(this.props)+"response-error-color",label:(0,p.translate)("Text color")})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABCA1"),property:(0,p.getThemePrefix)(this.props)+"response-success-border",label:(0,p.translate)("Border color"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#BCEEE6"),property:(0,p.getThemePrefix)(this.props)+"response-success-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333"),property:(0,p.getThemePrefix)(this.props)+"response-success-color",label:(0,p.translate)("Text color")})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Title color"),property:(0,p.getThemePrefix)(this.props)+"cform-title-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Subtitle color"),property:(0,p.getThemePrefix)(this.props)+"cform-subtitle-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"input-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"input-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Placeholder"),property:(0,p.getThemePrefix)(this.props)+"input-placeholder",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"input-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"input-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"input-hover-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"input-hover-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"input-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"input-active-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"input-active-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"input-border-error",label:(0,p.translate)("Border color"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=(0,p.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","picker"),t=(0,p.hasFieldType)("calculation",this.props.wrappers),a=(0,p.hasFieldType)("currency",this.props.wrappers),r=(0,p.hasFieldType)("stripe",this.props.wrappers),n=c.default.createElement(c.default.Fragment,null,(e||r)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),label:(0,p.translate)("Icon color")})),t&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"prefix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Prefix color")})),(a||t)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"suffix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Suffix color")})));return r&&(n=c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},(e||r)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),label:(0,p.translate)("Icon color")})),t&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"prefix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Prefix color")})),(a||t)&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"suffix-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),label:(0,p.translate)("Suffix color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},r&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),label:(0,p.translate)("Icon color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},r&&c.default.createElement(d.default,i({},this.props,{property:(0,p.getThemePrefix)(this.props)+"input-icon-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),label:(0,p.translate)("Icon color")}))))),n}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"radio-border-static",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"radio-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"radio-label",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")})),"flat"!==this.props.formDesign||"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image border"),property:(0,p.getThemePrefix)(this.props)+"radio-image-border-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image background"),property:(0,p.getThemePrefix)(this.props)+"radio-image-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Checked"),value:"checked"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"radio-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"radio-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"radio-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),"flat"!==this.props.formDesign||"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image border"),property:(0,p.getThemePrefix)(this.props)+"radio-image-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Image background"),property:(0,p.getThemePrefix)(this.props)+"radio-image-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E1F6FF"),isAlpha:!0}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"radio-border-error",label:(0,p.translate)("Border color"),isAlpha:!0})),"flat"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"radio-background-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"select-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"select-icon-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"select-value-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"select-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"select-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"select-value-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"select-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:(0,p.getThemePrefix)(this.props)+"select-icon-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"select-value-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"select-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"dropdown-border",label:(0,p.translate)("Container border"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),property:(0,p.getThemePrefix)(this.props)+"dropdown-background",label:(0,p.translate)("Container BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-color-static",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-background-hover",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-color-hover",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Selected"),value:"selected"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-background-active",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),property:(0,p.getThemePrefix)(this.props)+"dropdown-option-color-active",label:(0,p.translate)("Option color")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=(r(m),function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,"flat"!==this.props.formDesign&&"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"dropdown-search-border",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),property:(0,p.getThemePrefix)(this.props)+"dropdown-search-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"dropdown-search-color",label:(0,p.translate)("Text color")})))}}]),t}(u.Component));t.default=h},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border",label:"material"!==this.props.formDesign?(0,p.translate)("Container border"):(0,p.translate)("Option border"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),property:(0,p.getThemePrefix)(this.props)+"multiselect-background",label:(0,p.translate)("Container BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-color-static",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border-hover",label:(0,p.translate)("Option border"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-bg-hover",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-color-hover",label:(0,p.translate)("Option color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Selected"),value:"selected"},"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border-active",label:(0,p.translate)("Option border"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),property:(0,p.getThemePrefix)(this.props)+"multiselect-item-bg-active",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"material"!==this.props.formDesign?"#FFFFFF":"#17A8E3",property:(0,p.getThemePrefix)(this.props)+"multiselect-item-color-active",label:(0,p.translate)("Option color")}))),"material"!==this.props.formDesign&&c.default.createElement(y.default,{label:(0,p.translate)("Error"),value:"error"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"multiselect-border-error",label:(0,p.translate)("Container border"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"container",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Container"),value:"container"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:""!==this.props.formDesign?(0,p.translate)("Border"):(0,p.translate)("Header background"),property:(0,p.getThemePrefix)(this.props)+"calendar-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:""!==this.props.formDesign?(0,p.translate)("Background"):(0,p.translate)("Main background"),property:(0,p.getThemePrefix)(this.props)+"calendar-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Navigation"),value:"navigation"},"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Arrows background"),property:(0,p.getThemePrefix)(this.props)+"calendar-arrows-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Arrows color"),property:(0,p.getThemePrefix)(this.props)+"calendar-arrows-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Select"),value:"select"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border"),property:(0,p.getThemePrefix)(this.props)+"calendar-select-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#BBBBBB"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:(0,p.getThemePrefix)(this.props)+"calendar-select-bg",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Color"),property:(0,p.getThemePrefix)(this.props)+"calendar-select-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{value:"default",label:(0,p.translate)("Default")},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"signature-border-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"signature-background-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Placeholder"),property:(0,p.getThemePrefix)(this.props)+"signature-placeholder",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Signature Color"),property:(0,p.getThemePrefix)(this.props)+"signature-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#000000")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Reset icon color"),property:(0,p.getThemePrefix)(this.props)+"signature-reset-icon-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))),c.default.createElement(y.default,{value:"hover",label:(0,p.translate)("Hover")},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"signature-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"signature-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Reset icon color"),property:(0,p.getThemePrefix)(this.props)+"signature-reset-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(y.default,{value:"error",label:(0,p.translate)("Error")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"signature-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(248,248,248,.5)"),property:(0,p.getThemePrefix)(this.props)+"group-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(221,221,221,.5)"),property:(0,p.getThemePrefix)(this.props)+"group-border",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(170,170,170,.5)"),property:(0,p.getThemePrefix)(this.props)+"group-divider",label:(0,p.translate)("Divider color"),isAlpha:!0})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=a(34),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box"},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Button")}),c.default.createElement(h.default,{default:"default",extraClass:"sui-tabs-flushed",type:"tabs"},c.default.createElement(y.default,{value:"default",label:(0,p.translate)("Default")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F8F8F8")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button",defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"repeater-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#AAAAAA")}))),c.default.createElement(y.default,{value:"hover",label:(0,p.translate)("Hover")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F1F1F1")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"repeater-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#AAAAAA")}))),c.default.createElement(y.default,{value:"focus",label:(0,p.translate)("Focus")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button-background-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#F1F1F1")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-button-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"repeater-border-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#AAAAAA")}))))),c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Icon")}),c.default.createElement(h.default,{default:"default",extraClass:"sui-tabs-flushed",type:"tabs"},c.default.createElement(y.default,{value:"default",label:(0,p.translate)("Default")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Color"),property:(0,p.getThemePrefix)(this.props)+"repeater-icon",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))),c.default.createElement(y.default,{value:"hover",label:(0,p.translate)("Hover")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Color"),property:(0,p.getThemePrefix)(this.props)+"repeater-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))),c.default.createElement(y.default,{value:"focus",label:(0,p.translate)("Focus")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Color"),property:(0,p.getThemePrefix)(this.props)+"repeater-icon-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))))),c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Link")}),c.default.createElement(h.default,{default:"default",extraClass:"sui-tabs-flushed",type:"tabs"},c.default.createElement(y.default,{value:"default",label:(0,p.translate)("Default")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-link",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(y.default,{value:"hover",label:(0,p.translate)("Hover")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-link-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(y.default,{value:"focus",label:(0,p.translate)("Focus")},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"repeater-link-focus",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))))))}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table head color"),property:(0,p.getThemePrefix)(this.props)+"calendar-dweek",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#DDDDDD"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")}))),c.default.createElement(y.default,{label:(0,p.translate)("Active"),value:"active"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Current"),value:"current"},"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-border-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-background-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#C8DEE7"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:(0,p.getThemePrefix)(this.props)+"calendar-days-color-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=a(15),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"border",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Border"),value:"border"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Default"),property:(0,p.getThemePrefix)(this.props)+"timeline-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"bold"!==this.props.formDesign&&"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Current"),property:(0,p.getThemePrefix)(this.props)+"timeline-border-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0}))),c.default.createElement(y.default,{label:(0,p.translate)("Label"),value:"label"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Default"),property:(0,p.getThemePrefix)(this.props)+"timeline-text",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Current"),property:(0,p.getThemePrefix)(this.props)+"timeline-text-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(y.default,{label:(0,p.translate)("Dot"),value:"dot"},c.default.createElement(g.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default state colors"))),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-border",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Page number color"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(g.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Current state colors"))),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Border"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-border-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-background-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Page number color"),property:(0,p.getThemePrefix)(this.props)+"timeline-dot-color-current",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")})))))}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label"),property:(0,p.getThemePrefix)(this.props)+"progress-label",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Progress bar BG"),property:(0,p.getThemePrefix)(this.props)+"progress-background",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Progress status BG"),property:(0,p.getThemePrefix)(this.props)+"progress-background-status",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"prev-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABCA1"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"prev-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"prev-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"prev-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"prev-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"prev-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"next-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABCA1"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"next-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"next-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"next-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"next-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#159C85"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:(0,p.getThemePrefix)(this.props)+"next-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#008FCA"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#008FCA"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-submit-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(34),d=r(f),m=a(272),h=r(m),b=a(273),y=r(b),v=a(274),g=r(v),E=a(275),_=r(E),w=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","single")||(0,p.hasFieldWithAttribute)(this.props.wrappers,"postdata","post_image","false"),t=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","multiple");return c.default.createElement("div",{className:"sui-box"},e&&c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Single File Uploader")}),c.default.createElement(h.default,this.props))),t&&c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Multiple Files Uploader")}),c.default.createElement(y.default,this.props)),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Uploaded File")}),c.default.createElement(g.default,this.props))),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Uploaded File Delete Button")}),c.default.createElement(_.default,this.props)))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-background-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#1ABC9C"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-color-static",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#01A383"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-color-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-background-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#01A383"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:(0,p.getThemePrefix)(this.props)+"button-upload-color-active",defaultValue:""+(0,p.getDefaultValue)(this.props,"#FFFFFF")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(8),d=r(f),m=a(2),h=r(m),b=a(4),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(h.default,{value:"default",label:(0,p.translate)("Default")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Message text color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-text-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#666666")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Message link color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-link-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3")}))),c.default.createElement(h.default,{value:"hover",label:(0,p.translate)("Hover")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E6E6E6"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-hover",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))),c.default.createElement(h.default,{value:"drop",label:(0,p.translate)("Drop")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-drop",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E1F6FF"),isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-drop",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-drop",defaultValue:""+(0,p.getDefaultValue)(this.props,"#17A8E3"),isAlpha:!0}))),c.default.createElement(h.default,{value:"error",label:(0,p.translate)("Error")},"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-background-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#EDEDED"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:"flat"===this.props.formDesign?(0,p.translate)("Left border color"):(0,p.translate)("Border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-panel-icon-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771"),isAlpha:!0}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(8),d=r(f),m=a(2),h=r(m),b=a(4),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(d.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(h.default,{value:"default",label:(0,p.translate)("Default")},"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview border color"),description:(0,p.translate)("Default state border will not appear when file uploaded is an image."),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-border-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-background-default",defaultValue:"flat"===this.props.formDesign?"#EDEDED":"#FFFFFF"})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-icon-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File name color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-name-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#333333")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File size color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-size-default",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Loading icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-loader-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#888888")}))),c.default.createElement(h.default,{value:"error",label:(0,p.translate)("Error")},c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview border color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-border-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562")})),"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview background color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-background-error",defaultValue:"flat"===this.props.formDesign?"#EDEDED":"#FFFFFF"})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-preview-icon-error",defaultValue:""+(0,p.getDefaultValue)(this.props,"#777771")})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File size icon color"),property:(0,p.getThemePrefix)(this.props)+"multiupload-file-error-color",defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(4),d=r(f),m=a(8),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(h.default,{default:"default",type:"tabs",extraClass:"sui-tabs-flushed"},c.default.createElement(y.default,{label:(0,p.translate)("Default"),value:"default"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"rgba(0,0,0,0)"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-background-static",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-color-static",label:(0,p.translate)("Icon color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Hover"),value:"hover"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-background-hover",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-color-hover",label:(0,p.translate)("Icon color")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#F9E4E8"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-background-active",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:""+(0,p.getDefaultValue)(this.props,"#E04562"),property:(0,p.getThemePrefix)(this.props)+"button-upload-delete-color-active",label:(0,p.translate)("Icon color")}))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(2),d=r(f),m=a(6),h=r(m),b=a(34),y=r(b),v=a(13),g=r(v),E=a(277),w=r(E),O=a(15),P=r(O),j=a(8),k=r(j),x=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=(0,p.hasFieldType)("page-break",this.props.wrappers),t=(0,p.hasFieldType)("section",this.props.wrappers),a=(0,p.hasFieldWithAttribute)(this.props.wrappers,"radio","value_type","radio"),r=(0,p.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","single"),n=(0,p.hasFieldWithAttribute)(this.props.wrappers,"checkbox","value_type","checkbox"),o=(0,p.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","multiselect"),l=(0,p.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","picker"),s=(0,p.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","select"),u=(0,p.hasFieldWithAttribute)(this.props.wrappers,"time","field_type","select")||(0,p.hasFieldWithAttribute)(this.props.wrappers,"time","time_type","twelve"),f=(0,p.hasFieldWithAttribute)(this.props.wrappers,"address","address_country","true"),m=(0,p.hasFieldWithAttribute)(this.props.wrappers,"name","prefix","true"),b=(0,p.hasFieldType)("gdprcheckbox",this.props.wrappers),v=(0,p.hasFieldType)("currency",this.props.wrappers),E=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","single")||(0,p.hasFieldWithAttribute)(this.props.wrappers,"postdata","post_image","false"),O=(0,p.hasFieldWithAttribute)(this.props.wrappers,"upload","file-type","multiple"),j=(0,p.hasFieldType)("signature",this.props.wrappers),x=(0,p.hasFieldType)("calculation",this.props.wrappers),N=(0,p.hasFieldType)("group",this.props.wrappers),C=!_.isUndefined(this.props.preset),S=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header-design"])?"":this.props.settings.paginationData["pagination-header-design"],T=_.isUndefined(this.props.settings.paginationData)||_.isUndefined(this.props.settings.paginationData["pagination-header"])?"":this.props.settings.paginationData["pagination-header"];return c.default.createElement(P.default,{label:(0,p.translate)("Fonts"),description:(0,p.translate)("By default this form will inherit the fonts your theme uses. You can overwrite these fonts with custom ones from {{link}}Bunny Fonts{{/link}}.",{components:{link:c.default.createElement("a",{href:"https://fonts.bunny.net/about",target:"_blank"})}})},c.default.createElement(h.default,i({},this.props,{property:"form-font-family",default:""}),c.default.createElement(g.default,{value:""},(0,p.translate)("Use Theme Fonts")),c.default.createElement(d.default,{value:"custom",label:(0,p.translate)("Custom")},c.default.createElement("div",{className:"sui-accordion"},c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Response Message")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-response",defaultSize:"15",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),(C||e&&"show"===S&&"nav"===T)&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Pagination Steps")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-timeline",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),(C||e&&"show"===S&&"bar"===T)&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Pagination Progress Bar")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-progress",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Fields Label")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-label",defaultSize:"13",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"700"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Fields Description")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-description",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Fields Error Message")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-validation",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),t&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Section Title")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-title",defaultSize:"45",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Section Subtitle")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-subtitle",defaultSize:"18",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"})))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Input and Textarea")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-input",defaultSize:"16",defaultFont:"Roboto",defaultWeight:"400"}))),x&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Input Prefix")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-input-prefix",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),(v||x)&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Input Suffix")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-input-suffix",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),(n||a||b)&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Radio and Checkbox")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-radio",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),(r||s||u||f||m)&&c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Select")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-select",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Dropdown")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-dropdown",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"})))),l&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Calendar")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-calendar",defaultFont:"custom",defaultCustom:"inherit",familyOnly:!0}))),o&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Multi Select")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-multiselect",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),E&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Single File Upload")}),c.default.createElement(k.default,i({},this.props,{type:"tabs",default:"upload-single-button",extraClass:"sui-tabs-flushed"}),c.default.createElement(w.default,i({},this.props,{value:"upload-single-button",label:(0,p.translate)("Upload Button"),prefix:"upload-single-button",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"700"})),c.default.createElement(w.default,i({},this.props,{value:"upload-single-text",label:(0,p.translate)("File Name"),prefix:"upload-single-text",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"700"})))),O&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Multiple Files Upload")}),c.default.createElement(k.default,i({},this.props,{type:"tabs",default:"upload-multiple-panel",extraClass:"sui-tabs-flushed"}),c.default.createElement(w.default,i({},this.props,{value:"upload-multiple-panel",label:(0,p.translate)("Upload Panel"),prefix:"upload-multiple-panel",defaultSize:"13",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"})),c.default.createElement(w.default,i({},this.props,{value:"upload-multiple-file-name",label:(0,p.translate)("File Name"),prefix:"upload-multiple-file-name",defaultSize:"13",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"})),c.default.createElement(w.default,i({},this.props,{value:"upload-multiple-file-size",label:(0,p.translate)("File Size"),prefix:"upload-multiple-file-size",defaultSize:"12",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"})))),j&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("E-Signature Placeholder")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-esign-placeholder",defaultSize:"16",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"400"}))),N&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Repeater Button")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-repeater-button",defaultSize:"12",defaultFont:"Roboto",defaultWeight:"500"}))),e&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Pagination Buttons")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-pagination-buttons",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"}))),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Submit Button")}),c.default.createElement(w.default,i({},this.props,{prefix:"cform-button",defaultSize:"14",defaultFont:"custom",defaultCustom:"inherit",defaultWeight:"500"})))))))}}]),t}(u.Component);t.default=x},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(9),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=a(16),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"backwardsCompat",value:function(e,t){return _.contains(t,e)||t.push(e),t}},{key:"render",value:function(){var e=(0,p.getThemePrefix)(this.props),t=e+this.props.prefix,a="basic-"===e?"":this.props.defaultFont,r=_.isUndefined(this.props.settings[t+"-font-family"])?a:this.props.settings[t+"-font-family"],n=_.isUndefined(this.props.settings[t+"-custom-family"])?this.props.defaultCustom:this.props.settings[t+"-custom-family"],o="basic-"===e?"":this.props.defaultWeight,l=_.isUndefined(this.props.settings[t+"-font-weight"])?o:this.props.settings[t+"-font-weight"],s="basic-"===e?"":this.props.defaultSize,u=_.isUndefined(this.props.settings[t+"-font-size"])?s:this.props.settings[t+"-font-size"],f=(0,p.getFontVariants)(r,window.forminatorFonts),m=this.backwardsCompat(l,f);return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Font Family"),placeholder:(0,p.translate)("Roboto"),property:t+"-font-family",defaultValue:""+(0,p.getDefaultValue)(this.props,r)}),_.map(window.forminatorFonts,function(e){return c.default.createElement("option",{value:e.family,key:e.family},e.family)}),c.default.createElement("option",{value:"",key:"inherit"},(0,p.translate)("inherit")),c.default.createElement("option",{value:"custom",key:"custom"},(0,p.translate)("Custom user font"))),"custom"===r&&c.default.createElement(y.default,i({},this.props,{type:"text",property:t+"-custom-family",defaultValue:""+(0,p.getDefaultValue)(this.props,n),placeholder:(0,p.translate)("E.g., Arial, sans-serif"),label:(0,p.translate)("Custom font family"),prefix:""})))),!this.props.familyOnly&&c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{type:"number",property:t+"-font-size",defaultValue:""+(0,p.getDefaultValue)(this.props,u),placeholder:(0,p.translate)("E.g., 16"),label:(0,p.translate)("Font Size"),note:"in px",prefix:""}))),c.default.createElement(h.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Font Weight"),placeholder:(0,p.translate)("Select font weight"),property:t+"-font-weight",defaultValue:""+(0,p.getDefaultValue)(this.props,l)}),c.default.createElement("option",{value:"",key:"inherit"},(0,p.translate)("inherit")),_.map(m,function(e){return c.default.createElement("option",{value:e,key:e},e)})))))}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(13),d=r(f),m=a(279),h=r(m),b=a(280),y=r(b),v=a(281),g=r(v),E=a(6),_=r(E),w=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Form Container")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Customize the form container's padding and border."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(_.default,i({},this.props,{property:"form-padding",settingsLabel:(0,p.translate)("Padding"),description:(0,p.translate)("By default the form will fill the available space where you insert it. You can add some padding here to better suit your theme.")}),c.default.createElement(d.default,{value:""},(0,p.translate)("None")),c.default.createElement(h.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom"))),c.default.createElement(_.default,i({},this.props,{property:"form-border",settingsLabel:(0,p.translate)("Border"),description:(0,p.translate)("Add an optional border around the form.")}),c.default.createElement(d.default,{value:""},(0,p.translate)("None")),c.default.createElement(y.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom"))),c.default.createElement(_.default,i({},this.props,{property:"fields-style",settingsLabel:(0,p.translate)("Spacing"),default:"open",description:(0,p.translate)("Choose how much spacing you want between each form field.")}),c.default.createElement(d.default,{value:"open"},(0,p.translate)("Comfortable")),c.default.createElement(d.default,{value:"enclosed"},(0,p.translate)("Compact")),c.default.createElement(g.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed"}),(0,p.translate)("Custom")))))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(5),d=r(f),m=a(3),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-row",style:{marginBottom:"10px"}},c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Top"),type:"number",placeholder:"0",property:"form-padding-top"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Bottom"),type:"number",placeholder:"0",property:"form-padding-bottom"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Left"),type:"number",placeholder:"0",property:"form-padding-left"}))),c.default.createElement(d.default,{cols:"3"},c.default.createElement(h.default,i({},this.props,{label:(0,p.translate)("Right"),type:"number",placeholder:"0",property:"form-padding-right"})))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Set your custom padding in pixels.")))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(9),d=(r(f),a(5)),m=r(d),h=a(3),b=r(h),y=a(16),v=r(y),g=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-row",style:{marginBottom:"10px"}},c.default.createElement(m.default,{cols:"4"},c.default.createElement(b.default,i({},this.props,{label:(0,p.translate)("Radius"),note:(0,p.translate)("in px"),type:"number",placeholder:"0",property:"form-border-radius"}))),c.default.createElement(m.default,{cols:"4"},c.default.createElement(b.default,i({},this.props,{label:(0,p.translate)("Thickness"),note:(0,p.translate)("in px"),type:"number",placeholder:"0",property:"form-border-width"}))),c.default.createElement(m.default,{cols:"4"},c.default.createElement(v.default,i({},this.props,{property:"form-border-style",label:(0,p.translate)("Style")}),c.default.createElement("option",{value:"solid"},(0,p.translate)("Solid")),c.default.createElement("option",{value:"dashed"},(0,p.translate)("Dashed")),c.default.createElement("option",{value:"dotted"},(0,p.translate)("Dotted")),c.default.createElement("option",{value:"none"},(0,p.translate)("None"))))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Note: Set the color of the border in the Colors settings area above.")))}}]),t}(u.Component);t.default=g},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(3),f=r(p),d=a(1),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(f.default,i({},this.props,{label:(0,d.translate)("Spacing"),note:(0,d.translate)("in pixels"),type:"number",placeholder:(0,d.translate)("0"),property:(0,d.getThemePrefix)(this.props)+"spacing"}))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(25),d=r(f),m=a(172),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Custom CSS")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("For more advanced customization options use custom CSS."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("div",{style:{marginBottom:"10px"}},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable custom CSS"),property:"use-custom-css",unWrap:!0}))),!_.isUndefined(this.props.settings["use-custom-css"])&&this.props.settings["use-custom-css"]&&c.default.createElement(h.default,i({},this.props,{property:"custom_css",type:"form"})))))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=(r(u),a(16)),p=r(c),f=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.afterSave=a.afterSave.bind(a),a}return i(t,e),s(t,[{key:"replaceInPosition",value:function(e,t,a){return[].concat(n(e.slice(0,t)),[a],n(e.slice(t+1)))}},{key:"updateState",value:function(e){this.props.actions.builderActions.updateFields(e)}},{key:"afterSave",value:function(e){var t=(Object.assign({},this.props.wrappers),[]);if(jQuery(".field-required select").length>0){var a="";jQuery(".field-required select option:selected").map(function(){"auto"!==(a=jQuery(this).val())&&t.push(a)}),t=[].concat(n(new Set(t)))}var r=_.map(this.props.wrappers,function(e,a){return e.fields.map(function(e){return e.required=-1!==t.indexOf(e.element_id),e}),e});this.updateState(r)}}]),t}(p.default);t.default=f},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(25),d=r(f),m=a(6),h=r(m),b=a(2),y=r(b),v=a(3),g=r(v),E=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),s(t,[{key:"render",value:function(){var e=forminatorData.currentForm.settings["form-type"]||"default",t="login"===e||"leads"===e;return _.isUndefined(this.props.settings["akismet-protection"])&&(this.props.settings["akismet-protection"]=1),forminatorData.akismetEnabled||(this.props.settings["akismet-protection"]=0),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Security")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Added layers of security to prevent spam submissions."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},"form"===this.props.moduleSlug&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable Honeypot protection"),property:"honeypot",description:(0,p.translate)("Enabling this feature tricks spam bots by giving them a hidden challenge only bots will see. If the bot tries the challenge we know it's not a human and prevent the form being submitted.")})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable Akismet spam protection"),property:"akismet-protection",disabled:!forminatorData.akismetEnabled,description:(0,p.translate)("If you have installed the {{link}}Akismet anti-spam plugin{{/link}}, you can enable this option to tell Forminator how to handle submissions that Akismet flags as spam.",{components:{link:c.default.createElement("a",{target:"_blank",href:"https://wordpress.org/plugins/akismet/"})}})}),c.default.createElement(h.default,i({},this.props,{property:"akismet-protection-behavior",default:"fail",label:(0,p.translate)("How should Forminator handle spam submissions?")}),c.default.createElement(y.default,{value:"fail",boxClass:"sui-tab-boxed",label:(0,p.translate)("Fail Submission")},c.default.createElement(g.default,i({},this.props,{label:(0,p.translate)("Custom error message"),placeholder:(0,p.translate)("Something went wrong."),property:"spam-fail-message",description:(0,p.translate)("Enter a custom error message to let your visitors know why the submission failed.")}))),c.default.createElement(y.default,{value:"mark_spam",label:(0,p.translate)("Mark as Spam")},c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Entries marked as spam will be captured in the database, but not shown in Submissions. Additionally, Payments, Notification emails, and other automatic processes will be blocked.")))))))),"form"===this.props.moduleSlug&&!t&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Enable logged in submission only"),property:"logged-users",description:(0,p.translate)("Lock down your form submissions to registered users only.")}))))}}]),t}(u.Component);t.default=E},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";function r(e){return window.forminatorChanges.settings=!0,{type:n,title:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateTitle=r;var n=t.UPDATE_TITLE="UPDATE_TITLE"},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.openModal=a.openModal.bind(a),a}return o(t,e),l(t,[{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,title:(0,u.translate)("Preview")},"preview"),jQuery("#forminator-module-styles-"+this.props.id).remove()}},{key:"openModal",value:function(e){this.props.actions.modalActions.showModal({open:!0,title:"Preview",closeModal:this.closeModal},"preview")}},{key:"render",value:function(){return s.default.createElement("button",{id:"forminator-preview-button",className:"sui-button sui-sidenav-hide-md",accessKey:"p",onClick:this.openModal,disabled:this.props.disabled},s.default.createElement("i",{className:"sui-icon-eye","aria-hidden":"true"})," ",(0,u.translate)("Preview"))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(400),f=r(p),d=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"isPayPalWrapper",value:function(){if(this.props.wrapper.fields.length>1)return!1;if(1===this.props.wrapper.fields.length){if("paypal"===this.props.wrapper.fields[0].type)return!0}return!1}},{key:"render",value:function(){var e=this;return c.default.createElement("div",{id:""+this.props.wrapper.wrapper_id,className:"fui-row"},this.props.wrapper.fields.map(function(t){return c.default.createElement(f.default,i({key:t.element_id},e.props,{field:t}))}))}}]),t}(u.Component);t.default=d},function(e,t){function a(e,t){return e===t||e!==e&&t!==t}e.exports=a},function(e,t,a){function r(e){if(!o(e))return!1;var t=n(e);return t==i||t==s||t==l||t==u}var n=a(209),o=a(193),l="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=r},function(e,t,a){(function(t){var a="object"==typeof t&&t&&t.Object===Object&&t;e.exports=a}).call(t,a(37))},function(e,t){function a(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,n=r.toString;e.exports=a},function(e,t,a){function r(e,t,a){var r=e[t];i.call(e,t)&&o(r,a)&&(void 0!==a||t in e)||n(e,t,a)}var n=a(367),o=a(362),l=Object.prototype,i=l.hasOwnProperty;e.exports=r},function(e,t,a){function r(e,t,a){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}var n=a(442);e.exports=r},function(e,t,a){function r(e,t){var a=l(e),r=!a&&o(e),c=!a&&!r&&i(e),f=!a&&!r&&!c&&u(e),d=a||r||c||f,m=d?n(e.length,String):[],h=m.length;for(var b in e)!t&&!p.call(e,b)||d&&("length"==b||c&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,h))||m.push(b);return m}var n=a(444),o=a(445),l=a(230),i=a(369),s=a(448),u=a(449),c=Object.prototype,p=c.hasOwnProperty;e.exports=r},function(e,t,a){(function(e){var r=a(84),n=a(447),o="object"==typeof t&&t&&!t.nodeType&&t,l=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=l&&l.exports===o,s=i?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||n;e.exports=c}).call(t,a(231)(e))},function(e,t){function a(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=a},function(e,t){function a(e,t){return function(a){return e(t(a))}}e.exports=a},function(e,t,a){function r(e){return null!=e&&o(e.length)&&!n(e)}var n=a(363),o=a(370);e.exports=r},function(e,t,a){function r(e){return l(e)?n(e,!0):o(e)}var n=a(368),o=a(454),l=a(372);e.exports=r},function(e,t){function a(){return[]}e.exports=a},function(e,t,a){var r=a(376),n=a(377),o=a(235),l=a(374),i=Object.getOwnPropertySymbols,s=i?function(e){for(var t=[];e;)r(t,o(e)),e=n(e);return t}:l;e.exports=s},function(e,t){function a(e,t){for(var a=-1,r=t.length,n=e.length;++a<r;)e[n+a]=t[a];return e}e.exports=a},function(e,t,a){var r=a(371),n=r(Object.getPrototypeOf,Object);e.exports=n},function(e,t,a){function r(e,t,a){var r=t(e);return o(e)?r:n(r,a(e))}var n=a(376),o=a(230);e.exports=r},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(15),d=r(f),m=a(20),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"toggleValue",value:function(e){this.props.updateProperty(this.requiredProp,e)}},{key:"render",value:function(){var e=_.isUndefined(this.props.state.type)?"radio":this.props.state.type,t="radio"===e?(0,p.translate)("radio button"):(0,p.translate)("checkbox"),a=t.charAt(0).toUpperCase()+t.slice(1);return c.default.createElement(d.default,null,c.default.createElement("label",{className:"sui-settings-label"},a+" "+(0,p.translate)("visibility")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("When using image options, you can hide or show the "+t+" element and its label in frontend. If no image is uploaded, the "+t+" and label will remain visible.")),c.default.createElement(h.default,i({},this.props,{settings:this.props.state,property:"input_visibility",defaultValue:"true",noWrapper:!0}),c.default.createElement("div",{value:"true"},(0,p.translate)("Show")),c.default.createElement("div",{value:"false"},(0,p.translate)("Hide"))))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(508),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addOption=a.addOption.bind(a),a.removeOption=a.removeOption.bind(a),a.updateLabel=a.updateLabel.bind(a),a.updateValue=a.updateValue.bind(a),a}return l(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),this.moveOption=this.moveOption.bind(this);var t=!0;this.$el.find(".fui-multi-options").sortable({start:function(a,r){t&&(e.$el.find(".fui-multi-options").sortable("refreshPositions"),t=!1)},stop:function(t,a){var r=a.item.index();e.$el.find(".fui-multi-options").sortable("cancel");var n=a.item.index();e.moveOption(n,r)}})}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData()}},{key:"updateState",value:function(e){this.setState({options:e}),this.props.updateProperty("options",e),_.isUndefined(this.props.actions)||this.props.actions.settingsActions.updateSetting("options",e)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.options,function(t){var a=Object.assign({},t);e.push(a)}),e}},{key:"updateLabel",value:function(e,t){var a=this.getPropState();a[e].label=t,this.updateState(a)}},{key:"updateValue",value:function(e,t){var a=this.getPropState();a[e].value=t,this.updateState(a)}},{key:"moveOption",value:function(e,t){var a=this.getPropState();a.splice(t,0,a.splice(e,1)[0]),this.updateState(a)}},{key:"removeOption",value:function(e){var t=this.getPropState();t.splice(e,1),this.updateState(t)}},{key:"addOption",value:function(){var e=this.getPropState();e.push({label:"",value:""}),this.updateState(e)}},{key:"render",value:function(){var e=this,t=this.props.state.options;return c.default.createElement("div",{className:"sui-box-builder"},c.default.createElement("div",{className:"sui-box-builder-body",ref:function(t){return e.el=t}},c.default.createElement("div",{className:"sui-builder-fields"},_.map(t,function(t,a){return c.default.createElement(d.default,i({key:a,counter:a,option:t,removeOption:e.removeOption,updateValue:e.updateValue,updateLabel:e.updateLabel},e.props))})),c.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addOption},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,p.translate)("Add Custom User Meta")),this.props.metaDescription&&t.length<=0&&c.default.createElement("span",{className:"sui-description",style:{marginTop:"30px"}},this.props.metaDescription)))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=(a(1),function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a={minHeight:this.props.height?this.props.height:"auto"},r="";return this.props.label&&(r=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),s.default.createElement("div",{className:"sui-form-field"},r,s.default.createElement("textarea",{id:"forminator-field-"+this.props.property,className:"sui-form-control",style:a,placeholder:this.props.placeholder,defaultValue:t,onChange:function(t){e.updateValue(t.target.value)}}),this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(i.Component));t.default=u},,function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var n=a(0),o=r(n),l=a(31),i=a(12),s=a(21),u=a(215),c=r(u),p=a(64),f=r(p),d=a(384),m=r(d),h=(0,c.default)(forminatorData.currentForm);f.default.setLocale(forminatorl10n.locale),window.forminatorChanges={fields:[],settings:!1},window.jQueryFormi=jQuery.noConflict(),(0,l.render)(o.default.createElement(i.Provider,{store:h},o.default.createElement(s.MemoryRouter,null,o.default.createElement(s.Route,{component:m.default}))),document.getElementById("forminator-form-builder"))},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(31),p=(r(c),a(21)),f=(a(12),a(385)),d=r(f),m=a(389),h=r(m),b=a(393),y=r(b),v=a(397),g=r(v),E=a(403),_=r(E),w=a(554),O=r(w),P=a(558),j=r(P),k=a(566),x=r(k),N=a(570),C=r(N),S=a(580),T=r(S),F=a(584),D=r(F),M=a(586),A=r(M),V=a(1),R=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.handleBeforeunload),window.addEventListener("scroll",this.applySticky.bind(this))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.handleBeforeunload)}},{key:"applySticky",value:function(){var e=this.refs.StickyHeader;e.getBoundingClientRect().top<=parseInt(window.getComputedStyle(e).top.replace("px",""))?e.classList.add("sui-is-sticky"):e.classList.remove("sui-is-sticky")}},{key:"handleBeforeunload",value:function(e){if(window.forminatorChanges.length>0||!0===window.forminatorChanges.settings)return e.preventDefault(),e.returnValue=(0,V.translate)("You have unsaved changes, are you sure want to leave this page"),(0,V.translate)("You have unsaved changes, are you sure want to leave this page")}},{key:"render",value:function(){var e=forminatorData.currentForm.settings["form-type"]||"default";return u.default.createElement("div",null,u.default.createElement(d.default,null),u.default.createElement("div",{className:"sui-row-with-sidenav"},u.default.createElement(h.default,this.props),u.default.createElement("div",null,u.default.createElement("div",{id:"forminator-builder-status",className:"sui-box sui-box-sticky",ref:"StickyHeader"},u.default.createElement(y.default,null)),u.default.createElement(p.Route,{exact:!0,path:"/",render:function(){return u.default.createElement(p.Redirect,{to:"/builder"})}}),u.default.createElement(p.Route,{path:"/builder",component:g.default}),u.default.createElement(p.Route,{path:"/appearance",component:O.default}),"registration"===e&&u.default.createElement(p.Route,{path:"/registration",component:j.default}),"login"===e&&u.default.createElement(p.Route,{path:"/login",component:x.default}),u.default.createElement(p.Route,{path:"/behaviour",component:C.default}),u.default.createElement(p.Route,{path:"/notifications",component:T.default}),u.default.createElement(p.Route,{path:"/integrations",component:D.default}),u.default.createElement(p.Route,{path:"/settings",component:A.default}))),u.default.createElement(_.default,this.props))}}]),t}(s.Component);t.default=R},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{id:e.settings.form_id,title:e.settings.formName||"",formType:e.settings["form-type"]||""}}function o(e){return{actions:{navigationActions:(0,i.bindActionCreators)(d,e),modalActions:(0,i.bindActionCreators)(p,e),settingsActions:(0,i.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(83),u=r(s),c=a(71),p=r(c),f=a(359),d=r(f),m=a(386),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,l.connect)(n,o)(h.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return l.default.createElement("div",{className:"sui-header fui-header-with-settings"},l.default.createElement("div",{className:"fui-header-title"},l.default.createElement("h1",{className:"sui-header-title"},(0,i.translate)("Edit Form")),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement(p.default,e))),l.default.createElement("div",{className:"fui-header-settings"},l.default.createElement("div",{className:"sui-actions-left"},l.default.createElement(u.default,e)),l.default.createElement("div",{className:"sui-actions-right"},l.default.createElement(p.default,e))))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=a(0),l=r(o),i=a(1),s=a(387),u=r(s),c=a(388),p=r(c)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(180),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props.title,a=_.isEmpty(t.trim()),r=a?"sui-form-field-error":"",n={};return"leads"===this.props.formType&&(n={borderColor:"#ddd",backgroundColor:"#fafafa",color:"#666"}),c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-form-field "+r},c.default.createElement("label",{htmlFor:"forminator-set-title",id:"forminator-set-title-label",className:"sui-screen-reader-text"},(0,p.translate)("Name your form")),c.default.createElement("input",{type:"text",value:t,placeholder:(0,p.translate)("Give your form a name"),id:"forminator-set-title",className:"sui-form-control",style:n,"aria-labelledby":"forminator-set-title-label","aria-describedby":"forminator-set-title-message","aria-required":"true",accessKey:"t",onChange:function(t){return e.props.actions.navigationActions.updateTitle(t.target.value)},disabled:"leads"===this.props.formType}),c.default.createElement("p",{role:"alert",id:"forminator-set-title-message",className:"sui-error-message",style:{display:a?"block":"none",marginBottom:0}},a&&(0,p.translate)("Please, enter a valid name."))),"leads"!==this.props.formType&&c.default.createElement(d.default,i({},this.props,{type:"form"})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){return forminatorData.showDocLink?o.default.createElement("a",{href:"https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#forms",target:"_blank",className:"sui-button sui-button-ghost"},o.default.createElement("span",{className:"sui-icon-academy"})," ",(0,l.translate)("View Documentation")):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n),l=a(1)},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{id:e.settings.form_id,title:e.settings.formName||"",formType:e.settings["form-type"]||"default"}}function o(e){return{actions:{navigationActions:(0,i.bindActionCreators)(p,e),modalActions:(0,i.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(71),u=r(s),c=a(359),p=r(c),f=a(390),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(n,o)(d.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return l.default.createElement("div",{className:"sui-sidenav fui-sidenav"},l.default.createElement(s.default,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var o=a(0),l=r(o),i=a(391),s=r(i)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(21),p=a(1),f=a(392),d=r(f),m=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"render",value:function(){return u.default.createElement(u.default.Fragment,null,u.default.createElement("ul",{className:"sui-vertical-tabs sui-sidenav-sticky sui-sidenav-hide-md fui-sidenav"},u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/builder",activeClassName:"current"},(0,p.translate)("Fields"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/appearance",activeClassName:"current"},(0,p.translate)("Appearance"))),"registration"===this.props.formType&&u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/registration",activeClassName:"current"},(0,p.translate)("User Registration"))),"login"===this.props.formType&&u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/login",activeClassName:"current"},(0,p.translate)("User Login"))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/behaviour",activeClassName:"current"},(0,p.translate)("Behavior"))),u.default.createElement("li",{className:"sui-vertical-tab"},"leads"!==this.props.formType&&u.default.createElement(c.NavLink,{to:"/notifications",activeClassName:"current"},(0,p.translate)("Email Notifications")),"leads"===this.props.formType&&u.default.createElement(c.NavLink,{to:"#",activeClassName:"current",className:"sui-tooltip sui-tooltip-right sui-tooltip-constrained",style:{"--tooltip-width":"235px"},"data-tooltip":(0,p.translate)("You can configure email notifications on the parent quiz as it is shared between this form and the parent quiz.")},u.default.createElement("span",{style:{opacity:"0.4"}},(0,p.translate)("Email Notifications"),u.default.createElement("i",{className:"sui-icon-lock","aria-hidden":"true"})))),u.default.createElement("li",{className:"sui-vertical-tab"},"leads"!==this.props.formType&&u.default.createElement(c.NavLink,{to:"/integrations",activeClassName:"current"},(0,p.translate)("Integrations")),"leads"===this.props.formType&&u.default.createElement(c.NavLink,{to:"#",activeClassName:"current",className:"sui-tooltip sui-tooltip-right sui-tooltip-constrained",style:{"--tooltip-width":"235px"},"data-tooltip":(0,p.translate)("You can configure integrations on the parent quiz as it is shared between this form and the parent quiz.")},u.default.createElement("span",{style:{opacity:"0.4"}},(0,p.translate)("Integrations"),u.default.createElement("i",{className:"sui-icon-lock","aria-hidden":"true"})))),u.default.createElement("li",{className:"sui-vertical-tab"},u.default.createElement(c.NavLink,{to:"/settings",activeClassName:"current"},(0,p.translate)("Settings")))),u.default.createElement(d.default,this.props,u.default.createElement("option",{value:""},(0,p.translate)("Fields")),u.default.createElement("option",{value:"appearance"},(0,p.translate)("Appearance")),"registration"===this.props.formType&&u.default.createElement("option",{value:"registration"},(0,p.translate)("User Registration")),"login"===this.props.formType&&u.default.createElement("option",{value:"login"},(0,p.translate)("User Login")),u.default.createElement("option",{value:"behaviour"},(0,p.translate)("Behavior")),"leads"!==this.props.formType&&u.default.createElement(u.default.Fragment,null,u.default.createElement("option",{value:"notifications"},(0,p.translate)("Email Notifications")),u.default.createElement("option",{value:"integrations"},(0,p.translate)("Integrations"))),u.default.createElement("option",{value:"settings"},(0,p.translate)("Settings"))))}}]),t}(s.Component);t.default=m},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.select.init(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;this.props.history.push("/"+t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this;return s.default.createElement("div",{className:"sui-form-field sui-sidenav-hide-lg"},s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Navigate")),s.default.createElement("select",{className:"sui-select sui-mobile-nav",ref:function(t){return e.el=t}},this.props.children))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{id:e.settings.form_id,status:e.settings.form_status,state:e,title:e.settings.formName||"",changed:window.forminatorChanges}}function o(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(83),u=r(s),c=a(71),p=r(c),f=a(394),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,l.connect)(n,o)(d.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(50),d=r(f),m=a(51),h=r(m),b=a(395),y=r(b),v=a(396),g=r(v),E=a(32),w=r(E),O=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={publishLoading:!1,draftLoading:!1},a.publish=a.publish.bind(a),a.draft=a.draft.bind(a),a}return l(t,e),s(t,[{key:"publish",value:function(){var e=this,t=this.props.state,a=t.settings,r=a.form_id,n=a.formName,o=_.isUndefined(n)?"":n,l=_.isUndefined(r)?-1:r;this.setState({publishLoading:!0});var i={action:"forminator_save_builder",_wpnonce:forminatorData.formNonce,formName:o,form_id:l,status:"publish",version:forminatorData.version,data:JSON.stringify(t)};setTimeout(function(){e.save(i,"publish")},1500)}},{key:"draft",value:function(){var e=this,t=this.props.state,a=t.settings,r=a.form_id,n=a.formName,o=_.isUndefined(n)?"":n,l=_.isUndefined(r)?-1:r;this.setState({draftLoading:!0});var i={action:"forminator_save_builder",_wpnonce:forminatorData.formNonce,formName:o,form_id:l,status:"draft",version:forminatorData.version,data:JSON.stringify(t)};setTimeout(function(){e.save(i,"draft")},1500)}},{key:"save",value:function(e,t){var a=this,r=this,n=this.props,o=n.status,l=n.state;d.default.post(forminatorData.ajaxUrl,h.default.stringify(e)).then(function(n){var i=(0,p.getFieldsByType)("stripe",l.wrappers);a.reloadPageForSubscriptionPlans(i);var s="draft"===o&&"publish"===t||_.isUndefined(o)&&"publish"===t;if(n.data.success){if(-1===e.form_id&&(a.props.actions.settingsActions.updateSetting("form_id",n.data.data),forminatorData.currentForm.settings.form_id=n.data.data,window.history.pushState({},"Edit Form",forminatorData.formEditUrl+"&id="+n.data.data)),a.props.actions.settingsActions.saveBuilder("form_status",t),s){var u=function(e){r.props.actions.modalActions.showModal({open:!1},"shortcode")};r.props.actions.modalActions.showModal({open:!0,closeModal:u},"shortcode")}}else{s&&r.props.actions.modalActions.showModal({open:!1,closeModal:a.closeModal},"publish");new w.default({type:"error",text:(0,p.translate)("Something went wrong while saving your form. Please try again.")}).open()}a.setState({publishLoading:!1,draftLoading:!1})}).catch(function(e){new w.default({type:"error",text:(0,p.translate)("Something went wrong while saving your form. Please try again.")}).open(),console.log(e),a.setState({publishLoading:!1,draftLoading:!1})})}},{key:"reloadPageForSubscriptionPlans",value:function(e){var t=!1;e.map(function(e){_.isUndefined(e.payments)||e.payments.map(function(e){_.isUndefined(e.payment_method)||"subscription"!==e.payment_method||(_.isUndefined(e.plan_id)||_.isEmpty(e.plan_id))&&(t=!0)})}),t&&(window.forminatorChanges={fields:[],settings:!1,saved:!0},location.reload())}},{key:"render",value:function(){return c.default.createElement("div",{className:"sui-box-status"},c.default.createElement(y.default,i({},this.props,{state:this.state})),c.default.createElement(g.default,i({},this.props,{publish:this.publish,draft:this.draft,state:this.state})))}}]),t}(u.Component);t.default=O},function(e,t,a){"use strict";function r(e){var t=e.status,a="publish"===t?"sui-tag-published":"sui-tag-draft",r=!(!e.state.draftLoading&&!e.state.publishLoading);return o.default.createElement("div",{className:"sui-status"},o.default.createElement("div",{className:"sui-status-module"},"Status",o.default.createElement("span",{className:"sui-tag "+a},function(){switch(t){case"publish":return(0,l.translate)("Published");default:return(0,l.translate)("Draft")}}())),r&&o.default.createElement("div",{className:"sui-status-changes"},o.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,l.translate)("Saving...")),!r&&e.changed.settings&&o.default.createElement("div",{className:"sui-status-changes"},o.default.createElement("i",{className:"sui-icon-update","aria-hidden":"true"}),(0,l.translate)("Unsaved changes")),!r&&!e.changed.settings&&e.changed.saved&&o.default.createElement("div",{className:"sui-status-changes"},o.default.createElement("i",{className:"sui-icon-check-tick","aria-hidden":"true"}),(0,l.translate)("Saved")))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n),l=a(1)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(360),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.publish=a.publish.bind(a),a.draft=a.draft.bind(a),a}return l(t,e),s(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"publish")}},{key:"publish",value:function(){var e=this.props,t=e.status,a=e.title;_.isEmpty(a.trim())||(this.props.publish(),("draft"===t||_.isEmpty(t))&&this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"publish"))}},{key:"draft",value:function(){var e=this.props.title;_.isEmpty(e.trim())||this.props.draft()}},{key:"render",value:function(){var e=this.props.status,t=this.props.state,a=t.draftLoading,r=t.publishLoading,n=forminatorData.currentForm.settings["form-type"]||"default";return c.default.createElement("div",{className:"sui-actions"},"leads"!==n&&c.default.createElement("button",{id:"forminator-module-save",className:"sui-button sui-button-ghost",style:{borderColor:"transparent"},disabled:!!a||r,onClick:this.draft},"publish"===e&&c.default.createElement(u.Fragment,null,c.default.createElement("span",{className:"sui-icon-unpublish","aria-hidden":"true"}),(0,p.translate)("Unpublish")),"publish"!==e&&c.default.createElement(u.Fragment,null,c.default.createElement("span",{className:"sui-icon-save","aria-hidden":"true"}),(0,p.translate)("Save Draft"))),c.default.createElement(d.default,i({},this.props,{disabled:!(!a&&!r)})),c.default.createElement("button",{id:"forminator-module-publish",className:"sui-button sui-button-blue",disabled:!(!a&&!r),onClick:this.publish},c.default.createElement("span",{className:"sui-loading-text"},c.default.createElement("span",{className:"sui-icon-web-globe-world","aria-hidden":"true"}),c.default.createElement("span",{className:"button-text"},function(){switch(e){case"publish":return(0,p.translate)("Update");default:return(0,p.translate)("Publish")}}())),c.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{wrappers:e.wrappers,notifications:e.notifications,submitData:e.settings.submitData||{},changed:window.forminatorChanges,formType:e.settings["form-type"]||""}}function o(e){return{actions:{builderActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e),integrationActions:(0,i.bindActionCreators)(d,e),behaviorsActions:(0,i.bindActionCreators)(h,e),notificationsActions:(0,i.bindActionCreators)(y,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(206),u=r(s),c=a(71),p=r(c),f=a(223),d=r(f),m=a(224),h=r(m),b=a(225),y=r(b),v=a(398),g=function(e){return e&&e.__esModule?e:{default:e}}(v);t.default=(0,l.connect)(n,o)(g.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(226),f=r(p),d=a(399),m=r(d),h=a(401),b=r(h),y=a(402),v=r(y),g=a(1),E=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.props.wrappers.map(function(e){""===e.parent_group||_.isEmpty(_.intersection((0,g.restrictedGroupFields)(),_.pluck(e.fields,"type")))||(e.parent_group="")}),a}return l(t,e),s(t,[{key:"componentDidMount",value:function(){jQuery("html, body").animate({scrollTop:0},"fast")}},{key:"render",value:function(){var e=this,t=function(t){e.props.history.push("/"+t)},a=(0,g.hasFieldType)("page-break",this.props.wrappers);return c.default.createElement("div",{id:"forminator-form-fields",className:"sui-box"},c.default.createElement(f.default,i({},this.props,{header:"true"})),a&&c.default.createElement(b.default,this.props),c.default.createElement(m.default,this.props),c.default.createElement(v.default,this.props),c.default.createElement("div",{className:"sui-box-footer"},c.default.createElement("div",{className:"sui-actions-right"},c.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("appearance")}},(0,g.translate)("Appearance"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(226),d=r(f),m=a(361),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this,t=_.filter(this.props.wrappers,function(e){return!e.parent_group});return c.default.createElement("div",{id:"forminator-builder-fields",className:"fui-builder-fields"},c.default.createElement("div",{className:"fui-builder-form--wrap"},c.default.createElement("span",{className:"fui-swipe"},(0,p.translate)("Swipe"),c.default.createElement("i",{className:"sui-icon-finger-point","aria-hidden":"true"})),c.default.createElement("div",{className:"fui-builder-form"},t.map(function(t){return c.default.createElement(h.default,i({},e.props,{key:t.wrapper_id,wrapper:t}))}))),c.default.createElement(d.default,i({},this.props,{header:"false"})))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(1),d=a(226),m=r(d),h=a(361),b=r(h),y=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.el=p.default.createRef(),a.cloneField=a.cloneField.bind(a),a.trashField=a.trashField.bind(a),a.deleteField=a.deleteField.bind(a),a.closeModal=a.closeModal.bind(a),a.closeDeleteField=a.closeDeleteField.bind(a),a.editSettings=a.editSettings.bind(a),a}return i(t,e),u(t,[{key:"componentDidMount",value:function(){this.drops=[],this.drop=!1,this.$el=jQuery(this.el.current),this.$main=this.$el.closest("#forminator-builder-fields"),this.startDragDrop()}},{key:"closeMenu",value:function(){jQuery(".sui-dropdown").removeClass("open")}},{key:"deleteField",value:function(){if(this.closeMenu(),"page-break"===this.props.field.type)return this.trashField(),!1;this.props.actions.modalActions.showModal({open:!0,field:this.props.field,wrapper:this.props.wrapper,closeModal:this.closeDeleteField,trashField:this.trashField,id:"field-delete",activeElement:jQuery(document.activeElement).closest("ul").siblings(".sui-dropdown-anchor"),focusFirst:".modal-close-button"},"delete")}},{key:"closeDeleteField",value:function(){this.props.actions.modalActions.showModal({open:!1,field:this.props.field,wrapper:this.props.wrapper,closeModal:this.closeDeleteField,trashField:this.trashField},"delete")}},{key:"trashFieldRecursively",value:function(e,t){var a=this,r=this.getWrappersWithoutCurrentField(t,e.element_id);return"group"===e.type&&r.filter(function(t){return t.parent_group===e.element_id}).map(function(e){e.fields.map(function(e){r=a.trashFieldRecursively(e,r)})}),r}},{key:"trashField",value:function(){var e=[].concat(n(this.props.wrappers)),t=this.trashFieldRecursively(this.props.field,e).filter(function(e){return!_.isEmpty(e.fields)});if(t=this.getWrappersFilterCondition(t),t=this.getPaymentFilterCondition(t),t=this.updateCols(t),this.closeMenu(),this.updateState(t),!_.isUndefined(this.props.notifications)&&!_.isEmpty(this.props.notifications)){var a=this.getNotificationFilterCondition(this.props.notifications);this.updateNotificationState(a)}}},{key:"duplicateFieldRecursively",value:function(e,t,a){var r=this,o=(0,f.generateWrapperId)();_.isUndefined(a)&&(a="");var l=[],i=[].concat(n(t));e.map(function(t){t=JSON.parse(JSON.stringify(t));var a=t.element_id,s=1===e.length?12:t.cols,u=(0,f.buildFieldObject)(t,o,s,i,l),c=u.element_id;l=[].concat(n(l),[u]),"group"===t.type&&r.props.wrappers.filter(function(e){return e.parent_group===a}).reverse().map(function(e){i=r.duplicateFieldRecursively(e.fields,i,c)})});var s={wrapper_id:o,parent_group:a,fields:l},u=t.findIndex(function(e){return e.wrapper_id===r.props.wrapper.wrapper_id});return i=this.insertInPosition(i,u+1,s)}},{key:"cloneField",value:function(e){var t=jQuery(e.target).closest(".fui-builder-fields").closest(".ui-draggable").data("id"),a=this.duplicateFieldRecursively([this.props.field],[].concat(n(this.props.wrappers)),t);this.closeMenu(),this.updateState(a)}},{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,field:this.props.field,wrapper:this.props.wrapper},"field-settings")}},{key:"editSettings",value:function(){if(this.closeMenu(),"page-break"===this.props.field.type)return!1;this.props.actions.modalActions.showModal({labelledBy:"modal-title-field-settings",describedBy:"modal-desc-field-settings",open:!0,field:this.props.field,wrapper:this.props.wrapper,closeModal:this.closeModal,isValid:!0,id:"field-settings",activeElement:jQuery(document.activeElement).closest("ul").siblings(".sui-dropdown-anchor"),focusFirst:".modal-close-button"},"field-settings")}},{key:"startDragDrop",value:function(){this.$el.draggable({revert:!0,revertDuration:0,zIndex:100,helper:"clone",cancel:"",distance:10,appendTo:this.$main,start:jQuery.proxy(this.onDragStart,this),drag:jQuery.proxy(this.onDrag,this),stop:jQuery.proxy(this.onDragStop,this)})}},{key:"onDragStart",value:function(e){this.setClasses(),this.createDropPoints(e.target.id)}},{key:"onDrag",value:function(e){var t=this,a=[].concat(n(this.drops)),r=a.reduce(function(a,r){return t.distToCenter(a,e)<t.distToCenter(r,e)?a:r});r?this.selectDropZone(r):(this.drop=!1,jQuery(".fui-drop-use").removeClass("fui-drop-use"))}},{key:"distToCenter",value:function(e,t){return Math.abs(e.center.x-t.pageX)+Math.abs(e.center.y-t.pageY)}},{key:"onDragStop",value:function(){this.updateOnDrop(),this.resetZones(),this.resetClasses()}},{key:"setClasses",value:function(){this.$helper=jQuery(".ui-draggable-dragging"),this.$el.addClass("fui-drop-shadow"),this.$main.addClass("fui-form-builder--dragging"),this.$helper.css("width",this.$el.width()),jQuery(".fui-builder-form").each(function(){var e=jQuery(this);e.children().length||e.append(jQuery('<div class="fui-end-group fui-row"></div>'))})}},{key:"resetClasses",value:function(){this.$el.removeClass("fui-drop-shadow"),this.$main.removeClass("fui-form-builder--dragging")}},{key:"resetZones",value:function(){this.drops=[],this.drop=!1,jQuery(".fui-drop").remove(),jQuery(".fui-drop-view").remove(),jQuery(".fui-form-builder--drop-zone").remove(),jQuery(".fui-end-group").remove()}},{key:"isPayPalWrapper",value:function(e){if(e.fields.length>1)return!1;if(1===e.fields.length){if("paypal"===e.fields[0].type)return!0}return!1}},{key:"createDropPoints",value:function(e){var t=this,a=void 0,r=void 0;this.props.wrappers.forEach(function(a){var n=!1;if((0,f.restrictedGroupFields)().forEach(function(t){e.includes(t)&&(n=!0)}),!a.parent_group||!n){var o=t.getEl(a.wrapper_id),l=t.getPosition(o);if(t.drops.push({id:(0,f.randNumber)(),top:l.top-50,bottom:l.center.y,left:l.left,right:l.right,type:"full",parent:a.parent_group,insert:["before",o],wrapper:a,is_me:!1}),_.size(a.fields)<4){a.fields.map(function(e){var o=t.getEl("field-"+e.element_id);if(o.length){var l=t.getPosition(o),i=o.attr("id")===t.$el.attr("id");if(t.drops.push({id:(0,f.randNumber)(),top:l.top,bottom:l.bottom,left:l.left,right:l.left+l.width,type:"side-before",insert:["before",o],wrapper:a,field:e,is_me:i}),r=e,"group"===e.type&&!n){var s=jQuery("#field-"+e.element_id+" > div > div > div > .fui-builder-form"),u=s.children().last(),c=t.getPosition(u);t.drops.push({id:(0,f.randNumber)(),top:c.center.y,bottom:c.bottom+65,left:c.left,right:c.right,type:"full",parent:e.element_id,insert:["after",u],wrapper:a,is_me:!1})}}});var i=t.getEl("field-"+r.element_id),s=t.getPosition(i),u=i.attr("id")===t.$el.attr("id");t.drops.push({id:(0,f.randNumber)(),top:s.top,bottom:s.bottom,left:s.center.x,right:s.right+20,type:"side-after",insert:["after",i],wrapper:a,field:r,is_me:u})}}}),this.drops=this.drops.filter(function(a){return _.isUndefined(a.wrapper.wrapper_id)||!t.getEl(a.wrapper.wrapper_id).closest("#"+e).length}),a=this.props.wrappers.filter(function(e){return!e.parent_group}).pop();var n=this.getEl(a.wrapper_id),o=this.getPosition(n);this.drops.push({id:(0,f.randNumber)(),top:o.center.y,bottom:o.bottom+65,left:o.left,right:o.right,type:"full",insert:["after",n],wrapper:a,is_me:!1}),this.renderDropPoints()}},{key:"getCenterXY",value:function(e,t,a){var r=Math.round(e.top+a/2);return{x:Math.round(e.left+t/2),y:r}}},{key:"renderDropPoints",value:function(){var e=this,t=void 0;this.drops.forEach(function(a){switch(t=jQuery('<div id="forminator-drop-'+a.id+'" class="fui-drop fui-drop-'+a.type+'"></div>'),a.insert[0]){case"before":t.insertBefore(a.insert[1]);break;case"after":t.insertAfter(a.insert[1])}"full"===a.type||"inside"===a.type?t.css("width",a.right-a.left-20):"side-before"!==a.type&&"side-after"!==a.type||t.css("height",a.bottom-a.top-10),a.center=e.getCenterXY(t.offset(),parseFloat(t.css("width")),parseFloat(t.css("height")))})}},{key:"getPosition",value:function(e){var t=e,a=t.offset(),r=parseFloat(t.css("width")),n=parseFloat(t.css("height"))-10,o=a.top,l=a.left-10,i=void 0,s=t.prev(),u=o+n,c=l+r,p=Math.round(o+n/2),f=Math.round(l+r/2);return this.isRow(t)?s.length>0&&(i=this.getPosition(s),o=i.center.y+20,n=p-o):s.length>0?(i=this.getPosition(s),l=i.center.x):r/=2,{width:r,height:n,top:o,bottom:u,left:l,right:c,center:{y:p,x:f}}}},{key:"isRow",value:function(e){return!!e.hasClass("fui-row")}},{key:"getEl",value:function(e){return jQuery("#"+e)}},{key:"showDropsDebug",value:function(){var e=Math.floor(Math.random()*(this.drops.length-1)),t=this.drops[e],a="2px solid #"+Math.floor(16777215*Math.random()).toString(16),r=jQuery('<div class="fui-drop-view"><span className="fui-drop-view-pos"></span></div>');r.css({top:t.top,left:t.left,width:t.right-t.left,height:t.bottom-t.top,border:a}),this.$main.append(r);var n=jQuery('<div class="fui-drop-view"><span className="fui-drop-view-pos"></span></div>');n.css({top:t.center.y,left:t.center.x,width:15,height:15,border:a,"background-color":"red"}),this.$main.append(n)}},{key:"selectDropZone",value:function(e){this.drop=e;var t=jQuery("#forminator-drop-"+e.id);jQuery(".fui-drop-use").removeClass("fui-drop-use"),t.addClass("fui-drop-use")}},{key:"updateOnDrop",value:function(){var e=this;if(!(_.isUndefined(this.drop.insert)||_.contains((0,f.restrictedGroupFields)(),this.props.field.type)&&(this.isWrapperDrop()&&!_.isUndefined(this.drop.parent)&&this.drop.parent.startsWith("group-")||!this.isWrapperDrop()&&this.drop.wrapper.parent_group))){var t=this.drop.insert[0],a=this.drop.insert[1],r=[].concat(n(this.props.wrappers)),o=Object.assign({},this.props.field);if(this.isWrapperDrop()){var l={wrapper_id:(0,f.generateWrapperId)(),parent_group:this.drop.parent,fields:[o]},i=r.findIndex(function(e){return e.wrapper_id===a.attr("id")});"after"===t&&i++;var s=this.getWrappersWithoutCurrentField(r);s=this.insertInPosition(s,i,l).filter(function(e){return!_.isEmpty(e.fields)}),s=this.updateCols(s),this.updateState(s)}else{var u=r.findIndex(function(t){return t.wrapper_id===e.drop.wrapper.wrapper_id}),c=this.getWrappersWithoutCurrentField(r),p=this.drop.wrapper.fields.findIndex(function(e){return e.element_id===a.data("id")});"after"===t&&p++;var d=this.drop.wrapper,m=this.insertInPosition(d.fields,p,o);d.fields=m,c=this.replaceInPosition(c,u,d).filter(function(e){return!_.isEmpty(e.fields)}),c=this.updateCols(c),this.updateState(c)}}}},{key:"updateState",value:function(e){this.props.actions.builderActions.updateFields(e)}},{key:"updateNotificationState",value:function(e){this.props.actions.notificationsActions.updateNotifications(e)}},{key:"updateCols",value:function(e){return e.map(function(e){var t=12/e.fields.length;e.fields.map(function(e){e.cols=t})}),e}},{key:"getWrappersWithoutCurrentField",value:function(e,t){return _.isUndefined(t)&&(t=this.props.field.element_id),e.map(function(e){return e.fields=e.fields.filter(function(e){return e.element_id!==t}),e})}},{key:"getWrappersFilterCondition",value:function(e){var t=this;return e.map(function(e){return e.fields.map(function(e){return e.conditions=_.filter(e.conditions,function(e){return e.element_id!==t.props.field.element_id}),e}),e})}},{key:"getNotificationFilterCondition",value:function(e){var t=this;return e.map(function(e){return e.conditions=_.filter(e.conditions,function(e){return e.element_id!==t.props.field.element_id}),e})}},{key:"getPaymentFilterCondition",value:function(e){var t=this;return e.map(function(e){return e.fields.map(function(e){return _.isEmpty(e.payments)||e.payments.map(function(e){return e.conditions=_.filter(e.conditions,function(e){return e.element_id!==t.props.field.element_id}),e}),e}),e})}},{key:"insertInPosition",value:function(e,t,a){return[].concat(n(e.slice(0,t)),[a],n(e.slice(t)))}},{key:"replaceInPosition",value:function(e,t,a){return[].concat(n(e.slice(0,t)),[a],n(e.slice(t+1)))}},{key:"isWrapperDrop",value:function(){return!!_.isUndefined(this.drop.field)}},{key:"conditionMarkup",value:function(){var e=(0,f.getFields)(this.props.wrappers,null,{main_date_field:!0}),t="hide"===this.props.field.condition_action?(0,f.translate)("Hide"):(0,f.translate)("Show");if(!_.isUndefined(this.props.field.conditions)){var a=this.props.field.conditions[0];if(!_.isUndefined(a)){var r=_.filter(e,function(e){return e.element_id===a.element_id});if(!_.isUndefined(r)&&!_.isUndefined(r[0])){var n=r[0].label,o=(0,f.getRuleLabel)(a.rule,r.field_type),l=(0,f.getConditionLabel)(r[0],a.value),i=this.props.field.conditions.length,s="";return i-1>0&&(s="+ "+(i-1)+" "+(0,f.translate)("more condition(s)")),p.default.createElement("span",{className:"fui-builder-field-block-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,f.translate)("if")+" "+n+" "+o+" "+l+" "+s},p.default.createElement("i",{className:"sui-icon-link","aria-hidden":"true"}))}}}}},{key:"draggableArea",value:function(e){var t=this,a=_.filter(this.props.wrappers,function(t){return t.parent_group===e});return p.default.createElement("div",{className:"fui-builder-fields"},p.default.createElement("div",{className:"fui-builder-form--wrap"},p.default.createElement("span",{className:"fui-swipe"},(0,f.translate)("Swipe"),p.default.createElement("i",{className:"sui-icon-finger-point","aria-hidden":"true"})),p.default.createElement("div",{className:"fui-builder-form"},a.map(function(e){return p.default.createElement(b.default,s({},t.props,{key:e.wrapper_id,wrapper:e}))}))),p.default.createElement(m.default,s({},this.props,{header:"false",group:e})))}},{key:"isDeleteEnabled",value:function(){return!("login"===this.props.formType&&"password"===this.props.field.type&&(0,f.countFieldsByType)("password",this.props.wrappers)<2)&&("registration"!==this.props.formType&&"leads"!==this.props.formType||"email"!==this.props.field.type||!((0,f.countFieldsByType)("email",this.props.wrappers)<2))}},{key:"render",value:function(){var e=this,t=forminatorData.fields.find(function(t){return t.type===e.props.field.type}),a=_.contains(this.props.changed.fields,this.props.field.element_id),r=a?"fui-unsaved":"",n=this.conditionMarkup(),o=void 0;return"group"===this.props.field.type&&(o=this.draggableArea(this.props.field.element_id)),_.isUndefined(t)?p.default.createElement("div",null):p.default.createElement("div",{id:"field-"+this.props.field.element_id,className:"fui-col-"+this.props.field.cols,ref:this.el,"data-id":this.props.field.element_id},p.default.createElement("div",{className:"fui-builder-field-block "+r,"data-field":this.props.field.type},p.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},p.default.createElement("span",{className:"fui-field--move"},p.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"})),p.default.createElement("span",{className:"fui-field--icon"},p.default.createElement("i",{className:t.icon,"aria-hidden":"true"})),p.default.createElement("span",{className:"fui-field--name"},this.props.field.field_label&&p.default.createElement(p.default.Fragment,null,p.default.createElement("span",{className:"fui-field--label"},this.props.field.field_label,((0,f.isFieldRequired)(this.props.field)||"stripe"===this.props.field.type)&&p.default.createElement("span",{className:"sui-error"},"*")),p.default.createElement("span",{className:"fui-field--id"},"{",this.props.field.element_id,"}")),!this.props.field.field_label&&p.default.createElement(p.default.Fragment,null,p.default.createElement("span",{className:"fui-field--label"},this.props.field.section_title||t.name,(0,f.isFieldRequired)(this.props.field)&&p.default.createElement("span",{className:"sui-error"},"*")),p.default.createElement("span",{className:"fui-field--id"},"{",this.props.field.element_id,"}")))),p.default.createElement("div",{className:"fui-field--actions"},p.default.createElement("div",{className:"sui-dropdown"},p.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},p.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),p.default.createElement("span",{className:"sui-screen-reader-text"},(0,f.translate)("Field options"))),p.default.createElement("ul",null,"page-break"!==this.props.field.type&&p.default.createElement("li",null,p.default.createElement("button",{className:"forminator-field-edit",onClick:this.editSettings},p.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),(0,f.translate)("Edit Field"))),"stripe"!==this.props.field.type&&"paypal"!==this.props.field.type&&"password"!==this.props.field.type&&"captcha"!==this.props.field.type&&p.default.createElement("li",null,p.default.createElement("button",{className:"forminator-field-clone",onClick:this.cloneField},p.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,f.translate)("Duplicate"))),this.isDeleteEnabled()&&p.default.createElement("li",null,p.default.createElement("button",{className:"forminator-field-remove sui-option-red",onClick:this.deleteField},p.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,f.translate)("Delete")))))),!_.isUndefined(this.props.field.conditions)&&this.props.field.conditions.length>0&&p.default.createElement(p.default.Fragment,null,n),!_.isUndefined(o)&&p.default.createElement(p.default.Fragment,null,o)))}}]),t}(c.Component);t.default=y},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.editSettings=a.editSettings.bind(a),a}return o(t,e),l(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"pagination")}},{key:"editSettings",value:function(){this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal,id:"pagination-settings",activeElement:jQuery(document.activeElement),focusFirst:".modal-close-button"},"pagination")}},{key:"render",value:function(){return s.default.createElement("div",{className:"sui-box-body fui-builder-section--pagination"},s.default.createElement("div",{className:"fui-builder-field-block fui-has-info","data-field":"pagination"},s.default.createElement("span",{className:"fui-info sui-tooltip sui-tooltip-top-left sui-tooltip-constrained",style:{"--tooltip-width":"275px"},"data-tooltip":(0,u.translate)("Since you are using Page Break field(s) to divide your form into multiple pages, use the pagination settings to customize the page label, progress indicator, and the buttons on each page.")},s.default.createElement("i",{className:"sui-icon-info","aria-hidden":"true"})),s.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},s.default.createElement("span",{className:"fui-field--icon"},s.default.createElement("i",{className:"sui-icon forminator-icon-pagination","aria-hidden":"true"})),s.default.createElement("span",{className:"fui-field--name"},s.default.createElement("span",{className:"fui-field--label"},(0,u.translate)("Pagination")))),s.default.createElement("div",{className:"fui-field--actions"},s.default.createElement("button",{className:"sui-button-icon sui-tooltip","data-tooltip":(0,u.translate)("Edit field"),onClick:this.editSettings},s.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"})))))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.closeModal.bind(a),a.editSettings=a.editSettings.bind(a),a}return o(t,e),l(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"submit")}},{key:"editSettings",value:function(){this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"submit")}},{key:"conditionMarkup",value:function(){var e=(0,u.getFields)(this.props.wrappers),t="hide"===this.props.submitData.condition_action?(0,u.translate)("Hide"):(0,u.translate)("Show");if(!_.isUndefined(this.props.submitData.conditions)){var a=this.props.submitData.conditions[0];if(!_.isUndefined(a)){var r=_.filter(e,function(e){return e.element_id===a.element_id});if(!_.isUndefined(r)&&!_.isEmpty(r)){var n=r[0].label,o=(0,u.getRuleLabel)(a.rule,r.field_type),l=(0,u.getConditionLabel)(r[0],a.value),i=this.props.submitData.conditions.length,c="";return i-1>0&&(c="+ "+(i-1)+" "+(0,u.translate)("more condition(s)")),s.default.createElement("span",{className:"fui-builder-field-block-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,u.translate)("if")+" "+n+" "+o+" "+l+" "+c},s.default.createElement("i",{className:"sui-icon-link","aria-hidden":"true"}))}}}}},{key:"render",value:function(){var e=_.isUndefined(this.props.submitData["custom-submit-text"])?(0,u.translate)("Submit"):this.props.submitData["custom-submit-text"];return s.default.createElement("div",{className:"sui-box-body"},s.default.createElement("div",{className:"fui-builder-field-block","data-field":"submit"},s.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},s.default.createElement("span",{className:"fui-field--icon"},s.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"})),s.default.createElement("span",{className:"fui-field--name"},s.default.createElement("span",{className:"fui-field--label"},e))),s.default.createElement("div",{className:"fui-field--actions"},s.default.createElement("button",{className:"sui-button-icon sui-tooltip","data-tooltip":(0,u.translate)("Edit field"),onClick:this.editSettings},s.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}))),!_.isUndefined(this.props.submitData)&&!_.isUndefined(this.props.submitData.conditions)&&this.props.submitData.conditions.length>0&&s.default.createElement(s.default.Fragment,null,this.conditionMarkup())))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function n(e){return{modal:e.modal,wrappers:e.wrappers,settings:e.settings,notifications:e.notifications,id:e.settings.form_id||-1,formType:e.settings["form-type"]||"default",skipProNotice:e.settings.skipProNotice||forminatorData.skip_pro_notice||!1}}function o(e){return{actions:{modalActions:(0,i.bindActionCreators)(p,e),builderActions:(0,i.bindActionCreators)(d,e),settingsActions:(0,i.bindActionCreators)(h,e),integrationActions:(0,i.bindActionCreators)(g,e),behaviorsActions:(0,i.bindActionCreators)(_,e),notificationsActions:(0,i.bindActionCreators)(y,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(12),i=a(10),s=a(404),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(71),p=r(c),f=a(206),d=r(f),m=a(83),h=r(m),b=a(225),y=r(b),v=a(223),g=r(v),E=a(224),_=r(E);t.default=(0,l.connect)(n,o)(u.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(31),d=r(f),m=a(405),h=r(m),b=a(185),y=(r(b),a(189)),v=r(y),g={"insert-fields":h.default.fieldsModal,"field-settings":h.default.settingsModal,preview:h.default.previewModal,submit:h.default.submitModal,publish:h.default.publishModal,delete:h.default.deleteModal,shortcode:h.default.shortcodeModal,applyPreset:h.default.applyPresetModal,pagination:h.default.paginationModal,notification:h.default.notificationModal,behavior:h.default.behaviorModal,integration:h.default.integrationConditionsModal,deleteNotification:h.default.deleteNotificationModal},E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),u(t,[{key:"componentDidUpdate",value:function(e){var t=this;this.$el=jQuery(this.el);var a=this;if(e.modal.modalProps.open!==this.props.modal.modalProps.open){var r=d.default.findDOMNode(this);if(this.props.modal.modalProps.open){this.focusAfterClosed=this.props.modal.modalProps.activeElement;var n=this.props.modal.modalProps.focusFirst;setTimeout(function(){"string"==typeof n?a.focusFirst=a.$el.find(n):"object"===(void 0===n?"undefined":s(n))?a.focusFirst=n:a.focusFirst=null,a.focusFirst&&a.focusFirst.length&&a.setFocus(a.focusFirst.first())},320),jQuery("#wpwrap").attr("aria-hidden","true")}this.props.modal.modalProps.open?r.removeAttribute("aria-hidden"):(jQuery("#wpwrap").attr("aria-hidden","false"),setTimeout(function(){a.setFocus(a.focusAfterClosed)},320),this.hideModalTimeout=setTimeout(function(){r.setAttribute("aria-hidden","true"),t.props.modal.modalType=null,t.forceUpdate()},300))}}},{key:"setFocus",value:function(e){if(void 0!==e){e.attr("tabindex","0"),e.blur();var t=0,a=window.setInterval(function(){e.focus(),++t>=10&&window.clearInterval(a)},10)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hideModalTimeout)}},{key:"render",value:function(){var e=this;if(!this.props.modal.modalType)return null;var t="sui-modal-lg",a=["sui-modal-content","sui-content-fade-in"];this.props.modal.modalProps.open||(a=["sui-modal-content","sui-content-fade-out"]);var r=this.props.modal.modalType,n=g[r];if("publish"===r&&(t="sui-modal-sm fui-dialog-publish"),"shortcode"===r&&(t="sui-modal-sm fui-dialog-publish"),["delete","deleteNotification","applyPreset"].includes(r)&&(t="sui-modal-sm"),!_.isUndefined(this.props.modal.modalProps)&&!_.isUndefined(this.props.modal.modalProps.field)&&!_.isUndefined(this.props.modal.modalProps.field.type)){var o=this.props.modal.modalProps.field.type;t+="radio"===o||"checkbox"===o||"select"===o?" multivalue-modal":" "+this.props.modal.modalProps.field.type+"-modal"}var l=jQuery(".sui-color-accessible").length?"sui-wrap sui-color-accessible":"sui-wrap";return p.default.createElement("div",{className:l},p.default.createElement("div",{id:"forminator-modal",className:"sui-modal sui-active "+t+" "+r},p.default.createElement("div",i({role:"dialog",id:"modal-"+this.props.modal.modalProps.id,className:""+a.join(" "),"aria-modal":"true","aria-live":"polite"},this.props.modal.modalProps.labelledBy&&{"aria-labelledby":this.props.modal.modalProps.labelledBy},this.props.modal.modalProps.describedBy&&{"aria-describedby":this.props.modal.modalProps.describedBy},{ref:function(t){return e.el=t}}),p.default.createElement("div",{className:"sui-box",style:{marginBottom:0}},p.default.createElement(n,this.props)))))}}]),t}(c.Component),w=(0,v.default)(E);w.renderTo=function(e){return(0,v.default)(E,{renderTo:e})},e.exports=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(406),o=r(n),l=a(408),i=r(l),s=a(534),u=r(s),c=a(535),p=r(c),f=a(536),d=r(f),m=a(537),h=r(m),b=a(538),y=r(b),v=a(539),g=r(v),E=a(540),_=r(E),w=a(542),O=r(w),P=a(547),j=r(P),k=a(550),x=r(k),N=a(553),C=r(N),S={fieldsModal:o.default,settingsModal:i.default,previewModal:u.default,submitModal:p.default,publishModal:d.default,deleteModal:h.default,shortcodeModal:y.default,applyPresetModal:g.default,paginationModal:_.default,notificationModal:O.default,behaviorModal:j.default,integrationConditionsModal:x.default,deleteNotificationModal:C.default};t.default=S},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(32),d=r(f),m=a(174),h=r(m),b=a(181),y=r(b),v=a(175),g=r(v),E=a(176),w=r(E),O=a(23),P=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.closeSettingsModal=a.closeSettingsModal.bind(a),a.insertFields=a.insertFields.bind(a),a.skipProNotice=a.skipProNotice.bind(a),a.state={fields:[]},a.hasCaptcha=!1,a.hasStripe=!1,a.hasPayPal=!1,a.hasStripePayPal=!1,a}return i(t,e),s(t,[{key:"closeSettingsModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,field:[],wrapper:[]},"field-settings");var t=(0,p.hasFieldType)("stripe",this.props.wrappers),a=(0,p.hasFieldType)("paypal",this.props.wrappers);(_.contains(this.state.fields,"stripe")&&a||_.contains(this.state.fields,"paypal")&&t)&&this.showPaymentNotice()}},{key:"insertFields",value:function(){if(this.state.fields.length){if(this.hasStripe||this.hasCaptcha||this.hasPayPal)return!1;var e=this.props.modal.modalProps.groupId,t=[].concat(n(this.props.wrappers)),a=this.state.fields.map(function(a){var r=(0,p.generateWrapperId)();return{wrapper_id:r,parent_group:e,fields:[(0,p.buildFieldObjectFromSlug)(a,t,r)]}});if(forminatorData.showFieldSettings&&1===this.state.fields.length){var r=this,o=void 0!==a[0]&&a[0],l=void 0!==a[0].fields[0]&&a[0].fields[0];o&&l&&"page-break"!==l.type&&setTimeout(function(){r.props.actions.modalActions.showModal({open:!0,field:l,wrapper:o,closeModal:r.closeSettingsModal,isValid:!0},"field-settings")},500)}this.props.actions.builderActions.updateFields([].concat(n(t),n(a))),this.closeFields()}}},{key:"closeFields",value:function(){this.closeModal(),_.contains(this.state.fields,"stripe")&&_.contains(this.state.fields,"paypal")&&this.showPaymentNotice()}},{key:"skipProNotice",value:function(e){var t=this;jQuery.post(forminatorData.ajaxUrl,{action:"forminator_dismiss_notification",prop:"forminator_skip_pro_notice",_ajax_nonce:forminatorData.dismissNonce}).always(function(){t.props.actions.settingsActions.updateSetting("skipProNotice",!0)})}},{key:"toggleField",value:function(e,t){var a=void 0,r=(0,p.hasFieldType)("stripe",this.props.wrappers),o=(0,p.hasFieldType)("captcha",this.props.wrappers),l=(0,p.hasFieldType)("paypal",this.props.wrappers);if(!0!==t.target.checked){var i=this.state.fields;i.splice(i.indexOf(e),1),a={fields:i}}else a={fields:[].concat(n(this.state.fields),[e])};this.setState(a),this.hasStripePayPal=!1,_.contains(a.fields,"stripe")&&r?this.hasStripe=!0:this.hasStripe=!1,_.contains(a.fields,"paypal")&&l?this.hasPayPal=!0:this.hasPayPal=!1,_.contains(a.fields,"captcha")&&o?this.hasCaptcha=!0:this.hasCaptcha=!1}},{key:"showPaymentNotice",value:function(){new d.default({type:"info",text:"<strong>"+(0,p.translate)("Collect payments like a pro")+'</strong></p>\n\t<p style="margin-top: -10px; margin-bottom: 5px;">'+(0,p.translate)("You have added both Stripe and PayPal fields to your form. We recommend that you use the visibility conditions, so only one of them is visible at a time. For example:")+'</p>\n\t<p style="margin-top: 0; margin-bottom: 5px;">1. '+(0,p.translate)("Add an option to your form using a Radio (or Select) field that allows visitors to choose the payment method.")+'</p>\n\t<p style="margin-top: 0;">2. '+(0,p.translate)("Apply visibility conditions to both Stripe and PayPal fields so only one is visible based on the visitor's selection in the Radio (or Select) field.")}).open()}},{key:"render",value:function(){var e=this,t=forminatorData.fields.filter(function(e){return e.category}),a={position:"absolute",top:"5px",right:"5px"},r={},n=forminatorData.fieldsPro||[],o=(0,p.hasFieldType)("password",this.props.wrappers);t=_.filter(t,function(e){return"gdprcheckbox"!==e.slug}),("registration"!==this.props.formType&&"login"!==this.props.formType||o&&"registration"===this.props.formType)&&(t=_.filter(t,function(e){return"password"!==e.slug})),this.props.modal.modalProps.groupId&&(t=_.filter(t,function(e){return!_.contains((0,p.restrictedGroupFields)(),e.slug)}));var l=_.sortBy(t,"position");return(this.hasStripe||this.hasCaptcha||this.hasPayPal||this.hasStripePayPal)&&{display:"block"},forminatorData.isPro||this.props.skipProNotice||(r={display:"block"}),c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,{closeType:"icon",closeModal:this.closeModal},c.default.createElement(w.default,{id:this.props.modal.modalProps.id,label:(0,p.translate)("Insert Fields")})),c.default.createElement("div",{className:"sui-box-body"},c.default.createElement("p",null,(0,p.translate)("Choose which fields you want to insert into your form.")),(this.hasStripe||this.hasCaptcha||this.hasPayPal||this.hasStripePayPal)&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-error sui-notice-red sui-active","aria-live":"assertive",style:{display:"block"}},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),this.hasStripe&&!this.hasStripePayPal&&c.default.createElement("p",null,(0,p.translate)("You can have only one Stripe field in your form for Stripe to work accurately. Please delete the existing Stripe field to add a new one.")),this.hasPayPal&&!this.hasStripePayPal&&c.default.createElement("p",null,(0,p.translate)("You can have only one PayPal field in your form for PayPal to work accurately. Please delete the existing PayPal field to add a new one.")),this.hasStripePayPal&&c.default.createElement("p",null,(0,p.translate)("You can have only one payment field in your form. Please delete the existing payment field to add another one.")),this.hasCaptcha&&c.default.createElement("p",null,(0,p.translate)("You can have only one captcha field in your form for captcha to work accurately. Please delete the existing captcha field to add a new one.")))))),c.default.createElement("div",{className:"sui-box-selectors sui-box-selectors-col-5",style:{margin:0}},c.default.createElement("ul",{id:"forminator-form-fields-to-insert",className:"sui-spacing-slim"},l.map(function(t){return c.default.createElement("li",{key:t.slug},c.default.createElement("label",{htmlFor:"forminator-form-field-"+t.slug,className:"sui-box-selector sui-box-selector-vertical"},c.default.createElement("input",{type:"checkbox",id:"forminator-form-field-"+t.slug,"data-field":t.slug,onChange:function(a){return e.toggleField(t.slug,a)}}),c.default.createElement("span",null,c.default.createElement("i",{className:t.icon,"aria-hidden":"true"}),t.name,"group"===t.slug&&c.default.createElement("span",{className:"sui-tag sui-tag-beta",style:a},"New"))))}),!forminatorData.isPro&&n.map(function(e){return c.default.createElement("li",{key:e.slug},c.default.createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},c.default.createElement("input",{type:"radio",disabled:!0}),c.default.createElement("span",null,c.default.createElement("span",{className:e.icon,"aria-hidden":"true"}),e.name,c.default.createElement("span",{className:"sui-tag sui-tag-pro"},"Pro"))))}),!forminatorData.isPro&&_.isEmpty(n)&&c.default.createElement("li",null,c.default.createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},c.default.createElement("input",{type:"radio",disabled:!0}),c.default.createElement("span",null,c.default.createElement("span",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,p.translate)("E-Signature"),c.default.createElement("span",{className:"sui-tag sui-tag-pro"},"Pro"))))),c.default.createElement("div",{role:"alert",id:"fui-notice-pro-fields",className:"sui-notice sui-notice-purple "+(!forminatorData.isPro&&!this.props.skipProNotice&&" sui-active"),style:r,"aria-live":"assertive"},!forminatorData.isPro&&!this.props.skipProNotice&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Need access to pro form fields? {{link}}Try Forminator Pro for FREE{{/link}}",{components:{link:c.default.createElement("a",{href:"https://wpmudev.com/project/forminator-pro/?coupon=FORMINATOR-SUBSCRIPTIONS&checkout=0&utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_forms_insertfields_upsell_notice",target:"_blank",style:{color:"#8d00b1"}})}}))),c.default.createElement("div",{className:"sui-notice-actions"},c.default.createElement(O.ButtonIcon,{icon:"check",iconSize:"sm",label:(0,p.translate)("Dismiss"),onClick:this.skipProNotice}))))),c.default.createElement(y.default,{alignment:"separated"},c.default.createElement(g.default,{label:(0,p.translate)("Cancel"),customClass:"sui-button-ghost forminator-builder-fields-close",closeModal:this.closeModal}),c.default.createElement("button",{id:"forminator-builder-insert-fields",className:"sui-button sui-button-blue",disabled:!this.state.fields.length||this.hasStripe||this.hasCaptcha||this.hasPayPal||this.hasStripePayPal,onClick:this.insertFields},c.default.createElement("span",{className:"sui-loading-text"},(0,p.translate)("Insert Fields")),c.default.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))}}]),t}(u.Component);t.default=P},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=this.props.filename?this.props.filename:"",t="sui-box-banner",a=(0,u.translate)("Forminator image");return _.isUndefined(this.props.logo)||!0!==this.props.logo||(t="sui-box-logo"),_.isUndefined(this.props.alt)||""===this.props.alt||(a=this.props.alt),s.default.createElement("figure",{className:t,"aria-hidden":"true"},s.default.createElement("img",{src:forminatorData.imagesUrl+"/"+e+".png",srcSet:forminatorData.imagesUrl+"/"+e+".png 1x,\n\t\t\t\t\t"+forminatorData.imagesUrl+"/"+e+"@2x.png 2x",alt:a}))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(21),d=a(1),m=a(409),h=r(m),b=a(480),y=r(b),v=a(533),g=r(v),E=a(175),w=r(E),O=a(174),P=r(O),j=a(181),k=r(j),x=a(176),N=r(x),C={email:y.default.emailSettings,address:y.default.addressSettings,captcha:y.default.captchaSettings,date:y.default.dateSettings,signature:y.default.signatureSettings,consent:y.default.consentSettings,gdprcheckbox:y.default.gdprcheckboxSettings,hidden:y.default.hiddenSettings,html:y.default.htmlSettings,group:y.default.groupSettings,checkbox:y.default.multivalueSettings,radio:y.default.radioSettings,name:y.default.nameSettings,number:y.default.numberSettings,pagination:y.default.paginationSettings,phone:y.default.phoneSettings,postdata:y.default.postdataSettings,section:y.default.sectionSettings,select:y.default.singlevaluesettings,text:y.default.textSettings,textarea:y.default.textareaSettings,time:y.default.timeSettings,upload:y.default.uploadSettings,url:y.default.websiteSettings,calculation:y.default.calculationSettings,stripe:y.default.stripeSettings,currency:y.default.currencySettings,password:y.default.passwordSettings,paypal:y.default.paypalSettings},S=function(e){function t(e){o(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.closeModal=a.props.modal.modalProps.closeModal.bind(a),a.updateProperty=a.updateProperty.bind(a),a.applyChanges=a.applyChanges.bind(a),a.cancelModal=a.cancelModal.bind(a),a.state=(0,h.default)(a.props.modal.modalProps.field),a}return i(t,e),u(t,[{key:"updateProperty",value:function(e,t){this.setState(n({},e,t))}},{key:"componentWillUnmount",value:function(){this.props.history.push({pathname:"/builder/"})}},{key:"applyChanges",value:function(){var e=this,t=Object.assign({},this.props.modal.modalProps.wrapper),a=t.fields.findIndex(function(t){return t.element_id===e.state.element_id});t.fields=(0,d.replaceInPosition)(t.fields,a,this.state),this.props.actions.builderActions.updateFieldSettings(t,this.state.element_id),this.closeModal()}},{key:"getDateDuration",value:function(e,t,a,r){return"-"===e?moment().subtract(t,a).format(r):moment().add(t,a).format(r)}},{key:"isValid",value:function(){var e=this,t={isValid:!0,error:!1};if("name"===this.state.type||"address"===this.state.type){var a=[];if("name"===this.state.type){if("true"!==this.state.multiple_name)return t.isValid=!0,t;a=["prefix","fname","mname","lname"]}"address"===this.state.type&&(a=["street_address","address_line","address_city","address_state","address_zip","address_country"]);var r=_.filter(a,function(t){return!!e.state[t]});if(!_.isEmpty(r))return t.isValid=!0,t;t.error=(0,d.translate)("At least one field must be enabled"),t.isValid=!1}if(this.props.modal.modalProps.isValid||(t.error=(0,d.translate)("Please fill required fields"),_.isUndefined(this.props.modal.modalProps.validationError)||_.isEmpty(this.props.modal.modalProps.validationError)||(t.error=this.props.modal.modalProps.validationError),t.isValid=!1),"radio"===this.state.type||"checkbox"===this.state.type||"select"===this.state.type||"postdata"===this.state.type&&!_.isUndefined(this.state.post_custom_fields)&&!0===this.state.post_custom_fields){_.some(this.state.options,function(e){return _.isEmpty(e.calculation)})&&"true"===this.state.calculations&&(t.error=(0,d.translate)("Calculation values are required!"),t.isValid=!1);_.some(this.state.options,function(e){return _.isEmpty(e.label)})&&(t.error=(0,d.translate)("Option labels are required!"),t.isValid=!1)}if("select"===this.state.type){var n=_.some(this.state.options,function(e){return!_.isUndefined(e.default)&&e.default});this.state.required&&!n&&("single"===this.state.value_type&&_.isEmpty(this.state.placeholder)?(t.error=(0,d.translate)("Please add a placeholder or select a default option."),t.isValid=!1):"multiselect"===this.state.value_type&&(t.error=(0,d.translate)("Please select a default option."),t.isValid=!1))}if("postdata"===this.state.type&&((0,d.isTrue)(this.state.post_title)||(0,d.isTrue)(this.state.post_content)||(0,d.isTrue)(this.state.post_excerpt)||(t.error=(0,d.translate)("At least one of Title, Content, or Excerpt must be enabled for post data to be submitted."),t.isValid=!1)),"stripe"===this.state.type){forminatorData.hasStripe||(t.error=(0,d.translate)("Please, connect your Stripe account first!"),t.isValid=!1),_.isEmpty(this.state.payments)&&(t.error=(0,d.translate)("You need at least one payment!"),t.isValid=!1),"true"!==this.state.receipt||this.state.customer_email||(t.error=(0,d.translate)("Please select an email address for payment receipt."),t.isValid=!1);_.some(this.state.options,function(e){return _.isEmpty(e.label)})&&(t.error=(0,d.translate)("Empty labels are not allowed for meta values!"),t.isValid=!1)}t=(0,d.getPlanValidation)(t,this.state.payments),"paypal"===this.state.type&&(forminatorData.hasPayPal||(t.error=(0,d.translate)("Please connect your PayPal account first!"),t.isValid=!1),"fixed"!==this.state.amount_type||this.state.amount||(t.error=(0,d.translate)("Please enter PayPal payment amount!"),t.isValid=!1),"variable"!==this.state.amount_type||this.state.variable||(t.error=(0,d.translate)("Please select PayPal payment variable field!"),t.isValid=!1)),"calculation"===this.state.type&&(_.isUndefined(this.state.formula)||_.isEmpty(this.state.formula))&&(t.error=(0,d.translate)("Calculation formula is required!"),t.isValid=!1),"currency"===this.state.type&&parseInt(this.state.limit_min)>=parseInt(this.state.limit_max)&&(t.error=(0,d.translate)("Limit Min value should be less than Max value."),t.isValid=!1),"number"===this.state.type&&parseInt(this.state.limit_min)>=parseInt(this.state.limit_max)&&(t.error=(0,d.translate)("Limit Min value should be less than Max value."),t.isValid=!1);var o=_.isUndefined(this.state.captcha_provider)?"recaptcha":this.state.captcha_provider;if("captcha"===this.state.type&&("recaptcha"===o&&(("v2_checkbox"!==this.state.captcha_type||forminatorData.hasV2Captcha)&&("v2_invisible"!==this.state.captcha_type||forminatorData.hasV2InvisibleCaptcha)?"v3_recaptcha"!==this.state.captcha_type||forminatorData.hasV3Captcha||(t.error=(0,d.translate)("Please enter API keys."),t.isValid=!1):(t.error=(0,d.translate)("Please enter API keys."),t.isValid=!1)),"hcaptcha"===o&&(forminatorData.hasHCaptcha||(t.error=(0,d.translate)("Please enter API keys."),t.isValid=!1))),"time"===this.state.type&&!_.isUndefined(this.state.restrict_time)&&"specific"===this.state.restrict_time){var l=_.isUndefined(this.state.time_type)?"":this.state.time_type,i="twelve"===l?"h:mma":"H:mm",s=_.isUndefined(this.state.restrict_start_hour)?0:this.state.restrict_start_hour,u=_.isUndefined(this.state.restrict_start_minute)?0:this.state.restrict_start_minute,c=_.isUndefined(this.state.restrict_start_ampm)?"AM":this.state.restrict_start_ampm,p=_.isUndefined(this.state.restrict_end_hour)?0:this.state.restrict_end_hour,f=_.isUndefined(this.state.restrict_end_minute)?0:this.state.restrict_end_minute,m=_.isUndefined(this.state.restrict_end_ampm)?"AM":this.state.restrict_end_ampm,h=_.isUndefined(this.state.default_time)?"none":this.state.default_time,b=_.isUndefined(this.state.default_time_hour)?0:this.state.default_time_hour,y=_.isUndefined(this.state.default_time_minute)?0:this.state.default_time_minute,v=_.isUndefined(this.state.default_time_ampm)?"AM":this.state.default_time_ampm,g="twelve"===l?c:"",E="twelve"===l?m:"",w="twelve"===l?v:"",O=s+":"+u+g.toLowerCase(),P=moment(O,i),j=p+":"+f+E.toLowerCase(),k=moment(j,i),x=moment(b+":"+y+w,i);k.isBefore(P)?(t.error=(0,d.translate)("Please select a valid end time limit."),t.isValid=!1):"default"===h&&(x.isBefore(P)||k.isBefore(x))?(t.error=(0,d.translate)("Please fix the Default time error."),t.isValid=!1):("0:0am"===O&&"0:0pm"===j||"0:0pm"===O&&"0:0am"===j||O===j&&("0:0am"===O||"0:0pm"===O))&&(t.error=(0,d.translate)("Please fix the Start or End time."),t.isValid=!1)}if(_.isUndefined(this.state.conditions)||_.isEmpty(this.state.conditions)||_.each(this.state.conditions,function(e){_.isEmpty(e.rule)&&(t.error=(0,d.translate)("Please select rule"),t.isValid=!1)}),"date"===this.state.type&&!_.isUndefined(this.state["start-date"])&&!_.isUndefined(this.state["end-date"])){var N=this.state["start-date"],C=this.state["end-date"],S=!0;if("specific"!==N||"specific"!==C||_.isUndefined(this.state["start-specific-date"])||_.isUndefined(this.state["end-specific-date"])||!moment(this.state["end-specific-date"],"MM/DD/YYYY").isBefore(moment(this.state["start-specific-date"],"MM/DD/YYYY")))if("today"===N&&"today"===C){var T=_.isUndefined(this.state["start-offset-operator"])?"+":this.state["start-offset-operator"],F=_.isUndefined(this.state["start-offset-value"])?0:parseInt(this.state["start-offset-value"],10),D=_.isUndefined(this.state["start-offset-duration"])?"days":this.state["start-offset-duration"],M=this.getDateDuration(T,F,D,"MM/DD/YYYY"),A=_.isUndefined(this.state["end-offset-operator"])?"+":this.state["end-offset-operator"],V=_.isUndefined(this.state["end-offset-value"])?0:parseInt(this.state["end-offset-value"],10),R=_.isUndefined(this.state["end-offset-duration"])?"days":this.state["end-offset-duration"],U=this.getDateDuration(A,V,R,"MM/DD/YYYY");moment(U,"MM/DD/YYYY").isBefore(moment(M,"MM/DD/YYYY"))&&(S=!1)}else if("specific"!==N||"today"!==C||_.isUndefined(this.state["start-specific-date"])){if("today"===N&&"specific"===C&&!_.isUndefined(this.state["end-specific-date"])){var I=_.isUndefined(this.state["start-offset-operator"])?"+":this.state["start-offset-operator"],L=_.isUndefined(this.state["start-offset-value"])?0:parseInt(this.state["start-offset-value"],10),B=_.isUndefined(this.state["start-offset-duration"])?"days":this.state["start-offset-duration"],q=this.getDateDuration(I,L,B,"MM/DD/YYYY");moment(this.state["end-specific-date"],"MM/DD/YYYY").isBefore(moment(q,"MM/DD/YYYY"))&&(S=!1)}}else{var W=_.isUndefined(this.state["end-offset-operator"])?"+":this.state["end-offset-operator"],$=_.isUndefined(this.state["end-offset-value"])?0:parseInt(this.state["end-offset-value"],10),z=_.isUndefined(this.state["end-offset-duration"])?"days":this.state["end-offset-duration"],Y=this.getDateDuration(W,$,z,"MM/DD/YYYY");moment(Y,"MM/DD/YYYY").isBefore(moment(this.state["start-specific-date"],"MM/DD/YYYY"))&&(S=!1)}else S=!1;S||(t.error=(0,d.translate)("Please fix the limit Start or End date."),t.isValid=!1)}return t}},{key:"cancelModal",value:function(){this.closeModal()}},{key:"render",value:function(){var e=this,t=(0,d.getForminatorField)(this.state),a=C[t.type],r=!_.contains(["captcha","paypal"],t.type),n=!_.contains(["submit","hidden","html","page-break"],t.type),o=!_.contains(["captcha","page-break","hidden"],t.type),l=!_.contains(["page-break","paypal"],t.type),i=_.contains(["calculation","number","radio","checkbox","select","currency"],t.type),u=_.contains(["stripe","paypal"],t.type),c=_.contains(["paypal"],t.type),m=_.contains(["date"],t.type),h=_.isUndefined(this.state.field_type)?"picker":this.state.field_type,b=this.isValid(),y=b.isValid,v=b.error||"";_.isUndefined(this.props.formType)||"registration"!==this.props.formType||"password"!==this.state.type||this.props.location.pathname;return p.default.createElement(p.default.Fragment,null,p.default.createElement(P.default,{closeType:"icon",closeModal:this.closeModal},p.default.createElement(N.default,{id:this.props.modal.modalProps.id,label:(0,d.translate)("Edit Field"),tag:t.name})),p.default.createElement("div",{id:"forminator-modal-body--"+t.type,className:"sui-box-body"},p.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},p.default.createElement("div",{role:"tablist",className:"sui-tabs-menu"},r>0&&p.default.createElement(f.NavLink,{to:"/builder/labels/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Labels")),n>0&&p.default.createElement(f.NavLink,{to:"/builder/settings/",exact:!0,className:"sui-tab-item "+(this.props.location.pathname.startsWith("/builder/settings/stripe")?"active":""),activeClassName:"active",role:"tab"},"group"===t.type?(0,d.translate)("Repeater"):(0,d.translate)("Settings")),m>0&&"picker"===h&&p.default.createElement(f.NavLink,{to:"/builder/limits/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Limits")),i>0&&p.default.createElement(f.NavLink,{to:"/builder/calculations/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Calculations")),u&&p.default.createElement(f.NavLink,{to:"/builder/advanced-settings/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Advanced")),l>0&&p.default.createElement(f.NavLink,{to:"/builder/styling/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Styling")),c>0&&p.default.createElement(f.NavLink,{to:"/builder/customize/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Customize")),o>0&&p.default.createElement(f.NavLink,{to:"/builder/visibility/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Visibility")),!_.isEmpty(t.settings)&&p.default.createElement(f.NavLink,{to:"/builder/advanced/",exact:!0,className:"sui-tab-item",activeClassName:"active",role:"tab"},(0,d.translate)("Advanced"))),p.default.createElement(f.Route,{exact:!0,path:"/builder/",render:function(){var e="/builder/labels";return r||(e="/builder/settings"),p.default.createElement(f.Redirect,{to:e})}}),p.default.createElement("div",{className:"sui-tabs-content"},p.default.createElement("div",{className:"sui-tab-content active",role:"tabpanel"},p.default.createElement(f.Route,{path:"/builder/labels",render:function(){return p.default.createElement(a,{type:"labels",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers,formType:e.props.formType||""})}}),p.default.createElement(f.Route,{path:"/builder/settings",render:function(){return p.default.createElement(a,{type:"settings",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers,formType:e.props.formType||""})}}),"picker"===h&&p.default.createElement(f.Route,{path:"/builder/limits",render:function(){return p.default.createElement(a,{type:"limits",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/advanced-settings",render:function(){return p.default.createElement(a,{type:"advanced-settings",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/calculations",render:function(){return p.default.createElement(a,{type:"calculations",updateProperty:e.updateProperty,modal:e.props.modal.modalProps,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/visibility",render:function(){return p.default.createElement(a,{type:"visibility",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/styling",render:function(){return p.default.createElement(a,{type:"styling",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}),p.default.createElement(f.Route,{path:"/builder/advanced",render:function(){return p.default.createElement(g.default,s({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}),p.default.createElement(f.Route,{path:"/builder/customize",render:function(){return p.default.createElement(a,{type:"customize",updateProperty:e.updateProperty,state:e.state,wrappers:e.props.wrappers})}}))))),p.default.createElement(k.default,{customClass:"sui-content-separated"},p.default.createElement(w.default,{icon:"undo",label:(0,d.translate)("Discard Changes"),customClass:"sui-button-ghost forminator-discard-field-settings",closeModal:this.closeModal}),y&&p.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,d.translate)("Apply")),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!y&&p.default.createElement("div",{className:"sui-tooltip","data-tooltip":v},p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":v},p.default.createElement("span",{className:"sui-loading-text"},p.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,d.translate)("Apply")),p.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),t}(c.Component);t.default=S},function(e,t,a){function r(e){return n(e,o|l)}var n=a(410),o=1,l=4;e.exports=r},function(e,t,a){function r(e,t,a,D,M,A){var V,R=t&j,U=t&k,I=t&x;if(a&&(V=M?a(e,D,M,A):a(e)),void 0!==V)return V;if(!w(e))return e;var L=g(e);if(L){if(V=b(e),!R)return c(e,V)}else{var B=h(e),q=B==C||B==S;if(E(e))return u(e,R);if(B==T||B==N||q&&!M){if(V=U||q?{}:v(e),!R)return U?f(e,s(V,e)):p(e,i(V,e))}else{if(!F[B])return M?e:{};V=y(e,B,R)}}A||(A=new n);var W=A.get(e);if(W)return W;if(A.set(e,V),O(e))return e.forEach(function(n){V.add(r(n,t,a,n,e,A))}),V;if(_(e))return e.forEach(function(n,o){V.set(o,r(n,t,a,o,e,A))}),V;var $=I?U?m:d:U?keysIn:P,z=L?void 0:$(e);return o(z||e,function(n,o){z&&(o=n,n=e[o]),l(V,o,r(n,t,a,o,e,A))}),V}var n=a(411),o=a(441),l=a(366),i=a(443),s=a(453),u=a(456),c=a(457),p=a(458),f=a(460),d=a(461),m=a(462),h=a(236),b=a(467),y=a(468),v=a(474),g=a(230),E=a(369),_=a(476),w=a(193),O=a(478),P=a(229),j=1,k=2,x=4,N="[object Arguments]",C="[object Function]",S="[object GeneratorFunction]",T="[object Object]",F={};F[N]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object DataView]"]=F["[object Boolean]"]=F["[object Date]"]=F["[object Float32Array]"]=F["[object Float64Array]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Map]"]=F["[object Number]"]=F[T]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object Symbol]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Error]"]=F[C]=F["[object WeakMap]"]=!1,e.exports=r},function(e,t,a){function r(e){var t=this.__data__=new n(e);this.size=t.size}var n=a(207),o=a(417),l=a(418),i=a(419),s=a(420),u=a(421);r.prototype.clear=o,r.prototype.delete=l,r.prototype.get=i,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t){function a(){this.__data__=[],this.size=0}e.exports=a},function(e,t,a){function r(e){var t=this.__data__,a=n(t,e);return!(a<0)&&(a==t.length-1?t.pop():l.call(t,a,1),--this.size,!0)}var n=a(208),o=Array.prototype,l=o.splice;e.exports=r},function(e,t,a){function r(e){var t=this.__data__,a=n(t,e);return a<0?void 0:t[a][1]}var n=a(208);e.exports=r},function(e,t,a){function r(e){return n(this.__data__,e)>-1}var n=a(208);e.exports=r},function(e,t,a){function r(e,t){var a=this.__data__,r=n(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this}var n=a(208);e.exports=r},function(e,t,a){function r(){this.__data__=new n,this.size=0}var n=a(207);e.exports=r},function(e,t){function a(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}e.exports=a},function(e,t){function a(e){return this.__data__.get(e)}e.exports=a},function(e,t){function a(e){return this.__data__.has(e)}e.exports=a},function(e,t,a){function r(e,t){var a=this.__data__;if(a instanceof n){var r=a.__data__;if(!o||r.length<i-1)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new l(r)}return a.set(e,t),this.size=a.size,this}var n=a(207),o=a(227),l=a(428),i=200;e.exports=r},function(e,t,a){function r(e){return!(!l(e)||o(e))&&(n(e)?m:u).test(i(e))}var n=a(363),o=a(425),l=a(193),i=a(365),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,p=Object.prototype,f=c.toString,d=p.hasOwnProperty,m=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,a){function r(e){var t=l.call(e,s),a=e[s];try{e[s]=void 0;var r=!0}catch(e){}var n=i.call(e);return r&&(t?e[s]=a:delete e[s]),n}var n=a(228),o=Object.prototype,l=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=r},function(e,t){function a(e){return n.call(e)}var r=Object.prototype,n=r.toString;e.exports=a},function(e,t,a){function r(e){return!!o&&o in e}var n=a(426),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t,a){var r=a(84),n=r["__core-js_shared__"];e.exports=n},function(e,t){function a(e,t){return null==e?void 0:e[t]}e.exports=a},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(429),o=a(436),l=a(438),i=a(439),s=a(440);r.prototype.clear=n,r.prototype.delete=o,r.prototype.get=l,r.prototype.has=i,r.prototype.set=s,e.exports=r},function(e,t,a){function r(){this.size=0,this.__data__={hash:new n,map:new(l||o),string:new n}}var n=a(430),o=a(207),l=a(227);e.exports=r},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(431),o=a(432),l=a(433),i=a(434),s=a(435);r.prototype.clear=n,r.prototype.delete=o,r.prototype.get=l,r.prototype.has=i,r.prototype.set=s,e.exports=r},function(e,t,a){function r(){this.__data__=n?n(null):{},this.size=0}var n=a(210);e.exports=r},function(e,t){function a(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=a},function(e,t,a){function r(e){var t=this.__data__;if(n){var a=t[e];return a===o?void 0:a}return i.call(t,e)?t[e]:void 0}var n=a(210),o="__lodash_hash_undefined__",l=Object.prototype,i=l.hasOwnProperty;e.exports=r},function(e,t,a){function r(e){var t=this.__data__;return n?void 0!==t[e]:l.call(t,e)}var n=a(210),o=Object.prototype,l=o.hasOwnProperty;e.exports=r},function(e,t,a){function r(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=n&&void 0===t?o:t,this}var n=a(210),o="__lodash_hash_undefined__";e.exports=r},function(e,t,a){function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}var n=a(211);e.exports=r},function(e,t){function a(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=a},function(e,t,a){function r(e){return n(this,e).get(e)}var n=a(211);e.exports=r},function(e,t,a){function r(e){return n(this,e).has(e)}var n=a(211);e.exports=r},function(e,t,a){function r(e,t){var a=n(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this}var n=a(211);e.exports=r},function(e,t){function a(e,t){for(var a=-1,r=null==e?0:e.length;++a<r&&!1!==t(e[a],a,e););return e}e.exports=a},function(e,t,a){var r=a(182),n=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},function(e,t,a){function r(e,t){return e&&n(t,o(t),e)}var n=a(212),o=a(229);e.exports=r},function(e,t){function a(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}e.exports=a},function(e,t,a){var r=a(446),n=a(194),o=Object.prototype,l=o.hasOwnProperty,i=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return n(e)&&l.call(e,"callee")&&!i.call(e,"callee")};e.exports=s},function(e,t,a){function r(e){return o(e)&&n(e)==l}var n=a(209),o=a(194),l="[object Arguments]";e.exports=r},function(e,t){function a(){return!1}e.exports=a},function(e,t){function a(e,t){var a=typeof e;return!!(t=null==t?r:t)&&("number"==a||"symbol"!=a&&n.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=a},function(e,t,a){var r=a(450),n=a(232),o=a(233),l=o&&o.isTypedArray,i=l?n(l):r;e.exports=i},function(e,t,a){function r(e){return l(e)&&o(e.length)&&!!i[n(e)]}var n=a(209),o=a(370),l=a(194),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=r},function(e,t,a){function r(e){if(!n(e))return o(e);var t=[];for(var a in Object(e))i.call(e,a)&&"constructor"!=a&&t.push(a);return t}var n=a(234),o=a(452),l=Object.prototype,i=l.hasOwnProperty;e.exports=r},function(e,t,a){var r=a(371),n=r(Object.keys,Object);e.exports=n},function(e,t,a){function r(e,t){return e&&n(t,o(t),e)}var n=a(212),o=a(373);e.exports=r},function(e,t,a){function r(e){if(!n(e))return l(e);var t=o(e),a=[];for(var r in e)("constructor"!=r||!t&&s.call(e,r))&&a.push(r);return a}var n=a(193),o=a(234),l=a(455),i=Object.prototype,s=i.hasOwnProperty;e.exports=r},function(e,t){function a(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}e.exports=a},function(e,t,a){(function(e){function r(e,t){if(t)return e.slice();var a=e.length,r=u?u(a):new e.constructor(a);return e.copy(r),r}var n=a(84),o="object"==typeof t&&t&&!t.nodeType&&t,l=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=l&&l.exports===o,s=i?n.Buffer:void 0,u=s?s.allocUnsafe:void 0;e.exports=r}).call(t,a(231)(e))},function(e,t){function a(e,t){var a=-1,r=e.length;for(t||(t=Array(r));++a<r;)t[a]=e[a];return t}e.exports=a},function(e,t,a){function r(e,t){return n(e,o(e),t)}var n=a(212),o=a(235);e.exports=r},function(e,t){function a(e,t){for(var a=-1,r=null==e?0:e.length,n=0,o=[];++a<r;){var l=e[a];t(l,a,e)&&(o[n++]=l)}return o}e.exports=a},function(e,t,a){function r(e,t){return n(e,o(e),t)}var n=a(212),o=a(375);e.exports=r},function(e,t,a){function r(e){return n(e,l,o)}var n=a(378),o=a(235),l=a(229);e.exports=r},function(e,t,a){function r(e){return n(e,l,o)}var n=a(378),o=a(375),l=a(373);e.exports=r},function(e,t,a){var r=a(182),n=a(84),o=r(n,"DataView");e.exports=o},function(e,t,a){var r=a(182),n=a(84),o=r(n,"Promise");e.exports=o},function(e,t,a){var r=a(182),n=a(84),o=r(n,"Set");e.exports=o},function(e,t,a){var r=a(182),n=a(84),o=r(n,"WeakMap");e.exports=o},function(e,t){function a(e){var t=e.length,a=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(a.index=e.index,a.input=e.input),a}var r=Object.prototype,n=r.hasOwnProperty;e.exports=a},function(e,t,a){function r(e,t,a){var r=e.constructor;switch(t){case y:return n(e);case u:case c:return new r(+e);case v:return o(e,a);case g:case E:case _:case w:case O:case P:case j:case k:case x:return s(e,a);case p:return new r;case f:case h:return new r(e);case d:return l(e);case m:return new r;case b:return i(e)}}var n=a(237),o=a(470),l=a(471),i=a(472),s=a(473),u="[object Boolean]",c="[object Date]",p="[object Map]",f="[object Number]",d="[object RegExp]",m="[object Set]",h="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",v="[object DataView]",g="[object Float32Array]",E="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",j="[object Uint8ClampedArray]",k="[object Uint16Array]",x="[object Uint32Array]";e.exports=r},function(e,t,a){var r=a(84),n=r.Uint8Array;e.exports=n},function(e,t,a){function r(e,t){var a=t?n(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}var n=a(237);e.exports=r},function(e,t){function a(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}var r=/\w*$/;e.exports=a},function(e,t,a){function r(e){return l?Object(l.call(e)):{}}var n=a(228),o=n?n.prototype:void 0,l=o?o.valueOf:void 0;e.exports=r},function(e,t,a){function r(e,t){var a=t?n(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}var n=a(237);e.exports=r},function(e,t,a){function r(e){return"function"!=typeof e.constructor||l(e)?{}:n(o(e))}var n=a(475),o=a(377),l=a(234);e.exports=r},function(e,t,a){var r=a(193),n=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(n)return n(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();e.exports=o},function(e,t,a){var r=a(477),n=a(232),o=a(233),l=o&&o.isMap,i=l?n(l):r;e.exports=i},function(e,t,a){function r(e){return o(e)&&n(e)==l}var n=a(236),o=a(194),l="[object Map]";e.exports=r},function(e,t,a){var r=a(479),n=a(232),o=a(233),l=o&&o.isSet,i=l?n(l):r;e.exports=i},function(e,t,a){function r(e){return o(e)&&n(e)==l}var n=a(236),o=a(194),l="[object Set]";e.exports=r},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(481),o=r(n),l=a(483),i=r(l),s=a(484),u=r(s),c=a(485),p=r(c),f=a(489),d=r(f),m=a(490),h=r(m),b=a(491),y=r(b),v=a(492),g=r(v),E=a(493),_=r(E),w=a(494),O=r(w),P=a(498),j=r(P),k=a(502),x=r(k),N=a(504),C=r(N),S=a(505),T=r(S),F=a(506),D=r(F),M=a(507),A=r(M),V=a(509),R=r(V),U=a(510),I=r(U),L=a(511),B=r(L),q=a(512),W=r(q),$=a(513),z=r($),Y=a(514),H=r(Y),Q=a(517),G=r(Q),J=a(518),K=r(J),X=a(519),Z=r(X),ee=a(521),te=r(ee),ae=a(530),re=r(ae),ne=a(531),oe=r(ne),le=a(532),ie=r(le),se={emailSettings:o.default,addressSettings:i.default,captchaSettings:u.default,dateSettings:p.default,signatureSettings:d.default,consentSettings:h.default,gdprcheckboxSettings:y.default,hiddenSettings:g.default,htmlSettings:_.default,groupSettings:O.default,multivalueSettings:j.default,nameSettings:x.default,numberSettings:C.default,paginationSettings:T.default,phoneSettings:D.default,postdataSettings:A.default,sectionSettings:R.default,singlevaluesettings:I.default,textSettings:B.default,textareaSettings:W.default,timeSettings:z.default,uploadSettings:H.default,websiteSettings:G.default,radioSettings:K.default,calculationSettings:Z.default,stripeSettings:te.default,currencySettings:re.default,passwordSettings:oe.default,paypalSettings:ie.default};t.default=se},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(213),p=r(c),f=a(24),d=r(f),m=a(26),h=r(m),b=a(44),y=r(b),v=a(238),g=r(v),E=a(183),_=(r(E),a(79)),w=r(_),O=a(1),P=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return u.default.createElement(p.default,this.props);case"settings":return u.default.createElement("div",null,u.default.createElement(y.default,this.props),u.default.createElement(g.default,this.props),u.default.createElement(w.default,this.props));case"visibility":return u.default.createElement(d.default,this.props);case"styling":return u.default.createElement(h.default,this.props);default:return u.default.createElement("div",null,(0,O.translate)("Wrong field type!"))}}}]),t}(s.Component);t.default=P},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(9),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=a(18),g=r(v),E=a(82),w=r(E),O=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.state={open:!1},a.fields=a.props.fields,a}return l(t,e),s(t,[{key:"removeRule",value:function(){this.props.removeRule(this.props.counter)}},{key:"updateField",value:function(e,t){this.props.updateField(this.props.counter,t)}},{key:"updateRule",value:function(e,t){this.props.updateRule(this.props.counter,t)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"updateInputValue",value:function(e,t){this.props.updateInputValue(this.props.counter,t)}},{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"disableSearch",value:function(){return{minimumResultsForSearch:-1}}},{key:"render",value:function(){var e=this,t="condition-"+this.props.counter,a=_.where(this.fields,{element_id:this.props.rule.element_id})[0]||{},r="consent"===a.field_type;r&&(this.props.rule.value=(0,p.translate)("checked"));var n=_.isEmpty(this.props.rule.value)?(0,p.translate)("null"):this.props.rule.value,o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=["day_is","day_is_not","month_is","month_is_not","is_before","is_after","is_before_n_or_more_days","is_before_less_than_n_days","is_after_n_or_more_days","is_after_less_than_n_days"],s=["Su","Mo","Tu","We","Th","Fr","Sa"];return c.default.createElement("div",{className:"sui-box fui-visibility-rule"+(!0===this.state.open?" fui-open":"")},c.default.createElement("h4",{className:"fui-visibility-rule-header"},c.default.createElement("button",{id:"forminator-field-"+t,className:"sui-box-header","aria-controls":"forminator-field-"+t+"-content","aria-expanded":this.state.open,onClick:function(){return e.toggleState()}},c.default.createElement("i",{className:"sui-icon-link fui-visibility-rule-icon","aria-hidden":"true"}),c.default.createElement("span",{className:"fui-visibility-rule-text"},c.default.createElement("strong",null,a.label)," ",("is_before_n_or_more_days"===this.props.rule.rule||"is_before_less_than_n_days"===this.props.rule.rule||"is_after_n_or_more_days"===this.props.rule.rule||"is_after_less_than_n_days"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,(0,p.getRuleLabel)(this.props.rule.rule,a.field_type,n)),!("is_before_n_or_more_days"===this.props.rule.rule||"is_before_less_than_n_days"===this.props.rule.rule||"is_after_n_or_more_days"===this.props.rule.rule||"is_after_less_than_n_days"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,(0,p.getRuleLabel)(this.props.rule.rule,a.field_type)," ",c.default.createElement("strong",null,n))),c.default.createElement("i",{className:"sui-icon-chevron-down fui-visibility-rule-arrow","aria-hidden":"true"}))),c.default.createElement("div",{role:"region",id:"forminator-field-"+t+"-content",className:"sui-box-body fui-visibility-rule-body","aria-labelledby":"forminator-field-"+t,"aria-hidden":!0!==this.state.open},c.default.createElement(g.default,i({},this.props,{elementId:t+"-field",property:"element_id",updateProperty:this.updateField,settings:this.props.rule,label:(0,p.translate)("Field")}),_.map(this.fields,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{elementId:t+"-condrule",settings:this.props.rule,property:"rule",updateProperty:this.updateRule,label:(0,p.translate)("Condition (required)"),options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("Select rule")),"signature"===a.field_type&&!r&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Is null")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Is not null"))),"signature"!==a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Is")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Is not"))),a.isNumber&&!r&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_great"},(0,p.translate)("Is greater than")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less than"))),!a.isNumber&&!a.hasOptions&&!r&&"signature"!==a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"contains"},(0,p.translate)("Contains")),c.default.createElement("option",{value:"starts"},(0,p.translate)("Starts")),c.default.createElement("option",{value:"ends"},(0,p.translate)("Ends"))),"date"===a.field_type&&("date-day"===a.field_slug||"date"===a.field_slug)&&!r&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"day_is"},(0,p.translate)("Day is")),c.default.createElement("option",{value:"day_is_not"},(0,p.translate)("Day is not"))),"date"===a.field_type&&("date-month"===a.field_slug||"date"===a.field_slug)&&!r&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"month_is"},(0,p.translate)("Month is")),c.default.createElement("option",{value:"month_is_not"},(0,p.translate)("Month is not"))),"date"===a.field_type&&"date"===a.field_slug&&!r&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_before"},(0,p.translate)("Is before")),c.default.createElement("option",{value:"is_after"},(0,p.translate)("Is after")),c.default.createElement("option",{value:"is_before_n_or_more_days"},(0,p.translate)("Is before n or more days")),c.default.createElement("option",{value:"is_before_less_than_n_days"},(0,p.translate)("Is before less than n days")),c.default.createElement("option",{value:"is_after_n_or_more_days"},(0,p.translate)("Is after n or more days")),c.default.createElement("option",{value:"is_after_less_than_n_days"},(0,p.translate)("Is after less than n days"))))),c.default.createElement(h.default,{cols:"6"},c.default.createElement(c.default.Fragment,null,a.hasOptions&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"}," "),c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select option")),_.map(a.values,function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)}))),!a.hasOptions&&r&&c.default.createElement(y.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Status"),disabled:!0})),!a.hasOptions&&"signature"!==a.field_type&&!r&&(!l.includes(this.props.rule.rule)||"date"!==a.field_type)&&c.default.createElement(y.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Value")})),!a.hasOptions&&"date"===a.field_type&&("month_is"===this.props.rule.rule||"month_is_not"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"}," "),c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select month")),_.map(o,function(e){return c.default.createElement("option",{value:e,key:e},e)}))),!a.hasOptions&&"date"===a.field_type&&("day_is"===this.props.rule.rule||"day_is_not"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"}," "),c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select day")),_.map(s,function(e){return c.default.createElement("option",{value:e,key:e},e)}))),!a.hasOptions&&"date"===a.field_type&&("is_before"===this.props.rule.rule||"is_after"===this.props.rule.rule)&&c.default.createElement(c.default.Fragment,null,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Select date")),c.default.createElement(w.default,i({},this.props,{settings:this.props.rule,property:"value",id:t+"-value",placeholder:(0,p.translate)("20 April 2018"),updateProperty:this.updateInputValue}))),!a.hasOptions&&"date"===a.field_type&&("is_before_n_or_more_days"===this.props.rule.rule||"is_before_less_than_n_days"===this.props.rule.rule||"is_after_n_or_more_days"===this.props.rule.rule||"is_after_less_than_n_days"===this.props.rule.rule)&&c.default.createElement(y.default,i({},this.props,{settings:this.props.rule,inputId:t+"-value",property:"value",updateProperty:this.updateInputValue,label:(0,p.translate)("Number of days"),placeholder:(0,p.translate)("E.g. 10"),type:"number",minValue:"0"}))))),c.default.createElement("div",{className:"fui-visibility-rule-footer"},c.default.createElement("button",{className:"sui-button sui-button-red sui-button-ghost",onClick:this.removeRule.bind(this)},c.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,p.translate)("Delete")),c.default.createElement("button",{className:"sui-button sui-button-ghost",onClick:function(){return e.toggleState()}},(0,p.translate)("Done")))))}}]),t}(u.Component);t.default=O},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(214),y=r(b),v=a(9),g=r(v),E=a(5),w=r(E),O=a(3),P=r(O),j=a(18),k=r(j),x=a(8),N=r(x),C=a(44),S=r(C),T=a(79),F=r(T),D=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.multiFields=[{slug:"street_address",label:(0,p.translate)("Address")},{slug:"address_line",label:(0,p.translate)("Apartment, suite, etc.")},{slug:"address_city",label:(0,p.translate)("City")},{slug:"address_state",label:(0,p.translate)("State / Province")},{slug:"address_zip",label:(0,p.translate)("ZIP / Postal code")},{slug:"address_country",label:(0,p.translate)("Country")}],a}return l(t,e),s(t,[{key:"hasChildrens",value:function(e){var t=_.filter(e,function(e){return!_.isUndefined(e)});return!_.isEmpty(t)}},{key:"render",value:function(){var e=this,t=this.props.type;(0,p.translate)("Note: The query parameter's value passed in URL should match with the {{link}}alpha-2 country code{{/link}} of the country you want to pre-populate dynamically.",{components:{link:c.default.createElement("a",{href:"https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes",target:"_blank"})}});switch(t){case"labels":return c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",value:"multiple"},this.multiFields.map(function(t,a){return"address_country"===t.slug?c.default.createElement(y.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,null,c.default.createElement(w.default,{cols:"6"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(w.default,{cols:"6"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),"data-placeholder":(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"}),c.default.createElement("option",null),_.map(forminatorData.countries,function(e,t){return c.default.createElement("option",{value:e,key:t},e)})))),c.default.createElement(g.default,null,c.default.createElement(w.default,{cols:"12"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):"address_country"!==t.slug?c.default.createElement(y.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,null,c.default.createElement(w.default,{cols:"6"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(w.default,{cols:"6"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"})))),c.default.createElement(g.default,null,c.default.createElement(w.default,{cols:"12"},c.default.createElement(P.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):void 0}));case"settings":var a=void 0,r=this.multiFields.map(function(t,r){if(!_.isUndefined(e.props.state[t.slug])&&e.props.state[t.slug])return _.isEmpty(a)&&(a=t.slug),c.default.createElement(w.default,{cols:"12",label:t.label,settings:e.props.state,value:t.slug,required:e.props.state[t.slug+"_required"],boxClass:"sui-tab-boxed",key:r},c.default.createElement(S.default,i({},e.props,{prefix:t.slug})),c.default.createElement(F.default,i({},e.props,{prefix:t.slug})))});return this.hasChildrens(r)?c.default.createElement(N.default,{default:a},r):c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"none"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("At least one field must be enabled")))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=D},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(26),d=r(f),m=a(9),h=r(m),b=a(5),y=r(b),v=a(6),g=r(v),E=a(16),w=r(E),O=a(15),P=r(O),j=a(171),k=r(j),x=a(13),N=r(x),C=a(2),S=r(C),T=a(3),F=r(T),D=a(33),M=r(D),A=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state.captcha_provider)?"recaptcha":this.props.state.captcha_provider,a=_.isUndefined(this.props.state.hcaptcha_error_message)?(0,p.translate)("hCaptcha verification failed. Please try again."):this.props.state.hcaptcha_error_message;switch(e){case"labels":return c.default.createElement("div",null);case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(P.default,{label:(0,p.translate)("Captcha Provider"),labelDark:!0,description:(0,p.translate)("Select your preferred CAPTCHA provider below."),sidebar:!1},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,property:"captcha_provider",default:"recaptcha"}),c.default.createElement(S.default,{value:"recaptcha",label:(0,p.translate)("reCAPTCHA")}),c.default.createElement(S.default,i({settings:this.props.state,value:"hcaptcha",label:(0,p.translate)("hCaptcha")},this.props),!forminatorData.hasHCaptcha&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red "+(!forminatorData.hasHCaptcha&&"sui-active"),style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You haven't added hCaptcha API keys in your global settings. Add your API keys {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=captcha",target:"_blank"})}})))))))),"recaptcha"===t&&c.default.createElement(P.default,{label:(0,p.translate)("reCAPTCHA type"),labelDark:!0,description:(0,p.translate)("Choose the reCAPTCHA type you want to use on your form. You can read more about the different reCAPTCHA types {{link}}here{{/link}} and then choose the one which suits you the best.",{components:{link:c.default.createElement("a",{href:"https://developers.google.com/recaptcha/docs/versions",target:"_blank"})}}),sidebar:!1},c.default.createElement(g.default,i({},this.props,{property:"captcha_type",settings:this.props.state,default:"v2_checkbox",label:""}),c.default.createElement(S.default,i({settings:this.props.state},this.props,{value:"v2_checkbox",label:(0,p.translate)("V2 Checkbox"),boxClass:forminatorData.hasV2Captcha?"sui-tab-boxed":""}),!forminatorData.hasV2Captcha&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red "+(!forminatorData.hasV2Captcha&&" sui-active"),style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You haven't added API keys for this reCAPTCHA type in your global settings. Add your API keys {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=captcha",target:"_blank"})}}))))),forminatorData.hasV2Captcha&&c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Size"),property:"captcha_size",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"normal"},(0,p.translate)("Normal")),c.default.createElement("option",{value:"compact"},(0,p.translate)("Compact")))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Theme"),property:"captcha_theme",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"light"},(0,p.translate)("Light")),c.default.createElement("option",{value:"dark"},(0,p.translate)("Dark")))))),c.default.createElement(S.default,i({settings:this.props.state},this.props,{value:"v2_invisible",label:(0,p.translate)("V2 Invisible"),boxClass:forminatorData.hasV2InvisibleCaptcha?"sui-tab-boxed":""}),!forminatorData.hasV2InvisibleCaptcha&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red"+(!forminatorData.hasV2InvisibleCaptcha&&" sui-acitve"),style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You haven't added API keys for this reCAPTCHA type in your global settings. Add your API keys {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=captcha",target:"_blank"})}}))))),forminatorData.hasV2InvisibleCaptcha&&c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Theme"),property:"captcha_theme",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"light"},(0,p.translate)("Light")),c.default.createElement("option",{value:"dark"},(0,p.translate)("Dark")))),c.default.createElement(S.default,i({settings:this.props.state},this.props,{value:"v3_recaptcha",label:(0,p.translate)("reCAPTCHA V3"),boxClass:forminatorData.hasV3Captcha?"sui-tab-boxed":""}),!forminatorData.hasV3Captcha&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You haven't added API keys for this reCAPTCHA type in your global settings. Add your API keys {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=captcha",target:"_blank"})}}))))),forminatorData.hasV3Captcha&&c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("span",{className:"sui-description"},(0,p.translate)("reCAPTCHA V3 returns a score (1 is very likely a good interaction, 0 is very likely a bot) based on user interaction. Choose the score below which the verification should fail.")),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Score Threshold"),property:"score_threshold",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0.0"},(0,p.translate)("0.0")),c.default.createElement("option",{value:"0.1"},(0,p.translate)("0.1")),c.default.createElement("option",{value:"0.2"},(0,p.translate)("0.2")),c.default.createElement("option",{value:"0.3"},(0,p.translate)("0.3")),c.default.createElement("option",{value:"0.4"},(0,p.translate)("0.4")),c.default.createElement("option",{value:"0.5"},(0,p.translate)("0.5")),c.default.createElement("option",{value:"0.6"},(0,p.translate)("0.6")),c.default.createElement("option",{value:"0.7"},(0,p.translate)("0.7")),c.default.createElement("option",{value:"0.8"},(0,p.translate)("0.8")),c.default.createElement("option",{value:"0.9"},(0,p.translate)("0.9")),c.default.createElement("option",{value:"1.0"},(0,p.translate)("1.0")))))))),"hcaptcha"===t&&forminatorData.hasHCaptcha&&c.default.createElement(P.default,{label:(0,p.translate)("hCaptcha type"),labelDark:!0,description:(0,p.translate)("hCaptcha offers two different types of CAPTCHA challenges, a Checkbox and an Invisible type. Choose the hCaptcha type you want to use in your form."),sidebar:!1},c.default.createElement(g.default,i({},this.props,{property:"hcaptcha_type",settings:this.props.state,default:"hc_checkbox",label:""}),c.default.createElement(S.default,i({settings:this.props.state},this.props,{value:"hc_checkbox",label:(0,p.translate)("Checkbox"),boxClass:"sui-tab-boxed"}),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Size"),property:"hcaptcha_size",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"normal"},(0,p.translate)("Normal")),c.default.createElement("option",{value:"compact"},(0,p.translate)("Compact")))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Theme"),property:"hcaptcha_theme",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"light"},(0,p.translate)("Light")),c.default.createElement("option",{value:"dark"},(0,p.translate)("Dark")))))),c.default.createElement(S.default,i({settings:this.props.state},this.props,{value:"hc_invisible",label:(0,p.translate)("Invisible"),boxClass:"sui-tab-boxed"}),c.default.createElement(M.default,i({},this.props,{settings:this.props.state,property:"hc_invisible_notice",hideEditorOptions:"true",descriptionTop:(0,p.translate)("To comply with online privacy laws, users should be informed that this form includes an invisible CAPTCHA field.")}))))),c.default.createElement(P.default,{label:(0,p.translate)("Language"),labelDark:!0,description:(0,p.translate)("By default, the global CAPTCHA language setting will be used. However, you can manually select a different language here."),sidebar:!1},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"language",fieldClass:"sui-input-md","data-placeholder":(0,p.translate)("Automatic"),hasSearch:!0}),c.default.createElement("option",null),_.map(forminatorData.captchaLangs,function(e,t){return c.default.createElement("option",{value:t,key:t},e)}))),"recaptcha"===t&&("v2_invisible"===this.props.state.captcha_type&&forminatorData.hasV2InvisibleCaptcha||"v3_recaptcha"===this.props.state.captcha_type&&forminatorData.hasV3Captcha)&&c.default.createElement(P.default,{label:(0,p.translate)("Badge Position"),labelDark:!0,description:(0,p.translate)("Select where the reCAPTCHA badge will be displayed on your page."),sidebar:!1},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"captcha_badge",defaultValue:"inline",radioClass:"sui-radio-sm"}),c.default.createElement(N.default,{value:"bottomright",hasImage:!0,image1x:"recaptcha-bottomright.png",image2x:"recaptcha-bottomright@2x.png",label:(0,p.translate)("Bottom Right")}),c.default.createElement(N.default,{value:"bottomleft",hasImage:!0,image1x:"recaptcha-bottomleft.png",image2x:"recaptcha-bottomleft@2x.png",label:(0,p.translate)("Bottom Left")}),c.default.createElement(N.default,{value:"inline",hasImage:!0,image1x:"recaptcha-inline.png",image2x:"recaptcha-inline@2x.png",label:(0,p.translate)("Inline in Form")}))),c.default.createElement(P.default,{label:(0,p.translate)("Error Message"),labelDark:!0,sidebar:!1},"recaptcha"===t&&c.default.createElement(c.default.Fragment,null,c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose the error message you want to display on your form when reCAPTCHA verification fails.")),c.default.createElement(F.default,i({},this.props,{type:"text",property:"recaptcha_error_message",settings:this.props.state}))),"hcaptcha"===t&&c.default.createElement(c.default.Fragment,null,c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose the error message you want to display on your form when hCaptcha verification fails.")),c.default.createElement(F.default,i({},this.props,{type:"text",property:"hcaptcha_error_message",settings:this.props.state,defaultValue:a})))));case"visibility":return c.default.createElement("div",null);case"styling":return c.default.createElement(d.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=A},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(44),y=r(b),v=a(2),g=r(v),E=a(20),_=r(E),w=a(6),O=r(w),P=a(9),j=r(P),k=a(5),x=r(k),N=a(3),C=r(N),S=a(16),T=r(S),F=a(13),D=r(F),M=a(82),A=r(M),V=a(34),R=r(V),U=a(79),I=r(U),L=a(486),B=r(L),q=a(15),W=r(q),$=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=this.props.state.field_type,a=(0,p.translate)("Note: The query parameter's value passed in URL should match with the selected date format.");switch(e){case"labels":return c.default.createElement(O.default,i({},this.props,{property:"field_type",settings:this.props.state,default:"picker",label:(0,p.translate)("Type"),divClass:"sui-tabs-content-lg"}),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"picker",label:(0,p.translate)("Calendar")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(T.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Date Format"),placeholder:(0,p.translate)("Date Format"),property:"date_format"}),c.default.createElement("option",{value:"yy-mm-dd"},(0,p.translate)("Y-m-d")),c.default.createElement("option",{value:"mm-dd-yy"},(0,p.translate)("m-d-Y")),c.default.createElement("option",{value:"dd-mm-yy"},(0,p.translate)("d-m-Y")),c.default.createElement("option",{value:"yy/mm/dd"},(0,p.translate)("Y/m/d")),c.default.createElement("option",{value:"mm/dd/yy"},(0,p.translate)("m/d/Y")),c.default.createElement("option",{value:"dd/mm/yy"},(0,p.translate)("d/m/Y")),c.default.createElement("option",{value:"yy.mm.dd"},(0,p.translate)("Y.m.d")),c.default.createElement("option",{value:"mm.dd.yy"},(0,p.translate)("m.d.Y")),c.default.createElement("option",{value:"dd.mm.yy"},(0,p.translate)("d.m.Y"))))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(_.default,i({property:"icon",settings:this.props.state},this.props,{label:(0,p.translate)("Calendar Icon")}),c.default.createElement("span",{value:"true"},(0,p.translate)("Show")),c.default.createElement("span",{value:"false"},(0,p.translate)("Hide")))))),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"select",label:(0,p.translate)("Dropdowns")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(T.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Date Format"),placeholder:(0,p.translate)("Date Format"),property:"date_format"}),c.default.createElement("option",{value:"yy-mm-dd"},(0,p.translate)("Y-m-d")),c.default.createElement("option",{value:"mm-dd-yy"},(0,p.translate)("m-d-Y")),c.default.createElement("option",{value:"dd-mm-yy"},(0,p.translate)("d-m-Y")),c.default.createElement("option",{value:"yy/mm/dd"},(0,p.translate)("Y/m/d")),c.default.createElement("option",{value:"mm/dd/yy"},(0,p.translate)("m/d/Y")),c.default.createElement("option",{value:"dd/mm/yy"},(0,p.translate)("d/m/Y")),c.default.createElement("option",{value:"yy.mm.dd"},(0,p.translate)("Y.m.d")),c.default.createElement("option",{value:"mm.dd.yy"},(0,p.translate)("m.d.Y")),c.default.createElement("option",{value:"dd.mm.yy"},(0,p.translate)("d.m.Y"))))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Fields")),c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginTop:"10px"}},c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Month")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"month_label"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Day")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"day_label"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Year")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"year_label"}))))))),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"input",label:(0,p.translate)("Text inputs")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(T.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Date Format"),placeholder:(0,p.translate)("Date Format"),property:"date_format"}),c.default.createElement("option",{value:"yy-mm-dd"},(0,p.translate)("Y-m-d")),c.default.createElement("option",{value:"mm-dd-yy"},(0,p.translate)("m-d-Y")),c.default.createElement("option",{value:"dd-mm-yy"},(0,p.translate)("d-m-Y")),c.default.createElement("option",{value:"yy/mm/dd"},(0,p.translate)("Y/m/d")),c.default.createElement("option",{value:"mm/dd/yy"},(0,p.translate)("m/d/Y")),c.default.createElement("option",{value:"dd/mm/yy"},(0,p.translate)("d/m/Y")),c.default.createElement("option",{value:"yy.mm.dd"},(0,p.translate)("Y.m.d")),c.default.createElement("option",{value:"mm.dd.yy"},(0,p.translate)("m.d.Y")),c.default.createElement("option",{value:"dd.mm.yy"},(0,p.translate)("d.m.Y"))))),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Fields")),c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginTop:"10px"}},c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Month")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"month_label"}))),c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter placeholder"),property:"month_placeholder"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Day")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"day_label"}))),c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter placeholder"),property:"day_placeholder"}))))),c.default.createElement(R.default,i({},this.props,{label:(0,p.translate)("Year")}),c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label (optional)"),placeholder:(0,p.translate)("Enter label"),property:"year_label"}))),c.default.createElement(x.default,{cols:"6"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter placeholder"),property:"year_placeholder"}))))))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,this.props),"input"!==t&&c.default.createElement(W.default,{label:(0,p.translate)("Default Date"),labelDark:!0,description:(0,p.translate)("Use this feature to specify a default selected date."),sidebar:!1},c.default.createElement(O.default,i({},this.props,{property:"default_date",settings:this.props.state,default:"none",label:""}),c.default.createElement(D.default,{value:"none"},(0,p.translate)("None")),c.default.createElement(D.default,{value:"today"},(0,p.translate)("Today")),c.default.createElement(g.default,i({},this.props,{settings:this.props.state,value:"custom",label:(0,p.translate)("Future Date"),boxClass:"sui-tab-boxed"}),c.default.createElement(A.default,i({},this.props,{settings:this.props.state,property:"date",dateFormat:this.props.state.date_format||"",placeholder:(0,p.translate)("20 April 2018")}))))),"select"===t&&c.default.createElement(W.default,{label:(0,p.translate)("Year Range"),labelDark:!0,description:(0,p.translate)("By default, we select 100 years in the past, and 100 years in the future for the year dropdown field. You can set a custom year range to display in the year dropdown below."),sidebar:!1},c.default.createElement("div",{className:"fui-form-field--row"},c.default.createElement(j.default,null,c.default.createElement(x.default,{cols:"4"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("From"),placeholder:(0,p.translate)("1920"),property:"min_year",type:"number"}))),c.default.createElement(x.default,{cols:"4"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("To"),placeholder:(0,p.translate)("2030"),property:"max_year",type:"number"})))))),c.default.createElement(I.default,i({},this.props,{notice:a})));case"limits":return c.default.createElement(B.default,this.props);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=$},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(16),d=r(f),m=a(9),h=r(m),b=a(5),y=r(b),v=a(82),g=r(v),E=a(3),w=r(E),O=a(13),P=r(O),j=a(46),k=r(j),x=a(2),N=r(x),C=a(6),S=r(C),T=a(487),F=r(T),D=a(488),M=r(D),A=a(15),V=r(A),R=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"getDateFields",value:function(){var e=this,t=[];return(0,p.getFieldsByType)("date",this.props.wrappers).map(function(a){e.props.state.element_id!==a.element_id&&t.push({value:a.element_id,label:a.field_label})}),t}},{key:"disableSearch",value:function(){return{minimumResultsForSearch:-1}}},{key:"render",value:function(){var e=_.isUndefined(this.props.state["start-date"])?"":this.props.state["start-date"],t=_.isUndefined(this.props.state["end-date"])?"":this.props.state["end-date"];return!_.isEmpty(this.props.state.min_year)&&_.isUndefined(this.props.state["start-date"])&&(e="specific",this.props.state["start-date"]=e,this.props.state["start-specific-date"]="Jan 1 "+this.props.state.min_year),!_.isEmpty(this.props.state.max_year)&&_.isUndefined(this.props.state["end-date"])&&(t="specific",this.props.state["end-date"]=t,this.props.state["end-specific-date"]="Dec 31 "+this.props.state.max_year),c.default.createElement(c.default.Fragment,null,c.default.createElement(V.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Start & End date")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose a start and end date limit for the calendar to restrict the date selection between a specific date range. Note that we will use the timezone set in your {{a}}WordPress Settings{{/a}}.",{components:{a:c.default.createElement("a",{href:forminatorData.adminUrl+"options-general.php",target:"_blank"})}})),c.default.createElement("div",{className:"fui-form-field--row"},c.default.createElement("div",{className:"fui-form-field--col",style:{maxWidth:240}},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Start Date"),settings:this.props.state,property:"start-date",options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("No limit")),c.default.createElement("option",{value:"specific"},(0,p.translate)("Specific date")),c.default.createElement("option",{value:"today"},(0,p.translate)("Today")),this.getDateFields().length>0&&c.default.createElement("optgroup",{label:(0,p.translate)("Date fields")},_.map(this.getDateFields(),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})))),"specific"===e&&c.default.createElement("div",{className:"fui-form-field--col"},c.default.createElement(g.default,i({},this.props,{label:" ",settings:this.props.state,property:"start-specific-date",dateFormat:"mm/dd/yy",placeholder:(0,p.translate)("Pick a date"),calendarIcon:"left"}))),""!==e&&"specific"!==e&&c.default.createElement("div",{className:"fui-form-field--col"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Offset (optional)")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"start-offset-operator",fieldClass:"sui-input-sm",defaultValue:"+",options:this.disableSearch()}),c.default.createElement("option",{value:"+"},(0,p.translate)("+")),c.default.createElement("option",{value:"-"},(0,p.translate)("-"))),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("0"),property:"start-offset-value",fieldClass:"sui-input-sm",defaultValue:"0"})),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"start-offset-duration",fieldClass:"fui-field-full",defaultValue:"days",options:this.disableSearch()}),c.default.createElement("option",{value:"days"},(0,p.translate)("days")),c.default.createElement("option",{value:"weeks"},(0,p.translate)("weeks")),c.default.createElement("option",{value:"months"},(0,p.translate)("months")),c.default.createElement("option",{value:"years"},(0,p.translate)("years"))))))),c.default.createElement("div",{className:"fui-form-field--row"},c.default.createElement("div",{className:"fui-form-field--col",style:{maxWidth:240}},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("End Date"),settings:this.props.state,property:"end-date",options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("No limit")),c.default.createElement("option",{value:"specific"},(0,p.translate)("Specific date")),c.default.createElement("option",{value:"today"},(0,p.translate)("Today")),this.getDateFields().length>0&&c.default.createElement("optgroup",{label:(0,p.translate)("Date fields")},_.map(this.getDateFields(),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})))),"specific"===t&&c.default.createElement("div",{className:"fui-form-field--col"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,property:"end-specific-date",dateFormat:"mm/dd/yy",placeholder:(0,p.translate)("Pick a date"),calendarIcon:"left"}))),""!==t&&"specific"!==t&&c.default.createElement("div",{className:"fui-form-field--col"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Offset (optional)")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"end-offset-operator",fieldClass:"sui-input-sm",defaultValue:"+",options:this.disableSearch()}),c.default.createElement("option",{value:"+"},(0,p.translate)("+")),c.default.createElement("option",{value:"-"},(0,p.translate)("-"))),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("0"),property:"end-offset-value",fieldClass:"sui-input-sm",defaultValue:"0"})),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,property:"end-offset-duration",fieldClass:"fui-field-full",defaultValue:"days",options:this.disableSearch()}),c.default.createElement("option",{value:"days"},(0,p.translate)("days")),c.default.createElement("option",{value:"weeks"},(0,p.translate)("weeks")),c.default.createElement("option",{value:"months"},(0,p.translate)("months")),c.default.createElement("option",{value:"years"},(0,p.translate)("years")))))))),c.default.createElement(V.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Days of the week")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose which days of the week should be available on the calendar.")),c.default.createElement(S.default,i({},this.props,{property:"howto-restrict",settings:this.props.state,default:"all"}),c.default.createElement(P.default,{value:"all"},(0,p.translate)("All days")),c.default.createElement(N.default,i({},this.props,{settings:this.props.state,value:"week",label:(0,p.translate)("Selected days"),boxClass:"sui-tab-boxed"}),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"4"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"sunday",label:(0,p.translate)("Sunday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"wednesday",label:(0,p.translate)("Wednesday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"saturday",label:(0,p.translate)("Saturday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(y.default,{cols:"4"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"monday",label:(0,p.translate)("Monday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"thursday",label:(0,p.translate)("Thursday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(y.default,{cols:"4"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"tuesday",label:(0,p.translate)("Tuesday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(k.default,i({},this.props,{settings:this.props.state,property:"friday",label:(0,p.translate)("Friday"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))))))),c.default.createElement(V.default,null,c.default.createElement(F.default,i({},this.props,{label:(0,p.translate)("Disable dates"),hasSettingsLabel:"dark",description:(0,p.translate)("Use this setting to disable specific dates on the calendar."),settings:this.props.state,property:"disabled-dates",dateFormat:"mm/dd/yy",placeholder:(0,p.translate)("Pick a date")}))),c.default.createElement(V.default,null,c.default.createElement(M.default,i({},this.props,{label:(0,p.translate)("Disable date ranges"),hasSettingsLabel:"dark",description:(0,p.translate)("Use this setting to disable specific dates ranges on the calendar."),settings:this.props.state,property:"disable-date-range",dateFormat:"MM/DD/YYYY",placeholder:(0,p.translate)("Pick a date")}))),c.default.createElement(V.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Error Message")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose an error message to be used when visitor enters a date that is disabled.")),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"restrict_message"}))))}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this,t=this,a=this.props.dateFormat?this.props.dateFormat:"mm-dd-yy",r=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];this.$el=jQuery(this.el),this.$elDate=jQuery(this.elDate);var n=Object.assign({allowClear:!0,dropdownCssClass:"sui-select-dropdown",placeholder:(0,u.translate)("Click here to add a date…")},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(n):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(n):console.log("select2 not intiated"),this.$elDate.datepicker({beforeShow:function(t,a){jQuery("body").append(jQuery("#ui-datepicker-div")),jQuery("#ui-datepicker-div").addClass("sui-calendar"),"forminator-field-date"===e.$el.attr("id")&&("disable"===e.props.state.past_dates?e.$el.datepicker("option","minDate",e.$el.datepicker("getDate")):"enable"===e.props.state.past_dates&&e.$el.datepicker("option","minDate",null))},dateFormat:a,autoclose:!0,dayNamesMin:forminatorl10n.calendar.day_names_min,monthNames:forminatorl10n.calendar.month_names,onSelect:function(a){var r=_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property];r.push(a),t.updateValue(r),t.$el.html(""),_.each(r,function(e){t.$el.append(jQuery('<option value="'+e+'">'+e+"</option>"))}),t.$el.val(r).trigger("change")}}),this.$el.on("select2:opening",function(e){e.preventDefault(),(_.isUndefined(t.props.settings[t.props.property])?[]:t.props.settings[t.props.property]).length===e.currentTarget.selectedOptions.length&&t.$elDate.datepicker("show")}),this.$el.on("select2:unselect",function(e){e.preventDefault();var a=_.isUndefined(t.props.settings[t.props.property])?[]:t.props.settings[t.props.property];a=a.filter(function(t){return t!==e.params.data.id}),t.updateValue(a)}),_.each(r,function(e){t.$el.append(jQuery('<option value="'+e+'">'+e+"</option>"))}),this.$el.val(r).trigger("change.select2")}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData(),this.$elDate.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],a="",r="";return this.props.label&&""!==this.props.label&&(a=this.props.hasSettingsLabel?s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-settings-label"+("dark"===this.props.hasSettingsLabel?" sui-dark":"")},this.props.label):s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),this.props.description&&""!==this.props.description&&(r=s.default.createElement("p",{className:"sui-description",style:{marginBottom:10}},this.props.description)),s.default.createElement("div",{className:"sui-form-field"},a,r,s.default.createElement("div",{className:"fui-datepicker-tags"},s.default.createElement("select",{ref:function(t){return e.el=t},className:"sui-select sui-select-lg",defaultValue:t,multiple:"multiple"},this.props.children),s.default.createElement("input",{ref:function(t){return e.elDate=t},className:"sui-input"})))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.dateFormat?this.props.dateFormat:"MM/DD/YYYY",a=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];this.$el=jQuery(this.el),this.$elDate=jQuery(this.elDate);var r=Object.assign({allowClear:!0,dropdownCssClass:"sui-select-dropdown",placeholder:(0,u.translate)("Click here to add a date range...")},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(r):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(r):console.log("select2 not intiated"),this.$elDate.daterangepicker({autoApply:!0,locale:{format:"MMMM DD, YYYY",separator:" - ",customRangeLabel:"Custom",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"]},alwaysShowCalendars:!0,parentEl:".fui-daterange-calendar"}),this.$elDate.on("apply.daterangepicker",function(a,r){var n=_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property];n.push(r.startDate.format(t)+" - "+r.endDate.format(t)),e.updateValue(n),e.$el.html(""),_.each(n,function(t){e.$el.append(jQuery('<option value="'+t+'">'+t+"</option>"))}),e.$el.val(n).trigger("change")}),this.$el.on("select2:opening",function(t){t.preventDefault(),(_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property]).length===t.currentTarget.selectedOptions.length&&e.$elDate.trigger("click"),jQuery(".daterangepicker").css("zIndex","3001")}),this.$el.on("select2:unselect",function(t){t.preventDefault();var a=_.isUndefined(e.props.settings[e.props.property])?[]:e.props.settings[e.props.property];a=a.filter(function(e){return e!==t.params.data.id}),setTimeout(function(){e.updateValue(a)},20)}),_.each(a,function(t){e.$el.append(jQuery('<option value="'+t+'">'+t+"</option>"))}),this.$el.val(a).trigger("change.select2")}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData(),this.$elDate.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],a="",r="";return this.props.label&&""!==this.props.label&&(a=this.props.hasSettingsLabel?s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-settings-label"+("dark"===this.props.hasSettingsLabel?" sui-dark":"")},this.props.label):s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),this.props.description&&""!==this.props.description&&(r=s.default.createElement("p",{className:"sui-description",style:{marginBottom:10}},this.props.description)),s.default.createElement("div",{className:"sui-form-field"},a,r,s.default.createElement("div",{className:"fui-datepicker-tags"},s.default.createElement("select",{ref:function(t){return e.el=t},className:"sui-select sui-select-lg",defaultValue:t,multiple:"multiple"},this.props.children),s.default.createElement("div",{className:"fui-daterange-calendar"}),s.default.createElement("input",{id:"forminator-field-"+this.props.property,style:{visibility:"hidden"},ref:function(t){return e.elDate=t},className:"sui-input",autoComplete:"off"})))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(213),d=r(f),m=a(24),h=r(m),b=a(26),y=r(b),v=a(44),g=r(v),E=a(3),_=r(E),w=a(16),O=r(w),P=a(15),j=r(P),k=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(d.default,this.props);case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(j.default,{label:(0,p.translate)("Signature Filetype"),labelDark:!0,description:(0,p.translate)("Choose the filetype to save your users' signature in."),descriptionSpacing:20,sidebar:!1},c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(O.default,i({},this.props,{property:"filetype",settings:this.props.state,"data-width":"100",fieldSize:"100"}),c.default.createElement("option",{value:"png"},(0,p.translate)("PNG")),c.default.createElement("option",{value:"jpg"},(0,p.translate)("JPG"))))),c.default.createElement(j.default,{label:(0,p.translate)("Height"),labelDark:!0,description:(0,p.translate)("Choose the height of your signature field. The default value is 180px."),descriptionSpacing:20,sidebar:!1},c.default.createElement(_.default,i({},this.props,{type:"number",settings:this.props.state,placeholder:"180",property:"height",suffix:"px"}))),c.default.createElement(j.default,{label:(0,p.translate)("Stroke Thickness"),labelDark:!0,description:(0,p.translate)("Choose the thickness in pixels for signature strokes. The default value is 2px."),descriptionSpacing:20,sidebar:!1},c.default.createElement(_.default,i({},this.props,{type:"number",settings:this.props.state,placeholder:"2",property:"thickness",suffix:"px"}))));case"visibility":return c.default.createElement(h.default,this.props);case"styling":return c.default.createElement(y.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=k},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(33),y=r(b),v=a(3),g=r(v),E=a(44),w=r(E),O=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t={};switch(_.assign(t,forminatorData.variables),delete t.submission_id,e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("E.g. Consent"),property:"field_label"})),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,boxClass:"sui-tab-boxed",property:"consent_description",editorOptions:t,description:(0,p.translate)("Describe what your users should consent to.")})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=O},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(33),y=r(b),v=a(3),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("The {{strong}}GDPR Field{{/strong}} has been deprecated and replaced by the new {{strong}}Consent Field{{/strong}}. Your existing fields should continue to work as expected, but please consider using the {{strong}}Consent Field{{/strong}} in the future.",{components:{strong:c.default.createElement("strong",null)}}))))),c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,boxClass:"sui-tab-boxed",property:"gdpr_description",editorOptions:forminatorData.variables,description:(0,p.translate)("Note, the form will not submit until the user has accepted the terms.")})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Error message"),placeholder:(0,p.translate)("Enter required message"),property:"required_message",id:"forminator-field-name-error-msg"})));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(26),d=r(f),m=a(9),h=r(m),b=a(5),y=r(b),v=a(3),g=r(v),E=a(16),w=r(E),O=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default_value"}),_.map(forminatorData.variablesForHiddenField,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})))),"custom_value"===this.props.state.default_value&&c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Custom Value"),placeholder:(0,p.translate)("Enter custom value"),property:"custom_value"})))),"query"===this.props.state.default_value&&c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Query parameter"),placeholder:(0,p.translate)("E.g. query_parameter_key"),property:"prefill"})))));case"settings":case"visibility":return c.default.createElement("div",null);case"styling":return c.default.createElement(d.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=O},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(33),y=r(b),v=a(3),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t={};switch(_.assign(t,forminatorData.variables),delete t.submission_id,e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})),c.default.createElement(y.default,i({},this.props,{extraId:"html-type",settings:this.props.state,boxClass:"sui-tab-boxed",property:"variations",editorOptions:t,enableFormData:"true",enablePostData:"false",enableUpload:"true",allowButtonOnclick:"true",mainOptions:[]})));case"settings":return c.default.createElement("div",null);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=(a(1),a(24)),p=r(c),f=a(495),d=r(f),m=a(496),h=r(m),b=a(497),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),i(t,[{key:"render",value:function(){var e=this.props.type,t={};switch(_.assign(t,forminatorData.variables),delete t.submission_id,e){case"labels":return u.default.createElement(d.default,this.props);case"settings":return u.default.createElement(h.default,this.props);case"visibility":return u.default.createElement(p.default,this.props);case"styling":return u.default.createElement(y.default,this.props);default:return u.default.createElement("div",null)}}}]),t}(s.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(9),d=r(f),m=a(5),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Use this field to group Forminator fields together and collect repeating data in your form. Learn more about grouping and repeating use cases in {{link}}this tutorial. {{icon/}}{{/link}}",{components:{strong:c.default.createElement("strong",null),link:c.default.createElement("a",{href:"https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#field-group",target:"_blank"}),icon:c.default.createElement("span",{className:"sui-icon-open-new-window sui-sm","aria-hidden":"true"})}})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(81),d=a(9),m=r(d),h=a(5),b=r(h),y=a(3),v=r(y),g=a(6),E=r(g),w=a(2),O=r(w),P=a(13),j=r(P),k=a(16),x=r(k),N=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"getVariables",value:function(){return(0,p.getFields)(this.props.wrappers,[],{},["calculation","currency","number"])}},{key:"render",value:function(){var e=this.getVariables();return c.default.createElement(E.default,i({},this.props,{property:"is_repeater",settings:this.props.state,default:"true",label:(0,p.translate)("Field Repeater"),description:(0,p.translate)("Allow fields in this group to be repeated.")}),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"true",label:(0,p.translate)("Enable"),boxClass:"sui-tab-boxed"}),c.default.createElement(E.default,i({},this.props,{property:"min_limit_type",settings:this.props.state,default:"custom",label:(0,p.translate)("Minimum repeater limit"),wrapperClass:"forminator-float",description:(0,p.translate)("Enter the minimum number of times this group field will be repeated by default, or select a variable from your form fields. If left empty, the minimum will default to 1.")}),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"custom",label:(0,p.translate)("Custom"),boxClass:""}),c.default.createElement(v.default,i({},this.props,{settings:this.props.state,defaultValue:"",minValue:"1",property:"min_limit",placeholder:(0,p.translate)("Enter minimum limit"),type:"number"}))),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"variable",label:(0,p.translate)("Variable"),boxClass:""}),c.default.createElement(x.default,i({},this.props,{settings:this.props.state,property:"min_limit_field",noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Choose form field")),_.map(e,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label+" {"+e.element_id+"}"))})))),c.default.createElement(E.default,i({},this.props,{property:"max_limit_type",settings:this.props.state,default:"custom",label:(0,p.translate)("Maximum repeater limit"),wrapperClass:"forminator-float",description:(0,p.translate)("Enter the maximum number of times this group field can be repeated, or select a variable from your form fields. If left empty, the maximum will be unlimited.")}),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"custom",label:(0,p.translate)("Custom"),boxClass:""}),c.default.createElement(v.default,i({},this.props,{settings:this.props.state,defaultValue:"",minValue:"1",property:"max_limit",placeholder:(0,p.translate)("Enter maximum limit"),type:"number"}))),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"variable",label:(0,p.translate)("Variable"),boxClass:""}),c.default.createElement(x.default,i({},this.props,{settings:this.props.state,property:"max_limit_field",noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Choose form field")),_.map(e,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},(0,f.escapeHTML)(e.label+" {"+e.element_id+"}"))})))),c.default.createElement(E.default,i({},this.props,{property:"action_element_type",settings:this.props.state,default:"button",label:(0,p.translate)("Repeater Element Type"),description:(0,p.translate)("Choose the element type and label text for your repeater actions.")}),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"button",label:(0,p.translate)("Buttons"),boxClass:"sui-tab-boxed"}),c.default.createElement(m.default,null,c.default.createElement(b.default,{cols:"6"},c.default.createElement(v.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Add Button Text (optional)"),placeholder:(0,p.translate)("Add item"),defaultValue:(0,p.translate)("Add item"),property:"add_action_text"}))),c.default.createElement(b.default,{cols:"6"},c.default.createElement(v.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Remove Button Text (optional)"),placeholder:(0,p.translate)("Remove item"),defaultValue:(0,p.translate)("Remove item"),property:"remove_action_text"}))))),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,value:"icon",label:(0,p.translate)("Icons")})),c.default.createElement(O.default,i({},this.props,{settings:this.props.state,value:"link",label:(0,p.translate)("Text links"),boxClass:"sui-tab-boxed"}),c.default.createElement(m.default,null,c.default.createElement(b.default,{cols:"6"},c.default.createElement(v.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Add Link Text (optional)"),placeholder:(0,p.translate)("Add item"),defaultValue:(0,p.translate)("Add item"),property:"add_action_text"}))),c.default.createElement(b.default,{cols:"6"},c.default.createElement(v.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Add Link Text (optional)"),placeholder:(0,p.translate)("Remove item"),defaultValue:(0,p.translate)("Remove item"),property:"remove_action_text"}))))))),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,value:"false",label:(0,p.translate)("Disable")})))}}]),t}(u.Component);t.default=N},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(26),d=r(f),m=a(6),h=r(m),b=a(13),y=r(b),v=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,this.props),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-1"},c.default.createElement("span",{className:"sui-settings-label"},(0,p.translate)("Group Field Styling")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default, the Group Field will apply the styles you have set in the Appearance settings, but you can remove those styles with this option."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(h.default,i({},this.props,{property:"group_styles",settings:this.props.state,default:"default"}),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,value:"default",label:(0,p.translate)("Apply")})),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,value:"custom",label:(0,p.translate)("Remove")}))))))}}]),t}(u.Component);t.default=v},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(239),y=r(b),v=a(44),g=r(v),E=a(9),w=r(E),O=a(5),P=r(O),j=a(3),k=r(j),x=a(195),N=r(x),C=a(20),S=r(C),T=a(15),F=r(T),D=a(379),M=r(D),A=a(79),V=r(A),R=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=!_.isUndefined(this.props.state.enable_images)&&this.props.state.enable_images;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(y.default,this.props));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(F.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Layout")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, we stack the options vertically. However, you can change the options layout below.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,property:"layout",defaultValue:"vertical",noWrapper:!0}),c.default.createElement("div",{value:"vertical"},(0,p.translate)("Vertical")),c.default.createElement("div",{value:"horizontal"},(0,p.translate)("Horizontal")))),t&&c.default.createElement(M.default,this.props),c.default.createElement(V.default,this.props));case"calculations":return c.default.createElement(N.default,i({},this.props,{description:(0,p.translate)("Choose whether to allow this field to be used in calculations or not.")}));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(34),d=(r(f),a(80)),m=r(d),h=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.labelInput=c.default.createRef(),a.valueInput=c.default.createRef(),a.focusLabel=a.focusLabel.bind(a),a.focusValue=a.focusValue.bind(a),a.toggleState=a.toggleState.bind(a),a.updateImage=a.updateImage.bind(a),a.state={focus:!1,open:a.props.state.options_expanded},a}return l(t,e),s(t,[{key:"removeOption",value:function(){this.props.removeOption(this.props.counter)}},{key:"updateLabel",value:function(e){this.props.updateLabel(this.props.counter,e.target.value)}},{key:"updateLimit",value:function(e){this.props.updateLimit(this.props.counter,e.target.value)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"updateDefault",value:function(e){this.props.updateDefault(this.props.counter,e.target.checked)}},{key:"updateImage",value:function(e,t){this.props.updateImage(this.props.counter,t,e)}},{key:"onFocus",value:function(){this.setState({focus:!0})}},{key:"onBlurValue",value:function(){this.onBlur()}},{key:"onBlurLabel",value:function(e){this.onBlur();var t=(0,p.generateValue)(e.target.value);_.isEmpty(this.props.option.value)&&this.props.updateValue(this.props.counter,t)}},{key:"onBlur",value:function(){this.state.focus&&this.setState({focus:!1})}},{key:"focusLabel",value:function(){this.labelInput.current.focus()}},{key:"focusValue",value:function(){this.valueInput.current.focus()}},{key:"toggleState",value:function(){this.setState({open:!this.state.open});var e=this,t=jQuery(".fui-option"),a=0,r=0,n=void 0,o=void 0;clearTimeout(n),n=setTimeout(function(){t.each(function(){jQuery(this).find(".sui-accordion-item").hasClass("sui-accordion-item--open")?a++:r++}),clearTimeout(o),o=setTimeout(function(){0===a?e.props.updateProperty("options_expanded",!1):0===r&&e.props.updateProperty("options_expanded",!0)},50)},50)}},{key:"componentDidMount",value:function(){this.$opt=jQuery(this.opt);var e=jQuery("#forminator-modal"),t=e.scrollTop();e.on("scroll",function(){t=jQuery(this).scrollTop()}),this.$opt.on("change",".sui-checkbox > input",function(a){a.preventDefault(),a.stopPropagation(),e.scrollTop(t)})}},{key:"componentDidUpdate",value:function(e){this.props.state.options_expanded!==e.state.options_expanded&&this.setState({open:this.props.state.options_expanded})}},{key:"render",value:function(){var e=this,t=this.state.focus?"fui-on_focus":"",a=_.isEmpty(this.props.option.label)||this.props.option.error?"sui-form-field-error":"",r=this.state.open,n=this.props.state.enable_images,o="",l=void 0!==this.props.option.image?"url("+this.props.option.image+")":"";return o=r?"sui-accordion-item--open":"",c.default.createElement("div",{className:"fui-option "+t,ref:function(t){return e.opt=t}},c.default.createElement("div",{className:"fui-option-settings"},c.default.createElement("div",{className:"sui-accordion-item "+o,style:{boxShadow:"none"}},c.default.createElement("div",{className:"sui-accordion-item-header",style:{minHeight:"0",padding:"0"}},c.default.createElement("div",{className:"fui-option-settings--main",style:{padding:"0"}},!r&&n&&c.default.createElement("div",{className:"sui-upload"},c.default.createElement("div",{className:"sui-upload-image","aria-hidden":"true"},c.default.createElement("div",{className:"sui-image-mask"}),c.default.createElement("div",{role:"button",className:"sui-image-preview",style:{display:"block",backgroundImage:l}}))),c.default.createElement("div",{className:"sui-form-field "+a},c.default.createElement("input",{type:"text",size:"1",placeholder:(0,p.translate)("Label"),value:this.props.option.label,className:"sui-form-control",onChange:this.updateLabel.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlurLabel.bind(this),ref:this.labelInput,onClick:this.focusLabel,title:(0,p.translate)("Label")})),!r&&c.default.createElement("label",{htmlFor:"option-selected-"+this.props.counter,className:"sui-checkbox",title:(0,p.translate)("Selected"),style:{marginLeft:"15px"}},c.default.createElement("input",{type:"checkbox",checked:this.props.option.default?"checked":"",name:"demo-field-radio--option-selected",id:"option-selected-"+this.props.counter,onChange:this.updateDefault.bind(this)}),c.default.createElement("span",{"aria-hidden":"true"})),c.default.createElement("button",{className:"sui-button-icon sui-button-red fui-option-remove",title:(0,p.translate)("Delete option"),"aria-label":(0,p.translate)("Delete option"),onClick:this.removeOption.bind(this)},c.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"})),c.default.createElement("div",{style:{borderLeft:"1px solid #E6E6E6",width:"1px",height:"30px"}}),c.default.createElement("button",{className:"sui-button-icon sui-accordion-open-indicator",title:(0,p.translate)("Toggle"),"aria-label":"Open item",onClick:function(){return e.toggleState()}},c.default.createElement("i",{className:"sui-icon-chevron-down","aria-hidden":"true"})))),c.default.createElement("div",{className:"sui-accordion-item-body",style:{padding:"10px 10px 0 0"}},c.default.createElement("div",{className:"fui-option-settings--extra"},c.default.createElement("input",{type:"text",value:this.props.option.value,placeholder:(0,p.translate)("Value"),className:"sui-form-control",onChange:this.updateValue.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlurValue.bind(this),ref:this.valueInput,onClick:this.focusValue}),this.props.state.type&&"select"===this.props.state.type&&this.props.isLimit&&"true"===this.props.isLimit&&c.default.createElement("input",{type:"text",value:this.props.option.limit,placeholder:(0,p.translate)("Submission limit"),className:"sui-form-control",onChange:this.updateLimit.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),r&&c.default.createElement("label",{htmlFor:"option-selected-"+this.props.counter,className:"sui-checkbox"},c.default.createElement("input",{type:"checkbox",checked:this.props.option.default?"checked":"",name:"demo-field-radio--option-selected",id:"option-selected-"+this.props.counter,onChange:this.updateDefault.bind(this)}),c.default.createElement("span",{"aria-hidden":"true"}),c.default.createElement("span",{className:"sui-description sui-description-sm"},(0,p.translate)("Selected")))),n&&c.default.createElement("div",{className:"fui-option-settings--extra"},c.default.createElement(m.default,i({},this.props,{settings:this.props.option,type:"image",fieldClass:"sui-auto",property:"image",updateProperty:this.updateImage})))))))}}]),t}(u.Component);t.default=h},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.updateValue=a.updateValue.bind(a);var o=_.isUndefined(a.props.defaultValue)?"":a.props.defaultValue,l=_.isUndefined(a.props.settings[a.props.property])?o:a.props.settings[a.props.property];return a.state={value:l},a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this,t=this;this.$el=jQuery(this.el),this.$addPredefined=jQuery(this.addPredefined),SUI.select.initVars(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",function(a){var r=t.state.value,n=a.target.value;0!==r.length&&(n=r+"\n"+n),e.updateValue(n),e.predefinedSelector(),e.scrollToNewOpt()}),this.predefinedSelector()}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e),"function"==typeof this.props.updateValue&&this.props.updateValue(this.props.counter,e),this.setState({value:e})}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.value!==e.value&&this.updateValue(this.props.value),null}},{key:"componentDidUpdate",value:function(e,t){this.props.state.enable_images!==e.state.enable_images&&(SUI.select.initVars(this.$el),this.predefinedSelector())}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"scrollToNewOpt",value:function(){var e=jQuery("#bulk-edit-textarea"),t=void 0;clearTimeout(t),t=setTimeout(function(){e.animate({scrollTop:e.prop("scrollHeight")},300)},20)}},{key:"predefinedSelector",value:function(){this.$el.next(".select2-container").find(".select2-selection").html((0,u.translate)("+ Predefined options"))}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.defaultValue)?"":this.props.defaultValue,a=_.isUndefined(this.props.settings[this.props.property])?t:this.props.settings[this.props.property],r=_.isUndefined(this.props.requiredError)?(0,u.translate)("This field is required!"):this.props.requiredError,n=this.isValid(a)?"":"sui-form-field-error",o=!_.isUndefined(this.props.state.enable_images)&&this.props.state.enable_images,l=(0,u.translate)("My Label; my-value; 0; https://mysite.com/my-image-url.jpg"),i=(0,u.translate)("My Label; my-value; 0");return s.default.createElement("div",{className:"sui-form-field "+n},s.default.createElement("div",{className:"sui-row"},s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-col-sm-6 sui-label"},this.props.label," ",(this.props.isRequired||this.props.required)&&s.default.createElement("span",{className:"sui-error"}," *")),s.default.createElement("div",{id:"add-predefined",className:"sui-col-sm-6 sui-insert-variables",ref:function(t){return e.addPredefined=t}},s.default.createElement("select",{className:"predefined-options sui-variables",ref:function(t){return e.el=t}},s.default.createElement("option",{value:i},(0,u.translate)("New option")),o&&s.default.createElement("option",{value:l},(0,u.translate)("New option with image")),s.default.createElement("option",{value:(0,u.translate)("Under 1 year\n1-17\n18-24\n25-34\n35-44\n45-54\n55-64\n65 and Above")},(0,u.translate)("Age")),s.default.createElement("option",{value:(0,u.translate)("Male\nFemale\nNon-binary\nOther")},(0,u.translate)("Gender")),s.default.createElement("option",{value:(0,u.translate)("Primary School\nHigh School\nSome College\nAssociate's Degree\nBachelor's Degree\nMaster's degree\nProfessional degree\nDoctoral degree\nOther")},(0,u.translate)("Educational Attainment")),s.default.createElement("option",{value:(0,u.translate)("Full-time employed\nPart-time employed\nSelf-employed\nContract Worker\nHomemaker\nRetired\nStudent\nUnemployed")},(0,u.translate)("Employment Status")),s.default.createElement("option",{value:(0,u.translate)("Architecture and Engineering\nArts, Design, Entertainment, Sports, and Media\nBuilding and Grounds Cleaning and Maintenance\nBusiness and Financial Operations\nCommunity and Social Services\nComputer and Mathematical\nConstruction and Extraction\nEducational Instruction and Library\nFarming, Fishing, and Forestry\nFood Preparation and Serving Related\nHealthcare Practitioners and Technical\nHealthcare Support\nInstallation, Maintenance, and Repair\nLegal\nLife, Physical, and Social Science\nManagement\nOffice and Administrative Support\nPersonal Care and Services\nProduction/Manufacturing\nProtective Service\nSales and Related\nTransportation and Material Moving")},(0,u.translate)("Occupation")),s.default.createElement("option",{value:(0,u.translate)("Single\nMarried\nDivorced\nSeparated\nWidowed")},(0,u.translate)("Marital Status")),s.default.createElement("option",{value:(0,u.translate)("Africa\nAntarctica\nAsia\nAustralia\nEurope\nNorth America\nSouth America")},(0,u.translate)("Continents")),s.default.createElement("option",{value:(0,u.translate)("Afghanistan\nÅland Islands\nAlbania\nAlgeria\nAmerican Samoa\nAndorra\nAngola\nAnguilla\nAntarctica\nAntigua and Barbuda\nArgentina\nArmenia\nAruba\nAustralia\nAustria\nAzerbaijan\nBahamas\nBahrain\nBangladesh\nBarbados\nBelarus\nBelgium\nBelize\nBenin\nBermuda\nBhutan\nBolivia\nBonaire, Sint Eustatius and Saba\nBosnia and Herzegovina\nBotswana\nBouvet Island\nBrazil\nBritish Indian Ocean Territory\nBrunei Darussalam\nBulgaria\nBurkina Faso\nBurundi\nCabo Verde\nCambodia\nCameroon\nCanada\nCayman Islands\nCentral African Republic\nChad\nChile\nChina\nChristmas Island\nCocos Islands\nColombia\nComoros\nCongo, Democratic Republic of the\nCongo, Republic of the\nCook Islands\nCosta Rica\nCôte d'Ivoire\nCroatia\nCuba\nCuraçao\nCyprus\nCzech Republic\nDenmark\nDjibouti\nDominica\nDominican Republic\nEcuador\nEgypt\nEl Salvador\nEquatorial Guinea\nEritrea\nEstonia\nEswatini\nEthiopia\nFalkland Islands\nFaroe Islands\nFiji\nFinland\nFrance\nFrench Guiana\nFrench Polynesia\nFrench Southern Territories\nGabon\nGambia\nGeorgia\nGermany\nGhana\nGibraltar\nGreece\nGreenland\nGrenada\nGuadeloupe\nGuam\nGuatemala\nGuernsey\nGuinea\nGuinea-Bissau\nGuyana\nHaiti\nHeard and McDonald Islands\nHoly See\nHonduras\nHong Kong\nHungary\nIceland\nIndia\nIndonesia\nIran\nIraq\nIreland\nIsle of Man\nIsrael\nItaly\nJamaica\nJapan\nJersey\nJordan\nKazakhstan\nKenya\nKiribati\nKuwait\nKyrgyzstan\nLao People's Democratic Republic\nLatvia\nLebanon\nLesotho\nLiberia\nLibya\nLiechtenstein\nLithuania\nLuxembourg\nMacau\nMadagascar\nMalawi\nMalaysia\nMaldives\nMali\nMalta\nMarshall Islands\nMartinique\nMauritania\nMauritius\nMayotte\nMexico\nMicronesia\nMoldova\nMonaco\nMongolia\nMontenegro\nMontserrat\nMorocco\nMozambique\nMyanmar\nNamibia\nNauru\nNepal\nNetherlands\nNew Caledonia\nNew Zealand\nNicaragua\nNiger\nNigeria\nNiue\nNorfolk Island\nNorth Korea\nNorth Macedonia\nNorthern Mariana Islands\nNorway\nOman\nPakistan\nPalau\nPalestine, State of\nPanama\nPapua New Guinea\nParaguay\nPeru\nPhilippines\nPitcairn\nPoland\nPortugal\nPuerto Rico\nQatar\nRéunion\nRomania\nRussia\nRwanda\nSaint Barthélemy\nSaint Helena, Ascension and Tristan da Cunha\nSaint Kitts and Nevis\nSaint Lucia\nSaint Martin\nSaint Pierre and Miquelon\nSaint Vincent and the Grenadines\nSamoa\nSan Marino\nSao Tome and Principe\nSaudi Arabia\nSenegal\nSerbia\nSeychelles\nSierra Leone\nSingapore\nSint Maarten\nSlovakia\nSlovenia\nSolomon Islands\nSomalia\nSouth Africa\nSouth Georgia and the South Sandwich Islands\nSouth Korea\nSouth Sudan\nSpain\nSri Lanka\nSudan\nSuriname\nSvalbard and Jan Mayen Islands\nSweden\nSwitzerland\nSyria\nTaiwan\nTajikistan\nTanzania\nThailand\nTimor-Leste\nTogo\nTokelau\nTonga\nTrinidad and Tobago\nTunisia\nTurkey\nTurkmenistan\nTurks and Caicos Islands\nTuvalu\nUganda\nUkraine\nUnited Arab Emirates\nUnited Kingdom\nUnited States\nUruguay\nUS Minor Outlying Islands\nUzbekistan\nVanuatu\nVenezuela\nVietnam\nVirgin Islands, British\nVirgin Islands, U.S.\nWallis and Futuna\nWestern Sahara\nYemen\nZambia\nZimbabwe")},(0,u.translate)("Countries")),s.default.createElement("option",{value:(0,u.translate)("Alabama\nAlaska\nArizona\nArkansas\nCalifornia\nColorado\nConnecticut\nDelaware\nDistrict of Columbia\nFlorida\nGeorgia\nHawaii\nIdaho\nIllinois\nIndiana\nIowa\nKansas\nKentucky\nLouisiana\nMaine\nMaryland\nMassachusetts\nMichigan\nMinnesota\nMississippi\nMissouri\nMontana\nNebraska\nNevada\nNew Hampshire\nNew Jersey\nNew Mexico\nNew York\nNorth Carolina\nNorth Dakota\nOhio\nOklahoma\nOregon\nPennsylvania\nRhode Island\nSouth Carolina\nSouth Dakota\nTennessee\nTexas\nUtah\nVermont\nVirginia\nWashington\nWest Virginia\nWisconsin\nWyoming")},(0,u.translate)("American States")),s.default.createElement("option",{value:(0,u.translate)("Alberta\nBritish Columbia\nManitoba\nNew Brunswick\nNewfoundland and Labrador\nNorthwest Territories\nNova Scotia\nNunavut\nOntario\nPrince Edward Island\nQuebec\nSaskatchewan\nYukon")},(0,u.translate)("Canadian Provinces"))))),s.default.createElement("div",{className:"sui-insert-variables"},s.default.createElement("textarea",{id:"bulk-edit-textarea",value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)},rows:"8"}),this.props.isRequired&&!this.isValid(a)&&s.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&s.default.createElement("span",{className:"sui-description bulk-editor-description"},this.props.description)))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=r(s),c=a(1),p=a(3),f=(r(p),function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateField=a.updateField.bind(a),a.updateState=a.updateState.bind(a),a}return l(t,e),i(t,[{key:"updateField",value:function(e,t){this.updateState(t,e.target.value)}},{key:"updateState",value:function(e,t){var a=this.props.state.options;a[e].calculation=t,this.props.updateProperty("options",a)}},{key:"render",value:function(){var e=this;return 0===this.props.state.options.length?u.default.createElement("div",null):u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("span",{className:"sui-description"},(0,c.translate)("Assign a calculation value to each option. These values will not be shown on the form. You can assign only a numeric value."))),_.map(this.props.state.options,function(t,a){var r=_.isEmpty(t.calculation)?"sui-form-field-error":"";return u.default.createElement("div",{key:a,className:"sui-form-field "+r},u.default.createElement("label",{htmlFor:"calculation-option-"+a,className:"sui-label"},t.label),u.default.createElement("input",{type:"number",placeholder:(0,c.translate)("Calculation value"),id:"calculation-option-"+a,className:"sui-form-control sui-input-md",onChange:function(t){return e.updateField(t,a)},defaultValue:t.calculation}),_.isEmpty(t.calculation)&&u.default.createElement("span",{className:"sui-error-message"},(0,c.translate)("Calculation value is required!")))}))}}]),t}(s.Component));t.default=f},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(213),d=r(f),m=a(24),h=r(m),b=a(26),y=r(b),v=a(6),g=r(v),E=a(8),w=r(E),O=a(503),P=r(O),j=a(44),k=r(j),x=a(238),N=(r(x),a(183)),C=(r(N),a(5)),S=r(C),T=a(79),F=r(T),D=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.multiFields=[{slug:"prefix",label:(0,p.translate)("Prefix")},{slug:"fname",label:(0,p.translate)("First Name")},{slug:"mname",label:(0,p.translate)("Middle Name")},{slug:"lname",label:(0,p.translate)("Last Name")}],a}return l(t,e),s(t,[{key:"hasChildrens",value:function(e){var t=_.filter(e,function(e){return!_.isUndefined(e)});return!_.isEmpty(t)}},{key:"render",value:function(){var e=this;switch(this.props.type){case"labels":return c.default.createElement(g.default,i({},this.props,{property:"multiple_name",settings:this.props.state,default:"false",divClass:"sui-tabs-content-lg"}),c.default.createElement(d.default,i({settings:this.props.state},this.props,{value:"false"}),(0,p.translate)("Single")),c.default.createElement(P.default,i({settings:this.props.state},this.props,{value:"true"}),(0,p.translate)("Multiple")));case"settings":if("true"===this.props.state.multiple_name){var t=void 0,a=this.multiFields.map(function(a,r){if(!_.isUndefined(e.props.state[a.slug])&&e.props.state[a.slug]){if(_.isEmpty(t)&&(t=a.slug),"prefix"===a.slug)return c.default.createElement(S.default,{cols:"12",label:a.label,value:a.slug,settings:e.props.state,boxClass:"sui-tab-boxed",key:r},c.default.createElement(F.default,i({},e.props,{prefix:a.slug})));if("prefix"!==a.slug)return c.default.createElement(S.default,{cols:"12",label:a.label,settings:e.props.state,value:a.slug,required:e.props.state[a.slug+"_required"],boxClass:"sui-tab-boxed",key:r},c.default.createElement(k.default,i({},e.props,{prefix:a.slug})),c.default.createElement(F.default,i({},e.props,{prefix:a.slug})))}});return this.hasChildrens(a)?c.default.createElement(w.default,{default:t},a):c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("At least one field must be enabled")))))}if("true"!==this.props.state.multiple_name)return c.default.createElement("div",null,c.default.createElement(k.default,this.props),c.default.createElement(F.default,this.props));case"visibility":return c.default.createElement(h.default,this.props);case"styling":return c.default.createElement(y.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=D},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(214),d=r(f),m=a(9),h=r(m),b=a(5),y=r(b),v=a(3),g=r(v),E=a(18),_=r(E),w=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this,t=[{slug:"fname",label:(0,p.translate)("First Name")},{slug:"mname",label:(0,p.translate)("Middle Name")},{slug:"lname",label:(0,p.translate)("Last Name")}];return c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",value:"multiple"},c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Prefix"),property:"prefix",required:this.props.state.prefix_required,settings:this.props.state}),c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"prefix_label"}))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(_.default,i({property:"prefix_placeholder",label:(0,p.translate)("Default value"),settings:this.props.state},this.props),c.default.createElement("option",{value:"Mr"},(0,p.translate)("Mr.")),c.default.createElement("option",{value:"Mrs"},(0,p.translate)("Mrs.")),c.default.createElement("option",{value:"Ms"},(0,p.translate)("Ms.")),c.default.createElement("option",{value:"Mx"},(0,p.translate)("Mx.")),c.default.createElement("option",{value:"Miss"},(0,p.translate)("Miss")),c.default.createElement("option",{value:"Dr"},(0,p.translate)("Dr.")),c.default.createElement("option",{value:"Prof"},(0,p.translate)("Prof."))))),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"prefix_description"})))))),t.map(function(t,a){return c.default.createElement(d.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(y.default,{cols:"6"},c.default.createElement(g.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"})))),c.default.createElement(h.default,null,c.default.createElement(y.default,{cols:"12"},c.default.createElement(g.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"}))))))}))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(9),y=r(b),v=a(5),g=r(v),E=a(3),w=r(E),O=a(44),P=r(O),j=a(195),k=r(j),x=a(79),N=r(x),C=a(6),S=r(C),T=a(13),F=r(T),D=a(2),M=r(D),A=a(15),V=r(A),R=a(16),U=r(R),I=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state.separators)?"":this.props.state.separators;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default_value"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(P.default,this.props),c.default.createElement(V.default,{label:(0,p.translate)("Limits"),labelDark:!0,description:(0,p.translate)("Set the minimum and maximum values the user can choose. Leave the fields blank to allow any number including negatives."),descriptionSpacing:20,sidebar:!1},c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(w.default,i({type:"number"},this.props,{settings:this.props.state,placeholder:"0",property:"limit_min",label:(0,p.translate)("Minimum"),fieldClass:"sui-input-md"})),c.default.createElement(w.default,i({type:"number"},this.props,{settings:this.props.state,placeholder:"0",property:"limit_max",label:(0,p.translate)("Maximum"),fieldClass:"sui-input-md"}))),c.default.createElement(S.default,i({},this.props,{property:"limit_message",settings:this.props.state,default:"false",label:(0,p.translate)("Error Messages"),divClass:"sui-tabs-content-lg"}),c.default.createElement(F.default,{value:"false",label:(0,p.translate)("Default")}),c.default.createElement(M.default,{value:"true",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,type:"text",property:"limit_min_message",label:(0,p.translate)("When number is smaller than the min limit"),placeholder:(0,p.translate)("E.g. Please enter a number greater than 0.")})),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,type:"text",property:"limit_max_message",label:(0,p.translate)("When number is greater than the max limit"),placeholder:(0,p.translate)("E.g. Please enter a number lower than 1000.")}))))),c.default.createElement(V.default,{label:(0,p.translate)("Formatting"),labelDark:!0,description:(0,p.translate)("Choose how do you want to format the value of this field."),descriptionSpacing:20,sidebar:!1},c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(U.default,i({},this.props,{property:"separators",settings:this.props.state,defaultValue:"1234567.89",label:(0,p.translate)("Separators"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"blank"},(0,p.translate)("1234567.89")),c.default.createElement("option",{value:"comma_dot"},(0,p.translate)("1,234,567.89")),c.default.createElement("option",{value:"dot_comma"},(0,p.translate)("1.234.567,89")),c.default.createElement("option",{value:"space_comma"},(0,p.translate)("1 234 567,89")))),"custom"!==t&&c.default.createElement(g.default,{cols:"6"},c.default.createElement(U.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals"))))),"custom"===t&&c.default.createElement("div",{className:"sui-form-field-inline sui-border-frame",style:{marginBottom:"5px"}},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"thousand-separators",defaultValue:",",label:(0,p.translate)("Thousand Separator"),fieldClass:"sui-input-md"})),c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"decimal-separators",defaultValue:".",label:(0,p.translate)("Decimal Separator"),fieldClass:"sui-input-md"}))),"custom"===t&&c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(U.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals")))))),c.default.createElement(N.default,this.props));case"calculations":return c.default.createElement(k.default,this.props);case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=I},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(3),d=r(f),m=a(13),h=r(m),b=a(2),y=r(b),v=a(6),g=r(v),E=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Step label"),placeholder:(0,p.translate)("Enter step label"),property:"pagination-label"})),c.default.createElement(g.default,i({},this.props,{property:"pagination-labels",settings:this.props.state,settingsLabel:(0,p.translate)("Buttons Text"),default:"none",description:(0,p.translate)("Choose whether you want to use default text for the Previous and Next button or use custom text.")}),c.default.createElement(h.default,{value:"none"},(0,p.translate)("Default")),c.default.createElement(y.default,i({},this.props,{value:"custom",boxClass:"sui-tab-boxed",label:(0,p.translate)("Custom")}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Previous Button"),placeholder:(0,p.translate)("Enter text"),property:"pagination-footer-button-text"})),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Next Button"),placeholder:(0,p.translate)("Enter text"),property:"pagination-right-button-text"})))));case"settings":case"visibility":case"styling":default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=E},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(213),d=r(f),m=a(24),h=r(m),b=a(26),y=r(b),v=a(44),g=r(v),E=a(183),w=(r(E),a(2)),O=r(w),P=a(6),j=r(P),k=a(3),x=r(k),N=a(18),C=r(N),S=a(13),T=r(S),F=a(79),D=r(F),M=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){for(var e=this.props.type,t=window.intlTelInputGlobals.getCountryData(),a=new Object,r=0;r<t.length;r++)a[t[r].iso2]=t[r].name;switch(e){case"labels":return c.default.createElement(d.default,this.props);case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Validation")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Make sure the users fill this field as per the selected validation and warn them when they haven't")),c.default.createElement(j.default,i({},this.props,{property:"validation",settings:this.props.state,default:"none",label:(0,p.translate)("Type"),divClass:"sui-tabs-content-lg"}),c.default.createElement(T.default,{value:"none",label:(0,p.translate)("None")}),c.default.createElement(O.default,{value:"standard",label:(0,p.translate)("National"),boxClass:"sui-tab-boxed"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Select the country to validate phone number for"),property:"phone_national_country"}),_.map(a,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})),c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Validation message"),type:"text",placeholder:(0,p.translate)("Enter validation message"),property:"validation_message"}))),c.default.createElement(O.default,{value:"international",label:(0,p.translate)("International"),boxClass:"sui-tab-boxed"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default country"),property:"phone_international_country",defaultValue:"US"}),_.map(a,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})),c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Validation message"),type:"text",placeholder:(0,p.translate)("Enter validation message"),property:"validation_message"}))),c.default.createElement(O.default,{value:"character_limit",label:(0,p.translate)("Character Limit"),boxClass:"sui-tab-boxed"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Limit field to"),type:"text",placeholder:(0,p.translate)("10"),property:"limit",suffix:(0,p.translate)("Characters"),inputClass:"sui-field-has-suffix"})),c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Validation message"),type:"text",placeholder:(0,p.translate)("Enter validation message"),property:"validation_message"})))))),c.default.createElement(D.default,this.props));case"visibility":return c.default.createElement(h.default,this.props);case"styling":return c.default.createElement(y.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=M},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(44),y=r(b),v=a(214),g=r(v),E=a(9),w=r(E),O=a(5),P=r(O),j=a(3),k=r(j),x=a(20),N=r(x),C=a(18),S=r(C),T=a(46),F=r(T),D=a(380),M=r(D),A=a(15),V=r(A),R=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.multiFields=[{slug:"post_title",label:(0,p.translate)("Title"),placeholder:!1},{slug:"post_content",label:(0,p.translate)("Content"),placeholder:!0},{slug:"post_excerpt",label:(0,p.translate)("Excerpt"),placeholder:!1},{slug:"post_image",label:(0,p.translate)("Featured Image"),placeholder:!0}],a.post_type=a.props.state.post_type,a.post_categories=[],_.isUndefined(forminatorData.postCategories[a.post_type])||_.isEmpty(forminatorData.postCategories[a.post_type])||(a.post_categories=forminatorData.postCategories[a.post_type],a.post_categories.map(function(e){a.multiFields.push({slug:e.value,label:e.label,placeholder:!0})})),a.multiFields.push({slug:"post_custom_fields",label:(0,p.translate)("Custom Fields"),placeholder:!1}),a}return l(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props.type,a=_.isUndefined(forminatorData.postCategories[this.props.state.post_type])?[]:forminatorData.postCategories[this.props.state.post_type];switch(t){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement("p",{className:"sui-description"},(0,p.translate)("Allow users to submit post data with this field. By default, this will create new posts, but you can assign it to any post type in the {{strong}}Settings{{/strong}} tab.",{components:{strong:c.default.createElement("strong",{style:{color:"#17A8E3"}})}})),c.default.createElement("div",{value:"multiple",className:"sui-accordion sui-accordion-flushed fui-modal-accordion"},this.multiFields.map(function(t,a){return!1===t.placeholder&&"post_custom_fields"!==t.slug?c.default.createElement(g.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"6"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"}))),c.default.createElement(P.default,{cols:"6"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):!0===t.placeholder&&"post_custom_fields"!==t.slug?c.default.createElement(g.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,required:e.props.state[t.slug+"_required"],key:a}),c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:t.slug+"_label"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:t.slug+"_description"})))))):"post_custom_fields"===t.slug?c.default.createElement(g.default,i({},e.props,{label:t.label,property:t.slug,settings:e.props.state,key:a,noBoxBody:!0}),c.default.createElement(c.default.Fragment,null,c.default.createElement(M.default,i({wrappers:e.props.wrappers},e.props)))):void 0})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,this.props),c.default.createElement(V.default,null,c.default.createElement("p",{className:"sui-settings-label sui-dark"},(0,p.translate)("Post type")),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("Choose the post type associated with this field.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Assigned post type"),placeholder:(0,p.translate)("post"),property:"post_type",fieldClass:"sui-input-md"}),_.map(forminatorData.postTypeList,function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)}))),c.default.createElement(V.default,null,c.default.createElement("p",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default status")),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("When a user submits this form, choose what status this post data is.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Status"),placeholder:(0,p.translate)("pending"),property:"data_status",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"draft"},(0,p.translate)("Draft")),c.default.createElement("option",{value:"pending"},(0,p.translate)("Pending Review")),c.default.createElement("option",{value:"publish"},(0,p.translate)("Published")))),c.default.createElement(V.default,null,c.default.createElement("p",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default author")),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("By default we'll assign posts to users if they're logged in, and fall back to the user specified below if you're allowing visitors to make posts. You can also override this to always assign posts to a specified user.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default author"),property:"select_author",fieldClass:"sui-input-md fui-reduce-spacing"}),_.map(forminatorData.userList,function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})),c.default.createElement(F.default,i({},this.props,{settings:this.props.state,property:"default_author",label:(0,p.translate)("Always assign posts to this user"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),a.length>0&&c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Taxonomies limits")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether to allow single or multiple categories or tags on this post.")),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(w.default,null,_.map(a,function(t,a){return c.default.createElement(P.default,{cols:"6",key:a},c.default.createElement(N.default,i({},e.props,{settings:e.props.state,property:t.value+"_multiple",defaultValue:"0",label:t.label}),c.default.createElement("div",{value:"0"},(0,p.translate)("Single")),c.default.createElement("div",{value:"1"},(0,p.translate)("Multiple"))))}))))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(81),d=a(16),m=(r(d),a(49)),h=r(m),b=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={focus:!1},a}return l(t,e),s(t,[{key:"getNameOptions",value:function(){var e=[];return(0,p.getFields)(this.props.wrappers,["page-break","postdata","captcha","consent","gdprcheckbox","stripe","paypal","password"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"removeOption",value:function(){this.props.removeOption(this.props.counter)}},{key:"updateLabel",value:function(e){this.props.updateLabel(this.props.counter,e.target.value)}},{key:"updateValue",value:function(e){this.props.updateValue(this.props.counter,e.target.value)}},{key:"onFocus",value:function(){this.setState({focus:!0})}},{key:"onBlur",value:function(){this.state.focus&&this.setState({focus:!1})}},{key:"render",value:function(){var e=_.isEmpty(this.props.option.label)?"sui-form-field-error":"";return c.default.createElement("div",{className:"sui-builder-field sui-can_move sui-react "+e},c.default.createElement("div",{className:"sui-field-info",style:{overflow:"inherit"}},c.default.createElement("i",{className:"sui-icon-drag sui-align_top","aria-hidden":"true"}),c.default.createElement("div",{className:"sui-builder-field-form"},c.default.createElement("div",{className:"sui-form-field-row"},c.default.createElement("input",{type:"text",placeholder:(0,p.translate)("Label"),value:this.props.option.label,className:"sui-form-control",onChange:this.updateLabel.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)})),c.default.createElement("div",{className:"sui-form-field-row"},c.default.createElement(h.default,i({},this.props,{settings:this.props.option,property:"value",placeholder:(0,p.translate)("Value"),className:"sui-form-control",onChange:this.updateValue.bind(this)}),this.getNameOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value,"data-content":e.value},(0,f.escapeHTML)(e.label))}))))),c.default.createElement("div",{className:"sui-field-actions sui-align_top"},c.default.createElement("button",{className:"sui-button-icon sui-button-red",onClick:this.removeOption.bind(this)},c.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),c.default.createElement("span",{className:"sui-screen-reader-text"},(0,p.translate)("Delete meta")))))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(6),y=r(b),v=a(2),g=r(v),E=a(13),_=r(E),w=a(9),O=r(w),P=a(5),j=r(P),k=a(3),x=r(k),N=a(4),C=r(N),S=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(O.default,null,c.default.createElement(j.default,{cols:"6"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Title"),placeholder:(0,p.translate)("Enter title"),property:"section_title"}))),c.default.createElement(j.default,{cols:"6"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Subtitle (optional)"),placeholder:(0,p.translate)("Enter subtitle"),property:"section_subtitle"}))));case"settings":return c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Border")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Add a border to this section.")),c.default.createElement(y.default,i({},this.props,{property:"section_border",settings:this.props.state,default:"none"}),c.default.createElement(_.default,{value:"none"},(0,p.translate)("None")),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"solid",label:(0,p.translate)("Solid"),boxClass:"sui-tab-boxed"}),c.default.createElement(O.default,null,c.default.createElement(j.default,{cols:"3"},c.default.createElement(x.default,i({},this.props,{type:"number",settings:this.props.state,label:(0,p.translate)("Width"),note:"px",placeholder:"0",property:"cform-section-border-width"}))),c.default.createElement(j.default,{cols:"9"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Color"),property:"cform-section-border-color",defaultValue:"rgba(233,233,233,1)",isAlpha:!0}))))),c.default.createElement(g.default,i({settings:this.props.state},this.props,{value:"dashed",label:(0,p.translate)("Dashed"),boxClass:"sui-tab-boxed"}),c.default.createElement(O.default,null,c.default.createElement(j.default,{cols:"3"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Width"),note:"px",placeholder:"0",property:"cform-section-border-width"}))),c.default.createElement(j.default,{cols:"9"},c.default.createElement(C.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Color"),property:"cform-section-border-color",defaultValue:"rgba(233,233,233,1)",isAlpha:!0}))))))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=S},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(239),y=r(b),v=a(44),g=r(v),E=a(9),_=r(E),w=a(5),O=r(w),P=a(3),j=r(P),k=a(20),x=r(k),N=a(195),C=r(N),S=a(15),T=r(S),F=a(6),D=r(F),M=a(13),A=r(M),V=a(79),R=r(V),U=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=this.props.state.value_type,a="multiselect"===t?"false":"true",r=this.props.state.limit_status,n="enable"===r?"true":"false",o=(this.props.state.required,(0,p.translate)("Note: Pass comma-separated values for this query parameter to pre-populate multiple options."));switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,defaultValue:"single",label:(0,p.translate)("Type"),property:"value_type",clearOptions:"true"}),c.default.createElement("span",{value:"single"},(0,p.translate)("Single")),c.default.createElement("span",{value:"multiselect"},(0,p.translate)("Multiple"))))),"multiselect"!==t&&c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(y.default,i({},this.props,{isRadio:a,isLimit:n})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),"multiselect"!==t&&c.default.createElement(T.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Search")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Display the search box in a dropdown")),c.default.createElement("div",{className:"sui-form-field",style:{marginTop:"0"}},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,defaultValue:"disable",property:"search_status",clearOptions:"true",noWrapper:!0}),c.default.createElement("span",{value:"enable"},(0,p.translate)("Enable")),c.default.createElement("span",{value:"disable"},(0,p.translate)("Disable"))))),c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Limit Submission")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("You can limit submissions of each option to a certain number, and once an option reaches the submission limit, we'll hide that option from the dropdown list.")),c.default.createElement("div",{className:"sui-form-field",style:{marginTop:"0"}},c.default.createElement(D.default,i({},this.props,{settings:this.props.state,default:"disable",property:"limit_status",simple:!0}),c.default.createElement(A.default,{value:"disable",label:(0,p.translate)("Disable")}),c.default.createElement(_.default,i({},this.props,{settings:this.props.state,value:"enable",label:(0,p.translate)("Enable")}),c.default.createElement(O.default,{cols:"12"},c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You can set a limit for your options in the LABELS tab. Options for which limit field is left empty can have unlimited submissions."))))))))),c.default.createElement(R.default,i({},this.props,{notice:"multiselect"===t&&o})));case"calculations":return c.default.createElement(C.default,i({},this.props,{description:(0,p.translate)("Choose whether to allow this field to be used in calculations or not. The value used in calculations is the same as the input value of this field.")}));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=U},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(9),y=r(b),v=a(5),g=r(v),E=a(3),_=r(E),w=a(18),O=r(w),P=a(44),j=r(P),k=a(183),x=(r(k),a(79)),N=r(x),C=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(j.default,this.props),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Max characters")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default the user can enter as many characters as they want. Use this setting to limit the number of characters the user can enter. Leave field blank to allow unlimited characters.")),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Character limit")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. 100"),property:"limit",fieldClass:"sui-input-sm"})),c.default.createElement(O.default,i({property:"limit_type",settings:this.props.state},this.props),c.default.createElement("option",{value:"characters"},(0,p.translate)("Characters")),c.default.createElement("option",{value:"words"},(0,p.translate)("Words"))))))),c.default.createElement(N.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=C},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(9),y=(r(b),a(5)),v=(r(y),a(3)),g=r(v),E=a(381),_=r(E),w=a(18),O=r(w),P=a(44),j=r(P),k=a(183),x=(r(k),a(20)),N=r(x),C=a(79),S=r(C),T=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a}return l(t,e),s(t,[{key:"updateProperty",value:function(e,t){this.props.state[e]=t}},{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})),c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder")+"\n"+(0,p.translate)("You can add new line"),property:"placeholder"})),c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default"})),c.default.createElement(g.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(j.default,this.props),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Rich-Text editor")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Enable TinyMCE editor to allow the formatted text.")),c.default.createElement(N.default,i({},this.props,{settings:this.props.state,property:"editor-type",defaultValue:"false"}),c.default.createElement("div",{value:"false"},(0,p.translate)("Disable")),c.default.createElement("div",{value:"true"},(0,p.translate)("Enable"))))),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Max characters")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default the user can enter as many characters as they want. Use this setting to limit the number of characters the user can enter. Leave field blank to allow unlimited characters.")),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Character limit")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. 100"),property:"limit",inputClass:"sui-input-sm"})),c.default.createElement(O.default,i({},this.props,{property:"limit_type",settings:this.props.state}),c.default.createElement("option",{value:"characters"},(0,p.translate)("Characters")),c.default.createElement("option",{value:"words"},(0,p.translate)("Words"))))))),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Default height")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the default minimum height of your textarea field.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(g.default,i({},this.props,{settings:this.props.state,defaultValue:"140",property:"default-height",inputClass:"sui-input-sm"})),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("px"))))),c.default.createElement(S.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=T},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},u=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),c=a(0),p=r(c),f=a(1),d=a(24),m=r(d),h=a(26),b=r(h),y=a(44),v=r(y),g=a(183),E=(r(g),a(6)),w=r(E),O=a(34),P=r(O),j=a(9),k=r(j),x=a(5),N=r(x),C=a(20),S=r(C),T=a(3),F=r(T),D=a(16),M=r(D),A=a(2),V=r(A),R=a(13),U=r(R),I=a(79),L=r(I),B=a(15),q=r(B),W=function(e){function t(e){return o(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return i(t,e),u(t,[{key:"isTimeValid",value:function(e){var t=!0,a="twelve"===e?"h:mma":"H:mm";if(!_.isUndefined(this.props.state.restrict_time)&&"specific"===this.props.state.restrict_time){var r=_.isUndefined(this.props.state.restrict_start_hour)?0:this.props.state.restrict_start_hour,n=_.isUndefined(this.props.state.restrict_start_minute)?0:this.props.state.restrict_start_minute,o=_.isUndefined(this.props.state.restrict_start_ampm)?"AM":this.props.state.restrict_start_ampm,l=_.isUndefined(this.props.state.restrict_end_hour)?0:this.props.state.restrict_end_hour,i=_.isUndefined(this.props.state.restrict_end_minute)?0:this.props.state.restrict_end_minute,s=_.isUndefined(this.props.state.restrict_end_ampm)?"AM":this.props.state.restrict_end_ampm,u=_.isUndefined(this.props.state.default_time)?"none":this.props.state.default_time,c=_.isUndefined(this.props.state.default_time_hour)?0:this.props.state.default_time_hour,p=_.isUndefined(this.props.state.default_time_minute)?0:this.props.state.default_time_minute,f=_.isUndefined(this.props.state.default_time_ampm)?"AM":this.props.state.default_time_ampm,d="twelve"===e?o:"",m="twelve"===e?s:"",h="twelve"===e?f:"",b=moment(r+":"+n+d,a),y=moment(l+":"+i+m,a),v=moment(c+":"+p+h,a);"default"===u&&(v.isBefore(b)||y.isBefore(v))&&(t=!1)}return t}},{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state.time_type)?"":this.props.state.time_type,a="twelve"===t?12:24,r=(0,f.translate)("{{strong}}Note:{{/strong}} The query parameter's value passed in URL should match with the selected time format.",{components:{strong:p.default.createElement("strong",null)}}),o=this.isTimeValid(t);switch(e){case"labels":return p.default.createElement(p.default.Fragment,null,p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"6"},p.default.createElement(S.default,s({},this.props,{settings:this.props.state,property:"field_type",label:(0,f.translate)("Type")}),p.default.createElement("span",{value:"select"},(0,f.translate)("Dropdowns")),p.default.createElement("span",{value:"input"},(0,f.translate)("Number inputs")))),p.default.createElement(N.default,{cols:"6"},p.default.createElement(S.default,s({},this.props,{settings:this.props.state,property:"time_type",label:(0,f.translate)("Type")}),p.default.createElement("span",{value:"twelve"},(0,f.translate)("12 hour")),p.default.createElement("span",{value:"twentyfour"},(0,f.translate)("24 hour"))))),p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Label"),placeholder:(0,f.translate)("Enter label"),property:"field_label"})),p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Description (optional)"),placeholder:(0,f.translate)("Enter description"),property:"description"})),p.default.createElement("label",{className:"sui-label"},(0,f.translate)("Fields")),p.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{marginTop:"10px"}},p.default.createElement(P.default,s({},this.props,{label:(0,f.translate)("Hours")}),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Label (optional)"),placeholder:(0,f.translate)("Enter label"),property:"hh_label"}))),p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Placeholder (optional)"),placeholder:(0,f.translate)("Enter placeholder"),property:"hh_placeholder"}))))),p.default.createElement(P.default,s({},this.props,{label:(0,f.translate)("Minutes")}),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Label (optional)"),placeholder:(0,f.translate)("Enter label"),property:"mm_label"}))),p.default.createElement(N.default,{cols:"6"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Placeholder (optional)"),placeholder:(0,f.translate)("Enter placeholder"),property:"mm_placeholder"})))))));case"settings":return p.default.createElement(p.default.Fragment,null,p.default.createElement(v.default,this.props),p.default.createElement(q.default,{label:(0,f.translate)("Increments"),labelDark:!0,description:(0,f.translate)("Choose what time increments you want to use for the hour and minute timepickers."),descriptionSpacing:20,sidebar:!1},p.default.createElement("div",{className:"sui-form-field-inline"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Hour"),property:"increment_hour","data-width":"86"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)})),p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Minute"),property:"increment_minute","data-width":"86"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)})))),p.default.createElement(q.default,{label:(0,f.translate)("Limits"),labelDark:!0,description:(0,f.translate)("Choose a time limit for the time picker field to restrict the time selection between specific hours."),descriptionSpacing:20,sidebar:!1},p.default.createElement(w.default,s({},this.props,{property:"restrict_time",settings:this.props.state,default:"none",simple:!0}),p.default.createElement(V.default,s({settings:this.props.state},this.props,{value:"specific",label:(0,f.translate)("Specific Hours"),boxClass:"sui-tab-boxed"}),p.default.createElement("label",{className:"sui-label"},(0,f.translate)("Start Time")),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"1",property:"restrict_start_hour"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"0",property:"restrict_start_minute"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),"twelve"===t&&p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,property:"restrict_start_ampm"}),p.default.createElement("option",{value:"am"},(0,f.translate)("AM")),p.default.createElement("option",{value:"pm"},(0,f.translate)("PM"))))),p.default.createElement("label",{className:"sui-label"},(0,f.translate)("End Time")),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"1",property:"restrict_end_hour"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,placeholder:"0",property:"restrict_end_minute"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),"twelve"===t&&p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,property:"restrict_end_ampm"}),p.default.createElement("option",{value:"am"},(0,f.translate)("AM")),p.default.createElement("option",{value:"pm"},(0,f.translate)("PM"))))),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"12"},p.default.createElement(F.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Error Message"),property:"restrict_message",description:(0,f.translate)("This error message will be used when time entered is out of the set limits.")}))))),p.default.createElement(U.default,{value:"none"},(0,f.translate)("None")))),p.default.createElement(q.default,{label:(0,f.translate)("Default Time"),labelDark:!0,description:(0,f.translate)("Use this feature to specify a default selected time."),descriptionSpacing:20,sidebar:!1},p.default.createElement(w.default,s({},this.props,{property:"default_time",settings:this.props.state,default:"none",simple:!0}),p.default.createElement(V.default,s({},this.props,{label:(0,f.translate)("Default"),settings:this.props.state,value:"default",boxClass:"sui-tab-boxed"}),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Hour"),placeholder:"1",property:"default_time_hour"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Minute"),placeholder:"0",property:"default_time_minute"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))),"twelve"===t&&p.default.createElement(N.default,{cols:"3"},p.default.createElement(M.default,s({},this.props,{settings:this.props.state,label:" ",property:"default_time_ampm"}),p.default.createElement("option",{value:"am"},(0,f.translate)("AM")),p.default.createElement("option",{value:"pm"},(0,f.translate)("PM"))))),!o&&p.default.createElement("span",{className:"sui-error-message"},(0,f.translate)("Default time can't be outside the allowed time limit."))),p.default.createElement(U.default,{value:"none"},(0,f.translate)("None")))),p.default.createElement(L.default,s({},this.props,{notice:r})));case"visibility":return p.default.createElement(m.default,this.props);case"styling":return p.default.createElement(b.default,this.props);default:return p.default.createElement("div",null)}}}]),t}(c.Component);t.default=W},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(515),y=r(b),v=a(44),g=r(v),E=a(3),w=r(E),O=a(5),P=(r(O),a(18)),j=r(P),k=a(20),x=r(k),N=a(6),C=r(N),S=a(13),T=r(S),F=a(2),D=r(F),M=a(15),A=r(M),V=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state["upload-limit"])?0:this.props.state["upload-limit"],a=_.isUndefined(this.props.state.filesize)?"MB":this.props.state.filesize,r="KB"===a?1e3*parseInt(forminatorData.maxUpload):"B"===a?1e6*parseInt(forminatorData.maxUpload):parseInt(forminatorData.maxUpload),n=_.isUndefined(this.props.state["file-type"])?0:this.props.state["file-type"];switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(x.default,i({},this.props,{settings:this.props.state,defaultValue:"single",label:(0,p.translate)("Type"),property:"file-type",clearOptions:"true"}),c.default.createElement("span",{value:"single"},(0,p.translate)("Single")),c.default.createElement("span",{value:"multiple"},(0,p.translate)("Multiple"))),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(y.default,this.props),"multiple"===n&&c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Limit number of files")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the maximum number of files that can be uploaded using this field.")),c.default.createElement(C.default,i({},this.props,{settings:this.props.state,property:"file-limit",defaultValue:"unlimited"}),c.default.createElement(T.default,{value:"unlimited",label:(0,p.translate)("Unlimited")}),c.default.createElement(D.default,{value:"custom",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"},c.default.createElement(w.default,i({},this.props,{type:"number",placeholder:"5",defaultValue:"5",property:"file-limit-input",inputClass:"sui-input-sm",label:(0,p.translate)("File upload limit"),settings:this.props.state}))))),c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},"multiple"===n?(0,p.translate)("Filesize limit per file"):(0,p.translate)("Filesize limit")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("We've detected your server will allow uploads up to %(maxUpload)sMB in size currently. You can set a lower limit than this using the input below, however if you want uploads of more than %(maxUpload)sMB you'll need to adjust this in your server's PHP.ini settings.",{args:{maxUpload:forminatorData.maxUpload}})),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Upload limit per file")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,defaultValue:"8",property:"upload-limit",fieldClass:"sui-input-sm"+(parseInt(t)>r?" sui-form-field-error":"")})),c.default.createElement(j.default,i({},this.props,{property:"filesize",settings:this.props.state,defaultValue:"MB",elementClass:"sui-select-inline",simple:!0}),c.default.createElement("option",{value:"MB"},(0,p.translate)("MB")),c.default.createElement("option",{value:"KB"},(0,p.translate)("KB")),c.default.createElement("option",{value:"B"},(0,p.translate)("B")))),c.default.createElement("div",{role:"alert",className:"sui-notice"+(parseInt(t)>r&&" sui-active"),style:{display:parseInt(t)>r?"block":"none"},"aria-live":"assertive"},parseInt(t)>r&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("The file size you have entered exceeds what your current hosting settings are capped to. You need to increase your max filesize limit at the server level first."))))))),"multiple"===n&&c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Upload method")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether you want to use AJAX to upload individual files as they are selected or use the traditional method of uploading all files together on form submission. We recommend using the AJAX method to avoid server timeouts.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,property:"upload-method",defaultValue:"ajax"}),c.default.createElement("div",{value:"ajax"},(0,p.translate)("AJAX")),c.default.createElement("div",{value:"submission"},(0,p.translate)("On form submission"))))),c.default.createElement(A.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Show files in media library")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether you want to show the files uploaded by your visitors using this field in your media library.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(x.default,i({},this.props,{settings:this.props.state,property:"use_library",defaultValue:""}),c.default.createElement("div",{value:"true"},(0,p.translate)("Enable")),c.default.createElement("div",{value:""},(0,p.translate)("Disable"))))));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=V},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(9),d=r(f),m=a(5),h=r(m),b=a(46),y=(r(b),a(516)),v=r(y),g=a(381),E=r(g),w=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"toggleValue",value:function(e){this.props.updateProperty("custom-files",e)}},{key:"render",value:function(){var e=!_.isUndefined(this.props.state["custom-files"])&&this.props.state["custom-files"],t=[],a=[],r=[],n=[],o=[],l=[],s=[],u=[];return _.isUndefined(forminatorData.fileExts.audio)||forminatorData.fileExts.audio.map(function(e){t.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.document)||forminatorData.fileExts.document.map(function(e){a.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.image)||forminatorData.fileExts.image.map(function(e){r.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.video)||forminatorData.fileExts.video.map(function(e){n.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.archive)||forminatorData.fileExts.archive.map(function(e){o.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.text)||forminatorData.fileExts.text.map(function(e){l.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.spreadsheet)||forminatorData.fileExts.spreadsheet.map(function(e){s.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),_.isUndefined(forminatorData.fileExts.interactive)||forminatorData.fileExts.interactive.map(function(e){u.push({value:e,label:"."+e,itemClass:"sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"})}),c.default.createElement("div",{className:"sui-box-settings-row"},c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Allowed filetypes")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("By default, we will use WordPress' {{a}}default allowed mime types{{/a}}. However, you can restrict your users to upload some specific types of files only.",{components:{a:c.default.createElement("a",{href:"https://developer.wordpress.org/reference/functions/get_allowed_mime_types",target:"_blank"})}})),c.default.createElement("div",{className:"sui-tabs sui-side-tabs",style:{marginTop:"10px"}},c.default.createElement("div",{className:"sui-tabs-menu"},c.default.createElement("div",{className:"sui-tab-item "+(e?"":"active"),onClick:this.toggleValue.bind(this,!1)},(0,p.translate)("Default")),c.default.createElement("div",{className:"sui-tab-item "+(e?"active":""),onClick:this.toggleValue.bind(this,!0)},(0,p.translate)("Specific filetypes"))),c.default.createElement("div",{className:"sui-tabs-content"},c.default.createElement("div",{className:"sui-tab-boxed "+(e?"active":"")},c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Images"),settings:this.props.state,fileType:"all-image",property:"filetypes",checkboxes:r}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Documents"),settings:this.props.state,fileType:"all-document",property:"filetypes",checkboxes:a}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Audio"),settings:this.props.state,fileType:"all-audio",property:"filetypes",checkboxes:t}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Video"),settings:this.props.state,fileType:"all-video",property:"filetypes",checkboxes:n})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Archive"),settings:this.props.state,fileType:"all-archive",property:"filetypes",checkboxes:o}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Text"),settings:this.props.state,fileType:"all-text",property:"filetypes",checkboxes:l}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Spreadsheet"),settings:this.props.state,fileType:"all-spreadsheet",property:"filetypes",checkboxes:s}))),c.default.createElement(h.default,{cols:"3"},c.default.createElement(v.default,i({},this.props,{label:(0,p.translate)("Interactive"),settings:this.props.state,fileType:"all-interactive",property:"filetypes",checkboxes:u})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},c.default.createElement(E.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Additional filetypes"),placeholder:(0,p.translate)("E.g. .ai, .sketch, .studio"),property:"additional-type",description:(0,p.translate)("Add a comma-separated list of filetypes you want to allow in addition to the ones enabled above.")})),c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Note that if you're having trouble uploading one of the enabled filetypes, that filetype may be restricted by your hosting provider."))))))))))))}}]),t}(u.Component);t.default=w},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.updateCheckboxItem=a.updateCheckboxItem.bind(a),a.onSelectAllCheckboxes=a.onSelectAllCheckboxes.bind(a),a}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"onSelectAllCheckboxes",value:function(e,t,a){var r=_.isUndefined(this.props.settings[this.props.property])||!_.isArray(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];a.map(function(a){t?(r=r.concat(e),r.indexOf(a.value)<0&&(r=r.concat(a.value))):(r=r.filter(function(t){return t!==e}),r.indexOf(a.value)>=0&&(r=r.filter(function(e){return e!==a.value})))}),this.updateValue(r)}},{key:"updateCheckboxItem",value:function(e,t,a){var r=this,n=_.isUndefined(this.props.settings[this.props.property])||!_.isArray(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property];if(t?n.indexOf(e)<0&&(n=n.concat(e)):!t&&n.indexOf(e)>=0&&(n=n.filter(function(t){return t!==e})),!_.isUndefined(this.props.fileType)){var o=a.filter(function(e){return n.includes(e.value)});n=o.length===a.length?n.concat(this.props.fileType):n.filter(function(e){return e!==r.props.fileType})}this.updateValue(n)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])||!_.isArray(this.props.settings[this.props.property])?[]:this.props.settings[this.props.property],a=this.props.checkboxes;return s.default.createElement(s.default.Fragment,null,s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label),s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property+"-"+this.props.fileType,className:"sui-checkbox sui-checkbox-stacked sui-checkbox-sm sui-checkbox-pre"},s.default.createElement("input",{type:"checkbox",id:"forminator-field-"+this.props.property+"-"+this.props.fileType,value:this.props.fileType,checked:t.indexOf(this.props.fileType)>=0?"checked":"",onChange:function(t){e.onSelectAllCheckboxes(e.props.fileType,t.target.checked,a)}}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,(0,u.translate)("All"))),a.map(function(r,n){return s.default.createElement("label",{key:n,htmlFor:"forminator-field-"+e.props.property+"-"+r.value,className:"sui-checkbox "+r.itemClass},s.default.createElement("input",{type:"checkbox",id:"forminator-field-"+e.props.property+"-"+r.value,value:r.value,checked:t.indexOf(r.value)>=0?"checked":"",onChange:function(t){e.updateCheckboxItem(r.value,t.target.checked,a)}}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",null,r.label))}))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(9),y=r(b),v=a(5),g=r(v),E=a(3),_=r(E),w=a(44),O=r(w),P=a(238),j=r(P),k=a(79),x=r(k),N=a(183),C=(r(N),function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Placeholder (optional)"),placeholder:(0,p.translate)("Enter Placeholder"),property:"placeholder"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Default Value (optional)"),placeholder:(0,p.translate)("Enter default value"),property:"default"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement("div",null,c.default.createElement(O.default,this.props),c.default.createElement(j.default,this.props),c.default.createElement(x.default,this.props));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component));t.default=C},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(239),y=r(b),v=a(44),g=r(v),E=a(9),w=r(E),O=a(5),P=r(O),j=a(3),k=r(j),x=a(195),N=r(x),C=a(20),S=r(C),T=a(15),F=r(T),D=a(379),M=r(D),A=a(79),V=r(A),R=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=!_.isUndefined(this.props.state.enable_images)&&this.props.state.enable_images;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(w.default,null,c.default.createElement(P.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))),c.default.createElement(y.default,i({},this.props,{isRadio:"true"})));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,this.props),c.default.createElement(F.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Layout")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, we stack the options vertically. However, you can change the options layout below.")),c.default.createElement(S.default,i({},this.props,{settings:this.props.state,property:"layout",defaultValue:"vertical",noWrapper:!0}),c.default.createElement("div",{value:"vertical"},(0,p.translate)("Vertical")),c.default.createElement("div",{value:"horizontal"},(0,p.translate)("Horizontal")))),t&&c.default.createElement(M.default,this.props),c.default.createElement(V.default,this.props));case"calculations":return c.default.createElement(N.default,i({},this.props,{description:(0,p.translate)("Choose whether to allow this field to be used in calculations or not.")}));case"visibility":return c.default.createElement(d.default,this.props);case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=R},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(24),d=r(f),m=a(26),h=r(m),b=a(9),y=r(b),v=a(5),g=r(v),E=a(3),w=r(E),O=a(520),P=r(O),j=a(16),k=r(j),x=a(15),N=r(x),C=a(46),S=r(C),T=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=this.props.state.hidden,a=_.isUndefined(this.props.state.separators)?"":this.props.state.separators;switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),property:"field_label"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Description (optional)"),placeholder:(0,p.translate)("Enter description"),property:"description"})))));case"settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(N.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Field Type")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, the calculation field is read-only. You can also hide the field if you don't want to show the calculated result on the form.")),c.default.createElement(S.default,i({},this.props,{property:"read-only",settings:this.props.state,label:(0,p.translate)("Read-only"),disabled:"true",defaultValue:"true",itemClass:"sui-checkbox-sm sui-checkbox-stacked"})),c.default.createElement(S.default,i({},this.props,{property:"hidden",settings:this.props.state,label:(0,p.translate)("Hidden"),itemClass:"sui-checkbox-sm sui-checkbox-stacked"})))),c.default.createElement(N.default,null,c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Formatting")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"20px"}},(0,p.translate)("Choose how do you want to format the value of this field.")),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g., $"),property:"prefix",label:(0,p.translate)("Prefix")}))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g., Kg"),property:"suffix",label:(0,p.translate)("Suffix")})))),"custom"===a&&c.default.createElement(u.Fragment,null,c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement("div",{className:"sui-form-field sui-input-md",style:{marginBottom:"5px"}},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Separators")),c.default.createElement(k.default,i({},this.props,{property:"separators",settings:this.props.state,defaultValue:"blank",simple:!0}),c.default.createElement("option",{value:"blank"},(0,p.translate)("1234567.89")),c.default.createElement("option",{value:"comma_dot"},(0,p.translate)("1,234,567.89")),c.default.createElement("option",{value:"dot_comma"},(0,p.translate)("1.234.567,89")),c.default.createElement("option",{value:"space_comma"},(0,p.translate)("1 234 567,89")))),c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"thousand-separators",defaultValue:",",label:(0,p.translate)("Thousand Separator")})),c.default.createElement(w.default,i({type:"text"},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. $"),property:"decimal-separators",defaultValue:".",label:(0,p.translate)("Decimal Separator")})))))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(k.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To"),fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals")))))),"custom"!==a&&c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"6"},c.default.createElement(k.default,i({},this.props,{property:"separators",settings:this.props.state,defaultValue:"blank",label:(0,p.translate)("Separators")}),c.default.createElement("option",{value:"blank"},(0,p.translate)("1234567.89")),c.default.createElement("option",{value:"comma_dot"},(0,p.translate)("1,234,567.89")),c.default.createElement("option",{value:"dot_comma"},(0,p.translate)("1.234.567,89")),c.default.createElement("option",{value:"space_comma"},(0,p.translate)("1 234 567,89")))),c.default.createElement(g.default,{cols:"6"},c.default.createElement(k.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",label:(0,p.translate)("Round To")}),c.default.createElement("option",{value:"0"},(0,p.translate)("0 decimals")),c.default.createElement("option",{value:"1"},(0,p.translate)("1 decimals")),c.default.createElement("option",{value:"2"},(0,p.translate)("2 decimals")),c.default.createElement("option",{value:"3"},(0,p.translate)("3 decimals")),c.default.createElement("option",{value:"4"},(0,p.translate)("4 decimals")))))));case"calculations":return c.default.createElement(P.default,i({property:"formula",settings:this.props.state},this.props));case"visibility":return c.default.createElement(c.default.Fragment,null,t&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-active",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You can't set visibility conditions for a hidden field. Uncheck the Hidden option in the settings tab and come back here to define visibility rules."))))),!t&&c.default.createElement(d.default,this.props));case"styling":return c.default.createElement(h.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=T},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.insertChar=a.insertChar.bind(a),a.deleteChar=a.deleteChar.bind(a),a.insert=a.insert.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el)}},{key:"componentWillUnmount",value:function(){this.$el.unbind().removeData()}},{key:"updateValue",value:function(e){this.validateFormula(e),"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"insert",value:function(e,t){e.preventDefault();var a=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],r=this.$el.find("textarea"),n=r.prop("selectionStart"),o=a.slice(0,n)+t+a.slice(n);this.updateValue(o),r.val(o),r.focus(),r.prop("selectionStart",n+t.length),r.prop("selectionEnd",n+t.length)}},{key:"deleteChar",value:function(e){if(8===e.which){var t=this.$el.find("textarea"),a=t.prop("selectionStart"),r=t.val(),n=a-1;if("}"===r.substr(n,1)&&-1!==n){e.preventDefault();for(var o=a,l=a;"{"!==r.substr(o-1,1)&&o-1>=0;)o-=1;var i=r.slice(0,o-1)+r.slice(l,r.length);this.updateValue(i),t.val(i),t.prop("selectionStart",o-1),t.prop("selectionEnd",o-1)}}}},{key:"insertChar",value:function(e){var t=[32,34,40,41,42,43,45,47,46,48,49,50,51,52,53,54,55,56,57];_.contains(t,e.charCode)||e.preventDefault()}},{key:"getDisabledFields",value:function(){var e=["number","radio","select","checkbox","calculation","currency"],t=[];return _.each(forminatorData.fields,function(a){_.contains(e,a.type)||t.push(a.type)}),t}},{key:"getFields",value:function(){var e=this.getDisabledFields();return(0,u.getFields)(this.props.wrappers,e)}},{key:"maybeReplaceFields",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=void 0,r=_.map(forminatorData.fields,function(e){return e.type}),n=r.join("|"),o="("+n+")-\\d+",l=new RegExp("\\{("+o+")(\\-[A-Za-z-_]+)?\\}","g"),i=e;a=l.exec(e);){var s=a[0];if(!_.isUndefined(s)){if(!(0,u.fieldExist)(a[1],this.props.wrappers))return{error:(0,u.translate)("%s does not exist in your form. Please insert a valid field from the merged tags option.",{args:[s]}),result:!1};if(t){var c=(0,u.getFieldLabel)(a[1],this.props.wrappers);i=i.replace(s,'<span className="forminator-preview-label">'+c+"</span>")}else i=i.replace(s,1)}}return i}},{key:"previewFormula",value:function(e){return this.maybeReplaceFields(e,!0)}},{key:"validateFormula",value:function(e){var t=this.maybeReplaceFields(e,!1);if(!_.isUndefined(t.error))return this.props.modal.isValid=!1,this.props.modal.validationError=(0,u.translate)("Calculation formula is required!"),t;var a=window.forminatorCalculator(t),r={},n=void 0;try{if(n=a.calculate(),!isFinite(n))return r.error=(0,u.translate)("Infinity calculation result."),r.result=!1,this.props.modal.isValid=!1,this.props.modal.validationError=r.error,r;r.result=Number(n.toFixed(2)),this.props.modal.isValid=!0}catch(e){r.error=e,r.result=!1,this.props.modal.isValid=!1,this.props.modal.validationError=r.error}return r}},{key:"render",value:function(){var e=this,t=this.getFields(),a=_.map(t,function(t,a){if(t.element_id!==e.props.state.element_id)return t.hasCalcs||"calculation"===t.field_type?s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("button",{onClick:function(a){return e.insert(a,"{"+t.element_id+"}")}},t.label)):void 0}),r=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],n=this.validateFormula(r),o=this.previewFormula(r),l=!1===n.result?" fui-error":"";return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Calculation Formula")),s.default.createElement("div",{className:"fui-calculations"+l,ref:function(t){return e.el=t}},s.default.createElement("div",{className:"fui-calcs-bar"},s.default.createElement("div",{className:"sui-dropdown sui-dropdown-right"},s.default.createElement("button",{className:"sui-button-icon sui-button-blue sui-tooltip sui-tooltip-top-left sui-dropdown-anchor","data-tooltip":(0,u.translate)("Add Form Fields")},s.default.createElement("i",{className:"sui-icon-layout","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Open list of fields"))),s.default.createElement("ul",null,a)),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"+")}},s.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Sum"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"-")}},s.default.createElement("b",{"aria-hidden":"true"},"-"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Minus"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"*")}},s.default.createElement("b",{"aria-hidden":"true"},"*"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Multiply"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"/")}},s.default.createElement("b",{"aria-hidden":"true"},"/"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Divide"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,"(")}},s.default.createElement("b",{"aria-hidden":"true"},"("),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Open parenthesis"))),s.default.createElement("button",{className:"sui-button-icon",onClick:function(t){return e.insert(t,")")}},s.default.createElement("b",{"aria-hidden":"true"},")"),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Close parenthesis")))),s.default.createElement("div",{className:"fui-calcs-editor"},s.default.createElement("textarea",{autoFocus:!0,onKeyPress:function(t){return e.insertChar(t)},onKeyDown:function(t){return e.deleteChar(t)},defaultValue:r,onChange:function(t){e.updateValue(t.target.value)}}))),!1===n.result&&s.default.createElement("span",{className:"sui-error-message"},n.error),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("You can preview your form and check if the formula is generating expected results."))),s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Formula Preview")),s.default.createElement("div",{className:"fui-calculations-preview",dangerouslySetInnerHTML:{__html:o}})))}}]),t}(i.Component);t.default=c},function(e,t,a){"use stri
1
+ !function(e){function t(r){if(a[r])return a[r].exports;var n=a[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var a={};t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=383)}([function(e,t){e.exports=React},function(e,t,a){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}function n(){var e=Math.ceil(1e3),t=Math.floor(9999);return Math.floor(Math.random()*(t-e)+e)}function o(){return"wrapper-"+n()+"-"+n()}function l(e,t){var a=void 0;return t.map(function(t){t.wrapper_id===e&&(a=t)}),a}function i(e,t){return"basic"!==u(e)?t:""}function s(e){return"basic"===u(e)?"basic-":""}function u(e){return void 0!==e.formDesign?e.formDesign:void 0!==e.settings&&void 0!==e.settings["forminator-poll-design"]?e.settings["forminator-poll-design"]:void 0!==e.quizDesign?e.quizDesign:""}function c(){return["page-break","paypal","stripe","signature","captcha","postdata","group"]}function p(){return{"behaviour-thankyou":C("Inline Message"),"behaviour-redirect":C("Redirect user to a URL"),"behaviour-hide":C("Hide form")}}function f(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a}function d(e,t){var a=[];t.map(function(t){t.fields.map(function(t){if(t.type===e){var r=t.element_id,n=r.split("-");"page-break"===t.type?a.push(parseInt(n[2])):a.push(parseInt(n[1]))}})});var r=0;return _.isEmpty(a)||(r=_.max(a)),parseInt(r)+1}function m(e,t){var a=[];_.map(t,function(e){var t=e.element_id,r=t.split("-");a.push(parseInt(r[1]))});var r=0;return _.isEmpty(a)||(r=_.max(a)),parseInt(r)+1}function h(e){return e=e.trim().replace(/\s+|\//g,"-")}function b(e){return null===e}function y(e,t){var a=0;return!!b(t)||(t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a>0)}function v(e,t){var a=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&a.push(t)})}),a}function g(e,t){var a=[];return v(e,t).map(function(t){var r=t.field_label;"address"===e&&(r=t.element_id),a.push({value:t.element_id,label:r,element_id:t.element_id})}),a}function E(e,t){var a="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(a=t.field_label)})}),a}function w(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&a++})}),a>0}function O(e,t,a,n,o){o=o||[];var l=[].concat(r(n),[{fields:o}]),i=d(e.type,l);return _.extend(e,{element_id:e.type+"-"+i,formID:t,cols:a})}function P(e,t,a){var r=forminatorData.fields.find(function(t){return t.slug===e}),n=d(r.type,t);return _.extend({element_id:r.type+"-"+n,type:r.type,options:r.options,cols:12,conditions:{},wrapper_id:a},JSON.parse(JSON.stringify(r.defaults)))}function j(e){return e.type}function k(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function x(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t)))}function N(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t+1)))}function C(){return ne.default.translate.apply(null,arguments)}function S(e,t){var a=_.filter(t,function(t){return t.family===e});return _.isUndefined(a[0])||_.isUndefined(a[0].variants)?[C("None")]:a[0].variants}function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}function F(e,t){var a=void 0;if(e.hasOptions&&e.values.length>0){var r=void 0;if(r=_.where(e.values,{value:t})[0],r||(r=_.where(e.values,{label:t})[0]),!r)return;a=r.label}else a=t;return _.isEmpty(a)?C("null"):a}function D(e,t,a,r){var n=[];_.isUndefined(t)&&(t=["page-break","postdata","total","product","captcha"]),Array.isArray(t)&&t.push("group");var o=!1;return _.isUndefined(a)||_.isUndefined(a.main_date_field)||!0!==a.main_date_field||(o=!0),e.map(function(e){e.fields.map(function(e){if(_.isUndefined(r)){if(_.contains(t,e.type))return}else if(!_.contains(r,e.type))return;var a=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(a=e.type,a=T(a)):a=e.field_label,"name"===e.type?n=n.concat(A(e,a)):"address"===e.type?n=n.concat(B(e,a)):"time"===e.type?n=n.concat(q(e,a)):"date"===e.type&&"picker"!==e.field_type&&!1===o||n.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:a,values:L(e),hasOptions:I(e),hasCalcs:R(e),formula:U(e),isNumber:V(e),fieldData:e}),"date"===e.type&&"picker"!==e.field_type&&(n=n.concat(M(e,a)))})}),n}function M(e,t){var a=[],r=void 0;r=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+C("Day"):t+" - "+e.day_label;var n=void 0;n=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+C("Month"):t+" - "+e.month_label;var o=void 0;return o=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+C("Year"):t+" - "+e.year_label,"input"===e.field_type?a.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:n,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:o,values:!1,hasOptions:!1,isNumber:!0}):a.push({element_id:e.element_id+"-day",required:e.required,field_type:e.type,field_slug:e.type+"-day",label:r,values:L(e),hasOptions:I(e),isNumber:V(e)},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:n,values:L(e),hasOptions:I(e),isNumber:V(e)},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:o,values:L(e),hasOptions:I(e),isNumber:V(e)}),a}function A(e,t){var a=[];return"true"===e.multiple_name||!0===e.multiple_name?[{attr:"prefix",label:"prefix_label",element_suffix:"prefix",hasOptions:!0,values:[{label:"Mr.",value:"Mr"},{label:"Mrs.",value:"Mrs"},{label:"Ms.",value:"Ms"},{label:"Mx.",value:"Mx"},{label:"Miss",value:"Miss"},{label:"Dr.",value:"Dr"},{label:"Prof.",value:"Prof"}],isNumber:!1},{attr:"fname",label:"fname_label",element_suffix:"first-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"mname",label:"mname_label",element_suffix:"middle-name",hasOptions:!1,values:!1,isNumber:!1},{attr:"lname",label:"lname_label",element_suffix:"last-name",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var n=void 0;n=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],a.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:n,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}):a.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:t,values:L(e),hasOptions:I(e),isNumber:V(e)}),a}function V(e){return"number"===e.type||"phone"===e.type||"calculation"===e.type}function R(e){return"true"===e.calculations||!0===e.calculations}function U(e){return!!e.formula&&e.formula}function I(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function L(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function B(e,t){var a=[];return[{attr:"street_address",label:"street_address_label",element_suffix:"street_address",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_line",label:"address_line_label",element_suffix:"address_line",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_city",label:"address_city_label",element_suffix:"city",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_state",label:"address_state_label",element_suffix:"state",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_zip",label:"address_zip_label",element_suffix:"zip",hasOptions:!1,values:!1,isNumber:!1},{attr:"address_country",label:"address_country_label",element_suffix:"country",hasOptions:!1,values:!1,isNumber:!1}].map(function(r){if("true"===e[r.attr]||!0===e[r.attr]){var n=void 0;n=_.isUndefined(e[r.label])||_.isEmpty(e[r.label])?t+" - ":t+" - "+e[r.label],a.push({element_id:e.element_id+"-"+r.element_suffix,required:e.required,field_type:e.type,field_slug:e.type+"-"+r.element_suffix,label:n,values:r.values,hasOptions:r.hasOptions,isNumber:r.isNumber})}}),a}function q(e,t){var a=[],r=void 0;r=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+C("Hour"):t+" - "+e.hh_label;var n=void 0;return n=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+C("Minute"):t+" - "+e.mm_label,a.push({element_id:e.element_id+"-hours",required:e.required,field_type:e.type,field_slug:e.type+"-hours",label:r,values:!1,hasOptions:!1,isNumber:!0},{element_id:e.element_id+"-minutes",required:e.required,field_type:e.type,field_slug:e.type+"-minutes",label:n,values:!1,hasOptions:!1,isNumber:!0}),"twelve"===e.time_type&&a.push({element_id:e.element_id+"-ampm",required:e.required,field_type:e.type,field_slug:e.type+"-ampm",label:t+"-AM/PM",values:[{label:"AM",value:"am"},{label:"PM",value:"pm"}],hasOptions:!0,isNumber:!1}),a}function W(e){var t=[],a=forminatorData.fields.filter(function(t){return t.type===e});return a.length<1?[]:(a=a[0],_.isUndefined(a.autofill_settings)||(t=a.autofill_settings),t)}function $(e,t,a){var r=_.isUndefined(a)?"":a;switch(e){case"is":return C("is");case"is_not":return C("is not");case"day_is":return C("day is");case"day_is_not":return C("day is not");case"month_is_not":return C("month is not");case"month_is":return C("month is");case"is_before":return C("is before");case"is_after":return C("is after");case"is_before_n_or_more_days":return C("is before %s or more days from current date").replace("%s",r);case"is_before_less_than_n_days":return C("is before less than %s days from current date").replace("%s",r);case"is_after_n_or_more_days":return C("is after %s or more days from current date").replace("%s",r);case"is_after_less_than_n_days":return C("is after less than %s days from current date").replace("%s",r);case"is_great":return C("is greater than");case"is_less":return C("is less than");case"contains":return C("contains");case"starts":return C("starts with");case"ends":return C("ends with");case"is_correct":return C("is correct");case"is_incorrect":return C("is incorrect");case"is_final_result":return C("is final result");case"is_not_final_result":return C("is not final result");default:return"-"}}function z(e){if(e.length<6)return!1;if(e.indexOf("@",1)<0)return!1;var t=e.split("@",2);if(!t[0].match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~\.-]+$/))return!1;if(t[1].match(/\.{2,}/))return!1;var a=t[1],r=a.split(".");if(r.length<2)return!1;for(var n=r.length,o=0;o<n;o++)if(!r[o].match(/^[a-z0-9-]+$/i))return!1;return!0}function Y(){"object"===ae(window.SUI)&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery('select.sui-select[data-theme="icon"]').each(function(){SUI.select.initIcon(jQuery(this))}),jQuery('select.sui-select[data-theme="color"]').each(function(){SUI.select.initColor(jQuery(this))}),jQuery('select.sui-select[data-theme="search"]').each(function(){SUI.select.initSearch(jQuery(this))}),jQuery("select.sui-select:not([data-theme]):not(.custom-select2):not(.fui-multi-select)").each(function(){SUI.select.init(jQuery(this))}),jQuery("select.sui-variables").each(function(){SUI.select.initVars(jQuery(this))}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50)}function H(e){var t="none";return ae(e["results-behav"])&&ae(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function Q(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),D(e,t)}function G(e,t){t=_.defaults(t,{allowClear:!0,dropdownCssClass:"sui-select-dropdown"}),e.find("select.sui-select.fui-multi-select").each(function(){jQuery(this).attr("data-reorder")&&jQuery(this).on("select2:select",function(e){var t=e.params.data.element,a=jQuery(t),r=jQuery(this);r.append(a),r.trigger("change.select2")}),jQuery(this).SUIselect2(t)})}function J(e){return"name"!==e.type||"true"!==e.multiple_name&&!0!==e.multiple_name?"address"===e.type?!!(e.street_address_required||e.address_line_required||e.address_city_required||e.address_state_required||e.address_zip_required||e.address_country_required):e.required:!!(e.prefix_required||e.fname_required||e.mname_required||e.lname_required)}function K(e,t,a,r){var n=0;return!!b(e)||(e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[a]&&n++})}),n>0)}function X(e){var t=0;return!!b(e)||(e.map(function(e){e.fields.map(function(e){var a=forminatorData.postCategories[e.post_type];void 0!==a&&a.map(function(a){var r=a.value+"_multiple";1===parseInt(e[r])&&t++})})}),t>0)}function Z(e,t){var a=e.slug,r=[];return _.isEmpty(t)||(_.each(t,function(e,t){_.isEmpty(e.answers)||_.each(e.answers,function(t,n){t.result===a&&r.push({title:e.title,slug:e.slug,question:e})})}),r=_.uniq(r,"slug")),r}function ee(e,t){var a=[];return _.each(t,function(t,r){if(t.amount_type&&t.plan_name||(e.error=C("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r)),"single"===t.payment_method&&("fixed"===t.amount_type&&_.isEmpty(t.amount)||"variable"===t.amount_type&&_.isEmpty(t.variable)))e.error=C("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r);else if("subscription"===t.payment_method){var n=_.isUndefined(t.subscription_amount_type)?"fixed":t.subscription_amount_type,o=_.isUndefined(t.quantity_type)?"fixed":t.quantity_type,l=_.isUndefined(t.quantity)?1:t.quantity,i=_.isUndefined(t.bill_input)?1:t.bill_input;("fixed"===n&&_.isEmpty(t.subscription_amount)||"variable"===n&&_.isEmpty(t.subscription_variable))&&(e.error=C("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r)),("fixed"===o&&!l||"variable"===o&&_.isEmpty(t.variable_quantity))&&(e.error=C("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r)),i?i<=0&&(e.error=C("Billing frequency should be greater than or equal to 1"),e.isValid=!1,a.push(r)):(e.error=C("Please fix the error(s) in the SETTINGS tab."),e.isValid=!1,a.push(r))}}),a.length>0&&(e.paymentKey=a),e}function te(e){if(void 0===e)return!1;switch("string"==typeof e&&(e=e.trim().toLowerCase()),e){case!0:case"true":case 1:case"1":case"on":case"yes":return!0;default:return!1}}Object.defineProperty(t,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.randNumber=n,t.generateWrapperId=o,t.getWrapper=l,t.getDefaultValue=i,t.getThemePrefix=s,t.restrictedGroupFields=c,t.getSubmissionBehaviors=p,t.countFieldsByType=f,t.getMaxIDByType=d,t.getMaxID=m,t.generateValue=h,t.hasFieldType=y,t.getFieldsByType=v,t.mapFieldsByType=g,t.getFieldLabel=E,t.fieldExist=w,t.buildFieldObject=O,t.buildFieldObjectFromSlug=P,t.getFieldType=j,t.getForminatorField=k,t.insertInPosition=x,t.replaceInPosition=N,t.translate=C,t.getFontVariants=S,t.ucfirst=T,t.getConditionLabel=F,t.getFields=D,t.getDateFields=M,t.getNameFields=A,t.fieldHasNumber=V,t.fieldHasCalcs=R,t.fieldFormula=U,t.fieldHasOptions=I,t.getFieldValues=L,t.getAddressFields=B,t.getTimeFields=q,t.getFieldAutofillProviders=W,t.getRuleLabel=$,t.isEmailWp=z,t.suiDelegateEvents=Y,t.getChartType=H,t.getCalculationFields=Q,t.select2Tags=G,t.isFieldRequired=J,t.hasFieldWithAttribute=K,t.hasPostdataFieldWithMultiselect=X,t.getPersonalityQuestions=Z,t.getPlanValidation=ee,t.isTrue=te;var re=a(64),ne=function(e){return e&&e.__esModule?e:{default:e}}(re)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",null,e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),i(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.type)?"text":this.props.type,r=_.isUndefined(this.props.requiredError)?(0,c.translate)("This field is required!"):this.props.requiredError,n=this.isValid(t)?"":"sui-form-field-error",o=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,i="sui-form-control";_.isUndefined(this.props.inputClass)||""===this.props.inputClass||(i+=" "+this.props.inputClass),_.isUndefined(this.props.prefix)||""===this.props.prefix||(i+=" sui-field-has-prefix"),_.isUndefined(this.props.suffix)||""===this.props.suffix||(i+=" sui-field-has-suffix");var s=_.isUndefined(this.props.inputId)?this.props.property:this.props.inputId,p=void 0;this.props.label&&(p=u.default.createElement("label",{htmlFor:"forminator-field-"+s,className:this.props.darkLabel?"sui-settings-label sui-dark":"sui-label"},this.props.label,this.props.isRequired&&u.default.createElement(u.default.Fragment,null," ",u.default.createElement("span",{className:"sui-error"},"*")),this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note)));var f=u.default.createElement("input",l({type:a,placeholder:this.props.placeholder,value:t||"",id:"forminator-field-"+s,className:i},this.props.notWritable&&{readonly:""},this.props.minValue&&{min:this.props.minValue},this.props.maxValue&&{max:this.props.maxValue},this.props.maxLength&&{maxLength:this.props.maxLength},this.props.inputStyles&&{style:this.props.inputStyles},{disabled:!!this.props.disabled,onChange:function(t){e.updateValue(t.target.value)}})),d=u.default.createElement("div",{className:o+" "+n},p,!_.isUndefined(this.props.prefix)&&""!==this.props.prefix&&u.default.createElement("span",{className:"sui-field-prefix"},this.props.prefix),this.props.canTrash?u.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},f,u.default.createElement("button",{className:"sui-button-icon sui-tooltip sui-tooltip-top-right","data-tooltip":(0,c.translate)("Delete")},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}))):f,this.props.suffix&&u.default.createElement("span",{className:"sui-field-suffix"},this.props.suffix),this.props.isRequired&&!this.isValid(t)&&u.default.createElement("span",{className:"sui-error-message"},r),!_.isUndefined(this.props.isPositive)&&!this.isValid(t)&&u.default.createElement("span",{className:"sui-error-message"},(0,c.translate)("Please enter valid number.")),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description));return this.props.simple?f:d}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$el.wpColorPicker({change:function(e,t){jQuery(this).val(t.color.toCSS()).trigger("change")},palettes:["#333333","#FFFFFF","#17A8E3","#E1F6FF","#666666","#AAAAAA","#E6E6E6"]});var e=this.$el,t=e.closest(".sui-colorpicker-wrap"),a=t.find(".sui-colorpicker-value span[role=button]"),r=t.find(".sui-colorpicker-value"),n=r.find("button"),o=e.closest(".wp-picker-container"),l=o.find(".wp-color-result"),i=l.find(".color-alpha"),s=o.find(".wp-picker-clear"),u=i;u=!0===e.data("alpha")?i:l,e.bind("change",function(){a.find("span").css({"background-color":u.css("background-color")}),r.find("input").val(e.val())}),t.find(".sui-button, span[role=button]").on("click",function(e){e.preventDefault(),e.stopPropagation(),l.click()}),n.on("click",function(e){e.preventDefault(),e.stopPropagation(),s.click(),r.find("input").val(""),a.find("span").css({"background-color":""})}),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])||null===this.props.settings[this.props.property]?this.props.defaultValue:this.props.settings[this.props.property],a="";return this.props.label&&(a=s.default.createElement("label",{className:"sui-label",htmlFor:"forminator-color-"+this.props.property},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"}," ",this.props.note))),s.default.createElement("div",{className:"sui-form-field"},a,s.default.createElement("div",{className:"sui-colorpicker-wrap"},s.default.createElement("div",{className:"sui-colorpicker sui-colorpicker-"+(this.props.isAlpha?"rgba":"hex"),"aria-hidden":"true"},s.default.createElement("div",{className:"sui-colorpicker-value"},s.default.createElement("span",{role:"button"},s.default.createElement("span",{style:{backgroundColor:t}})),s.default.createElement("input",{type:"text",defaultValue:t,readOnly:"readonly"}),s.default.createElement("button",null,s.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}))),s.default.createElement("button",{className:"sui-button"},(0,u.translate)("Select"))),s.default.createElement("input",{ref:function(t){return e.el=t},defaultValue:t,id:"forminator-color-"+this.props.property,className:"sui-colorpicker-input","data-alpha":this.props.isAlpha?"true":"false"})),this.props.description&&""!==this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e}),t=this.props.customClass?this.props.customClass:"";return s.default.createElement("div",{className:"sui-col-md-"+this.props.cols+" "+t},e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"toggleValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"getDefaultValue",value:function(){var e=this.props.default?this.props.default:"";return _.isUndefined(this.props.settings[this.props.property])?e:this.props.settings[this.props.property]}},{key:"render",value:function(){var e=this,t=this.getDefaultValue(),a=s.default.Children.map(this.props.children,function(a){if(!a)return s.default.createElement(s.default.Fragment,null);var r=_.isUndefined(a.props.label)?a.props.children:a.props.label;return e.props.disabled?s.default.createElement("div",{className:"sui-tab-item"+(a.props.value===t?" active":""),style:{opacity:.5,cursor:"not-allowed"}},r):e.props.disabled?void 0:s.default.createElement("div",{className:"sui-tab-item"+(a.props.value===t?" active":""),onClick:e.toggleValue.bind(e,a.props.value)},r)}),r=_.isUndefined(this.props.divClass)?"sui-tabs-content":"sui-tabs-content "+this.props.divClass,n=s.default.Children.map(this.props.children,function(e){if(!e)return s.default.createElement(s.default.Fragment,null);var a=_.isUndefined(e.props.boxClass)?"":e.props.boxClass;return"Empty"!==e.type.name?s.default.createElement("div",{className:a+" sui-tab-content"+(e.props.value===t?" active":"")},e.props.value===t&&e):s.default.createElement(s.default.Fragment,null)}),o="";this.props.label&&""!==this.props.label&&(o=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&s.default.createElement("span",{className:"sui-label-note"}," ",this.props.note)));var l="";if(this.props.settingsLabel&&""!==this.props.settingsLabel){var i=this.props.labelClass?this.props.labelClass:"sui-settings-label";l=s.default.createElement("label",{className:i},this.props.settingsLabel)}var u="";this.props.description&&""!==this.props.description&&(u=s.default.createElement("span",{className:"sui-description",style:{marginBottom:10}},this.props.description));var c=_.isUndefined(this.props.wrapperClass)?"":this.props.wrapperClass;c=this.props.basicTabs?"sui-tabs sui-tabs-overflow "+c:"sui-side-tabs "+c;var p=s.default.createElement("div",{className:c},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n));return this.props.simple||(p=s.default.createElement("div",{className:"sui-form-field"},l,o,u,s.default.createElement("div",{className:c},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n)))),p}}]),t}(i.Component);t.default=u},function(e,t,a){e.exports=a(86)()},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={active:a.props.default?a.props.default:""},a}return o(t,e),l(t,[{key:"toggleValue",value:function(e){this.setState({active:e})}},{key:"render",value:function(){var e=this,t=(this.props.default&&this.props.default,this.props.type?this.props.type:"side-tabs"),a=this.props.extraClass?this.props.extraClass:"",r=s.default.Children.map(this.props.children,function(t){if(!_.isUndefined(t)&&!_.isNull(t))return s.default.createElement("div",{className:"forminator-toggle sui-tab-item"+(t.props.value===e.state.active?" active":""),onClick:e.toggleValue.bind(e,t.props.value)},t.props.label," ",t.props.required&&s.default.createElement("span",{className:"sui-error"},"*"))}),n=s.default.Children.map(this.props.children,function(t){if(!_.isUndefined(t)&&!_.isNull(t)){var a=_.isUndefined(t.props.boxClass)?"sui-tab-content":t.props.boxClass;return s.default.createElement("div",{className:a+(t.props.value===e.state.active?" active":"")},t.props.value===e.state.active&&t)}});return s.default.createElement("div",{className:"sui-"+t+" "+a},s.default.createElement("div",{className:"sui-tabs-menu"},r),s.default.createElement("div",{className:"sui-tabs-content"},n))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",{className:"sui-row"+(_.isUndefined(this.props.class)?"":" "+this.props.class)},e)}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e){if("object"!==(void 0===e?"undefined":m(e))||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function n(e,t,a){function o(){v===y&&(v=y.slice())}function l(){if(g)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return b}function i(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(g)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return o(),v.push(e),function(){if(t){if(g)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,o();var a=v.indexOf(e);v.splice(a,1)}}}function s(e){if(!r(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,b=h(b,e)}finally{g=!1}for(var t=y=v,a=0;a<t.length;a++){(0,t[a])()}return e}function u(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,s({type:d.REPLACE})}function c(){var e,t=i;return e={subscribe:function(e){function a(){e.next&&e.next(l())}if("object"!==(void 0===e?"undefined":m(e))||null===e)throw new TypeError("Expected the observer to be an object.");return a(),{unsubscribe:t(a)}}},e[f.a]=function(){return this},e}var p;if("function"==typeof t&&void 0===a&&(a=t,t=void 0),void 0!==a){if("function"!=typeof a)throw new Error("Expected the enhancer to be a function.");return a(n)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,b=t,y=[],v=y,g=!1;return s({type:d.INIT}),p={dispatch:s,subscribe:i,getState:l,replaceReducer:u},p[f.a]=c,p}function o(e,t){var a=t&&t.type;return"Given "+(a&&'action "'+String(a)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){Object.keys(e).forEach(function(t){var a=e[t];if(void 0===a(void 0,{type:d.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===a(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+d.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function i(e){for(var t=Object.keys(e),a={},r=0;r<t.length;r++){var n=t[r];"function"==typeof e[n]&&(a[n]=e[n])}var i=Object.keys(a),s=void 0;try{l(a)}catch(e){s=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(s)throw s;for(var r=!1,n={},l=0;l<i.length;l++){var u=i[l],c=a[u],p=e[u],f=c(p,t);if(void 0===f){var d=o(u,t);throw new Error(d)}n[u]=f,r=r||f!==p}return r?n:e}}function s(e,t){return function(){return t(e.apply(this,arguments))}}function u(e,t){if("function"==typeof e)return s(e,t);if("object"!==(void 0===e?"undefined":m(e))||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":void 0===e?"undefined":m(e))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var a=Object.keys(e),r={},n=0;n<a.length;n++){var o=a[n],l=e[o];"function"==typeof l&&(r[o]=s(l,t))}return r}function c(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function p(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(e){return function(){for(var a=arguments.length,r=Array(a),n=0;n<a;n++)r[n]=arguments[n];var o=e.apply(void 0,r),l=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:o.getState,dispatch:function(){return l.apply(void 0,arguments)}},s=t.map(function(e){return e(i)});return l=c.apply(void 0,s)(o.dispatch),h({},o,{dispatch:l})}}}Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"createStore",function(){return n}),a.d(t,"combineReducers",function(){return i}),a.d(t,"bindActionCreators",function(){return u}),a.d(t,"applyMiddleware",function(){return p}),a.d(t,"compose",function(){return c}),a.d(t,"__DO_NOT_USE__ActionTypes",function(){return d});var f=a(92),d={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}},function(e,t,a){"use strict";function r(e){return"[object Array]"===P.call(e)}function n(e){return"[object ArrayBuffer]"===P.call(e)}function o(e){return"undefined"!=typeof FormData&&e instanceof FormData}function l(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function i(e){return"string"==typeof e}function s(e){return"number"==typeof e}function u(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function p(e){return"[object Date]"===P.call(e)}function f(e){return"[object File]"===P.call(e)}function d(e){return"[object Blob]"===P.call(e)}function m(e){return"[object Function]"===P.call(e)}function h(e){return c(e)&&m(e.pipe)}function b(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function y(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function v(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function g(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),r(e))for(var a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function E(){function e(e,a){"object"==typeof t[a]&&"object"==typeof e?t[a]=E(t[a],e):t[a]=e}for(var t={},a=0,r=arguments.length;a<r;a++)g(arguments[a],e);return t}function _(e,t,a){return g(t,function(t,r){e[r]=a&&"function"==typeof t?w(t,a):t}),e}var w=a(72),O=a(152),P=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:n,isBuffer:O,isFormData:o,isArrayBufferView:l,isString:i,isNumber:s,isObject:c,isUndefined:u,isDate:p,isFile:f,isBlob:d,isFunction:m,isStream:h,isURLSearchParams:b,isStandardBrowserEnv:v,forEach:g,merge:E,extend:_,trim:y}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(85),n=a(53),o=a(89);a.d(t,"Provider",function(){return r.b}),a.d(t,"createProvider",function(){return r.a}),a.d(t,"connectAdvanced",function(){return n.a}),a.d(t,"connect",function(){return o.a})},function(e,t,a){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0);!function(e){e&&e.__esModule}(n)},function(e,t,a){"use strict";var r=function(e,t,a,r,n,o,l,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[a,r,n,o,l,i],c=0;s=new Error(t.replace(/%s/g,function(){return u[c++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=s.default.Children.map(this.props.children,function(e){return e}),t="";this.props.label&&""!==this.props.label&&(t=s.default.createElement("span",{className:"sui-settings-label"+(!0===this.props.labelDark?" sui-dark":"")},this.props.label));var a="",r=10;_.isUndefined(this.props.descriptionSpacing)||""===this.props.descriptionSpacing||(r=this.props.descriptionSpacing),_.isUndefined(this.props.description)||""===this.props.description||(a=!1===this.props.sidebar?s.default.createElement("span",{className:"sui-description",style:{marginBottom:r+"px"}},this.props.description):s.default.createElement("span",{className:"sui-description"},this.props.description));var n="";return(this.props.label&&""!==this.props.label||this.props.description&&""!==this.props.description)&&(n=s.default.createElement("div",{className:"sui-box-settings-col-1"},t,a)),s.default.createElement("div",{className:"sui-box-settings-row"},(_.isUndefined(this.props.sidebar)||!1!==this.props.sidebar)&&n,s.default.createElement("div",{className:"sui-box-settings-col-2"},!_.isUndefined(this.props.sidebar)&&!1===this.props.sidebar&&t,!_.isUndefined(this.props.sidebar)&&!1===this.props.sidebar&&a,e))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=function(e){return e&&e.__esModule?e:{default:e}}(u),p=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.afterSave=a.afterSave.bind(a),a}return l(t,e),s(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el);var e=this.$el.closest(".sui-modal-content"),t=e.attr("id"),a=this.props.hasSearch?0:-1,r=Object.assign({dropdownParent:e.length?jQuery("#"+t):jQuery('body[class*="sui-"]'),minimumResultsForSearch:a,dropdownCssClass:this.$el.hasClass("sui-select-sm")?"sui-select-dropdown-sm":"",width:"100%"},this.props.options);if("function"==typeof this.$el.SUIselect2)this.$el.SUIselect2(r);else{if("function"!=typeof this.$el.FUIselect2)throw Error("SUI Select2 not initiated");this.$el.FUIselect2(r)}this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue),this.props.triggerChange&&this.$el.trigger("change")}},{key:"updateValue",value:function(e){var t=jQuery(e.target).val();"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t),this.afterSave(t)}},{key:"afterSave",value:function(){return!1}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,n=_.isUndefined(this.props.elementId)?this.props.property:this.props.elementId,o=void 0;this.props.label&&(o=c.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label," ",this.props.required&&c.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&c.default.createElement("span",{className:"sui-label-note"},this.props.note)));var l=this.props.multiple,s=this.props,u=(s.formType,s.updateProperty,s.noWrapper,s.fieldClass,r(s,["formType","updateProperty","noWrapper","fieldClass"])),p=c.default.createElement("select",i({id:"forminator-field-"+n,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:l},u),this.props.children),f=c.default.createElement("select",{id:"forminator-field-"+n,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:l},this.props.children);return"md"===this.props.fieldSize||"medium"===this.props.fieldSize?f=c.default.createElement("div",{className:"sui-form-field sui-input-md"},p):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?f=c.default.createElement("div",{className:"sui-form-field sui-input-sm"},p):_.isUndefined(this.props.fieldSize)||""===this.props.fieldSize||(f=c.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},p)),this.props.noWrapper?p:c.default.createElement("div",{className:a},o,f,this.props.description&&c.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))}}]),t}(u.Component);t.default=p},function(e,t,a){"use strict";var r=function(){};e.exports=r},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{key:"updateValue",value:function(e){var t=e.target.value;"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,t):this.props.actions.settingsActions.updateSetting(this.props.property,t)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,r=_.isUndefined(this.props.elementClass)?"":this.props.elementClass,n=_.isUndefined(this.props.elementId)?this.props.property:this.props.elementId,o="";this.props.label&&(o=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,id:"forminator-field-"+this.props.property+"-label",className:"sui-label"},this.props.label," ",this.props.required&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var l=s.default.createElement("select",{defaultValue:t,id:"forminator-field-"+n,className:r,"aria-labelledby":"forminator-field-"+n+"-label",ref:function(t){return e.el=t},style:{maxWidth:"none"}},this.props.children),i=l;"md"===this.props.fieldSize||"medium"===this.props.fieldSize?i=s.default.createElement("div",{className:"sui-form-field sui-input-md"},l):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?i=s.default.createElement("div",{className:"sui-form-field sui-input-sm"},l):""!==this.props.fieldSize&&(i=s.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},l));var u=i;return this.props.simple||(u=s.default.createElement("div",{className:a},o,i,this.props.description&&s.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))),u}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";var r=a(109);a.d(t,"a",function(){return r.a});var n=a(112);a.d(t,"b",function(){return n.a});var o=a(113);a.d(t,"d",function(){return o.a});var l=a(29);a.d(t,"c",function(){return l.a}),a.d(t,"f",function(){return l.b});var i=a(22);a.d(t,"e",function(){return i.b})},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"updateValue",value:function(e){if("function"==typeof this.props.updateProperty){if(this.props.updateProperty(this.props.property,e),"true"===this.props.clearOptions&&"single"===e){var t=[];_.each(this.props.state.options,function(e){e.default=!1,t.push(e)}),this.props.updateProperty("options",t)}}else this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=u.default.Children.map(this.props.children,function(a){return u.default.createElement("button",l({id:"tab-option-"+a.props.value,role:"tab",className:"forminator-toggle sui-tab-item "+(a.props.value===t?"active":""),"aria-selected":a.props.value===t?"true":"false"},a.props.value!==t&&{tabIndex:"-1"},{onClick:e.updateValue.bind(e,a.props.value)}),a.props.children)}),r="";this.props.label&&""!==this.props.label&&(r=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note)));var n="";this.props.description&&""!==this.props.description&&(n=u.default.createElement("span",{className:"sui-description"},this.props.description));var o="";!this.props.label&&this.props.settingsLabel&&(o=u.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var i="";!this.props.label&&this.props.settingsDesc&&(i=u.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc));var s=u.default.createElement("div",{className:"sui-side-tabs",style:this.props.description&&{marginBottom:"5px"}},u.default.createElement("div",{className:"sui-tabs-menu",role:"tablist"},a)),c=u.default.createElement(u.default.Fragment,null,r,s);return this.props.noWrapper||(c=u.default.createElement("div",{className:"sui-form-field"},r,o,i,s,n)),c}}]),t}(s.Component);t.default=c},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(108);a.d(t,"BrowserRouter",function(){return r.a});var n=a(114);a.d(t,"HashRouter",function(){return n.a});var o=a(59);a.d(t,"Link",function(){return o.a});var l=a(115);a.d(t,"MemoryRouter",function(){return l.a});var i=a(117);a.d(t,"NavLink",function(){return i.a});var s=a(119);a.d(t,"Prompt",function(){return s.a});var u=a(121);a.d(t,"Redirect",function(){return u.a});var c=a(60);a.d(t,"Route",function(){return c.a});var p=a(39);a.d(t,"Router",function(){return p.a});var f=a(123);a.d(t,"StaticRouter",function(){return f.a});var d=a(125);a.d(t,"Switch",function(){return d.a});var m=a(127);a.d(t,"generatePath",function(){return m.a});var h=a(128);a.d(t,"matchPath",function(){return h.a});var b=a(129);a.d(t,"withRouter",function(){return b.a})},function(e,t,a){"use strict";a.d(t,"a",function(){return r}),a.d(t,"f",function(){return n}),a.d(t,"c",function(){return o}),a.d(t,"e",function(){return l}),a.d(t,"g",function(){return i}),a.d(t,"d",function(){return s}),a.d(t,"b",function(){return u});var r=function(e){return"/"===e.charAt(0)?e:"/"+e},n=function(e){return"/"===e.charAt(0)?e.substr(1):e},o=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},l=function(e,t){return o(e,t)?e.substr(t.length):e},i=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},s=function(e){var t=e||"/",a="",r="",n=t.indexOf("#");-1!==n&&(r=t.substr(n),t=t.substr(0,n));var o=t.indexOf("?");return-1!==o&&(a=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===a?"":a,hash:"#"===r?"":r}},u=function(e){var t=e.pathname,a=e.search,r=e.hash,n=t||"/";return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),r&&"#"!==r&&(n+="#"===r.charAt(0)?r:"#"+r),n}},function(e,t,a){"use strict";function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){r(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function l(e,t){if(null==e)return{};var a,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}function i(e,t){if(null==e)return{};var a,r,n=l(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"ButtonIcon",function(){return c});var s=a(0),u=a.n(s),c=function(e){var t=e.label,a=e.icon,r=e.iconSize,n=e.design,l=void 0===n?"solid":n,s=e.color,c=e.className,p=e.loading,f=i(e,["label","icon","iconSize","design","color","className","loading"]),d=u.a.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),m=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"sui-icon-".concat(a).concat(r?" sui-"+r:""),"aria-hidden":"true"}),u.a.createElement("span",{className:"sui-screen-reader-text"},t));switch(c="sui-button-icon ".concat(c||""),s){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":c+=" sui-button-"+s;break;case"gray":default:c+=""}switch(l){case"ghost":case"outlined":c+=" sui-button-"+l;break;case"solid":default:c+=""}p&&(c+=" sui-button-onload");var h=f.href?"a":"button";return u.a.createElement(h,o({className:c,disabled:f.disabled||p},f),p?d:m)}},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(482),d=r(f),m=a(20),h=r(m),b=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addRule=a.addRule.bind(a),a.removeRule=a.removeRule.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.fields=(0,p.getFields)(a.props.wrappers,["stripe","paypal","page-break","pagination","section","html"],{main_date_field:!0}),a.fields=_.filter(a.fields,function(e){return e.element_id!==a.props.state.element_id}),"address"!==a.props.state.type&&"date"!==a.props.state.type&&"time"!==a.props.state.type||(a.fields=_.filter(a.fields,function(e){return!e.element_id.startsWith(a.props.state.element_id)})),a.validateConditions(),a}return l(t,e),s(t,[{key:"updateState",value:function(e){this.props.isPayment?this.props.updatePayment(this.props.counter,"conditions",e):this.props.updateProperty("conditions",e)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.conditions,function(t){var a=Object.assign({},t);e.push(a)}),e}},{key:"updateField",value:function(e,t){var a=this.getPropState();a[e].element_id=t,a[e].rule="is",a[e].value="",this.updateState(a)}},{key:"updateRule",value:function(e,t){var a=this.getPropState();a[e].rule=t,this.updateState(a)}},{key:"updateValue",value:function(e,t){var a=this.getPropState();a[e].value=t,this.updateState(a)}},{key:"updateInputValue",value:function(e,t){var a=this.getPropState();a[e].value=t,this.updateState(a)}},{key:"removeRule",value:function(e){var t=this.getPropState();t.splice(e,1),this.updateState(t)}},{key:"addRule",value:function(){var e=this.getPropState(),t=_.isUndefined(this.fields[0])?"":this.fields[0].element_id;e.push({element_id:t,rule:"is",value:""}),this.updateState(e)}},{key:"validateConditions",value:function(){var e=_.pluck(this.props.state.conditions,"element_id"),t=_.pluck(this.fields,"element_id"),a=_.difference(e,t);_.isUndefined(a)||this.removeCondition(a)}},{key:"removeCondition",value:function(e){var t=this.getPropState(),a=_.filter(t,function(t){return!_.contains(e,t.element_id)});this.updateState(a)}},{key:"render",value:function(){var e=this,t=c.default.createElement("div",{className:"fui-visibility-options"},c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(h.default,i({},this.props,{settings:this.props.state,property:"condition_action",defaultValue:"show",noWrapper:!0}),c.default.createElement("span",{value:"show"},(0,p.translate)("Show")),c.default.createElement("span",{value:"hide"},(0,p.translate)("Hide"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("this field if"))),c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(h.default,i({},this.props,{settings:this.props.state,property:"condition_rule",defaultValue:"all",noWrapper:!0}),c.default.createElement("span",{value:"all"},(0,p.translate)("All")),c.default.createElement("span",{value:"any"},(0,p.translate)("Any"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("of the following rules match:"))));this.props.isPayment&&(t=c.default.createElement("div",{className:"fui-visibility-options"},c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Process this plan if"))),c.default.createElement("div",{className:"fui-visibility-option"},c.default.createElement(h.default,i({},this.props,{settings:this.props.state,property:"condition_rule",defaultValue:"all",noWrapper:!0}),c.default.createElement("span",{value:"all"},(0,p.translate)("All")),c.default.createElement("span",{value:"any"},(0,p.translate)("Any"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("of the following conditions match:")))));var a=c.default.createElement("div",{className:"fui-visibility-group"},this.props.wrappers.length<2&&this.fields.length<2&&_.isEmpty(this.fields)&&c.default.createElement("div",{role:"alert",className:"sui-notice sui-notice-red sui-active fui-visibility-notice",style:{display:"block"},"aria-live":"assertive"},c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("You need more than one field to configure visibility conditions. Add more fields!"))))),(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},this.props.isPayment?(0,p.translate)("Conditions"):(0,p.translate)("Rules"))),c.default.createElement("div",{className:"fui-visibility"},c.default.createElement("div",{className:"fui-visibility-empty-message"},(this.props.wrappers.length>1||this.fields.length>=1)&&!_.isEmpty(this.fields)&&c.default.createElement("button",{accessKey:"a",onClick:this.addRule},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),this.props.isPayment?(0,p.translate)("Add conditions"):(0,p.translate)("Add Rule")),c.default.createElement("p",null,!this.props.isPayment&&(0,p.translate)("By default field will always be visible. If you want to hide or show fields based on user input you can add conditions."),this.props.isPayment&&(0,p.translate)("Add conditions for how this plan will be processed based on your form field data.")),!this.props.isPayment&&forminatorData.showBranding&&c.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))));return(_.isUndefined(this.props.state.conditions)||0===this.props.state.conditions.length)&&c.default.createElement(c.default.Fragment,null,a),!_.isUndefined(this.props.state.conditions)&&this.props.state.conditions.length>0&&!_.isEmpty(this.fields)?c.default.createElement("div",{className:"fui-visibility-group"},(this.props.wrappers.length>1||this.fields.length>0)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},this.props.isPayment?(0,p.translate)("Conditions"):(0,p.translate)("Rules"))),c.default.createElement("div",{className:"fui-visibility"},c.default.createElement("div",{className:"fui-visibility-rules"},_.map(this.props.state.conditions,function(t,a){return c.default.createElement(d.default,i({},e.props,{rule:t,key:a,counter:a,removeRule:e.removeRule,updateField:e.updateField,updateRule:e.updateRule,updateValue:e.updateValue,updateInputValue:e.updateInputValue,fields:e.fields}))}))),c.default.createElement("button",{className:"sui-button sui-button-blue",accessKey:"a",onClick:this.addRule},c.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),this.props.isPayment?(0,p.translate)("Add conditions"):(0,p.translate)("Add Rule"))):c.default.createElement(c.default.Fragment,null,a)}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=_.isUndefined(this.props.customClass)?"sui-form-control":this.props.customClass,r=!_.isUndefined(this.props.disabled)&&this.props.disabled,n=t&&!r,o=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-toggle"},s.default.createElement("input",{type:"checkbox",value:"true",id:"forminator-field-"+this.props.property,className:a,disabled:r?"disabled":"",checked:n?"checked":"",onChange:function(t){e.updateValue(t.target.checked)}}),s.default.createElement("span",{className:"sui-toggle-slider"}),this.props.label&&s.default.createElement(s.default.Fragment,null,s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",this.props.label),s.default.createElement("span",{className:"sui-toggle-label"},this.props.label)),this.props.description&&s.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description)),l="";return this.props.children&&(_.isUndefined(this.props.settings[this.props.property])||this.props.settings[this.props.property])&&(l=s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{tabIndex:"0",className:"sui-toggle-content sui-border-frame","aria-label":this.props.label},this.props.children))),this.props.unWrap?s.default.createElement(s.default.Fragment,null,o,l):this.props.unWrap?void 0:s.default.createElement("div",{className:"sui-form-field"},o,l)}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.state["custom-class"])?"":this.props.state["custom-class"];return s.default.createElement("div",{className:"sui-box-settings-row"},s.default.createElement("div",{className:"sui-box-settings-col-1"},s.default.createElement("span",{className:"sui-settings-label"},(0,u.translate)("Additional CSS Classes")),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("Add classes that will be output on this field's container to aid your theme's default styling."))),s.default.createElement("div",{className:"sui-box-settings-col-2"},s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("E.g. form-field"),className:"sui-form-control",value:t,onChange:function(t){e.props.updateProperty("custom-class",t.target.value)}}),s.default.createElement("span",{className:"sui-description"},(0,u.translate)("These will be output as you see them here."))))}}]),t}(i.Component);t.default=c},,function(e,t,a){"use strict";var r=function(){};e.exports=r},function(e,t,a){"use strict";a.d(t,"a",function(){return i}),a.d(t,"b",function(){return s});var r=a(110),n=a(111),o=a(22),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(e,t,a,n){var i=void 0;"string"==typeof e?(i=Object(o.d)(e),i.state=t):(i=l({},e),void 0===i.pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return a&&(i.key=a),n?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Object(r.a)(i.pathname,n.pathname)):i.pathname=n.pathname:i.pathname||(i.pathname="/"),i},s=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(n.a)(e.state,t.state)}},,function(e,t){e.exports=ReactDOM},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=(function(e){e&&e.__esModule}(i),function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"initialize",value:function(){jQuery(".sui-floating-notices").length||jQuery("main.sui-wrap").prepend('<div class="sui-floating-notices"></div>'),jQuery("#forminator-notification").length?(jQuery("#forminator-notification").remove(),this.initialize()):jQuery(".sui-floating-notices").append('<div role="alert" id="forminator-notification" class="sui-notice" aria-live="assertive"></div>'),this.$notification=jQuery("#forminator-notification")}},{key:"open",value:function(){this.initialize();var e="<p>"+this.props.text+"</p>",t={type:this.props.type||"default",autoclose:{timeout:this.props.time||5e3}};SUI.openNotice("forminator-notification",e,t)}},{key:"close",value:function(){SUI.closeNotice("forminator-notification")}}]),t}(i.Component));t.default=s},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.textEditor=s.default.createRef(),a.updateValue=a.updateValue.bind(a),a.updateEditor=a.updateEditor.bind(a),a.toggleOptions=a.toggleOptions.bind(a),a.state={editorOptionsOpen:!1},a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),setTimeout(function(){e.initEditor()},50)}},{key:"initEditor",value:function(){var e=this;if(_.isUndefined(wp.editor)||"undefined"==typeof tinyMCE)return void setTimeout(function(){e.initEditor()},50);var t={};_.isUndefined(this.props.allowButtonOnclick)||(t.extended_valid_elements="button[onclick|accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|style|tabindex|title|type|value]"),_.isUndefined(this.props.cutomTinymce)||(t.toolbar1=this.props.cutomTinymce),_.isEmpty(t)&&(t=!0),wp.editor.initialize("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),{tinymce:t,quicktags:!0}),this.bindEvents()}},{key:"bindEvents",value:function(){var e=this;if(this.editor=tinyMCE.get("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:"")),null===this.editor)return void setTimeout(function(){e.bindEvents()},50);this.editor.on("keyup",this.updateEditor),this.editor.on("change",this.updateEditor)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateEditor),wp.editor.remove("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:"")),this.$el.unbind().removeData()}},{key:"updateEditor",value:function(){var e=this.editor.getContent();this.updateValue(e)}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"toggleOptions",value:function(){this.state.editorOptionsOpen?this.setState({editorOptionsOpen:!1}):this.setState({editorOptionsOpen:!0})}},{key:"insertContent",value:function(e){if(this.editor.hidden){var t=jQuery(this.textEditor),a=t.prop("selectionStart"),r=t.prop("selectionEnd"),n=t.val();t.val(n.substring(0,a)+"{"+e+"}"+n.substring(r,n.length)),t.trigger("change")}else this.editor.insertContent("{"+e+"}");this.toggleOptions()}},{key:"getDisabledFields",value:function(){var e=["captcha","product","hidden","page-break","postdata","total","upload","stripe","paypal","password"];return!_.isUndefined(this.props.enablePostData)&&this.props.enablePostData&&!_.isUndefined(this.props.enableUpload)&&this.props.enableUpload&&(e=["captcha","product","hidden","page-break","total","stripe","paypal","password"]),e}},{key:"getFields",value:function(){var e=this.getDisabledFields();return(0,u.getFields)(this.props.wrappers,e)}},{key:"getFormData",value:function(){var e=this,t=this.getFields(),a=_.map(t,function(t,a){if(t.required)return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},t.label))}),r=_.isUndefined(this.props.settings.type)?"":this.props.settings.type,n=_.map(t,function(t,a){if(!t.required&&r!==t.field_type)return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,t.element_id)},t.label))});return s.default.createElement(s.default.Fragment,null,a&&a.some(function(e){return void 0!==e})&&s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Required Fields"))),s.default.createElement(s.default.Fragment,null,a)),n&&n.some(function(e){return void 0!==e})&&s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Optional Fields"))),s.default.createElement(s.default.Fragment,null,n)))}},{key:"getMiscData",value:function(){var e=this,t=_.isEmpty(this.props.editorOptions)?[]:this.props.editorOptions;return s.default.createElement(s.default.Fragment,null,s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Misc Data"))),_.map(t,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))}))}},{key:"getPaymentData",value:function(){var e=this,t=(0,u.getFieldsByType)("paypal",this.props.wrappers),a=(0,u.getFieldsByType)("stripe",this.props.wrappers),r=_.isEmpty(this.props.paymentOptions)?[]:this.props.paymentOptions;if(!_.isEmpty(t)||!_.isEmpty(a))return s.default.createElement(s.default.Fragment,null,this.props.paymentOptions&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,(0,u.translate)("Payment Data"))),_.map(r,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))}))}},{key:"getEditorOptions",value:function(){var e=this;if(this.props.hideEditorOptions)return"";var t=this.props.disableMiscData?"":this.getMiscData(),a=this.props.enableFormData?this.getPaymentData():"",r=this.props.enableFormData?this.getFormData():"",n=this.props.mainOptions?this.props.mainOptions:{form_name:(0,u.translate)("Form Name")};return s.default.createElement("ul",{className:this.state.editorOptionsOpen?"sui-active":""},this.props.enableAllFormFields&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_fields")},(0,u.translate)("All Form Fields"))),this.props.enableAllNonFormFields&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:this.insertContent.bind(this,"all_non_empty_fields")},(0,u.translate)("All Non Empty Fields"))),r,s.default.createElement(s.default.Fragment,null,this.props.mainOptionsLabel&&s.default.createElement("li",{className:"wpmudev-dropdown--option"},s.default.createElement("strong",null,this.props.mainOptionsLabel)),_.map(n,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("a",{className:"wpmudev-insert-content",onClick:e.insertContent.bind(e,a)},t))})),t,a)}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?"":this.props.settings[this.props.property],a=this.getEditorOptions(),r=_.isUndefined(this.props.requiredError)?(0,u.translate)("This field is required!"):this.props.requiredError,n=this.isValid(t)?"":"sui-form-field-error",o=void 0;_.isEmpty(a)||(o=s.default.createElement("div",{className:"sui-editor-options"},s.default.createElement("button",{className:this.state.editorOptionsOpen?"sui-tooltip sui-active":"sui-tooltip","data-tooltip":(0,u.translate)("Add form data"),onClick:this.toggleOptions},s.default.createElement("i",{className:"sui-icon-layout sui-sm","aria-hidden":"true"})),a));var l="";return this.props.label&&(l=s.default.createElement("label",{htmlFor:"forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),className:"sui-label"},this.props.label," ",this.props.isRequired&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note))),s.default.createElement("div",{className:"sui-form-field "+n},l,this.props.descriptionTop&&s.default.createElement("span",{className:"sui-description",style:{marginBottom:"20px"}},this.props.descriptionTop),s.default.createElement("div",{className:"sui-editor"+(_.isEmpty(a)?"":" sui-editor-with-options")},o,s.default.createElement("textarea",{id:"forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),placeholder:this.props.placeholder,defaultValue:t,onChange:function(t){e.updateValue(t.target.value)},ref:function(t){return e.textEditor=t}})),this.props.isRequired&&!this.isValid(t)&&s.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description))}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=(a(1),function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={open:!1},a.toggleState=a.toggleState.bind(a),a}return o(t,e),l(t,[{key:"toggleState",value:function(){this.setState({open:!this.state.open})}},{key:"render",value:function(){var e=this,t=this.props.label,a=this.state.open,r="";a&&(r="sui-accordion-item--open");var n=!(!_.isUndefined(this.props.boxedContent)&&""!==this.props.boxedContent)||this.props.boxedContent,o=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",{className:"sui-accordion-item "+r},s.default.createElement("span",{className:"sui-accordion-item-header",onClick:function(){return e.toggleState()}},s.default.createElement("div",{className:"sui-accordion-item-title"},s.default.createElement("span",null,t),s.default.createElement("button",{className:"sui-button-icon sui-accordion-open-indicator",onClick:function(){return e.toggleState()}},s.default.createElement("i",{className:"sui-icon-chevron-down","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},!1===this.state.open?"Open":"Close")))),s.default.createElement("div",{className:"sui-accordion-item-body"},!1===n?a&&o:s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},a&&o),n)))}}]),t}(i.Component));t.default=u},,function(e,t,a){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.a=r},function(e,t){var a;a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(a=window)}e.exports=a},function(e,t,a){"use strict";var r=a(28),n=a.n(r),o=function(){var e=null,t=function(t){return n()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},a=function(t,a,r,o){if(null!=e){var l="function"==typeof e?e(t,a):e;"string"==typeof l?"function"==typeof r?r(l,o):(n()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==l)}else o(!0)},r=[];return{setPrompt:t,confirmTransitionTo:a,appendListener:function(e){var t=!0,a=function(){t&&e.apply(void 0,arguments)};return r.push(a),function(){t=!1,r=r.filter(function(e){return e!==a})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];r.forEach(function(e){return e.apply(void 0,t)})}}};t.a=o},function(e,t,a){"use strict";var r=a(40);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(14),u=a.n(s),c=a(0),p=a.n(c),f=a(7),d=a.n(f),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},h=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.state={match:o.computeMatch(o.props.history.location.pathname)},l=a,n(o,l)}return o(t,e),t.prototype.getChildContext=function(){return{router:m({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,a=t.children,r=t.history;u()(null==a||1===p.a.Children.count(a),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){i()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?p.a.Children.only(e):null},t}(p.a.Component);h.propTypes={history:d.a.object.isRequired,children:d.a.node},h.contextTypes={router:d.a.object},h.childContextTypes={router:d.a.object.isRequired},t.a=h},function(e,t,a){"use strict";var r=a(62),n=a.n(r),o={},l=0,i=function(e,t){var a=""+t.end+t.strict+t.sensitive,r=o[a]||(o[a]={});if(r[e])return r[e];var i=[],s=n()(e,i,t),u={re:s,keys:i};return l<1e4&&(r[e]=u,l++),u},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2];"string"==typeof t&&(t={path:t});var r=t,n=r.path,o=r.exact,l=void 0!==o&&o,s=r.strict,u=void 0!==s&&s,c=r.sensitive,p=void 0!==c&&c;if(null==n)return a;var f=i(n,{end:l,strict:u,sensitive:p}),d=f.re,m=f.keys,h=d.exec(e);if(!h)return null;var b=h[0],y=h.slice(1),v=e===b;return l&&!v?null:{path:n,url:"/"===n&&""===b?"/":b,isExact:v,params:m.reduce(function(e,t,a){return e[t.name]=y[a],e},{})}};t.a=s},function(e,t,a){"use strict";function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var a=[];if("string"==typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)a.push(parseInt(e[r]+e[r+1],16))}else for(var r=0;r<e.length;r++){var n=e.charCodeAt(r),o=n>>8,l=255&n;o?a.push(o,l):a.push(l)}else for(r=0;r<e.length;r++)a[r]=0|e[r];return a}function n(e){for(var t="",a=0;a<e.length;a++)t+=i(e[a].toString(16));return t}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e,t){for(var a="",r=0;r<e.length;r++){var n=e[r];"little"===t&&(n=o(n)),a+=s(n.toString(16))}return a}function i(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}function u(e,t,a,r){var n=a-t;N(n%4==0);for(var o=new Array(n/4),l=0,i=t;l<o.length;l++,i+=4){var s;s="big"===r?e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]:e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i],o[l]=s>>>0}return o}function c(e,t){for(var a=new Array(4*e.length),r=0,n=0;r<e.length;r++,n+=4){var o=e[r];"big"===t?(a[n]=o>>>24,a[n+1]=o>>>16&255,a[n+2]=o>>>8&255,a[n+3]=255&o):(a[n+3]=o>>>24,a[n+2]=o>>>16&255,a[n+1]=o>>>8&255,a[n]=255&o)}return a}function p(e,t){return e>>>t|e<<32-t}function f(e,t){return e<<t|e>>>32-t}function d(e,t){return e+t>>>0}function m(e,t,a){return e+t+a>>>0}function h(e,t,a,r){return e+t+a+r>>>0}function b(e,t,a,r,n){return e+t+a+r+n>>>0}function y(e,t,a,r){var n=e[t],o=e[t+1],l=r+o>>>0,i=(l<r?1:0)+a+n;e[t]=i>>>0,e[t+1]=l}function v(e,t,a,r){return(t+r>>>0<t?1:0)+e+a>>>0}function g(e,t,a,r){return t+r>>>0}function E(e,t,a,r,n,o,l,i){var s=0,u=t;return u=u+r>>>0,s+=u<t?1:0,u=u+o>>>0,s+=u<o?1:0,u=u+i>>>0,s+=u<i?1:0,e+a+n+l+s>>>0}function _(e,t,a,r,n,o,l,i){return t+r+o+i>>>0}function w(e,t,a,r,n,o,l,i,s,u){var c=0,p=t;return p=p+r>>>0,c+=p<t?1:0,p=p+o>>>0,c+=p<o?1:0,p=p+i>>>0,c+=p<i?1:0,p=p+u>>>0,c+=p<u?1:0,e+a+n+l+s+c>>>0}function O(e,t,a,r,n,o,l,i,s,u){return t+r+o+i+u>>>0}function P(e,t,a){return(t<<32-a|e>>>a)>>>0}function j(e,t,a){return(e<<32-a|t>>>a)>>>0}function k(e,t,a){return e>>>a}function x(e,t,a){return(e<<32-a|t>>>a)>>>0}var N=a(65),C=a(66);t.inherits=C,t.toArray=r,t.toHex=n,t.htonl=o,t.toHex32=l,t.zero2=i,t.zero8=s,t.join32=u,t.split32=c,t.rotr32=p,t.rotl32=f,t.sum32=d,t.sum32_3=m,t.sum32_4=h,t.sum32_5=b,t.sum64=y,t.sum64_hi=v,t.sum64_lo=g,t.sum64_4_hi=E,t.sum64_4_lo=_,t.sum64_5_hi=w,t.sum64_5_lo=O,t.rotr64_hi=P,t.rotr64_lo=j,t.shr64_hi=k,t.shr64_lo=x},function(e,t,a){"use strict";(function(t){function r(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var n=a(11),o=a(154),l={"Content-Type":"application/x-www-form-urlencoded"},i={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=a(73):void 0!==t&&(e=a(73)),e}(),transformRequest:[function(e,t){return o(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)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};i.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],function(e){i.headers[e]={}}),n.forEach(["post","put","patch"],function(e){i.headers[e]=n.merge(l)}),e.exports=i}).call(t,a(47))},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(15),d=r(f),m=function(e){function t(e){n(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=_.isUndefined(a.props.prefix)?"":a.props.prefix+"_";return a.requiredProp=r+"required",a.requiredValProp=r+"required_message",a.requiredCValProp=r+"required_confirm_message",a}return l(t,e),s(t,[{key:"toggleValue",value:function(e){this.props.updateProperty(this.requiredProp,e)}},{key:"render",value:function(){var e=this,t=!_.isUndefined(this.props.state[this.requiredProp])&&this.props.state[this.requiredProp],a=_.isUndefined(this.props.state[this.requiredValProp])?"":this.props.state[this.requiredValProp],r=_.isUndefined(this.props.state[this.requiredCValProp])?"":this.props.state[this.requiredCValProp],n=_.isUndefined(this.props.state.type)?"":this.props.state.type,o="password"===n&&!_.isUndefined(this.props.state["confirm-password"])&&this.props.state["confirm-password"];return c.default.createElement(d.default,{label:(0,p.translate)("Require"),labelDark:!0,description:(0,p.translate)("Force users to fill out this field, otherwise it will be optional."),descriptionSpacing:20,sidebar:!1},c.default.createElement("div",{className:"sui-tabs sui-side-tabs",style:{marginTop:"10px"}},c.default.createElement("div",{className:"sui-tabs-menu"},c.default.createElement("div",{className:"sui-tab-item"+(t?"":" active"),onClick:this.toggleValue.bind(this,!1)},(0,p.translate)("Optional")),c.default.createElement("div",{className:"sui-tab-item"+(t?" active":""),onClick:this.toggleValue.bind(this,!0)},(0,p.translate)("Required"))),c.default.createElement("div",{className:"sui-tabs-content"},c.default.createElement("div",{className:"sui-tab-boxed"+(t?" active":"")},c.default.createElement("div",i({className:"sui-form-field"},!o&&!(t&&"select"===n)&&{style:{marginBottom:0}}),"password"===n&&c.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,p.translate)("Password error message")),"password"!==n&&c.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,p.translate)("Error message")),c.default.createElement("input",{type:"text",value:a,placeholder:(0,p.translate)("Enter required message"),id:"forminator-field-name-error-msg",className:"sui-form-control",onChange:function(t){e.props.updateProperty(e.requiredValProp,t.target.value)}})),o&&c.default.createElement("div",i({className:"sui-form-field"},!(t&&"select"===n)&&{style:{marginBottom:0}}),c.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,p.translate)("Confirm Password error message")),c.default.createElement("input",{type:"text",value:r,placeholder:(0,p.translate)("Enter confirm password message"),id:"forminator-field-name-error-msg",className:"sui-form-control",onChange:function(t){e.props.updateProperty(e.requiredCValProp,t.target.value)}})),c.default.createElement("div",i({role:"alert",className:"sui-notice sui-notice-warning "+(t&&"select"===n?" sui-active":""),"aria-live":"assertive"},t&&"select"===n&&{style:{display:"block"}}),t&&"select"===n&&c.default.createElement("div",{className:"sui-notice-content"},c.default.createElement("div",{className:"sui-notice-message"},c.default.createElement("span",{className:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"}),c.default.createElement("p",null,(0,p.translate)("Options without a value will be treated as empty options")))))))))}}]),t}(u.Component);t.default=m},function(e,t,a){"use strict";function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach(function(t){r(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function l(e,t){if(null==e)return{};var a,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||(n[a]=e[a]);return n}function i(e,t){if(null==e)return{};var a,r,n=l(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"Button",function(){return c});var s=a(0),u=a.n(s),c=function(e){var t=e.label,a=e.icon,r=e.design,n=void 0===r?"solid":r,l=e.color,s=e.className,c=e.loading,p=i(e,["label","icon","design","color","className","loading"]),f=u.a.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),d=u.a.createElement(u.a.Fragment,null,a&&""!==a&&u.a.createElement("span",{className:"sui-icon-"+a,"aria-hidden":"true"}),t);switch(s="sui-button".concat(s?" "+s:""),l){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":s+=" sui-button-"+l;break;case"gray":default:s+=""}switch(n){case"ghost":case"outlined":s+=" sui-button-"+n;break;case"solid":default:s+=""}c&&(s+=" sui-button-onload");var m="button";return p.href?m="a":p.htmlFor&&(m="label"),u.a.createElement(m,o({className:s,disabled:p.disabled||c},p),c?f:d)}},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a}return o(t,e),l(t,[{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=_.isUndefined(this.props.fieldId)?this.props.property:this.props.fieldId,r=!(_.isUndefined(this.props.disabled)||!this.props.disabled),n="";return this.props.itemClass&&""!==this.props.itemClass&&(n=" "+this.props.itemClass),s.default.createElement("label",{htmlFor:"forminator-field-"+a,className:"sui-checkbox"+n},s.default.createElement("input",{type:"checkbox",id:"forminator-field-"+a,value:"true",checked:t?"checked":"",disabled:r,onChange:function(t){e.updateValue(t.target.checked)}}),s.default.createElement("span",{"aria-hidden":"true"}),this.props.label&&s.default.createElement("span",null,this.props.label,!_.isUndefined(this.props.tooltip)&&""!==this.props.tooltip&&s.default.createElement("span",{className:"sui-tooltip sui-tooltip-constrained",style:{marginLeft:10,verticalAlign:"middle","--tooltip-width":"165px"},"data-tooltip":this.props.tooltip},s.default.createElement("span",{className:"sui-icon-info","aria-hidden":"true",style:{pointerEvents:"none"}}))))}}]),t}(i.Component);t.default=u},function(e,t){function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function n(e){if(c===setTimeout)return setTimeout(e,0);if((c===a||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function l(){h&&d&&(h=!1,d.length?m=d.concat(m):b=-1,m.length&&i())}function i(){if(!h){var e=n(l);h=!0;for(var t=m.length;t;){for(d=m,m=[];++b<t;)d&&d[b].run();b=-1,t=m.length}d=null,h=!1,o(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}var c,p,f=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:a}catch(e){c=a}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var d,m=[],h=!1,b=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];m.push(new s(e,t)),1!==m.length||h||n(i)},s.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},,function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.updateValue=a.updateValue.bind(a),a.clearValue=a.clearValue.bind(a);var o=_.isUndefined(a.props.defaultValue)?"":a.props.defaultValue,l=_.isUndefined(a.props.settings[a.props.property])?o:a.props.settings[a.props.property];return a.state={value:l},a}return o(t,e),l(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),SUI.select.initVars(this.$el),this.updateValue=this.updateValue.bind(this),this.$el.on("change",function(t){var a=e.state.value+" "+t.target.value;e.updateValue(a.trim())}),this.clearValue(this.$el)}},{key:"updateValue",value:function(e){"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e),"function"==typeof this.props.updateValue&&this.props.updateValue(this.props.counter,e),this.setState({value:e})}},{key:"clearValue",value:function(e){e.val(null).trigger("change")}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.updateValue),this.$el.unbind().removeData()}},{key:"isValid",value:function(e){return this.props.isRequired?this.props.isRequired&&!_.isEmpty(e):!!_.isUndefined(this.props.isPositive)||(_.isEmpty(e)||e>=0)}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.defaultValue)?"":this.props.defaultValue,a=_.isUndefined(this.props.settings[this.props.property])?t:this.props.settings[this.props.property],r=_.isUndefined(this.props.requiredError)?(0,u.translate)("This field is required!"):this.props.requiredError,n=this.isValid(a)?"":" sui-form-field-error",o=_.isUndefined(this.props.customClass)?"":" "+this.props.customClass,l="",i="input",c="";"textarea"===this.props.type&&(i="textarea",c="textarea-type"),this.props.label&&(l=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label," ",(this.props.isRequired||this.props.required)&&s.default.createElement("span",{className:"sui-error"}," *"),this.props.note&&s.default.createElement("span",{className:"sui-label-note"},this.props.note)));var p=s.default.createElement(s.default.Fragment,null,"input"===i&&s.default.createElement("input",{type:"text",value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)}}),"textarea"===i&&s.default.createElement("textarea",{value:this.state.value,placeholder:this.props.placeholder,className:"sui-form-control",onChange:function(t){e.updateValue(t.target.value)},rows:this.props.rows}));return s.default.createElement("div",{className:"sui-form-field"+o+n},l,s.default.createElement("div",{className:"sui-insert-variables "+c},p,s.default.createElement("select",{className:"sui-variables",ref:function(t){return e.el=t}},this.props.children.length<=0&&s.default.createElement("optgroup",{label:(0,u.translate)("No available options")}),this.props.children),this.props.isRequired&&!this.isValid(a)&&s.default.createElement("span",{className:"sui-error-message"},r),this.props.description&&s.default.createElement("span",{className:"sui-description"},this.props.description)))}}]),t}(i.Component);t.default=c},function(e,t,a){e.exports=a(151)},function(e,t,a){"use strict";var r=a(169),n=a(170),o=a(78);e.exports={formats:o,parse:n,stringify:r}},function(e,t,a){"use strict";a.d(t,"b",function(){return o}),a.d(t,"a",function(){return l});var r=a(7),n=a.n(r),o=n.a.shape({trySubscribe:n.a.func.isRequired,tryUnsubscribe:n.a.func.isRequired,notifyNestedSubs:n.a.func.isRequired,isSubscribed:n.a.func.isRequired}),l=n.a.shape({subscribe:n.a.func.isRequired,dispatch:n.a.func.isRequired,getState:n.a.func.isRequired})},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function i(){}function s(e,t){var a={run:function(r){try{var n=e(t.getState(),r);(n!==a.props||a.error)&&(a.shouldComponentUpdate=!0,a.props=n,a.error=null)}catch(e){a.shouldComponentUpdate=!0,a.error=e}}};return a}function u(e){var t,a,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.getDisplayName,f=void 0===c?function(e){return"ConnectAdvanced("+e+")"}:c,E=u.methodName,_=void 0===E?"connectAdvanced":E,w=u.renderCountProp,O=void 0===w?void 0:w,P=u.shouldHandleStateChanges,j=void 0===P||P,k=u.storeKey,x=void 0===k?"store":k,N=u.withRef,C=void 0!==N&&N,S=l(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),T=x+"Subscription",F=v++,D=(t={},t[x]=b.a,t[T]=b.b,t),M=(a={},a[T]=b.b,a);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+_+". Instead received "+JSON.stringify(t));var a=t.displayName||t.name||"Component",l=f(a),u=y({},S,{getDisplayName:f,methodName:_,renderCountProp:O,shouldHandleStateChanges:j,storeKey:x,withRef:C,displayName:l,wrappedComponentName:a,WrappedComponent:t}),c=function(a){function c(e,t){r(this,c);var o=n(this,a.call(this,e,t));return o.version=F,o.state={},o.renderCount=0,o.store=e[x]||t[x],o.propsMode=Boolean(e[x]),o.setWrappedInstance=o.setWrappedInstance.bind(o),d()(o.store,'Could not find "'+x+'" in either the context or props of "'+l+'". Either wrap the root component in a <Provider>, or explicitly pass "'+x+'" as a prop to "'+l+'".'),o.initSelector(),o.initSubscription(),o}return o(c,a),c.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[T]=t||this.context[T],e},c.prototype.componentDidMount=function(){j&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},c.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=i,this.store=null,this.selector.run=i,this.selector.shouldComponentUpdate=!1},c.prototype.getWrappedInstance=function(){return d()(C,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+_+"() call."),this.wrappedInstance},c.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},c.prototype.initSelector=function(){var t=e(this.store.dispatch,u);this.selector=s(t,this.store),this.selector.run(this.props)},c.prototype.initSubscription=function(){if(j){var e=(this.propsMode?this.props:this.context)[T];this.subscription=new h.a(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},c.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.prototype.addExtraProps=function(e){if(!(C||O||this.propsMode&&this.subscription))return e;var t=y({},e);return C&&(t.ref=this.setWrappedInstance),O&&(t[O]=this.renderCount++),this.propsMode&&this.subscription&&(t[T]=this.subscription),t},c.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(m.createElement)(t,this.addExtraProps(e.props))},c}(m.Component);return c.WrappedComponent=t,c.displayName=l,c.childContextTypes=M,c.contextTypes=D,c.propTypes=D,p()(c,t)}}t.a=u;var c=a(54),p=a.n(c),f=a(14),d=a.n(f),m=a(0),h=(a.n(m),a(88)),b=a(52),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},v=0,g={}},function(e,t,a){"use strict";function r(e,t,a){if("string"!=typeof t){if(p){var f=c(t);f&&f!==p&&r(e,f,a)}var d=i(t);s&&(d=d.concat(s(t)));for(var m=0;m<d.length;++m){var h=d[m];if(!(n[h]||o[h]||a&&a[h])){var b=u(t,h);try{l(e,h,b)}catch(e){}}}return e}return e}var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l=Object.defineProperty,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,p=c&&c(Object);e.exports=r},function(e,t,a){"use strict";function r(e){return function(t,a){function r(){return n}var n=e(t,a);return r.dependsOnOwnProps=!1,r}}function n(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function o(e,t){return function(t,a){var r=(a.displayName,function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)});return r.dependsOnOwnProps=!0,r.mapToProps=function(t,a){r.mapToProps=e,r.dependsOnOwnProps=n(e);var o=r(t,a);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=n(o),o=r(t,a)),o},r}}t.a=r,t.b=o;a(56)},function(e,t,a){"use strict";a(95),a(36)},function(e,t,a){"use strict";var r=a(97),n=r.a.Symbol;t.a=n},function(e,t,a){"use strict";a.d(t,"b",function(){return r}),a.d(t,"a",function(){return n}),a.d(t,"e",function(){return o}),a.d(t,"c",function(){return l}),a.d(t,"g",function(){return i}),a.d(t,"h",function(){return s}),a.d(t,"f",function(){return u}),a.d(t,"d",function(){return c});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),n=function(e,t,a){return e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent("on"+t,a)},o=function(e,t,a){return e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent("on"+t,a)},l=function(e,t){return t(window.confirm(e))},i=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},s=function(){return-1===window.navigator.userAgent.indexOf("Trident")},u=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},c=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=a(0),s=a.n(i),u=a(7),c=a.n(u),p=a(14),f=a.n(p),d=a(19),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},h=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},b=function(e){function t(){var a,r,l;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=o(this,e.call.apply(e,[this].concat(s))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!h(e)){e.preventDefault();var t=r.context.router.history,a=r.props,n=a.replace,o=a.to;n?t.replace(o):t.push(o)}},l=a,o(r,l)}return l(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),a=e.innerRef,n=r(e,["replace","to","innerRef"]);f()(this.context.router,"You should not use <Link> outside a <Router>"),f()(void 0!==t,'You must specify the "to" property');var o=this.context.router.history,l="string"==typeof t?Object(d.c)(t,null,null,o.location):t,i=o.createHref(l);return s.a.createElement("a",m({},n,{onClick:this.handleClick,href:i,ref:a}))},t}(s.a.Component);b.propTypes={onClick:c.a.func,target:c.a.string,replace:c.a.bool,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired,innerRef:c.a.oneOfType([c.a.string,c.a.func])},b.defaultProps={replace:!1},b.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired,createHref:c.a.func.isRequired}).isRequired}).isRequired},t.a=b},function(e,t,a){"use strict";var r=a(61);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(14),u=a.n(s),c=a(0),p=a.n(c),f=a(7),d=a.n(f),m=a(41),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},b=function(e){return 0===p.a.Children.count(e)},y=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.state={match:o.computeMatch(o.props,o.context.router)},l=a,n(o,l)}return o(t,e),t.prototype.getChildContext=function(){return{router:h({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var a=e.computedMatch,r=e.location,n=e.path,o=e.strict,l=e.exact,i=e.sensitive;if(a)return a;u()(t,"You should not use <Route> or withRouter() outside a <Router>");var s=t.route,c=(r||s.location).pathname;return Object(m.a)(c,{path:n,strict:o,exact:l,sensitive:i},s.match)},t.prototype.componentWillMount=function(){i()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),i()(!(this.props.component&&this.props.children&&!b(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),i()(!(this.props.render&&this.props.children&&!b(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){i()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),i()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,a=t.children,r=t.component,n=t.render,o=this.context.router,l=o.history,i=o.route,s=o.staticContext,u=this.props.location||i.location,c={match:e,location:u,history:l,staticContext:s};return r?e?p.a.createElement(r,c):null:n?e?n(c):null:"function"==typeof a?a(c):a&&!b(a)?p.a.Children.only(a):null},t}(p.a.Component);y.propTypes={computedMatch:d.a.object,path:d.a.string,exact:d.a.bool,strict:d.a.bool,sensitive:d.a.bool,component:d.a.func,render:d.a.func,children:d.a.oneOfType([d.a.func,d.a.node]),location:d.a.object},y.contextTypes={router:d.a.shape({history:d.a.object.isRequired,route:d.a.object.isRequired,staticContext:d.a.object})},y.childContextTypes={router:d.a.object.isRequired},t.a=y},function(e,t,a){function r(e,t){for(var a,r=[],n=0,o=0,l="",i=t&&t.delimiter||"/";null!=(a=v.exec(e));){var c=a[0],p=a[1],f=a.index;if(l+=e.slice(o,f),o=f+c.length,p)l+=p[1];else{var d=e[o],m=a[2],h=a[3],b=a[4],y=a[5],g=a[6],E=a[7];l&&(r.push(l),l="");var _=null!=m&&null!=d&&d!==m,w="+"===g||"*"===g,O="?"===g||"*"===g,P=a[2]||i,j=b||y;r.push({name:h||n++,prefix:m||"",delimiter:P,optional:O,repeat:w,partial:_,asterisk:!!E,pattern:j?u(j):E?".*":"[^"+s(P)+"]+?"})}}return o<e.length&&(l+=e.substr(o)),l&&r.push(l),r}function n(e,t){return i(r(e,t))}function o(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function l(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function i(e){for(var t=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(t[a]=new RegExp("^(?:"+e[a].pattern+")$"));return function(a,r){for(var n="",i=a||{},s=r||{},u=s.pretty?o:encodeURIComponent,c=0;c<e.length;c++){var p=e[c];if("string"!=typeof p){var f,d=i[p.name];if(null==d){if(p.optional){p.partial&&(n+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(y(d)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var m=0;m<d.length;m++){if(f=u(d[m]),!t[c].test(f))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(f)+"`");n+=(0===m?p.prefix:p.delimiter)+f}}else{if(f=p.asterisk?l(d):u(d),!t[c].test(f))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+f+'"');n+=p.prefix+f}}else n+=p}return n}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function p(e){return e.sensitive?"":"i"}function f(e,t){var a=e.source.match(/\((?!\?)/g);if(a)for(var r=0;r<a.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}function d(e,t,a){for(var r=[],n=0;n<e.length;n++)r.push(b(e[n],t,a).source);return c(new RegExp("(?:"+r.join("|")+")",p(a)),t)}function m(e,t,a){return h(r(e,a),t,a)}function h(e,t,a){y(t)||(a=t||a,t=[]),a=a||{};for(var r=a.strict,n=!1!==a.end,o="",l=0;l<e.length;l++){var i=e[l];if("string"==typeof i)o+=s(i);else{var u=s(i.prefix),f="(?:"+i.pattern+")";t.push(i),i.repeat&&(f+="(?:"+u+f+")*"),f=i.optional?i.partial?u+"("+f+")?":"(?:"+u+"("+f+"))?":u+"("+f+")",o+=f}}var d=s(a.delimiter||"/"),m=o.slice(-d.length)===d;return r||(o=(m?o.slice(0,-d.length):o)+"(?:"+d+"(?=$))?"),o+=n?"$":r&&m?"":"(?="+d+"|$)",c(new RegExp("^"+o,p(a)),t)}function b(e,t,a){return y(t)||(a=t||a,t=[]),a=a||{},e instanceof RegExp?f(e,t):y(e)?d(e,t,a):m(e,t,a)}var y=a(118);e.exports=b,e.exports.parse=r,e.exports.compile=n,e.exports.tokensToFunction=i,e.exports.tokensToRegExp=h;var v=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(e,t,a){"use strict";var r=a(62),n=a.n(r),o={},l=0,i=function(e){var t=e,a=o[t]||(o[t]={});if(a[e])return a[e];var r=n.a.compile(e);return l<1e4&&(a[e]=r,l++),r},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:i(e)(t,{pretty:!0})};t.a=s},function(e,t,a){var r=a(132),n=new r;e.exports={numberFormat:n.numberFormat.bind(n),translate:n.translate.bind(n),configure:n.configure.bind(n),setLocale:n.setLocale.bind(n),getLocale:n.getLocale.bind(n),getLocaleSlug:n.getLocaleSlug.bind(n),addTranslations:n.addTranslations.bind(n),reRenderTranslations:n.reRenderTranslations.bind(n),registerComponentUpdateHook:n.registerComponentUpdateHook.bind(n),registerTranslateHook:n.registerTranslateHook.bind(n),state:n.state,stateObserver:n.stateObserver,on:n.stateObserver.on.bind(n.stateObserver),off:n.stateObserver.removeListener.bind(n.stateObserver),emit:n.stateObserver.emit.bind(n.stateObserver),localize:a(146)(n),$this:n,I18N:r}},function(e,t){function a(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=a,a.equal=function(e,t,a){if(e!=t)throw new Error(a||"Assertion failed: "+e+" != "+t)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var a=function(){};a.prototype=t.prototype,e.prototype=new a,e.prototype.constructor=e}},function(e,t){function a(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function l(e){return void 0===e}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0,a.defaultMaxListeners=10,a.prototype.setMaxListeners=function(e){if(!n(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},a.prototype.emit=function(e){var t,a,n,i,s,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(a=this._events[e],l(a))return!1;if(r(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),a.apply(this,i)}else if(o(a))for(i=Array.prototype.slice.call(arguments,1),u=a.slice(),n=u.length,s=0;s<n;s++)u[s].apply(this,i);return!0},a.prototype.addListener=function(e,t){var n;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(n=l(this._maxListeners)?a.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},a.prototype.on=a.prototype.addListener,a.prototype.once=function(e,t){function a(){this.removeListener(e,a),n||(n=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var n=!1;return a.listener=t,this.on(e,a),this},a.prototype.removeListener=function(e,t){var a,n,l,i;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=this._events[e],l=a.length,n=-1,a===t||r(a.listener)&&a.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(a)){for(i=l;i-- >0;)if(a[i]===t||a[i].listener&&a[i].listener===t){n=i;break}if(n<0)return this;1===a.length?(a.length=0,delete this._events[e]):a.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},a.prototype.removeAllListeners=function(e){var t,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(a=this._events[e],r(a))this.removeListener(e,a);else if(a)for(;a.length;)this.removeListener(e,a[a.length-1]);return delete this._events[e],this},a.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},a.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},a.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,a){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,a){"use strict";function r(e,t,a,r,o,l,i,s){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[a,r,o,l,i,s],p=0;u=new Error(t.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var n=function(e){};e.exports=r},function(e,t){function a(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function r(e,t){for(var a=-1,r=Array(e);++a<e;)r[a]=t(a);return r}function n(e,t){var a=D(e)||d(e)?r(e.length,String):[],n=a.length,o=!!n;for(var l in e)!t&&!x.call(e,l)||o&&("length"==l||u(l,n))||a.push(l);return a}function o(e,t,a){var r=e[t];x.call(e,t)&&f(r,a)&&(void 0!==a||t in e)||(e[t]=a)}function l(e){if(!p(e))return S(e);var t=[];for(var a in Object(e))x.call(e,a)&&"constructor"!=a&&t.push(a);return t}function i(e,t){return t=T(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,o=T(r.length-t,0),l=Array(o);++n<o;)l[n]=r[t+n];n=-1;for(var i=Array(t+1);++n<t;)i[n]=r[n];return i[t]=l,a(e,this,i)}}function s(e,t,a,r){a||(a={});for(var n=-1,l=t.length;++n<l;){var i=t[n],s=r?r(a[i],e[i],i,a,e):void 0;o(a,i,void 0===s?e[i]:s)}return a}function u(e,t){return!!(t=null==t?_:t)&&("number"==typeof e||j.test(e))&&e>-1&&e%1==0&&e<t}function c(e,t,a){if(!v(a))return!1;var r=typeof t;return!!("number"==r?m(a)&&u(t,a.length):"string"==r&&t in a)&&f(a[t],e)}function p(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||k)}function f(e,t){return e===t||e!==e&&t!==t}function d(e){return h(e)&&x.call(e,"callee")&&(!C.call(e,"callee")||N.call(e)==w)}function m(e){return null!=e&&y(e.length)&&!b(e)}function h(e){return g(e)&&m(e)}function b(e){var t=v(e)?N.call(e):"";return t==O||t==P}function y(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=_}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){return!!e&&"object"==typeof e}function E(e){return m(e)?n(e):l(e)}var _=9007199254740991,w="[object Arguments]",O="[object Function]",P="[object GeneratorFunction]",j=/^(?:0|[1-9]\d*)$/,k=Object.prototype,x=k.hasOwnProperty,N=k.toString,C=k.propertyIsEnumerable,S=function(e,t){return function(a){return e(t(a))}}(Object.keys,Object),T=Math.max,F=!C.call({valueOf:1},"valueOf"),D=Array.isArray,M=function(e){return i(function(t,a){var r=-1,n=a.length,o=n>1?a[n-1]:void 0,l=n>2?a[2]:void 0;for(o=e.length>3&&"function"==typeof o?(n--,o):void 0,l&&c(a[0],a[1],l)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var i=a[r];i&&e(t,i,r,o)}return t})}(function(e,t){if(F||p(t)||m(t))return void s(t,E(t),e);for(var a in t)x.call(t,a)&&o(e,a,t[a])});e.exports=M},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.showModal=function(e,t){return function(a){a({type:"SHOW_MODAL",modalProps:e,modalType:t})}},t.hideModal=function(){return function(e){e({type:"HIDE_MODAL"})}}},function(e,t,a){"use strict";e.exports=function(e,t){return function(){for(var a=new Array(arguments.length),r=0;r<a.length;r++)a[r]=arguments[r];return e.apply(t,a)}}},function(e,t,a){"use strict";var r=a(11),n=a(155),o=a(157),l=a(158),i=a(159),s=a(74),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||a(160);e.exports=function(e){return new Promise(function(t,c){var p=e.data,f=e.headers;r.isFormData(p)&&delete f["Content-Type"];var d=new XMLHttpRequest,m="onreadystatechange",h=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||i(e.url)||(d=new window.XDomainRequest,m="onload",h=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var b=e.auth.username||"",y=e.auth.password||"";f.Authorization="Basic "+u(b+":"+y)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[m]=function(){if(d&&(4===d.readyState||h)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var a="getAllResponseHeaders"in d?l(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,o={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:a,config:e,request:d};n(t,c,o),d=null}},d.onerror=function(){c(s("Network Error",e,null,d)),d=null},d.ontimeout=function(){c(s("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=a(161),g=(e.withCredentials||i(e.url))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(f,function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),c(e),d=null)}),void 0===p&&(p=null),d.send(p)})}},function(e,t,a){"use strict";var r=a(156);e.exports=function(e,t,a,n,o){var l=new Error(e);return r(l,t,a,n,o)}},function(e,t,a){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,a){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,a){"use strict";var r=Object.prototype.hasOwnProperty,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){for(var t;e.length;){var a=e.pop();if(t=a.obj[a.prop],Array.isArray(t)){for(var r=[],n=0;n<t.length;++n)void 0!==t[n]&&r.push(t[n]);a.obj[a.prop]=r}}return t},l=function(e,t){for(var a=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(a[r]=e[r]);return a},i=function e(t,a,n){if(!a)return t;if("object"!=typeof a){if(Array.isArray(t))t.push(a);else{if("object"!=typeof t)return[t,a];(n.plainObjects||n.allowPrototypes||!r.call(Object.prototype,a))&&(t[a]=!0)}return t}if("object"!=typeof t)return[t].concat(a);var o=t;return Array.isArray(t)&&!Array.isArray(a)&&(o=l(t,n)),Array.isArray(t)&&Array.isArray(a)?(a.forEach(function(a,o){r.call(t,o)?t[o]&&"object"==typeof t[o]?t[o]=e(t[o],a,n):t.push(a):t[o]=a}),t):Object.keys(a).reduce(function(t,o){var l=a[o];return r.call(t,o)?t[o]=e(t[o],l,n):t[o]=l,t},o)},s=function(e,t){return Object.keys(t).reduce(function(e,a){return e[a]=t[a],e},e)},u=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},c=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),a="",r=0;r<t.length;++r){var o=t.charCodeAt(r);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?a+=t.charAt(r):o<128?a+=n[o]:o<2048?a+=n[192|o>>6]+n[128|63&o]:o<55296||o>=57344?a+=n[224|o>>12]+n[128|o>>6&63]+n[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(r)),a+=n[240|o>>18]+n[128|o>>12&63]+n[128|o>>6&63]+n[128|63&o])}return a},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],a=[],r=0;r<t.length;++r)for(var n=t[r],l=n.obj[n.prop],i=Object.keys(l),s=0;s<i.length;++s){var u=i[s],c=l[u];"object"==typeof c&&null!==c&&-1===a.indexOf(c)&&(t.push({obj:l,prop:u}),a.push(c))}return o(t)},f=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},d=function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};e.exports={arrayToObject:l,assign:s,compact:p,decode:u,encode:c,isBuffer:d,isRegExp:f,merge:i}},function(e,t,a){"use strict";var r=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},s=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),u=a(0),c=r(u),p=a(1),f=a(3),d=r(f),m=a(15),h=r(m),b=function(e){function t(e){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return l(t,e),s(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.prefix)?"":this.props.prefix+"_",t=_.isUndefined(this.props.notice)||""===this.props.notice?(0,p.translate)("{{strong}}Note:{{/strong}} Using WordPress Reserved Terms as query parameters may cause unexpected form behavior. Find the complete list of {{link}}{{icon/}} WordPress Reserved Terms here{{/link}}.",{components:{strong:c.default.createElement("strong",null),link:c.default.createElement("a",{href:"https://codex.wordpress.org/Reserved_Terms",target:"_blank"}),icon:c.default.createElement("span",{className:"sui-icon-open-new-window","aria-hidden":"true"})}}):this.props.notice;return c.default.createElement(h.default,{label:(0,p.translate)("Pre-populate"),labelDark:!0,description:(0,p.translate)("You can pre-populate this field dynamically using the query parameter passed in your form URL. Enter the query parameter key to fetch its value from your form URL below."),descriptionSpacing:20,sidebar:!1},c.default.createElement(d.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Query parameter (optional)"),description:t,placeholder:(0,p.translate)("E.g. query_parameter_key"),property:e+"prefill",inputStyles:{maxWidth:"240px"}})))}}]),t}(u.Component);t.default=b},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),i=a(0),s=function(e){return e&&e.__esModule?e:{default:e}}(i),u=a(1),c=function(e){function t(e){return r(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),l(t,[{key:"clearImage",value:function(){if("answer_image"===this.props.property){var e=Object.assign({},this.props.answer),t=this.props.property;e[t]="",e[t+"_filename"]="",e[t+"_alt"]="",this.props.actions.builderActions.updateAnswer(e)}else"function"==typeof this.props.updateProperty?(this.props.updateProperty(this.props.property,""),this.props.updateProperty(this.props.property+"_filename",""),this.props.updateProperty(this.props.property+"_alt","")):(this.props.actions.settingsActions.updateSetting(this.props.property,""),this.props.actions.settingsActions.updateSetting(this.props.property+"_filename",""),this.props.actions.settingsActions.updateSetting(this.props.property+"_alt",""))}},{key:"openMedia",value:function(){var e=this,t=wp.media({title:(0,u.translate)("Select image"),button:{text:(0,u.translate)("Select")},multiple:!1}).on("select",function(){var a=void 0,r=t.state().get("selection").first().toJSON();a=_.isUndefined(e.props.imageSize)?r.url:"thumbnail"===e.props.imageSize?r.sizes.thumbnail.url:"medium"===e.props.imageSize?_.isUndefined(r.sizes.medium)?r.sizes.full.url:r.sizes.medium.url:"large"===e.props.imageSize?_.isUndefined(r.sizes.large)?r.sizes.full.url:r.sizes.large.url:r.sizes.full.url,"function"==typeof e.props.updateProperty?(e.props.updateProperty(e.props.property,a),e.props.updateProperty(e.props.property+"_filename",r.filename),e.props.updateProperty(e.props.property+"_alt",r.alt)):(e.props.actions.settingsActions.updateSetting(e.props.property,a),e.props.actions.settingsActions.updateSetting(e.props.property+"_filename",r.filename),e.props.actions.settingsActions.updateSetting(e.props.property+"_alt",r.alt))});t.open()}},{key:"render",value:function(){var e=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],t=_.isEmpty(e)?"":"sui-has_file",a=_.isUndefined(this.props.settings[this.props.property+"_filename"])?e:_.isEmpty(this.props.settings[this.props.property+"_filename"])&&!_.isNull(e)?e.replace(/^.*[\\\/]/,""):this.props.settings[this.props.property+"_filename"],r="";this.props.label&&(r=s.default.createElement("label",{className:"sui-label"},this.props.label));var n="";this.props.description&&(n=s.default.createElement("span",{className:"sui-description"},this.props.description));var o="";if("image"===this.props.type){var l="";e&&(l="url("+e+")"),o=s.default.createElement("div",{className:"sui-upload-image","aria-hidden":"true"},s.default.createElement("div",{className:"sui-image-mask"}),s.default.createElement("div",{role:"button",onClick:this.openMedia.bind(this),className:"sui-image-preview",style:{backgroundImage:l}}))}var i=this.props.fieldClass?" "+this.props.fieldClass:"";return s.default.createElement("div",{className:"sui-form-field"+i},r,s.default.createElement("div",{className:"sui-upload "+t},s.default.createElement("input",{type:"file",value:"",readOnly:"readonly"}),o,s.default.createElement("button",{className:"sui-upload-button",onClick:this.openMedia.bind(this)},s.default.createElement("i",{className:"sui-icon-upload-cloud","aria-hidden":"true"}),"image"===this.props.type?""+(0,u.translate)("Upload image"):""+(0,u.translate)("Upload file")),s.default.createElement("div",{className:"sui-upload-file"},s.default.createElement("span",{title:a},a),s.default.createElement("button",{className:"sui-upload-button--remove",onClick:this.clearImage.bind(this)},s.default.createElement("i",{className:"sui-icon-close","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},"image"===this.props.type?""+(0,u.translate)("Remove uploaded image"):""+(0,u.translate)("Remove uploaded file"))))),n)}}]),t}(i.Component);t.default=c},function(e,t,a){"use strict";function r(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&amp;")}function n(e){return e.replace(/"/g,"&quot;")}function o(e){return e.replace(/</g,"&lt;")}function l(e){return Object(c.a)(n(r(e)))}function i(e){return o(r(e))}function s(e){return o(e.replace(/&/g,"&amp;"))}function u(e){return!p.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.escapeAmpersand=r,t.escapeQuotationMark=n,t.escapeLessThan=o,t.escapeAttribute=l,t.escapeHTML=i,t.escapeEditableHTML=s,t.isValidAttributeName=u;var c=a(184);const p=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i=function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}}(),s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(1),p=function(e){function t(e){r(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateValue=a.updateValue.bind(a),a.hasWordFormat=!_.isUndefined(a.props.hasWordFormat)&&a.props.hasWordFormat,a}return o(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el);var t=_.isUndefined(this.props.settings[this.props.property])?this.props.defaultValue:this.props.settings[this.props.property],a=this.props.dateFormat?this.props.dateFormat:"d MM yy",r=_.isUndefined(this.props.id)?"forminator-field-"+this.props.property:"forminator-field-"+this.props.id;this.hasWordFormat||this.$el.val(t),this.$el.datepicker({beforeShow:function(t,a){jQuery("#ui-datepicker-div").addClass("sui-calendar"),"forminator-field-date"===e.$el.attr("id")&&("disable"===e.props.state.past_dates?e.$el.datepicker("option","minDate",e.$el.datepicker("getDate")):"enable"===e.props.state.past_dates&&e.$el.datepicker("option","minDate",null))},dateFormat:a,dayNamesMin:forminatorl10n.calendar.day_names_min,monthNames:forminatorl10n.calendar.month_names,onSelect:function(t){e.updateValue(t)}}),this.hasWordFormat&&(this.$el.datepicker("option","altField","#"+r+"-altfield"),this.$el.datepicker("option","altFormat","@"),_.isUndefined(t)||(isNaN(t)&&(t=new Date(t).getTime()),jQuery("#"+r+"-altfield").val(t),this.$el.datepicker("setDate",new Date(parseInt(t))))),this.updateValue=this.updateValue.bind(this)}},{key:"updateValue",value:function(e){this.hasWordFormat&&(e=jQuery(this.$el.datepicker("option","altField")).val()),"function"==typeof this.props.updateProperty?this.props.updateProperty(this.props.property,e):this.props.actions.settingsActions.updateSetting(this.props.property,e)}},{key:"componentWillUnmount",value:function(){this.$el.datepicker("destroy"),this.$el.unbind().removeData()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.props.customClass)?"sui-form-control":this.props.customClass,a=_.isUndefined(this.props.calendarIcon)?"right":this.props.calendarIcon,r="sui-form-field";_.isUndefined(this.props.fieldClass)||(r+=" "+this.props.fieldClass),this.props.mediumSize&&(r+=" sui-input-md");var n=void 0,o=void 0;this.props.label&&(n=u.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,className:"sui-label"},this.props.label,this.props.note&&u.default.createElement("span",{className:"sui-label-note"},this.props.note))),this.props.canTrash&&(o=u.default.createElement("button",{className:"sui-button-icon"},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Remove this date range")))),this.props.canAdd&&(o=u.default.createElement("button",{className:"sui-button-icon"},u.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Add selected date"))));var i=_.isUndefined(this.props.id)?"forminator-field-"+this.props.property:"forminator-field-"+this.props.id,s=u.default.createElement(u.default.Fragment,null,u.default.createElement("input",l({ref:function(t){return e.el=t},id:i,className:t,placeholder:this.props.placeholder,type:"text",autoComplete:"off"},this.props.onlyRead&&{'readonly="readonly"':""})),this.hasWordFormat&&u.default.createElement("input",{id:i+"-altfield",style:{display:"none"}})),p=u.default.createElement("div",{className:r},n,this.props.noCalendar?s:u.default.createElement("div",{className:"sui-date"},"left"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"}),s,"right"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),u.default.createElement("div",{id:i+"-calendar",className:"sui-date-calendar"}),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description));return this.props.multiDate&&(p=u.default.createElement("div",{className:"sui-multi-date"},u.default.createElement("div",{className:r},n,this.props.noCalendar?s:u.default.createElement("div",{className:"sui-date"},s,u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description)),o)),p}}]),t}(s.Component);t.default=p},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.updateSetting=function(e,t){return function(a){window.forminatorChanges.settings=!0,a({type:"UPDATE_SETTING",setting:e,value:t})}},t.updateSettings=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"UPDATE_SETTINGS",settings:e})}},t.resetSettings=function(e){return function(t){window.forminatorChanges.settings=!0,t({type:"RESET_SETTINGS",settings:e})}},t.saveBuilder=function(e,t){return function(a){window.forminatorChanges={fields:[],settings:!1,saved:!0},a({type:"UPDATE_SETTING",setting:e,value:t})}}},function(e,t,a){var r=a(364),n="object"==typeof self&&self&&self.Object===Object&&self,o=r||n||Function("return this")();e.exports=o},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",a=arguments[1],l=a||t+"Subscription",s=function(e){function a(o,l){r(this,a);var i=n(this,e.call(this,o,l));return i[t]=o.store,i}return o(a,e),a.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[l]=null,e},a.prototype.render=function(){return i.Children.only(this.props.children)},a}(i.Component);return s.propTypes={store:c.a.isRequired,children:u.a.element.isRequired},s.childContextTypes=(e={},e[t]=c.a.isRequired,e[l]=c.b,e),s}t.a=l;var i=a(0),s=(a.n(i),a(7)),u=a.n(s),c=a(52);a(36);t.b=l()},function(e,t,a){"use strict";function r(){}var n=a(87);e.exports=function(){function e(e,t,a,r,o,l){if(l!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return a.checkPropTypes=r,a.PropTypes=a,a}},function(e,t,a){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(){var e=[],t=[];return{clear:function(){t=o,e=o},notify:function(){for(var a=e=t,r=0;r<a.length;r++)a[r]()},get:function(){return t},subscribe:function(a){var r=!0;return t===e&&(t=e.slice()),t.push(a),function(){r&&e!==o&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(a),1))}}}}a.d(t,"a",function(){return i});var o=null,l={notify:function(){}},i=function(){function e(t,a,n){r(this,e),this.store=t,this.parentSub=a,this.onStateChange=n,this.unsubscribe=null,this.listeners=l}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=n())},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=l)},e}()},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t,a){for(var r=t.length-1;r>=0;r--){var n=t[r](e);if(n)return n}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+a+" argument when connecting component "+r.wrappedComponentName+".")}}function o(e,t){return e===t}var l=a(53),i=a(90),s=a(91),u=a(104),c=a(105),p=a(106),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,a=void 0===t?l.a:t,d=e.mapStateToPropsFactories,m=void 0===d?u.a:d,h=e.mapDispatchToPropsFactories,b=void 0===h?s.a:h,y=e.mergePropsFactories,v=void 0===y?c.a:y,g=e.selectorFactory,E=void 0===g?p.a:g;return function(e,t,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=s.pure,c=void 0===u||u,p=s.areStatesEqual,d=void 0===p?o:p,h=s.areOwnPropsEqual,y=void 0===h?i.a:h,g=s.areStatePropsEqual,_=void 0===g?i.a:g,w=s.areMergedPropsEqual,O=void 0===w?i.a:w,P=r(s,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),j=n(e,m,"mapStateToProps"),k=n(t,b,"mapDispatchToProps"),x=n(l,v,"mergeProps");return a(E,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:j,initMapDispatchToProps:k,initMergeProps:x,pure:c,areStatesEqual:d,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:O},P))}}()},function(e,t,a){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function n(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(var l=0;l<a.length;l++)if(!o.call(t,a[l])||!r(e[a[l]],t[a[l]]))return!1;return!0}t.a=n;var o=Object.prototype.hasOwnProperty},function(e,t,a){"use strict";function r(e){return"function"==typeof e?Object(i.b)(e,"mapDispatchToProps"):void 0}function n(e){return e?void 0:Object(i.a)(function(e){return{dispatch:e}})}function o(e){return e&&"object"==typeof e?Object(i.a)(function(t){return Object(l.bindActionCreators)(e,t)}):void 0}var l=a(10),i=a(55);t.a=[r,n,o]},function(e,t,a){"use strict";(function(e,r){var n,o=a(94);n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var l=Object(o.a)(n);t.a=l}).call(t,a(37),a(93)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,a){"use strict";function r(e){var t,a=e.Symbol;return"function"==typeof a?a.observable?t=a.observable:(t=a("observable"),a.observable=t):t="@@observable",t}t.a=r},function(e,t,a){"use strict";function r(e){if(!Object(l.a)(e)||Object(n.a)(e)!=i)return!1;var t=Object(o.a)(e);if(null===t)return!0;var a=p.call(t,"constructor")&&t.constructor;return"function"==typeof a&&a instanceof a&&c.call(a)==f}var n=a(96),o=a(101),l=a(103),i="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,p=u.hasOwnProperty,f=c.call(Object);t.a=r},function(e,t,a){"use strict";function r(e){return null==e?void 0===e?s:i:u&&u in Object(e)?Object(o.a)(e):Object(l.a)(e)}var n=a(57),o=a(99),l=a(100),i="[object Null]",s="[object Undefined]",u=n.a?n.a.toStringTag:void 0;t.a=r},function(e,t,a){"use strict";var r=a(98),n="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||n||Function("return this")();t.a=o},function(e,t,a){"use strict";(function(e){var a="object"==typeof e&&e&&e.Object===Object&&e;t.a=a}).call(t,a(37))},function(e,t,a){"use strict";function r(e){var t=l.call(e,s),a=e[s];try{e[s]=void 0;var r=!0}catch(e){}var n=i.call(e);return r&&(t?e[s]=a:delete e[s]),n}var n=a(57),o=Object.prototype,l=o.hasOwnProperty,i=o.toString,s=n.a?n.a.toStringTag:void 0;t.a=r},function(e,t,a){"use strict";function r(e){return o.call(e)}var n=Object.prototype,o=n.toString;t.a=r},function(e,t,a){"use strict";var r=a(102),n=Object(r.a)(Object.getPrototypeOf,Object);t.a=n},function(e,t,a){"use strict";function r(e,t){return function(a){return e(t(a))}}t.a=r},function(e,t,a){"use strict";function r(e){return null!=e&&"object"==typeof e}t.a=r},function(e,t,a){"use strict";function r(e){return"function"==typeof e?Object(o.b)(e,"mapStateToProps"):void 0}function n(e){return e?void 0:Object(o.a)(function(){return{}})}var o=a(55);t.a=[r,n]},function(e,t,a){"use strict";function r(e,t,a){return i({},a,e,t)}function n(e){return function(t,a){var r=(a.displayName,a.pure),n=a.areMergedPropsEqual,o=!1,l=void 0;return function(t,a,i){var s=e(t,a,i);return o?r&&n(s,l)||(l=s):(o=!0,l=s),l}}}function o(e){return"function"==typeof e?n(e):void 0}function l(e){return e?void 0:function(){return r}}var i=(a(56),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e});t.a=[o,l]},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t,a,r){return function(n,o){return a(e(n,o),t(r,o),o)}}function o(e,t,a,r,n){function o(n,o){return m=n,h=o,b=e(m,h),y=t(r,h),v=a(b,y,h),d=!0,v}function l(){return b=e(m,h),t.dependsOnOwnProps&&(y=t(r,h)),v=a(b,y,h)}function i(){return e.dependsOnOwnProps&&(b=e(m,h)),t.dependsOnOwnProps&&(y=t(r,h)),v=a(b,y,h)}function s(){var t=e(m,h),r=!f(t,b);return b=t,r&&(v=a(b,y,h)),v}function u(e,t){var a=!p(t,h),r=!c(e,m);return m=e,h=t,a&&r?l():a?i():r?s():v}var c=n.areStatesEqual,p=n.areOwnPropsEqual,f=n.areStatePropsEqual,d=!1,m=void 0,h=void 0,b=void 0,y=void 0,v=void 0;return function(e,t){return d?u(e,t):o(e,t)}}function l(e,t){var a=t.initMapStateToProps,l=t.initMapDispatchToProps,i=t.initMergeProps,s=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=a(e,s),c=l(e,s),p=i(e,s);return(s.pure?o:n)(u,c,p,e,s)}t.a=l;a(107)},function(e,t,a){"use strict";a(36)},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(19),d=a(39),m=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.history=Object(f.a)(o.props),l=a,n(o,l)}return o(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);m.propTypes={basename:p.a.string,forceRefresh:p.a.bool,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=m},function(e,t,a){"use strict";var r=a(28),n=a.n(r),o=a(14),l=a.n(o),i=a(29),s=a(22),u=a(38),c=a(58),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},d=function(){try{return window.history.state||{}}catch(e){return{}}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(c.b,"Browser history needs a DOM");var t=window.history,a=Object(c.g)(),r=!Object(c.h)(),o=e.forceRefresh,m=void 0!==o&&o,h=e.getUserConfirmation,b=void 0===h?c.c:h,y=e.keyLength,v=void 0===y?6:y,g=e.basename?Object(s.g)(Object(s.a)(e.basename)):"",E=function(e){var t=e||{},a=t.key,r=t.state,o=window.location,l=o.pathname,u=o.search,c=o.hash,p=l+u+c;return n()(!g||Object(s.c)(p,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+p+'" to begin with "'+g+'".'),g&&(p=Object(s.e)(p,g)),Object(i.a)(p,r,a)},_=function(){return Math.random().toString(36).substr(2,v)},w=Object(u.a)(),O=function(e){f(q,e),q.length=t.length,w.notifyListeners(q.location,q.action)},P=function(e){Object(c.d)(e)||x(E(e.state))},j=function(){x(E(d()))},k=!1,x=function(e){if(k)k=!1,O();else{w.confirmTransitionTo(e,"POP",b,function(t){t?O({action:"POP",location:e}):N(e)})}},N=function(e){var t=q.location,a=S.indexOf(t.key);-1===a&&(a=0);var r=S.indexOf(e.key);-1===r&&(r=0);var n=a-r;n&&(k=!0,M(n))},C=E(d()),S=[C.key],T=function(e){return g+Object(s.b)(e)},F=function(e,r){n()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(o,"PUSH",b,function(e){if(e){var r=T(o),l=o.key,i=o.state;if(a)if(t.pushState({key:l,state:i},null,r),m)window.location.href=r;else{var s=S.indexOf(q.location.key),u=S.slice(0,-1===s?0:s+1);u.push(o.key),S=u,O({action:"PUSH",location:o})}else n()(void 0===i,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},D=function(e,r){n()(!("object"===(void 0===e?"undefined":p(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(o,"REPLACE",b,function(e){if(e){var r=T(o),l=o.key,i=o.state;if(a)if(t.replaceState({key:l,state:i},null,r),m)window.location.replace(r);else{var s=S.indexOf(q.location.key);-1!==s&&(S[s]=o.key),O({action:"REPLACE",location:o})}else n()(void 0===i,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},M=function(e){t.go(e)},A=function(){return M(-1)},V=function(){return M(1)},R=0,U=function(e){R+=e,1===R?(Object(c.a)(window,"popstate",P),r&&Object(c.a)(window,"hashchange",j)):0===R&&(Object(c.e)(window,"popstate",P),r&&Object(c.e)(window,"hashchange",j))},I=!1,L=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=w.setPrompt(e);return I||(U(1),I=!0),function(){return I&&(I=!1,U(-1)),t()}},B=function(e){var t=w.appendListener(e);return U(1),function(){U(-1),t()}},q={length:t.length,action:"POP",location:C,createHref:T,push:F,replace:D,go:M,goBack:A,goForward:V,block:L,listen:B};return q};t.a=m},function(e,t,a){"use strict";function r(e){return"/"===e.charAt(0)}function n(e,t){for(var a=t,r=a+1,n=e.length;r<n;a+=1,r+=1)e[a]=e[r];e.pop()}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e&&e.split("/")||[],o=t&&t.split("/")||[],l=e&&r(e),i=t&&r(t),s=l||i;if(e&&r(e)?o=a:a.length&&(o.pop(),o=o.concat(a)),!o.length)return"/";var u=void 0;if(o.length){var c=o[o.length-1];u="."===c||".."===c||""===c}else u=!1;for(var p=0,f=o.length;f>=0;f--){var d=o[f];"."===d?n(o,f):".."===d?(n(o,f),p++):p&&(n(o,f),p--)}if(!s)for(;p--;p)o.unshift("..");!s||""===o[0]||o[0]&&r(o[0])||o.unshift("");var m=o.join("/");return u&&"/"!==m.substr(-1)&&(m+="/"),m}t.a=o},function(e,t,a){"use strict";function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,a){return r(e,t[a])});var a=void 0===e?"undefined":n(e);if(a!==(void 0===t?"undefined":n(t)))return!1;if("object"===a){var o=e.valueOf(),l=t.valueOf();if(o!==e||l!==t)return r(o,l);var i=Object.keys(e),s=Object.keys(t);return i.length===s.length&&i.every(function(a){return r(e[a],t[a])})}return!1}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a=r},function(e,t,a){"use strict";var r=a(28),n=a.n(r),o=a(14),l=a.n(o),i=a(29),s=a(22),u=a(38),c=a(58),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},f={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+Object(s.f)(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:s.f,decodePath:s.a},slash:{encodePath:s.a,decodePath:s.a}},d=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},m=function(e){return window.location.hash=e},h=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(c.b,"Hash history needs a DOM");var t=window.history,a=Object(c.f)(),r=e.getUserConfirmation,o=void 0===r?c.c:r,b=e.hashType,y=void 0===b?"slash":b,v=e.basename?Object(s.g)(Object(s.a)(e.basename)):"",g=f[y],E=g.encodePath,_=g.decodePath,w=function(){var e=_(d());return n()(!v||Object(s.c)(e,v),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+v+'".'),v&&(e=Object(s.e)(e,v)),Object(i.a)(e)},O=Object(u.a)(),P=function(e){p(z,e),z.length=t.length,O.notifyListeners(z.location,z.action)},j=!1,k=null,x=function(){var e=d(),t=E(e);if(e!==t)h(t);else{var a=w(),r=z.location;if(!j&&Object(i.b)(r,a))return;if(k===Object(s.b)(a))return;k=null,N(a)}},N=function(e){if(j)j=!1,P();else{O.confirmTransitionTo(e,"POP",o,function(t){t?P({action:"POP",location:e}):C(e)})}},C=function(e){var t=z.location,a=D.lastIndexOf(Object(s.b)(t));-1===a&&(a=0);var r=D.lastIndexOf(Object(s.b)(e));-1===r&&(r=0);var n=a-r;n&&(j=!0,R(n))},S=d(),T=E(S);S!==T&&h(T);var F=w(),D=[Object(s.b)(F)],M=function(e){return"#"+E(v+Object(s.b)(e))},A=function(e,t){n()(void 0===t,"Hash history cannot push state; it is ignored");var a=Object(i.a)(e,void 0,void 0,z.location);O.confirmTransitionTo(a,"PUSH",o,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);if(d()!==r){k=t,m(r);var o=D.lastIndexOf(Object(s.b)(z.location)),l=D.slice(0,-1===o?0:o+1);l.push(t),D=l,P({action:"PUSH",location:a})}else n()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),P()}})},V=function(e,t){n()(void 0===t,"Hash history cannot replace state; it is ignored");var a=Object(i.a)(e,void 0,void 0,z.location);O.confirmTransitionTo(a,"REPLACE",o,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);d()!==r&&(k=t,h(r));var n=D.indexOf(Object(s.b)(z.location));-1!==n&&(D[n]=t),P({action:"REPLACE",location:a})}})},R=function(e){n()(a,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},U=function(){return R(-1)},I=function(){return R(1)},L=0,B=function(e){L+=e,1===L?Object(c.a)(window,"hashchange",x):0===L&&Object(c.e)(window,"hashchange",x)},q=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=O.setPrompt(e);return q||(B(1),q=!0),function(){return q&&(q=!1,B(-1)),t()}},$=function(e){var t=O.appendListener(e);return B(1),function(){B(-1),t()}},z={length:t.length,action:"POP",location:F,createHref:M,push:A,replace:V,go:R,goBack:U,goForward:I,block:W,listen:$};return z};t.a=b},function(e,t,a){"use strict";var r=a(28),n=a.n(r),o=a(22),l=a(29),i=a(38),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},c=function(e,t,a){return Math.min(Math.max(e,t),a)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,a=e.initialEntries,r=void 0===a?["/"]:a,p=e.initialIndex,f=void 0===p?0:p,d=e.keyLength,m=void 0===d?6:d,h=Object(i.a)(),b=function(e){u(C,e),C.length=C.entries.length,h.notifyListeners(C.location,C.action)},y=function(){return Math.random().toString(36).substr(2,m)},v=c(f,0,r.length-1),g=r.map(function(e){return"string"==typeof e?Object(l.a)(e,void 0,y()):Object(l.a)(e,void 0,e.key||y())}),E=o.b,_=function(e,a){n()(!("object"===(void 0===e?"undefined":s(e))&&void 0!==e.state&&void 0!==a),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(l.a)(e,a,y(),C.location);h.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=C.index,a=t+1,n=C.entries.slice(0);n.length>a?n.splice(a,n.length-a,r):n.push(r),b({action:"PUSH",location:r,index:a,entries:n})}})},w=function(e,a){n()(!("object"===(void 0===e?"undefined":s(e))&&void 0!==e.state&&void 0!==a),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(l.a)(e,a,y(),C.location);h.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(C.entries[C.index]=r,b({action:"REPLACE",location:r}))})},O=function(e){var a=c(C.index+e,0,C.entries.length-1),r=C.entries[a];h.confirmTransitionTo(r,"POP",t,function(e){e?b({action:"POP",location:r,index:a}):b()})},P=function(){return O(-1)},j=function(){return O(1)},k=function(e){var t=C.index+e;return t>=0&&t<C.entries.length},x=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return h.setPrompt(e)},N=function(e){return h.appendListener(e)},C={length:g.length,action:"POP",location:g[v],index:v,entries:g,createHref:E,push:_,replace:w,go:O,goBack:P,goForward:j,canGo:k,block:x,listen:N};return C};t.a=p},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(19),d=a(39),m=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.history=Object(f.b)(o.props),l=a,n(o,l)}return o(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);m.propTypes={basename:p.a.string,getUserConfirmation:p.a.func,hashType:p.a.oneOf(["hashbang","noslash","slash"]),children:p.a.node},t.a=m},function(e,t,a){"use strict";var r=a(116);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(17),i=a.n(l),s=a(0),u=a.n(s),c=a(7),p=a.n(c),f=a(19),d=a(40),m=function(e){function t(){var a,o,l;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=o=n(this,e.call.apply(e,[this].concat(s))),o.history=Object(f.d)(o.props),l=a,n(o,l)}return o(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return u.a.createElement(d.a,{history:this.history,children:this.props.children})},t}(u.a.Component);m.propTypes={initialEntries:p.a.array,initialIndex:p.a.number,getUserConfirmation:p.a.func,keyLength:p.a.number,children:p.a.node},t.a=m},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}var n=a(0),o=a.n(n),l=a(7),i=a.n(l),s=a(60),u=a(59),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(e){var t=e.to,a=e.exact,n=e.strict,l=e.location,i=e.activeClassName,f=e.className,d=e.activeStyle,m=e.style,h=e.isActive,b=e["aria-current"],y=r(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),v="object"===(void 0===t?"undefined":p(t))?t.pathname:t,g=v&&v.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return o.a.createElement(s.a,{path:g,exact:a,strict:n,location:l,children:function(e){var a=e.location,r=e.match,n=!!(h?h(r,a):r);return o.a.createElement(u.a,c({to:t,className:n?[f,i].filter(function(e){return e}).join(" "):f,style:n?c({},m,d):m,"aria-current":n&&b||null},y))}})};f.propTypes={to:u.a.propTypes.to,exact:i.a.bool,strict:i.a.bool,location:i.a.object,activeClassName:i.a.string,className:i.a.string,activeStyle:i.a.object,style:i.a.object,isActive:i.a.func,"aria-current":i.a.oneOf(["page","step","location","date","time","true"])},f.defaultProps={activeClassName:"active","aria-current":"page"},t.a=f},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,a){"use strict";var r=a(120);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(0),i=a.n(l),s=a(7),u=a.n(s),c=a(14),p=a.n(c),f=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return o(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){p()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(i.a.Component);f.propTypes={when:u.a.bool,message:u.a.oneOfType([u.a.func,u.a.string]).isRequired},f.defaultProps={when:!0},f.contextTypes={router:u.a.shape({history:u.a.shape({block:u.a.func.isRequired}).isRequired}).isRequired},t.a=f},function(e,t,a){"use strict";var r=a(122);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(0),i=a.n(l),s=a(7),u=a.n(s),c=a(17),p=a.n(c),f=a(14),d=a.n(f),m=a(19),h=a(63),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},y=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return o(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=Object(m.c)(e.to),a=Object(m.c)(this.props.to);if(Object(m.f)(t,a))return void p()(!1,"You tried to redirect to the same route you're currently on: \""+a.pathname+a.search+'"');this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,a=e.to;return t?"string"==typeof a?Object(h.a)(a,t.params):b({},a,{pathname:Object(h.a)(a.pathname,t.params)}):a},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,a=this.computeTo(this.props);t?e.push(a):e.replace(a)},t.prototype.render=function(){return null},t}(i.a.Component);y.propTypes={computedMatch:u.a.object,push:u.a.bool,from:u.a.string,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired},y.defaultProps={push:!1},y.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired}).isRequired,staticContext:u.a.object}).isRequired},t.a=y},function(e,t,a){"use strict";var r=a(124);t.a=r.a},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=a(17),s=a.n(i),u=a(14),c=a.n(u),p=a(0),f=a.n(p),d=a(7),m=a.n(d),h=a(19),b=a(40),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},v=function(e){return"/"===e.charAt(0)?e:"/"+e},g=function(e,t){return e?y({},t,{pathname:v(e)+t.pathname}):t},E=function(e,t){if(!e)return t;var a=v(e);return 0!==t.pathname.indexOf(a)?t:y({},t,{pathname:t.pathname.substr(a.length)})},_=function(e){return"string"==typeof e?e:Object(h.e)(e)},w=function(e){return function(){c()(!1,"You cannot %s with <StaticRouter>",e)}},O=function(){},P=function(e){function t(){var a,r,l;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=o(this,e.call.apply(e,[this].concat(s))),r.createHref=function(e){return v(r.props.basename+_(e))},r.handlePush=function(e){var t=r.props,a=t.basename,n=t.context;n.action="PUSH",n.location=g(a,Object(h.c)(e)),n.url=_(n.location)},r.handleReplace=function(e){var t=r.props,a=t.basename,n=t.context;n.action="REPLACE",n.location=g(a,Object(h.c)(e)),n.url=_(n.location)},r.handleListen=function(){return O},r.handleBlock=function(){return O},l=a,o(r,l)}return l(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){s()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,a=(e.context,e.location),n=r(e,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:E(t,Object(h.c)(a)),push:this.handlePush,replace:this.handleReplace,go:w("go"),goBack:w("goBack"),goForward:w("goForward"),listen:this.handleListen,block:this.handleBlock};return f.a.createElement(b.a,y({},n,{history:o}))},t}(f.a.Component);P.propTypes={basename:m.a.string,context:m.a.object.isRequired,location:m.a.oneOfType([m.a.string,m.a.object])},P.defaultProps={basename:"",location:"/"},P.childContextTypes={router:m.a.object.isRequired},t.a=P},function(e,t,a){"use strict";var r=a(126);t.a=r.a},function(e,t,a){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=a(0),i=a.n(l),s=a(7),u=a.n(s),c=a(17),p=a.n(c),f=a(14),d=a.n(f),m=a(41),h=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return o(t,e),t.prototype.componentWillMount=function(){d()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){p()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),p()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,a=this.props.location||e.location,r=void 0,n=void 0;return i.a.Children.forEach(t,function(t){if(null==r&&i.a.isValidElement(t)){var o=t.props,l=o.path,s=o.exact,u=o.strict,c=o.sensitive,p=o.from,f=l||p;n=t,r=Object(m.a)(a.pathname,{path:f,exact:s,strict:u,sensitive:c},e.match)}}),r?i.a.cloneElement(n,{location:a,computedMatch:r}):null},t}(i.a.Component);h.contextTypes={router:u.a.shape({route:u.a.object.isRequired}).isRequired},h.propTypes={children:u.a.node,location:u.a.object},t.a=h},function(e,t,a){"use strict";var r=a(63);t.a=r.a},function(e,t,a){"use strict";var r=a(41);t.a=r.a},function(e,t,a){"use strict";var r=a(130);t.a=r.a},function(e,t,a){"use strict";function r(e,t){var a={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r]);return a}var n=a(0),o=a.n(n),l=a(7),i=a.n(l),s=a(54),u=a.n(s),c=a(61),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},f=function(e){var t=function(t){var a=t.wrappedComponentRef,n=r(t,["wrappedComponentRef"]);return o.a.createElement(c.a,{children:function(t){return o.a.createElement(e,p({},n,t,{ref:a}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:i.a.func},u()(t,e)};t.a=f},function(e,t,a){"use strict";function r(e){return function(t){var a=t.dispatch,r=t.getState;return function(t){return function(n){return"function"==typeof n?n(a,r,e):t(n)}}}}Object.defineProperty(t,"__esModule",{value:!0});var n=r();n.withExtraArgument=r,t.default=n},function(e,t,a){function r(){u.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function n(e){return Array.prototype.slice.call(e)}function o(e){var t,a=e[0],o={};for(("string"!=typeof a||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&r("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",n(e),". See https://github.com/pentatonicfunk/i18n-wp-plugin#translate-method"),2===e.length&&"string"==typeof a&&"string"==typeof e[1]&&r("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",n(e)),t=0;t<e.length;t++)"object"==typeof e[t]&&(o=e[t]);if("string"==typeof a?o.original=a:"object"==typeof o.original&&(o.plural=o.original.plural,o.count=o.original.count,o.original=o.original.single),"string"==typeof e[1]&&(o.plural=e[1]),void 0===o.original)throw new Error("Translate called without a `string` value as first argument.");return o}function l(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}function i(e,t){var a,r="gettext";return t.context&&(r="p"+r),"string"==typeof t.original&&"string"==typeof t.plural&&(r="n"+r),a=l(r,t),e[r].apply(e,a)}function s(e,t){var a,r;for(a=v.length-1;a>=0;a--)if(r=v[a](b({},t)),e.state.locale[r.original])return i(e.state.jed,r);return null}function u(){if(!(this instanceof u))return new u;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void 0,locale:void 0,localeSlug:void 0,translations:h({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new d,this.stateObserver.setMaxListeners(0),this.configure()}var c=a(133)("i18n-wp-plugin"),p=a(136),f=a(137),d=a(67).EventEmitter,m=a(140).default,h=a(144),b=a(70),y=a(145),v=[function(e){return e}],g={};u.throwErrors=!1,u.prototype.numberFormat=function(e){var t=arguments[1]||{},a="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",n=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return y(e,a,r,n)},u.prototype.configure=function(e){b(this,e||{}),this.setLocale()},u.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){var t,a,r,n=e[""]["key-hash"],l=function(e,t){const a=!1===t?"":String(t);if(void 0!==g[a+e])return g[a+e];var r=f().update(e).digest("hex");return g[a+e]=t?r.substr(0,t):r},s=function(e){return function(t){return t.context?(t.original=l(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=l(t.original,e),t}};if("sha1"===n.substr(0,4))if(4===n.length)v.push(s(!1));else{var u=n.substr(5).indexOf("-");if(u<0)t=Number(n.substr(5)),v.push(s(t));else for(a=Number(n.substr(5,u)),r=Number(n.substr(6+u)),t=a;t<=r;t++)v.push(s(t))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;b(this.state.locale,e)}else this.state.locale=b({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=new p({locale_data:{messages:this.state.locale}}),this.state.numberFormatSettings.decimal_point=i(this.state.jed,o(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=i(this.state.jed,o(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.getLocale=function(){return this.state.locale},u.prototype.getLocaleSlug=function(){return this.state.localeSlug},u.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.jed.options.locale_data.messages[t]=e[t]);this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.hasTranslation=function(){return!!s(this,o(arguments))},u.prototype.translate=function(){var e,t,a,r,n,l;if(e=o(arguments),l=!e.components){try{n=JSON.stringify(e)}catch(e){l=!1}if(n&&(t=this.state.translations.get(n)))return t}if(t=s(this,e),t||(t=i(this.state.jed,e)),e.args){a=Array.isArray(e.args)?e.args.slice(0):[e.args],a.unshift(t);try{t=p.sprintf.apply(p,a)}catch(e){if(!window||!window.console)return;r=this.throwErrors?"error":"warn","string"!=typeof e?window.console[r](e):window.console[r]("i18n sprintf error:",a)}}return e.components&&(t=m({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach(function(a){t=a(t,e)}),l&&this.state.translations.set(n,t),t},u.prototype.reRenderTranslations=function(){c("Re-rendering all translations due to external request"),this.state.translations.clear(),this.stateObserver.emit("change")},u.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},u.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},e.exports=u},function(e,t,a){(function(r){function n(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){var a=this.useColors;if(e[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+e[0]+(a?"%c ":" ")+"+"+t.humanize(this.diff),a){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))}),e.splice(o,0,r)}}function l(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function s(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=a(134),t.log=l,t.formatArgs=o,t.save=i,t.load=s,t.useColors=n,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(s())}).call(t,a(47))},function(e,t,a){function r(e){var a,r=0;for(a in e)r=(r<<5)-r+e.charCodeAt(a),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function n(e){function a(){if(a.enabled){var e=a,r=+new Date,o=r-(n||r);e.diff=o,e.prev=n,e.curr=r,n=r;for(var l=new Array(arguments.length),i=0;i<l.length;i++)l[i]=arguments[i];l[0]=t.coerce(l[0]),"string"!=typeof l[0]&&l.unshift("%O");var s=0;l[0]=l[0].replace(/%([a-zA-Z%])/g,function(a,r){if("%%"===a)return a;s++;var n=t.formatters[r];if("function"==typeof n){var o=l[s];a=n.call(e,o),l.splice(s,1),s--}return a}),t.formatArgs.call(e,l);(a.log||t.log||console.log.bind(console)).apply(e,l)}}var n;return a.namespace=e,a.enabled=t.enabled(e),a.useColors=t.useColors(),a.color=r(e),a.destroy=o,"function"==typeof t.init&&t.init(a),t.instances.push(a),a}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function l(e){t.save(e),t.names=[],t.skips=[];var a,r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(a=0;a<n;a++)r[a]&&(e=r[a].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(a=0;a<t.instances.length;a++){var o=t.instances[a];o.enabled=t.enabled(o.namespace)}}function i(){t.enable("")}function s(e){if("*"===e[e.length-1])return!0;var a,r;for(a=0,r=t.skips.length;a<r;a++)if(t.skips[a].test(e))return!1;for(a=0,r=t.names.length;a<r;a++)if(t.names[a].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=n.debug=n.default=n,t.coerce=u,t.disable=i,t.enable=l,t.enabled=s,t.humanize=a(135),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){function a(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*c;case"days":case"day":case"d":return a*u;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*i;case"seconds":case"second":case"secs":case"sec":case"s":return a*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function r(e){return e>=u?Math.round(e/u)+"d":e>=s?Math.round(e/s)+"h":e>=i?Math.round(e/i)+"m":e>=l?Math.round(e/l)+"s":e+"ms"}function n(e){return o(e,u,"day")||o(e,s,"hour")||o(e,i,"minute")||o(e,l,"second")||e+" ms"}function o(e,t,a){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+a:Math.ceil(e/t)+" "+a+"s"}var l=1e3,i=60*l,s=60*i,u=24*s,c=365.25*u;e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return a(e);if("number"===o&&!1===isNaN(e))return t.long?n(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,a){/**
2
  * @preserve jed.js v0.5.0beta https://github.com/SlexAxton/Jed
3
  */
4
  !function(a,r){function n(e){return d.PF.compile(e||"nplurals=2; plural=(n != 1);")}function o(e,t){this._key=e,this._i18n=t}var l=Array.prototype,i=Object.prototype,s=l.slice,u=i.hasOwnProperty,c=l.forEach,p={},f={forEach:function(e,t,a){var r,n,o;if(null!==e)if(c&&e.forEach===c)e.forEach(t,a);else if(e.length===+e.length){for(r=0,n=e.length;r<n;r++)if(r in e&&t.call(a,e[r],r,e)===p)return}else for(o in e)if(u.call(e,o)&&t.call(a,e[o],o,e)===p)return},extend:function(e){return this.forEach(s.call(arguments,1),function(t){for(var a in t)e[a]=t[a]}),e}},d=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=f.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};d.context_delimiter=String.fromCharCode(4),f.extend(o.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?d.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),f.extend(d.prototype,{translate:function(e){return new o(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){/**
22
  * @author Feross Aboukhadijeh <https://feross.org>
23
  * @license MIT
24
  */