Forminator Payment, Quiz and Contact Form Plugin - Version 1.14.8

Version Description

  • Improvement: Add a gender neutral option Mx. to the name prefix dropdown
  • Fix: PayPal submission stored but payment is not received
  • Fix: Form cannot be submitted if Signature field set required
  • Fix: Signature field not working with Pagination
  • Fix: Pressing enter on text input field triggers upload button
  • Fix: Upload field with multi upload and pagination adding files multiple times
  • Fix: Today option not working for date field limits
  • Fix: Multi upload files has wrong url from Media Library
  • Fix: Password field included in dropdowns on Email Notification tab
  • Fix: Forminator Settings has console errors of non-unique-ids
  • Fix: Pagination visibility issues when form used in Hustle popup
  • Fix: Allow 0 zero value fields to be displayed in email notifications
  • Fix: Mailchimp integration generates a fatal error when date field is Dropdown or Text input
  • Fix: Forminator Section title doesnt respect the font-size set under Appearance section
  • Fix: Signature field value is not included within email when merge tag used
  • Fix: E-Signature field is not working on Preview
  • Fix: Guernsey (GG) and Jersey (JE) are missing from the Country drop-down
  • Fix: ReCaptcha error message styles are missing
  • Fix: Signature field area cover half of the field
  • Fix: Signature field field value not saved after submission in specific cases
  • Fix: Sharing Quiz results on Facebook
  • Fix: Fatal error on submission when DatePicker type is dropdown/text inputs
  • Fix: Font weight shows Invalid property value in css
  • Fix: Poll results page showing error message box
  • Fix: Mailchimp > Status says not sent but it was actually sent
  • Fix: View Custom Form link showing in Menu navigation on Quiz submission page
  • Fix: Cannot add optional field to HTML field and email notification
  • Fix: Post Data shows only public CPTs
  • Fix: Form not redirecting to a page upon submission when iPhone is used
Download this release

Release Info

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

Code changes from version 1.14.7 to 1.14.8

Files changed (29) hide show
  1. addons/pro/activecampaign/lib/class-forminator-addon-activecampaign-wp-api.php +2 -1
  2. addons/pro/aweber/lib/class-forminator-addon-aweber-wp-api.php +1 -0
  3. addons/pro/campaignmonitor/lib/class-forminator-addon-campaignmonitor-wp-api.php +2 -1
  4. addons/pro/googlesheet/class-forminator-addon-googlesheet-form-hooks.php +0 -1
  5. addons/pro/googlesheet/views/form-settings/setup-sheet.php +1 -1
  6. addons/pro/googlesheet/views/poll-settings/setup-sheet.php +1 -1
  7. addons/pro/googlesheet/views/quiz-settings/setup-sheet.php +1 -1
  8. addons/pro/gutenberg/library/blocks/class-forminator-gfblock-forms.php +0 -4
  9. addons/pro/hubspot/class-forminator-addon-hubspot-form-hooks.php +3 -3
  10. addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php +7 -1
  11. addons/pro/mailchimp/lib/class-forminator-addon-mailchimp-wp-api.php +7 -5
  12. addons/pro/slack/lib/class-forminator-addon-slack-wp-api.php +2 -1
  13. addons/pro/trello/lib/class-forminator-addon-trello-wp-api.php +2 -1
  14. addons/pro/zapier/class-forminator-addon-zapier-quiz-hooks.php +13 -2
  15. addons/pro/zapier/class-forminator-addon-zapier-quiz-settings.php +24 -0
  16. addons/pro/zapier/lib/class-forminator-addon-zapier-wp-api.php +2 -1
  17. admin/classes/class-admin-ajax.php +20 -1
  18. admin/classes/class-admin-l10n.php +6 -6
  19. admin/classes/class-admin.php +66 -0
  20. admin/classes/thirdparty-importers/class-importer-cf7.php +6 -2
  21. admin/locale.php +82 -82
  22. admin/pages/entries-page.php +0 -4
  23. admin/views/custom-form/entries/filter.php +3 -3
  24. admin/views/quiz/entries/filter.php +3 -3
  25. admin/views/settings/content.php +1 -1
  26. admin/views/settings/data/forms-privacy.php +4 -4
  27. admin/views/settings/data/polls-privacy.php +4 -4
  28. admin/views/settings/data/quizzes-privacy.php +2 -2
  29. assets/js/form-scripts.js +1 -2
addons/pro/activecampaign/lib/class-forminator-addon-activecampaign-wp-api.php CHANGED
@@ -112,7 +112,8 @@ class Forminator_Addon_Activecampaign_Wp_Api {
112
  // Adding extra user agent for wp remote request
113
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
114
 
115
- $url = trailingslashit( $this->_endpoint ) . $path;
 
116
 
117
  /**
118
  * Filter activecampaign url to be used on sending api request
112
  // Adding extra user agent for wp remote request
113
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
114
 
115
+ $url = trailingslashit( $this->_endpoint ) . $path;
116
+ $verb = ! empty( $verb ) ? $verb : 'GET';
117
 
118
  /**
119
  * Filter activecampaign url to be used on sending api request
addons/pro/aweber/lib/class-forminator-addon-aweber-wp-api.php CHANGED
@@ -142,6 +142,7 @@ class Forminator_Addon_Aweber_Wp_Api {
142
  private function request( $verb, $url, $args = array(), $headers = array() ) {
143
  // Adding extra user agent for wp remote request
144
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
 
145
 
146
  /**
147
  * Filter aweber url to be used on sending api request
142
  private function request( $verb, $url, $args = array(), $headers = array() ) {
143
  // Adding extra user agent for wp remote request
144
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
145
+ $verb = ! empty( $verb ) ? $verb : 'GET';
146
 
147
  /**
148
  * Filter aweber url to be used on sending api request
addons/pro/campaignmonitor/lib/class-forminator-addon-campaignmonitor-wp-api.php CHANGED
@@ -131,7 +131,8 @@ class Forminator_Addon_Campaignmonitor_Wp_Api {
131
  // Adding extra user agent for wp remote request
132
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
133
 
134
- $url = trailingslashit( $this->_endpoint ) . $path;
 
135
 
136
  /**
137
  * Filter campaignmonitor url to be used on sending api request
131
  // Adding extra user agent for wp remote request
132
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
133
 
134
+ $url = trailingslashit( $this->_endpoint ) . $path;
135
+ $verb = ! empty( $verb ) ? $verb : 'GET';
136
 
137
  /**
138
  * Filter campaignmonitor url to be used on sending api request
addons/pro/googlesheet/class-forminator-addon-googlesheet-form-hooks.php CHANGED
@@ -257,7 +257,6 @@ class Forminator_Addon_Googlesheet_Form_Hooks extends Forminator_Addon_Form_Hook
257
  // fallback to submitted_data
258
  $meta_value = $submitted_data[ $element_id ];
259
  }
260
-
261
  forminator_addon_maybe_log( __METHOD__, $field_type, $meta_value );
262
 
263
  $form_value = Forminator_Form_Entry_Model::meta_value_to_string( $field_type, $meta_value, false );
257
  // fallback to submitted_data
258
  $meta_value = $submitted_data[ $element_id ];
259
  }
 
260
  forminator_addon_maybe_log( __METHOD__, $field_type, $meta_value );
261
 
262
  $form_value = Forminator_Form_Entry_Model::meta_value_to_string( $field_type, $meta_value, false );
addons/pro/googlesheet/views/form-settings/setup-sheet.php CHANGED
@@ -49,7 +49,7 @@ foreach ( $template_vars as $key => $val ) {
49
  '<a href="https://drive.google.com/#my-drive" target="_blank">' . esc_html__( 'Drive account', Forminator::DOMAIN ) . '</a>'
50
  ); //phpcs:ignore Standard.Category.SniffName.ErrorCode
51
  ?>
52
- <?php esc_html_e( 'Navigate to or create a new directory where you want to new spreadsheet created. Make sure you are viewing the destination directory.', Forminator::DOMAIN ); ?>
53
  </li>
54
  <li>
55
  <?php
49
  '<a href="https://drive.google.com/#my-drive" target="_blank">' . esc_html__( 'Drive account', Forminator::DOMAIN ) . '</a>'
50
  ); //phpcs:ignore Standard.Category.SniffName.ErrorCode
51
  ?>
52
+ <?php esc_html_e( 'Navigate to or create a new directory where you want to create a new spreadsheet. Make sure you are viewing the destination directory.', Forminator::DOMAIN ); ?>
53
  </li>
54
  <li>
55
  <?php
addons/pro/googlesheet/views/poll-settings/setup-sheet.php CHANGED
@@ -49,7 +49,7 @@ foreach ( $template_vars as $key => $val ) {
49
  '<a href="https://drive.google.com/#my-drive" target="_blank">' . esc_html__( 'Drive account', Forminator::DOMAIN ) . '</a>'
50
  ); //phpcs:ignore Standard.Category.SniffName.ErrorCode
51
  ?>
52
- <?php esc_html_e( 'Navigate to or create a new directory where you want to new spreadsheet created. Make sure you are viewing the destination directory.', Forminator::DOMAIN ); ?>
53
  </li>
54
  <li>
55
  <?php
49
  '<a href="https://drive.google.com/#my-drive" target="_blank">' . esc_html__( 'Drive account', Forminator::DOMAIN ) . '</a>'
50
  ); //phpcs:ignore Standard.Category.SniffName.ErrorCode
51
  ?>
52
+ <?php esc_html_e( 'Navigate to or create a new directory where you want to create a new spreadsheet. Make sure you are viewing the destination directory.', Forminator::DOMAIN ); ?>
53
  </li>
54
  <li>
55
  <?php
addons/pro/googlesheet/views/quiz-settings/setup-sheet.php CHANGED
@@ -49,7 +49,7 @@ foreach ( $template_vars as $key => $val ) {
49
  '<a href="https://drive.google.com/#my-drive" target="_blank">' . esc_html__( 'Drive account', Forminator::DOMAIN ) . '</a>'
50
  ); //phpcs:ignore Standard.Category.SniffName.ErrorCode
51
  ?>
52
- <?php esc_html_e( 'Navigate to or create a new directory where you want to new spreadsheet created. Make sure you are viewing the destination directory.', Forminator::DOMAIN ); ?>
53
  </li>
54
  <li>
55
  <?php
49
  '<a href="https://drive.google.com/#my-drive" target="_blank">' . esc_html__( 'Drive account', Forminator::DOMAIN ) . '</a>'
50
  ); //phpcs:ignore Standard.Category.SniffName.ErrorCode
51
  ?>
52
+ <?php esc_html_e( 'Navigate to or create a new directory where you want to create a new spreadsheet. Make sure you are viewing the destination directory.', Forminator::DOMAIN ); ?>
53
  </li>
54
  <li>
55
  <?php
addons/pro/gutenberg/library/blocks/class-forminator-gfblock-forms.php CHANGED
@@ -160,10 +160,6 @@ class Forminator_GFBlock_Forms extends Forminator_GFBlock_Abstract {
160
  foreach ( $forms as $form ) {
161
  $form_name = $form->name;
162
 
163
- if ( isset( $form->settings['form-type'] ) && 'leads' === $form->settings['form-type'] ) {
164
- continue;
165
- }
166
-
167
  if ( isset( $form->settings['formName'] ) && ! empty( $form->settings['formName'] ) ) {
168
  $form_name = $form->settings['formName'];
169
  }
160
  foreach ( $forms as $form ) {
161
  $form_name = $form->name;
162
 
 
 
 
 
163
  if ( isset( $form->settings['formName'] ) && ! empty( $form->settings['formName'] ) ) {
164
  $form_name = $form->settings['formName'];
165
  }
addons/pro/hubspot/class-forminator-addon-hubspot-form-hooks.php CHANGED
@@ -142,6 +142,9 @@ class Forminator_Addon_Hubspot_Form_Hooks extends Forminator_Addon_Form_Hooks_Ab
142
  $form_settings_instance = $this->form_settings_instance;
143
  $form_settings = $this->form_settings_instance->get_form_settings();
144
 
 
 
 
145
  //check required fields
146
  try {
147
  $api = $this->addon->get_api();
@@ -240,9 +243,6 @@ class Forminator_Addon_Hubspot_Form_Hooks extends Forminator_Addon_Form_Hooks_Ab
240
  }
241
 
242
  $create_ticket = isset( $connection_settings['create_ticket'] ) ? $connection_settings['create_ticket'] : '';
243
- if( empty( $connection_settings['name'] ) ) {
244
- $connection_settings['name'] = 'HubSpot';
245
- }
246
  $fromObjectId = null;
247
  if ( '1' === $create_ticket ) {
248
  $ticket['pipeline_id'] = $connection_settings['pipeline_id'];
142
  $form_settings_instance = $this->form_settings_instance;
143
  $form_settings = $this->form_settings_instance->get_form_settings();
144
 
145
+ if ( empty( $connection_settings['name'] ) ) {
146
+ $connection_settings['name'] = __( 'HubSpot', Forminator::DOMAIN );
147
+ }
148
  //check required fields
149
  try {
150
  $api = $this->addon->get_api();
243
  }
244
 
245
  $create_ticket = isset( $connection_settings['create_ticket'] ) ? $connection_settings['create_ticket'] : '';
 
 
 
246
  $fromObjectId = null;
247
  if ( '1' === $create_ticket ) {
248
  $ticket['pipeline_id'] = $connection_settings['pipeline_id'];
addons/pro/hubspot/lib/class-forminator-addon-hubspot-wp-api.php CHANGED
@@ -143,7 +143,8 @@ class Forminator_Addon_Hubspot_Wp_Api {
143
  // Adding extra user agent for wp remote request
144
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
145
 
146
- $url = trailingslashit( $this->_endpoint ) . $path;
 
147
 
148
  /**
149
  * Filter hubspot url to be used on sending api request
@@ -240,6 +241,11 @@ class Forminator_Addon_Hubspot_Wp_Api {
240
  // probably silent mode
241
  if ( ! empty( $body ) ) {
242
  $res = json_decode( $body );
 
 
 
 
 
243
  if ( isset( $res->ok ) && false === $res->ok ) {
244
  $msg = '';
245
  if ( isset( $res->error ) ) {
143
  // Adding extra user agent for wp remote request
144
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
145
 
146
+ $url = trailingslashit( $this->_endpoint ) . $path;
147
+ $verb = ! empty( $verb ) ? $verb : 'GET';
148
 
149
  /**
150
  * Filter hubspot url to be used on sending api request
241
  // probably silent mode
242
  if ( ! empty( $body ) ) {
243
  $res = json_decode( $body );
244
+ if ( isset( $res->status ) && 'error' === $res->status ) {
245
+ $message = isset( $res->message ) ? $res->message : __( 'Invalid', Forminator::DOMAIN );
246
+ /* translators: ... */
247
+ throw new Forminator_Addon_Hubspot_Wp_Api_Not_Found_Exception( sprintf( __( 'Failed to processing request : %s', Forminator::DOMAIN ), $message ) );
248
+ }
249
  if ( isset( $res->ok ) && false === $res->ok ) {
250
  $msg = '';
251
  if ( isset( $res->error ) ) {
addons/pro/mailchimp/lib/class-forminator-addon-mailchimp-wp-api.php CHANGED
@@ -142,7 +142,8 @@ class Forminator_Addon_Mailchimp_Wp_Api {
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
 
147
  /**
148
  * Filter mailchimp url to be used on sending api request
@@ -227,11 +228,12 @@ class Forminator_Addon_Mailchimp_Wp_Api {
227
  }
228
 
229
  if ( ! empty( $body ) ) {
230
- $response = json_decode( $body );
 
231
 
232
  // check response status from API
233
- if ( isset( $response->status ) ) {
234
- if ( $response->status >= 400 ) {
235
  forminator_addon_maybe_log( __METHOD__, $response );
236
  $msg = '';
237
  if ( isset( $response->detail ) ) {
@@ -239,7 +241,7 @@ class Forminator_Addon_Mailchimp_Wp_Api {
239
  $msg = $response->detail;
240
  }
241
  $this->_last_data_received = $response;
242
- if ( 404 === $response->status ) {
243
  /* translators: ... */
244
  throw new Forminator_Addon_Mailchimp_Wp_Api_Not_Found_Exception( sprintf( __( 'Failed to processing request : %s', Forminator::DOMAIN ), $msg ) );
245
  }
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
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 ) ) {
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 processing request : %s', Forminator::DOMAIN ), $msg ) );
247
  }
addons/pro/slack/lib/class-forminator-addon-slack-wp-api.php CHANGED
@@ -137,7 +137,8 @@ class Forminator_Addon_Slack_Wp_Api {
137
  // Adding extra user agent for wp remote request
138
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
139
 
140
- $url = trailingslashit( $this->_endpoint ) . $path;
 
141
 
142
  /**
143
  * Filter slack url to be used on sending api request
137
  // Adding extra user agent for wp remote request
138
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
139
 
140
+ $url = trailingslashit( $this->_endpoint ) . $path;
141
+ $verb = ! empty( $verb ) ? $verb : 'GET';
142
 
143
  /**
144
  * Filter slack url to be used on sending api request
addons/pro/trello/lib/class-forminator-addon-trello-wp-api.php CHANGED
@@ -118,7 +118,8 @@ class Forminator_Addon_Trello_Wp_Api {
118
  // Adding extra user agent for wp remote request
119
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
120
 
121
- $url = trailingslashit( $this->_endpoint ) . $path;
 
122
 
123
  /**
124
  * Filter trello url to be used on sending api request
118
  // Adding extra user agent for wp remote request
119
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
120
 
121
+ $url = trailingslashit( $this->_endpoint ) . $path;
122
+ $verb = ! empty( $verb ) ? $verb : 'GET';
123
 
124
  /**
125
  * Filter trello url to be used on sending api request
addons/pro/zapier/class-forminator-addon-zapier-quiz-hooks.php CHANGED
@@ -167,7 +167,7 @@ class Forminator_Addon_Zapier_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_Abs
167
 
168
  $zapier_api = $this->addon->get_api( $endpoint );
169
 
170
- $args = $this->build_post_data( $current_entry_fields );
171
 
172
  /**
173
  * Filter arguments to passed on to Zapier Webhook API
@@ -226,10 +226,11 @@ class Forminator_Addon_Zapier_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_Abs
226
  * @since 1.6.2
227
  *
228
  * @param array $quiz_entry_fields
 
229
  *
230
  * @return array
231
  */
232
- private function build_post_data( $quiz_entry_fields ) {
233
  $sample = array();
234
 
235
  $sample['quiz-name'] = forminator_get_name_from_model( $this->quiz );
@@ -310,6 +311,16 @@ class Forminator_Addon_Zapier_Quiz_Hooks extends Forminator_Addon_Quiz_Hooks_Abs
310
 
311
  $sample['result'] = $result;
312
 
 
 
 
 
 
 
 
 
 
 
313
  // wrap in array as zapier best practices
314
  return array( $sample );
315
  }
167
 
168
  $zapier_api = $this->addon->get_api( $endpoint );
169
 
170
+ $args = $this->build_post_data( $current_entry_fields, $submitted_data );
171
 
172
  /**
173
  * Filter arguments to passed on to Zapier Webhook API
226
  * @since 1.6.2
227
  *
228
  * @param array $quiz_entry_fields
229
+ * @param array $submitted_data
230
  *
231
  * @return array
232
  */
233
+ private function build_post_data( $quiz_entry_fields, $submitted_data ) {
234
  $sample = array();
235
 
236
  $sample['quiz-name'] = forminator_get_name_from_model( $this->quiz );
311
 
312
  $sample['result'] = $result;
313
 
314
+ $quiz_settings = $this->quiz_settings_instance->get_quiz_settings();
315
+ $addons_fields = $this->quiz_settings_instance->get_form_fields();
316
+ $quiz_submitted_data = get_addons_lead_form_entry_data( $quiz_settings, $submitted_data, $addons_fields );
317
+
318
+ if ( ! empty( $quiz_submitted_data ) ) {
319
+ foreach ( $quiz_submitted_data as $s => $quiz_submitted ) {
320
+ $sample[ $s ] = $quiz_submitted;
321
+ }
322
+ }
323
+
324
  // wrap in array as zapier best practices
325
  return array( $sample );
326
  }
addons/pro/zapier/class-forminator-addon-zapier-quiz-settings.php CHANGED
@@ -309,6 +309,30 @@ class Forminator_Addon_Zapier_Quiz_Settings extends Forminator_Addon_Quiz_Settin
309
 
310
  $sample['result'] = $result;
311
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
  // wrap in array as zapier best practices
313
  return array( $sample );
314
  }
309
 
310
  $sample['result'] = $result;
311
 
312
+ $form_fields = isset( $this->form_fields ) ? $this->form_fields : array();
313
+ if ( ! empty( $form_fields ) ) {
314
+ foreach ( $form_fields as $form_field ) {
315
+ $sample[ $form_field['element_id'] ] = $form_field['field_label'];
316
+
317
+ if ( 'upload' === $form_field['type'] ) {
318
+
319
+ $sample_file_path = '/fake/path';
320
+ $upload_dir = wp_get_upload_dir();
321
+ if ( isset( $upload_dir['basedir'] ) ) {
322
+ $sample_file_path = $upload_dir['basedir'];
323
+ }
324
+
325
+ $sample[ $form_field['element_id'] ] = array(
326
+ 'name' => $form_field['field_label'],
327
+ 'type' => 'image/png',
328
+ 'size' => 0,
329
+ 'file_url' => get_home_url(),
330
+ 'file_path' => $sample_file_path,
331
+ );
332
+ }
333
+ }
334
+ }
335
+
336
  // wrap in array as zapier best practices
337
  return array( $sample );
338
  }
addons/pro/zapier/lib/class-forminator-addon-zapier-wp-api.php CHANGED
@@ -126,7 +126,8 @@ class Forminator_Addon_Zapier_Wp_Api {
126
  // Adding extra user agent for wp remote request
127
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
128
 
129
- $url = trailingslashit( $this->_endpoint ) . $path;
 
130
 
131
  /**
132
  * Filter zapier url to be used on sending api request
126
  // Adding extra user agent for wp remote request
127
  add_filter( 'http_headers_useragent', array( $this, 'filter_user_agent' ) );
128
 
129
+ $url = trailingslashit( $this->_endpoint ) . $path;
130
+ $verb = ! empty( $verb ) ? $verb : 'GET';
131
 
132
  /**
133
  * Filter zapier url to be used on sending api request
admin/classes/class-admin-ajax.php CHANGED
@@ -104,6 +104,7 @@ class Forminator_Admin_AJAX {
104
 
105
  add_action( 'wp_ajax_forminator_save_payments_settings_popup', array( $this, 'save_payments' ) );
106
  add_action( 'wp_ajax_forminator_dismiss_notification', array( $this, 'dismiss_notice' ) );
 
107
 
108
  add_action( 'wp_ajax_forminator_later_notification', array( $this, 'later_notice' ) );
109
  }
@@ -2283,7 +2284,7 @@ class Forminator_Admin_AJAX {
2283
  }
2284
 
2285
  /**
2286
- * Dismiss notice
2287
  *
2288
  * @since 1.9
2289
  */
@@ -2303,6 +2304,24 @@ class Forminator_Admin_AJAX {
2303
  wp_send_json_success();
2304
  }
2305
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2306
  /**
2307
  * Dismiss notice
2308
  *
104
 
105
  add_action( 'wp_ajax_forminator_save_payments_settings_popup', array( $this, 'save_payments' ) );
106
  add_action( 'wp_ajax_forminator_dismiss_notification', array( $this, 'dismiss_notice' ) );
107
+ add_action( 'wp_ajax_forminator_dismiss_notice', array( $this, 'dismiss_admin_notice' ) );
108
 
109
  add_action( 'wp_ajax_forminator_later_notification', array( $this, 'later_notice' ) );
110
  }
2284
  }
2285
 
2286
  /**
2287
+ * Dismiss notice. Use dismiss_admin_notice method instead
2288
  *
2289
  * @since 1.9
2290
  */
2304
  wp_send_json_success();
2305
  }
2306
 
2307
+ /**
2308
+ * Dismiss admin notice.
2309
+ */
2310
+ public function dismiss_admin_notice() {
2311
+ forminator_validate_ajax( 'forminator_dismiss_notice' );
2312
+
2313
+ $slug = filter_input( INPUT_POST, 'slug', FILTER_SANITIZE_STRING );
2314
+ $user_id = get_current_user_id();
2315
+ $dismissed = get_user_meta( $user_id, 'frmt_dismissed_messages', true );
2316
+ if ( ! $dismissed || ! is_array( $dismissed ) ) {
2317
+ $dismissed = array();
2318
+ }
2319
+ $dismissed[] = $slug;
2320
+ update_user_meta( $user_id, 'frmt_dismissed_messages', $dismissed );
2321
+
2322
+ wp_send_json_success();
2323
+ }
2324
+
2325
  /**
2326
  * Dismiss notice
2327
  *
admin/classes/class-admin-l10n.php CHANGED
@@ -40,7 +40,7 @@ class Forminator_Admin_L10n {
40
  return array(
41
  "popup" => array(
42
  "form_name_label" => __( "Name your form", Forminator::DOMAIN ),
43
- "form_name_placeholder" => __( "E.g. Contact Form", Forminator::DOMAIN ),
44
  "name" => __( "Name", Forminator::DOMAIN ),
45
  "fields" => __( "Fields", Forminator::DOMAIN ),
46
  "date" => __( "Date", Forminator::DOMAIN ),
@@ -62,7 +62,7 @@ class Forminator_Admin_L10n {
62
  "sunday" => __( "Sunday", Forminator::DOMAIN ),
63
  "day_time" => __( "Time of the day", Forminator::DOMAIN ),
64
  "email_to" => __( "Email export data to", Forminator::DOMAIN ),
65
- "email_placeholder" => __( "E.g. john@doe.com", Forminator::DOMAIN ),
66
  "schedule_help" => __( "Leave blank if you don't want to receive exports via email.", Forminator::DOMAIN ),
67
  "congratulations" => __( "Congratulations!", Forminator::DOMAIN ),
68
  "is_ready" => __( "is ready!", Forminator::DOMAIN ),
@@ -126,9 +126,9 @@ class Forminator_Admin_L10n {
126
  "form_name_validation" => __( 'Form name cannot be empty.', Forminator::DOMAIN ),
127
  "poll_name_validation" => __( 'Poll name cannot be empty.', Forminator::DOMAIN ),
128
  "quiz_name_validation" => __( 'Quiz name cannot be empty.', Forminator::DOMAIN ),
129
- "new_form_placeholder" => __( 'E.g. Blank Form', Forminator::DOMAIN ),
130
- "new_poll_placeholder" => __( 'E.g. Blank Poll', Forminator::DOMAIN ),
131
- "new_quiz_placeholder" => __( 'E.g. My Awesome Quiz', Forminator::DOMAIN ),
132
  "create" => __( 'Create', Forminator::DOMAIN ),
133
  'reset' => __( 'RESET', Forminator::DOMAIN ),
134
  "disconnect" => __( 'Disconnect', Forminator::DOMAIN ),
@@ -267,7 +267,7 @@ class Forminator_Admin_L10n {
267
  "font_background_active" => __( "Font background (active)", Forminator::DOMAIN ),
268
  "font_family" => __( "Font family", Forminator::DOMAIN ),
269
  "font_family_custom" => __( "Custom font family", Forminator::DOMAIN ),
270
- "font_family_placeholder" => __( "E.g. 'Arial', sans-serif", Forminator::DOMAIN ),
271
  "font_family_custom_description" => __( "Here you can type the font family you want to use, as you would in CSS.", Forminator::DOMAIN ),
272
  "icon_size" => __( "Icon size", Forminator::DOMAIN ),
273
  "enable" => __( "Enable", Forminator::DOMAIN ),
40
  return array(
41
  "popup" => array(
42
  "form_name_label" => __( "Name your form", Forminator::DOMAIN ),
43
+ "form_name_placeholder" => __( "E.g., Contact Form", Forminator::DOMAIN ),
44
  "name" => __( "Name", Forminator::DOMAIN ),
45
  "fields" => __( "Fields", Forminator::DOMAIN ),
46
  "date" => __( "Date", Forminator::DOMAIN ),
62
  "sunday" => __( "Sunday", Forminator::DOMAIN ),
63
  "day_time" => __( "Time of the day", Forminator::DOMAIN ),
64
  "email_to" => __( "Email export data to", Forminator::DOMAIN ),
65
+ "email_placeholder" => __( "E.g., john@doe.com", Forminator::DOMAIN ),
66
  "schedule_help" => __( "Leave blank if you don't want to receive exports via email.", Forminator::DOMAIN ),
67
  "congratulations" => __( "Congratulations!", Forminator::DOMAIN ),
68
  "is_ready" => __( "is ready!", Forminator::DOMAIN ),
126
  "form_name_validation" => __( 'Form name cannot be empty.', Forminator::DOMAIN ),
127
  "poll_name_validation" => __( 'Poll name cannot be empty.', Forminator::DOMAIN ),
128
  "quiz_name_validation" => __( 'Quiz name cannot be empty.', Forminator::DOMAIN ),
129
+ "new_form_placeholder" => __( 'E.g., Blank Form', Forminator::DOMAIN ),
130
+ "new_poll_placeholder" => __( 'E.g., Blank Poll', Forminator::DOMAIN ),
131
+ "new_quiz_placeholder" => __( 'E.g., My Awesome Quiz', Forminator::DOMAIN ),
132
  "create" => __( 'Create', Forminator::DOMAIN ),
133
  'reset' => __( 'RESET', Forminator::DOMAIN ),
134
  "disconnect" => __( 'Disconnect', Forminator::DOMAIN ),
267
  "font_background_active" => __( "Font background (active)", Forminator::DOMAIN ),
268
  "font_family" => __( "Font family", Forminator::DOMAIN ),
269
  "font_family_custom" => __( "Custom font family", Forminator::DOMAIN ),
270
+ "font_family_placeholder" => __( "E.g., 'Arial', sans-serif", Forminator::DOMAIN ),
271
  "font_family_custom_description" => __( "Here you can type the font family you want to use, as you would in CSS.", Forminator::DOMAIN ),
272
  "icon_size" => __( "Icon size", Forminator::DOMAIN ),
273
  "enable" => __( "Enable", Forminator::DOMAIN ),
admin/classes/class-admin.php CHANGED
@@ -25,6 +25,7 @@ class Forminator_Admin {
25
  add_action( 'admin_menu', array( $this, 'add_dashboard_page' ) );
26
  add_action( 'admin_notices', array( $this, 'show_stripe_updated_notice' ) );
27
  add_action( 'admin_notices', array( $this, 'show_rating_notice' ) );
 
28
  add_action( 'admin_notices', array( $this, 'show_cf7_importer_notice' ) );
29
 
30
  // Add plugin action links
@@ -231,6 +232,71 @@ class Forminator_Admin {
231
  }
232
 
233
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
  /**
235
  * Show CF7 importer notice
236
  *
25
  add_action( 'admin_menu', array( $this, 'add_dashboard_page' ) );
26
  add_action( 'admin_notices', array( $this, 'show_stripe_updated_notice' ) );
27
  add_action( 'admin_notices', array( $this, 'show_rating_notice' ) );
28
+ add_action( 'admin_notices', array( $this, 'show_pro_available_notice' ) );
29
  add_action( 'admin_notices', array( $this, 'show_cf7_importer_notice' ) );
30
 
31
  // Add plugin action links
232
  }
233
 
234
 
235
+ /**
236
+ * Displays an admin notice when the user is an active member and doesn't have Forminator Pro installed
237
+ * Shown in forminator pages. Per user notification.
238
+ */
239
+ public function show_pro_available_notice() {
240
+ $page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_STRING );
241
+ if ( 'forminator' !== substr( $page, 0, 10 ) || FORMINATOR_PRO ) {
242
+ return;
243
+ }
244
+
245
+ // The notice was already dismissed.
246
+ if ( self::was_notification_dismissed( 'forminator_pro_is_available' ) ) {
247
+ return;
248
+ }
249
+
250
+ // Show the notice only to users who can do something about this and who are members.
251
+ if ( ! self::user_can_update_plugins() || ! in_array( forminator_membership_status(), array( 'full', 'upgrade' ), true ) ) {
252
+ return;
253
+ }
254
+
255
+ $url = add_query_arg(
256
+ array( 'page' => 'wpmudev-plugins' ),
257
+ network_admin_url( 'admin.php' )
258
+ ) . '#pid=2097296';
259
+ $link = '<a type="button" href="' . esc_url( $url ) . '" target="_self" class="button button-primary">' . esc_html__( 'Upgrade' ) . '</a>';
260
+
261
+ $username = forminator_get_current_username();
262
+ $name = ! empty( $username ) ? $username : __( 'Hey', Forminator::DOMAIN );
263
+
264
+ $message = '<p>';
265
+ /* translators: user's name */
266
+ $message .= sprintf( esc_html__( '%s, it appears you have an active WPMU DEV membership but haven\'t upgraded Forminator to the pro version. You won\'t lose any settings upgrading, go for it!', Forminator::DOMAIN ), $name );
267
+ $message .= '</p>';
268
+ $message .= '<p>' . $link . '</p>';
269
+
270
+ echo '<div class="forminator-grouped-notice notice notice-info is-dismissible"'
271
+ . ' data-notice-slug="forminator_pro_is_available"'
272
+ . ' data-nonce="' . esc_attr( wp_create_nonce( 'forminator_dismiss_notice' ) ) . '">';
273
+ echo $message;
274
+ echo '</div>';
275
+ }
276
+
277
+ /**
278
+ * Check if the given notification was dismissed.
279
+ *
280
+ * @param string $notification_name Notification slug.
281
+ * @return bool
282
+ */
283
+ public static function was_notification_dismissed( $notification_name ) {
284
+ $dismissed = get_user_meta( get_current_user_id(), 'frmt_dismissed_messages', true );
285
+
286
+ return ( is_array( $dismissed ) && in_array( $notification_name, $dismissed, true ) );
287
+ }
288
+
289
+ /**
290
+ * Check if the current user is able to update plugins
291
+ *
292
+ * @return bool
293
+ */
294
+ public static function user_can_update_plugins() {
295
+ $cap = is_multisite() ? 'manage_network_plugins' : 'update_plugins';
296
+
297
+ return current_user_can( $cap );
298
+ }
299
+
300
  /**
301
  * Show CF7 importer notice
302
  *
admin/classes/thirdparty-importers/class-importer-cf7.php CHANGED
@@ -153,7 +153,8 @@ class Forminator_Admin_Import_CF7 extends Forminator_Import_Mediator {
153
  }
154
 
155
  if ( ! empty( $field->labels ) && ( 'select' === $type || 'radio' === $type || 'checkbox' === $type ) ) {
156
- $checked = array();
 
157
 
158
  if ( isset( $field['options'] ) ) {
159
  $has_blank = preg_grep( "/^include_blank/", $field['options'] );
@@ -168,6 +169,9 @@ class Forminator_Admin_Import_CF7 extends Forminator_Import_Mediator {
168
  }
169
  }
170
  }
 
 
 
171
  if ( ! empty( $has_blank ) ) {
172
  $blank_options[] = array(
173
  'label' => '---',
@@ -179,7 +183,7 @@ class Forminator_Admin_Import_CF7 extends Forminator_Import_Mediator {
179
  foreach ( $field->labels as $key => $label ) {
180
  $options[] = array(
181
  'label' => esc_html( $label ),
182
- 'value' => esc_html( $field->values[ $key ] ),
183
  'limit' => '',
184
  'default' => in_array( $key + 1, $checked )
185
  );
153
  }
154
 
155
  if ( ! empty( $field->labels ) && ( 'select' === $type || 'radio' === $type || 'checkbox' === $type ) ) {
156
+ $checked = array();
157
+ $after_pipes = array();
158
 
159
  if ( isset( $field['options'] ) ) {
160
  $has_blank = preg_grep( "/^include_blank/", $field['options'] );
169
  }
170
  }
171
  }
172
+ if ( $field->pipes instanceof WPCF7_Pipes ) {
173
+ $after_pipes = $field->pipes->collect_afters();
174
+ }
175
  if ( ! empty( $has_blank ) ) {
176
  $blank_options[] = array(
177
  'label' => '---',
183
  foreach ( $field->labels as $key => $label ) {
184
  $options[] = array(
185
  'label' => esc_html( $label ),
186
+ 'value' => isset( $after_pipes[ $key ] ) ? esc_html( $after_pipes[ $key ] ) : esc_html( $field->values[ $key ] ),
187
  'limit' => '',
188
  'default' => in_array( $key + 1, $checked )
189
  );
admin/locale.php CHANGED
@@ -77,7 +77,7 @@ $forminator_admin_locale = array(
77
  "File size color" => array( null, __("File size color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-file-multiple.js:67
78
  "Loading icon color" => array( null, __("Loading icon color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-file-multiple.js:74
79
  "Error" => array( null, __("Error", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-file-multiple.js:83
80
- "Filse size icon color" => array( null, __("Filse size icon color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-file-multiple.js:114
81
  "Cloud icon color" => array( null, __("Cloud icon color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-panel-multiple.js:48
82
  "Message text color" => array( null, __("Message text color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-panel-multiple.js:56
83
  "Message link color" => array( null, __("Message link color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-panel-multiple.js:63
@@ -216,7 +216,7 @@ $forminator_admin_locale = array(
216
  "Inline Message" => array( null, __("Inline Message", "forminator" ), ), // src/form/components/behaviour/submission.js:75
217
  "Display a success message after form submitted." => array( null, __("Display a success message after form submitted.", "forminator" ), ), // src/form/components/behaviour/submission.js:82
218
  "Auto-close success message after" => array( null, __("Auto-close success message after", "forminator" ), ), // src/form/components/behaviour/submission.js:143
219
- "E.g. 5" => array( null, __("E.g. 5", "forminator" ), ), // src/form/components/behaviour/submission.js:150
220
  "seconds." => array( null, __("seconds.", "forminator" ), ), // src/form/components/behaviour/submission.js:159
221
  "Redirect user to a URL" => array( null, __("Redirect user to a URL", "forminator" ), ), // src/form/components/behaviour/submission.js:169
222
  "https://www.mywebsite.com" => array( null, __("https://www.mywebsite.com", "forminator" ), ), // src/form/components/behaviour/submission.js:175
@@ -240,7 +240,7 @@ $forminator_admin_locale = array(
240
  "Enable inline validation (as user types)" => array( null, __("Enable inline validation (as user types)", "forminator" ), ), // src/form/components/behaviour/submission.js:327
241
  "Choose whether you want to show a loader on your form until it is submitted. We highly recommend using this on long forms or forms with payment field since they may take a few seconds to submit." => array( null, __("Choose whether you want to show a loader on your form until it is submitted. We highly recommend using this on long forms or forms with payment field since they may take a few seconds to submit.", "forminator" ), ), // src/form/components/behaviour/submission.js:337
242
  "Show Loader" => array( null, __("Show Loader", "forminator" ), ), // src/form/components/behaviour/submission.js:347
243
- "E.g. Submitting..." => array( null, __("E.g. Submitting...", "forminator" ), ), // src/form/components/behaviour/submission.js:352
244
  "Choose the text to show on the right of loading icon" => array( null, __("Choose the text to show on the right of loading icon", "forminator" ), ), // src/form/components/behaviour/submission.js:355
245
  "null" => array( null, __("null", "forminator" ), ), // src/form/components/builder/field.js:638
246
  "more condition(s)" => array( null, __("more condition(s)", "forminator" ), ), // src/form/components/builder/field.js:685
@@ -273,20 +273,20 @@ $forminator_admin_locale = array(
273
  "Description (optional)" => array( null, __("Description (optional)", "forminator" ), ), // src/form/components/fields/address.js:122
274
  "Enter description" => array( null, __("Enter description", "forminator" ), ), // src/form/components/fields/address.js:123
275
  "At least one field must be enabled" => array( null, __("At least one field must be enabled", "forminator" ), ), // src/form/components/fields/address.js:235
276
- "Field Type" => array( null, __("Field Type", "forminator" ), ), // src/form/components/fields/calculation.js:78
277
- "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." => array( null, __("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.", "forminator" ), ), // src/form/components/fields/calculation.js:86
278
- "Read-only" => array( null, __("Read-only", "forminator" ), ), // src/form/components/fields/calculation.js:97
279
- "Hidden" => array( null, __("Hidden", "forminator" ), ), // src/form/components/fields/calculation.js:107
280
- "Formatting" => array( null, __("Formatting", "forminator" ), ), // src/form/components/fields/calculation.js:117
281
- "Choose how do you want to format the value of this field." => array( null, __("Choose how do you want to format the value of this field.", "forminator" ), ), // src/form/components/fields/calculation.js:125
282
- "E.g. $" => array( null, __("E.g. $", "forminator" ), ), // src/form/components/fields/calculation.js:138
283
- "Prefix" => array( null, __("Prefix", "forminator" ), ), // src/form/components/fields/calculation.js:140
284
- "E.g. Kg" => array( null, __("E.g. Kg", "forminator" ), ), // src/form/components/fields/calculation.js:150
285
- "Suffix" => array( null, __("Suffix", "forminator" ), ), // src/form/components/fields/calculation.js:152
286
- "Decimal Places" => array( null, __("Decimal Places", "forminator" ), ), // src/form/components/fields/calculation.js:329
287
- "Choose the decimal places to round off the calculated result." => array( null, __("Choose the decimal places to round off the calculated result.", "forminator" ), ), // src/form/components/fields/calculation.js:337
288
- "decimals" => array( null, __("decimals", "forminator" ), ), // src/form/components/fields/calculation.js:362
289
- "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." => array( null, __("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.", "forminator" ), ), // src/form/components/fields/calculation.js:381
290
  "reCAPTCHA type" => array( null, __("reCAPTCHA type", "forminator" ), ), // src/form/components/fields/captcha.js:35
291
  "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." => array( null, __("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.", "forminator" ), ), // src/form/components/fields/captcha.js:38
292
  "V2 Checkbox" => array( null, __("V2 Checkbox", "forminator" ), ), // src/form/components/fields/captcha.js:61
@@ -328,9 +328,9 @@ $forminator_admin_locale = array(
328
  "Max" => array( null, __("Max", "forminator" ), ), // src/form/components/fields/currency.js:204
329
  "Error Messages" => array( null, __("Error Messages", "forminator" ), ), // src/form/components/fields/currency.js:216
330
  "When number is smaller than the min limit" => array( null, __("When number is smaller than the min limit", "forminator" ), ), // src/form/components/fields/currency.js:231
331
- "E.g. Please enter a number greater than 0." => array( null, __("E.g. Please enter a number greater than 0.", "forminator" ), ), // src/form/components/fields/currency.js:233
332
  "When number is greater than the max limit" => array( null, __("When number is greater than the max limit", "forminator" ), ), // src/form/components/fields/currency.js:239
333
- "E.g. Please enter a number lower than 1000." => array( null, __("E.g. Please enter a number lower than 1000.", "forminator" ), ), // src/form/components/fields/currency.js:241
334
  "Note: The query parameter's value passed in URL should match with the selected date format." => array( null, __("Note: The query parameter's value passed in URL should match with the selected date format.", "forminator" ), ), // src/form/components/fields/date.js:29
335
  "Type" => array( null, __("Type", "forminator" ), ), // src/form/components/fields/date.js:42
336
  "Date Format" => array( null, __("Date Format", "forminator" ), ), // src/form/components/fields/date.js:76
@@ -362,7 +362,7 @@ $forminator_admin_locale = array(
362
  "Custom Value" => array( null, __("Custom Value", "forminator" ), ), // src/form/components/fields/hidden.js:53
363
  "Enter custom value" => array( null, __("Enter custom value", "forminator" ), ), // src/form/components/fields/hidden.js:54
364
  "Query parameter" => array( null, __("Query parameter", "forminator" ), ), // src/form/components/fields/hidden.js:66
365
- "E.g. query_parameter_key" => array( null, __("E.g. query_parameter_key", "forminator" ), ), // src/form/components/fields/hidden.js:67
366
  "Layout" => array( null, __("Layout", "forminator" ), ), // src/form/components/fields/multivalue.js:61
367
  "By default, we stack the options vertically. However, you can change the options layout below." => array( null, __("By default, we stack the options vertically. However, you can change the options layout below.", "forminator" ), ), // src/form/components/fields/multivalue.js:68
368
  "Vertical" => array( null, __("Vertical", "forminator" ), ), // src/form/components/fields/multivalue.js:81
@@ -410,7 +410,7 @@ $forminator_admin_locale = array(
410
  "Payment amount" => array( null, __("Payment amount", "forminator" ), ), // src/form/components/fields/paypal.js:126
411
  "Fixed" => array( null, __("Fixed", "forminator" ), ), // src/form/components/fields/paypal.js:133
412
  "Fixed amount" => array( null, __("Fixed amount", "forminator" ), ), // src/form/components/fields/paypal.js:139
413
- "E.g. 20.00" => array( null, __("E.g. 20.00", "forminator" ), ), // src/form/components/fields/paypal.js:154
414
  "Variable" => array( null, __("Variable", "forminator" ), ), // src/form/components/fields/paypal.js:170
415
  "Variable amount" => array( null, __("Variable amount", "forminator" ), ), // src/form/components/fields/paypal.js:180
416
  "Select field" => array( null, __("Select field", "forminator" ), ), // src/form/components/fields/paypal.js:191
@@ -423,7 +423,7 @@ $forminator_admin_locale = array(
423
  "White" => array( null, __("White", "forminator" ), ), // src/form/components/fields/paypal.js:254
424
  "Black" => array( null, __("Black", "forminator" ), ), // src/form/components/fields/paypal.js:255
425
  "Width" => array( null, __("Width", "forminator" ), ), // src/form/components/fields/paypal.js:260
426
- "E.g. 250" => array( null, __("E.g. 250", "forminator" ), ), // src/form/components/fields/paypal.js:277
427
  "px" => array( null, __("px", "forminator" ), ), // src/form/components/fields/paypal.js:283
428
  "Choose the width of PayPal Smart Buttons. It can be anywhere between 150px to 750px. Leave this empty if you want the buttons to take the full width of the form up to the 750px limit." => array( null, __("Choose the width of PayPal Smart Buttons. It can be anywhere between 150px to 750px. Leave this empty if you want the buttons to take the full width of the form up to the 750px limit.", "forminator" ), ), // src/form/components/fields/paypal.js:286
429
  "Height" => array( null, __("Height", "forminator" ), ), // src/form/components/fields/paypal.js:298
@@ -528,13 +528,13 @@ $forminator_admin_locale = array(
528
  "Payment Receipt" => array( null, __("Payment Receipt", "forminator" ), ), // src/form/components/fields/stripe.js:447
529
  "Choose whether you want Stripe to email a receipt to your customers on successful payment. Note that Stripe sends the email receipt only for live payments. {{link}}Customize email template{{/link}}." => array( null, __("Choose whether you want Stripe to email a receipt to your customers on successful payment. Note that Stripe sends the email receipt only for live payments. {{link}}Customize email template{{/link}}.", "forminator" ), ), // src/form/components/fields/stripe.js:455
530
  "Email address" => array( null, __("Email address", "forminator" ), ), // src/form/components/fields/stripe.js:484
531
- "E.g. john@doe.com" => array( null, __("E.g. john@doe.com", "forminator" ), ), // src/form/components/fields/stripe.js:486
532
  "Select an email field" => array( null, __("Select an email field", "forminator" ), ), // src/form/components/fields/stripe.js:488
533
  "Payment Details (optional)" => array( null, __("Payment Details (optional)", "forminator" ), ), // src/form/components/fields/stripe.js:513
534
- "You can add a statement decipher and a description to help you and your customers recognizing the transactions made on this form." => array( null, __("You can add a statement decipher and a description to help you and your customers recognizing the transactions made on this form.", "forminator" ), ), // src/form/components/fields/stripe.js:521
535
  "Statement decipher" => array( null, __("Statement decipher", "forminator" ), ), // src/form/components/fields/stripe.js:531
536
- "E.g. Company Name" => array( null, __("E.g. Company Name", "forminator" ), ), // src/form/components/fields/stripe.js:534
537
- "this is the business name your customers will see on their card statement." => array( null, __("this is the business name your customers will see on their card statement.", "forminator" ), ), // src/form/components/fields/stripe.js:537
538
  "Up to 22 characters only" => array( null, __("Up to 22 characters only", "forminator" ), ), // src/form/components/fields/stripe.js:542
539
  "Enter your payment description here" => array( null, __("Enter your payment description here", "forminator" ), ), // src/form/components/fields/stripe.js:550
540
  "This appears on your Stripe account and on the payment receipt sent to your customers." => array( null, __("This appears on your Stripe account and on the payment receipt sent to your customers.", "forminator" ), ), // src/form/components/fields/stripe.js:553
@@ -563,7 +563,7 @@ $forminator_admin_locale = array(
563
  "Max characters" => array( null, __("Max characters", "forminator" ), ), // src/form/components/fields/text.js:81
564
  "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." => array( null, __("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.", "forminator" ), ), // src/form/components/fields/text.js:82
565
  "Character limit" => array( null, __("Character limit", "forminator" ), ), // src/form/components/fields/text.js:90
566
- "E.g. 100" => array( null, __("E.g. 100", "forminator" ), ), // src/form/components/fields/text.js:97
567
  "Words" => array( null, __("Words", "forminator" ), ), // src/form/components/fields/text.js:108
568
  "You can add new line" => array( null, __("You can add new line", "forminator" ), ), // src/form/components/fields/textarea.js:52
569
  "Rich-Text editor" => array( null, __("Rich-Text editor", "forminator" ), ), // src/form/components/fields/textarea.js:89
@@ -681,8 +681,8 @@ $forminator_admin_locale = array(
681
  "Advanced" => array( null, __("Advanced", "forminator" ), ), // src/form/components/modals/notification.js:310
682
  "Conditions" => array( null, __("Conditions", "forminator" ), ), // src/form/components/modals/notification.js:319
683
  "The label is to help you identify this email and won't appear anywhere in the email." => array( null, __("The label is to help you identify this email and won't appear anywhere in the email.", "forminator" ), ), // src/form/components/modals/notification.js:346
684
- "E.g. Sales Team Notification" => array( null, __("E.g. Sales Team Notification", "forminator" ), ), // src/form/components/modals/notification.js:351
685
- "E.g. New Form Submission" => array( null, __("E.g. New Form Submission", "forminator" ), ), // src/form/components/modals/notification.js:365
686
  "Subject" => array( null, __("Subject", "forminator" ), ), // src/form/components/modals/notification.js:368
687
  "Email subject can't be empty" => array( null, __("Email subject can't be empty", "forminator" ), ), // src/form/components/modals/notification.js:371
688
  "Body" => array( null, __("Body", "forminator" ), ), // src/form/components/modals/notification.js:402
@@ -691,7 +691,7 @@ $forminator_admin_locale = array(
691
  "Choose whether you want to attach the files uploaded via the File Upload fields to this email." => array( null, __("Choose whether you want to attach the files uploaded via the File Upload fields to this email.", "forminator" ), ), // src/form/components/modals/notification.js:417
692
  "Uploaded files" => array( null, __("Uploaded files", "forminator" ), ), // src/form/components/modals/notification.js:424
693
  "The default behavior is to send the email to the same recipients. If you want to send this email to different recipients conditionally, you can enable the email routing and change the recipients of this email based on the user input." => array( null, __("The default behavior is to send the email to the same recipients. If you want to send this email to different recipients conditionally, you can enable the email routing and change the recipients of this email based on the user input.", "forminator" ), ), // src/form/components/modals/notification.js:442
694
- "E.g. sales@website.com" => array( null, __("E.g. sales@website.com", "forminator" ), ), // src/form/components/modals/notification.js:476
695
  "Separate multiple emails with a comma" => array( null, __("Separate multiple emails with a comma", "forminator" ), ), // src/form/components/modals/notification.js:482
696
  "Email Routing" => array( null, __("Email Routing", "forminator" ), ), // src/form/components/modals/notification.js:502
697
  "Enter from name here" => array( null, __("Enter from name here", "forminator" ), ), // src/form/components/modals/notification.js:529
@@ -704,7 +704,6 @@ $forminator_admin_locale = array(
704
  "CC Emails" => array( null, __("CC Emails", "forminator" ), ), // src/form/components/modals/notification.js:596
705
  "Enter BCC email here" => array( null, __("Enter BCC email here", "forminator" ), ), // src/form/components/modals/notification.js:617
706
  "BCC Emails" => array( null, __("BCC Emails", "forminator" ), ), // src/form/components/modals/notification.js:618
707
- "Discard Changes" => array( null, __("Discard Changes", "forminator" ), ), // src/form/components/modals/notification.js:663
708
  "Add" => array( null, __("Add", "forminator" ), ), // src/form/components/modals/notification.js:675
709
  "Labels" => array( null, __("Labels", "forminator" ), ), // src/form/components/modals/pagination.js:79
710
  "Your form is divided into multiple pages by Page Break field(s), and you can customize the label of each page here. Page names appear on your form header along with the progress indicator." => array( null, __("Your form is divided into multiple pages by Page Break field(s), and you can customize the label of each page here. Page names appear on your form header along with the progress indicator.", "forminator" ), ), // src/form/components/modals/pagination.js:107
@@ -882,15 +881,15 @@ $forminator_admin_locale = array(
882
  "Spreadsheet" => array( null, __("Spreadsheet", "forminator" ), ), // src/form/components/settings/filetypes.js:219
883
  "Interactive" => array( null, __("Interactive", "forminator" ), ), // src/form/components/settings/filetypes.js:229
884
  "Additional filetypes" => array( null, __("Additional filetypes", "forminator" ), ), // src/form/components/settings/filetypes.js:242
885
- "E.g. .ai, .sketch, .studio" => array( null, __("E.g. .ai, .sketch, .studio", "forminator" ), ), // src/form/components/settings/filetypes.js:243
886
  "Add a comma-separated list of filetypes you want to allow in addition to the ones enabled above." => array( null, __("Add a comma-separated list of filetypes you want to allow in addition to the ones enabled above.", "forminator" ), ), // src/form/components/settings/filetypes.js:245
887
  "Note that if you're having trouble uploading one of the enabled filetypes, that filetype may be restricted by your hosting provider." => array( null, __("Note that if you're having trouble uploading one of the enabled filetypes, that filetype may be restricted by your hosting provider.", "forminator" ), ), // src/form/components/settings/filetypes.js:251
888
  "Roboto" => array( null, __("Roboto", "forminator" ), ), // src/form/components/settings/fonts.js:55
889
  "Font Family" => array( null, __("Font Family", "forminator" ), ), // src/form/components/settings/fonts.js:56
890
  "Custom user font" => array( null, __("Custom user font", "forminator" ), ), // src/form/components/settings/fonts.js:70
891
- "E.g. Arial, sans-serif" => array( null, __("E.g. Arial, sans-serif", "forminator" ), ), // src/form/components/settings/fonts.js:80
892
  "Custom font family" => array( null, __("Custom font family", "forminator" ), ), // src/form/components/settings/fonts.js:81
893
- "E.g. 16" => array( null, __("E.g. 16", "forminator" ), ), // src/form/components/settings/fonts.js:134
894
  "Font Size" => array( null, __("Font Size", "forminator" ), ), // src/form/components/settings/fonts.js:135
895
  "Font Weight" => array( null, __("Font Weight", "forminator" ), ), // src/form/components/settings/fonts.js:142
896
  "Select font weight" => array( null, __("Select font weight", "forminator" ), ), // src/form/components/settings/fonts.js:143
@@ -929,12 +928,13 @@ $forminator_admin_locale = array(
929
  "No custom meta data created yet. Click on \"+ Add Custom to create custom meta and map form fields to it." => array( null, __("No custom meta data created yet. Click on \"+ Add Custom to create custom meta and map form fields to it.", "forminator" ), ), // src/form/components/settings/metadata-value.js:140
930
  "Delete meta" => array( null, __("Delete meta", "forminator" ), ), // src/form/components/settings/multi-custom-field-option.js:110
931
  "Default value" => array( null, __("Default value", "forminator" ), ), // src/form/components/settings/multi-name.js:54
932
- "Mr" => array( null, __("Mr", "forminator" ), ), // src/form/components/settings/multi-name.js:58
933
- "Mrs" => array( null, __("Mrs", "forminator" ), ), // src/form/components/settings/multi-name.js:59
934
- "Ms" => array( null, __("Ms", "forminator" ), ), // src/form/components/settings/multi-name.js:60
935
- "Miss" => array( null, __("Miss", "forminator" ), ), // src/form/components/settings/multi-name.js:61
936
- "Dr." => array( null, __("Dr.", "forminator" ), ), // src/form/components/settings/multi-name.js:62
937
- "Prof." => array( null, __("Prof.", "forminator" ), ), // src/form/components/settings/multi-name.js:63
 
938
  "Delete option" => array( null, __("Delete option", "forminator" ), ), // src/form/components/settings/multi-option.js:80
939
  "Submission limit" => array( null, __("Submission limit", "forminator" ), ), // src/form/components/settings/multi-option.js:97
940
  "Options" => array( null, __("Options", "forminator" ), ), // src/form/components/settings/multi-value.js:142
@@ -956,7 +956,7 @@ $forminator_admin_locale = array(
956
  "Enter confirm password message" => array( null, __("Enter confirm password message", "forminator" ), ), // src/form/components/settings/required.js:119
957
  "Options without a value will be treated as empty options" => array( null, __("Options without a value will be treated as empty options", "forminator" ), ), // src/form/components/settings/required.js:135
958
  "Add classes that will be output on this field's container to aid your theme's default styling." => array( null, __("Add classes that will be output on this field's container to aid your theme's default styling.", "forminator" ), ), // src/form/components/settings/styling.js:21
959
- "E.g. form-field" => array( null, __("E.g. form-field", "forminator" ), ), // src/form/components/settings/styling.js:30
960
  "These will be output as you see them here." => array( null, __("These will be output as you see them here.", "forminator" ), ), // src/form/components/settings/styling.js:38
961
  "Is before" => array( null, __("Is before", "forminator" ), ), // src/form/components/settings/visibility-rule.js:281
962
  "Is after" => array( null, __("Is after", "forminator" ), ), // src/form/components/settings/visibility-rule.js:284
@@ -966,7 +966,7 @@ $forminator_admin_locale = array(
966
  "Is after less than n days" => array( null, __("Is after less than n days", "forminator" ), ), // src/form/components/settings/visibility-rule.js:296
967
  "Select date" => array( null, __("Select date", "forminator" ), ), // src/form/components/settings/visibility-rule.js:401
968
  "Number of days" => array( null, __("Number of days", "forminator" ), ), // src/form/components/settings/visibility-rule.js:427
969
- "E.g. 10" => array( null, __("E.g. 10", "forminator" ), ), // src/form/components/settings/visibility-rule.js:428
970
  "this field if" => array( null, __("this field if", "forminator" ), ), // src/form/components/settings/visibility.js:148
971
  "You need more than one field to configure visibility conditions. Add more fields!" => array( null, __("You need more than one field to configure visibility conditions. Add more fields!", "forminator" ), ), // src/form/components/settings/visibility.js:177
972
  "Rules" => array( null, __("Rules", "forminator" ), ), // src/form/components/settings/visibility.js:188
@@ -1025,11 +1025,11 @@ $forminator_admin_locale = array(
1025
  "Forever" => array( null, __("Forever", "forminator" ), ), // src/poll/components/behaviour/opening.js:122
1026
  "Custom messages" => array( null, __("Custom messages", "forminator" ), ), // src/poll/components/behaviour/opening.js:143
1027
  "Message when voting is closed" => array( null, __("Message when voting is closed", "forminator" ), ), // src/poll/components/behaviour/opening.js:149
1028
- "E.g. Voting is closed" => array( null, __("E.g. Voting is closed", "forminator" ), ), // src/poll/components/behaviour/opening.js:152
1029
  "Message when voting is paused" => array( null, __("Message when voting is paused", "forminator" ), ), // src/poll/components/behaviour/opening.js:157
1030
- "E.g. Voting is paused, check again later" => array( null, __("E.g. Voting is paused, check again later", "forminator" ), ), // src/poll/components/behaviour/opening.js:160
1031
  "Message before voting open from time" => array( null, __("Message before voting open from time", "forminator" ), ), // src/poll/components/behaviour/opening.js:165
1032
- "E.g. Voting has not been started yet" => array( null, __("E.g. Voting has not been started yet", "forminator" ), ), // src/poll/components/behaviour/opening.js:168
1033
  "Choose how you want your poll to be rendered for users." => array( null, __("Choose how you want your poll to be rendered for users.", "forminator" ), ), // src/poll/components/behaviour/render.js:14
1034
  "Load poll using AJAX" => array( null, __("Load poll using AJAX", "forminator" ), ), // src/poll/components/behaviour/render.js:22
1035
  "Enabling this feature will load the poll via AJAX after the page has loaded up, effectively speeding up your page load time. This method can also (in most cases) avoid page caching issues with your poll." => array( null, __("Enabling this feature will load the poll via AJAX after the page has loaded up, effectively speeding up your page load time. This method can also (in most cases) avoid page caching issues with your poll.", "forminator" ), ), // src/poll/components/behaviour/render.js:23
@@ -1056,7 +1056,7 @@ $forminator_admin_locale = array(
1056
  "Question" => array( null, __("Question", "forminator" ), ), // src/poll/components/builder/details.js:18
1057
  "Start by adding the question you will be asking poll visitors to vote on." => array( null, __("Start by adding the question you will be asking poll visitors to vote on.", "forminator" ), ), // src/poll/components/builder/details.js:21
1058
  "What is your main question?" => array( null, __("What is your main question?", "forminator" ), ), // src/poll/components/builder/details.js:33
1059
- "E.g. Why did the chicken cross the road?" => array( null, __("E.g. Why did the chicken cross the road?", "forminator" ), ), // src/poll/components/builder/details.js:35
1060
  "Feature Image (optional)" => array( null, __("Feature Image (optional)", "forminator" ), ), // src/poll/components/builder/details.js:42
1061
  "This image will appear under your main question and can be used to create polls based on an image." => array( null, __("This image will appear under your main question and can be used to create polls based on an image.", "forminator" ), ), // src/poll/components/builder/details.js:45
1062
  "Enter an optional description" => array( null, __("Enter an optional description", "forminator" ), ), // src/poll/components/builder/details.js:55
@@ -1064,7 +1064,7 @@ $forminator_admin_locale = array(
1064
  "Now add answers to your question that you users will use to vote with. Add as many as you like, just be careful to make sure each one is unique!" => array( null, __("Now add answers to your question that you users will use to vote with. Add as many as you like, just be careful to make sure each one is unique!", "forminator" ), ), // src/poll/components/builder/details.js:77
1065
  "Customize the button label used for submitting the users answer." => array( null, __("Customize the button label used for submitting the users answer.", "forminator" ), ), // src/poll/components/builder/details.js:97
1066
  "Button Text" => array( null, __("Button Text", "forminator" ), ), // src/poll/components/builder/details.js:108
1067
- "E.g. Vote" => array( null, __("E.g. Vote", "forminator" ), ), // src/poll/components/builder/details.js:110
1068
  "Edit Poll" => array( null, __("Edit Poll", "forminator" ), ), // src/poll/components/header.js:13
1069
  "Name your poll" => array( null, __("Name your poll", "forminator" ), ), // src/poll/components/header/title.js:37
1070
  "Give your poll a name" => array( null, __("Give your poll a name", "forminator" ), ), // src/poll/components/header/title.js:42
@@ -1190,21 +1190,21 @@ $forminator_admin_locale = array(
1190
  "Quiz Data" => array( null, __("Quiz Data", "forminator" ), ), // src/quiz/global/components/modals/notification.js:417
1191
  "Add Personality" => array( null, __("Add Personality", "forminator" ), ), // src/quiz/global/components/modals/personality.js:60
1192
  "Edit Personality" => array( null, __("Edit Personality", "forminator" ), ), // src/quiz/global/components/modals/personality.js:61
1193
- "E.g. Iron Man" => array( null, __("E.g. Iron Man", "forminator" ), ), // src/quiz/global/components/modals/personality.js:97
1194
- "Image" => array( null, __("Image", "forminator" ), ), // src/quiz/global/components/modals/personality.js:112
1195
- "Please validate your fields!" => array( null, __("Please validate your fields!", "forminator" ), ), // src/quiz/global/components/modals/personality.js:167
1196
  "Publishing quiz…" => array( null, __("Publishing quiz…", "forminator" ), ), // src/quiz/global/components/modals/publish.js:18
1197
  "Great work! Please hold tight a few moments while we publish your quiz to the world." => array( null, __("Great work! Please hold tight a few moments while we publish your quiz to the world.", "forminator" ), ), // src/quiz/global/components/modals/publish.js:24
1198
  "Options cannot be empty. You either need to enter answer text or upload an image for the empty options." => array( null, __("Options cannot be empty. You either need to enter answer text or upload an image for the empty options.", "forminator" ), ), // src/quiz/global/components/modals/question.js:86
1199
  "You need to select at least one correct answer before you can add this question." => array( null, __("You need to select at least one correct answer before you can add this question.", "forminator" ), ), // src/quiz/global/components/modals/question.js:99
1200
  "You need to select an associated personality for every option." => array( null, __("You need to select an associated personality for every option.", "forminator" ), ), // src/quiz/global/components/modals/question.js:114
1201
- "You can choose multiple correct answers if that applies to this question. Note that the user's selection will be considered as right when any one of the correct answers is selected." => array( null, __("You can choose multiple correct answers if that applies to this question. Note that the user's selection will be considered as right when any one of the correct answers is selected.", "forminator" ), ), // src/quiz/global/components/modals/question.js:190
1202
  "Your quiz is now ready to be embedded into a page or template of your choice. Simply copy and paste the shortcode below to display it!" => array( null, __("Your quiz is now ready to be embedded into a page or template of your choice. Simply copy and paste the shortcode below to display it!", "forminator" ), ), // src/quiz/global/components/modals/shortcode.js:37
1203
  "Button Processing Text" => array( null, __("Button Processing Text", "forminator" ), ), // src/quiz/global/components/modals/submit.js:64
1204
  "Sending..." => array( null, __("Sending...", "forminator" ), ), // src/quiz/global/components/modals/submit.js:65
1205
  "This text will appear as button text while the quiz is being submitted." => array( null, __("This text will appear as button text while the quiz is being submitted.", "forminator" ), ), // src/quiz/global/components/modals/submit.js:67
1206
  "Custom CSS Classes" => array( null, __("Custom CSS Classes", "forminator" ), ), // src/quiz/global/components/modals/submit.js:77
1207
- "E.g. form-submit-btn" => array( null, __("E.g. form-submit-btn", "forminator" ), ), // src/quiz/global/components/modals/submit.js:78
1208
  "These will be output as you see them here. To add multiple classes, separate them with a space. For example, \"form-submit-btn button\" will add two classes \"form-submit-btn\" and \"button\"." => array( null, __("These will be output as you see them here. To add multiple classes, separate them with a space. For example, \"form-submit-btn button\" will add two classes \"form-submit-btn\" and \"button\".", "forminator" ), ), // src/quiz/global/components/modals/submit.js:80
1209
  "You can send customized email notifications to your site admins and participant on successful quiz submission. Use advanced features such as email routing, and conditions to have granular control over them." => array( null, __("You can send customized email notifications to your site admins and participant on successful quiz submission. Use advanced features such as email routing, and conditions to have granular control over them.", "forminator" ), ), // src/quiz/global/components/notifications.js:32
1210
  "Optionally, you can send a notification email to nominated email accounts when quiz submissions come in." => array( null, __("Optionally, you can send a notification email to nominated email accounts when quiz submissions come in.", "forminator" ), ), // src/quiz/global/components/notifications/admin-email.js:243
@@ -1215,7 +1215,7 @@ $forminator_admin_locale = array(
1215
  "Is incorrect" => array( null, __("Is incorrect", "forminator" ), ), // src/quiz/global/components/notifications/conditions-rule.js:212
1216
  "greater than" => array( null, __("greater than", "forminator" ), ), // src/quiz/global/components/notifications/conditions-rule.js:223
1217
  "less than" => array( null, __("less than", "forminator" ), ), // src/quiz/global/components/notifications/conditions-rule.js:226
1218
- "e.g. 0.75em" => array( null, __("e.g. 0.75em", "forminator" ), ), // src/quiz/global/components/settings/fonts.js:102
1219
  "Choose how you want to handle this quiz's data storage. By default we'll use the configuration you've set in your {{link}}global privacy settings{{/link}}." => array( null, __("Choose how you want to handle this quiz's data storage. By default we'll use the configuration you've set in your {{link}}global privacy settings{{/link}}.", "forminator" ), ), // src/quiz/global/components/settings/privacy.js:34
1220
  "How long do you want to retain this quiz's submissions for?" => array( null, __("How long do you want to retain this quiz's submissions for?", "forminator" ), ), // src/quiz/global/components/settings/privacy.js:52
1221
  "Evaluation loader icon" => array( null, __("Evaluation loader icon", "forminator" ), ), // src/quiz/knowledge/components/appearance/colors/answer-checkbox.js:71
@@ -1302,35 +1302,35 @@ $forminator_admin_locale = array(
1302
  "Upload file" => array( null, __("Upload file", "forminator" ), ), // src/settings/inputs/uploads.js:135
1303
  "Remove uploaded image" => array( null, __("Remove uploaded image", "forminator" ), ), // src/settings/inputs/uploads.js:144
1304
  "Remove uploaded file" => array( null, __("Remove uploaded file", "forminator" ), ), // src/settings/inputs/uploads.js:145
1305
- "Required Fields" => array( null, __("Required Fields", "forminator" ), ), // src/settings/inputs/wp-editor.js:175
1306
- "Optional Fields" => array( null, __("Optional Fields", "forminator" ), ), // src/settings/inputs/wp-editor.js:185
1307
- "Misc Data" => array( null, __("Misc Data", "forminator" ), ), // src/settings/inputs/wp-editor.js:201
1308
- "Payment Data" => array( null, __("Payment Data", "forminator" ), ), // src/settings/inputs/wp-editor.js:226
1309
- "Form Name" => array( null, __("Form Name", "forminator" ), ), // src/settings/inputs/wp-editor.js:255
1310
- "All Form Fields" => array( null, __("All Form Fields", "forminator" ), ), // src/settings/inputs/wp-editor.js:265
1311
- "All Non Empty Fields" => array( null, __("All Non Empty Fields", "forminator" ), ), // src/settings/inputs/wp-editor.js:275
1312
- "Add form data" => array( null, __("Add form data", "forminator" ), ), // src/settings/inputs/wp-editor.js:338
1313
- "is having" => array( null, __("is having", "forminator" ), ), // src/utils.js:875
1314
- "is" => array( null, __("is", "forminator" ), ), // src/utils.js:878
1315
- "is not having" => array( null, __("is not having", "forminator" ), ), // src/utils.js:882
1316
- "is not" => array( null, __("is not", "forminator" ), ), // src/utils.js:885
1317
- "day is" => array( null, __("day is", "forminator" ), ), // src/utils.js:889
1318
- "day is not" => array( null, __("day is not", "forminator" ), ), // src/utils.js:891
1319
- "month is not" => array( null, __("month is not", "forminator" ), ), // src/utils.js:893
1320
- "month is" => array( null, __("month is", "forminator" ), ), // src/utils.js:895
1321
- "is before" => array( null, __("is before", "forminator" ), ), // src/utils.js:897
1322
- "is after" => array( null, __("is after", "forminator" ), ), // src/utils.js:899
1323
- "is before %s or more days from current date" => array( null, __("is before %s or more days from current date", "forminator" ), ), // src/utils.js:901
1324
- "is before less than %s days from current date" => array( null, __("is before less than %s days from current date", "forminator" ), ), // src/utils.js:903
1325
- "is after %s or more days from current date" => array( null, __("is after %s or more days from current date", "forminator" ), ), // src/utils.js:905
1326
- "is after less than %s days from current date" => array( null, __("is after less than %s days from current date", "forminator" ), ), // src/utils.js:907
1327
- "is greater than" => array( null, __("is greater than", "forminator" ), ), // src/utils.js:909
1328
- "is less than" => array( null, __("is less than", "forminator" ), ), // src/utils.js:911
1329
- "contains" => array( null, __("contains", "forminator" ), ), // src/utils.js:913
1330
- "starts with" => array( null, __("starts with", "forminator" ), ), // src/utils.js:915
1331
- "ends with" => array( null, __("ends with", "forminator" ), ), // src/utils.js:917
1332
- "is correct" => array( null, __("is correct", "forminator" ), ), // src/utils.js:919
1333
- "is incorrect" => array( null, __("is incorrect", "forminator" ), ), // src/utils.js:921
1334
  );
1335
  return $forminator_admin_locale;
1336
  /* THIS IS THE END OF THE GENERATED FILE */
77
  "File size color" => array( null, __("File size color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-file-multiple.js:67
78
  "Loading icon color" => array( null, __("Loading icon color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-file-multiple.js:74
79
  "Error" => array( null, __("Error", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-file-multiple.js:83
80
+ "File size icon color" => array( null, __("File size icon color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-file-multiple.js:114
81
  "Cloud icon color" => array( null, __("Cloud icon color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-panel-multiple.js:48
82
  "Message text color" => array( null, __("Message text color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-panel-multiple.js:56
83
  "Message link color" => array( null, __("Message link color", "forminator" ), ), // src/form/components/appearance/colors/file-upload/upload-panel-multiple.js:63
216
  "Inline Message" => array( null, __("Inline Message", "forminator" ), ), // src/form/components/behaviour/submission.js:75
217
  "Display a success message after form submitted." => array( null, __("Display a success message after form submitted.", "forminator" ), ), // src/form/components/behaviour/submission.js:82
218
  "Auto-close success message after" => array( null, __("Auto-close success message after", "forminator" ), ), // src/form/components/behaviour/submission.js:143
219
+ "E.g., 5" => array( null, __("E.g., 5", "forminator" ), ), // src/form/components/behaviour/submission.js:150
220
  "seconds." => array( null, __("seconds.", "forminator" ), ), // src/form/components/behaviour/submission.js:159
221
  "Redirect user to a URL" => array( null, __("Redirect user to a URL", "forminator" ), ), // src/form/components/behaviour/submission.js:169
222
  "https://www.mywebsite.com" => array( null, __("https://www.mywebsite.com", "forminator" ), ), // src/form/components/behaviour/submission.js:175
240
  "Enable inline validation (as user types)" => array( null, __("Enable inline validation (as user types)", "forminator" ), ), // src/form/components/behaviour/submission.js:327
241
  "Choose whether you want to show a loader on your form until it is submitted. We highly recommend using this on long forms or forms with payment field since they may take a few seconds to submit." => array( null, __("Choose whether you want to show a loader on your form until it is submitted. We highly recommend using this on long forms or forms with payment field since they may take a few seconds to submit.", "forminator" ), ), // src/form/components/behaviour/submission.js:337
242
  "Show Loader" => array( null, __("Show Loader", "forminator" ), ), // src/form/components/behaviour/submission.js:347
243
+ "E.g., Submitting..." => array( null, __("E.g., Submitting...", "forminator" ), ), // src/form/components/behaviour/submission.js:352
244
  "Choose the text to show on the right of loading icon" => array( null, __("Choose the text to show on the right of loading icon", "forminator" ), ), // src/form/components/behaviour/submission.js:355
245
  "null" => array( null, __("null", "forminator" ), ), // src/form/components/builder/field.js:638
246
  "more condition(s)" => array( null, __("more condition(s)", "forminator" ), ), // src/form/components/builder/field.js:685
273
  "Description (optional)" => array( null, __("Description (optional)", "forminator" ), ), // src/form/components/fields/address.js:122
274
  "Enter description" => array( null, __("Enter description", "forminator" ), ), // src/form/components/fields/address.js:123
275
  "At least one field must be enabled" => array( null, __("At least one field must be enabled", "forminator" ), ), // src/form/components/fields/address.js:235
276
+ "Field Type" => array( null, __("Field Type", "forminator" ), ), // src/form/components/fields/calculation.js:69
277
+ "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." => array( null, __("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.", "forminator" ), ), // src/form/components/fields/calculation.js:77
278
+ "Read-only" => array( null, __("Read-only", "forminator" ), ), // src/form/components/fields/calculation.js:88
279
+ "Hidden" => array( null, __("Hidden", "forminator" ), ), // src/form/components/fields/calculation.js:98
280
+ "Formatting" => array( null, __("Formatting", "forminator" ), ), // src/form/components/fields/calculation.js:108
281
+ "Choose how do you want to format the value of this field." => array( null, __("Choose how do you want to format the value of this field.", "forminator" ), ), // src/form/components/fields/calculation.js:116
282
+ "E.g., $" => array( null, __("E.g., $", "forminator" ), ), // src/form/components/fields/calculation.js:129
283
+ "Prefix" => array( null, __("Prefix", "forminator" ), ), // src/form/components/fields/calculation.js:131
284
+ "E.g., Kg" => array( null, __("E.g., Kg", "forminator" ), ), // src/form/components/fields/calculation.js:141
285
+ "Suffix" => array( null, __("Suffix", "forminator" ), ), // src/form/components/fields/calculation.js:143
286
+ "Decimal Places" => array( null, __("Decimal Places", "forminator" ), ), // src/form/components/fields/calculation.js:320
287
+ "Choose the decimal places to round off the calculated result." => array( null, __("Choose the decimal places to round off the calculated result.", "forminator" ), ), // src/form/components/fields/calculation.js:328
288
+ "decimals" => array( null, __("decimals", "forminator" ), ), // src/form/components/fields/calculation.js:353
289
+ "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." => array( null, __("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.", "forminator" ), ), // src/form/components/fields/calculation.js:372
290
  "reCAPTCHA type" => array( null, __("reCAPTCHA type", "forminator" ), ), // src/form/components/fields/captcha.js:35
291
  "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." => array( null, __("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.", "forminator" ), ), // src/form/components/fields/captcha.js:38
292
  "V2 Checkbox" => array( null, __("V2 Checkbox", "forminator" ), ), // src/form/components/fields/captcha.js:61
328
  "Max" => array( null, __("Max", "forminator" ), ), // src/form/components/fields/currency.js:204
329
  "Error Messages" => array( null, __("Error Messages", "forminator" ), ), // src/form/components/fields/currency.js:216
330
  "When number is smaller than the min limit" => array( null, __("When number is smaller than the min limit", "forminator" ), ), // src/form/components/fields/currency.js:231
331
+ "E.g., Please enter a number greater than 0." => array( null, __("E.g., Please enter a number greater than 0.", "forminator" ), ), // src/form/components/fields/currency.js:233
332
  "When number is greater than the max limit" => array( null, __("When number is greater than the max limit", "forminator" ), ), // src/form/components/fields/currency.js:239
333
+ "E.g., Please enter a number lower than 1000." => array( null, __("E.g., Please enter a number lower than 1000.", "forminator" ), ), // src/form/components/fields/currency.js:241
334
  "Note: The query parameter's value passed in URL should match with the selected date format." => array( null, __("Note: The query parameter's value passed in URL should match with the selected date format.", "forminator" ), ), // src/form/components/fields/date.js:29
335
  "Type" => array( null, __("Type", "forminator" ), ), // src/form/components/fields/date.js:42
336
  "Date Format" => array( null, __("Date Format", "forminator" ), ), // src/form/components/fields/date.js:76
362
  "Custom Value" => array( null, __("Custom Value", "forminator" ), ), // src/form/components/fields/hidden.js:53
363
  "Enter custom value" => array( null, __("Enter custom value", "forminator" ), ), // src/form/components/fields/hidden.js:54
364
  "Query parameter" => array( null, __("Query parameter", "forminator" ), ), // src/form/components/fields/hidden.js:66
365
+ "E.g., query_parameter_key" => array( null, __("E.g., query_parameter_key", "forminator" ), ), // src/form/components/fields/hidden.js:67
366
  "Layout" => array( null, __("Layout", "forminator" ), ), // src/form/components/fields/multivalue.js:61
367
  "By default, we stack the options vertically. However, you can change the options layout below." => array( null, __("By default, we stack the options vertically. However, you can change the options layout below.", "forminator" ), ), // src/form/components/fields/multivalue.js:68
368
  "Vertical" => array( null, __("Vertical", "forminator" ), ), // src/form/components/fields/multivalue.js:81
410
  "Payment amount" => array( null, __("Payment amount", "forminator" ), ), // src/form/components/fields/paypal.js:126
411
  "Fixed" => array( null, __("Fixed", "forminator" ), ), // src/form/components/fields/paypal.js:133
412
  "Fixed amount" => array( null, __("Fixed amount", "forminator" ), ), // src/form/components/fields/paypal.js:139
413
+ "E.g., 20.00" => array( null, __("E.g., 20.00", "forminator" ), ), // src/form/components/fields/paypal.js:154
414
  "Variable" => array( null, __("Variable", "forminator" ), ), // src/form/components/fields/paypal.js:170
415
  "Variable amount" => array( null, __("Variable amount", "forminator" ), ), // src/form/components/fields/paypal.js:180
416
  "Select field" => array( null, __("Select field", "forminator" ), ), // src/form/components/fields/paypal.js:191
423
  "White" => array( null, __("White", "forminator" ), ), // src/form/components/fields/paypal.js:254
424
  "Black" => array( null, __("Black", "forminator" ), ), // src/form/components/fields/paypal.js:255
425
  "Width" => array( null, __("Width", "forminator" ), ), // src/form/components/fields/paypal.js:260
426
+ "E.g., 250" => array( null, __("E.g., 250", "forminator" ), ), // src/form/components/fields/paypal.js:277
427
  "px" => array( null, __("px", "forminator" ), ), // src/form/components/fields/paypal.js:283
428
  "Choose the width of PayPal Smart Buttons. It can be anywhere between 150px to 750px. Leave this empty if you want the buttons to take the full width of the form up to the 750px limit." => array( null, __("Choose the width of PayPal Smart Buttons. It can be anywhere between 150px to 750px. Leave this empty if you want the buttons to take the full width of the form up to the 750px limit.", "forminator" ), ), // src/form/components/fields/paypal.js:286
429
  "Height" => array( null, __("Height", "forminator" ), ), // src/form/components/fields/paypal.js:298
528
  "Payment Receipt" => array( null, __("Payment Receipt", "forminator" ), ), // src/form/components/fields/stripe.js:447
529
  "Choose whether you want Stripe to email a receipt to your customers on successful payment. Note that Stripe sends the email receipt only for live payments. {{link}}Customize email template{{/link}}." => array( null, __("Choose whether you want Stripe to email a receipt to your customers on successful payment. Note that Stripe sends the email receipt only for live payments. {{link}}Customize email template{{/link}}.", "forminator" ), ), // src/form/components/fields/stripe.js:455
530
  "Email address" => array( null, __("Email address", "forminator" ), ), // src/form/components/fields/stripe.js:484
531
+ "E.g., john@doe.com" => array( null, __("E.g., john@doe.com", "forminator" ), ), // src/form/components/fields/stripe.js:486
532
  "Select an email field" => array( null, __("Select an email field", "forminator" ), ), // src/form/components/fields/stripe.js:488
533
  "Payment Details (optional)" => array( null, __("Payment Details (optional)", "forminator" ), ), // src/form/components/fields/stripe.js:513
534
+ "You can add a statement decipher and a description to help you and your customers recognise the transactions made on this form." => array( null, __("You can add a statement decipher and a description to help you and your customers recognise the transactions made on this form.", "forminator" ), ), // src/form/components/fields/stripe.js:521
535
  "Statement decipher" => array( null, __("Statement decipher", "forminator" ), ), // src/form/components/fields/stripe.js:531
536
+ "E.g., Company Name" => array( null, __("E.g., Company Name", "forminator" ), ), // src/form/components/fields/stripe.js:534
537
+ "This is the business name your customers will see on their card statement." => array( null, __("This is the business name your customers will see on their card statement.", "forminator" ), ), // src/form/components/fields/stripe.js:537
538
  "Up to 22 characters only" => array( null, __("Up to 22 characters only", "forminator" ), ), // src/form/components/fields/stripe.js:542
539
  "Enter your payment description here" => array( null, __("Enter your payment description here", "forminator" ), ), // src/form/components/fields/stripe.js:550
540
  "This appears on your Stripe account and on the payment receipt sent to your customers." => array( null, __("This appears on your Stripe account and on the payment receipt sent to your customers.", "forminator" ), ), // src/form/components/fields/stripe.js:553
563
  "Max characters" => array( null, __("Max characters", "forminator" ), ), // src/form/components/fields/text.js:81
564
  "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." => array( null, __("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.", "forminator" ), ), // src/form/components/fields/text.js:82
565
  "Character limit" => array( null, __("Character limit", "forminator" ), ), // src/form/components/fields/text.js:90
566
+ "E.g., 100" => array( null, __("E.g., 100", "forminator" ), ), // src/form/components/fields/text.js:97
567
  "Words" => array( null, __("Words", "forminator" ), ), // src/form/components/fields/text.js:108
568
  "You can add new line" => array( null, __("You can add new line", "forminator" ), ), // src/form/components/fields/textarea.js:52
569
  "Rich-Text editor" => array( null, __("Rich-Text editor", "forminator" ), ), // src/form/components/fields/textarea.js:89
681
  "Advanced" => array( null, __("Advanced", "forminator" ), ), // src/form/components/modals/notification.js:310
682
  "Conditions" => array( null, __("Conditions", "forminator" ), ), // src/form/components/modals/notification.js:319
683
  "The label is to help you identify this email and won't appear anywhere in the email." => array( null, __("The label is to help you identify this email and won't appear anywhere in the email.", "forminator" ), ), // src/form/components/modals/notification.js:346
684
+ "E.g., Sales Team Notification" => array( null, __("E.g., Sales Team Notification", "forminator" ), ), // src/form/components/modals/notification.js:351
685
+ "E.g., New Form Submission" => array( null, __("E.g., New Form Submission", "forminator" ), ), // src/form/components/modals/notification.js:365
686
  "Subject" => array( null, __("Subject", "forminator" ), ), // src/form/components/modals/notification.js:368
687
  "Email subject can't be empty" => array( null, __("Email subject can't be empty", "forminator" ), ), // src/form/components/modals/notification.js:371
688
  "Body" => array( null, __("Body", "forminator" ), ), // src/form/components/modals/notification.js:402
691
  "Choose whether you want to attach the files uploaded via the File Upload fields to this email." => array( null, __("Choose whether you want to attach the files uploaded via the File Upload fields to this email.", "forminator" ), ), // src/form/components/modals/notification.js:417
692
  "Uploaded files" => array( null, __("Uploaded files", "forminator" ), ), // src/form/components/modals/notification.js:424
693
  "The default behavior is to send the email to the same recipients. If you want to send this email to different recipients conditionally, you can enable the email routing and change the recipients of this email based on the user input." => array( null, __("The default behavior is to send the email to the same recipients. If you want to send this email to different recipients conditionally, you can enable the email routing and change the recipients of this email based on the user input.", "forminator" ), ), // src/form/components/modals/notification.js:442
694
+ "E.g., sales@website.com" => array( null, __("E.g., sales@website.com", "forminator" ), ), // src/form/components/modals/notification.js:476
695
  "Separate multiple emails with a comma" => array( null, __("Separate multiple emails with a comma", "forminator" ), ), // src/form/components/modals/notification.js:482
696
  "Email Routing" => array( null, __("Email Routing", "forminator" ), ), // src/form/components/modals/notification.js:502
697
  "Enter from name here" => array( null, __("Enter from name here", "forminator" ), ), // src/form/components/modals/notification.js:529
704
  "CC Emails" => array( null, __("CC Emails", "forminator" ), ), // src/form/components/modals/notification.js:596
705
  "Enter BCC email here" => array( null, __("Enter BCC email here", "forminator" ), ), // src/form/components/modals/notification.js:617
706
  "BCC Emails" => array( null, __("BCC Emails", "forminator" ), ), // src/form/components/modals/notification.js:618
 
707
  "Add" => array( null, __("Add", "forminator" ), ), // src/form/components/modals/notification.js:675
708
  "Labels" => array( null, __("Labels", "forminator" ), ), // src/form/components/modals/pagination.js:79
709
  "Your form is divided into multiple pages by Page Break field(s), and you can customize the label of each page here. Page names appear on your form header along with the progress indicator." => array( null, __("Your form is divided into multiple pages by Page Break field(s), and you can customize the label of each page here. Page names appear on your form header along with the progress indicator.", "forminator" ), ), // src/form/components/modals/pagination.js:107
881
  "Spreadsheet" => array( null, __("Spreadsheet", "forminator" ), ), // src/form/components/settings/filetypes.js:219
882
  "Interactive" => array( null, __("Interactive", "forminator" ), ), // src/form/components/settings/filetypes.js:229
883
  "Additional filetypes" => array( null, __("Additional filetypes", "forminator" ), ), // src/form/components/settings/filetypes.js:242
884
+ "E.g., .ai, .sketch, .studio" => array( null, __("E.g., .ai, .sketch, .studio", "forminator" ), ), // src/form/components/settings/filetypes.js:243
885
  "Add a comma-separated list of filetypes you want to allow in addition to the ones enabled above." => array( null, __("Add a comma-separated list of filetypes you want to allow in addition to the ones enabled above.", "forminator" ), ), // src/form/components/settings/filetypes.js:245
886
  "Note that if you're having trouble uploading one of the enabled filetypes, that filetype may be restricted by your hosting provider." => array( null, __("Note that if you're having trouble uploading one of the enabled filetypes, that filetype may be restricted by your hosting provider.", "forminator" ), ), // src/form/components/settings/filetypes.js:251
887
  "Roboto" => array( null, __("Roboto", "forminator" ), ), // src/form/components/settings/fonts.js:55
888
  "Font Family" => array( null, __("Font Family", "forminator" ), ), // src/form/components/settings/fonts.js:56
889
  "Custom user font" => array( null, __("Custom user font", "forminator" ), ), // src/form/components/settings/fonts.js:70
890
+ "E.g., Arial, sans-serif" => array( null, __("E.g., Arial, sans-serif", "forminator" ), ), // src/form/components/settings/fonts.js:80
891
  "Custom font family" => array( null, __("Custom font family", "forminator" ), ), // src/form/components/settings/fonts.js:81
892
+ "E.g., 16" => array( null, __("E.g., 16", "forminator" ), ), // src/form/components/settings/fonts.js:134
893
  "Font Size" => array( null, __("Font Size", "forminator" ), ), // src/form/components/settings/fonts.js:135
894
  "Font Weight" => array( null, __("Font Weight", "forminator" ), ), // src/form/components/settings/fonts.js:142
895
  "Select font weight" => array( null, __("Select font weight", "forminator" ), ), // src/form/components/settings/fonts.js:143
928
  "No custom meta data created yet. Click on \"+ Add Custom to create custom meta and map form fields to it." => array( null, __("No custom meta data created yet. Click on \"+ Add Custom to create custom meta and map form fields to it.", "forminator" ), ), // src/form/components/settings/metadata-value.js:140
929
  "Delete meta" => array( null, __("Delete meta", "forminator" ), ), // src/form/components/settings/multi-custom-field-option.js:110
930
  "Default value" => array( null, __("Default value", "forminator" ), ), // src/form/components/settings/multi-name.js:54
931
+ "Mr." => array( null, __("Mr.", "forminator" ), ), // src/form/components/settings/multi-name.js:58
932
+ "Mrs." => array( null, __("Mrs.", "forminator" ), ), // src/form/components/settings/multi-name.js:59
933
+ "Ms." => array( null, __("Ms.", "forminator" ), ), // src/form/components/settings/multi-name.js:60
934
+ "Mx." => array( null, __("Mx.", "forminator" ), ), // src/form/components/settings/multi-name.js:61
935
+ "Miss" => array( null, __("Miss", "forminator" ), ), // src/form/components/settings/multi-name.js:62
936
+ "Dr." => array( null, __("Dr.", "forminator" ), ), // src/form/components/settings/multi-name.js:63
937
+ "Prof." => array( null, __("Prof.", "forminator" ), ), // src/form/components/settings/multi-name.js:64
938
  "Delete option" => array( null, __("Delete option", "forminator" ), ), // src/form/components/settings/multi-option.js:80
939
  "Submission limit" => array( null, __("Submission limit", "forminator" ), ), // src/form/components/settings/multi-option.js:97
940
  "Options" => array( null, __("Options", "forminator" ), ), // src/form/components/settings/multi-value.js:142
956
  "Enter confirm password message" => array( null, __("Enter confirm password message", "forminator" ), ), // src/form/components/settings/required.js:119
957
  "Options without a value will be treated as empty options" => array( null, __("Options without a value will be treated as empty options", "forminator" ), ), // src/form/components/settings/required.js:135
958
  "Add classes that will be output on this field's container to aid your theme's default styling." => array( null, __("Add classes that will be output on this field's container to aid your theme's default styling.", "forminator" ), ), // src/form/components/settings/styling.js:21
959
+ "E.g., form-field" => array( null, __("E.g., form-field", "forminator" ), ), // src/form/components/settings/styling.js:30
960
  "These will be output as you see them here." => array( null, __("These will be output as you see them here.", "forminator" ), ), // src/form/components/settings/styling.js:38
961
  "Is before" => array( null, __("Is before", "forminator" ), ), // src/form/components/settings/visibility-rule.js:281
962
  "Is after" => array( null, __("Is after", "forminator" ), ), // src/form/components/settings/visibility-rule.js:284
966
  "Is after less than n days" => array( null, __("Is after less than n days", "forminator" ), ), // src/form/components/settings/visibility-rule.js:296
967
  "Select date" => array( null, __("Select date", "forminator" ), ), // src/form/components/settings/visibility-rule.js:401
968
  "Number of days" => array( null, __("Number of days", "forminator" ), ), // src/form/components/settings/visibility-rule.js:427
969
+ "E.g., 10" => array( null, __("E.g., 10", "forminator" ), ), // src/form/components/settings/visibility-rule.js:428
970
  "this field if" => array( null, __("this field if", "forminator" ), ), // src/form/components/settings/visibility.js:148
971
  "You need more than one field to configure visibility conditions. Add more fields!" => array( null, __("You need more than one field to configure visibility conditions. Add more fields!", "forminator" ), ), // src/form/components/settings/visibility.js:177
972
  "Rules" => array( null, __("Rules", "forminator" ), ), // src/form/components/settings/visibility.js:188
1025
  "Forever" => array( null, __("Forever", "forminator" ), ), // src/poll/components/behaviour/opening.js:122
1026
  "Custom messages" => array( null, __("Custom messages", "forminator" ), ), // src/poll/components/behaviour/opening.js:143
1027
  "Message when voting is closed" => array( null, __("Message when voting is closed", "forminator" ), ), // src/poll/components/behaviour/opening.js:149
1028
+ "E.g., Voting is closed" => array( null, __("E.g., Voting is closed", "forminator" ), ), // src/poll/components/behaviour/opening.js:152
1029
  "Message when voting is paused" => array( null, __("Message when voting is paused", "forminator" ), ), // src/poll/components/behaviour/opening.js:157
1030
+ "E.g., Voting is paused, check again later" => array( null, __("E.g., Voting is paused, check again later", "forminator" ), ), // src/poll/components/behaviour/opening.js:160
1031
  "Message before voting open from time" => array( null, __("Message before voting open from time", "forminator" ), ), // src/poll/components/behaviour/opening.js:165
1032
+ "E.g., Voting has not been started yet" => array( null, __("E.g., Voting has not been started yet", "forminator" ), ), // src/poll/components/behaviour/opening.js:168
1033
  "Choose how you want your poll to be rendered for users." => array( null, __("Choose how you want your poll to be rendered for users.", "forminator" ), ), // src/poll/components/behaviour/render.js:14
1034
  "Load poll using AJAX" => array( null, __("Load poll using AJAX", "forminator" ), ), // src/poll/components/behaviour/render.js:22
1035
  "Enabling this feature will load the poll via AJAX after the page has loaded up, effectively speeding up your page load time. This method can also (in most cases) avoid page caching issues with your poll." => array( null, __("Enabling this feature will load the poll via AJAX after the page has loaded up, effectively speeding up your page load time. This method can also (in most cases) avoid page caching issues with your poll.", "forminator" ), ), // src/poll/components/behaviour/render.js:23
1056
  "Question" => array( null, __("Question", "forminator" ), ), // src/poll/components/builder/details.js:18
1057
  "Start by adding the question you will be asking poll visitors to vote on." => array( null, __("Start by adding the question you will be asking poll visitors to vote on.", "forminator" ), ), // src/poll/components/builder/details.js:21
1058
  "What is your main question?" => array( null, __("What is your main question?", "forminator" ), ), // src/poll/components/builder/details.js:33
1059
+ "E.g., Why did the chicken cross the road?" => array( null, __("E.g., Why did the chicken cross the road?", "forminator" ), ), // src/poll/components/builder/details.js:35
1060
  "Feature Image (optional)" => array( null, __("Feature Image (optional)", "forminator" ), ), // src/poll/components/builder/details.js:42
1061
  "This image will appear under your main question and can be used to create polls based on an image." => array( null, __("This image will appear under your main question and can be used to create polls based on an image.", "forminator" ), ), // src/poll/components/builder/details.js:45
1062
  "Enter an optional description" => array( null, __("Enter an optional description", "forminator" ), ), // src/poll/components/builder/details.js:55
1064
  "Now add answers to your question that you users will use to vote with. Add as many as you like, just be careful to make sure each one is unique!" => array( null, __("Now add answers to your question that you users will use to vote with. Add as many as you like, just be careful to make sure each one is unique!", "forminator" ), ), // src/poll/components/builder/details.js:77
1065
  "Customize the button label used for submitting the users answer." => array( null, __("Customize the button label used for submitting the users answer.", "forminator" ), ), // src/poll/components/builder/details.js:97
1066
  "Button Text" => array( null, __("Button Text", "forminator" ), ), // src/poll/components/builder/details.js:108
1067
+ "E.g., Vote" => array( null, __("E.g., Vote", "forminator" ), ), // src/poll/components/builder/details.js:110
1068
  "Edit Poll" => array( null, __("Edit Poll", "forminator" ), ), // src/poll/components/header.js:13
1069
  "Name your poll" => array( null, __("Name your poll", "forminator" ), ), // src/poll/components/header/title.js:37
1070
  "Give your poll a name" => array( null, __("Give your poll a name", "forminator" ), ), // src/poll/components/header/title.js:42
1190
  "Quiz Data" => array( null, __("Quiz Data", "forminator" ), ), // src/quiz/global/components/modals/notification.js:417
1191
  "Add Personality" => array( null, __("Add Personality", "forminator" ), ), // src/quiz/global/components/modals/personality.js:60
1192
  "Edit Personality" => array( null, __("Edit Personality", "forminator" ), ), // src/quiz/global/components/modals/personality.js:61
1193
+ "E.g., Iron Man" => array( null, __("E.g., Iron Man", "forminator" ), ), // src/quiz/global/components/modals/personality.js:94
1194
+ "Image" => array( null, __("Image", "forminator" ), ), // src/quiz/global/components/modals/personality.js:109
1195
+ "Please validate your fields!" => array( null, __("Please validate your fields!", "forminator" ), ), // src/quiz/global/components/modals/personality.js:164
1196
  "Publishing quiz…" => array( null, __("Publishing quiz…", "forminator" ), ), // src/quiz/global/components/modals/publish.js:18
1197
  "Great work! Please hold tight a few moments while we publish your quiz to the world." => array( null, __("Great work! Please hold tight a few moments while we publish your quiz to the world.", "forminator" ), ), // src/quiz/global/components/modals/publish.js:24
1198
  "Options cannot be empty. You either need to enter answer text or upload an image for the empty options." => array( null, __("Options cannot be empty. You either need to enter answer text or upload an image for the empty options.", "forminator" ), ), // src/quiz/global/components/modals/question.js:86
1199
  "You need to select at least one correct answer before you can add this question." => array( null, __("You need to select at least one correct answer before you can add this question.", "forminator" ), ), // src/quiz/global/components/modals/question.js:99
1200
  "You need to select an associated personality for every option." => array( null, __("You need to select an associated personality for every option.", "forminator" ), ), // src/quiz/global/components/modals/question.js:114
1201
+ "You can choose multiple correct answers if that applies to this question. Note that the user's selection will be considered as right when any one of the correct answers is selected." => array( null, __("You can choose multiple correct answers if that applies to this question. Note that the user's selection will be considered as right when any one of the correct answers is selected.", "forminator" ), ), // src/quiz/global/components/modals/question.js:187
1202
  "Your quiz is now ready to be embedded into a page or template of your choice. Simply copy and paste the shortcode below to display it!" => array( null, __("Your quiz is now ready to be embedded into a page or template of your choice. Simply copy and paste the shortcode below to display it!", "forminator" ), ), // src/quiz/global/components/modals/shortcode.js:37
1203
  "Button Processing Text" => array( null, __("Button Processing Text", "forminator" ), ), // src/quiz/global/components/modals/submit.js:64
1204
  "Sending..." => array( null, __("Sending...", "forminator" ), ), // src/quiz/global/components/modals/submit.js:65
1205
  "This text will appear as button text while the quiz is being submitted." => array( null, __("This text will appear as button text while the quiz is being submitted.", "forminator" ), ), // src/quiz/global/components/modals/submit.js:67
1206
  "Custom CSS Classes" => array( null, __("Custom CSS Classes", "forminator" ), ), // src/quiz/global/components/modals/submit.js:77
1207
+ "E.g., form-submit-btn" => array( null, __("E.g., form-submit-btn", "forminator" ), ), // src/quiz/global/components/modals/submit.js:78
1208
  "These will be output as you see them here. To add multiple classes, separate them with a space. For example, \"form-submit-btn button\" will add two classes \"form-submit-btn\" and \"button\"." => array( null, __("These will be output as you see them here. To add multiple classes, separate them with a space. For example, \"form-submit-btn button\" will add two classes \"form-submit-btn\" and \"button\".", "forminator" ), ), // src/quiz/global/components/modals/submit.js:80
1209
  "You can send customized email notifications to your site admins and participant on successful quiz submission. Use advanced features such as email routing, and conditions to have granular control over them." => array( null, __("You can send customized email notifications to your site admins and participant on successful quiz submission. Use advanced features such as email routing, and conditions to have granular control over them.", "forminator" ), ), // src/quiz/global/components/notifications.js:32
1210
  "Optionally, you can send a notification email to nominated email accounts when quiz submissions come in." => array( null, __("Optionally, you can send a notification email to nominated email accounts when quiz submissions come in.", "forminator" ), ), // src/quiz/global/components/notifications/admin-email.js:243
1215
  "Is incorrect" => array( null, __("Is incorrect", "forminator" ), ), // src/quiz/global/components/notifications/conditions-rule.js:212
1216
  "greater than" => array( null, __("greater than", "forminator" ), ), // src/quiz/global/components/notifications/conditions-rule.js:223
1217
  "less than" => array( null, __("less than", "forminator" ), ), // src/quiz/global/components/notifications/conditions-rule.js:226
1218
+ "e.g., 0.75em" => array( null, __("e.g., 0.75em", "forminator" ), ), // src/quiz/global/components/settings/fonts.js:102
1219
  "Choose how you want to handle this quiz's data storage. By default we'll use the configuration you've set in your {{link}}global privacy settings{{/link}}." => array( null, __("Choose how you want to handle this quiz's data storage. By default we'll use the configuration you've set in your {{link}}global privacy settings{{/link}}.", "forminator" ), ), // src/quiz/global/components/settings/privacy.js:34
1220
  "How long do you want to retain this quiz's submissions for?" => array( null, __("How long do you want to retain this quiz's submissions for?", "forminator" ), ), // src/quiz/global/components/settings/privacy.js:52
1221
  "Evaluation loader icon" => array( null, __("Evaluation loader icon", "forminator" ), ), // src/quiz/knowledge/components/appearance/colors/answer-checkbox.js:71
1302
  "Upload file" => array( null, __("Upload file", "forminator" ), ), // src/settings/inputs/uploads.js:135
1303
  "Remove uploaded image" => array( null, __("Remove uploaded image", "forminator" ), ), // src/settings/inputs/uploads.js:144
1304
  "Remove uploaded file" => array( null, __("Remove uploaded file", "forminator" ), ), // src/settings/inputs/uploads.js:145
1305
+ "Required Fields" => array( null, __("Required Fields", "forminator" ), ), // src/settings/inputs/wp-editor.js:180
1306
+ "Optional Fields" => array( null, __("Optional Fields", "forminator" ), ), // src/settings/inputs/wp-editor.js:190
1307
+ "Misc Data" => array( null, __("Misc Data", "forminator" ), ), // src/settings/inputs/wp-editor.js:206
1308
+ "Payment Data" => array( null, __("Payment Data", "forminator" ), ), // src/settings/inputs/wp-editor.js:231
1309
+ "Form Name" => array( null, __("Form Name", "forminator" ), ), // src/settings/inputs/wp-editor.js:260
1310
+ "All Form Fields" => array( null, __("All Form Fields", "forminator" ), ), // src/settings/inputs/wp-editor.js:270
1311
+ "All Non Empty Fields" => array( null, __("All Non Empty Fields", "forminator" ), ), // src/settings/inputs/wp-editor.js:280
1312
+ "Add form data" => array( null, __("Add form data", "forminator" ), ), // src/settings/inputs/wp-editor.js:343
1313
+ "is having" => array( null, __("is having", "forminator" ), ), // src/utils.js:876
1314
+ "is" => array( null, __("is", "forminator" ), ), // src/utils.js:879
1315
+ "is not having" => array( null, __("is not having", "forminator" ), ), // src/utils.js:883
1316
+ "is not" => array( null, __("is not", "forminator" ), ), // src/utils.js:886
1317
+ "day is" => array( null, __("day is", "forminator" ), ), // src/utils.js:890
1318
+ "day is not" => array( null, __("day is not", "forminator" ), ), // src/utils.js:892
1319
+ "month is not" => array( null, __("month is not", "forminator" ), ), // src/utils.js:894
1320
+ "month is" => array( null, __("month is", "forminator" ), ), // src/utils.js:896
1321
+ "is before" => array( null, __("is before", "forminator" ), ), // src/utils.js:898
1322
+ "is after" => array( null, __("is after", "forminator" ), ), // src/utils.js:900
1323
+ "is before %s or more days from current date" => array( null, __("is before %s or more days from current date", "forminator" ), ), // src/utils.js:902
1324
+ "is before less than %s days from current date" => array( null, __("is before less than %s days from current date", "forminator" ), ), // src/utils.js:904
1325
+ "is after %s or more days from current date" => array( null, __("is after %s or more days from current date", "forminator" ), ), // src/utils.js:906
1326
+ "is after less than %s days from current date" => array( null, __("is after less than %s days from current date", "forminator" ), ), // src/utils.js:908
1327
+ "is greater than" => array( null, __("is greater than", "forminator" ), ), // src/utils.js:910
1328
+ "is less than" => array( null, __("is less than", "forminator" ), ), // src/utils.js:912
1329
+ "contains" => array( null, __("contains", "forminator" ), ), // src/utils.js:914
1330
+ "starts with" => array( null, __("starts with", "forminator" ), ), // src/utils.js:916
1331
+ "ends with" => array( null, __("ends with", "forminator" ), ), // src/utils.js:918
1332
+ "is correct" => array( null, __("is correct", "forminator" ), ), // src/utils.js:920
1333
+ "is incorrect" => array( null, __("is incorrect", "forminator" ), ), // src/utils.js:922
1334
  );
1335
  return $forminator_admin_locale;
1336
  /* THIS IS THE END OF THE GENERATED FILE */
admin/pages/entries-page.php CHANGED
@@ -210,10 +210,6 @@ class Forminator_Entries_Page extends Forminator_Admin_Page {
210
  $forms = $this->get_forms( $form_type );
211
 
212
  foreach ( $forms as $form ) {
213
- if ( isset( $form->settings['form-type'] ) && 'leads' === $form->settings['form-type'] ) {
214
- continue;
215
- }
216
-
217
  /**@var Forminator_Base_Form_Model $form */
218
  $title = ! empty( $form->settings['formName'] ) ? $form->settings['formName'] : $form->raw->post_title;
219
  $html .= '<option value="' . $form->id . '" ' . selected( $form->id, $form_id, false ) . '>' . $title . '</option>';
210
  $forms = $this->get_forms( $form_type );
211
 
212
  foreach ( $forms as $form ) {
 
 
 
 
213
  /**@var Forminator_Base_Form_Model $form */
214
  $title = ! empty( $form->settings['formName'] ) ? $form->settings['formName'] : $form->raw->post_title;
215
  $html .= '<option value="' . $form->id . '" ' . selected( $form->id, $form_id, false ) . '>' . $title . '</option>';
admin/views/custom-form/entries/filter.php CHANGED
@@ -50,7 +50,7 @@ $order_filter = isset( $this->order['order'] ) ? $this->order['order'] : '';
50
  name="min_id"
51
  min="0"
52
  value="<?php echo esc_attr( $min_id ); ?>"
53
- placeholder="<?php esc_html_e( 'E.g. 100', Forminator::DOMAIN ); ?>"
54
  id="forminator-forms-filter--from-id"
55
  class="sui-form-control"/>
56
 
@@ -63,7 +63,7 @@ $order_filter = isset( $this->order['order'] ) ? $this->order['order'] : '';
63
  name="max_id"
64
  min="0"
65
  value="<?php echo esc_attr( $max_id ); ?>"
66
- placeholder="<?php esc_html_e( 'E.g. 100', Forminator::DOMAIN ); ?>"
67
  id="forminator-forms-filte--to-id"
68
  class="sui-form-control"/>
69
 
@@ -84,7 +84,7 @@ $order_filter = isset( $this->order['order'] ) ? $this->order['order'] : '';
84
  <input type="text"
85
  name="search"
86
  value="<?php echo esc_attr( $search_filter ); ?>"
87
- placeholder="<?php esc_html_e( 'E.g. search', Forminator::DOMAIN ); ?>"
88
  id="forminator-forms-filter--by-keyword"
89
  class="sui-form-control"/>
90
  </div>
50
  name="min_id"
51
  min="0"
52
  value="<?php echo esc_attr( $min_id ); ?>"
53
+ placeholder="<?php esc_html_e( 'E.g., 100', Forminator::DOMAIN ); ?>"
54
  id="forminator-forms-filter--from-id"
55
  class="sui-form-control"/>
56
 
63
  name="max_id"
64
  min="0"
65
  value="<?php echo esc_attr( $max_id ); ?>"
66
+ placeholder="<?php esc_html_e( 'E.g., 100', Forminator::DOMAIN ); ?>"
67
  id="forminator-forms-filte--to-id"
68
  class="sui-form-control"/>
69
 
84
  <input type="text"
85
  name="search"
86
  value="<?php echo esc_attr( $search_filter ); ?>"
87
+ placeholder="<?php esc_html_e( 'E.g., search', Forminator::DOMAIN ); ?>"
88
  id="forminator-forms-filter--by-keyword"
89
  class="sui-form-control"/>
90
  </div>
admin/views/quiz/entries/filter.php CHANGED
@@ -50,7 +50,7 @@ $order_filter = isset( $this->order['order'] ) ? $this->order['order'] : '';
50
  name="min_id"
51
  min="0"
52
  value="<?php echo esc_attr( $min_id ); ?>"
53
- placeholder="<?php esc_html_e( 'E.g. 100', Forminator::DOMAIN ); ?>"
54
  id="forminator-forms-filter--from-id"
55
  class="sui-form-control"/>
56
 
@@ -63,7 +63,7 @@ $order_filter = isset( $this->order['order'] ) ? $this->order['order'] : '';
63
  name="max_id"
64
  min="0"
65
  value="<?php echo esc_attr( $max_id ); ?>"
66
- placeholder="<?php esc_html_e( 'E.g. 100', Forminator::DOMAIN ); ?>"
67
  id="forminator-forms-filte--to-id"
68
  class="sui-form-control"/>
69
 
@@ -84,7 +84,7 @@ $order_filter = isset( $this->order['order'] ) ? $this->order['order'] : '';
84
  <input type="text"
85
  name="search"
86
  value="<?php echo esc_attr( $search_filter ); ?>"
87
- placeholder="<?php esc_html_e( 'E.g. search', Forminator::DOMAIN ); ?>"
88
  id="forminator-forms-filter--by-keyword"
89
  class="sui-form-control"/>
90
  </div>
50
  name="min_id"
51
  min="0"
52
  value="<?php echo esc_attr( $min_id ); ?>"
53
+ placeholder="<?php esc_html_e( 'E.g., 100', Forminator::DOMAIN ); ?>"
54
  id="forminator-forms-filter--from-id"
55
  class="sui-form-control"/>
56
 
63
  name="max_id"
64
  min="0"
65
  value="<?php echo esc_attr( $max_id ); ?>"
66
+ placeholder="<?php esc_html_e( 'E.g., 100', Forminator::DOMAIN ); ?>"
67
  id="forminator-forms-filte--to-id"
68
  class="sui-form-control"/>
69
 
84
  <input type="text"
85
  name="search"
86
  value="<?php echo esc_attr( $search_filter ); ?>"
87
+ placeholder="<?php esc_html_e( 'E.g., search', Forminator::DOMAIN ); ?>"
88
  id="forminator-forms-filter--by-keyword"
89
  class="sui-form-control"/>
90
  </div>
admin/views/settings/content.php CHANGED
@@ -37,7 +37,7 @@ $section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET['section'] ) :
37
 
38
  </ul>
39
 
40
- <select class="sui-mobile-nav sui-sidenav-hide-lg">
41
  <option value="dashboard"><?php esc_html_e( 'General', Forminator::DOMAIN ); ?></option>
42
  <option value="accessibility"><?php esc_html_e( 'Accessibility', Forminator::DOMAIN ); ?></option>
43
  <option value="data"><?php esc_html_e( 'Data', Forminator::DOMAIN ); ?></option>
37
 
38
  </ul>
39
 
40
+ <select id="forminator-sidenav" class="sui-mobile-nav sui-sidenav-hide-lg">
41
  <option value="dashboard"><?php esc_html_e( 'General', Forminator::DOMAIN ); ?></option>
42
  <option value="accessibility"><?php esc_html_e( 'Accessibility', Forminator::DOMAIN ); ?></option>
43
  <option value="data"><?php esc_html_e( 'Data', Forminator::DOMAIN ); ?></option>
admin/views/settings/data/forms-privacy.php CHANGED
@@ -57,7 +57,7 @@ $cfrom_retain_ip_unit = get_option( 'forminator_retain_ip_interval_unit', 'd
57
 
58
  <input type="number"
59
  name="submissions_retention_number"
60
- placeholder="<?php esc_html_e( 'E.g. 10', Forminator::DOMAIN ); ?>"
61
  value="<?php echo esc_attr( $cform_retain_number ); ?>"
62
  min="0"
63
  class="sui-form-control sui-form-control-inline"/>
@@ -66,7 +66,7 @@ $cfrom_retain_ip_unit = get_option( 'forminator_retain_ip_interval_unit', 'd
66
  <div class="sui-col-md-6">
67
  <div class="sui-form-field">
68
 
69
- <select name="submissions_retention_unit">
70
  <option value="days" <?php selected( $cfrom_retain_unit, 'days' ); ?>>
71
  <?php esc_html_e( 'day(s)', Forminator::DOMAIN ); ?></option>
72
  <option value="weeks" <?php selected( $cfrom_retain_unit, 'weeks' ); ?>>
@@ -124,7 +124,7 @@ $cfrom_retain_ip_unit = get_option( 'forminator_retain_ip_interval_unit', 'd
124
 
125
  <input type="number"
126
  name="cform_retention_ip_number"
127
- placeholder="<?php esc_html_e( 'E.g. 10', Forminator::DOMAIN ); ?>"
128
  value="<?php echo esc_attr( $cform_retain_ip_number ); ?>"
129
  min="0"
130
  class="sui-form-control sui-form-control-inline"/>
@@ -134,7 +134,7 @@ $cfrom_retain_ip_unit = get_option( 'forminator_retain_ip_interval_unit', 'd
134
  <div class="sui-col-md-6">
135
  <div class="sui-form-field">
136
 
137
- <select name="cform_retention_ip_unit">
138
  <option value="days" <?php selected( $cfrom_retain_ip_unit, 'days' ); ?>>
139
  <?php esc_html_e( 'day(s)', Forminator::DOMAIN ); ?></option>
140
  <option value="weeks" <?php selected( $cfrom_retain_ip_unit, 'weeks' ); ?>>
57
 
58
  <input type="number"
59
  name="submissions_retention_number"
60
+ placeholder="<?php esc_html_e( 'E.g., 10', Forminator::DOMAIN ); ?>"
61
  value="<?php echo esc_attr( $cform_retain_number ); ?>"
62
  min="0"
63
  class="sui-form-control sui-form-control-inline"/>
66
  <div class="sui-col-md-6">
67
  <div class="sui-form-field">
68
 
69
+ <select id="submissions_retention_unit" name="submissions_retention_unit">
70
  <option value="days" <?php selected( $cfrom_retain_unit, 'days' ); ?>>
71
  <?php esc_html_e( 'day(s)', Forminator::DOMAIN ); ?></option>
72
  <option value="weeks" <?php selected( $cfrom_retain_unit, 'weeks' ); ?>>
124
 
125
  <input type="number"
126
  name="cform_retention_ip_number"
127
+ placeholder="<?php esc_html_e( 'E.g., 10', Forminator::DOMAIN ); ?>"
128
  value="<?php echo esc_attr( $cform_retain_ip_number ); ?>"
129
  min="0"
130
  class="sui-form-control sui-form-control-inline"/>
134
  <div class="sui-col-md-6">
135
  <div class="sui-form-field">
136
 
137
+ <select id="cform_retention_ip_unit" name="cform_retention_ip_unit">
138
  <option value="days" <?php selected( $cfrom_retain_ip_unit, 'days' ); ?>>
139
  <?php esc_html_e( 'day(s)', Forminator::DOMAIN ); ?></option>
140
  <option value="weeks" <?php selected( $cfrom_retain_ip_unit, 'weeks' ); ?>>
admin/views/settings/data/polls-privacy.php CHANGED
@@ -57,7 +57,7 @@ $poll_submissions_retain_unit = get_option( 'forminator_retain_poll_submissio
57
 
58
  <input type="number"
59
  name="poll_submissions_retention_number"
60
- placeholder="<?php esc_html_e( 'E.g. 10', Forminator::DOMAIN ); ?>"
61
  value="<?php echo esc_attr( $poll_submissions_retain_number ); ?>"
62
  min="0"
63
  class="sui-form-control sui-form-control-inline"/>
@@ -66,7 +66,7 @@ $poll_submissions_retain_unit = get_option( 'forminator_retain_poll_submissio
66
  </div>
67
  <div class="sui-col-md-6">
68
  <div class="sui-form-field">
69
- <select name="poll_submissions_retention_unit">
70
  <option value="days" <?php selected( $poll_submissions_retain_unit, 'days' ); ?>>
71
  <?php esc_html_e( 'day(s)', Forminator::DOMAIN ); ?></option>
72
  <option value="weeks" <?php selected( $poll_submissions_retain_unit, 'weeks' ); ?>>
@@ -133,7 +133,7 @@ $poll_submissions_retain_unit = get_option( 'forminator_retain_poll_submissio
133
 
134
  <input type="number"
135
  name="votes_retention_number"
136
- placeholder="<?php esc_html_e( 'E.g. 10', Forminator::DOMAIN ); ?>"
137
  value="<?php echo esc_attr( $polls_retain_number ); ?>"
138
  min="0"
139
  class="sui-form-control sui-form-control-inline"/>
@@ -142,7 +142,7 @@ $poll_submissions_retain_unit = get_option( 'forminator_retain_poll_submissio
142
  <div class="sui-col-md-6">
143
  <div class="sui-form-field">
144
 
145
- <select name="votes_retention_unit">
146
  <option value="days" <?php selected( $polls_retain_unit, 'days' ); ?>>
147
  <?php esc_html_e( 'day(s)', Forminator::DOMAIN ); ?></option>
148
  <option value="weeks" <?php selected( $polls_retain_unit, 'weeks' ); ?>>
57
 
58
  <input type="number"
59
  name="poll_submissions_retention_number"
60
+ placeholder="<?php esc_html_e( 'E.g., 10', Forminator::DOMAIN ); ?>"
61
  value="<?php echo esc_attr( $poll_submissions_retain_number ); ?>"
62
  min="0"
63
  class="sui-form-control sui-form-control-inline"/>
66
  </div>
67
  <div class="sui-col-md-6">
68
  <div class="sui-form-field">
69
+ <select id="poll_submissions_retention_unit" name="poll_submissions_retention_unit">
70
  <option value="days" <?php selected( $poll_submissions_retain_unit, 'days' ); ?>>
71
  <?php esc_html_e( 'day(s)', Forminator::DOMAIN ); ?></option>
72
  <option value="weeks" <?php selected( $poll_submissions_retain_unit, 'weeks' ); ?>>
133
 
134
  <input type="number"
135
  name="votes_retention_number"
136
+ placeholder="<?php esc_html_e( 'E.g., 10', Forminator::DOMAIN ); ?>"
137
  value="<?php echo esc_attr( $polls_retain_number ); ?>"
138
  min="0"
139
  class="sui-form-control sui-form-control-inline"/>
142
  <div class="sui-col-md-6">
143
  <div class="sui-form-field">
144
 
145
+ <select id="votes_retention_unit" name="votes_retention_unit">
146
  <option value="days" <?php selected( $polls_retain_unit, 'days' ); ?>>
147
  <?php esc_html_e( 'day(s)', Forminator::DOMAIN ); ?></option>
148
  <option value="weeks" <?php selected( $polls_retain_unit, 'weeks' ); ?>>
admin/views/settings/data/quizzes-privacy.php CHANGED
@@ -50,7 +50,7 @@ $quiz_retain_unit = get_option( 'forminator_retain_quiz_submissions_interval
50
 
51
  <input type="number"
52
  name="quiz_submissions_retention_number"
53
- placeholder="<?php esc_html_e( 'E.g. 10', Forminator::DOMAIN ); ?>"
54
  value="<?php echo esc_attr( $quiz_retain_number ); ?>"
55
  min="0"
56
  class="sui-form-control sui-form-control-inline"/>
@@ -59,7 +59,7 @@ $quiz_retain_unit = get_option( 'forminator_retain_quiz_submissions_interval
59
  <div class="sui-col-md-6">
60
  <div class="sui-form-field">
61
 
62
- <select name="quiz_submissions_retention_unit">
63
  <option value="days" <?php selected( $quiz_retain_unit, 'days' ); ?>>
64
  <?php esc_html_e( 'day(s)', Forminator::DOMAIN ); ?></option>
65
  <option value="weeks" <?php selected( $quiz_retain_unit, 'weeks' ); ?>>
50
 
51
  <input type="number"
52
  name="quiz_submissions_retention_number"
53
+ placeholder="<?php esc_html_e( 'E.g., 10', Forminator::DOMAIN ); ?>"
54
  value="<?php echo esc_attr( $quiz_retain_number ); ?>"
55
  min="0"
56
  class="sui-form-control sui-form-control-inline"/>
59
  <div class="sui-col-md-6">
60
  <div class="sui-form-field">
61
 
62
+ <select id="quiz_submissions_retention_unit" name="quiz_submissions_retention_unit">
63
  <option value="days" <?php selected( $quiz_retain_unit, 'days' ); ?>>
64
  <?php esc_html_e( 'day(s)', Forminator::DOMAIN ); ?></option>
65
  <option value="weeks" <?php selected( $quiz_retain_unit, 'weeks' ); ?>>
assets/js/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=257)}([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(){return Math.floor(9999*Math.random())}function l(){return"wrapper-"+n()+"-"+n()}function o(e,t){var a=void 0;return t.map(function(t){t.wrapper_id===e&&(a=t)}),a}function i(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a}function s(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 u(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 c(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9 ]/g,"").trim(),e=e.replace(/\s+/g,"-")}function p(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a>0}function f(e,t){var a=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&a.push(t)})}),a}function d(e,t){var a=[];return f(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 m(e,t){var a="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(a=t.field_label)})}),a}function h(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&a++})}),a>0}function b(e,t,a,r){var n=s(e.type,r);return _.extend(e,{element_id:e.type+"-"+n,formID:t,cols:a})}function y(e,t,a){var r=forminatorData.fields.find(function(t){return t.slug===e}),n=s(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 v(e){return e.type}function g(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function E(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t)))}function w(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t+1)))}function O(){return G.default.translate.apply(null,arguments)}function j(e,t){var a=_.filter(t,function(t){return t.family===e});return _.isUndefined(a[0])||_.isUndefined(a[0].variants)?[O("None")]:a[0].variants}function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}function k(e,t,a){var r=[];_.isUndefined(t)&&(t=["page-break","postdata","total","product","captcha"]);var n=!1;return _.isUndefined(a)||_.isUndefined(a.main_date_field)||!0!==a.main_date_field||(n=!0),e.map(function(e){e.fields.map(function(e){if(!_.contains(t,e.type)){var a=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(a=e.type,a=P(a)):a=e.field_label,"name"===e.type?r=r.concat(N(e,a)):"address"===e.type?r=r.concat(D(e,a)):"time"===e.type?r=r.concat(A(e,a)):"date"===e.type&&"picker"!==e.field_type&&!1===n||r.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:a,values:M(e),hasOptions:T(e),hasCalcs:S(e),formula:F(e),isNumber:C(e),fieldData:e}),"date"===e.type&&"picker"!==e.field_type&&(r=r.concat(x(e,a)))}})}),r}function x(e,t){var a=[],r=void 0;r=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+O("Day"):t+" - "+e.day_label;var n=void 0;n=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+O("Month"):t+" - "+e.month_label;var l=void 0;return l=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+O("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:l,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:M(e),hasOptions:T(e),isNumber:C(e)},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:n,values:M(e),hasOptions:T(e),isNumber:C(e)},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:l,values:M(e),hasOptions:T(e),isNumber:C(e)}),a}function N(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:"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:M(e),hasOptions:T(e),isNumber:C(e)}),a}function C(e){return"number"===e.type||"phone"===e.type||"calculation"===e.type}function S(e){return"true"===e.calculations||!0===e.calculations}function F(e){return!!e.formula&&e.formula}function T(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function M(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function D(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 A(e,t){var a=[],r=void 0;r=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+O("Hour"):t+" - "+e.hh_label;var n=void 0;return n=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+O("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 R(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 V(e,t,a){var r=_.isUndefined(a)?"":a;switch(e){case"is":if("checkbox"===t)return O("is having");if("checkbox"!==t)return O("is");case"is_not":if("checkbox"===t)return O("is not having");if("checkbox"!==t)return O("is not");case"day_is":return O("day is");case"day_is_not":return O("day is not");case"month_is_not":return O("month is not");case"month_is":return O("month is");case"is_before":return O("is before");case"is_after":return O("is after");case"is_before_n_or_more_days":return O("is before %s or more days from current date").replace("%s",r);case"is_before_less_than_n_days":return O("is before less than %s days from current date").replace("%s",r);case"is_after_n_or_more_days":return O("is after %s or more days from current date").replace("%s",r);case"is_after_less_than_n_days":return O("is after less than %s days from current date").replace("%s",r);case"is_great":return O("is greater than");case"is_less":return O("is less than");case"contains":return O("contains");case"starts":return O("starts with");case"ends":return O("ends with");case"is_correct":return O("is correct");case"is_incorrect":return O("is incorrect");default:return"-"}}function U(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,l=0;l<n;l++)if(!r[l].match(/^[a-z0-9-]+$/i))return!1;return!0}function L(){"object"===H(window.SUI)&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50)}function I(e){var t="none";return H(e["results-behav"])&&H(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function B(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),k(e,t)}function q(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 W(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 $(e,t,a,r){var n=0;return e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[a]&&n++})}),n>0}function Y(e){var t=0;return 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}Object.defineProperty(t,"__esModule",{value:!0});var H="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=l,t.getWrapper=o,t.countFieldsByType=i,t.getMaxIDByType=s,t.getMaxID=u,t.generateValue=c,t.hasFieldType=p,t.getFieldsByType=f,t.mapFieldsByType=d,t.getFieldLabel=m,t.fieldExist=h,t.buildFieldObject=b,t.buildFieldObjectFromSlug=y,t.getFieldType=v,t.getForminatorField=g,t.insertInPosition=E,t.replaceInPosition=w,t.translate=O,t.getFontVariants=j,t.ucfirst=P,t.getFields=k,t.getDateFields=x,t.getNameFields=N,t.fieldHasNumber=C,t.fieldHasCalcs=S,t.fieldFormula=F,t.fieldHasOptions=T,t.getFieldValues=M,t.getAddressFields=D,t.getTimeFields=A,t.getFieldAutofillProviders=R,t.getRuleLabel=V,t.isEmailWp=U,t.suiDelegateEvents=L,t.getChartType=I,t.getCalculationFields=B,t.select2Tags=q,t.isFieldRequired=W,t.hasFieldWithAttribute=$,t.hasPostdataFieldWithMultiselect=Y,t.getPersonalityQuestions=z;var Q=a(60),G=function(e){return e&&e.__esModule?e:{default:e}}(Q)},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 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 o=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 l(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",l=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,i=_.isUndefined(this.props.inputClass)?"sui-form-control":"sui-form-control "+this.props.inputClass,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",o({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:l+" "+n},p,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 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 o=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 l(t,e),o(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 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 o=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 l(t,e),o(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){e.exports=a(84)()},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 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 o=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 l(t,e),o(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 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)}),l="";this.props.label&&""!==this.props.label&&(l=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 o="";this.props.settingsLabel&&""!==this.props.settingsLabel&&(o=s.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var i="";!this.props.label&&this.props.settingsDesc&&(i=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc));var u=s.default.createElement("div",{className:"sui-side-tabs"},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n));return this.props.simple||(u=s.default.createElement("div",{className:"sui-form-field"},o,l,i,s.default.createElement("div",{className:"sui-side-tabs"},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n)))),u}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(83),n=a(48),l=a(87);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 l.a})},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 l(){v===y&&(v=y.slice())}function o(){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 l(),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,l();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(o())}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:o,replaceReducer:u},p[f.a]=c,p}function l(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 o(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{o(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={},o=0;o<i.length;o++){var u=i[o],c=a[u],p=e[u],f=c(p,t);if(void 0===f){var d=l(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 l=a[n],o=e[l];"function"==typeof o&&(r[l]=s(o,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 l=e.apply(void 0,r),o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:l.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(e){return e(i)});return o=c.apply(void 0,s)(l.dispatch),h({},l,{dispatch:o})}}}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(90),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,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 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 o=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 l(t,e),o(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,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 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 o=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 l(t,e),o(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"),l=e.closest(".wp-picker-container"),o=l.find(".wp-color-result"),i=o.find(".color-alpha"),s=l.find(".wp-picker-clear"),u=i;u=!0===e.data("alpha")?i:o,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(),o.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){return"[object Array]"===j.call(e)}function n(e){return"[object ArrayBuffer]"===j.call(e)}function l(e){return"undefined"!=typeof FormData&&e instanceof FormData}function o(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]"===j.call(e)}function f(e){return"[object File]"===j.call(e)}function d(e){return"[object Blob]"===j.call(e)}function m(e){return"[object Function]"===j.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 l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.call(null,e[l],l,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(69),O=a(151),j=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:n,isBuffer:O,isFormData:l,isArrayBufferView:o,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";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 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 o=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 l(t,e),o(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.suiSelect(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,l="";this.props.label&&(l=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 o=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}},this.props.children),i=o;"md"===this.props.fieldSize||"medium"===this.props.fieldSize?i=s.default.createElement("div",{class:"sui-form-field sui-input-md"},o):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?i=s.default.createElement("div",{class:"sui-form-field sui-input-sm"},o):""!==this.props.fieldSize&&(i=s.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},o));var u=i;return this.props.simple||(u=s.default.createElement("div",{className:a},l,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";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,l,o,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,l,o,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 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 o=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 l(t,e),o(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 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 o=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 l(t,e),o(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"},this.props.label));var a="";this.props.description&&""!==this.props.description&&(a=s.default.createElement("span",{className:"sui-description"},this.props.description));var r="";return(this.props.label&&""!==this.props.label||this.props.description&&""!==this.props.description)&&(r=s.default.createElement("div",{className:"sui-box-settings-col-1"},t,a)),s.default.createElement("div",{className:"sui-box-settings-row"},r,s.default.createElement("div",{className:"sui-box-settings-col-2"},e))}}]),t}(i.Component);t.default=u},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 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 o=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 l(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",o({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 l="";!this.props.label&&this.props.settingsLabel&&(l=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,l,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(106);a.d(t,"BrowserRouter",function(){return r.a});var n=a(112);a.d(t,"HashRouter",function(){return n.a});var l=a(55);a.d(t,"Link",function(){return l.a});var o=a(113);a.d(t,"MemoryRouter",function(){return o.a});var i=a(115);a.d(t,"NavLink",function(){return i.a});var s=a(117);a.d(t,"Prompt",function(){return s.a});var u=a(119);a.d(t,"Redirect",function(){return u.a});var c=a(56);a.d(t,"Route",function(){return c.a});var p=a(36);a.d(t,"Router",function(){return p.a});var f=a(121);a.d(t,"StaticRouter",function(){return f.a});var d=a(123);a.d(t,"Switch",function(){return d.a});var m=a(125);a.d(t,"generatePath",function(){return m.a});var h=a(126);a.d(t,"matchPath",function(){return h.a});var b=a(127);a.d(t,"withRouter",function(){return b.a})},function(e,t,a){"use strict";var r=a(107);a.d(t,"a",function(){return r.a});var n=a(110);a.d(t,"b",function(){return n.a});var l=a(111);a.d(t,"d",function(){return l.a});var o=a(29);a.d(t,"c",function(){return o.a}),a.d(t,"f",function(){return o.b});var i=a(25);a.d(t,"e",function(){return i.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 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 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 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(292),d=r(f),m=a(18),h=r(m),b=function(e){function t(e){n(this,t);var a=l(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,null,{main_date_field:!0}),a.fields=_.filter(a.fields,function(e){return e.element_id!==a.props.state.element_id}),a.fields=_.filter(a.fields,function(e){return"stripe"!==e.field_type&&"paypal"!==e.field_type&&"page-break"!==e.field_type&&"pagination"!==e.field_type&&"section"!==e.field_type&&"html"!==e.field_type}),"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 o(t,e),s(t,[{key:"updateState",value:function(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:")))),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",{className:"sui-notice sui-notice-error fui-visibility-notice"},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"},(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"}),(0,p.translate)("Add Rule")),c.default.createElement("p",null,(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.")),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>1)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},(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"}),(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 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 o=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.afterSave=a.afterSave.bind(a),a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el);var e=Object.assign({dropdownCssClass:"sui-select-dropdown"},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(e):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(e):console.log("select2 not intiated"),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{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,r=void 0;this.props.label&&(r=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,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 n=this.props.multiple,l=s.default.createElement("select",{id:"forminator-field-"+this.props.property,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:n},this.props.children),o=s.default.createElement("select",{id:"forminator-field-"+this.props.property,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:n},this.props.children);return"md"===this.props.fieldSize||"medium"===this.props.fieldSize?o=s.default.createElement("div",{className:"sui-form-field sui-input-md"},l):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?o=s.default.createElement("div",{className:"sui-form-field sui-input-sm"},l):""===this.props.fieldSize&&(o=s.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},l)),this.props.noWrapper?l:s.default.createElement("div",{className:a},r,o,this.props.description&&s.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))}}]),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 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 o=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 l(t,e),o(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",null,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";a.d(t,"a",function(){return r}),a.d(t,"f",function(){return n}),a.d(t,"c",function(){return l}),a.d(t,"e",function(){return o}),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},l=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},o=function(e,t){return l(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 l=t.indexOf("?");return-1!==l&&(a=t.substr(l),t=t.substr(0,l)),{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){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 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 o=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 l(t,e),o(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=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,checked:t?"checked":"",onChange:function(t){e.updateValue(t.target.checked)}}),s.default.createElement("span",{className:"sui-toggle-slider"}),this.props.label&&s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",this.props.label)),n="";return this.props.label&&(n=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property},this.props.label)),this.props.unWrap?s.default.createElement(s.default.Fragment,null,r,n,this.props.description&&s.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description)):this.props.unWrap?void 0:s.default.createElement("div",{className:"sui-form-field"},r,n,this.props.description&&s.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description))}}]),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(108),n=a(109),l=a(25),o=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(l.d)(e),i.state=t):(i=o({},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,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 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 o=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 l(t,e),o(t,[{key:"initialize",value:function(){jQuery("#forminator-notification").length?(jQuery("#forminator-notification").remove(),this.initialize()):jQuery("main.sui-wrap").append('<div id="forminator-notification" class="sui-notice-top sui-notice-'+this.props.type+' sui-can-dismiss"><div class="sui-notice-content"><p>'+this.props.text+'</p></div><span class="sui-notice-dismiss"><a role="button" href="#" aria-label="Dismiss" class="sui-icon-check"></a></span></div>'),this.$notification=jQuery("#forminator-notification")}},{key:"open",value:function(){this.initialize();var e=this;jQuery(".sui-notice-dismiss a").click(function(t){return t.preventDefault(),e.close(),!1}),_.isUndefined(this.props.time)||setTimeout(function(){e.close()},this.props.time)}},{key:"close",value:function(){jQuery("#forminator-notification").stop().slideUp("slow")}}]),t}(i.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 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 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 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(16),f=r(p),d=function(e){function t(e){n(this,t);var a=l(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 o(t,e),i(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,l="password"===n&&!_.isUndefined(this.props.state["confirm-password"])&&this.props.state["confirm-password"];return u.default.createElement(f.default,null,u.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,c.translate)("Require")),u.default.createElement("span",{className:"sui-description"},(0,c.translate)("Force users to fill out this field, otherwise it will be optional.")),u.default.createElement("div",{className:"sui-tabs sui-side-tabs",style:{marginTop:"10px"}},u.default.createElement("div",{className:"sui-tabs-menu"},u.default.createElement("div",{className:"sui-tab-item"+(t?"":" active"),onClick:this.toggleValue.bind(this,!1)},(0,c.translate)("Optional")),u.default.createElement("div",{className:"sui-tab-item"+(t?" active":""),onClick:this.toggleValue.bind(this,!0)},(0,c.translate)("Required"))),u.default.createElement("div",{className:"sui-tabs-content"},u.default.createElement("div",{className:"sui-tab-boxed"+(t?" active":"")},u.default.createElement("div",{className:"sui-form-field"},"password"===n&&u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Password error message")),"password"!==n&&u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Error message")),u.default.createElement("input",{type:"text",value:a,placeholder:(0,c.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)}})),l&&u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Confirm Password error message")),u.default.createElement("input",{type:"text",value:r,placeholder:(0,c.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)}})),t&&"select"===n&&u.default.createElement("div",{className:"sui-notice"},u.default.createElement("p",null,(0,c.translate)("Options without a value will be treated as empty options")))))))}}]),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 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 o=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.updateEditor=a.updateEditor.bind(a),a.toggleOptions=a.toggleOptions.bind(a),a.state={editorOptionsOpen:!1},a}return l(t,e),o(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);_.isUndefined(this.props.cutomTinymce)?wp.editor.initialize("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),{tinymce:!0,quicktags:!0}):wp.editor.initialize("forminator-field-"+(this.props.property+!_.isUndefined(this.props.extraId)?this.props.extraId:""),{tinymce:{toolbar1:this.props.cutomTinymce},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){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&&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)),!_.isUndefined(n[0])&&n&&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",l=void 0;_.isEmpty(a)||(l=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 o="";return this.props.label&&(o=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},o,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")},l,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)}})),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){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.a=r},function(e,t,a){"use strict";var r=a(28),n=a.n(r),l=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,l){if(null!=e){var o="function"==typeof e?e(t,a):e;"string"==typeof o?"function"==typeof r?r(o,l):(n()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),l(!0)):l(!1!==o)}else l(!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=l},function(e,t,a){"use strict";var r=a(37);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 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 o=a(17),i=a.n(o),s=a(14),u=a.n(s),c=a(0),p=a.n(c),f=a(5),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,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.state={match:l.computeMatch(l.props.history.location.pathname)},o=a,n(l,o)}return l(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(58),n=a.n(r),l={},o=0,i=function(e,t){var a=""+t.end+t.strict+t.sensitive,r=l[a]||(l[a]={});if(r[e])return r[e];var i=[],s=n()(e,i,t),u={re:s,keys:i};return o<1e4&&(r[e]=u,o++),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,l=r.exact,o=void 0!==l&&l,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:o,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 o&&!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),l=n>>8,o=255&n;l?a.push(l,o):a.push(o)}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 l(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e,t){for(var a="",r=0;r<e.length;r++){var n=e[r];"little"===t&&(n=l(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 l=new Array(n/4),o=0,i=t;o<l.length;o++,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],l[o]=s>>>0}return l}function c(e,t){for(var a=new Array(4*e.length),r=0,n=0;r<e.length;r++,n+=4){var l=e[r];"big"===t?(a[n]=l>>>24,a[n+1]=l>>>16&255,a[n+2]=l>>>8&255,a[n+3]=255&l):(a[n+3]=l>>>24,a[n+2]=l>>>16&255,a[n+1]=l>>>8&255,a[n]=255&l)}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],l=e[t+1],o=r+l>>>0,i=(o<r?1:0)+a+n;e[t]=i>>>0,e[t+1]=o}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,l,o,i){var s=0,u=t;return u=u+r>>>0,s+=u<t?1:0,u=u+l>>>0,s+=u<l?1:0,u=u+i>>>0,s+=u<i?1:0,e+a+n+o+s>>>0}function _(e,t,a,r,n,l,o,i){return t+r+l+i>>>0}function w(e,t,a,r,n,l,o,i,s,u){var c=0,p=t;return p=p+r>>>0,c+=p<t?1:0,p=p+l>>>0,c+=p<l?1:0,p=p+i>>>0,c+=p<i?1:0,p=p+u>>>0,c+=p<u?1:0,e+a+n+o+s+c>>>0}function O(e,t,a,r,n,l,o,i,s,u){return t+r+l+i+u>>>0}function j(e,t,a){return(t<<32-a|e>>>a)>>>0}function P(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(62),C=a(63);t.inherits=C,t.toArray=r,t.toHex=n,t.htonl=l,t.toHex32=o,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=j,t.rotr64_lo=P,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),l=a(153),o={"Content-Type":"application/x-www-form-urlencoded"},i={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=a(70):void 0!==t&&(e=a(70)),e}(),transformRequest:[function(e,t){return l(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(o)}),e.exports=i}).call(t,a(61))},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 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 o=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 l=_.isUndefined(a.props.defaultValue)?"":a.props.defaultValue,o=_.isUndefined(a.props.settings[a.props.property])?l:a.props.settings[a.props.property];return a.state={value:o},a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),SUI.suiSelect(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)})}},{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:"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",l="",o="input";return"textarea"===this.props.type&&(o="textarea"),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))),s.default.createElement("div",{className:"sui-form-field "+n},l,s.default.createElement("div",{className:"sui-insert-variables"},"input"===o&&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"===o&&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.state.rows}),s.default.createElement("select",{ref:function(t){return e.el=t}},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){"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";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 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 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 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(4)),m=(r(d),a(2)),h=r(m),b=a(16),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=(_.isUndefined(this.props.state["custom-class"])||this.props.state["custom-class"],_.isUndefined(this.props.prefix)?"":this.props.prefix+"_");return c.default.createElement(y.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Pre-populate")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(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.")),c.default.createElement("div",{style:{width:"100%",maxWidth:"240px"}},c.default.createElement(h.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Query parameter (optional)"),placeholder:(0,p.translate)("E.g. query_parameter_key"),property:e+"prefill"}))),this.props.notice&&c.default.createElement("span",{className:"sui-description"},this.props.notice)))}}]),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 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 o=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 l(t,e),o(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,l=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",{className:"sui-accordion-item "+r},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("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",{class:"sui-screen-reader-text"},!1===this.state.open?"Open":"Close")))),s.default.createElement("div",{className:"sui-accordion-item-body"},!1===n?a&&l:s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},a&&l),n)))}}]),t}(i.Component));t.default=u},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 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 o=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 l(t,e),o(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))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";a.d(t,"b",function(){return l}),a.d(t,"a",function(){return o});var r=a(5),n=a.n(r),l=n.a.shape({trySubscribe:n.a.func.isRequired,tryUnsubscribe:n.a.func.isRequired,notifyNestedSubs:n.a.func.isRequired,isSubscribed:n.a.func.isRequired}),o=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 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)}function o(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,j=u.shouldHandleStateChanges,P=void 0===j||j,k=u.storeKey,x=void 0===k?"store":k,N=u.withRef,C=void 0!==N&&N,S=o(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),F=x+"Subscription",T=v++,M=(t={},t[x]=b.a,t[F]=b.b,t),D=(a={},a[F]=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",o=f(a),u=y({},S,{getDisplayName:f,methodName:_,renderCountProp:O,shouldHandleStateChanges:P,storeKey:x,withRef:C,displayName:o,wrappedComponentName:a,WrappedComponent:t}),c=function(a){function c(e,t){r(this,c);var l=n(this,a.call(this,e,t));return l.version=T,l.state={},l.renderCount=0,l.store=e[x]||t[x],l.propsMode=Boolean(e[x]),l.setWrappedInstance=l.setWrappedInstance.bind(l),d()(l.store,'Could not find "'+x+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+x+'" as a prop to "'+o+'".'),l.initSelector(),l.initSubscription(),l}return l(c,a),c.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[F]=t||this.context[F],e},c.prototype.componentDidMount=function(){P&&(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(P){var e=(this.propsMode?this.props:this.context)[F];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[F]=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=o,c.childContextTypes=D,c.contextTypes=M,c.propTypes=M,p()(c,t)}}t.a=u;var c=a(49),p=a.n(c),f=a(14),d=a.n(f),m=a(0),h=(a.n(m),a(86)),b=a(47),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]||l[h]||a&&a[h])){var b=u(t,h);try{o(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},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,p=c&&c(Object);e.exports=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";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 l(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 l=r(t,a);return"function"==typeof l&&(r.mapToProps=l,r.dependsOnOwnProps=n(l),l=r(t,a)),l},r}}t.a=r,t.b=l;a(52)},function(e,t,a){"use strict";a(93),a(34)},function(e,t,a){"use strict";var r=a(95),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 l}),a.d(t,"c",function(){return o}),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)},l=function(e,t,a){return e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent("on"+t,a)},o=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 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 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 i=a(0),s=a.n(i),u=a(5),c=a.n(u),p=a(14),f=a.n(p),d=a(20),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,o;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=l(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,l=a.to;n?t.replace(l):t.push(l)}},o=a,l(r,o)}return o(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 l=this.context.router.history,o="string"==typeof t?Object(d.c)(t,null,null,l.location):t,i=l.createHref(o);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(57);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 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 o=a(17),i=a.n(o),s=a(14),u=a.n(s),c=a(0),p=a.n(c),f=a(5),d=a.n(f),m=a(38),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,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.state={match:l.computeMatch(l.props,l.context.router)},o=a,n(l,o)}return l(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,l=e.strict,o=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:l,exact:o,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,l=this.context.router,o=l.history,i=l.route,s=l.staticContext,u=this.props.location||i.location,c={match:e,location:u,history:o,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,l=0,o="",i=t&&t.delimiter||"/";null!=(a=v.exec(e));){var c=a[0],p=a[1],f=a.index;if(o+=e.slice(l,f),l=f+c.length,p)o+=p[1];else{var d=e[l],m=a[2],h=a[3],b=a[4],y=a[5],g=a[6],E=a[7];o&&(r.push(o),o="");var _=null!=m&&null!=d&&d!==m,w="+"===g||"*"===g,O="?"===g||"*"===g,j=a[2]||i,P=b||y;r.push({name:h||n++,prefix:m||"",delimiter:j,optional:O,repeat:w,partial:_,asterisk:!!E,pattern:P?u(P):E?".*":"[^"+s(j)+"]+?"})}}return l<e.length&&(o+=e.substr(l)),o&&r.push(o),r}function n(e,t){return i(r(e,t))}function l(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function o(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?l: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?o(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,l="",o=0;o<e.length;o++){var i=e[o];if("string"==typeof i)l+=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+")",l+=f}}var d=s(a.delimiter||"/"),m=l.slice(-d.length)===d;return r||(l=(m?l.slice(0,-d.length):l)+"(?:"+d+"(?=$))?"),l+=n?"$":r&&m?"":"(?="+d+"|$)",c(new RegExp("^"+l,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(116);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(58),n=a.n(r),l={},o=0,i=function(e){var t=e,a=l[t]||(l[t]={});if(a[e])return a[e];var r=n.a.compile(e);return o<1e4&&(a[e]=r,o++),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(130),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(144)(n),$this:n,I18N:r}},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 l(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 o(){h&&d&&(h=!1,d.length?m=d.concat(m):b=-1,m.length&&i())}function i(){if(!h){var e=n(o);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,l(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){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 l(e){return"object"==typeof e&&null!==e}function o(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||l(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],o(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(l(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]?l(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,l(this._events[e])&&!this._events[e].warned&&(n=o(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,o,i;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=this._events[e],o=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(l(a)){for(i=o;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,l,o,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,l,o,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=M(e)||d(e)?r(e.length,String):[],n=a.length,l=!!n;for(var o in e)!t&&!x.call(e,o)||l&&("length"==o||u(o,n))||a.push(o);return a}function l(e,t,a){var r=e[t];x.call(e,t)&&f(r,a)&&(void 0!==a||t in e)||(e[t]=a)}function o(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=F(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,l=F(r.length-t,0),o=Array(l);++n<l;)o[n]=r[t+n];n=-1;for(var i=Array(t+1);++n<t;)i[n]=r[n];return i[t]=o,a(e,this,i)}}function s(e,t,a,r){a||(a={});for(var n=-1,o=t.length;++n<o;){var i=t[n],s=r?r(a[i],e[i],i,a,e):void 0;l(a,i,void 0===s?e[i]:s)}return a}function u(e,t){return!!(t=null==t?_:t)&&("number"==typeof e||P.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==j}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):o(e)}var _=9007199254740991,w="[object Arguments]",O="[object Function]",j="[object GeneratorFunction]",P=/^(?: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),F=Math.max,T=!C.call({valueOf:1},"valueOf"),M=Array.isArray,D=function(e){return i(function(t,a){var r=-1,n=a.length,l=n>1?a[n-1]:void 0,o=n>2?a[2]:void 0;for(l=e.length>3&&"function"==typeof l?(n--,l):void 0,o&&c(a[0],a[1],o)&&(l=n<3?void 0:l,n=1),t=Object(t);++r<n;){var i=a[r];i&&e(t,i,r,l)}return t})}(function(e,t){if(T||p(t)||m(t))return void s(t,E(t),e);for(var a in t)x.call(t,a)&&l(e,a,t[a])});e.exports=D},function(e,t,a){e.exports=a(150)},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(154),l=a(156),o=a(157),i=a(158),s=a(71),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||a(159);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(),l(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?o(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,l={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,l),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(160),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(155);e.exports=function(e,t,a,n,l){var o=new Error(e);return r(o,t,a,n,l)}},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=a(168),n=a(169),l=a(76);e.exports={formats:l,parse:n,stringify: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}(),l=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},o=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 l=t;return Array.isArray(t)&&!Array.isArray(a)&&(l=o(t,n)),Array.isArray(t)&&Array.isArray(a)?(a.forEach(function(a,l){r.call(t,l)?t[l]&&"object"==typeof t[l]?t[l]=e(t[l],a,n):t.push(a):t[l]=a}),t):Object.keys(a).reduce(function(t,l){var o=a[l];return r.call(t,l)?t[l]=e(t[l],o,n):t[l]=o,t},l)},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 l=t.charCodeAt(r);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?a+=t.charAt(r):l<128?a+=n[l]:l<2048?a+=n[192|l>>6]+n[128|63&l]:l<55296||l>=57344?a+=n[224|l>>12]+n[128|l>>6&63]+n[128|63&l]:(r+=1,l=65536+((1023&l)<<10|1023&t.charCodeAt(r)),a+=n[240|l>>18]+n[128|l>>12&63]+n[128|l>>6&63]+n[128|63&l])}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],o=n.obj[n.prop],i=Object.keys(o),s=0;s<i.length;++s){var u=i[s],c=o[u];"object"==typeof c&&null!==c&&-1===a.indexOf(c)&&(t.push({obj:o,prop:u}),a.push(c))}return l(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:o,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 l.default.createElement("hr",{className:"fui-border"})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n)},,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.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){"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 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)}function o(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",a=arguments[1],o=a||t+"Subscription",s=function(e){function a(l,o){r(this,a);var i=n(this,e.call(this,l,o));return i[t]=l.store,i}return l(a,e),a.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[o]=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[o]=c.b,e),s}t.a=o;var i=a(0),s=(a.n(i),a(5)),u=a.n(s),c=a(47);a(34);t.b=o()},function(e,t,a){"use strict";function r(){}var n=a(85);e.exports=function(){function e(e,t,a,r,l,o){if(o!==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=l,e=l},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!==l&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(a),1))}}}}a.d(t,"a",function(){return i});var l=null,o={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=o}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=o)},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 l(e,t){return e===t}var o=a(48),i=a(88),s=a(89),u=a(102),c=a(103),p=a(104),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?o.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,o){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?l: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,j=r(s,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),P=n(e,m,"mapStateToProps"),k=n(t,b,"mapDispatchToProps"),x=n(o,v,"mergeProps");return a(E,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:P,initMapDispatchToProps:k,initMergeProps:x,pure:c,areStatesEqual:d,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:O},j))}}()},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 o=0;o<a.length;o++)if(!l.call(t,a[o])||!r(e[a[o]],t[a[o]]))return!1;return!0}t.a=n;var l=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 l(e){return e&&"object"==typeof e?Object(i.a)(function(t){return Object(o.bindActionCreators)(e,t)}):void 0}var o=a(8),i=a(51);t.a=[r,n,l]},function(e,t,a){"use strict";(function(e,r){var n,l=a(92);n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(l.a)(n);t.a=o}).call(t,a(50),a(91)(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(o.a)(e)||Object(n.a)(e)!=i)return!1;var t=Object(l.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(94),l=a(99),o=a(101),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(l.a)(e):Object(o.a)(e)}var n=a(53),l=a(97),o=a(98),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(96),n="object"==typeof self&&self&&self.Object===Object&&self,l=r.a||n||Function("return this")();t.a=l},function(e,t,a){"use strict";(function(e){var a="object"==typeof e&&e&&e.Object===Object&&e;t.a=a}).call(t,a(50))},function(e,t,a){"use strict";function r(e){var t=o.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(53),l=Object.prototype,o=l.hasOwnProperty,i=l.toString,s=n.a?n.a.toStringTag:void 0;t.a=r},function(e,t,a){"use strict";function r(e){return l.call(e)}var n=Object.prototype,l=n.toString;t.a=r},function(e,t,a){"use strict";var r=a(100),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(l.b)(e,"mapStateToProps"):void 0}function n(e){return e?void 0:Object(l.a)(function(){return{}})}var l=a(51);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,l=!1,o=void 0;return function(t,a,i){var s=e(t,a,i);return l?r&&n(s,o)||(o=s):(l=!0,o=s),o}}}function l(e){return"function"==typeof e?n(e):void 0}function o(e){return e?void 0:function(){return r}}var i=(a(52),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=[l,o]},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,l){return a(e(n,l),t(r,l),l)}}function l(e,t,a,r,n){function l(n,l){return m=n,h=l,b=e(m,h),y=t(r,h),v=a(b,y,h),d=!0,v}function o(){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?o():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):l(e,t)}}function o(e,t){var a=t.initMapStateToProps,o=t.initMapDispatchToProps,i=t.initMergeProps,s=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=a(e,s),c=o(e,s),p=i(e,s);return(s.pure?l:n)(u,c,p,e,s)}t.a=o;a(105)},function(e,t,a){"use strict";a(34)},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 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 o=a(17),i=a.n(o),s=a(0),u=a.n(s),c=a(5),p=a.n(c),f=a(20),d=a(36),m=function(e){function t(){var a,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.history=Object(f.a)(l.props),o=a,n(l,o)}return l(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),l=a(14),o=a.n(l),i=a(29),s=a(25),u=a(35),c=a(54),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]:{};o()(c.b,"Browser history needs a DOM");var t=window.history,a=Object(c.g)(),r=!Object(c.h)(),l=e.forceRefresh,m=void 0!==l&&l,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,l=window.location,o=l.pathname,u=l.search,c=l.hash,p=o+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)},j=function(e){Object(c.d)(e)||x(E(e.state))},P=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,D(n))},C=E(d()),S=[C.key],F=function(e){return g+Object(s.b)(e)},T=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 l=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(l,"PUSH",b,function(e){if(e){var r=F(l),o=l.key,i=l.state;if(a)if(t.pushState({key:o,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(l.key),S=u,O({action:"PUSH",location:l})}else n()(void 0===i,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},M=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 l=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(l,"REPLACE",b,function(e){if(e){var r=F(l),o=l.key,i=l.state;if(a)if(t.replaceState({key:o,state:i},null,r),m)window.location.replace(r);else{var s=S.indexOf(q.location.key);-1!==s&&(S[s]=l.key),O({action:"REPLACE",location:l})}else n()(void 0===i,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},D=function(e){t.go(e)},A=function(){return D(-1)},R=function(){return D(1)},V=0,U=function(e){V+=e,1===V?(Object(c.a)(window,"popstate",j),r&&Object(c.a)(window,"hashchange",P)):0===V&&(Object(c.e)(window,"popstate",j),r&&Object(c.e)(window,"hashchange",P))},L=!1,I=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=w.setPrompt(e);return L||(U(1),L=!0),function(){return L&&(L=!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:F,push:T,replace:M,go:D,goBack:A,goForward:R,block:I,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 l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e&&e.split("/")||[],l=t&&t.split("/")||[],o=e&&r(e),i=t&&r(t),s=o||i;if(e&&r(e)?l=a:a.length&&(l.pop(),l=l.concat(a)),!l.length)return"/";var u=void 0;if(l.length){var c=l[l.length-1];u="."===c||".."===c||""===c}else u=!1;for(var p=0,f=l.length;f>=0;f--){var d=l[f];"."===d?n(l,f):".."===d?(n(l,f),p++):p&&(n(l,f),p--)}if(!s)for(;p--;p)l.unshift("..");!s||""===l[0]||l[0]&&r(l[0])||l.unshift("");var m=l.join("/");return u&&"/"!==m.substr(-1)&&(m+="/"),m}t.a=l},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 l=e.valueOf(),o=t.valueOf();if(l!==e||o!==t)return r(l,o);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),l=a(14),o=a.n(l),i=a(29),s=a(25),u=a(35),c=a(54),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]:{};o()(c.b,"Hash history needs a DOM");var t=window.history,a=Object(c.f)(),r=e.getUserConfirmation,l=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)(),j=function(e){p(Y,e),Y.length=t.length,O.notifyListeners(Y.location,Y.action)},P=!1,k=null,x=function(){var e=d(),t=E(e);if(e!==t)h(t);else{var a=w(),r=Y.location;if(!P&&Object(i.b)(r,a))return;if(k===Object(s.b)(a))return;k=null,N(a)}},N=function(e){if(P)P=!1,j();else{O.confirmTransitionTo(e,"POP",l,function(t){t?j({action:"POP",location:e}):C(e)})}},C=function(e){var t=Y.location,a=M.lastIndexOf(Object(s.b)(t));-1===a&&(a=0);var r=M.lastIndexOf(Object(s.b)(e));-1===r&&(r=0);var n=a-r;n&&(P=!0,V(n))},S=d(),F=E(S);S!==F&&h(F);var T=w(),M=[Object(s.b)(T)],D=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,Y.location);O.confirmTransitionTo(a,"PUSH",l,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);if(d()!==r){k=t,m(r);var l=M.lastIndexOf(Object(s.b)(Y.location)),o=M.slice(0,-1===l?0:l+1);o.push(t),M=o,j({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"),j()}})},R=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,Y.location);O.confirmTransitionTo(a,"REPLACE",l,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);d()!==r&&(k=t,h(r));var n=M.indexOf(Object(s.b)(Y.location));-1!==n&&(M[n]=t),j({action:"REPLACE",location:a})}})},V=function(e){n()(a,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},U=function(){return V(-1)},L=function(){return V(1)},I=0,B=function(e){I+=e,1===I?Object(c.a)(window,"hashchange",x):0===I&&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()}},Y={length:t.length,action:"POP",location:T,createHref:D,push:A,replace:R,go:V,goBack:U,goForward:L,block:W,listen:$};return Y};t.a=b},function(e,t,a){"use strict";var r=a(28),n=a.n(r),l=a(25),o=a(29),i=a(35),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(o.a)(e,void 0,y()):Object(o.a)(e,void 0,e.key||y())}),E=l.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(o.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(o.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()})},j=function(){return O(-1)},P=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:j,goForward:P,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 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 o=a(17),i=a.n(o),s=a(0),u=a.n(s),c=a(5),p=a.n(c),f=a(20),d=a(36),m=function(e){function t(){var a,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.history=Object(f.b)(l.props),o=a,n(l,o)}return l(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(114);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 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 o=a(17),i=a.n(o),s=a(0),u=a.n(s),c=a(5),p=a.n(c),f=a(20),d=a(37),m=function(e){function t(){var a,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.history=Object(f.d)(l.props),o=a,n(l,o)}return l(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),l=a.n(n),o=a(5),i=a.n(o),s=a(56),u=a(55),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,o=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 l.a.createElement(s.a,{path:g,exact:a,strict:n,location:o,children:function(e){var a=e.location,r=e.match,n=!!(h?h(r,a):r);return l.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(118);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 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 o=a(0),i=a.n(o),s=a(5),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 l(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(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 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 o=a(0),i=a.n(o),s=a(5),u=a.n(s),c=a(17),p=a.n(c),f=a(14),d=a.n(f),m=a(20),h=a(59),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 l(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(122);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 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 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 i=a(17),s=a.n(i),u=a(14),c=a.n(u),p=a(0),f=a.n(p),d=a(5),m=a.n(d),h=a(20),b=a(37),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(){},j=function(e){function t(){var a,r,o;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=l(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},o=a,l(r,o)}return o(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"]),l={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:l}))},t}(f.a.Component);j.propTypes={basename:m.a.string,context:m.a.object.isRequired,location:m.a.oneOfType([m.a.string,m.a.object])},j.defaultProps={basename:"",location:"/"},j.childContextTypes={router:m.a.object.isRequired},t.a=j},function(e,t,a){"use strict";var r=a(124);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 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 o=a(0),i=a.n(o),s=a(5),u=a.n(s),c=a(17),p=a.n(c),f=a(14),d=a.n(f),m=a(38),h=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return l(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 l=t.props,o=l.path,s=l.exact,u=l.strict,c=l.sensitive,p=l.from,f=o||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(59);t.a=r.a},function(e,t,a){"use strict";var r=a(38);t.a=r.a},function(e,t,a){"use strict";var r=a(128);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),l=a.n(n),o=a(5),i=a.n(o),s=a(49),u=a.n(s),c=a(57),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 l.a.createElement(c.a,{children:function(t){return l.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 l(e){var t,a=e[0],l={};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]&&(l=e[t]);if("string"==typeof a?l.original=a:"object"==typeof l.original&&(l.plural=l.original.plural,l.count=l.original.count,l.original=l.original.single),"string"==typeof e[1]&&(l.plural=e[1]),void 0===l.original)throw new Error("Translate called without a `string` value as first argument.");return l}function o(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=o(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(131)("i18n-wp-plugin"),p=a(134),f=a(135),d=a(64).EventEmitter,m=a(138).default,h=a(142),b=a(67),y=a(143),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"],o=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=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(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,l(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=i(this.state.jed,l(["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,l(arguments))},u.prototype.translate=function(){var e,t,a,r,n,o;if(e=l(arguments),o=!e.components){try{n=JSON.stringify(e)}catch(e){o=!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)}),o&&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 l(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,l=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(l=n))}),e.splice(l,0,r)}}function o(){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(132),t.log=o,t.formatArgs=l,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(61))},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,l=r-(n||r);e.diff=l,e.prev=n,e.curr=r,n=r;for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var s=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(a,r){if("%%"===a)return a;s++;var n=t.formatters[r];if("function"==typeof n){var l=o[s];a=n.call(e,l),o.splice(s,1),s--}return a}),t.formatArgs.call(e,o);(a.log||t.log||console.log.bind(console)).apply(e,o)}}var n;return a.namespace=e,a.enabled=t.enabled(e),a.useColors=t.useColors(),a.color=r(e),a.destroy=l,"function"==typeof t.init&&t.init(a),t.instances.push(a),a}function l(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(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 l=t.instances[a];l.enabled=t.enabled(l.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=o,t.enabled=s,t.humanize=a(133),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*o;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>=o?Math.round(e/o)+"s":e+"ms"}function n(e){return l(e,u,"day")||l(e,s,"hour")||l(e,i,"minute")||l(e,o,"second")||e+" ms"}function l(e,t,a){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+a:Math.ceil(e/t)+" "+a+"s"}var o=1e3,i=60*o,s=60*i,u=24*s,c=365.25*u;e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return a(e);if("number"===l&&!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 l(e,t){this._key=e,this._i18n=t}var o=Array.prototype,i=Object.prototype,s=o.slice,u=i.hasOwnProperty,c=o.forEach,p={},f={forEach:function(e,t,a){var r,n,l;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(l in e)if(u.call(e,l)&&t.call(a,e[l],l,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(l.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 l(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){/**
@@ -22,4 +22,4 @@ var n=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,o=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 o,response:new o}}var n=a(40),l=a(11),o=a(161),i=a(162);r.prototype.request=function(e){"string"==typeof e&&(e=l.merge({url:arguments[0]},arguments[1])),e=l.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},l.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,a){return this.request(l.merge(a||{},{method:e,url:t}))}}),l.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,a,r){return this.request(l.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(71);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 l;if(a)l=a(t);else if(n.isURLSearchParams(t))l=t.toString();else{var o=[];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)),o.push(r(t)+"="+r(e))}))}),l=o.join("&")}return l&&(e+=(-1===e.indexOf("?")?"?":"&")+l),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,l,o={};return e?(r.forEach(e.split("\n"),function(e){if(l=e.indexOf(":"),t=r.trim(e.substr(0,l)).toLowerCase(),a=r.trim(e.substr(l+1)),t){if(o[t]&&n.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([a]):o[t]?o[t]+", "+a:a}}),o):o}},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),o="",i=0,s=l;n.charAt(0|i)||(s="=",i%1);o+=s.charAt(63&t>>8-i%1*8)){if((a=n.charCodeAt(i+=.75))>255)throw new r;t=t<<8|a}return o}var l="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,l,o){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(l)&&i.push("domain="+l),!0===o&&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),l=a(163),o=a(72),i=a(40),s=a(164),u=a(165);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=l(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=l(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(r(e),t&&t.response&&(t.response.data=l(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(73);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(75),n=a(76),l={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Date.prototype.toISOString,i={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return o.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(t,a,n,l,o,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(l)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];o&&null===h[E]||(b=Array.isArray(h)?b.concat(e(h[E],n(a,E),n,l,o,s,u,c,p,f,d,m)):b.concat(e(h[E],a+(p?"."+E:"["+E+"]"),n,l,o,s,u,c,p,f,d,m)))}return b};e.exports=function(e,t){var a=e,o=t?r.assign({},t):{};if(null!==o.encoder&&void 0!==o.encoder&&"function"!=typeof o.encoder)throw new TypeError("Encoder has to be a function.");var u=void 0===o.delimiter?i.delimiter:o.delimiter,c="boolean"==typeof o.strictNullHandling?o.strictNullHandling:i.strictNullHandling,p="boolean"==typeof o.skipNulls?o.skipNulls:i.skipNulls,f="boolean"==typeof o.encode?o.encode:i.encode,d="function"==typeof o.encoder?o.encoder:i.encoder,m="function"==typeof o.sort?o.sort:null,h=void 0!==o.allowDots&&o.allowDots,b="function"==typeof o.serializeDate?o.serializeDate:i.serializeDate,y="boolean"==typeof o.encodeValuesOnly?o.encodeValuesOnly:i.encodeValuesOnly;if(void 0===o.format)o.format=n.default;else if(!Object.prototype.hasOwnProperty.call(n.formatters,o.format))throw new TypeError("Unknown format option provided.");var v,g,E=n.formatters[o.format];"function"==typeof o.filter?(g=o.filter,a=g("",a)):Array.isArray(o.filter)&&(g=o.filter,v=g);var _=[];if("object"!=typeof a||null===a)return"";var w;w=o.arrayFormat in l?o.arrayFormat:"indices"in o?o.indices?"indices":"repeat":"indices";var O=l[w];v||(v=Object.keys(a)),m&&v.sort(m);for(var j=0;j<v.length;++j){var P=v[j];p&&null===a[P]||(_=_.concat(s(a[P],P,O,c,p,f?d:null,g,m,h,b,E,y)))}var k=_.join(u),x=!0===o.addQueryPrefix?"?":"";return k.length>0?x+k:""}},function(e,t,a){"use strict";var r=a(75),n=Object.prototype.hasOwnProperty,l={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},o=function(e,t){for(var a={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,i=r.split(t.delimiter,o),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,l.decoder),c=t.strictNullHandling?null:""):(u=t.decoder(p.slice(0,d),l.decoder),c=t.decoder(p.slice(d+1),l.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 l,o=e[n];if("[]"===o)l=[],l=l.concat(r);else{l=a.plainObjects?Object.create(null):{};var i="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,s=parseInt(i,10);!isNaN(s)&&o!==i&&String(s)===i&&s>=0&&a.parseArrays&&s<=a.arrayLimit?(l=[],l[s]=r):l[i]=r}r=l}return r},s=function(e,t,a){if(e){var r=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,s=l.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=o.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:l.delimiter,a.depth="number"==typeof a.depth?a.depth:l.depth,a.arrayLimit="number"==typeof a.arrayLimit?a.arrayLimit:l.arrayLimit,a.parseArrays=!1!==a.parseArrays,a.decoder="function"==typeof a.decoder?a.decoder:l.decoder,a.allowDots="boolean"==typeof a.allowDots?a.allowDots:l.allowDots,a.plainObjects="boolean"==typeof a.plainObjects?a.plainObjects:l.plainObjects,a.allowPrototypes="boolean"==typeof a.allowPrototypes?a.allowPrototypes:l.allowPrototypes,a.parameterLimit="number"==typeof a.parameterLimit?a.parameterLimit:l.parameterLimit,a.strictNullHandling="boolean"==typeof a.strictNullHandling?a.strictNullHandling:l.strictNullHandling,""===e||null===e||void 0===e)return a.plainObjects?Object.create(null):{};for(var n="string"==typeof e?o(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 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 o=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 l(t,e),o(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="",l=_.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.value,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,l))):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.value,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,l))}),n=s.default.Children.map(this.props.children,function(t){return"true"===e.props.radioContent&&"Empty"!==t.type.name?s.default.createElement("div",{className:"sui-border-frame"+(t.props.value===a?"":" sui-hidden"),style:{marginLeft:"0"}},t.props.value===a&&t):s.default.createElement(s.default.Fragment,null)}),l="";this.props.label&&""!==this.props.label&&(l=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 o="";this.props.description&&""!==this.props.description&&(o=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"},l,i,o,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 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 o=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 l(t,e),o(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-break .forminator-title ")}},(0,u.translate)("Section Title")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .forminator-break .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-label--helper ")}},(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--design ")}},(0,u.translate)("Answer Input")),s.default.createElement("a",{className:"sui-selector sui-insert-selector",onClick:function(){return e.insertSelector(" .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")))),l=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&&l,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";var r=a(173),n=function(e){return e&&e.__esModule?e:{default:e}}(r);!function(e,t,a,r){function l(e,t){this.$popup={},this._deferred={},this.el=e,this.$el=jQuery(this.el),this.options=_.extend(o,t),this.init()}var o={type:"form"};jQuery.extend(l.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},l=a.data("nonce"),o=a.data("slug"),i=a.data("title"),s=a.data("image"),u=a.data("imagex2"),c=a.data("action"),p=a.data("form-id"),f=a.data("multi-id"),d=a.data("poll-id"),m=a.data("quiz-id"),h=_.template('<div class="sui-dialog sui-dialog-alt sui-dialog-sm" id="forminator-integration-popup"><div class="sui-dialog-overlay sui-fade-in" tabindex="-1" data-a11y-dialog-hide=""></div><div class="sui-dialog-content sui-fade-in" aria-labelledby="dialogTitle" aria-describedby="dialogDescription" role="dialog"><div class="sui-box" role="document"><div class="sui-box-header sui-block-content-center"><div class="sui-dialog-image" aria-hidden="true"><img src="<%= image %>" srcset="<%= image %> 1x, <%= image_x2 %> 2x" alt="<%= title %>" class="sui-image sui-image-center" /></div><div class="integration-header"></div><button class="sui-dialog-back forminator-addon-back" aria-label="Back" style="display: none;"></button><button class="sui-dialog-close forminator-integration-close" aria-label="Close"></button></div><div class="sui-box-body"></div><div class="sui-box-footer sui-box-footer-center"></div></div></div></div>');jQuery("main.sui-wrap").append(h({image:s,image_x2:u,title:i})),this.$popup=jQuery("#forminator-integration-popup");var b={slug:o,nonce:l,action:c,multi_id:f,el:this.$popup,type:t.options.type};return"form"===t.options.type?b.form_id=p:"poll"===t.options.type?b.poll_id=d:"quiz"===t.options.type&&(b.quiz_id=m),new n.default(b).on("modal:closed",function(){t.close()}),this.$popup.find(".forminator-popup-action").remove(),this.$popup.find(".sui-dialog-close").on("click",r),this.$popup.find(".sui-dialog-overlay").on("click",r),this.$popup.on("click",".forminator-popup-cancel",r),this.$popup.find(".sui-dialog-overlay").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.find(".sui-dialog-content").removeClass("sui-fade-out").addClass("sui-fade-in"),this.$popup.removeAttr("aria-hidden"),jQuery("body").css("overflow","hidden"),this._deferred=new jQuery.Deferred,this._deferred.promise()},close:function(e){var t=jQuery("#forminator-integration-popup");t.find(".sui-dialog-overlay").removeClass("sui-fade-in").addClass("sui-fade-out"),t.find(".sui-dialog-content").removeClass("sui-fade-in").addClass("sui-fade-out"),jQuery("body").css("overflow","auto"),setTimeout(function(){t.attr("aria-hidden","true")},300),this.$el.trigger("reload"),this._deferred.resolve(this.$popup,e)}}),jQuery.fn.ForminatorIntegrationsModal=function(e){return this.each(function(){new l(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 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 o=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(30),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 l=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"}}));return l.slug=e.slug,l.nonce=e.nonce,l.action=e.action,l.multi_id=e.multi_id,l.type=e.type,l.step=0,l.next_step=!1,l.prev_step=!1,l.scrollbar_width=l.getScrollbarWidth(),"form"===l.type?l.form_id=e.form_id:"poll"===l.type?l.poll_id=e.poll_id:"quiz"===l.type&&(l.quiz_id=e.quiz_id),a=l.render(),n(l,a)}return l(t,e),o(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=this.getAjaxModuleData(e.data,!0),this.request(e,!1,!0)}},{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" aria-label="Loading content"><i class="sui-icon-loader sui-loading" aria-hidden="true"></i></p>'),this.$el.find(".sui-box-footer").html(""),this.$el.find(".integration-header").html("")),this.$el.find(".sui-button:not(.disable-loader)").addClass("sui-button-onload"),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.$el.find(".sui-button").removeClass("sui-button-onload"),(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 l=jQuery("#forminator-integration-popup");"normal"===a.size&&l.removeClass("sui-dialog-sm sui-dialog-lg"),"small"===a.size&&(l.addClass("sui-dialog-sm"),l.removeClass("sui-dialog-lg sui-dialog-reduced")),"reduced"===a.size&&(l.addClass("sui-dialog-reduced"),l.removeClass("sui-dialog-lg sui-dialog-sm")),"large"===a.size&&(l.addClass("sui-dialog-lg"),l.removeClass("sui-dialog-sm sui-dialog-reduced"))}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").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},10);jQuery("#forminator-integration-popup .sui-box").height()>jQuery(window).height()?jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",r.scrollbar_width+"px"):jQuery("#forminator-integration-popup .sui-dialog-overlay").css("right",0)}}),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 .integration-header").remove();t.length>0&&this.$el.find(".integration-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:"submitNextStep",value:function(e){var t={},a=this.$el.find("form"),r={slug:this.slug,step:this.getStep(),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(),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(),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(),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,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"form"===this.type&&this.form_id?e.form_id=this.form_id:"poll"===this.type&&this.poll_id?e.poll_id=this.poll_id:"quiz"===this.type&&this.quiz_id&&(e.quiz_id=this.quiz_id),t&&this.multi_id&&(e.multi_id=this.multi_id),e}},{key:"getAjaxModuleAction",value:function(e){switch(e){case"deactivate":"form"===this.type?e="forminator_addon_form_deactivate":"poll"===this.type?e="forminator_addon_poll_deactivate":"quiz"===this.type&&(e="forminator_addon_quiz_deactivate")}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 l(e){return"string"!=typeof e&&(e=String(e)),e}function o(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 j.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(){o.abort()}var l=new b(e,t);if(l.signal&&l.signal.aborted)return r(new k("Aborted","AbortError"));var o=new XMLHttpRequest;o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:v(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;a(new g(t,e))},o.onerror=function(){r(new TypeError("Network request failed"))},o.ontimeout=function(){r(new TypeError("Network request failed"))},o.onabort=function(){r(new k("Aborted","AbortError"))},o.open(l.method,l.url,!0),"include"===l.credentials?o.withCredentials=!0:"omit"===l.credentials&&(o.withCredentials=!1),"responseType"in o&&_.blob&&(o.responseType="blob"),l.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),l.signal&&(l.signal.addEventListener("abort",n),o.onreadystatechange=function(){4===o.readyState&&l.signal.removeEventListener("abort",n)}),o.send(void 0===l._bodyInit?null:l._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=l(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)]=l(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)}),o(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),o(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,a){e.push([a,t])}),o(e)},_.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var j=["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 P=[301,302,303,307,308];g.redirect=function(e,t){if(-1===P.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,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 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 o=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 l(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";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.updateValue=this.updateValue.bind(this)}},{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.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=void 0,n=void 0;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))),this.props.canTrash&&(n=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&&(n=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 l=_.isUndefined(this.props.id)?"forminator-field-"+this.props.property:"forminator-field-"+this.props.id,i=u.default.createElement("input",o({ref:function(t){return e.el=t},id:l,className:t,placeholder:this.props.placeholder,type:"text",autoComplete:"off"},this.props.onlyRead&&{'readonly="readonly"':""})),s=u.default.createElement("div",{className:"sui-form-field"+(this.props.mediumSize?" sui-input-md":"")},r,this.props.noCalendar?i:u.default.createElement("div",{className:"sui-date"},"left"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"}),i,"right"===a&&u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),u.default.createElement("div",{className:"sui-date"}),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description));return this.props.multiDate&&(s=u.default.createElement("div",{className:"sui-multi-date"},u.default.createElement("div",{className:"sui-form-field"+(this.props.mediumSize?" sui-input-md":"")},r,this.props.noCalendar?i:u.default.createElement("div",{className:"sui-date"},i,u.default.createElement("i",{className:"sui-icon-calendar","aria-hidden":"true"})),this.props.description&&u.default.createElement("span",{className:"sui-description"},this.props.description)),n)),s}}]),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 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 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 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(305),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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",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){"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 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 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 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(4),h=r(m),b=a(2),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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 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 o=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 l(t,e),o(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 l=s.default.Children.map(this.props.children,function(e){return e}),o=r&&l;return this.props.noBoxBody||(o=s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},r&&l))),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",null,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"},o))}}]),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 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 o=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 l(t,e),o(t,[{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,title:(0,u.translate)("Preview")},"preview"),jQuery("#forminator-custom-form-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,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 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 o=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)),l=_.isUndefined(a.props.prefix)?"":a.props.prefix+"_";return a.validProp=l+"validation",a.validTextProp=l+"validation_message",a}return l(t,e),o(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 l(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 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(304),m=r(d),h=function(e){function t(e){l(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.updateLimit=a.updateLimit.bind(a),a.updateDefault=a.updateDefault.bind(a),a.state={options:[].concat(n(a.props.state.options))},a}return i(t,e),u(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({helper:"clone",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)}},{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:"addOption",value:function(){var e=this.state.options,t=(0,f.randNumber)()+"-"+(0,f.randNumber)();e.push({label:"",value:"",limit:"",default:!1,key:t}),this.updateState(e)}},{key:"render",value:function(){var e=this,t=this.state.options;return p.default.createElement("div",{id:"demo-multi-options--radio",className:"sui-form-field",ref:function(t){return e.el=t}},p.default.createElement("label",{className:"sui-label"},(0,f.translate)("Options")),p.default.createElement("div",{className:"fui-multi-options"},_.map(t,function(t,a){return p.default.createElement(m.default,s({key:a,counter:a,option:t,removeOption:e.removeOption,updateValue:e.updateValue,updateLabel:e.updateLabel,updateLimit:e.updateLimit,updateDefault:e.updateDefault},e.props))}),p.default.createElement("button",{className:"fui-add-option",onClick:this.addOption},p.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,f.translate)("Add Option"))))}}]),t}(c.Component);t.default=h},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 l(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 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(22)),p=r(c),f=function(e){function t(e){l(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 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 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){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 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 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 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(182),f=(r(p),function(e){function t(e){n(this,t);var a=l(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),i(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1,title:(0,c.translate)("Insert Fields")},"insert-fields")}},{key:"openModal",value:function(){this.props.actions.modalActions.showModal({open:!0,title:(0,c.translate)("Insert Fields"),closeModal:this.closeModal},"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"}),(0,c.translate)(" Insert Fields")));var e=void 0;return 0===this.props.wrappers.length&&(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"}),(0,c.translate)("Insert Fields")),e)}}]),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 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 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 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(312),d=r(f),m=function(e){function t(e){n(this,t);var a=l(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 o(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 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 o=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 l(t,e),o(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}}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 l(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 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(19),d=a(1),m=a(21),h=r(m),b=a(23),y=r(b),v=a(9),g=r(v),E=a(4),_=r(E),w=a(2),O=r(w),j=function(e){function t(e){l(this,t);var a=o(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.state=a.props.settings.submitData||{},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(){this.props.actions.settingsActions.updateSetting("submitData",this.state),this.closeModal()}},{key:"render",value:function(){var e=this;return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,d.translate)("Edit Field")),p.default.createElement("div",{className:"sui-actions-left"},p.default.createElement("span",{className:"sui-tag sui-tag-draft"},(0,d.translate)("Submit"))),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},p.default.createElement("div",{className:"sui-tabs-menu"},p.default.createElement(f.NavLink,{to:"/builder/labels/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Labels")),p.default.createElement(f.NavLink,{to:"/builder/visibility/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Visibility")),p.default.createElement(f.NavLink,{to:"/builder/styling/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Styling"))),p.default.createElement(f.Route,{exact:!0,path:"/builder/",render:function(){return p.default.createElement(f.Redirect,{to:"/builder/labels"})}}),p.default.createElement("div",{className:"sui-tabs-content"},p.default.createElement("div",{className:"sui-tab-content active"},p.default.createElement(f.Route,{path:"/builder/labels",render:function(){return p.default.createElement(p.default.Fragment,null,p.default.createElement(g.default,null,p.default.createElement(_.default,{cols:"12"},p.default.createElement(O.default,s({},e.props,{settings:e.state,label:(0,d.translate)("Button text"),placeholder:(0,d.translate)("Enter text"),property:"custom-submit-text",updateProperty:e.updateProperty})))),p.default.createElement(g.default,null,p.default.createElement(_.default,{cols:"12"},p.default.createElement(O.default,s({},e.props,{settings:e.state,label:(0,d.translate)("Error message"),placeholder:(0,d.translate)("Enter message"),property:"custom-invalid-form-message",updateProperty:e.updateProperty})))))}}),p.default.createElement(f.Route,{path:"/builder/visibility",render:function(){return p.default.createElement(h.default,s({},e.props,{updateProperty:e.updateProperty,settings:e.state,state:e.state}))}}),p.default.createElement(f.Route,{path:"/builder/styling",render:function(){return p.default.createElement(y.default,s({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}))))),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),(0,d.translate)("Discard Changes")),p.default.createElement("div",{className:"sui-actions-right"},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"})))))}}]),t}(c.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 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 o=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.modal.modalProps.closeModal.bind(a),a.trashField=a.trashField.bind(a),a}return l(t,e),o(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"render",value:function(){return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"sui-box-header sui-block-content-center"},s.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,u.translate)("Delete Notification")),s.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,u.translate)("Close this dialog window"),onClick:this.closeModal})),s.default.createElement("div",{className:"sui-box-body sui-box-body-slim sui-block-content-center"},s.default.createElement("p",{className:"sui-description"},(0,u.translate)("Are you sure you wish to delete this Notification?"))),s.default.createElement("div",{className:"sui-box-footer sui-box-footer-center",style:{paddingTop:"0"}},s.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},(0,u.translate)("Cancel")),s.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},s.default.createElement("span",{className:"sui-loading-text"},s.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,u.translate)("DELETE")))))}}]),t}(i.Component);t.default=c},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}}var n=a(0),l=r(n),o=a(45),i=a(7),s=a(19),u=a(258),c=r(u),p=a(60),f=r(p),d=a(264),m=r(d),h=(0,c.default)(forminatorData.currentForm);f.default.setLocale(forminatorl10n.locale),window.forminatorChanges={fields:[],settings:!1},window.jQueryFormi=jQuery.noConflict(),(0,o.render)(l.default.createElement(i.Provider,{store:h},l.default.createElement(s.MemoryRouter,null,l.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){return c(u.default,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var l=a(8),o=a(129),i=r(o),s=a(259),u=r(s),c=(0,l.compose)((0,l.applyMiddleware)(i.default))(l.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(8),l=a(260),o=r(l),i=a(261),s=r(i),u=a(262),c=r(u),p=a(263),f=r(p),d=(0,n.combineReducers)({wrappers:o.default,settings:s.default,modal:c.default,notifications:f.default});t.default=d},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,o.replaceInPosition)(e,r,a)}function l(){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=l;var o=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 i({},e,a)}function l(e,t){var a=t.title;return e.formName=a,e}function o(){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"UPDATE_SETTING":return r(a,t);case"UPDATE_TITLE":return l(a,t);default:return e}}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};t.default=o},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(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,o.replaceInPosition)(e,r,a)}function l(){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=l;var o=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 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 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 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(45),p=(r(c),a(19)),f=(a(7),a(265)),d=r(f),m=a(269),h=r(m),b=a(273),y=r(b),v=a(277),g=r(v),E=a(285),_=r(E),w=a(343),O=r(w),j=a(385),P=r(j),k=a(391),x=r(k),N=a(395),C=r(N),S=a(403),F=r(S),T=a(407),M=r(T),D=a(409),A=r(D),R=a(1),V=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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,R.translate)("You have unsaved changes, are you sure want to leave this page"),(0,R.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:P.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:F.default}),u.default.createElement(p.Route,{path:"/integrations",component:M.default}),u.default.createElement(p.Route,{path:"/settings",component:A.default}))),u.default.createElement(_.default,this.props))}}]),t}(s.Component);t.default=V},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 l(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 o=a(7),i=a(8),s=a(80),u=r(s),c=a(42),p=r(c),f=a(249),d=r(f),m=a(266),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,o.connect)(n,l)(h.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return o.default.createElement("div",{className:"sui-header fui-header-with-settings"},o.default.createElement("div",{className:"fui-header-title"},o.default.createElement("h1",{className:"sui-header-title"},(0,i.translate)("Edit Form")),o.default.createElement("div",{className:"sui-actions-right"},o.default.createElement(p.default,e))),o.default.createElement("div",{className:"fui-header-settings"},o.default.createElement("div",{className:"sui-actions-left"},o.default.createElement(u.default,e)),o.default.createElement("div",{className:"sui-actions-right"},o.default.createElement(p.default,e))))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var l=a(0),o=r(l),i=a(1),s=a(267),u=r(s),c=a(268),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 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 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 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(149),d=r(f),m=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props.title,a=_.isEmpty(t)?"sui-form-field-error":"",r={};return"leads"===this.props.formType&&(r={borderColor:"#ddd",backgroundColor:"#fafafa",color:"#666"}),c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-form-field "+a},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:r,"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:_.isEmpty(t)?"block":"none",marginBottom:0}},_.isEmpty(t)&&(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?l.default.createElement("a",{href:"https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/#forms",target:"_blank",className:"sui-button sui-button-ghost"},l.default.createElement("span",{className:"sui-icon-academy"})," ",(0,o.translate)("View Documentation")):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n),o=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 l(e){return{actions:{navigationActions:(0,i.bindActionCreators)(p,e),modalActions:(0,i.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(7),i=a(8),s=a(42),u=r(s),c=a(249),p=r(c),f=a(270),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,o.connect)(n,l)(d.default)},function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){return o.default.createElement("div",{className:"sui-sidenav fui-sidenav"},o.default.createElement(s.default,e))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var l=a(0),o=r(l),i=a(271),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 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 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 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(19),p=a(1),f=a(272),d=r(f),m=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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)("Behaviour"))),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",{class:"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",{class:"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)("Behaviour")),"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 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 o=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 l(t,e),o(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.suiSelect(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-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 l(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(7),i=a(8),s=a(80),u=r(s),c=a(42),p=r(c),f=a(274),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,o.connect)(n,l)(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 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 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 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(68),d=r(f),m=a(74),h=r(m),b=a(275),y=r(b),v=a(276),g=r(v),E=a(30),w=r(E),O=function(e){function t(e){n(this,t);var a=l(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 o(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,l=_.isUndefined(n)?"":n,o=_.isUndefined(r)?-1:r;this.setState({publishLoading:!0});var i={action:"forminator_save_builder",_wpnonce:forminatorData.formNonce,formName:l,form_id:o,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,l=_.isUndefined(n)?"":n,o=_.isUndefined(r)?-1:r;this.setState({draftLoading:!0});var i={action:"forminator_save_builder",_wpnonce:forminatorData.formNonce,formName:l,form_id:o,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.status;d.default.post(forminatorData.ajaxUrl,h.default.stringify(e)).then(function(l){if(l.data.success)-1===e.form_id&&(a.props.actions.settingsActions.updateSetting("form_id",l.data.data),forminatorData.currentForm.settings.form_id=l.data.data,window.history.pushState({},"Edit Form",forminatorData.formEditUrl+"&id="+l.data.data)),a.props.actions.settingsActions.saveBuilder("form_status",t),("draft"===n&&"publish"===t||_.isUndefined(n)&&"publish"===t)&&setTimeout(function(){var e=function(e){r.props.actions.modalActions.showModal({open:!1},"shortcode")};r.props.actions.modalActions.showModal({open:!0,closeModal:e},"shortcode")},50);else{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:"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 l.default.createElement("div",{className:"sui-status"},l.default.createElement("div",{className:"sui-status-module"},"Status",l.default.createElement("span",{className:"sui-tag "+a},function(){switch(t){case"publish":return(0,o.translate)("Published");default:return(0,o.translate)("Draft")}}())),r&&l.default.createElement("div",{className:"sui-status-changes"},l.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),(0,o.translate)("Saving...")),!r&&e.changed.settings&&l.default.createElement("div",{className:"sui-status-changes"},l.default.createElement("i",{className:"sui-icon-update","aria-hidden":"true"}),(0,o.translate)("Unsaved changes")),!r&&!e.changed.settings&&e.changed.saved&&l.default.createElement("div",{className:"sui-status-changes"},l.default.createElement("i",{className:"sui-icon-check-tick","aria-hidden":"true"}),(0,o.translate)("Saved")))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n),o=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 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 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 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(182),d=r(f),m=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.publish=a.publish.bind(a),a.draft=a.draft.bind(a),a}return o(t,e),s(t,[{key:"closeModal",value:function(){this.props.actions.modalActions.showModal({open:!1},"publish")}},{key:"publish",value:function(){var e=this,t=this.props,a=t.status,r=t.title;_.isEmpty(r)||(this.props.publish(),("draft"===a||_.isEmpty(a))&&(this.props.actions.modalActions.showModal({open:!0,closeModal:this.closeModal},"publish"),setTimeout(function(){e.closeModal()},1500)))}},{key:"draft",value:function(){var e=this.props.title;_.isEmpty(e)||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,submitData:e.settings.submitData||{},changed:window.forminatorChanges,formType:e.settings["form-type"]||""}}function l(e){return{actions:{builderActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(7),i=a(8),s=a(179),u=r(s),c=a(42),p=r(c),f=a(278),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,o.connect)(n,l)(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 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 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 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(250),f=r(p),d=a(279),m=r(d),h=a(282),b=r(h),y=a(283),v=r(y),g=a(284),E=r(g),_=a(1),w=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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,_.hasFieldType)("page-break",this.props.wrappers),r=(0,_.hasFieldType)("paypal",this.props.wrappers),n=(0,_.getFieldsByType)("paypal",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),r&&c.default.createElement(E.default,i({},this.props,{field:n[0]})),!r&&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,_.translate)("Appearance"),c.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),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 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 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 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(250),d=r(f),m=a(280),h=r(m),b=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this;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"},this.props.wrappers.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,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 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 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(281),f=r(p),d=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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 this.isPayPalWrapper()?c.default.createElement(c.default.Fragment,null):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,field:t},e.props))}))}}]),t}(u.Component);t.default=d},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){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 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 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){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.el=u.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 o(t,e),i(t,[{key:"componentDidMount",value:function(){this.drops=[],this.drop=!1,this.$el=jQuery(this.el.current),this.$main=this.$el.closest(".fui-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},"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:"trashField",value:function(){var e=[].concat(r(this.props.wrappers)),t=this.getWrappersWithoutCurrentField(e).filter(function(e){return!_.isEmpty(e.fields)});t=this.getWrappersFilterCondition(t),t=this.updateCols(t),this.closeMenu(),this.updateState(t)}},{key:"cloneField",value:function(){var e=this,t=[].concat(r(this.props.wrappers)),a=JSON.stringify(this.props.field),n=JSON.parse(a),l=(0,c.generateWrapperId)(),o=(0,c.buildFieldObject)(n,l,12,t),i={wrapper_id:l,fields:[o]},s=t.findIndex(function(t){return t.wrapper_id===e.props.wrapper.wrapper_id}),u=this.insertInPosition(t,s+1,i);u=this.updateCols(u),this.closeMenu(),this.updateState(u)}},{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({open:!0,field:this.props.field,wrapper:this.props.wrapper,closeModal:this.closeModal,isValid:!0},"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(){this.setClasses(),this.createDropPoints()}},{key:"onDrag",value:function(e){var t=_.filter(this.drops,function(t){return e.pageY>t.top&&e.pageY<t.bottom&&e.pageX>t.left&&e.pageX<t.right}),a=_.where(t,{priority:_.max(_.pluck(t,"priority"))});a.length>0?this.selectDropZone(a[0]):(this.drop=!1,jQuery(".fui-drop-use").removeClass("fui-drop-use"))}},{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())}},{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()}},{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(){var e=this,t=void 0,a=void 0;this.props.wrappers.map(function(r){if(e.isPayPalWrapper(r))return!1;var n=e.getEl(r.wrapper_id),l=e.getPosition(n);if(e.drops.push({id:(0,c.randNumber)(),top:l.top-50,bottom:l.center.y,left:l.left,right:l.right,type:"full",insert:["before",n],wrapper:r,priority:1,is_me:!1}),_.size(r.fields)<4){r.fields.map(function(t){var n=e.getEl("field-"+t.element_id),l=e.getPosition(n),o=n.attr("id")===e.$el.attr("id");e.drops.push({id:(0,c.randNumber)(),top:l.top,bottom:l.bottom,left:l.left,right:l.left+l.width,type:"side-before",insert:["before",n],wrapper:r,field:t,priority:5,is_me:o}),a=t});var o=e.getEl("field-"+a.element_id),i=e.getPosition(o),s=o.attr("id")===e.$el.attr("id");e.drops.push({id:(0,c.randNumber)(),top:i.top,bottom:i.bottom,left:i.center.x,right:i.right+20,type:"side-after",insert:["after",o],wrapper:r,field:a,priority:5,is_me:s})}t=r});var r=this.getEl(t.wrapper_id),n=this.getPosition(r);this.drops.push({id:(0,c.randNumber)(),top:n.center.y,bottom:n.bottom+65,left:n.left,right:n.right,type:"full",insert:["after",r],wrapper:t,priority:1,is_me:!1}),this.renderDropPoints()}},{key:"renderDropPoints",value:function(){var e=void 0;this.drops.forEach(function(t){switch(e=jQuery('<div id="forminator-drop-'+t.id+'" class="fui-drop fui-drop-'+t.type+'"></div>'),t.insert[0]){case"before":e.insertBefore(t.insert[1]);break;case"after":e.insertAfter(t.insert[1])}"full"===t.type||"inside"===t.type?e.css("width",t.right-t.left-20):"side-before"!==t.type&&"side-after"!==t.type||e.css("height",t.bottom-t.top-10)})}},{key:"getPosition",value:function(e){var t=e,a=t.offset(),r=parseFloat(t.css("width")),n=parseFloat(t.css("height"))-10,l=a.top,o=a.left-10,i=void 0,s=void 0,u=l+n,c=o+r,p=Math.round(l+n/2),f=Math.round(o+r/2);return this.isRow(t)?(s=t.prev(),s.length>0&&(i=this.getPosition(s),l=i.center.y+20,n=p-l)):(s=t.prev(),s.length>0?(i=this.getPosition(s),o=i.center.x):r/=2),{width:r,height:n,top:l,bottom:u,left:o,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=this;this.drops.map(function(t){var a=jQuery('<div class="fui-drop-view"><span class="fui-drop-view-pos"></span></div>');a.css({top:t.top,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),e.$main.append(a)})}},{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)){var t=this.drop.insert[0],a=this.drop.insert[1],n=[].concat(r(this.props.wrappers)),l=Object.assign({},this.props.field);if(this.isWrapperDrop()){var o={wrapper_id:(0,c.generateWrapperId)(),fields:[l]},i=n.findIndex(function(e){return e.wrapper_id===a.attr("id")});"after"===t&&i++;var s=this.getWrappersWithoutCurrentField(n);s=this.insertInPosition(s,i,o).filter(function(e){return!_.isEmpty(e.fields)}),s=this.updateCols(s),this.updateState(s)}else{var u=n.findIndex(function(t){return t.wrapper_id===e.drop.wrapper.wrapper_id}),p=this.getWrappersWithoutCurrentField(n),f=this.drop.wrapper.fields.findIndex(function(e){return e.element_id===a.data("id")});"after"===t&&f++;var d=this.drop.wrapper,m=this.insertInPosition(d.fields,f,l);d.fields=m,p=this.replaceInPosition(p,u,d).filter(function(e){return!_.isEmpty(e.fields)}),p=this.updateCols(p),this.updateState(p)}}}},{key:"updateState",value:function(e){this.props.actions.builderActions.updateFields(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){var t=this;return e.map(function(e){return e.fields=e.fields.filter(function(e){return e.element_id!==t.props.field.element_id}),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:"insertInPosition",value:function(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t)))}},{key:"replaceInPosition",value:function(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t+1)))}},{key:"isWrapperDrop",value:function(){return!!_.isUndefined(this.drop.field)}},{key:"getConditionLabel",value:function(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)?(0,c.translate)("null"):a}},{key:"conditionMarkup",value:function(){var e=(0,c.getFields)(this.props.wrappers,null,{main_date_field:!0}),t="hide"===this.props.field.condition_action?(0,c.translate)("Hide"):(0,c.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,l=(0,c.getRuleLabel)(a.rule,r.field_type),o=this.getConditionLabel(r[0],a.value),i=this.props.field.conditions.length,s="";return i-1>0&&(s="+ "+(i-1)+" "+(0,c.translate)("more condition(s)")),u.default.createElement("span",{className:"fui-builder-field-block-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,c.translate)("if")+" "+n+" "+l+" "+o+" "+s},u.default.createElement("i",{className:"sui-icon-link","aria-hidden":"true"}))}}}}},{key:"isDeleteEnabled",value:function(){return!("login"===this.props.formType&&"password"===this.props.field.type&&(0,c.countFieldsByType)("password",this.props.wrappers)<2)&&("registration"!==this.props.formType&&"leads"!==this.props.formType||"email"!==this.props.field.type||!((0,c.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();return _.isUndefined(t)?u.default.createElement("div",null):"paypal"===this.props.field.type?u.default.createElement(u.default.Fragment,null):u.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},u.default.createElement("div",{className:"fui-builder-field-block "+r,"data-field":this.props.field.type},u.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},u.default.createElement("span",{className:"fui-field--move"},u.default.createElement("i",{className:"sui-icon-drag","aria-hidden":"true"})),u.default.createElement("span",{className:"fui-field--icon"},u.default.createElement("i",{className:t.icon,"aria-hidden":"true"})),u.default.createElement("span",{className:"fui-field--name"},this.props.field.field_label&&u.default.createElement(u.default.Fragment,null,u.default.createElement("span",{className:"fui-field--label"},this.props.field.field_label,((0,c.isFieldRequired)(this.props.field)||"stripe"===this.props.field.type)&&u.default.createElement("span",{className:"sui-error"},"*")),u.default.createElement("span",{className:"fui-field--id"},"{",this.props.field.element_id,"}")),!this.props.field.field_label&&u.default.createElement(u.default.Fragment,null,u.default.createElement("span",{className:"fui-field--label"},this.props.field.section_title||t.name,(0,c.isFieldRequired)(this.props.field)&&u.default.createElement("span",{className:"sui-error"},"*")),u.default.createElement("span",{className:"fui-field--id"},"{",this.props.field.element_id,"}")))),u.default.createElement("div",{className:"fui-field--actions"},u.default.createElement("div",{className:"sui-dropdown"},u.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Field options"))),u.default.createElement("ul",null,"page-break"!==this.props.field.type&&u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-edit",onClick:this.editSettings},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),(0,c.translate)("Edit Field"))),"stripe"!==this.props.field.type&&u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-clone",onClick:this.cloneField},u.default.createElement("i",{className:"sui-icon-copy","aria-hidden":"true"}),(0,c.translate)("Duplicate"))),this.isDeleteEnabled()&&u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-remove sui-option-red",onClick:this.deleteField},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))),!_.isUndefined(this.props.field.conditions)&&this.props.field.conditions.length>0&&u.default.createElement(u.default.Fragment,null,n)))}}]),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 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 o=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 l(t,e),o(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},"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-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 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 o=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 l(t,e),o(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:"getConditionLabel",value:function(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)?(0,u.translate)("null"):a}},{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,l=(0,u.getRuleLabel)(a.rule,r.field_type),o=this.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+" "+l+" "+o+" "+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(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){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 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 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){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return 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.fields=(0,c.getFields)(a.props.wrappers),a.wrapper=(0,c.getWrapper)(a.props.field.wrapper_id,a.props.wrappers),a}return o(t,e),i(t,[{key:"closeMenu",value:function(){jQuery(".sui-dropdown").removeClass("open")}},{key:"trashField",value:function(){var e=[].concat(r(this.props.wrappers)),t=this.getWrappersWithoutCurrentField(e).filter(function(e){return!_.isEmpty(e.fields)});t=this.getWrappersFilterCondition(t),this.closeMenu(),this.updateState(t)}},{key:"updateState",value:function(e){this.props.actions.builderActions.updateFields(e)}},{key:"deleteField",value:function(){this.closeMenu(),this.props.actions.modalActions.showModal({open:!0,field:this.props.field,closeModal:this.closeDeleteField,trashField:this.trashField},"delete")}},{key:"closeDeleteField",value:function(){this.props.actions.modalActions.showModal({open:!1,field:this.props.field,closeModal:this.closeDeleteField,trashField:this.trashField},"delete")}},{key:"closeModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,field:this.props.field},"field-settings")}},{key:"getWrappersWithoutCurrentField",value:function(e){var t=this;return e.map(function(e){return e.fields=e.fields.filter(function(e){return e.element_id!==t.props.field.element_id}),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:"editSettings",value:function(){this.closeMenu(),this.props.actions.modalActions.showModal({open:!0,field:this.props.field,wrapper:this.wrapper,closeModal:this.closeModal,isValid:!0},"field-settings")}},{key:"getConditionLabel",value:function(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)?(0,c.translate)("null"):a}},{key:"conditionMarkup",value:function(){var e=(0,c.getFields)(this.props.wrappers),t="hide"===this.props.field.condition_action?(0,c.translate)("Hide"):(0,c.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)&&!_.isEmpty(r)){var n=r[0].label,l=(0,c.getRuleLabel)(a.rule,r.field_type),o=this.getConditionLabel(r[0],a.value),i=this.props.field.conditions.length,s="";return i-1>0&&(s="+ "+(i-1)+" "+(0,c.translate)("more condition(s)")),u.default.createElement("span",{className:"fui-builder-field-block-conditions sui-tooltip sui-tooltip-left sui-tooltip-top-right-mobile","data-tooltip":t+" "+(0,c.translate)("if")+" "+n+" "+l+" "+o+" "+s},u.default.createElement("i",{className:"sui-icon-link","aria-hidden":"true"}))}}}}},{key:"render",value:function(){var e=(0,c.translate)("PayPal Checkout");if(void 0!==this.props.field.label)switch(this.props.field.label){case"checkout":e=(0,c.translate)("PayPal Checkout");break;case"pay":e=(0,c.translate)("Pay with PayPal");break;case"paypal":e=(0,c.translate)("PayPal");break;default:e=(0,c.translate)("PayPal Checkout")}var t=this.conditionMarkup();return u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("div",{className:"fui-builder-field-block fui-has-info","data-field":"submit"},u.default.createElement("span",{className:"fui-info sui-tooltip sui-tooltip-top-left sui-tooltip-constrained",style:{"--tooltip-width":"275px"},"data-tooltip":(0,c.translate)("PayPal field replaces the submit button of your form with the PayPal Smart Payment Buttons. The PayPal buttons will automatically submit the form after a successful payment.")},u.default.createElement("i",{className:"sui-icon-info","aria-hidden":"true"})),u.default.createElement("div",{className:"fui-field--info",onClick:this.editSettings},u.default.createElement("span",{className:"fui-field--icon"},u.default.createElement("i",{className:"sui-icon-paypal","aria-hidden":"true"})),u.default.createElement("span",{className:"fui-field--name"},u.default.createElement("span",{className:"fui-field--label"},e))),u.default.createElement("div",{className:"fui-field--actions"},u.default.createElement("div",{className:"sui-dropdown"},u.default.createElement("button",{className:"sui-button-icon sui-dropdown-anchor"},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Field options"))),u.default.createElement("ul",null,u.default.createElement("li",null,u.default.createElement("button",{className:"forminator-field-edit",onClick:this.editSettings},u.default.createElement("i",{className:"sui-icon-widget-settings-config","aria-hidden":"true"}),(0,c.translate)("Edit Field"))),u.default.createElement("li",null,u.default.createElement("button",{className:"sui-option-red forminator-field-remove",onClick:this.deleteField},u.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,c.translate)("Delete")))))),!_.isUndefined(this.props.field.conditions)&&this.props.field.conditions.length>0&&u.default.createElement(u.default.Fragment,null,t)))}}]),t}(s.Component);t.default=p},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 l(e){return{actions:{modalActions:(0,i.bindActionCreators)(p,e),builderActions:(0,i.bindActionCreators)(d,e),settingsActions:(0,i.bindActionCreators)(h,e),notificationsActions:(0,i.bindActionCreators)(y,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(7),i=a(8),s=a(286),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=a(42),p=r(c),f=a(179),d=r(f),m=a(80),h=r(m),b=a(255),y=r(b);t.default=(0,o.connect)(n,l)(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 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 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 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(45),p=r(c),f=a(287),d=r(f),m=a(254),h=(r(m),{"insert-fields":d.default.fieldsModal,"field-settings":d.default.settingsModal,preview:d.default.previewModal,submit:d.default.submitModal,publish:d.default.publishModal,delete:d.default.deleteModal,shortcode:d.default.shortcodeModal,pagination:d.default.paginationModal,notification:d.default.notificationModal,deleteNotification:d.default.deleteNotificationModal}),b=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"componentDidUpdate",value:function(e){var t=this;if(e.modal.modalProps.open!==this.props.modal.modalProps.open){var a=p.default.findDOMNode(this);this.props.modal.modalProps.open?a.removeAttribute("aria-hidden"):this.hideModalTimeout=setTimeout(function(){a.setAttribute("aria-hidden","true"),t.props.modal.modalType=null,t.forceUpdate()},300)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.hideModalTimeout)}},{key:"render",value:function(){if(!this.props.modal.modalType)return null;var e="",t=["sui-dialog-overlay","sui-fade-in"],a=["sui-dialog-content","sui-fade-in"];this.props.modal.modalProps.open||(t=["sui-dialog-overlay","sui-fade-out"],a=["sui-dialog-content","sui-fade-out"]);var r=h[this.props.modal.modalType];return"publish"===this.props.modal.modalType&&(e=" sui-dialog-sm fui-dialog-publish"),"shortcode"===this.props.modal.modalType&&(e=" sui-dialog-sm sui-dialog-alt fui-dialog-publish"),"delete"!==this.props.modal.modalType&&"deleteNotification"!==this.props.modal.modalType||(e=" sui-dialog-sm sui-dialog-alt"),u.default.createElement("div",{id:"forminator-modal",className:"sui-dialog"+e,tabIndex:"-1"},u.default.createElement("div",{className:""+t.join(" "),onClick:this.props.modal.modalProps.closeModal}),u.default.createElement("div",{className:""+a.join(" "),"aria-labelledby":"dialogTitle","aria-describedby":"dialogDescription",role:"dialog"},u.default.createElement("div",{className:"sui-box",role:"document"},u.default.createElement(r,this.props))))}}]),t}(s.Component);t.default=b},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(288),l=r(n),o=a(289),i=r(o),s=a(332),u=r(s),c=a(253),p=r(c),f=a(333),d=r(f),m=a(334),h=r(m),b=a(335),y=r(b),v=a(336),g=r(v),E=a(338),_=r(E),w=a(254),O=r(w),j={fieldsModal:l.default,settingsModal:i.default,previewModal:u.default,submitModal:p.default,publishModal:d.default,deleteModal:h.default,shortcodeModal:y.default,paginationModal:g.default,notificationModal:_.default,deleteNotificationModal:O.default};t.default=j},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){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 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 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){n(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 o(t,e),i(t,[{key:"closeSettingsModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,field:[],wrapper:[]},"field-settings")}},{key:"insertFields",value:function(){if(this.state.fields.length){if(this.hasStripe||this.hasCaptcha||this.hasPayPal)return!1;var e=[].concat(r(this.props.wrappers)),t=this.state.fields.map(function(t){var a=(0,c.generateWrapperId)();return{wrapper_id:a,fields:[(0,c.buildFieldObjectFromSlug)(t,e,a)]}});if(forminatorData.showFieldSettings&&1===this.state.fields.length){var a=this,n=void 0!==t[0]&&t[0],l=void 0!==t[0].fields[0]&&t[0].fields[0];n&&l&&"page-break"!==l.type&&setTimeout(function(){a.props.actions.modalActions.showModal({open:!0,field:l,wrapper:n,closeModal:a.closeSettingsModal,isValid:!0},"field-settings")},500)}this.props.actions.builderActions.updateFields([].concat(r(e),r(t))),this.closeModal()}}},{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,n=(0,c.hasFieldType)("stripe",this.props.wrappers),l=(0,c.hasFieldType)("captcha",this.props.wrappers),o=(0,c.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(r(this.state.fields),[e])};this.setState(a),(_.contains(a.fields,"stripe")||_.contains(a.fields,"paypal"))&&(_.contains(a.fields,"stripe")&&_.contains(a.fields,"paypal")||o||n)?this.hasStripePayPal=!0:this.hasStripePayPal=!1,_.contains(a.fields,"stripe")&&n?this.hasStripe=!0:this.hasStripe=!1,_.contains(a.fields,"paypal")&&o?this.hasPayPal=!0:this.hasPayPal=!1,_.contains(a.fields,"captcha")&&l?this.hasCaptcha=!0:this.hasCaptcha=!1}},{key:"render",value:function(){var e=this,t=forminatorData.fields.filter(function(e){return e.category}),a=forminatorData.fieldsPro||[];"registration"!==this.props.formType&&"login"!==this.props.formType&&(t=_.filter(t,function(e){return"password"!==e.slug}));var r=_.sortBy(t,"position");return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,c.translate)("Insert Fields")),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":"Close this dialog window",onClick:this.closeModal}))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement("p",null,(0,c.translate)("Choose which fields you want to insert into your form.")),(this.hasStripe||this.hasCaptcha||this.hasPayPal||this.hasStripePayPal)&&u.default.createElement("div",{className:"sui-notice sui-notice-error"},this.hasStripe&&!this.hasStripePayPal&&u.default.createElement("p",null,(0,c.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&&u.default.createElement("p",null,(0,c.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&&u.default.createElement("p",null,(0,c.translate)("You can have only one payment field in your form. Please delete the existing payment field to add another one.")),this.hasCaptcha&&u.default.createElement("p",null,(0,c.translate)("You can have only one reCaptcha field in your form for Google reCaptcha to work accurately. Please delete the existing reCaptcha field to add a new one.")))),u.default.createElement("div",{className:"sui-box-selectors sui-box-selectors-col-5"},u.default.createElement("ul",{id:"forminator-form-fields-to-insert",className:"sui-spacing-slim"},r.map(function(t){return u.default.createElement("li",{key:t.slug},u.default.createElement("label",{htmlFor:"forminator-form-field-"+t.slug,className:"sui-box-selector sui-box-selector-vertical"},u.default.createElement("input",{type:"checkbox",id:"forminator-form-field-"+t.slug,"data-field":t.slug,onChange:function(a){return e.toggleField(t.slug,a)}}),u.default.createElement("span",null,u.default.createElement("i",{className:t.icon,"aria-hidden":"true"}),t.name)))}),!forminatorData.isPro&&a.map(function(e){return u.default.createElement("li",{key:e.slug},u.default.createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},u.default.createElement("input",{type:"radio",disabled:!0}),u.default.createElement("span",null,u.default.createElement("span",{className:e.icon,"aria-hidden":"true"}),e.name,u.default.createElement("span",{class:"sui-tag sui-tag-pro"},"Pro"))))}),!forminatorData.isPro&&_.isEmpty(a)&&u.default.createElement("li",null,u.default.createElement("label",{className:"sui-box-selector sui-box-selector-vertical sui-disabled"},u.default.createElement("input",{type:"radio",disabled:!0}),u.default.createElement("span",null,u.default.createElement("span",{className:"sui-icon-pencil","aria-hidden":"true"}),(0,c.translate)("E-Signature"),u.default.createElement("span",{class:"sui-tag sui-tag-pro"},"Pro"))))),!forminatorData.isPro&&!this.props.skipProNotice&&u.default.createElement("div",{id:"fui-notice-pro-fields",class:"sui-notice sui-notice-purple sui-notice-top sui-can-dismiss"},u.default.createElement("div",{class:"sui-notice-content"},u.default.createElement("p",null,(0,c.translate)("Need access to pro form fields? {{link}}Try Forminator Pro for FREE{{/link}}",{components:{link:u.default.createElement("a",{href:"https://premium.wpmudev.org/project/forminator-pro/?utm_source=forminator&utm_medium=plugin&utm_campaign=forminator_forms_insertfields_upsell_notice",target:"_blank",style:{color:"#8d00b1"}})}}))),u.default.createElement("span",{class:"sui-notice-dismiss"},u.default.createElement("a",{role:"button",href:"#","aria-label":"Dismiss",class:"sui-icon-check",onClick:this.skipProNotice})))),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button sui-button-ghost forminator-builder-fields-close",onClick:this.closeModal},(0,c.translate)("Cancel")),u.default.createElement("div",{className:"sui-actions-right"},u.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},u.default.createElement("span",{className:"sui-loading-text"},(0,c.translate)("Insert Fields")),u.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})))))}}]),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,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(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 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(19),d=a(1),m=a(290),h=r(m),b=a(331),y=r(b),v={email:h.default.emailSettings,address:h.default.addressSettings,captcha:h.default.captchaSettings,date:h.default.dateSettings,signature:h.default.signatureSettings,gdprcheckbox:h.default.gdprcheckboxSettings,hidden:h.default.hiddenSettings,html:h.default.htmlSettings,checkbox:h.default.multivalueSettings,radio:h.default.radioSettings,name:h.default.nameSettings,number:h.default.numberSettings,pagination:h.default.paginationSettings,phone:h.default.phoneSettings,postdata:h.default.postdataSettings,section:h.default.sectionSettings,select:h.default.singlevaluesettings,text:h.default.textSettings,textarea:h.default.textareaSettings,time:h.default.timeSettings,upload:h.default.uploadSettings,url:h.default.websiteSettings,calculation:h.default.calculationSettings,stripe:h.default.stripeSettings,currency:h.default.currencySettings,password:h.default.passwordSettings,paypal:h.default.paypalSettings},g=function(e){function t(e){l(this,t);var a=o(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.state=Object.assign({},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("stripe"===this.state.type){forminatorData.hasStripe||(t.error=(0,d.translate)("Please, connect your Stripe account first!"),t.isValid=!1),"fixed"!==this.state.amount_type||this.state.amount||(t.error=(0,d.translate)("Please, enter Stripe payment amount!"),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),"variable"!==this.state.amount_type||this.state.variable||(t.error=(0,d.translate)("Please, select Stripe payment variable field!"),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)}if("paypal"===this.state.type&&(forminatorData.hasPayPal||(t.error=(0,d.translate)("Please, connect your PayPal account first!"),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),"captcha"===this.state.type&&(("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)),"time"===this.state.type&&!_.isUndefined(this.state.restrict_time)&&"specific"===this.state.restrict_time){var n=_.isUndefined(this.state.time_type)?"":this.state.time_type,l="twelve"===n?"h:mma":"H:mm",o=_.isUndefined(this.state.restrict_start_hour)?0:this.state.restrict_start_hour,i=_.isUndefined(this.state.restrict_start_minute)?0:this.state.restrict_start_minute,s=_.isUndefined(this.state.restrict_start_ampm)?"AM":this.state.restrict_start_ampm,u=_.isUndefined(this.state.restrict_end_hour)?0:this.state.restrict_end_hour,c=_.isUndefined(this.state.restrict_end_minute)?0:this.state.restrict_end_minute,p=_.isUndefined(this.state.restrict_end_ampm)?"AM":this.state.restrict_end_ampm,f=_.isUndefined(this.state.default_time)?"none":this.state.default_time,m=_.isUndefined(this.state.default_time_hour)?0:this.state.default_time_hour,h=_.isUndefined(this.state.default_time_minute)?0:this.state.default_time_minute,b=_.isUndefined(this.state.default_time_ampm)?"AM":this.state.default_time_ampm,y="twelve"===n?s:"",v="twelve"===n?p:"",g="twelve"===n?b:"",E=o+":"+i+y.toLowerCase(),w=moment(E,l),O=u+":"+c+v.toLowerCase(),j=moment(O,l),P=moment(m+":"+h+g,l);j.isBefore(w)?(t.error=(0,d.translate)("Please select a valid end time limit."),t.isValid=!1):"default"===f&&(P.isBefore(w)||j.isBefore(P))?(t.error=(0,d.translate)("Please fix the Default time error."),t.isValid=!1):("0:0am"===E&&"0:0pm"===O||"0:0pm"===E&&"0:0am"===O||E===O&&("0:0am"===E||"0:0pm"===E))&&(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 k=this.state["start-date"],x=this.state["end-date"],N=!0;if("specific"!==k||"specific"!==x||_.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"===k&&"today"===x){var C=_.isUndefined(this.state["start-offset-operator"])?"+":this.state["start-offset-operator"],S=_.isUndefined(this.state["start-offset-value"])?0:parseInt(this.state["start-offset-value"],10),F=_.isUndefined(this.state["start-offset-duration"])?"days":this.state["start-offset-duration"],T=this.getDateDuration(C,S,F,"MM/DD/YYYY"),M=_.isUndefined(this.state["end-offset-operator"])?"+":this.state["end-offset-operator"],D=_.isUndefined(this.state["end-offset-value"])?0:parseInt(this.state["end-offset-value"],10),A=_.isUndefined(this.state["end-offset-duration"])?"days":this.state["end-offset-duration"],R=this.getDateDuration(M,D,A,"MM/DD/YYYY");moment(R,"MM/DD/YYYY").isBefore(moment(T,"MM/DD/YYYY"))&&(N=!1)}else if("specific"!==k||"today"!==x||_.isUndefined(this.state["start-specific-date"])){if("today"===k&&"specific"===x&&!_.isUndefined(this.state["end-specific-date"])){var V=_.isUndefined(this.state["start-offset-operator"])?"+":this.state["start-offset-operator"],U=_.isUndefined(this.state["start-offset-value"])?0:parseInt(this.state["start-offset-value"],10),L=_.isUndefined(this.state["start-offset-duration"])?"days":this.state["start-offset-duration"],I=this.getDateDuration(V,U,L,"MM/DD/YYYY");moment(this.state["end-specific-date"],"MM/DD/YYYY").isBefore(moment(I,"MM/DD/YYYY"))&&(N=!1)}}else{var B=_.isUndefined(this.state["end-offset-operator"])?"+":this.state["end-offset-operator"],q=_.isUndefined(this.state["end-offset-value"])?0:parseInt(this.state["end-offset-value"],10),W=_.isUndefined(this.state["end-offset-duration"])?"days":this.state["end-offset-duration"],$=this.getDateDuration(B,q,W,"MM/DD/YYYY");moment($,"MM/DD/YYYY").isBefore(moment(this.state["start-specific-date"],"MM/DD/YYYY"))&&(N=!1)}else N=!1;N||(t.error=(0,d.translate)("Please fix the limit Start or End date."),t.isValid=!1)}return t}},{key:"render",value:function(){var e=this,t=(0,d.getForminatorField)(this.state),a=v[t.type],r=!_.contains(["captcha","paypal"],t.type),n=!_.contains(["submit","hidden","html","page-break"],t.type),l=!_.contains(["captcha","page-break","hidden"],t.type),o=!_.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(),g=b.isValid,E=b.error||"";return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{id:"forminator-modal-header--"+t.type,className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,d.translate)("Edit Field")),p.default.createElement("div",{className:"sui-actions-left"},p.default.createElement("span",{className:"sui-tag sui-tag-draft"},t.name)),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),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",activeClassName:"active",role:"tab"},(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")),o>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")),l>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(y.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("div",{id:"forminator-modal-footer--"+t.type,className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),(0,d.translate)("Discard Changes")),p.default.createElement("div",{className:"sui-actions-right"},g&&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"})),!g&&p.default.createElement("div",{className:"sui-tooltip","data-tooltip":E},p.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":E},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=g},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(291),l=r(n),o=a(293),i=r(o),s=a(294),u=r(s),c=a(295),p=r(c),f=a(299),d=r(f),m=a(300),h=r(m),b=a(301),y=r(b),v=a(302),g=r(v),E=a(303),_=r(E),w=a(306),O=r(w),j=a(308),P=r(j),k=a(309),x=r(k),N=a(310),C=r(N),S=a(311),F=r(S),T=a(313),M=r(T),D=a(314),A=r(D),R=a(315),V=r(R),U=a(316),L=r(U),I=a(317),B=r(I),q=a(318),W=r(q),$=a(321),Y=r($),z=a(322),H=r(z),Q=a(323),G=r(Q),J=a(325),K=r(J),X=a(328),Z=r(X),ee=a(329),te=r(ee),ae=a(330),re=r(ae),ne={emailSettings:l.default,addressSettings:i.default,captchaSettings:u.default,dateSettings:p.default,signatureSettings:d.default,gdprcheckboxSettings:h.default,hiddenSettings:y.default,htmlSettings:g.default,multivalueSettings:_.default,nameSettings:O.default,numberSettings:P.default,paginationSettings:x.default,phoneSettings:C.default,postdataSettings:F.default,sectionSettings:M.default,singlevaluesettings:A.default,textSettings:V.default,textareaSettings:L.default,timeSettings:B.default,uploadSettings:W.default,websiteSettings:Y.default,radioSettings:H.default,calculationSettings:G.default,stripeSettings:K.default,currencySettings:Z.default,passwordSettings:te.default,paypalSettings:re.default};t.default=ne},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 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 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 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(180),p=r(c),f=a(21),d=r(f),m=a(23),h=r(m),b=a(31),y=r(b),v=a(183),g=r(v),E=a(78),_=(r(E),a(43)),w=r(_),O=a(1),j=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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=j},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 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 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 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(4),h=r(m),b=a(2),y=r(b),v=a(12),g=(r(v),a(22)),E=r(g),w=a(175),O=r(w),j=function(e){function t(e){n(this,t);var a=l(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 o(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=_.isEmpty(this.props.rule.value)?(0,p.translate)("null"):this.props.rule.value,n=["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"],o=["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,r)),!("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,r))),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(E.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(E.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")),"checkbox"===a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Having")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Not having"))),"signature"===a.field_type&&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"))),"checkbox"!==a.field_type&&"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&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_great"},(0,p.translate)("Is great")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less"))),!a.isNumber&&!a.hasOptions&&"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)&&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)&&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&&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&&"signature"!==a.field_type&&(!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(n,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(o,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(O.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=j},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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(181),y=r(b),v=a(9),g=r(v),E=a(4),w=r(E),O=a(2),j=r(O),P=a(12),k=r(P),x=a(15),N=r(x),C=a(31),S=r(C),F=a(43),T=r(F),M=function(e){function t(e){n(this,t);var a=l(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 o(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,a=(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(j.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)"),placeholder:(0,p.translate)("Enter Placeholder"),property:t.slug+"_placeholder"}),_.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(j.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(j.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(j.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(j.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 r=void 0,n=this.multiFields.map(function(t,n){if(!_.isUndefined(e.props.state[t.slug])&&e.props.state[t.slug]){if(_.isEmpty(r)&&(r=t.slug),"address_country"===t.slug)return 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:n},c.default.createElement(T.default,i({},e.props,{prefix:t.slug,notice:a})));if("address_country"!==t.slug)return 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:n},c.default.createElement(S.default,i({},e.props,{prefix:t.slug})),c.default.createElement(T.default,i({},e.props,{prefix:t.slug})))}});return this.hasChildrens(n)?c.default.createElement(N.default,{default:r},n):c.default.createElement("div",{className:"sui-notice sui-notice-error"},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=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 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 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 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(23),d=r(f),m=a(78),h=(r(m),a(9)),b=r(h),y=a(4),v=r(y),g=a(6),E=r(g),w=a(12),O=r(w),j=a(22),P=r(j),k=a(3),x=r(k),N=a(2),C=r(N),S=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement("div",null);case"settings":return c.default.createElement(c.default.Fragment,null,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)("reCAPTCHA type")),c.default.createElement("span",{className:"sui-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"})}})),c.default.createElement(E.default,i({},this.props,{property:"captcha_type",settings:this.props.state,default:"v2_checkbox",label:""}),c.default.createElement(x.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",{className:"sui-notice sui-notice-error"},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}} add then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=recaptcha",target:"_blank"})}}))),forminatorData.hasV2Captcha&&c.default.createElement(b.default,null,c.default.createElement(v.default,{cols:"6"},c.default.createElement(O.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(v.default,{cols:"6"},c.default.createElement(O.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(x.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",{className:"sui-notice sui-notice-error"},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}} add then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=recaptcha",target:"_blank"})}}))),forminatorData.hasV2InvisibleCaptcha&&c.default.createElement(O.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(x.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",{className:"sui-notice sui-notice-error"},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}} add then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=recaptcha",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(O.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"))))))))),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-settings-label sui-dark"},(0,p.translate)("Language")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("By default, we will use the language chosen in the global reCAPTCHA settings. However, you can choose a different language for this reCAPTCHA.")),c.default.createElement(P.default,i({},this.props,{settings:this.props.state,property:"language",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:""},(0,p.translate)("Automatic")),_.map(forminatorData.captchaLangs,function(e,t){return c.default.createElement("option",{value:t,key:t},e)})))),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-settings-label sui-dark"},(0,p.translate)("Error Message")),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(C.default,i({},this.props,{type:"text",property:"recaptcha_error_message",settings:this.props.state})))));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=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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(31),y=r(b),v=a(3),g=r(v),E=a(18),_=r(E),w=a(6),O=r(w),j=a(9),P=r(j),k=a(4),x=r(k),N=a(2),C=r(N),S=a(12),F=r(S),T=a(13),M=r(T),D=a(175),A=r(D),R=a(44),V=r(R),U=a(43),L=r(U),I=a(296),B=r(I),q=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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(P.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(P.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(F.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(P.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(P.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(P.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(P.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(F.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(P.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(V.default,i({},this.props,{label:(0,p.translate)("Month")}),c.default.createElement(P.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(V.default,i({},this.props,{label:(0,p.translate)("Day")}),c.default.createElement(P.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(V.default,i({},this.props,{label:(0,p.translate)("Year")}),c.default.createElement(P.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(P.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(P.default,null,c.default.createElement(x.default,{cols:"12"},c.default.createElement(F.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(P.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(V.default,i({},this.props,{label:(0,p.translate)("Month")}),c.default.createElement(P.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(V.default,i({},this.props,{label:(0,p.translate)("Day")}),c.default.createElement(P.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(V.default,i({},this.props,{label:(0,p.translate)("Year")}),c.default.createElement(P.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("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 date")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Use this feature to specify a default selected date.")),c.default.createElement(O.default,i({},this.props,{property:"default_date",settings:this.props.state,default:"none",label:""}),c.default.createElement(M.default,{value:"none"},(0,p.translate)("None")),c.default.createElement(M.default,{value:"today"},(0,p.translate)("Today")),c.default.createElement(g.default,i({settings:this.props.state},this.props,{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")})))))),c.default.createElement(L.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=q},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 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 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 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(22),d=r(f),m=a(9),h=r(m),b=a(4),y=r(b),v=a(175),g=r(v),E=a(2),w=r(E),O=a(13),j=r(O),P=a(46),k=r(P),x=a(3),N=r(x),C=a(6),S=r(C),F=a(297),T=r(F),M=a(298),D=r(M),A=a(16),R=r(A),V=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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 c.default.createElement(c.default.Fragment,null,c.default.createElement(R.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",{class:"fui-form-field--row"},c.default.createElement("div",{class:"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",{class:"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",{class:"fui-form-field--col"},c.default.createElement("div",{class:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Offset (optional)")),c.default.createElement("div",{class:"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",{class:"fui-form-field--row"},c.default.createElement("div",{class:"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",{class:"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",{class:"fui-form-field--col"},c.default.createElement("div",{class:"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(R.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(j.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(R.default,null,c.default.createElement(T.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(R.default,null,c.default.createElement(D.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(R.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=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 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 o=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 l(t,e),o(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(".fui-datepicker-calendar").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,onClose:function(e,t){jQuery(".fui-datepicker-calendar").remove()},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}),setTimeout(function(){t.updateValue(a)},20)}),_.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",{class:"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",{class:"fui-datepicker-calendar"}),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 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 o=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 l(t,e),o(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",{class:"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",{class:"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 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 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 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=a(21),h=r(m),b=a(23),y=r(b),v=a(31),g=r(v),E=a(2),_=r(E),w=a(12),O=r(w),j=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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("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)("Signature filetype")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the filetype to save your users' signature in.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(O.default,i({},this.props,{property:"filetype",settings:this.props.state}),c.default.createElement("option",{value:"png"},(0,p.translate)("PNG")),c.default.createElement("option",{value:"jpg"},(0,p.translate)("JPG")))))),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)("Height")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the height of your signature field. The default value is 180px.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(_.default,i({},this.props,{type:"number",settings:this.props.state,placeholder:"180",property:"height",fieldClass:"sui-input-sm"})),c.default.createElement("span",null,(0,p.translate)("px"))))),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)("Stroke thickness")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the thickness in pixels for signature strokes. The default value is 2px.")),c.default.createElement("div",{className:"sui-form-field-inline"},c.default.createElement(_.default,i({},this.props,{type:"number",settings:this.props.state,placeholder:"2",property:"thickness",fieldClass:"sui-input-sm"})),c.default.createElement("span",null,(0,p.translate)("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=j},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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(32),y=r(b),v=a(2),g=r(v),E=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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(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 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 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 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(23),d=r(f),m=a(9),h=r(m),b=a(4),y=r(b),v=a(2),g=r(v),E=a(12),w=r(E),O=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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.variables,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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(32),y=r(b),v=a(2),g=r(v),E=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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(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:"variations",editorOptions:forminatorData.variables,enableFormData:"true",enablePostData:"false",enableUpload:"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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(184),y=r(b),v=a(31),g=r(v),E=a(9),_=r(E),w=a(4),O=r(w),j=a(2),P=r(j),k=a(176),x=r(k),N=a(18),C=r(N),S=a(16),F=r(S),T=a(43),M=r(T),D=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(P.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(P.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(C.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")))),c.default.createElement(M.default,this.props));case"calculations":return c.default.createElement(x.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=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 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 o=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={focus:!1},a}return l(t,e),o(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:"onFocus",value:function(){this.setState({focus:!0})}},{key:"onBlurValue",value:function(){this.onBlur()}},{key:"onBlurLabel",value:function(e){this.onBlur();var t=(0,u.generateValue)(e.target.value);this.props.updateValue(this.props.counter,t)}},{key:"onBlur",value:function(){this.state.focus&&this.setState({focus:!1})}},{key:"render",value:function(){var e=this.state.focus?"fui-on_focus":"",t=_.isEmpty(this.props.option.label)?"sui-form-field-error":"";return s.default.createElement("div",{className:"fui-option "+e},s.default.createElement("div",{className:"fui-option-settings"},s.default.createElement("div",{className:"fui-option-settings--main"},s.default.createElement("div",{className:"sui-form-field "+t},s.default.createElement("input",{type:"text",size:"1",placeholder:(0,u.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)})),s.default.createElement("button",{className:"sui-button-icon sui-button-red fui-option-remove","aria-label":(0,u.translate)("Delete option"),onClick:this.removeOption.bind(this)},s.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}))),s.default.createElement("div",{className:"fui-option-settings--extra"},s.default.createElement("input",{type:"text",value:this.props.option.value,placeholder:(0,u.translate)("Value"),className:"sui-form-control",onChange:this.updateValue.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlurValue.bind(this)}),this.props.state.type&&"select"===this.props.state.type&&this.props.isLimit&&"true"===this.props.isLimit&&s.default.createElement("input",{type:"text",value:this.props.option.limit,placeholder:(0,u.translate)("Submission limit"),className:"sui-form-control",onChange:this.updateLimit.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),s.default.createElement("label",{htmlFor:"option-selected-"+this.props.counter,className:"sui-checkbox"},s.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)}),s.default.createElement("span",{"aria-hidden":"true"}),s.default.createElement("span",{className:"sui-description sui-description-sm"},(0,u.translate)("Selected"))))))}}]),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 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 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 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(2),f=(r(p),function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateField=a.updateField.bind(a),a.updateState=a.updateState.bind(a),a}return o(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 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 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 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=a(21),h=r(m),b=a(23),y=r(b),v=a(6),g=r(v),E=a(15),w=r(E),O=a(307),j=r(O),P=a(31),k=r(P),x=a(183),N=(r(x),a(78)),C=(r(N),a(4)),S=r(C),F=a(43),T=r(F),M=function(e){function t(e){n(this,t);var a=l(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 o(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(j.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(T.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(T.default,i({},e.props,{prefix:a.slug})))}});return this.hasChildrens(a)?c.default.createElement(w.default,{default:t},a):c.default.createElement("div",{className:"sui-notice sui-notice-error"},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(T.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 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 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 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(181),d=r(f),m=a(9),h=r(m),b=a(4),y=r(b),v=a(2),g=r(v),E=a(12),_=r(E),w=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(9),y=r(b),v=a(4),g=r(v),E=a(2),w=r(E),O=a(31),j=r(O),P=a(176),k=r(P),x=a(43),N=r(x),C=a(6),S=r(C),F=a(13),T=r(F),M=a(3),D=r(M),A=a(16),R=r(A),V=a(12),U=(r(V),function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this.props.type;_.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(j.default,this.props),c.default.createElement(R.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Limits")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Set the minimum and maximum values the user can choose. Leave the fields blank to allow any number including negatives.")),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("div",{className:"sui-form-field"},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(T.default,{value:"false",label:(0,p.translate)("Default")}),c.default.createElement(D.default,{value:"true",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("When number is smaller than the min limit"),type:"text",placeholder:(0,p.translate)("E.g. Please enter a number greater than 0."),property:"limit_min_message"})),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("When number is greater than the max limit"),type:"text",placeholder:(0,p.translate)("E.g. Please enter a number lower than 1000."),property:"limit_max_message"})))))),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=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 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 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 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(13),h=r(m),b=a(3),y=r(b),v=a(6),g=r(v),E=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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",settingsDesc:(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 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 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 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=a(21),h=r(m),b=a(23),y=r(b),v=a(31),g=r(v),E=a(78),w=(r(E),a(3)),O=r(w),j=a(6),P=r(j),k=a(2),x=r(k),N=a(12),C=r(N),S=a(13),F=r(S),T=a(43),M=r(T),D=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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("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(P.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(F.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(forminatorData.countries,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(forminatorData.countries,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(M.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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(31),y=r(b),v=a(181),g=r(v),E=a(9),w=r(E),O=a(4),j=r(O),P=a(2),k=r(P),x=a(18),N=r(x),C=a(12),S=r(C),F=a(46),T=r(F),M=a(251),D=r(M),A=a(16),R=r(A),V=function(e){function t(e){n(this,t);var a=l(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:!1},{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 o(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(j.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(j.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(j.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(j.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(j.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(D.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(R.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(R.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(R.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(T.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(j.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=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 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 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 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(22),d=(r(f),a(41)),m=r(d),h=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={focus:!1},a}return o(t,e),s(t,[{key:"getNameOptions",value:function(){var e=[];return(0,p.getFields)(this.props.wrappers,["page-break","postdata","upload","captcha","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(m.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},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=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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(6),y=r(b),v=a(3),g=r(v),E=a(13),_=r(E),w=a(9),O=r(w),j=a(4),P=r(j),k=a(2),x=r(k),N=a(10),C=r(N),S=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){switch(this.props.type){case"labels":return c.default.createElement(O.default,null,c.default.createElement(P.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(P.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(P.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(P.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(P.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(P.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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(184),y=r(b),v=a(31),g=r(v),E=a(9),_=r(E),w=a(4),O=r(w),j=a(2),P=r(j),k=a(18),x=r(k),N=a(176),C=r(N),S=a(16),F=r(S),T=a(6),M=r(T),D=a(13),A=r(D),R=a(43),V=r(R),U=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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",l=(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(P.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(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(P.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(P.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(F.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(M.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",{className:"sui-notice"},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(V.default,i({},this.props,{notice:"multiselect"===t&&l})));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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(9),y=r(b),v=a(4),g=r(v),E=a(2),_=r(E),w=a(12),O=r(w),j=a(31),P=r(j),k=a(78),x=(r(k),a(43)),N=r(x),C=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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(P.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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(9),y=r(b),v=a(4),g=r(v),E=a(2),_=r(E),w=a(252),O=r(w),j=a(12),P=r(j),k=a(31),x=r(k),N=a(78),C=(r(N),a(18)),S=r(C),F=a(43),T=r(F),M=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a}return o(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(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(O.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(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(O.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(x.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(S.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(_.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("E.g. 100"),property:"limit",inputClass:"sui-input-sm"})),c.default.createElement(P.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(_.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(T.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=M},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 l(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 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(21),m=r(d),h=a(23),b=r(h),y=a(31),v=r(y),g=a(78),E=(r(g),a(6)),w=r(E),O=a(44),j=r(O),P=a(9),k=r(P),x=a(4),N=r(x),C=a(18),S=r(C),F=a(2),T=r(F),M=a(12),D=r(M),A=a(3),R=r(A),V=a(13),U=r(V),L=a(43),I=r(L),B=function(e){function t(e){return l(this,t),o(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,l=_.isUndefined(this.props.state.restrict_start_ampm)?"AM":this.props.state.restrict_start_ampm,o=_.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?l:"",m="twelve"===e?s:"",h="twelve"===e?f:"",b=moment(r+":"+n+d,a),y=moment(o+":"+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.field_type)||this.props.state.field_type,_.isUndefined(this.props.state.time_type)?"":this.props.state.time_type),a="twelve"===t?12:24,r=(0,f.translate)("Note: The query parameter's value passed in URL should match with the selected time format."),l=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(T.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(T.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(j.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(T.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(T.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(j.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(T.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(T.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("div",{className:"sui-box-settings-row"},p.default.createElement("div",{className:"sui-box-settings-col-2"},p.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,f.translate)("Increments")),p.default.createElement("span",{className:"sui-description"},(0,f.translate)("Choose what time increments you want to use for the hour and minute timepickers.")),p.default.createElement("div",{className:"sui-form-field-inline"},p.default.createElement(D.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Hour"),property:"increment_hour"}),[].concat(n(Array(a))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)})),p.default.createElement(D.default,s({},this.props,{settings:this.props.state,label:(0,f.translate)("Minute"),property:"increment_minute"}),[].concat(n(Array(60))).map(function(e,t){return p.default.createElement("option",{value:t,key:t},t)}))))),p.default.createElement("div",{className:"sui-box-settings-row"},p.default.createElement("div",{className:"sui-box-settings-col-2"},p.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,f.translate)("Limits")),p.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,f.translate)("Choose a time limit for the time picker field to restrict the time selection between specific hours.")),p.default.createElement(w.default,s({},this.props,{property:"restrict_time",settings:this.props.state,default:"none",simple:!0}),p.default.createElement(R.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(D.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(D.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(D.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(D.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(D.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(D.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(T.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("div",{className:"sui-box-settings-row"},p.default.createElement("div",{className:"sui-box-settings-col-2"},p.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,f.translate)("Default time")),p.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,f.translate)("Use this feature to specify a default selected time.")),p.default.createElement(w.default,s({},this.props,{property:"default_time",settings:this.props.state,default:"none",simple:!0}),p.default.createElement(R.default,s({settings:this.props.state},this.props,{value:"default",label:(0,f.translate)("Default"),boxClass:"sui-tab-boxed"}),p.default.createElement(k.default,null,p.default.createElement(N.default,{cols:"3"},p.default.createElement(D.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(D.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(D.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"))))),!l&&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(I.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=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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(319),y=r(b),v=a(31),g=r(v),E=a(2),w=r(E),O=a(4),j=(r(O),a(12)),P=r(j),k=a(18),x=r(k),N=a(6),C=r(N),S=a(13),F=r(S),T=a(3),M=r(T),D=a(16),A=r(D),R=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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["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"===a&&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(F.default,{value:"unlimited",label:(0,p.translate)("Unlimited")}),c.default.createElement(M.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"===a?(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 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)>parseInt(forminatorData.maxUpload)?" sui-form-field-error":"")})),c.default.createElement(P.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")))),parseInt(t)>parseInt(forminatorData.maxUpload)&&c.default.createElement("div",{className:"sui-notice sui-notice-error",style:{marginTop:"-20px"}},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"===a&&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=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 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 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 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(4),h=r(m),b=a(46),y=(r(b),a(320)),v=r(y),g=a(252),E=r(g),w=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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=[],l=[],o=[],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){l.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){o.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:l}))),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:o}))),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",{className:"sui-notice"},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 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 o=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 l(t,e),o(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 l=a.filter(function(e){return n.includes(e.value)});n=l.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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(9),y=r(b),v=a(4),g=r(v),E=a(2),_=r(E),w=a(31),O=r(w),j=a(183),P=r(j),k=a(43),x=r(k),N=a(78),C=(r(N),function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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(P.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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(184),y=r(b),v=a(31),g=r(v),E=a(9),_=r(E),w=a(4),O=r(w),j=a(2),P=r(j),k=a(176),x=r(k),N=a(18),C=r(N),S=a(16),F=r(S),T=a(43),M=r(T),D=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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(_.default,null,c.default.createElement(O.default,{cols:"12"},c.default.createElement(P.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(P.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(C.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")))),c.default.createElement(M.default,this.props));case"calculations":return c.default.createElement(x.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=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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(9),y=r(b),v=a(4),g=r(v),E=a(2),w=r(E),O=a(324),j=r(O),P=a(12),k=r(P),x=a(16),N=r(x),C=a(46),S=r(C),F=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=this.props.state.hidden;_.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)("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")}))))),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)("Decimal Places")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose the decimal places to round off the calculated result.")),c.default.createElement(k.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",elementClass:"sui-select-inline",simple:!0}),c.default.createElement("option",{value:"0"},"0"),c.default.createElement("option",{value:"1"},"1"),c.default.createElement("option",{value:"2"},"2"),c.default.createElement("option",{value:"3"},"3"),c.default.createElement("option",{value:"4"},"4")),c.default.createElement("span",{className:"sui-field-suffix",style:{marginLeft:"0"}},(0,p.translate)("decimals")))));case"calculations":return c.default.createElement(j.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",{className:"sui-notice"},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=F},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 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 o=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 l(t,e),o(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"),l=a.slice(0,n)+t+a.slice(n);this.updateValue(l),r.val(l),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 l=a,o=a;"{"!==r.substr(l-1,1)&&l-1>=0;)l-=1;var i=r.slice(0,l-1)+r.slice(o,r.length);this.updateValue(i),t.val(i),t.prop("selectionStart",l-1),t.prop("selectionEnd",l-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("|"),l="("+n+")-\\d+",o=new RegExp("\\{("+l+")(\\-[A-Za-z-_]+)?\\}","g"),i=e;a=o.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),l=this.previewFormula(r),o=!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"+o,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: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,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 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 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(2),h=r(m),b=a(18),y=r(b),v=a(6),g=r(v),E=a(12),w=r(E),O=a(22),j=r(O),P=a(16),k=r(P),x=a(326),N=r(x),C=a(9),S=r(C),F=a(4),T=r(F),M=a(13),D=r(M),A=a(21),R=r(A),V=a(41),U=r(V),L=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a}return o(t,e),s(t,[{key:"updateProperty",value:function(e,t){this.props.state[e]=t}},{key:"getNameOptions",value:function(){var e=[];return(0,p.getFields)(this.props.wrappers,["page-break","postdata","upload","captcha","date","time","gdprcheckbox"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"getDisabledFields",value:function(){var e=["calculation","currency"],t=[];return _.each(forminatorData.fields,function(a){_.contains(e,a.type)||t.push(a.type)}),t}},{key:"getEmailFields",value:function(){var e=[];return(0,p.getFieldsByType)("email",this.props.wrappers).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.field_label})}),e}},{key:"getFieldsByType",value:function(e){var t=[];return(0,p.getFieldsByType)(e,this.props.wrappers).map(function(a){var r=a.field_label;"address"===e&&(r=a.element_id),t.push({value:a.element_id,label:r})}),t}},{key:"getFields",value:function(){var e=this.getDisabledFields();return(0,p.getFields)(this.props.wrappers,e)}},{key:"getZipFields",value:function(){return(0,p.getFields)(this.props.wrappers,["calculation","currency","paypal","stripe","postdata","pagination","upload","time","section","captcha","hidden"])}},{key:"render",value:function(){var e=this.props.type,t=(0,p.translate)("In %s",{args:[this.props.state.currency]}),a=this.getFields(),r=this.getZipFields();switch(e){case"labels":return c.default.createElement(c.default.Fragment,null,c.default.createElement(S.default,null,c.default.createElement(T.default,{cols:"12"},c.default.createElement(h.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),placeholder:(0,p.translate)("Enter label"),defaulValue:(0,p.translate)("Credit / Debit Card"),property:"field_label"})))),c.default.createElement(S.default,null,c.default.createElement(T.default,{cols:"12"},c.default.createElement(h.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(S.default,null,c.default.createElement(T.default,{cols:"12"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"language",label:(0,p.translate)("Language"),description:(0,p.translate)("Choose your preferred language for the Stripe field. This will affect the placeholders language, and the card validation errors returned by the Stripe.")}),c.default.createElement("option",{value:"auto"},(0,p.translate)("Auto")),c.default.createElement("option",{value:"en"},(0,p.translate)("English (en)")),c.default.createElement("option",{value:"zh"},(0,p.translate)("Simplified Chinese (zh)")),c.default.createElement("option",{value:"da"},(0,p.translate)("Danish (da)")),c.default.createElement("option",{value:"nl"},(0,p.translate)("Dutch (nl)")),c.default.createElement("option",{value:"fi"},(0,p.translate)("Finnish (fi)")),c.default.createElement("option",{value:"fr"},(0,p.translate)("French (fr)")),c.default.createElement("option",{value:"de"},(0,p.translate)("German (de)")),c.default.createElement("option",{value:"it"},(0,p.translate)("Italian (it)")),c.default.createElement("option",{value:"ja"},(0,p.translate)("Japanese (ja)")),c.default.createElement("option",{value:"no"},(0,p.translate)("Norwegian (no)")),c.default.createElement("option",{value:"es"},(0,p.translate)("Spanish (es)")),c.default.createElement("option",{value:"sv"},(0,p.translate)("Swedish (sv)"))))),c.default.createElement(S.default,null,c.default.createElement(T.default,{cols:"12"},c.default.createElement(y.default,i({},this.props,{settings:this.props.state,property:"card_icon",defaultValue:"true",label:(0,p.translate)("Card icon"),description:(0,p.translate)("Choose whether you want to show the card icon on the Stripe field.")}),c.default.createElement("div",{value:"true"},(0,p.translate)("Show")),c.default.createElement("div",{value:"false"},(0,p.translate)("Hide"))))),c.default.createElement(S.default,null,c.default.createElement(T.default,{cols:"12"},c.default.createElement(g.default,i({},this.props,{property:"verify_zip",settings:this.props.state,default:"false",label:(0,p.translate)("Postal code"),description:(0,p.translate)("Choose whether you want to collect the postal code on the Stripe field.")}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"true",label:(0,p.translate)("Enable"),boxClass:"sui-tab-boxed"}),c.default.createElement("div",{className:"sui-form-field sui-input-md",style:{marginBottom:"10px"}},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Prefill (optional)")),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,property:"zip_field",noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(r,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label)}))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("If you are already collecting ZIP code on your form, you can pre-fill it on the Stripe field."))),c.default.createElement(D.default,i({},this.props,{settings:this.props.state,value:"false",label:(0,p.translate)("Disable")}))))));case"settings":return c.default.createElement(c.default.Fragment,null,!forminatorData.hasStripe&&c.default.createElement("div",{className:"sui-notice sui-notice-error"},c.default.createElement("p",null,(0,p.translate)("You have not connected your Stripe account with Forminator. Connect your Stripe account {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=payments",target:"_blank"})}}))),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,defaultValue:"test",label:(0,p.translate)("Mode of payment"),property:"mode",clearOptions:"true",description:(0,p.translate)("We recommend using test mode to ensure the payments are working as expected and when you are ready to start collecting live payments, switch to Live payments mode.")}),c.default.createElement("span",{value:"test"},(0,p.translate)("Test")),c.default.createElement("span",{value:"live"},(0,p.translate)("Live"))),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Charge currency"),property:"currency",description:(0,p.translate)("It's recommended to charge in your customers' currency to drive more sales and avoid foreign exchange fee to your customers. Read more about Stripe's currency conversions {{link}}here{{/link}}.",{components:{link:c.default.createElement("a",{href:"https://stripe.com/docs/currencies/conversions",target:"_blank"})}}),fieldSize:"240"}),_.map(forminatorData.currencies,function(e,t){return c.default.createElement("option",{value:t,key:t},t)})),c.default.createElement(g.default,i({},this.props,{property:"amount_type",settings:this.props.state,default:"fixed",label:(0,p.translate)("Payment amount")}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"fixed",label:(0,p.translate)("Fixed"),boxClass:"sui-tab-boxed"}),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Fixed amount")),c.default.createElement("div",{style:{maxWidth:"100px",display:"inline-block"}},c.default.createElement(h.default,i({},this.props,{type:"number",property:"amount",settings:this.props.state,placeholder:(0,p.translate)("E.g. 20.00"),simple:!0}))),c.default.createElement("span",{className:"sui-field-suffix"},this.props.state.currency),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Minimum amount required to process Stripe payments is equivalent to {{strong}}0.5 USD{{/strong}}.",{components:{strong:c.default.createElement("strong",null)}})))),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"variable",label:(0,p.translate)("Variable"),boxClass:"sui-tab-boxed"}),c.default.createElement("div",{className:"sui-form-field sui-input-md",style:{marginBottom:"10px"}},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Variable amount"),c.default.createElement("span",{className:"sui-label-note"},t)),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,property:"variable",note:t,noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(a,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label)}))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("A currency field can be used to take user-defined payments such as donations and calculation field can be used to charge a calculated value based on a formula.")))));case"advanced-settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Payment Receipt")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose whether you want Stripe to email a receipt to your customers on successful payment. Note that Stripe sends the email receipt only for live payments. {{link}}Customize email template{{/link}}.",{components:{link:c.default.createElement("a",{href:"https://dashboard.stripe.com/account/branding",target:"_blank"})}})),c.default.createElement(g.default,i({},this.props,{property:"receipt",settings:this.props.state,defaultValue:"true"}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"true",label:(0,p.translate)("Enable"),boxClass:"sui-tab-boxed"}),c.default.createElement(j.default,i({},this.props,{property:"customer_email",settings:this.props.state,label:(0,p.translate)("Email address"),defaultValue:"",placeholder:(0,p.translate)("E.g. john@doe.com")}),c.default.createElement("option",{selected:!0,value:""},(0,p.translate)("Select an email field")),_.map(this.getEmailFields(),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label," ",e.value)}))),c.default.createElement(D.default,i({},this.props,{settings:this.props.state,value:"false",label:(0,p.translate)("Disable")})))),c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Payment Details (optional)")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("You can add a statement decipher and a description to help you and your customers recognizing the transactions made on this form.")),c.default.createElement(h.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Statement decipher"),type:"text",maxLength:"22",placeholder:(0,p.translate)("E.g. Company Name"),property:"company_name",description:(0,p.translate)("this is the business name your customers will see on their card statement."),note:(0,p.translate)("Up to 22 characters only")})),c.default.createElement(U.default,i({},this.props,{settings:this.props.state,property:"product_description",placeholder:(0,p.translate)("Enter your payment description here"),description:(0,p.translate)("This appears on your Stripe account and on the payment receipt sent to your customers."),label:(0,p.translate)("Payment description"),updateProperty:this.updateProperty}),this.getNameOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)}))),c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Card Validation")),c.default.createElement("div",{className:"sui-notice sui-notice-info",style:{marginTop:"0px"}},c.default.createElement("p",null,(0,p.translate)("Note: Stripe field automatically validates the card as the user fills the card details regardless of the validation behaviour set on the Behaviours tab.")))),c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Billing Details")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("If you are collecting billing details on your forms, you can send that data to Stripe. The billing details will appear on your Stripe dashboard for each payment.")),c.default.createElement(g.default,i({},this.props,{settings:this.props.state,property:"billing",default:"false"}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"true",label:(0,p.translate)("Enable"),boxClass:"sui-tab-boxed"}),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,property:"billing_name",label:(0,p.translate)("Customer name (optional)")}),c.default.createElement("option",{value:""},(0,p.translate)("Select a name field")),_.map(this.getFieldsByType("name"),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,property:"billing_email",label:(0,p.translate)("Customer email address (optional)")}),c.default.createElement("option",{value:""},(0,p.translate)("Select an name field")),_.map(this.getFieldsByType("email"),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,property:"billing_address",label:(0,p.translate)("Billing address (optional)")}),c.default.createElement("option",{value:""},(0,p.translate)("Select an address field")),_.map(this.getFieldsByType("address"),function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)}))),c.default.createElement(D.default,i({},this.props,{value:"false",label:(0,p.translate)("Disable")})))),c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Meta Data")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"55px"}},(0,p.translate)("You can send custom meta data to Stripe. This would appear under the MetaData section of every payment. A maximum of 20 meta keys can be sent. The key name must be 20 characters or less, and the mapped data will be truncated to 500 characters as Stripe's requirements.")),c.default.createElement(N.default,i({},this.props,{settings:this.props.state}))));case"meta":return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Meta Data")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("You can send custom meta data to Stripe. This would appear under the MetaData section of every payment. A maximum of 20 meta keys can be sent. The key name must be 20 characters or less, and the mapped data will be truncated to 500 characters as Stripe's requirements."))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("span",{className:"sui-label"},(0,p.translate)("MetaData"))),c.default.createElement(N.default,i({},this.props,{settings:this.props.state})));case"styling":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)("Additional CSS Classes")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Stripe automatically adds classes to the container DOM element based on the field state. However, you can customize them here. {{link}}Read more{{/link}}",{components:{link:c.default.createElement("a",{href:"https://stripe.com/docs/stripe-js/reference#element-options",target:"_blank"})}}))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(h.default,i({},this.props,{property:"base_class",defaultValue:"StripeElement",settings:this.props.state,label:(0,p.translate)("Base class")})),c.default.createElement(h.default,i({},this.props,{property:"complete_class",defaultValue:"StripeElement--complete",settings:this.props.state,label:(0,p.translate)("Complete")})),c.default.createElement(h.default,i({},this.props,{property:"empty_class",defaultValue:"StripeElement--empty",settings:this.props.state,label:(0,p.translate)("Empty")})),c.default.createElement(h.default,i({},this.props,{property:"focused_class",defaultValue:"StripeElement--focus",settings:this.props.state,label:(0,p.translate)("Focused")})),c.default.createElement(h.default,i({},this.props,{property:"invalid_class",defaultValue:"StripeElement--invalid",settings:this.props.state,label:(0,p.translate)("Invalid")})),c.default.createElement(h.default,i({},this.props,{property:"autofilled_class",defaultValue:"StripeElement--webkit-autofill",settings:this.props.state,label:(0,p.translate)("Autofilled (Chrome and Safari only)")}))));case"visibility":return c.default.createElement(R.default,this.props);default:return c.default.createElement("div",null)}}}]),t}(u.Component);t.default=L},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 l(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 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(327),m=r(d),h=function(e){function t(e){l(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.state={options:[].concat(n(a.props.state.options))},a}return i(t,e),u(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(".sui-builder-fields").sortable({start:function(a,r){t&&(e.$el.find(".sui-builder-fields").sortable("refreshPositions"),t=!1)},stop:function(t,a){var r=a.item.index();e.$el.find(".sui-builder-fields").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)}},{key:"updateLabel",value:function(e,t){var a=this.state.options;a[e].label=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:"removeOption",value:function(e){var t=this.state.options;t.splice(e,1),this.updateState(t)}},{key:"addOption",value:function(){var e=this.state.options;e.push({label:"",value:"",default:!1}),this.updateState(e)}},{key:"render",value:function(){var e=this,t=this.state.options;return p.default.createElement("div",{className:"sui-box-builder sui-flushed",ref:function(t){return e.el=t}},p.default.createElement("div",{className:"sui-box-builder-body"},p.default.createElement("div",{className:"sui-builder-fields"},_.map(t,function(t,a){return p.default.createElement(m.default,s({key:a,counter:a,option:t,removeOption:e.removeOption,updateValue:e.updateValue,updateLabel:e.updateLabel},e.props))}),p.default.createElement("div",{className:"sui-form-field"},p.default.createElement("button",{className:"sui-button sui-button-dashed",onClick:this.addOption},p.default.createElement("i",{className:"sui-icon-plus","aria-hidden":"true"}),(0,f.translate)("Add Custom Meta"))),0===t.length&&p.default.createElement("div",{className:"sui-form-field sui-block-content-center"},p.default.createElement("span",{className:"sui-description"},(0,f.translate)('No custom meta data created yet. Click on "+ Add Custom to create custom meta and map form fields to it.'))))))}}]),t}(c.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 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 o=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={focus:!1},a}return l(t,e),o(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:"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=this.state.focus?"fui-on_focus":"",t=(_.isEmpty(this.props.option.label),(0,u.getFields)(this.props.wrappers,["stripe","paypal","section"]));return s.default.createElement("div",{className:"sui-builder-field sui-can_move sui-react "+e},s.default.createElement("div",{className:"sui-field-info"},s.default.createElement("i",{className:"sui-icon-drag sui-align_top","aria-hidden":"true"}),s.default.createElement("div",{className:"sui-builder-field-form"},s.default.createElement("div",{className:"sui-form-field-row"},s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("input",{type:"text",size:"1",placeholder:(0,u.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)})),s.default.createElement("select",{className:"fui-select",value:this.props.option.value,onChange:this.updateValue.bind(this)},s.default.createElement("option",{value:""},(0,u.translate)("Select a Field")),_.map(t,function(e,t){return s.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)}))))),s.default.createElement("div",{className:"sui-field-actions sui-align_top"},s.default.createElement("button",{className:"sui-button-icon sui-button-red",onClick:this.removeOption.bind(this)},s.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Delete MetaData")))))}}]),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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(9),y=r(b),v=a(4),g=r(v),E=a(2),w=r(E),O=a(16),j=r(O),P=a(12),k=r(P),x=a(22),N=r(x),C=a(31),S=r(C),F=a(176),T=r(F),M=a(43),D=r(M),A=a(6),R=r(A),V=a(13),U=r(V),L=a(3),I=r(L),B=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=this.props.type,t=_.isUndefined(this.props.state.limit_min)?1:this.props.state.limit_min,a=_.isUndefined(this.props.state.limit_max)?150:this.props.state.limit_max;_.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(S.default,this.props),c.default.createElement(j.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Currency")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Choose the currency to display on the field. If you are going to collect payments based on this field, it is recommended to keep this currency same as your charge currency to avoid any confusions.")),c.default.createElement(N.default,i({},this.props,{settings:this.props.state,property:"currency"}),_.map(forminatorData.currencies,function(e,t){return c.default.createElement("option",{value:t,key:t},e[0])})))),c.default.createElement(j.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Decimal Points")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("Set the maximum number of digits that your users can enter after the decimal point.")),c.default.createElement(k.default,i({},this.props,{property:"precision",settings:this.props.state,defaultValue:"2",elementClass:"sui-select-inline",simple:!0}),c.default.createElement("option",{value:"0"},"0"),c.default.createElement("option",{value:"1"},"1"),c.default.createElement("option",{value:"2"},"2"),c.default.createElement("option",{value:"3"},"3"),c.default.createElement("option",{value:"4"},"4")),c.default.createElement("span",{className:"sui-field-suffix",style:{marginLeft:"0"}},(0,p.translate)("decimals")))),c.default.createElement(j.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Limit")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Restrict the value that your users can enter in this field within a custom range.")),c.default.createElement("div",{className:"sui-form-field-inline",style:{marginBottom:"5px"}},c.default.createElement(w.default,i({type:"number"},this.props,{settings:this.props.state,placeholder:"0",property:"limit_min",label:(0,p.translate)("Min"),fieldClass:"sui-input-sm"+(parseInt(t)>=parseInt(a)?" sui-form-field-error":"")})),c.default.createElement(w.default,i({type:"number"},this.props,{settings:this.props.state,placeholder:"0",property:"limit_max",label:(0,p.translate)("Max"),fieldClass:"sui-input-sm"+(parseInt(t)>=parseInt(a)?" sui-form-field-error":"")})))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(R.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(U.default,{value:"false",label:(0,p.translate)("Default")}),c.default.createElement(I.default,{value:"true",label:(0,p.translate)("Custom"),boxClass:"sui-tab-boxed"},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("When number is smaller than the min limit"),type:"text",placeholder:(0,p.translate)("E.g. Please enter a number greater than 0."),property:"limit_min_message"})),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("When number is greater than the max limit"),type:"text",placeholder:(0,p.translate)("E.g. Please enter a number lower than 1000."),property:"limit_max_message"})))))),c.default.createElement(D.default,this.props));case"calculations":return c.default.createElement(T.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=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 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 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 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(21),d=r(f),m=a(23),h=r(m),b=a(9),y=r(b),v=a(4),g=r(v),E=a(2),_=r(E),w=a(12),O=r(w),j=a(31),P=r(j),k=a(78),x=(r(k),a(181)),N=r(x),C=a(3),S=r(C),F=a(6),T=r(F),M=a(13),D=r(M),A=a(32),R=r(A),V=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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(R.default,i({},this.props,{settings:this.props.state,extraId:"password",label:(0,p.translate)("Description (optional)"),property:"description",hideEditorOptions:"true",cutomTinymce:"bold,italic,underline,link,alignleft,aligncenter,alignright"})))),"registration"===this.props.formType&&c.default.createElement("div",{className:"sui-accordion sui-accordion-flushed",value:"multiple"},c.default.createElement(N.default,i({},this.props,{label:(0,p.translate)("Confirm Password"),property:"confirm-password",settings:this.props.state}),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)("Confirm password"),property:"confirm-password-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)("Confirm new password"),property:"confirm-password-placeholder"})))),c.default.createElement(y.default,null,c.default.createElement(g.default,{cols:"12"},c.default.createElement(R.default,i({},this.props,{settings:this.props.state,extraId:"confirm-password",label:(0,p.translate)("Description (optional)"),property:"confirm-password-description",hideEditorOptions:"true",cutomTinymce:"bold,italic,underline,link,alignleft,aligncenter,alignright"}))))))));case"settings":return c.default.createElement(c.default.Fragment,null,"registration"===this.props.formType&&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)("Minimum password strength")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose a minimum password strength required to force your users to sign up with a password stronger than the minimum requirement.")),c.default.createElement("div",{style:{marginTop:"10px",marginBottom:"0"}},c.default.createElement(O.default,i({property:"strength",settings:this.props.state},this.props,{defaultValue:"none",fieldClass:"sui-input-md"}),c.default.createElement("option",{value:"none"},(0,p.translate)("None")),c.default.createElement("option",{value:"short"},(0,p.translate)("Short")),c.default.createElement("option",{value:"bad"},(0,p.translate)("Bad")),c.default.createElement("option",{value:"good"},(0,p.translate)("Good")),c.default.createElement("option",{value:"strong"},(0,p.translate)("Strong")))),"none"!==this.props.state.strength&&c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement(_.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Error message"),type:"text",className:"sui-form-control",property:"strength_validation_message",description:(0,p.translate)("This is displayed when the user's password is weaker than the minimum requirement.")}))))),c.default.createElement(P.default,this.props),!0===this.props.state["confirm-password"]&&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)("Validate")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Make sure the user has filled out this field correctly and warn them when they haven't.")),c.default.createElement(T.default,i({},this.props,{property:"validation",settings:this.props.state,default:"false",label:""}),c.default.createElement(D.default,{value:"false",label:(0,p.translate)("None")}),c.default.createElement(S.default,{value:"true",label:(0,p.translate)("Validate Field"),boxClass:"sui-tab-boxed"},c.default.createElement(_.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"})))))));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 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 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 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(2),h=r(m),b=a(18),y=r(b),v=a(6),g=r(v),E=a(22),w=r(E),O=a(12),j=r(O),P=a(16),k=r(P),x=a(21),N=r(x),C=a(9),S=r(C),F=a(4),T=r(F),M=a(46),D=r(M),A=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"getDisabledFields",value:function(){var e=["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,p.getFields)(this.props.wrappers,e)}},{key:"render",value:function(){for(var e=this.props.type,t=this.props.state.layout,a=this.props.state.credit,r=(0,p.translate)("In %s",{args:[this.props.state.currency]}),n=this.getFields(),l=[],o=25;o<56;o++)l.push(o);switch(e){case"settings":return c.default.createElement(c.default.Fragment,null,!forminatorData.hasPayPal&&c.default.createElement("div",{className:"sui-notice sui-notice-error"},c.default.createElement("p",null,(0,p.translate)("You have not connected your PayPal account with Forminator. Connect your PayPal account {{link}}here{{/link}} and then come back to configure this field.",{components:{link:c.default.createElement("a",{href:forminatorData.settingsUrl+"&section=payments",target:"_blank"})}}))),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,defaultValue:"sandbox",label:(0,p.translate)("Mode of payment"),property:"mode",clearOptions:"true",description:(0,p.translate)("We recommend using sandbox mode to ensure the payments are working as expected and when you are ready to start collecting live payments, switch to the {{strong}}Live{{/strong}} payments mode.",{components:{strong:c.default.createElement("strong",null)}})}),c.default.createElement("span",{value:"sandbox"},(0,p.translate)("Sandbox")),c.default.createElement("span",{value:"live"},(0,p.translate)("Live"))),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Charge currency"),property:"currency",description:(0,p.translate)("It's recommended to charge in your customers' currency to drive more sales and avoid foreign exchange fee to your customers."),fieldSize:"240"}),_.map(forminatorData.ppCurrencies,function(e,t){return c.default.createElement("option",{value:t,key:t},t)})),c.default.createElement(g.default,i({},this.props,{property:"amount_type",settings:this.props.state,default:"fixed",label:(0,p.translate)("Payment amount")}),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"fixed",label:(0,p.translate)("Fixed"),boxClass:"sui-tab-boxed"}),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Fixed amount")),c.default.createElement("div",{style:{width:"100%",maxWidth:"240px",display:"inline-block"}},c.default.createElement(h.default,i({},this.props,{type:"number",property:"amount",settings:this.props.state,placeholder:(0,p.translate)("E.g. 20.00"),simple:!0}))),c.default.createElement("span",{className:"sui-field-suffix"},this.props.state.currency))),c.default.createElement(d.default,i({},this.props,{settings:this.props.state,value:"variable",label:(0,p.translate)("Variable"),boxClass:"sui-tab-boxed"}),c.default.createElement("div",{className:"sui-form-field sui-input-md",style:{marginBottom:"10px"}},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Variable amount"),c.default.createElement("span",{className:"sui-label-note"},r)),c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"variable",note:r,noWrapper:!0}),c.default.createElement("option",{value:""},(0,p.translate)("Select field")),_.map(n,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label)}))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("A currency field can be used to take user-defined payments such as donations and calculation field can be used to charge a calculated value based on a formula.")))));case"customize":return c.default.createElement(c.default.Fragment,null,c.default.createElement(w.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Label"),property:"label",description:(0,p.translate)("Choose a label for your PayPal button. Note that PayPal checkout doesn't allow a custom label for the PayPal button. You can only choose from the pre-defined labels."),fieldSize:"240"}),c.default.createElement("option",{value:"checkout"},(0,p.translate)("PayPal Checkout")),c.default.createElement("option",{value:"pay"},(0,p.translate)("Pay with PayPal")),c.default.createElement("option",{value:"paypal"},(0,p.translate)("PayPal"))),c.default.createElement(j.default,i({},this.props,{settings:this.props.state,property:"color",elementClass:"sui-select-colors",fieldSize:"240",label:(0,p.translate)("Color"),description:(0,p.translate)("PayPal recommends using the Gold button since it is widely known as their brand color. However, if that does not suit your theme, you can choose a different color.")}),c.default.createElement("option",{value:"gold","data-color":"#FFC439"},(0,p.translate)("Gold")),c.default.createElement("option",{value:"blue","data-color":"#009CDE"},(0,p.translate)("Blue")),c.default.createElement("option",{value:"silver","data-color":"#EEEEEE"},(0,p.translate)("Silver")),c.default.createElement("option",{value:"white","data-color":"#FFFFFF"},(0,p.translate)("White")),c.default.createElement("option",{value:"black","data-color":"#2C2E2F"},(0,p.translate)("Black"))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Width")),c.default.createElement("div",{style:{width:"100%",maxWidth:"100px",display:"inline-block"}},c.default.createElement(h.default,i({},this.props,{type:"number",property:"width",minValue:"150",maxValue:"750",settings:this.props.state,placeholder:(0,p.translate)("E.g. 250"),simple:!0}))),c.default.createElement("span",{className:"sui-field-suffix"},(0,p.translate)("px")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the width of PayPal Smart Buttons. It can be anywhere between 150px to 750px. Leave this empty if you want the buttons to take the full width of the form up to the 750px limit."))),c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Height")),c.default.createElement("div",{style:{width:"100%",maxWidth:"100px",display:"inline-block",verticalAlign:"middle"}},c.default.createElement(w.default,i({},this.props,{settings:this.props.state,property:"height",noWrapper:!0}),l.map(function(e,t){return c.default.createElement("option",{value:e,key:t},e)}))),c.default.createElement("span",{className:"sui-field-suffix"},(0,p.translate)("px")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the height of PayPal Smart Buttons. It can be anywhere between 25px to 55px"))),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,defaultValue:"rect",label:(0,p.translate)("Shape"),property:"shape",clearOptions:"true",description:(0,p.translate)("Choose your preferred shape from your PayPal Smart Buttons.")}),c.default.createElement("span",{value:"rect"},(0,p.translate)("Rectangular")),c.default.createElement("span",{value:"pill"},(0,p.translate)("Pill"))),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,defaultValue:"vertical",label:(0,p.translate)("Layout"),property:"layout",clearOptions:"true",description:(0,p.translate)("We recommend the vertical layout as it allows additional payment methods such as Credit Cards. You can read about the layout options {{link}}here{{/link}}.",{components:{link:c.default.createElement("a",{href:"https://developer.paypal.com/docs/checkout/integration-features/customize-button/#layout",target:"_blank"})}})}),c.default.createElement("span",{value:"vertical"},(0,p.translate)("Vertical")),c.default.createElement("span",{value:"horizontal"},(0,p.translate)("Horizontal"))),"vertical"!==t&&c.default.createElement(y.default,i({},this.props,{settings:this.props.state,defaultValue:"true",label:(0,p.translate)("Tagline"),property:"tagline",clearOptions:"true",description:(0,p.translate)('Choose whether to show the default PayPal tagline {{strong}}"The safer, easier way to pay"{{/strong}} below your PayPal button.',{components:{strong:c.default.createElement("strong",null)}})}),c.default.createElement("span",{value:"true"},(0,p.translate)("Show")),c.default.createElement("span",{value:"false"},(0,p.translate)("Hide"))));case"advanced-settings":return c.default.createElement(c.default.Fragment,null,c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Language")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("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}}",{components:{link:c.default.createElement("a",{href:"https://developer.paypal.com/docs/api/reference/locale-codes/#supported-locale-codes",target:"_blank"})}})),c.default.createElement(S.default,null,c.default.createElement(T.default,{cols:"6"},c.default.createElement(h.default,i({},this.props,{settings:this.props.state,placeholder:(0,p.translate)("Eg. en_US"),property:"locale"}))))),"disable"!==a&&"horizontal"!==t&&c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Disable Card Options")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("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.")),c.default.createElement(S.default,null,c.default.createElement(T.default,{cols:"6"},c.default.createElement(D.default,i({},this.props,{property:"visa",settings:this.props.state,label:(0,p.translate)("Visa"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(D.default,i({},this.props,{property:"mastercard",settings:this.props.state,label:(0,p.translate)("Mastercard"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(D.default,i({},this.props,{property:"amex",settings:this.props.state,label:(0,p.translate)("American Express"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(D.default,i({},this.props,{property:"discover",settings:this.props.state,label:(0,p.translate)("Discover"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))),c.default.createElement(T.default,{cols:"6"},c.default.createElement(D.default,i({},this.props,{property:"jcb",settings:this.props.state,label:(0,p.translate)("JCB"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(D.default,i({},this.props,{property:"elo",settings:this.props.state,label:(0,p.translate)("Elo"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"})),c.default.createElement(D.default,i({},this.props,{property:"hiper",settings:this.props.state,label:(0,p.translate)("Hiper"),itemClass:"sui-checkbox-stacked sui-checkbox-sm"}))))),c.default.createElement(k.default,null,c.default.createElement("label",{className:"sui-settings-label"},(0,p.translate)("Debug Mode")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(0,p.translate)("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.")),c.default.createElement(y.default,i({},this.props,{settings:this.props.state,property:"debug_mode",defaultValue:"disable",noWrapper:!0}),c.default.createElement("div",{value:"disable"},(0,p.translate)("Disable")),c.default.createElement("div",{value:"enable"},(0,p.translate)("Enable")))));case"visibility":return c.default.createElement(N.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 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 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 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(9),h=r(m),b=a(4),y=r(b),v=a(2),g=r(v),E=a(26),w=r(E),O=a(12),j=r(O),P=a(18),k=r(P),x=a(10),N=r(x),C=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=(0,p.getForminatorField)(a.props.state);return a.settings=r.settings,a}return o(t,e),s(t,[{key:"render",value:function(){var e=this,t=_.map(this.settings,function(t,a){switch(t.type){case"Toggle":return c.default.createElement(y.default,{cols:t.size,customClass:t.className,key:a},c.default.createElement(w.default,i({},e.props,{settings:e.props.state,label:t.label||"",placeholder:t.placeholder||"",property:t.name,defaultValue:t.default})));case"Text":return c.default.createElement(y.default,{cols:t.size,key:a},c.default.createElement(g.default,i({},e.props,{settings:e.props.state,label:t.label||"",placeholder:t.placeholder||"",property:t.name,defaultValue:t.default})));case"Color":return c.default.createElement(y.default,{cols:t.size,key:a},c.default.createElement(N.default,i({},e.props,{settings:e.props.state,label:t.label||"",placeholder:t.placeholder||"",property:t.name,defaultValue:t.default})));case"Select":return c.default.createElement(y.default,{cols:t.size,key:a},c.default.createElement(j.default,i({},e.props,{settings:e.props.state,label:t.label||"",placeholder:t.placeholder||"",property:t.name,defaultValue:t.default}),_.map(t.values,function(e,t){return c.default.createElement("option",{value:e.value,key:t},e.label)})));case"Radio":return c.default.createElement(y.default,{cols:t.size,key:a},c.default.createElement(k.default,i({},e.props,{settings:e.props.state,label:t.label||"",placeholder:t.placeholder||"",property:t.name,defaultValue:t.default}),_.map(t.values,function(e,t){return c.default.createElement(d.default,{value:e.value,key:t},e.label)})));default:return c.default.createElement("div",null,(0,p.translate)("Unknown setting"))}});return c.default.createElement("div",{className:"forminator-advanced-settings"},c.default.createElement(h.default,null,t))}}]),t}(u.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 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 o=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.modal.modalProps.closeModal.bind(a),a.previewLoaded=a.previewLoaded.bind(a),a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$body=jQuery(this.body),this.mounted=!0,this.load(),jQuery(document).off("after.load.forminator"),jQuery(document).on("after.load.forminator",this.previewLoaded)}},{key:"componentWillUnmount",value:function(){this.mounted=!1,(0,u.hasFieldType)("postdata",this.props.wrappers)&&(window.jQuery=window.jQueryFormi)}},{key:"previewLoaded",value:function(){this.$body.find(".sui-notice-loading").remove()}},{key:"load",value:function(){var e={wrappers:this.props.wrappers,settings:this.props.settings},t={id:this.props.id,action:"forminator_load_cform",type:"forminator_forms",nonce:forminatorData.previewNonce,render_id:0,is_preview:1,preview_data:e,last_submit_data:{}};this.$el.forminatorLoader(t)}},{key:"render",value:function(){var e=this;return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"sui-box-header"},s.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},"Preview"),s.default.createElement("div",{className:"sui-actions-right"},s.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":"Close this dialog window",onClick:this.closeModal}))),s.default.createElement("div",{ref:function(t){return e.body=t},className:"sui-box-body"},s.default.createElement("div",{className:"sui-notice sui-notice-loading"},s.default.createElement("p",null,(0,u.translate)("Loading preview…"))),s.default.createElement("form",{ref:function(t){return e.el=t},id:"forminator-module-"+this.props.id,"data-forminator-render":"0",className:"sui-hidden"})))}}]),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 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 o=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.modal.modalProps.closeModal.bind(a),a}return l(t,e),o(t,[{key:"render",value:function(){return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"sui-box-header sui-block-content-center"},s.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}),s.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,u.translate)("Publishing form…"))),s.default.createElement("div",{className:"sui-box-body sui-box-body-slim sui-block-content-center"},s.default.createElement("p",null,(0,u.translate)("Great work! Please hold tight a few moments while we publish your form to the world."))),forminatorData.showBranding&&s.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))}}]),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 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 o=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(19),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.modal.modalProps.closeModal.bind(a),a.closeSettingModal=a.closeSettingModal.bind(a),a.trashField=a.trashField.bind(a),a}return l(t,e),o(t,[{key:"trashField",value:function(){this.props.modal.modalProps.trashField(),this.closeModal()}},{key:"editSettings",value:function(e){var t=JSON.stringify(this.props.wrappers),a=JSON.parse(t),r=a.map(function(t){return t.fields=t.fields.filter(function(t){return t.element_id===e.id}),t}),n=r.filter(function(e){return!_.isEmpty(e.fields)});this.closeModal(),this.props.actions.modalActions.showModal({open:!0,field:e.field.fieldData,wrapper:n[0],closeModal:this.closeSettingModal,isValid:!0},"field-settings")}},{key:"closeSettingModal",value:function(e){this.props.actions.modalActions.showModal({open:!1,field:this.props.field,wrapper:this.props.wrapper},"field-settings")}},{key:"render",value:function(){var e=this,t=_.isEmpty(this.props.modal.modalProps.field.field_label)?this.props.modal.modalProps.field.element_id:this.props.modal.modalProps.field.field_label,a=(0,u.getCalculationFields)(this.props.wrappers),r=[];if(_.each(a,function(t){(_.isUndefined(t.formula)||!1===t.formula)&&(t.formula=""),t.formula.indexOf(e.props.modal.modalProps.field.element_id)>=0&&r.push({id:t.element_id,label:t.label,field:t})}),_.isEmpty(r))return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"sui-box-header sui-block-content-center"},s.default.createElement("h3",{id:"dialogTitle",className:"sui-box-title"},(0,u.translate)("Delete field %s",{args:[t]})),s.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,u.translate)("Close this dialog window"),onClick:this.closeModal})),s.default.createElement("div",{className:"sui-box-body sui-box-body-slim sui-block-content-center"},s.default.createElement("p",{className:"sui-description"},(0,u.translate)("Deleting this field")," {",this.props.modal.modalProps.field.element_id,"} ",(0,u.translate)("will remove its value from the existing submissions as well."))),s.default.createElement("div",{className:"sui-box-footer sui-box-footer-center",style:{paddingTop:"0"}},s.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},(0,u.translate)("Cancel")),s.default.createElement("button",{className:"sui-button sui-button-ghost sui-button-red",onClick:this.trashField},s.default.createElement("span",{className:"sui-loading-text"},s.default.createElement("i",{className:"sui-icon-trash","aria-hidden":"true"}),(0,u.translate)("DELETE")))));if(!_.isEmpty(r)){var n=_.map(r,function(t,a){return s.default.createElement("li",{className:"wpmudev-dropdown--option",key:a},s.default.createElement("i",{className:"fui-list-icon sui-icon-calculator","aria-hidden":"true"}),s.default.createElement("span",{className:"fui-list-label"},t.label),s.default.createElement("button",{className:"sui-button-icon",onClick:e.editSettings.bind(e,t)},s.default.createElement("i",{className:"sui-icon-pencil","aria-hidden":"true"}),s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Edit Field"))))});return s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"sui-box-header sui-block-content-center"},s.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,u.translate)("Field can't be deleted")),s.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,u.translate)("Close this dialog window"),onClick:this.closeModal})),s.default.createElement("div",{className:"sui-box-body sui-box-body-slim sui-block-content-center"},s.default.createElement("p",{className:"sui-description"},(0,u.translate)("Please remove the reference of this field from the following form fields and then delete this.")),s.default.createElement("div",{className:"sui-form-field"},s.default.createElement("label",{className:"sui-label"},(0,u.translate)("Form Fields")),s.default.createElement("ul",{className:"fui-list-fields"},n))),s.default.createElement("div",{className:"sui-box-footer sui-box-footer-right",style:{paddingTop:"0"}},s.default.createElement("button",{className:"sui-button forminator-discard-field-settings",onClick:this.closeModal},(0,u.translate)("Got It"))))}}}]),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 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 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 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(30),f=r(p),d=function(e){function t(e){n(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.copyToClipboard=a.copyToClipboard.bind(a),a}return o(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:"render",value:function(){var e=this;return u.default.createElement(u.default.Fragment,null,u.default.createElement("div",{className:"sui-box-header sui-block-content-center"},u.default.createElement("i",{className:"sui-icon-check sui-lg","aria-hidden":"true",style:{display:"block"}}),u.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,c.translate)("Ready to go!")),u.default.createElement("button",{className:"sui-dialog-close forminator-cancel-create-form","aria-label":(0,c.translate)("Close this dialog window"),onClick:this.closeModal})),u.default.createElement("div",{className:"sui-box-body sui-box-body-slim sui-block-content-center"},u.default.createElement("p",null,u.default.createElement("small",null,(0,c.translate)("Your form is now ready to be embedded into a page or template of your choice. Simply copy and paste the shortcode below to display it!"))),u.default.createElement("div",{id:"forminator-form-name-input",className:"sui-form-field"},u.default.createElement("label",{htmlFor:"forminator-form-name",className:"sui-label"},(0,c.translate)("Shortcode")),u.default.createElement("div",{className:"sui-with-button sui-with-button-icon"},u.default.createElement("input",{type:"text",id:"forminator-form-shortcode",ref:function(t){return e.input=t},className:"sui-form-control",defaultValue:'[forminator_form id="'+this.props.id+'"]'}),u.default.createElement("button",{className:"sui-button-icon",onClick:this.copyToClipboard},u.default.createElement("i",{"aria-hidden":"true",className:"sui-icon-copy"}),u.default.createElement("span",{className:"sui-screen-reader-text"},(0,c.translate)("Copy shortcode")))))),forminatorData.showBranding&&u.default.createElement("img",{src:forminatorData.imagesUrl+"/forminator-visibility.png",srcSet:forminatorData.imagesUrl+"/forminator-visibility.png 1x,\n\t\t\t\t\t\t"+forminatorData.imagesUrl+"/forminator-visibility@2x.png 2x",className:"sui-image sui-image-center"}))}}]),t}(s.Component);t.default=d},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 l(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 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(19),d=a(1),m=a(9),h=r(m),b=a(4),y=r(b),v=a(2),g=r(v),E=a(13),w=r(E),O=a(3),j=r(O),P=a(6),k=r(P),x=a(170),N=r(x),C=a(337),S=r(C),F=a(16),T=r(F),M=function(e){function t(e){l(this,t);var a=o(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.state=a.props.settings.paginationData||{},a.fields=(0,d.getFields)(a.props.wrappers,[]),a.fields=_.filter(a.fields,function(e){return"page-break"===e.field_type}),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(){this.props.actions.settingsActions.updateSetting("paginationData",this.state),this.closeModal()}},{key:"render",value:function(){var e=this,t=this.fields.length;return p.default.createElement(p.default.Fragment,null,p.default.createElement("div",{className:"sui-box-header"},p.default.createElement("h3",{className:"sui-box-title",id:"dialogTitle"},(0,d.translate)("Edit Field")),p.default.createElement("div",{className:"sui-actions-left"},p.default.createElement("span",{className:"sui-tag sui-tag-draft"},(0,d.translate)("Pagination"))),p.default.createElement("div",{className:"sui-actions-right"},p.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,d.translate)("Close this dialog window"),onClick:this.closeModal}))),p.default.createElement("div",{className:"sui-box-body"},p.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},p.default.createElement("div",{className:"sui-tabs-menu"},p.default.createElement(f.NavLink,{to:"/builder/labels/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Labels")),p.default.createElement(f.NavLink,{to:"/builder/settings/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,d.translate)("Settings"))),p.default.createElement(f.Route,{exact:!0,path:"/builder/",render:function(){return p.default.createElement(f.Redirect,{to:"/builder/labels"})}}),p.default.createElement("div",{className:"sui-tabs-content"},p.default.createElement("div",{className:"sui-tab-content active"},p.default.createElement(f.Route,{path:"/builder/labels",render:function(){return p.default.createElement(p.default.Fragment,null,p.default.createElement(h.default,null,p.default.createElement(y.default,{cols:"12"},p.default.createElement("span",{className:"sui-description"},(0,d.translate)("Your form is divided into multiple pages by Page Break field(s), and you can customize the label of each page here. Page names appear on your form header along with the progress indicator.")))),_.map(e.fields,function(t,a){return p.default.createElement(h.default,null,p.default.createElement(y.default,{cols:"12"},p.default.createElement(g.default,s({},e.props,{settings:e.state,label:"Page "+(a+1),defaultValue:"Page "+(a+1),property:t.element_id+"-steps",updateProperty:e.updateProperty}))))}),p.default.createElement(h.default,null,p.default.createElement(y.default,{cols:"12"},p.default.createElement(g.default,s({},e.props,{settings:e.state,label:(0,d.translate)("Finish"),defaultValue:"Finish",property:"last-steps",updateProperty:e.updateProperty})))))}}),p.default.createElement(f.Route,{path:"/builder/settings",render:function(){return p.default.createElement(p.default.Fragment,null,p.default.createElement(T.default,null,p.default.createElement(k.default,s({},e.props,{settings:e.state,property:"pagination-header-design",settingsLabel:(0,d.translate)("Progress Indicator"),default:"show",settingsDesc:(0,d.translate)("Choose whether to show a progress indicator on top of your form, so your users know how far they are through your form."),updateProperty:e.updateProperty}),p.default.createElement(j.default,s({},e.props,{value:"show",boxClass:"sui-tab-boxed",label:(0,d.translate)("Show")}),p.default.createElement(N.default,s({},e.props,{settings:e.state,defaultValue:"nav",radioClass:"sui-radio-sm",property:"pagination-header",updateProperty:e.updateProperty}),p.default.createElement("div",{value:"nav",hasImage:!0,image1x:"pagination-steps.png",image2x:"pagination-steps@2x.png"},(0,d.translate)("Steps")),p.default.createElement("div",{value:"bar",hasImage:!0,image1x:"pagination-progress-bar.png",image2x:"pagination-progress-bar@2x.png"},(0,d.translate)("Progress Bar")))),p.default.createElement(w.default,{value:"off"},(0,d.translate)("Hide")))),p.default.createElement(T.default,null,p.default.createElement(k.default,s({},e.props,{settings:e.state,property:"pagination-labels",settingsLabel:(0,d.translate)("Buttons Text"),default:"default",settingsDesc:(0,d.translate)("Choose whether you want to use default text for the Previous and Next button or use custom text."),updateProperty:e.updateProperty}),p.default.createElement(w.default,{value:"default"},(0,d.translate)("Default")),p.default.createElement(j.default,s({},e.props,{value:"custom",label:(0,d.translate)("Custom")}),p.default.createElement(S.default,s({},e.props,{field:e.fields,length:t,updateProperty:e.updateProperty,state:e.state}))))))}}))))),p.default.createElement("div",{className:"sui-box-footer"},p.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},p.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),(0,d.translate)("Discard Changes")),p.default.createElement("div",{className:"sui-actions-right"},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"})))))}}]),t}(c.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 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 o=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 l(t,e),o(t,[{key:"render",value:function(){var e=this;return s.default.createElement("table",{className:"sui-table fui-table--pagination"},s.default.createElement("thead",null,s.default.createElement("tr",null,s.default.createElement("th",null,(0,u.translate)("Page")),s.default.createElement("th",null,(0,u.translate)("Previous Button")),s.default.createElement("th",null,(0,u.translate)("Next Button")))),s.default.createElement("tbody",null,_.map(this.props.field,function(t,a){return s.default.createElement("tr",null,s.default.createElement("td",{class:"sui-table-item-title"},"Page "+(a+1)),s.default.createElement("td",null,a<=0&&s.default.createElement("strong",{style:{color:"#888888"}},(0,u.translate)("No Previous button")),a>0&&s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Previous"),className:"sui-form-control",value:_.isUndefined(e.props.state[t.element_id+"-previous"])?(0,u.translate)("Previous"):e.props.state[t.element_id+"-previous"],onChange:function(a){e.props.updateProperty(t.element_id+"-previous",a.target.value)}})),s.default.createElement("td",null,s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Next"),className:"sui-form-control",value:_.isUndefined(e.props.state[t.element_id+"-next"])?(0,u.translate)("Next"):e.props.state[t.element_id+"-next"],onChange:function(a){e.props.updateProperty(t.element_id+"-next",a.target.value)}})))}),s.default.createElement("tr",null,s.default.createElement("td",{class:"sui-table-item-title"},"Page "+(this.props.length+1)),s.default.createElement("td",null,s.default.createElement("input",{type:"text",placeholder:(0,u.translate)("Previous"),className:"sui-form-control",value:_.isUndefined(this.props.state["last-previous"])?(0,u.translate)("Previous"):this.props.state["last-previous"],onChange:function(t){e.props.updateProperty("last-previous",t.target.value)}})),s.default.createElement("td",null,s.default.createElement("strong",{style:{color:"#888888"}},(0,u.translate)("No Next button"))))))}}]),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 l(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 i(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 s(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 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(){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(19),m=a(1),h=a(9),b=r(h),y=a(4),v=r(y),g=a(2),E=r(g),w=a(32),O=r(w),j=a(41),P=r(j),k=a(16),x=(r(k),a(6)),N=r(x),C=a(339),S=r(C),F=a(341),T=r(F),M=a(3),D=r(M),A=a(18),R=r(A),V=function(e){function t(e){o(this,t);var a=i(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.data=Object.assign({},a.props.modal.modalProps),a.state=a.data.notification,a}return s(t,e),c(t,[{key:"updateProperty",value:function(e,t){this.setState(l({},e,t))}},{key:"componentWillUnmount",value:function(){this.props.history.push({pathname:"/notifications/"})}},{key:"getNameOptions",value:function(){var e=[];return(0,m.getFields)(this.props.wrappers,["page-break","postdata","upload","captcha","date","time","email","gdprcheckbox","password"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"getEmailOptions",value:function(){var e=[];return(0,m.getFields)(this.props.wrappers,["address","captcha","date","gdprcheckbox","html","name","number","page-break","phone","postdata","section","time","upload","website","textarea","text","paypal","stripe","currency","calculation","password","signature"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"getRecipientAddressesOptions",value:function(){var e=this.getEmailOptions(),t=[];return e.map(function(e){t.push({id:e.value,text:e.label})}),t}},{key:"getRecipientTagsOptions",value:function(){var e=this.getRecipientAddressesOptions();return{tags:!0,tokenSeparators:[","," "],language:{searching:function(){return(0,m.translate)("Searching")},noResults:function(){return(0,m.translate)("No Result Found")}},placeholder:(0,m.translate)("Recipient(s)"),ajax:{url:forminatorData.ajaxUrl,type:"POST",delay:350,data:function(e){return{action:"forminator_builder_search_emails",_wpnonce:forminatorData.searchNonce,q:e.term}},processResults:function(t){return{results:e.concat(t.data)}},cache:!0},templateResult:function(e){return _.isUndefined(e.id)||_.isUndefined(e.text)||_.isUndefined(e.display_name)?e.text:jQuery("<span><b>"+e.text+"</b> - <small>"+e.display_name+"</small></span>")},createTag:function(e){var t=jQuery.trim(e.term);return(0,m.isEmailWp)(t)?{id:t,text:t}:null}}}},{key:"applyChanges",value:function(){if(this.data.new){var e=Object.assign({},this.state),t=[].concat(n(this.data.notifications),[e]);this.props.actions.notificationsActions.updateNotifications(t)}this.data.new||this.props.actions.notificationsActions.updateNotification(this.state),this.closeModal()}},{key:"render",value:function(){var e=this,t=_.isUndefined(this.state["email-recipients"])?"default":this.state["email-recipients"],a=(0,m.hasFieldType)("upload",this.props.wrappers),r=!0,n="";"default"===t&&_.isEmpty(this.state.recipients)&&(r=!1,n=(0,m.translate)("Please enter recipients")),"routing"===t&&(_.isUndefined(this.state.routing)||_.isEmpty(this.state.routing)?(n=(0,m.translate)("Please add email routing"),r=!1):_.each(this.state.routing,function(e){_.isEmpty(e.email)&&(n=(0,m.translate)("Please enter recipients"),r=!1),_.isEmpty(e.rule)&&(n=(0,m.translate)("Please select rule"),r=!1)}));var l="email-subject",o="email-editor";if("registration"===this.props.formType)switch(_.isUndefined(this.props.settings["activation-method"])?"":this.props.settings["activation-method"]){case"email":l="email-subject-method-email",o="email-editor-method-email";break;case"manual":l="email-subject-method-manual",o="email-editor-method-manual";break;case"default":default:l="email-subject",o="email-editor"}return(_.isUndefined(this.state[o])||_.isEmpty(this.state[o]))&&(r=!1,n=(0,m.translate)("Please fix the error(s) in the EMAIL tab.")),(_.isUndefined(this.state[l])||_.isEmpty(this.state[l]))&&(r=!1,n=(0,m.translate)("Please fix the error(s) in the EMAIL tab.")),f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:"sui-box-header"},f.default.createElement("h3",{id:"dialogTitle",className:"sui-box-title"},(0,m.translate)("Add Email Notification")),f.default.createElement("div",{className:"sui-actions-right"},f.default.createElement("button",{className:"sui-dialog-close forminator-builder-fields-close","aria-label":(0,m.translate)("Close this dialog window"),onClick:this.closeModal}))),f.default.createElement("div",{className:"sui-box-body"},f.default.createElement("div",{className:"sui-tabs sui-tabs-flushed"},f.default.createElement("div",{className:"sui-tabs-menu"},f.default.createElement(d.NavLink,{to:"/notifications/email/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Email")),f.default.createElement(d.NavLink,{to:"/notifications/recipients/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Recipients")),f.default.createElement(d.NavLink,{to:"/notifications/advanced/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Advanced")),f.default.createElement(d.NavLink,{to:"/notifications/conditions/",exact:!0,className:"sui-tab-item",activeClassName:"active"},(0,m.translate)("Conditions"))),f.default.createElement(d.Route,{exact:!0,path:"/notifications/",render:function(){return f.default.createElement(d.Redirect,{to:"/notifications/email"})}}),f.default.createElement("div",{className:"sui-tabs-content"},f.default.createElement("div",{className:"sui-tab-content active"},f.default.createElement(d.Route,{path:"/notifications/email",render:function(){return f.default.createElement(f.default.Fragment,null,f.default.createElement(b.default,null,f.default.createElement(v.default,{cols:"12"},f.default.createElement(E.default,u({},e.props,{settings:e.state,label:(0,m.translate)("Label"),description:(0,m.translate)("The label is to help you identify this email and won't appear anywhere in the email."),placeholder:(0,m.translate)("E.g. Sales Team Notification"),property:"label",updateProperty:e.updateProperty})))),f.default.createElement(b.default,null,f.default.createElement(v.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:l,placeholder:(0,m.translate)("E.g. New Form Submission"),label:(0,m.translate)("Subject"),required:"true",isRequired:"true",requiredError:(0,m.translate)("Email subject can't be empty"),updateProperty:e.updateProperty}),e.getNameOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)})))),f.default.createElement(b.default,null,f.default.createElement(v.default,{cols:"12"},f.default.createElement(O.default,u({},e.props,{settings:e.state,property:o,extraId:"email-editor",editorOptions:forminatorData.variables,paymentOptions:forminatorData.payment_variables,enableFormData:"true",enableAllFormFields:"true",enableAllNonFormFields:"true",enablePostData:"true",enableUpload:"true",wrappers:e.props.wrappers,boxClass:"sui-tab-boxed",label:(0,m.translate)("Body"),isRequired:"true",requiredError:(0,m.translate)("Email body can't be empty"),updateProperty:e.updateProperty})))),a&&f.default.createElement(b.default,null,f.default.createElement(v.default,{cols:"12"},f.default.createElement(R.default,u({},e.props,{settings:e.state,property:"email-attachment",defaultValue:"false",label:(0,m.translate)("Attachments"),description:(0,m.translate)("Choose whether you want to attach the files uploaded via the File Upload fields to this email."),updateProperty:e.updateProperty}),f.default.createElement("div",{value:"false"},(0,m.translate)("None")),f.default.createElement("div",{value:"true"},(0,m.translate)("Uploaded files"))))))}}),f.default.createElement(d.Route,{path:"/notifications/recipients",render:function(){return f.default.createElement(f.default.Fragment,null,f.default.createElement("span",{className:"sui-description",style:{marginTop:"0",marginBottom:"10px"}},(0,m.translate)("The default behavior is to send the email to the same recipients. If you want to send this email to different recipients conditionally, you can enable the email routing and change the recipients of this email based on the user input.")),f.default.createElement("div",{className:"sui-form-field",style:{marginTop:"0"}},f.default.createElement(N.default,u({},e.props,{property:"email-recipients",default:"default",settings:e.state,updateProperty:e.updateProperty,simple:!0}),f.default.createElement(D.default,u({},e.props,{value:"default",label:(0,m.translate)("Default"),boxClass:"sui-tab-boxed"}),f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"recipients",placeholder:(0,m.translate)("E.g. sales@website.com"),label:(0,m.translate)("Recipients"),required:"true",updateProperty:e.updateProperty,note:(0,m.translate)("Separate multiple emails with a comma")}),e.getEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)}))),f.default.createElement(D.default,u({},e.props,{value:"routing",label:(0,m.translate)("Email Routing")}),f.default.createElement(S.default,u({},e.props,{updateProperty:e.updateProperty,state:e.state}))))))}}),f.default.createElement(d.Route,{path:"/notifications/advanced",render:function(){return f.default.createElement(f.default.Fragment,null,f.default.createElement(b.default,null,f.default.createElement(v.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"from-name",placeholder:(0,m.translate)("Enter from name here"),label:(0,m.translate)("From Name"),updateProperty:e.updateProperty}),e.getNameOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)})))),f.default.createElement(b.default,null,f.default.createElement(v.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"form-email",placeholder:(0,m.translate)("Enter from email here"),label:(0,m.translate)("From Email"),updateProperty:e.updateProperty}),e.getEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)})))),f.default.createElement(b.default,null,f.default.createElement(v.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"replyto-email",placeholder:(0,m.translate)("Enter reply-to email here"),label:(0,m.translate)("Reply-to Email"),updateProperty:e.updateProperty}),e.getEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)})))),f.default.createElement(b.default,null,f.default.createElement(v.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"cc-email",placeholder:(0,m.translate)("Enter CC email here"),label:(0,m.translate)("CC Emails"),updateProperty:e.updateProperty}),e.getEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)})))),f.default.createElement(b.default,null,f.default.createElement(v.default,{cols:"12"},f.default.createElement(P.default,u({},e.props,{settings:e.state,property:"bcc-email",placeholder:(0,m.translate)("Enter BCC email here"),label:(0,m.translate)("BCC Emails"),updateProperty:e.updateProperty}),e.getEmailOptions().map(function(e,t){return f.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)})))))}}),f.default.createElement(d.Route,{path:"/notifications/conditions",render:function(){return f.default.createElement(T.default,u({},e.props,{updateProperty:e.updateProperty,state:e.state}))}}))))),f.default.createElement("div",{className:"sui-box-footer"},f.default.createElement("button",{className:"sui-button sui-button-ghost forminator-discard-field-settings",onClick:this.closeModal},f.default.createElement("i",{className:"sui-icon-undo","aria-hidden":"true"}),(0,m.translate)("Discard Changes")),f.default.createElement("div",{className:"sui-actions-right"},r&&f.default.createElement("button",{className:"sui-button forminator-save-field-settings",onClick:this.applyChanges},f.default.createElement("span",{className:"sui-loading-text"},f.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,m.translate)("Add")),f.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"})),!r&&f.default.createElement("div",{className:"sui-tooltip","data-tooltip":n},f.default.createElement("button",{className:"sui-button forminator-save-field-settings sui-tooltip",disabled:"disabled","data-tooltip":n},f.default.createElement("span",{className:"sui-loading-text"},f.default.createElement("i",{className:"sui-icon-check","aria-hidden":"true"}),(0,m.translate)("Add")),f.default.createElement("i",{className:"sui-icon-loader sui-loading","aria-hidden":"true"}))))))}}]),t}(p.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 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 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 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(340),d=r(f),m=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.addRule=a.addRule.bind(a),a.removeRule=a.removeRule.bind(a),a.updateValue=a.updateValue.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateRuleValue=a.updateRuleValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.fields=(0,p.getFields)(a.props.wrappers),a.fields=_.filter(a.fields,function(e){return"stripe"!==e.field_type&&"paypal"!==e.field_type&&"page-break"!==e.field_type&&"pagination"!==e.field_type&&"section"!==e.field_type&&"html"!==e.field_type}),a.validateConditions(),a}return o(t,e),s(t,[{key:"updateState",value:function(e){this.props.updateProperty("routing",e)}},{key:"getPropState",value:function(){var e=[];return _.each(this.props.state.routing,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:"updateValue",value:function(e,t){var a=this.getPropState();a[e].email=t,this.updateState(a)}},{key:"updateRule",value:function(e,t){var a=this.getPropState();a[e].rule=t,this.updateState(a)}},{key:"updateRuleValue",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({email:"",element_id:t,rule:"is",value:""}),this.updateState(e)}},{key:"validateConditions",value:function(){var e=_.pluck(this.props.state.routing,"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-group"},c.default.createElement("div",{className:"fui-visibility",style:{marginTop:"0"}},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"}),(0,p.translate)("Add Rule")),c.default.createElement("p",null,(0,p.translate)('You haven\'t defined any email routing rules yet. Click on the "+ Add Rule" button to add the recipients along with the routing rules.')),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.routing)||0===this.props.state.routing.length)&&c.default.createElement(c.default.Fragment,null,t),!_.isUndefined(this.props.state.routing)&&this.props.state.routing.length>0&&!_.isEmpty(this.fields)?c.default.createElement("div",{className:"fui-visibility-group"},c.default.createElement("div",{className:"fui-visibility",style:{marginTop:"0"}},c.default.createElement("div",{className:"fui-visibility-rules"},_.map(this.props.state.routing,function(t,a){return c.default.createElement(d.default,i({},e.props,{rule:t,key:a,counter:a,removeRule:e.removeRule,updateValue:e.updateValue,updateField:e.updateField,updateRule:e.updateRule,updateRuleValue:e.updateRuleValue,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"}),(0,p.translate)("Add Rule"))):c.default.createElement(c.default.Fragment,null,t)}}]),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 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 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 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(4),h=r(m),b=a(2),y=r(b),v=a(12),g=r(v),E=a(22),w=r(E),O=a(41),j=r(O),P=function(e){function t(e){n(this,t);var a=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.toggleState=a.toggleState.bind(a),a.updateValue=a.updateValue.bind(a),a.updateField=a.updateField.bind(a),a.updateRule=a.updateRule.bind(a),a.updateRuleValue=a.updateRuleValue.bind(a),a.updateInputValue=a.updateInputValue.bind(a),a.state={open:!1},a.fields=a.props.fields,a}return o(t,e),s(t,[{key:"removeRule",value:function(){this.props.removeRule(this.props.counter)}},{key:"updateValue",value:function(e,t){this.props.updateValue(this.props.counter,t)}},{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:"updateRuleValue",value:function(e){this.props.updateRuleValue(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:"getEmailOptions",value:function(){var e=[];return(0,p.getFields)(this.props.wrappers,["address","captcha","date","gdprcheckbox","html","name","number","page-break","phone","postdata","section","time","upload","website","textarea","text","paypal","stripe","currency","calculation","password"]).map(function(t){e.push({value:"{"+t.element_id+"}",label:t.label})}),e}},{key:"render",value:function(){var e=this,t="routing-"+this.props.counter,a=_.where(this.fields,{element_id:this.props.rule.element_id})[0]||{},r=_.isEmpty(this.props.rule.value)?(0,p.translate)("null"):this.props.rule.value,n=_.isEmpty(this.props.rule.email)?"":this.props.rule.email,l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],o=["day_is","day_is_not","month_is","month_is_not"],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-sitemap fui-visibility-rule-icon","aria-hidden":"true"}),c.default.createElement("span",{className:"fui-visibility-rule-text"},(0,p.translate)('Send to {{strong}}"%(label)s"{{/strong}} if {{strong}}%(field)s{{/strong}} %(rule)s {{strong}}%(value)s{{/strong}}',{args:{label:n,field:a.label,rule:(0,p.getRuleLabel)(this.props.rule.rule,a.field_type),value:r},components:{strong:c.default.createElement("strong",null)}})),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(j.default,i({},this.props,{property:"email",placeholder:(0,p.translate)("E.g. sales@website.com"),label:(0,p.translate)("Recipients"),settings:this.props.rule,value:this.props.rule.email,required:"true",note:(0,p.translate)("Separate multiple emails with a comma"),onChange:this.updateValue.bind(this)}),this.getEmailOptions().map(function(e,t){return c.default.createElement("option",{key:t,value:e.value,"data-content":e.value},e.label)})),c.default.createElement(d.default,{class:"sui-align-bottom sui-spacing-10"},c.default.createElement(h.default,{cols:"6",customClass:"sui-padding-right-10"},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)("Routing Condition")}),_.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(h.default,{cols:"6",customClass:"sui-padding-left-10"},c.default.createElement(w.default,i({},this.props,{elementId:t+"-condrule",settings:this.props.rule,property:"rule",updateProperty:this.updateRule,options:this.disableSearch()}),c.default.createElement("option",{value:""},(0,p.translate)("Select rule")),"checkbox"===a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Having")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Not having"))),"signature"===a.field_type&&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"))),"checkbox"!==a.field_type&&"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&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_great"},(0,p.translate)("Is great")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less"))),!a.isNumber&&!a.hasOptions&&"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)&&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)&&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")))))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"12"},a.hasOptions&&c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateRuleValue.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&&"signature"!==a.field_type&&(!o.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,placeholder:(0,p.translate)("Enter value")})),!a.hasOptions&&"date"===a.field_type&&("month_is"===this.props.rule.rule==="month_is"||"month_is_not"===this.props.rule.rule)&&c.default.createElement("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateRuleValue.bind(this)},c.default.createElement("option",{value:""},(0,p.translate)("Select month")),_.map(l,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("select",{className:"fui-select",value:this.props.rule.value,onChange:this.updateRuleValue.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)})))),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=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 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 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 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(342),d=r(f),m=a(18),h=r(m),b=function(e){function t(e){n(this,t);var a=l(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),a.fields=_.filter(a.fields,function(e){return"stripe"!==e.field_type&&"paypal"!==e.field_type&&"page-break"!==e.field_type&&"pagination"!==e.field_type&&"section"!==e.field_type&&"html"!==e.field_type}),a.validateConditions(),a}return o(t,e),s(t,[{key:"updateState",value:function(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:"send",noWrapper:!0}),c.default.createElement("span",{value:"send"},(0,p.translate)("Send")),c.default.createElement("span",{value:"dont-send"},(0,p.translate)("Don't Send"))),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("this email 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:")))),a=c.default.createElement("div",{className:"fui-visibility-group"},(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"},(0,p.translate)("Conditions"))),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"}),(0,p.translate)("Add Conditions")),c.default.createElement("p",null,(0,p.translate)("By default, this email is always sent on form submission. You can add conditions to send this email conditionally based on user input.")),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>1)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},(0,p.translate)("Conditions"))),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"}),(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){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 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 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 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(4),h=r(m),b=a(2),y=r(b),v=a(12),g=r(v),E=a(22),w=r(E),O=function(e){function t(e){n(this,t);var a=l(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 o(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=_.isEmpty(this.props.rule.value)?(0,p.translate)("null"):this.props.rule.value,n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=["day_is","day_is_not","month_is","month_is_not"],o=["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)," ",(0,p.getRuleLabel)(this.props.rule.rule,a.field_type)," ",c.default.createElement("strong",null,r)),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(w.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")),"checkbox"===a.field_type&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is"},(0,p.translate)("Having")),c.default.createElement("option",{value:"is_not"},(0,p.translate)("Not having"))),"signature"===a.field_type&&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"))),"checkbox"!==a.field_type&&"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&&c.default.createElement(c.default.Fragment,null,c.default.createElement("option",{value:"is_great"},(0,p.translate)("Is great")),c.default.createElement("option",{value:"is_less"},(0,p.translate)("Is less"))),!a.isNumber&&!a.hasOptions&&"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)&&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&&"signature"!==a.field_type&&("date-month"===a.field_slug||"date"===a.field_slug)&&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"))))),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&&"signature"!==a.field_type&&(!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"||"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(n,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(o,function(e){return c.default.createElement("option",{value:e,key:e},e)})))))),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){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{settings:e.settings,wrappers:e.wrappers,formDesign:e.settings["form-style"]||"default"}}function l(e){return{actions:{settingsActions:(0,i.bindActionCreators)(u,e),modalActions:(0,i.bindActionCreators)(p,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(7),i=a(8),s=a(80),u=r(s),c=a(42),p=r(c),f=a(344),d=function(e){return e&&e.__esModule?e:{default:e}}(f);t.default=(0,o.connect)(n,l)(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 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 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 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(68),f=r(p),d=a(74),m=r(d),h=a(345),b=r(h),y=a(351),v=r(y),g=a(378),E=r(g),w=a(380),O=r(w),j=a(384),P=r(j),k=a(182),x=r(k),N=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(t,[{key:"componentDidMount",value:function(){this.loadFonts(),jQuery("html, body").animate({scrollTop:0},"fast")}},{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};f.default.post(forminatorData.ajaxUrl,m.default.stringify(t)).then(function(e){window.forminatorFonts=e.data.data}).catch(function(e){console.log(e)})}}},{key:"render",value:function(){var e=this,t=function(t){e.props.history.push("/"+t)},a=_.isUndefined(this.props.settings["form-style"])?"default":this.props.settings["form-style"],r=forminatorData.currentForm.settings["form-type"]||"default";return u.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("Appearance")),u.default.createElement("div",{className:"sui-actions-right sui-hidden-md sui-hidden-lg"},u.default.createElement(x.default,this.props))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement(b.default,this.props),"none"!==a&&u.default.createElement(u.default.Fragment,null,u.default.createElement(v.default,this.props),u.default.createElement(E.default,this.props),u.default.createElement(O.default,this.props)),u.default.createElement(P.default,this.props)),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button",onClick:function(){return t("")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Fields")),u.default.createElement("div",{className:"sui-actions-right"},"registration"!==r&&"login"!==r&&u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("behaviour")}},(0,c.translate)("Behaviour"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})),"registration"===r&&u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("registration")}},(0,c.translate)("User Registration"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})),"login"===r&&u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("login")}},(0,c.translate)("User Login"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(s.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 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 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 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(19),a(1)),f=a(346),d=r(f),m=a(347),h=r(m),b=a(348),y=r(b),v=a(349),g=r(v),E=a(350),_=r(E),w=a(6),O=r(w),j=function(e){function t(){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(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(O.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(_.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 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 o=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 l(t,e),o(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 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 o=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 l(t,e),o(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 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 o=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 l(t,e),o(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 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 o=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 l(t,e),o(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 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 o=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 l(t,e),o(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"sui-notice"},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 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 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 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(44),d=r(f),m=a(352),h=r(m),b=a(353),y=r(b),v=a(354),g=r(v),E=a(355),w=r(E),O=a(356),j=r(O),P=a(357),k=r(P),x=a(358),N=r(x),C=a(359),S=r(C),F=a(360),T=r(F),M=a(361),D=r(M),A=a(362),R=r(A),V=a(363),U=r(V),L=a(364),I=r(L),B=a(365),q=r(B),W=a(366),$=r(W),Y=a(367),z=r(Y),H=a(368),Q=r(H),G=a(369),J=r(G),K=a(370),X=r(K),Z=a(371),ee=r(Z),te=a(372),ae=r(te),re=a(13),ne=r(re),le=a(3),oe=r(le),ie=a(6),se=r(ie),ue=a(373),ce=r(ue),pe=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"hasIndicatorEnabled",value:function(e){return void 0!==e["submission-indicator"]&&"show"===e["submission-indicator"]}},{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"),l=(0,p.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","multiselect"),o=(0,p.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","picker"),s=(0,p.hasFieldType)("signature",this.props.wrappers),u=(0,p.hasFieldWithAttribute)(this.props.wrappers,"date","field_type","select"),f=(0,p.hasFieldWithAttribute)(this.props.wrappers,"time","field_type","select")||(0,p.hasFieldWithAttribute)(this.props.wrappers,"time","time_type","twelve"),m=(0,p.hasFieldWithAttribute)(this.props.wrappers,"address","address_country","true"),b=(0,p.hasFieldWithAttribute)(this.props.wrappers,"name","prefix","true"),v=(0,p.hasFieldType)("gdprcheckbox",this.props.wrappers),E=(0,p.hasFieldType)("upload",this.props.wrappers),O=(0,p.hasFieldType)("currency",this.props.wrappers),P=(0,p.hasFieldType)("stripe",this.props.wrappers),x=(0,p.hasFieldType)("calculation",this.props.wrappers),C=(0,p.hasPostdataFieldWithMultiselect)(this.props.wrappers),F=this.hasIndicatorEnabled(this.props.settings),M=_.isUndefined(this.props.settings.paginationData["pagination-header-design"])?"":this.props.settings.paginationData["pagination-header-design"],A=_.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,p.translate)("Colors")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Adjust the default color combinations to match your theme styling."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(se.default,i({},this.props,{property:"cform-color-settings",default:""}),c.default.createElement(ne.default,{value:"",boxClass:""},(0,p.translate)("Use Default Colors")),c.default.createElement(oe.default,{value:"true",label:(0,p.translate)("Custom")},c.default.createElement("div",{className:"sui-accordion"},c.default.createElement("div",{className:"sui-accordion-header"},c.default.createElement("div",null,(0,p.translate)("Element"))),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Form Container")}),c.default.createElement(h.default,this.props)),F&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Submission Indicator")}),c.default.createElement(g.default,this.props)),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Response Success")}),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("Successful response message will be displayed after form submission succeeds.")),c.default.createElement(j.default,this.props)),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Response Error")}),c.default.createElement("p",{className:"sui-description"},(0,p.translate)("Error response message will be displayed after form submission fails.")),c.default.createElement(w.default,this.props)),e&&"show"===M&&c.default.createElement(c.default.Fragment,null,"nav"===A&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Pagination Steps")}),c.default.createElement(Q.default,this.props)),"bar"===A&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Pagination Progress Bar")}),c.default.createElement(J.default,this.props))),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Fields Basics")}),c.default.createElement(y.default,this.props)),t&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Section")}),c.default.createElement(k.default,this.props)),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Input and Textarea")}),c.default.createElement(N.default,this.props)),(o||O||P||x)&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Input Extras")}),c.default.createElement(S.default,this.props)),(n||a||v)&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Radio and Checkbox")}),c.default.createElement(T.default,this.props)),(r||u||f||m||b)&&c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Select")}),c.default.createElement(D.default,this.props)),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Dropdown List")}),c.default.createElement(R.default,this.props))),m&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Dropdown Search")}),c.default.createElement(U.default,this.props)),(l||C)&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Multi Select")}),c.default.createElement(I.default,this.props)),o&&c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Calendar Basics")}),c.default.createElement(q.default,this.props)),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Calendar Table")}),c.default.createElement(z.default,this.props))),E&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("File Upload"),boxedContent:!1}),c.default.createElement(ce.default,this.props)),s&&c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("E-Signature")}),c.default.createElement($.default,this.props))),e&&c.default.createElement(c.default.Fragment,null,c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Button Back")}),c.default.createElement(X.default,this.props)),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Button Next")}),c.default.createElement(ee.default,this.props))),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Submit Button")}),c.default.createElement(ae.default,this.props)))))))}}]),t}(u.Component);t.default=pe},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 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 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 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(10),d=r(f),m=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"rgba(0,0,0,0)",property:"cform-form-border",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"rgba(0,0,0,0)",property:"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 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 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 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(10),d=r(f),m=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"#777771",property:"cform-label-color",label:(0,p.translate)("Label")})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#E04562",property:"cform-asterisk-color",label:(0,p.translate)("Required asterisk")})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#777771",property:"label-helper-color",label:(0,p.translate)("Description")})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:"#F9E4E8",property:"label-validation-background",label:(0,p.translate)("Error message BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#E04562",property:"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 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 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 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(10),d=r(f),m=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"#F8F8F8",property:"response-loading-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#666666",property:"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 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 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 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(10),d=r(f),m=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"#E04562",property:"response-error-border",label:(0,p.translate)("Border color"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:"#F9E4E8",property:"response-error-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#333333",property:"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 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 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 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(10),d=r(f),m=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"#1ABCA1",property:"response-success-border",label:(0,p.translate)("Border color"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:"#BCEEE6",property:"response-success-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#333333",property:"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 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 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 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(10),d=r(f),m=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"cform-title-color",defaultValue:"#333333"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Subtitle color"),property:"cform-subtitle-color",defaultValue:"#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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"input-border",defaultValue:"#777771",isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:"input-bg",defaultValue:"#EDEDED",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Placeholder"),property:"input-placeholder",defaultValue:"#888888"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:"input-color",defaultValue:"#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:"input-border-hover",defaultValue:"#17A8E3",isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:"input-hover-bg",defaultValue:"#E6E6E6",isAlpha:!0}))),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:"input-border-active",defaultValue:"#17A8E3",isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:"input-active-bg",defaultValue:"#E6E6E6",isAlpha:!0}))),"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:"#E04562",property:"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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"input-icon",defaultValue:"#777771",label:(0,p.translate)("Icon color")})),t&&c.default.createElement(d.default,i({},this.props,{property:"prefix-color",defaultValue:"#000000",label:(0,p.translate)("Prefix color")})),(a||t)&&c.default.createElement(d.default,i({},this.props,{property:"suffix-color",defaultValue:"#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:"input-icon",defaultValue:"#777771",label:(0,p.translate)("Icon color")})),t&&c.default.createElement(d.default,i({},this.props,{property:"prefix-color",defaultValue:"#000000",label:(0,p.translate)("Prefix color")})),(a||t)&&c.default.createElement(d.default,i({},this.props,{property:"suffix-color",defaultValue:"#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:"input-icon-hover",defaultValue:"#17A8E3",label:(0,p.translate)("Icon color"),description:e&&(0,p.translate)("Only Stripe card icon will show this color variation.")}))),c.default.createElement(y.default,{label:(0,p.translate)("Focus"),value:"focus"},r&&c.default.createElement(d.default,i({},this.props,{property:"input-icon-focus",defaultValue:"#17A8E3",label:(0,p.translate)("Icon color"),description:e&&(0,p.translate)("Only Stripe card icon will show this color variation.")}))))),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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"#777771",property:"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:"radio-background-static",defaultValue:"#EDEDED",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:"radio-label",defaultValue:"#000000"}))),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:"radio-border-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:"radio-background-active",defaultValue:"#EDEDED",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:"radio-icon",defaultValue:"#17A8E3"}))),"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:"#E04562",property:"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:"radio-background-error",defaultValue:"#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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"select-border-static",defaultValue:"#777771",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:"select-background-static",defaultValue:"#EDEDED",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:"select-icon-static",defaultValue:"#777771"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:"select-value-static",defaultValue:"#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:"select-border-hover",defaultValue:"#17A8E3",isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:"select-background-hover",defaultValue:"#E6E6E6",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:"select-icon-hover",defaultValue:"#17A8E3"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:"select-value-hover",defaultValue:"#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:"select-border-active",defaultValue:"#17A8E3",isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:"select-background-active",defaultValue:"#E6E6E6",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Icon color"),property:"select-icon-active",defaultValue:"#17A8E3"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:"select-value-active",defaultValue:"#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:"select-border-error",defaultValue:"#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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"#17A8E3",property:"dropdown-border",label:(0,p.translate)("Container border"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#E6E6E6",property:"dropdown-background",label:(0,p.translate)("Container BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#777771",property:"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:"#DDDDDD",property:"dropdown-option-background-hover",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#000000",property:"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:"#17A8E3",property:"dropdown-option-background-active",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#FFFFFF",property:"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 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 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 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(10),d=r(f),m=a(15),h=(r(m),function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"#17A8E3",property:"dropdown-search-border",label:(0,p.translate)("Border color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#FFFFFF",property:"dropdown-search-background",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#000000",property:"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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"#777771",property:"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:"#E6E6E6",property:"multiselect-background",label:(0,p.translate)("Container BG"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#777771",property:"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:"#000000",property:"multiselect-border-hover",label:(0,p.translate)("Option border"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:"#DDDDDD",property:"multiselect-item-bg-hover",label:(0,p.translate)("Option background"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#000000",property:"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:"#17A8E3",property:"multiselect-border-active",label:(0,p.translate)("Option border"),isAlpha:!0})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{defaultValue:"#17A8E3",property:"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:"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:"#E04562",property:"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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"calendar-border",defaultValue:"#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:"calendar-background",defaultValue:"#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:"calendar-arrows-bg",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Arrows color"),property:"calendar-arrows-static",defaultValue:"#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:"calendar-select-border",defaultValue:"#BBBBBB",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:"calendar-select-bg",defaultValue:"#FFFFFF",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Color"),property:"calendar-select-color",defaultValue:"#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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"signature-border-default",defaultValue:"#777771"})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:"signature-background-default",defaultValue:"#EDEDED"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Placeholder"),property:"signature-placeholder",defaultValue:"#888888"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Signature Color"),property:"signature-color",defaultValue:"#000000"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Reset icon color"),property:"signature-reset-icon-default",defaultValue:"#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:"signature-border-hover",defaultValue:"#17A8E3"})),"material"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background color"),property:"signature-background-hover",defaultValue:"#E6E6E6"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Reset icon color"),property:"signature-reset-icon-hover",defaultValue:"#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:"signature-border-error",defaultValue:"#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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"calendar-dweek",defaultValue:"#333333",isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell border"),property:"calendar-days-border-static",defaultValue:"#E6E6E6",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:"calendar-days-background-static",defaultValue:"#E6E6E6",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:"calendar-days-color-static",defaultValue:"#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:"calendar-days-border-hover",defaultValue:"#DDDDDD",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:"calendar-days-background-hover",defaultValue:"#DDDDDD",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:"calendar-days-color-hover",defaultValue:"#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:"calendar-days-border-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:"calendar-days-background-active",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:"calendar-days-color-active",defaultValue:"#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:"calendar-days-border-current",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell BG"),property:"calendar-days-background-current",defaultValue:"#C8DEE7",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Table cell color"),property:"calendar-days-color-current",defaultValue:"#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 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 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 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(10),d=r(f),m=a(15),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),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"timeline-border",defaultValue:"#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:"timeline-border-current",defaultValue:"#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:"timeline-text",defaultValue:"#777771"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Current"),property:"timeline-text-current",defaultValue:"#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:"timeline-dot-border",defaultValue:"#777771",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:"timeline-dot-background",defaultValue:"#777771",isAlpha:!0})),"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Page number color"),property:"timeline-dot-color",defaultValue:"#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:"timeline-dot-border-current",defaultValue:"#777771",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Background"),property:"timeline-dot-background-current",defaultValue:"#17A8E3",isAlpha:!0})),"material"===this.props.formDesign&&c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Page number color"),property:"timeline-dot-color-current",defaultValue:"#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 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 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 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(10),d=r(f),m=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"progress-label",defaultValue:"#777771"})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Progress bar BG"),property:"progress-background",defaultValue:"#E6E6E6",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Progress status BG"),property:"progress-background-status",defaultValue:"#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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"prev-background-static",defaultValue:"#1ABCA1",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:"prev-color-static",defaultValue:"#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:"prev-background-hover",defaultValue:"#159C85",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:"prev-color-hover",defaultValue:"#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:"prev-background-active",defaultValue:"#159C85",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:"prev-color-active",defaultValue:"#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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"next-background-static",defaultValue:"#1ABCA1",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:"next-color-static",defaultValue:"#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:"next-background-hover",defaultValue:"#159C85",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:"next-color-hover",defaultValue:"#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:"next-background-active",defaultValue:"#159C85",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Label color"),property:"next-color-active",defaultValue:"#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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"button-submit-background-static",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:"button-submit-color-static",defaultValue:"#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:"button-submit-background-hover",defaultValue:"#008FCA",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:"button-submit-color-hover",defaultValue:"#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:"button-submit-background-active",defaultValue:"#008FCA",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:"button-submit-color-active",defaultValue:"#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 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 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 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(44),d=r(f),m=a(374),h=r(m),b=a(375),y=r(b),v=a(376),g=r(v),E=a(377),_=r(E),w=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"button-upload-background-static",defaultValue:"#1ABC9C",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:"button-upload-color-static",defaultValue:"#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:"button-upload-background-hover",defaultValue:"#01A383",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:"button-upload-color-hover",defaultValue:"#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:"button-upload-background-active",defaultValue:"#01A383",isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{label:(0,p.translate)("Text color"),property:"button-upload-color-active",defaultValue:"#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 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 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 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(3),h=r(m),b=a(10),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"multiupload-panel-background-default",defaultValue:"#EDEDED",isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:"multiupload-panel-border-default",defaultValue:"#777771",isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:"multiupload-panel-icon-default",defaultValue:"#777771",isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Message text color"),property:"multiupload-panel-text-default",defaultValue:"#666666"})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Message link color"),property:"multiupload-panel-link-default",defaultValue:"#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:"multiupload-panel-background-hover",defaultValue:"#E6E6E6",isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:"multiupload-panel-border-hover",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:"multiupload-panel-icon-hover",defaultValue:"#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:"multiupload-panel-background-drop",defaultValue:"#E1F6FF",isAlpha:!0})),"flat"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Border color"),property:"multiupload-panel-border-drop",defaultValue:"#17A8E3",isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:"multiupload-panel-icon-drop",defaultValue:"#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:"multiupload-panel-background-error",defaultValue:"#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:"multiupload-panel-border-error",defaultValue:"#E04562",isAlpha:!0})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Cloud icon color"),property:"multiupload-panel-icon-error",defaultValue:"#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 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 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 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(3),h=r(m),b=a(10),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"multiupload-file-preview-border-default",defaultValue:"#777771"})),"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview background color"),property:"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:"multiupload-file-preview-icon-default",defaultValue:"#777771"})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File name color"),property:"multiupload-file-name-default",defaultValue:"#333333"})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File size color"),property:"multiupload-file-size-default",defaultValue:"#888888"})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Loading icon color"),property:"multiupload-file-loader-color",defaultValue:"#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:"multiupload-file-preview-border-error",defaultValue:"#E04562"})),"material"!==this.props.formDesign&&c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("File preview background color"),property:"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:"multiupload-file-preview-icon-error",defaultValue:"#777771"})),c.default.createElement(y.default,i({},this.props,{label:(0,p.translate)("Filse size icon color"),property:"multiupload-file-error-color",defaultValue:"#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 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 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 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(10),d=r(f),m=a(15),h=r(m),b=a(3),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"rgba(0,0,0,0)",property:"button-upload-delete-background-static",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#E04562",property:"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:"#F9E4E8",property:"button-upload-delete-background-hover",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#E04562",property:"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:"#F9E4E8",property:"button-upload-delete-background-active",label:(0,p.translate)("Background color"),isAlpha:!0})),c.default.createElement(d.default,i({},this.props,{defaultValue:"#E04562",property:"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 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 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 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(6),h=r(m),b=a(44),y=r(b),v=a(13),g=r(v),E=a(379),w=r(E),O=a(16),j=r(O),P=a(15),k=r(P),x=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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"),l=(0,p.hasFieldWithAttribute)(this.props.wrappers,"select","value_type","multiselect"),o=(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"),P=(0,p.hasFieldType)("signature",this.props.wrappers),x=(0,p.hasFieldType)("calculation",this.props.wrappers),N=_.isUndefined(this.props.settings.paginationData["pagination-header-design"])?"":this.props.settings.paginationData["pagination-header-design"],C=_.isUndefined(this.props.settings.paginationData["pagination-header"])?"":this.props.settings.paginationData["pagination-header"];return c.default.createElement(j.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 Google Fonts.")},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"}))),e&&"show"===N&&c.default.createElement(c.default.Fragment,null,"nav"===C&&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"}))),"bar"===C&&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:"16",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"})))),o&&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}))),l&&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"})))),P&&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"}))),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 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 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 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(4),h=r(m),b=a(2),y=r(b),v=a(22),g=r(v),E=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"backwardsCompat",value:function(e,t){return _.contains(t,e)||t.push(e),t}},{key:"render",value:function(){var e=_.isUndefined(this.props.settings[this.props.prefix+"-font-family"])?this.props.defaultFont:this.props.settings[this.props.prefix+"-font-family"],t=_.isUndefined(this.props.settings[this.props.prefix+"-custom-family"])?this.props.defaultCustom:this.props.settings[this.props.prefix+"-custom-family"],a=_.isUndefined(this.props.settings[this.props.prefix+"-font-weight"])?this.props.defaultWeight:this.props.settings[this.props.prefix+"-font-weight"],r=_.isUndefined(this.props.settings[this.props.prefix+"-font-size"])?this.props.defaultSize:this.props.settings[this.props.prefix+"-font-size"],n=(0,p.getFontVariants)(e,window.forminatorFonts),l=this.backwardsCompat(a,n);return this.props.familyOnly?c.default.createElement(c.default.Fragment,null,c.default.createElement(g.default,i({},this.props,{property:this.props.prefix+"-font-family",defaultValue:e,placeholder:(0,p.translate)("Roboto"),label:(0,p.translate)("Font Family")}),_.map(window.forminatorFonts,function(e){return c.default.createElement("option",{value:e.family,key:e.family},e.family)}),c.default.createElement("option",{value:"custom",key:"custom"},(0,p.translate)("Custom user font"))),"custom"===e&&c.default.createElement(y.default,i({},this.props,{type:"text",property:this.props.prefix+"-custom-family",defaultValue:t,placeholder:(0,p.translate)("E.g. Arial, sans-serif"),label:(0,p.translate)("Custom font family")}))):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:this.props.prefix+"-font-family",defaultValue:e}),_.map(window.forminatorFonts,function(e){return c.default.createElement("option",{value:e.family,key:e.family},e.family)}),c.default.createElement("option",{value:"custom",key:"custom"},(0,p.translate)("Custom user font"))),"custom"===e&&c.default.createElement(y.default,i({},this.props,{type:"text",property:this.props.prefix+"-custom-family",defaultValue:t,placeholder:(0,p.translate)("E.g. Arial, sans-serif"),label:(0,p.translate)("Custom font family")})))),c.default.createElement(d.default,null,c.default.createElement(h.default,{cols:"6"},c.default.createElement(y.default,i({},this.props,{type:"number",property:this.props.prefix+"-font-size",defaultValue:r,placeholder:(0,p.translate)("E.g. 16"),label:(0,p.translate)("Font Size"),note:"in px"}))),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:this.props.prefix+"-font-weight",defaultValue:a}),_.map(l,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 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 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 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(381),h=r(m),b=a(382),y=r(b),v=a(383),g=r(v),E=a(6),_=r(E),w=function(e){function t(){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(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"),settingsDesc:(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"),settingsDesc:(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",settingsDesc:(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 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 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 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(2),h=r(m),b=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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 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 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 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(4)),m=r(d),h=a(2),b=r(h),y=a(12),v=r(y),g=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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({property:"form-border-style",label:(0,p.translate)("Style")},this.props),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 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 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 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(2),f=r(p),d=a(1),m=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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:"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 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 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 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(171),h=r(m),b=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(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){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{settings:e.settings,wrappers:e.wrappers}}function l(e){return{actions:{settingsActions:(0,i.bindActionCreators)(p,e),modalActions:(0,i.bindActionCreators)(d,e),builderActions:(0,i.bindActionCreators)(u,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var o=a(7),i=a(8),s=a(179),u=r(s),c=a(80),p=r(c),f=a(42),d=r(f),m=a(386),h=function(e){return e&&e.__esModule?e:{default:e}}(m);t.default=(0,o.connect)(n,l)(h.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 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 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 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(387),f=r(p),d=a(388),m=r(d),h=a(389),b=r(h),y=a(390),v=r(y),g=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),i(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)};return u.default.createElement("div",{id:"forminator-form-appearance",className:"sui-box"},u.default.createElement("div",{className:"sui-box-header"},u.default.createElement("h2",{className:"sui-box-title"},(0,c.translate)("User Registration"))),u.default.createElement("div",{className:"sui-box-body"},u.default.createElement(f.default,this.props),forminatorData.isMainSite&&u.default.createElement(m.default,this.props),u.default.createElement(b.default,this.props),u.default.createElement(v.default,this.props)),u.default.createElement("div",{className:"sui-box-footer"},u.default.createElement("button",{className:"sui-button",onClick:function(){return t("appearance")}},u.default.createElement("i",{className:"sui-icon-arrow-left","aria-hidden":"true"}),(0,c.translate)("Appearance")),u.default.createElement("div",{className:"sui-actions-right"},u.default.createElement("button",{className:"sui-button sui-button-icon-right",onClick:function(){return t("behaviour")}},(0,c.translate)("Behaviour"),u.default.createElement("i",{className:"sui-icon-arrow-right","aria-hidden":"true"})))))}}]),t}(s.Component);t.default=g},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 l(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 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(6),m=r(d),h=a(22),b=r(h),y=a(185),v=r(y),g=a(12),E=r(g),w=a(13),O=r(w),j=a(3),P=r(j),k=a(251),x=r(k),N=a(253),C=(r(N),function(e){function t(e){l(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.updateProperty=a.updateProperty.bind(a),a.state=a.props.settings||{},a}return i(t,e),u(t,[{key:"updateProperty",value:function(e,t){this.setState(n({},e,t))}},{key:"render",value:function(){var e=(0,f.getFields)(this.props.wrappers,["password"]),t=(0,f.mapFieldsByType)("password",this.props.wrappers),a=Object.assign({},forminatorData.userRoles),r=void 0,n=void 0;return forminatorData.isMainSite?(r=(0,f.translate)("Network's Main Site Role"),n=(0,f.translate)("If you don't want to create a user in network's main site, set this meta key to {{strong}}Don't create a user in Network's main site{{/strong}}.",{components:{strong:p.default.createElement("strong",null)}}),a.notCreate={name:"Don't create a user in Network's main site",capabilities:{read:!0}}):(r=(0,f.translate)("Role"),n=""),p.default.createElement("div",{className:"sui-box-settings-row"},p.default.createElement("div",{className:"sui-box-settings-col-1"},p.default.createElement("span",{className:"sui-settings-label"},(0,f.translate)("User Meta Mapping")),p.default.createElement("span",{className:"sui-description"},(0,f.translate)("Assign your form fields to the user meta keys to use the data collected from the visitor to create a user profile."))),p.default.createElement("div",{className:"sui-box-settings-col-2"},p.default.createElement("div",{className:"sui-form-field"},p.default.createElement("label",{className:"sui-settings-label"},(0,f.translate)("Default Meta Keys")),p.default.createElement("span",{className:"sui-description"},(0,f.translate)("Assign form fields to the default WordPress user meta keys (used in Profiles) below. You can assign a form field to multiple meta keys. If you assign a non-required form field to a required user meta, that form field will automatically become required in your form.")),p.default.createElement("div",{className:"sui-border-frame"},p.default.createElement(p.default.Fragment,null,p.default.createElement(v.default,s({},this.props,{property:"registration-username-field",label:(0,f.translate)("Username"),defaultValue:"text-1",fieldClass:"field-required",required:!0}),_.map(e,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),p.default.createElement(v.default,s({},this.props,{property:"registration-email-field",label:(0,f.translate)("Email"),defaultValue:"email-1",fieldClass:"field-required",required:!0}),_.map(e,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),p.default.createElement(b.default,s({},this.props,{property:"registration-first-name-field",label:(0,f.translate)("First Name"),defaultValue:""}),p.default.createElement("option",{value:""},(0,f.translate)("Select a Field")),_.map(e,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),p.default.createElement(b.default,s({},this.props,{property:"registration-last-name-field",label:(0,f.translate)("Last Name"),defaultValue:""}),p.default.createElement("option",{value:""},(0,f.translate)("Select a Field")),_.map(e,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),p.default.createElement(b.default,s({},this.props,{property:"registration-website-field",label:(0,f.translate)("Website"),defaultValue:""}),p.default.createElement("option",{value:""},(0,f.translate)("Select a Field")),_.map(e,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),p.default.createElement(v.default,s({},this.props,{property:"registration-password-field",label:(0,f.translate)("Password"),defaultValue:"password-1",fieldClass:"field-required",required:!0}),_.map(t,function(e,t){return p.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)}),p.default.createElement("option",{value:"auto"},(0,f.translate)("Auto Generated Password"))),p.default.createElement(E.default,s({},this.props,{property:"registration-role-field",label:r,defaultValue:"subscriber",description:n,required:!0}),_.map(a,function(e,t){return p.default.createElement("option",{value:t,key:t},e.name)})))),p.default.createElement(m.default,s({},this.props,{property:"custom-mapping",settingsLabel:(0,f.translate)("Custom User Meta"),default:"none",settingsDesc:(0,f.translate)("Create custom user meta keys and assign your form fields to them to set additional user meta keys on successful user registration.")}),p.default.createElement(O.default,{value:"none",label:(0,f.translate)("None")}),p.default.createElement(P.default,{value:"custom",label:(0,f.translate)("Add Custom User Meta")},p.default.createElement(x.default,s({},this.props,{updateProperty:this.updateProperty,settings:this.state,state:this.state,metaDescription:(0,f.translate)('No custom user meta created yet. Click on "+ Add Custom User Meta" to create custom user meta and map form fields to it.')})))))))}}]),t}(c.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 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 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 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(22),h=(r(m),a(12)),b=r(h),y=a(13),v=r(y),g=a(3),E=r(g),w=a(185),O=r(w),j=function(e){function t(){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),s(t,[{key:"render",value:function(){var e=(0,p.getFields)(this.props.wrappers,["password"]),t=forminatorData.isSubdomainNetwork?"http://sitename.website.com":"http://website.com/network-name/sitename";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)("Site Registration")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose whether to allow site registrations on your multisite network and different related settings."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement("div",{className:"sui-form-field"},c.default.createElement(d.default,i({},this.props,{property:"site-registration",default:"enable"}),c.default.createElement(E.default,{value:"enable",label:(0,p.translate)("Enable")},c.default.createElement("div",{className:"sui-border-frame"},c.default.createElement(c.default.Fragment,null,c.default.createElement("span",{className:"sui-description",style:{marginTop:"0",marginBottom:"10px"}},(0,p.translate)("Assign form fields to the default WordPress site meta keys bellow.")),c.default.createElement(O.default,i({},this.props,{property:"site-registration-name-field",label:(0,p.translate)("Site Name"),defaultValue:"",fieldClass:"field-required",required:!0,description:(0,p.translate)("Site address meta key will be automatically set based on this field as {{strong}}"+t+"{{/strong}}",{components:{strong:c.default.createElement("strong",null)}})}),_.map(e,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),c.default.createElement(O.default,i({},this.props,{property:"site-registration-title-field",label:(0,p.translate)("Site Title"),defaultValue:"",fieldClass:"field-required",required:!0}),_.map(e,function(e,t){return c.default.createElement("option",{value:e.element_id,key:t},e.label," | ",e.element_id)})),c.default.createElement(b.default,i({},this.props,{property:"site-registration-role-field",label:(0,p.translate)("Site Role"),defaultValue:"",required:!0}),_.map(forminatorData.userRoles,function(e,t){return c.default.createElement("option",{value:t,key:t},e.name)}))))),c.default.createElement(v.default,{value:"disable",label:(0,p.translate)("Disable")})))))}}]),t}(u.Component);t.default=j},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 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 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 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(22),h=r(m),b=a(13),y=r(b),v=a(3),g=r(v),E=a(18),w=r(E),O=function(e){function t(){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),s(t,[{key:"render",value:function(){var e=_.isUndefined(this.props.settings["registration-password-field"])?"":this.props.settings["registration-password-field"],t=_.isUndefined(this.props.settings["activation-method"])?"":this.props.settings["activation-method"];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)("User Account Activation")),c.default.createElement("span",{className:"sui-description"},(0,p.translate)("Choose the activation method and other settings for the user accounts."))),c.default.createElement("div",{className:"sui-box-settings-col-2"},c.default.createElement(d.default,i({},this.props,{property:"activation-method",settingsLabel:(0,p.translate)("Activation Method"),default:"default",settingsDesc:(0,p.translate)("By default, the user account is activated on form submission. However, you can choose between {{strong}}Email Activation{{/strong}} which requires the user to click on an activation email or {{strong}}Manual Approval{{/strong}} which requires site admin to approve an account.",{components:{strong:c.default.createElement("strong",null)}})}),c.default.createElement(y.default,{value:"default",label:(0,p.translate)("Default")}),c.default.createElement(g.default,{value:"email",label:(0,p.translate)("Email Activation"),boxClass:"sui-tab-boxed"},c.default.createElement(h.default,i({},this.props,{property:"confirmation-page",label:(0,p.translate)("Confirmation Page"),defaultValue:"",description:(0,p.translate)("Choose the page to redirect users when they click on confirmation link.")}),_.map(forminatorData.pages,function(e,t){return c.default.createElement("option",{value:e.ID,key:t},e.post_title)}))),c.default.createElement(g.default,{value:"manual",label:(0,p.translate)("Manual Approval")},c.default.createElement("div",{className:"sui-notice sui-notice-info"},c.default.createElement("p",null,(0,p.translate)("A site admin will have to manually approve each entry from the submissions page to activate the user accounts."))))),c.default.createElement(w.default,i({},this.props,{property:"activation-email",settingsLabel:(0,p.translate)("Activation Email"),default:"default",settingsDesc:(0,p.translate)("By default, WordPress sends an activation email containing user account information after the account activation. However, you can choose not to send this email.")}),c.default.createElement("div",{value:"default"},(0,p.translate)("Default")),c.default.createElement("div",{value:"none"},(0,p.translate)("None"))),"auto"===e&&c.default.createElement("div",{className:"sui-notice"},c.default.createElement("p",null,(0,p.translate)("Since the {{strong}}Password{{/strong}} user meta key is mapped to {{strong}}Auto Generate Password{{/strong}}, it's recommended to keep this option to {{strong}}Default{{/strong}} so the auto-generated password can
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=257)}([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(){return Math.floor(9999*Math.random())}function l(){return"wrapper-"+n()+"-"+n()}function o(e,t){var a=void 0;return t.map(function(t){t.wrapper_id===e&&(a=t)}),a}function i(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a}function s(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 u(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 c(e){return e=e.toLowerCase(),e=e.replace(/[^a-zA-Z0-9 ]/g,"").trim(),e=e.replace(/\s+/g,"-")}function p(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.type===e&&a++})}),a>0}function f(e,t){var a=[];return t.map(function(t){t.fields.map(function(t){t.type===e&&a.push(t)})}),a}function d(e,t){var a=[];return f(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 m(e,t){var a="";return t.map(function(t){t.fields.map(function(t){t.element_id===e&&(a=t.field_label)})}),a}function h(e,t){var a=0;return t.map(function(t){t.fields.map(function(t){t.element_id===e&&a++})}),a>0}function b(e,t,a,r){var n=s(e.type,r);return _.extend(e,{element_id:e.type+"-"+n,formID:t,cols:a})}function y(e,t,a){var r=forminatorData.fields.find(function(t){return t.slug===e}),n=s(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 v(e){return e.type}function g(e){return forminatorData.fields.find(function(t){return t.type===e.type})}function E(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t)))}function w(e,t,a){return[].concat(r(e.slice(0,t)),[a],r(e.slice(t+1)))}function O(){return G.default.translate.apply(null,arguments)}function j(e,t){var a=_.filter(t,function(t){return t.family===e});return _.isUndefined(a[0])||_.isUndefined(a[0].variants)?[O("None")]:a[0].variants}function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}function k(e,t,a){var r=[];_.isUndefined(t)&&(t=["page-break","postdata","total","product","captcha"]);var n=!1;return _.isUndefined(a)||_.isUndefined(a.main_date_field)||!0!==a.main_date_field||(n=!0),e.map(function(e){e.fields.map(function(e){if(!_.contains(t,e.type)){var a=void 0;_.isUndefined(e.field_label)||_.isEmpty(e.field_label)?(a=e.type,a=P(a)):a=e.field_label,"name"===e.type?r=r.concat(N(e,a)):"address"===e.type?r=r.concat(D(e,a)):"time"===e.type?r=r.concat(A(e,a)):"date"===e.type&&"picker"!==e.field_type&&!1===n||r.push({element_id:e.element_id,required:e.required,field_type:e.type,field_slug:e.type,label:a,values:M(e),hasOptions:T(e),hasCalcs:S(e),formula:F(e),isNumber:C(e),fieldData:e}),"date"===e.type&&"picker"!==e.field_type&&(r=r.concat(x(e,a)))}})}),r}function x(e,t){var a=[],r=void 0;r=_.isUndefined(e.day_label)||_.isEmpty(e.day_label)?t+" - "+O("Day"):t+" - "+e.day_label;var n=void 0;n=_.isUndefined(e.month_label)||_.isEmpty(e.month_label)?t+" - "+O("Month"):t+" - "+e.month_label;var l=void 0;return l=_.isUndefined(e.year_label)||_.isEmpty(e.year_label)?t+" - "+O("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:l,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:M(e),hasOptions:T(e),isNumber:C(e)},{element_id:e.element_id+"-month",required:e.required,field_type:e.type,field_slug:e.type+"-month",label:n,values:M(e),hasOptions:T(e),isNumber:C(e)},{element_id:e.element_id+"-year",required:e.required,field_type:e.type,field_slug:e.type+"-year",label:l,values:M(e),hasOptions:T(e),isNumber:C(e)}),a}function N(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:M(e),hasOptions:T(e),isNumber:C(e)}),a}function C(e){return"number"===e.type||"phone"===e.type||"calculation"===e.type}function S(e){return"true"===e.calculations||!0===e.calculations}function F(e){return!!e.formula&&e.formula}function T(e){return"select"===e.type||"checkbox"===e.type||"radio"===e.type}function M(e){var t=e.type;return("select"===t||"checkbox"===t||"radio"===t)&&e.options}function D(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 A(e,t){var a=[],r=void 0;r=_.isUndefined(e.hh_label)||_.isEmpty(e.hh_label)?t+" - "+O("Hour"):t+" - "+e.hh_label;var n=void 0;return n=_.isUndefined(e.mm_label)||_.isEmpty(e.mm_label)?t+" - "+O("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 R(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 V(e,t,a){var r=_.isUndefined(a)?"":a;switch(e){case"is":if("checkbox"===t)return O("is having");if("checkbox"!==t)return O("is");case"is_not":if("checkbox"===t)return O("is not having");if("checkbox"!==t)return O("is not");case"day_is":return O("day is");case"day_is_not":return O("day is not");case"month_is_not":return O("month is not");case"month_is":return O("month is");case"is_before":return O("is before");case"is_after":return O("is after");case"is_before_n_or_more_days":return O("is before %s or more days from current date").replace("%s",r);case"is_before_less_than_n_days":return O("is before less than %s days from current date").replace("%s",r);case"is_after_n_or_more_days":return O("is after %s or more days from current date").replace("%s",r);case"is_after_less_than_n_days":return O("is after less than %s days from current date").replace("%s",r);case"is_great":return O("is greater than");case"is_less":return O("is less than");case"contains":return O("contains");case"starts":return O("starts with");case"ends":return O("ends with");case"is_correct":return O("is correct");case"is_incorrect":return O("is incorrect");default:return"-"}}function U(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,l=0;l<n;l++)if(!r[l].match(/^[a-z0-9-]+$/i))return!1;return!0}function L(){"object"===H(window.SUI)&&setTimeout(function(){SUI.suiAccordion(jQuery(".sui-accordion")),SUI.suiTabs(jQuery(".sui-tabs")),jQuery("select").not(".sui-select").not(".forminator-select").not(".forminator-time").not(".fui-multi-select").each(function(){SUI.suiSelect(jQuery(this))}),jQuery("select.sui-select").not(".fui-multi-select").not(".custom-select2").each(function(){jQuery(this).SUIselect2({dropdownCssClass:"sui-select-dropdown"})}),SUI.loadCircleScore(jQuery(".sui-circle-score")),SUI.showHidePassword()},50)}function I(e){var t="none";return H(e["results-behav"])&&H(e["results-style"])&&("link_on"!==e["results-behav"]&&"show_after"!==e["results-behav"]||(t=e["results-style"])),t}function B(e){var t=[];return _.each(forminatorData.fields,function(e){"calculation"!==e.type&&t.push(e.type)}),k(e,t)}function q(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 W(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 $(e,t,a,r){var n=0;return e.map(function(e){e.fields.map(function(e){t===e.type&&r===e[a]&&n++})}),n>0}function Y(e){var t=0;return 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}Object.defineProperty(t,"__esModule",{value:!0});var H="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=l,t.getWrapper=o,t.countFieldsByType=i,t.getMaxIDByType=s,t.getMaxID=u,t.generateValue=c,t.hasFieldType=p,t.getFieldsByType=f,t.mapFieldsByType=d,t.getFieldLabel=m,t.fieldExist=h,t.buildFieldObject=b,t.buildFieldObjectFromSlug=y,t.getFieldType=v,t.getForminatorField=g,t.insertInPosition=E,t.replaceInPosition=w,t.translate=O,t.getFontVariants=j,t.ucfirst=P,t.getFields=k,t.getDateFields=x,t.getNameFields=N,t.fieldHasNumber=C,t.fieldHasCalcs=S,t.fieldFormula=F,t.fieldHasOptions=T,t.getFieldValues=M,t.getAddressFields=D,t.getTimeFields=A,t.getFieldAutofillProviders=R,t.getRuleLabel=V,t.isEmailWp=U,t.suiDelegateEvents=L,t.getChartType=I,t.getCalculationFields=B,t.select2Tags=q,t.isFieldRequired=W,t.hasFieldWithAttribute=$,t.hasPostdataFieldWithMultiselect=Y,t.getPersonalityQuestions=z;var Q=a(60),G=function(e){return e&&e.__esModule?e:{default:e}}(Q)},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 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 o=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 l(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",l=_.isUndefined(this.props.fieldClass)?"sui-form-field":"sui-form-field "+this.props.fieldClass,i=_.isUndefined(this.props.inputClass)?"sui-form-control":"sui-form-control "+this.props.inputClass,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",o({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:l+" "+n},p,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 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 o=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 l(t,e),o(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 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 o=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 l(t,e),o(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){e.exports=a(84)()},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 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 o=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 l(t,e),o(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 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)}),l="";this.props.label&&""!==this.props.label&&(l=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 o="";this.props.settingsLabel&&""!==this.props.settingsLabel&&(o=s.default.createElement("label",{className:"sui-settings-label"},this.props.settingsLabel));var i="";!this.props.label&&this.props.settingsDesc&&(i=s.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},this.props.settingsDesc));var u=s.default.createElement("div",{className:"sui-side-tabs"},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n));return this.props.simple||(u=s.default.createElement("div",{className:"sui-form-field"},o,l,i,s.default.createElement("div",{className:"sui-side-tabs"},s.default.createElement("div",{className:"sui-tabs-menu"},a),s.default.createElement("div",{className:r},n)))),u}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(83),n=a(48),l=a(87);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 l.a})},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 l(){v===y&&(v=y.slice())}function o(){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 l(),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,l();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(o())}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:o,replaceReducer:u},p[f.a]=c,p}function l(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 o(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{o(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={},o=0;o<i.length;o++){var u=i[o],c=a[u],p=e[u],f=c(p,t);if(void 0===f){var d=l(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 l=a[n],o=e[l];"function"==typeof o&&(r[l]=s(o,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 l=e.apply(void 0,r),o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:l.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(e){return e(i)});return o=c.apply(void 0,s)(l.dispatch),h({},l,{dispatch:o})}}}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(90),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,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 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 o=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 l(t,e),o(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,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 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 o=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 l(t,e),o(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"),l=e.closest(".wp-picker-container"),o=l.find(".wp-color-result"),i=o.find(".color-alpha"),s=l.find(".wp-picker-clear"),u=i;u=!0===e.data("alpha")?i:o,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(),o.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){return"[object Array]"===j.call(e)}function n(e){return"[object ArrayBuffer]"===j.call(e)}function l(e){return"undefined"!=typeof FormData&&e instanceof FormData}function o(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]"===j.call(e)}function f(e){return"[object File]"===j.call(e)}function d(e){return"[object Blob]"===j.call(e)}function m(e){return"[object Function]"===j.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 l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.call(null,e[l],l,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(69),O=a(151),j=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:n,isBuffer:O,isFormData:l,isArrayBufferView:o,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";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 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 o=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 l(t,e),o(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),SUI.suiSelect(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,l="";this.props.label&&(l=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 o=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}},this.props.children),i=o;"md"===this.props.fieldSize||"medium"===this.props.fieldSize?i=s.default.createElement("div",{class:"sui-form-field sui-input-md"},o):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?i=s.default.createElement("div",{class:"sui-form-field sui-input-sm"},o):""!==this.props.fieldSize&&(i=s.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},o));var u=i;return this.props.simple||(u=s.default.createElement("div",{className:a},l,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";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,l,o,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,l,o,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 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 o=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 l(t,e),o(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 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 o=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 l(t,e),o(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"},this.props.label));var a="";this.props.description&&""!==this.props.description&&(a=s.default.createElement("span",{className:"sui-description"},this.props.description));var r="";return(this.props.label&&""!==this.props.label||this.props.description&&""!==this.props.description)&&(r=s.default.createElement("div",{className:"sui-box-settings-col-1"},t,a)),s.default.createElement("div",{className:"sui-box-settings-row"},r,s.default.createElement("div",{className:"sui-box-settings-col-2"},e))}}]),t}(i.Component);t.default=u},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 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 o=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 l(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",o({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 l="";!this.props.label&&this.props.settingsLabel&&(l=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,l,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(106);a.d(t,"BrowserRouter",function(){return r.a});var n=a(112);a.d(t,"HashRouter",function(){return n.a});var l=a(55);a.d(t,"Link",function(){return l.a});var o=a(113);a.d(t,"MemoryRouter",function(){return o.a});var i=a(115);a.d(t,"NavLink",function(){return i.a});var s=a(117);a.d(t,"Prompt",function(){return s.a});var u=a(119);a.d(t,"Redirect",function(){return u.a});var c=a(56);a.d(t,"Route",function(){return c.a});var p=a(36);a.d(t,"Router",function(){return p.a});var f=a(121);a.d(t,"StaticRouter",function(){return f.a});var d=a(123);a.d(t,"Switch",function(){return d.a});var m=a(125);a.d(t,"generatePath",function(){return m.a});var h=a(126);a.d(t,"matchPath",function(){return h.a});var b=a(127);a.d(t,"withRouter",function(){return b.a})},function(e,t,a){"use strict";var r=a(107);a.d(t,"a",function(){return r.a});var n=a(110);a.d(t,"b",function(){return n.a});var l=a(111);a.d(t,"d",function(){return l.a});var o=a(29);a.d(t,"c",function(){return o.a}),a.d(t,"f",function(){return o.b});var i=a(25);a.d(t,"e",function(){return i.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 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 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 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(292),d=r(f),m=a(18),h=r(m),b=function(e){function t(e){n(this,t);var a=l(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,null,{main_date_field:!0}),a.fields=_.filter(a.fields,function(e){return e.element_id!==a.props.state.element_id}),a.fields=_.filter(a.fields,function(e){return"stripe"!==e.field_type&&"paypal"!==e.field_type&&"page-break"!==e.field_type&&"pagination"!==e.field_type&&"section"!==e.field_type&&"html"!==e.field_type}),"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 o(t,e),s(t,[{key:"updateState",value:function(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:")))),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",{className:"sui-notice sui-notice-error fui-visibility-notice"},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"},(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"}),(0,p.translate)("Add Rule")),c.default.createElement("p",null,(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.")),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>1)&&c.default.createElement("div",{className:"fui-visibility-header"},t,c.default.createElement("label",{className:"sui-label"},(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"}),(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 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 o=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.afterSave=a.afterSave.bind(a),a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el);var e=Object.assign({dropdownCssClass:"sui-select-dropdown"},this.props.options);"function"==typeof this.$el.SUIselect2?this.$el.SUIselect2(e):"function"==typeof this.$el.FUIselect2?this.$el.FUIselect2(e):console.log("select2 not intiated"),this.updateValue=this.updateValue.bind(this),this.$el.on("change",this.updateValue)}},{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,r=void 0;this.props.label&&(r=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property,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 n=this.props.multiple,l=s.default.createElement("select",{id:"forminator-field-"+this.props.property,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:n},this.props.children),o=s.default.createElement("select",{id:"forminator-field-"+this.props.property,className:"sui-select",ref:function(t){return e.el=t},defaultValue:t,multiple:n},this.props.children);return"md"===this.props.fieldSize||"medium"===this.props.fieldSize?o=s.default.createElement("div",{className:"sui-form-field sui-input-md"},l):"sm"===this.props.fieldSize||"small"===this.props.fieldSize?o=s.default.createElement("div",{className:"sui-form-field sui-input-sm"},l):""===this.props.fieldSize&&(o=s.default.createElement("div",{style:{width:"100%",maxWidth:this.props.fieldSize+"px"}},l)),this.props.noWrapper?l:s.default.createElement("div",{className:a},r,o,this.props.description&&s.default.createElement("span",{className:"sui-description",style:{marginTop:"10px"}},this.props.description))}}]),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 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 o=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 l(t,e),o(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",null,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";a.d(t,"a",function(){return r}),a.d(t,"f",function(){return n}),a.d(t,"c",function(){return l}),a.d(t,"e",function(){return o}),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},l=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},o=function(e,t){return l(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 l=t.indexOf("?");return-1!==l&&(a=t.substr(l),t=t.substr(0,l)),{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){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 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 o=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 l(t,e),o(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=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,checked:t?"checked":"",onChange:function(t){e.updateValue(t.target.checked)}}),s.default.createElement("span",{className:"sui-toggle-slider"}),this.props.label&&s.default.createElement("span",{className:"sui-screen-reader-text"},(0,u.translate)("Enable")," ",this.props.label)),n="";return this.props.label&&(n=s.default.createElement("label",{htmlFor:"forminator-field-"+this.props.property},this.props.label)),this.props.unWrap?s.default.createElement(s.default.Fragment,null,r,n,this.props.description&&s.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description)):this.props.unWrap?void 0:s.default.createElement("div",{className:"sui-form-field"},r,n,this.props.description&&s.default.createElement("span",{className:"sui-description sui-toggle-description"},this.props.description))}}]),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(108),n=a(109),l=a(25),o=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(l.d)(e),i.state=t):(i=o({},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,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 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 o=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 l(t,e),o(t,[{key:"initialize",value:function(){jQuery("#forminator-notification").length?(jQuery("#forminator-notification").remove(),this.initialize()):jQuery("main.sui-wrap").append('<div id="forminator-notification" class="sui-notice-top sui-notice-'+this.props.type+' sui-can-dismiss"><div class="sui-notice-content"><p>'+this.props.text+'</p></div><span class="sui-notice-dismiss"><a role="button" href="#" aria-label="Dismiss" class="sui-icon-check"></a></span></div>'),this.$notification=jQuery("#forminator-notification")}},{key:"open",value:function(){this.initialize();var e=this;jQuery(".sui-notice-dismiss a").click(function(t){return t.preventDefault(),e.close(),!1}),_.isUndefined(this.props.time)||setTimeout(function(){e.close()},this.props.time)}},{key:"close",value:function(){jQuery("#forminator-notification").stop().slideUp("slow")}}]),t}(i.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 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 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 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(16),f=r(p),d=function(e){function t(e){n(this,t);var a=l(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 o(t,e),i(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,l="password"===n&&!_.isUndefined(this.props.state["confirm-password"])&&this.props.state["confirm-password"];return u.default.createElement(f.default,null,u.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,c.translate)("Require")),u.default.createElement("span",{className:"sui-description"},(0,c.translate)("Force users to fill out this field, otherwise it will be optional.")),u.default.createElement("div",{className:"sui-tabs sui-side-tabs",style:{marginTop:"10px"}},u.default.createElement("div",{className:"sui-tabs-menu"},u.default.createElement("div",{className:"sui-tab-item"+(t?"":" active"),onClick:this.toggleValue.bind(this,!1)},(0,c.translate)("Optional")),u.default.createElement("div",{className:"sui-tab-item"+(t?" active":""),onClick:this.toggleValue.bind(this,!0)},(0,c.translate)("Required"))),u.default.createElement("div",{className:"sui-tabs-content"},u.default.createElement("div",{className:"sui-tab-boxed"+(t?" active":"")},u.default.createElement("div",{className:"sui-form-field"},"password"===n&&u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Password error message")),"password"!==n&&u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Error message")),u.default.createElement("input",{type:"text",value:a,placeholder:(0,c.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)}})),l&&u.default.createElement("div",{className:"sui-form-field"},u.default.createElement("label",{htmlFor:"forminator-field-name-error-msg",className:"sui-label"},(0,c.translate)("Confirm Password error message")),u.default.createElement("input",{type:"text",value:r,placeholder:(0,c.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)}})),t&&"select"===n&&u.default.createElement("div",{className:"sui-notice"},u.default.createElement("p",null,(0,c.translate)("Options without a value will be treated as empty options")))))))}}]),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 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 o=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.updateEditor=a.updateEditor.bind(a),a.toggleOptions=a.toggleOptions.bind(a),a.state={editorOptionsOpen:!1},a}return l(t,e),o(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){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",l=void 0;_.isEmpty(a)||(l=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 o="";return this.props.label&&(o=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},o,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")},l,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)}})),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){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.a=r},function(e,t,a){"use strict";var r=a(28),n=a.n(r),l=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,l){if(null!=e){var o="function"==typeof e?e(t,a):e;"string"==typeof o?"function"==typeof r?r(o,l):(n()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),l(!0)):l(!1!==o)}else l(!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=l},function(e,t,a){"use strict";var r=a(37);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 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 o=a(17),i=a.n(o),s=a(14),u=a.n(s),c=a(0),p=a.n(c),f=a(5),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,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.state={match:l.computeMatch(l.props.history.location.pathname)},o=a,n(l,o)}return l(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(58),n=a.n(r),l={},o=0,i=function(e,t){var a=""+t.end+t.strict+t.sensitive,r=l[a]||(l[a]={});if(r[e])return r[e];var i=[],s=n()(e,i,t),u={re:s,keys:i};return o<1e4&&(r[e]=u,o++),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,l=r.exact,o=void 0!==l&&l,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:o,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 o&&!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),l=n>>8,o=255&n;l?a.push(l,o):a.push(o)}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 l(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e,t){for(var a="",r=0;r<e.length;r++){var n=e[r];"little"===t&&(n=l(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 l=new Array(n/4),o=0,i=t;o<l.length;o++,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],l[o]=s>>>0}return l}function c(e,t){for(var a=new Array(4*e.length),r=0,n=0;r<e.length;r++,n+=4){var l=e[r];"big"===t?(a[n]=l>>>24,a[n+1]=l>>>16&255,a[n+2]=l>>>8&255,a[n+3]=255&l):(a[n+3]=l>>>24,a[n+2]=l>>>16&255,a[n+1]=l>>>8&255,a[n]=255&l)}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],l=e[t+1],o=r+l>>>0,i=(o<r?1:0)+a+n;e[t]=i>>>0,e[t+1]=o}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,l,o,i){var s=0,u=t;return u=u+r>>>0,s+=u<t?1:0,u=u+l>>>0,s+=u<l?1:0,u=u+i>>>0,s+=u<i?1:0,e+a+n+o+s>>>0}function _(e,t,a,r,n,l,o,i){return t+r+l+i>>>0}function w(e,t,a,r,n,l,o,i,s,u){var c=0,p=t;return p=p+r>>>0,c+=p<t?1:0,p=p+l>>>0,c+=p<l?1:0,p=p+i>>>0,c+=p<i?1:0,p=p+u>>>0,c+=p<u?1:0,e+a+n+o+s+c>>>0}function O(e,t,a,r,n,l,o,i,s,u){return t+r+l+i+u>>>0}function j(e,t,a){return(t<<32-a|e>>>a)>>>0}function P(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(62),C=a(63);t.inherits=C,t.toArray=r,t.toHex=n,t.htonl=l,t.toHex32=o,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=j,t.rotr64_lo=P,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),l=a(153),o={"Content-Type":"application/x-www-form-urlencoded"},i={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=a(70):void 0!==t&&(e=a(70)),e}(),transformRequest:[function(e,t){return l(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(o)}),e.exports=i}).call(t,a(61))},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 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 o=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 l=_.isUndefined(a.props.defaultValue)?"":a.props.defaultValue,o=_.isUndefined(a.props.settings[a.props.property])?l:a.props.settings[a.props.property];return a.state={value:o},a}return l(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this.$el=jQuery(this.el),SUI.suiSelect(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)})}},{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:"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",l="",o="input";return"textarea"===this.props.type&&(o="textarea"),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))),s.default.createElement("div",{className:"sui-form-field "+n},l,s.default.createElement("div",{className:"sui-insert-variables"},"input"===o&&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"===o&&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.state.rows}),s.default.createElement("select",{ref:function(t){return e.el=t}},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){"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";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 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 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 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(4)),m=(r(d),a(2)),h=r(m),b=a(16),y=r(b),v=function(e){function t(e){return n(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),s(t,[{key:"render",value:function(){var e=(_.isUndefined(this.props.state["custom-class"])||this.props.state["custom-class"],_.isUndefined(this.props.prefix)?"":this.props.prefix+"_");return c.default.createElement(y.default,null,c.default.createElement("div",{className:"sui-form-field"},c.default.createElement("label",{className:"sui-settings-label sui-dark"},(0,p.translate)("Pre-populate")),c.default.createElement("span",{className:"sui-description",style:{marginBottom:"10px"}},(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.")),c.default.createElement("div",{style:{width:"100%",maxWidth:"240px"}},c.default.createElement(h.default,i({},this.props,{settings:this.props.state,label:(0,p.translate)("Query parameter (optional)"),placeholder:(0,p.translate)("E.g., query_parameter_key"),property:e+"prefill"}))),this.props.notice&&c.default.createElement("span",{className:"sui-description"},this.props.notice)))}}]),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 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 o=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 l(t,e),o(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,l=s.default.Children.map(this.props.children,function(e){return e});return s.default.createElement("div",{className:"sui-accordion-item "+r},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("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",{class:"sui-screen-reader-text"},!1===this.state.open?"Open":"Close")))),s.default.createElement("div",{className:"sui-accordion-item-body"},!1===n?a&&l:s.default.createElement("div",{className:"sui-box"},s.default.createElement("div",{className:"sui-box-body"},a&&l),n)))}}]),t}(i.Component));t.default=u},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 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 o=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 l(t,e),o(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))}}]),t}(i.Component);t.default=u},function(e,t,a){"use strict";a.d(t,"b",function(){return l}),a.d(t,"a",function(){return o});var r=a(5),n=a.n(r),l=n.a.shape({trySubscribe:n.a.func.isRequired,tryUnsubscribe:n.a.func.isRequired,notifyNestedSubs:n.a.func.isRequired,isSubscribed:n.a.func.isRequired}),o=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 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)}function o(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,j=u.shouldHandleStateChanges,P=void 0===j||j,k=u.storeKey,x=void 0===k?"store":k,N=u.withRef,C=void 0!==N&&N,S=o(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),F=x+"Subscription",T=v++,M=(t={},t[x]=b.a,t[F]=b.b,t),D=(a={},a[F]=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",o=f(a),u=y({},S,{getDisplayName:f,methodName:_,renderCountProp:O,shouldHandleStateChanges:P,storeKey:x,withRef:C,displayName:o,wrappedComponentName:a,WrappedComponent:t}),c=function(a){function c(e,t){r(this,c);var l=n(this,a.call(this,e,t));return l.version=T,l.state={},l.renderCount=0,l.store=e[x]||t[x],l.propsMode=Boolean(e[x]),l.setWrappedInstance=l.setWrappedInstance.bind(l),d()(l.store,'Could not find "'+x+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+x+'" as a prop to "'+o+'".'),l.initSelector(),l.initSubscription(),l}return l(c,a),c.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[F]=t||this.context[F],e},c.prototype.componentDidMount=function(){P&&(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(P){var e=(this.propsMode?this.props:this.context)[F];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[F]=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=o,c.childContextTypes=D,c.contextTypes=M,c.propTypes=M,p()(c,t)}}t.a=u;var c=a(49),p=a.n(c),f=a(14),d=a.n(f),m=a(0),h=(a.n(m),a(86)),b=a(47),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]||l[h]||a&&a[h])){var b=u(t,h);try{o(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},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,p=c&&c(Object);e.exports=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";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 l(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 l=r(t,a);return"function"==typeof l&&(r.mapToProps=l,r.dependsOnOwnProps=n(l),l=r(t,a)),l},r}}t.a=r,t.b=l;a(52)},function(e,t,a){"use strict";a(93),a(34)},function(e,t,a){"use strict";var r=a(95),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 l}),a.d(t,"c",function(){return o}),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)},l=function(e,t,a){return e.removeEventListener?e.removeEventListener(t,a,!1):e.detachEvent("on"+t,a)},o=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 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 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 i=a(0),s=a.n(i),u=a(5),c=a.n(u),p=a(14),f=a.n(p),d=a(20),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,o;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=l(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,l=a.to;n?t.replace(l):t.push(l)}},o=a,l(r,o)}return o(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 l=this.context.router.history,o="string"==typeof t?Object(d.c)(t,null,null,l.location):t,i=l.createHref(o);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(57);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 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 o=a(17),i=a.n(o),s=a(14),u=a.n(s),c=a(0),p=a.n(c),f=a(5),d=a.n(f),m=a(38),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,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.state={match:l.computeMatch(l.props,l.context.router)},o=a,n(l,o)}return l(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,l=e.strict,o=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:l,exact:o,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,l=this.context.router,o=l.history,i=l.route,s=l.staticContext,u=this.props.location||i.location,c={match:e,location:u,history:o,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,l=0,o="",i=t&&t.delimiter||"/";null!=(a=v.exec(e));){var c=a[0],p=a[1],f=a.index;if(o+=e.slice(l,f),l=f+c.length,p)o+=p[1];else{var d=e[l],m=a[2],h=a[3],b=a[4],y=a[5],g=a[6],E=a[7];o&&(r.push(o),o="");var _=null!=m&&null!=d&&d!==m,w="+"===g||"*"===g,O="?"===g||"*"===g,j=a[2]||i,P=b||y;r.push({name:h||n++,prefix:m||"",delimiter:j,optional:O,repeat:w,partial:_,asterisk:!!E,pattern:P?u(P):E?".*":"[^"+s(j)+"]+?"})}}return l<e.length&&(o+=e.substr(l)),o&&r.push(o),r}function n(e,t){return i(r(e,t))}function l(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function o(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?l: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?o(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,l="",o=0;o<e.length;o++){var i=e[o];if("string"==typeof i)l+=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+")",l+=f}}var d=s(a.delimiter||"/"),m=l.slice(-d.length)===d;return r||(l=(m?l.slice(0,-d.length):l)+"(?:"+d+"(?=$))?"),l+=n?"$":r&&m?"":"(?="+d+"|$)",c(new RegExp("^"+l,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(116);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(58),n=a.n(r),l={},o=0,i=function(e){var t=e,a=l[t]||(l[t]={});if(a[e])return a[e];var r=n.a.compile(e);return o<1e4&&(a[e]=r,o++),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(130),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(144)(n),$this:n,I18N:r}},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 l(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 o(){h&&d&&(h=!1,d.length?m=d.concat(m):b=-1,m.length&&i())}function i(){if(!h){var e=n(o);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,l(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){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 l(e){return"object"==typeof e&&null!==e}function o(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||l(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],o(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(l(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]?l(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,l(this._events[e])&&!this._events[e].warned&&(n=o(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,o,i;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=this._events[e],o=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(l(a)){for(i=o;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,l,o,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,l,o,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=M(e)||d(e)?r(e.length,String):[],n=a.length,l=!!n;for(var o in e)!t&&!x.call(e,o)||l&&("length"==o||u(o,n))||a.push(o);return a}function l(e,t,a){var r=e[t];x.call(e,t)&&f(r,a)&&(void 0!==a||t in e)||(e[t]=a)}function o(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=F(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,l=F(r.length-t,0),o=Array(l);++n<l;)o[n]=r[t+n];n=-1;for(var i=Array(t+1);++n<t;)i[n]=r[n];return i[t]=o,a(e,this,i)}}function s(e,t,a,r){a||(a={});for(var n=-1,o=t.length;++n<o;){var i=t[n],s=r?r(a[i],e[i],i,a,e):void 0;l(a,i,void 0===s?e[i]:s)}return a}function u(e,t){return!!(t=null==t?_:t)&&("number"==typeof e||P.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==j}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):o(e)}var _=9007199254740991,w="[object Arguments]",O="[object Function]",j="[object GeneratorFunction]",P=/^(?: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),F=Math.max,T=!C.call({valueOf:1},"valueOf"),M=Array.isArray,D=function(e){return i(function(t,a){var r=-1,n=a.length,l=n>1?a[n-1]:void 0,o=n>2?a[2]:void 0;for(l=e.length>3&&"function"==typeof l?(n--,l):void 0,o&&c(a[0],a[1],o)&&(l=n<3?void 0:l,n=1),t=Object(t);++r<n;){var i=a[r];i&&e(t,i,r,l)}return t})}(function(e,t){if(T||p(t)||m(t))return void s(t,E(t),e);for(var a in t)x.call(t,a)&&l(e,a,t[a])});e.exports=D},function(e,t,a){e.exports=a(150)},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(154),l=a(156),o=a(157),i=a(158),s=a(71),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||a(159);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(),l(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?o(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,l={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,l),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(160),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(155);e.exports=function(e,t,a,n,l){var o=new Error(e);return r(o,t,a,n,l)}},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=a(168),n=a(169),l=a(76);e.exports={formats:l,parse:n,stringify: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}(),l=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},o=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 l=t;return Array.isArray(t)&&!Array.isArray(a)&&(l=o(t,n)),Array.isArray(t)&&Array.isArray(a)?(a.forEach(function(a,l){r.call(t,l)?t[l]&&"object"==typeof t[l]?t[l]=e(t[l],a,n):t.push(a):t[l]=a}),t):Object.keys(a).reduce(function(t,l){var o=a[l];return r.call(t,l)?t[l]=e(t[l],o,n):t[l]=o,t},l)},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 l=t.charCodeAt(r);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122?a+=t.charAt(r):l<128?a+=n[l]:l<2048?a+=n[192|l>>6]+n[128|63&l]:l<55296||l>=57344?a+=n[224|l>>12]+n[128|l>>6&63]+n[128|63&l]:(r+=1,l=65536+((1023&l)<<10|1023&t.charCodeAt(r)),a+=n[240|l>>18]+n[128|l>>12&63]+n[128|l>>6&63]+n[128|63&l])}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],o=n.obj[n.prop],i=Object.keys(o),s=0;s<i.length;++s){var u=i[s],c=o[u];"object"==typeof c&&null!==c&&-1===a.indexOf(c)&&(t.push({obj:o,prop:u}),a.push(c))}return l(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:o,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 l.default.createElement("hr",{className:"fui-border"})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=a(0),l=function(e){return e&&e.__esModule?e:{default:e}}(n)},,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.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){"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 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)}function o(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",a=arguments[1],o=a||t+"Subscription",s=function(e){function a(l,o){r(this,a);var i=n(this,e.call(this,l,o));return i[t]=l.store,i}return l(a,e),a.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[o]=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[o]=c.b,e),s}t.a=o;var i=a(0),s=(a.n(i),a(5)),u=a.n(s),c=a(47);a(34);t.b=o()},function(e,t,a){"use strict";function r(){}var n=a(85);e.exports=function(){function e(e,t,a,r,l,o){if(o!==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=l,e=l},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!==l&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(a),1))}}}}a.d(t,"a",function(){return i});var l=null,o={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=o}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=o)},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 l(e,t){return e===t}var o=a(48),i=a(88),s=a(89),u=a(102),c=a(103),p=a(104),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?o.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,o){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?l: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,j=r(s,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),P=n(e,m,"mapStateToProps"),k=n(t,b,"mapDispatchToProps"),x=n(o,v,"mergeProps");return a(E,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:P,initMapDispatchToProps:k,initMergeProps:x,pure:c,areStatesEqual:d,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:O},j))}}()},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 o=0;o<a.length;o++)if(!l.call(t,a[o])||!r(e[a[o]],t[a[o]]))return!1;return!0}t.a=n;var l=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 l(e){return e&&"object"==typeof e?Object(i.a)(function(t){return Object(o.bindActionCreators)(e,t)}):void 0}var o=a(8),i=a(51);t.a=[r,n,l]},function(e,t,a){"use strict";(function(e,r){var n,l=a(92);n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(l.a)(n);t.a=o}).call(t,a(50),a(91)(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(o.a)(e)||Object(n.a)(e)!=i)return!1;var t=Object(l.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(94),l=a(99),o=a(101),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(l.a)(e):Object(o.a)(e)}var n=a(53),l=a(97),o=a(98),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(96),n="object"==typeof self&&self&&self.Object===Object&&self,l=r.a||n||Function("return this")();t.a=l},function(e,t,a){"use strict";(function(e){var a="object"==typeof e&&e&&e.Object===Object&&e;t.a=a}).call(t,a(50))},function(e,t,a){"use strict";function r(e){var t=o.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(53),l=Object.prototype,o=l.hasOwnProperty,i=l.toString,s=n.a?n.a.toStringTag:void 0;t.a=r},function(e,t,a){"use strict";function r(e){return l.call(e)}var n=Object.prototype,l=n.toString;t.a=r},function(e,t,a){"use strict";var r=a(100),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(l.b)(e,"mapStateToProps"):void 0}function n(e){return e?void 0:Object(l.a)(function(){return{}})}var l=a(51);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,l=!1,o=void 0;return function(t,a,i){var s=e(t,a,i);return l?r&&n(s,o)||(o=s):(l=!0,o=s),o}}}function l(e){return"function"==typeof e?n(e):void 0}function o(e){return e?void 0:function(){return r}}var i=(a(52),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=[l,o]},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,l){return a(e(n,l),t(r,l),l)}}function l(e,t,a,r,n){function l(n,l){return m=n,h=l,b=e(m,h),y=t(r,h),v=a(b,y,h),d=!0,v}function o(){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?o():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):l(e,t)}}function o(e,t){var a=t.initMapStateToProps,o=t.initMapDispatchToProps,i=t.initMergeProps,s=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=a(e,s),c=o(e,s),p=i(e,s);return(s.pure?l:n)(u,c,p,e,s)}t.a=o;a(105)},function(e,t,a){"use strict";a(34)},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 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 o=a(17),i=a.n(o),s=a(0),u=a.n(s),c=a(5),p=a.n(c),f=a(20),d=a(36),m=function(e){function t(){var a,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.history=Object(f.a)(l.props),o=a,n(l,o)}return l(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),l=a(14),o=a.n(l),i=a(29),s=a(25),u=a(35),c=a(54),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]:{};o()(c.b,"Browser history needs a DOM");var t=window.history,a=Object(c.g)(),r=!Object(c.h)(),l=e.forceRefresh,m=void 0!==l&&l,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,l=window.location,o=l.pathname,u=l.search,c=l.hash,p=o+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)},j=function(e){Object(c.d)(e)||x(E(e.state))},P=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,D(n))},C=E(d()),S=[C.key],F=function(e){return g+Object(s.b)(e)},T=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 l=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(l,"PUSH",b,function(e){if(e){var r=F(l),o=l.key,i=l.state;if(a)if(t.pushState({key:o,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(l.key),S=u,O({action:"PUSH",location:l})}else n()(void 0===i,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},M=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 l=Object(i.a)(e,r,_(),q.location);w.confirmTransitionTo(l,"REPLACE",b,function(e){if(e){var r=F(l),o=l.key,i=l.state;if(a)if(t.replaceState({key:o,state:i},null,r),m)window.location.replace(r);else{var s=S.indexOf(q.location.key);-1!==s&&(S[s]=l.key),O({action:"REPLACE",location:l})}else n()(void 0===i,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},D=function(e){t.go(e)},A=function(){return D(-1)},R=function(){return D(1)},V=0,U=function(e){V+=e,1===V?(Object(c.a)(window,"popstate",j),r&&Object(c.a)(window,"hashchange",P)):0===V&&(Object(c.e)(window,"popstate",j),r&&Object(c.e)(window,"hashchange",P))},L=!1,I=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=w.setPrompt(e);return L||(U(1),L=!0),function(){return L&&(L=!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:F,push:T,replace:M,go:D,goBack:A,goForward:R,block:I,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 l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e&&e.split("/")||[],l=t&&t.split("/")||[],o=e&&r(e),i=t&&r(t),s=o||i;if(e&&r(e)?l=a:a.length&&(l.pop(),l=l.concat(a)),!l.length)return"/";var u=void 0;if(l.length){var c=l[l.length-1];u="."===c||".."===c||""===c}else u=!1;for(var p=0,f=l.length;f>=0;f--){var d=l[f];"."===d?n(l,f):".."===d?(n(l,f),p++):p&&(n(l,f),p--)}if(!s)for(;p--;p)l.unshift("..");!s||""===l[0]||l[0]&&r(l[0])||l.unshift("");var m=l.join("/");return u&&"/"!==m.substr(-1)&&(m+="/"),m}t.a=l},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 l=e.valueOf(),o=t.valueOf();if(l!==e||o!==t)return r(l,o);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),l=a(14),o=a.n(l),i=a(29),s=a(25),u=a(35),c=a(54),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]:{};o()(c.b,"Hash history needs a DOM");var t=window.history,a=Object(c.f)(),r=e.getUserConfirmation,l=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)(),j=function(e){p(Y,e),Y.length=t.length,O.notifyListeners(Y.location,Y.action)},P=!1,k=null,x=function(){var e=d(),t=E(e);if(e!==t)h(t);else{var a=w(),r=Y.location;if(!P&&Object(i.b)(r,a))return;if(k===Object(s.b)(a))return;k=null,N(a)}},N=function(e){if(P)P=!1,j();else{O.confirmTransitionTo(e,"POP",l,function(t){t?j({action:"POP",location:e}):C(e)})}},C=function(e){var t=Y.location,a=M.lastIndexOf(Object(s.b)(t));-1===a&&(a=0);var r=M.lastIndexOf(Object(s.b)(e));-1===r&&(r=0);var n=a-r;n&&(P=!0,V(n))},S=d(),F=E(S);S!==F&&h(F);var T=w(),M=[Object(s.b)(T)],D=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,Y.location);O.confirmTransitionTo(a,"PUSH",l,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);if(d()!==r){k=t,m(r);var l=M.lastIndexOf(Object(s.b)(Y.location)),o=M.slice(0,-1===l?0:l+1);o.push(t),M=o,j({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"),j()}})},R=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,Y.location);O.confirmTransitionTo(a,"REPLACE",l,function(e){if(e){var t=Object(s.b)(a),r=E(v+t);d()!==r&&(k=t,h(r));var n=M.indexOf(Object(s.b)(Y.location));-1!==n&&(M[n]=t),j({action:"REPLACE",location:a})}})},V=function(e){n()(a,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},U=function(){return V(-1)},L=function(){return V(1)},I=0,B=function(e){I+=e,1===I?Object(c.a)(window,"hashchange",x):0===I&&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()}},Y={length:t.length,action:"POP",location:T,createHref:D,push:A,replace:R,go:V,goBack:U,goForward:L,block:W,listen:$};return Y};t.a=b},function(e,t,a){"use strict";var r=a(28),n=a.n(r),l=a(25),o=a(29),i=a(35),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(o.a)(e,void 0,y()):Object(o.a)(e,void 0,e.key||y())}),E=l.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(o.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(o.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()})},j=function(){return O(-1)},P=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:j,goForward:P,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 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 o=a(17),i=a.n(o),s=a(0),u=a.n(s),c=a(5),p=a.n(c),f=a(20),d=a(36),m=function(e){function t(){var a,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.history=Object(f.b)(l.props),o=a,n(l,o)}return l(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(114);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 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 o=a(17),i=a.n(o),s=a(0),u=a.n(s),c=a(5),p=a.n(c),f=a(20),d=a(37),m=function(e){function t(){var a,l,o;r(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=l=n(this,e.call.apply(e,[this].concat(s))),l.history=Object(f.d)(l.props),o=a,n(l,o)}return l(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),l=a.n(n),o=a(5),i=a.n(o),s=a(56),u=a(55),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,o=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 l.a.createElement(s.a,{path:g,exact:a,strict:n,location:o,children:function(e){var a=e.location,r=e.match,n=!!(h?h(r,a):r);return l.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(118);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 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 o=a(0),i=a.n(o),s=a(5),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 l(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(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 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 o=a(0),i=a.n(o),s=a(5),u=a.n(s),c=a(17),p=a.n(c),f=a(14),d=a.n(f),m=a(20),h=a(59),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 l(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(122);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 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 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 i=a(17),s=a.n(i),u=a(14),c=a.n(u),p=a(0),f=a.n(p),d=a(5),m=a.n(d),h=a(20),b=a(37),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(){},j=function(e){function t(){var a,r,o;n(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return a=r=l(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},o=a,l(r,o)}return o(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"]),l={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:l}))},t}(f.a.Component);j.propTypes={basename:m.a.string,context:m.a.object.isRequired,location:m.a.oneOfType([m.a.string,m.a.object])},j.defaultProps={basename:"",location:"/"},j.childContextTypes={router:m.a.object.isRequired},t.a=j},function(e,t,a){"use strict";var r=a(124);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 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 o=a(0),i=a.n(o),s=a(5),u=a.n(s),c=a(17),p=a.n(c),f=a(14),d=a.n(f),m=a(38),h=function(e){function t(){return r(this,t),n(this,e.apply(this,arguments))}return l(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 l=t.props,o=l.path,s=l.exact,u=l.strict,c=l.sensitive,p=l.from,f=o||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(59);t.a=r.a},function(e,t,a){"use strict";var r=a(38);t.a=r.a},function(e,t,a){"use strict";var r=a(128);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),l=a.n(n),o=a(5),i=a.n(o),s=a(49),u=a.n(s),c=a(57),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 l.a.createElement(c.a,{children:function(t){return l.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 l(e){var t,a=e[0],l={};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]&&(l=e[t]);if("string"==typeof a?l.original=a:"object"==typeof l.original&&(l.plural=l.original.plural,l.count=l.original.count,l.original=l.original.single),"string"==typeof e[1]&&(l.plural=e[1]),void 0===l.original)throw new Error("Translate called without a `string` value as first argument.");return l}function o(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=o(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(131)("i18n-wp-plugin"),p=a(134),f=a(135),d=a(64).EventEmitter,m=a(138).default,h=a(142),b=a(67),y=a(143),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"],o=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=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(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,l(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=i(this.state.jed,l(["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,l(arguments))},u.prototype.translate=function(){var e,t,a,r,n,o;if(e=l(arguments),o=!e.components){try{n=JSON.stringify(e)}catch(e){o=!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)}),o&&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 l(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,l=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(l=n))}),e.splice(l,0,r)}}function o(){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(132),t.log=o,t.formatArgs=l,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(61))},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,l=r-(n||r);e.diff=l,e.prev=n,e.curr=r,n=r;for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var s=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(a,r){if("%%"===a)return a;s++;var n=t.formatters[r];if("function"==typeof n){var l=o[s];a=n.call(e,l),o.splice(s,1),s--}return a}),t.formatArgs.call(e,o);(a.log||t.log||console.log.bind(console)).apply(e,o)}}var n;return a.namespace=e,a.enabled=t.enabled(e),a.useColors=t.useColors(),a.color=r(e),a.destroy=l,"function"==typeof t.init&&t.init(a),t.instances.push(a),a}function l(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(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 l=t.instances[a];l.enabled=t.enabled(l.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=o,t.enabled=s,t.humanize=a(133),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*o;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>=o?Math.round(e/o)+"s":e+"ms"}function n(e){return l(e,u,"day")||l(e,s,"hour")||l(e,i,"minute")||l(e,o,"second")||e+" ms"}function l(e,t,a){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+a:Math.ceil(e/t)+" "+a+"s"}var o=1e3,i=60*o,s=60*i,u=24*s,c=365.25*u;e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return a(e);if("number"===l&&!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 l(e,t){this._key=e,this._i18n=t}var o=Array.prototype,i=Object.prototype,s=o.slice,u=i.hasOwnProperty,c=o.forEach,p={},f={forEach:function(e,t,a){var r,n,l;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(l in e)if(u.call(e,l)&&t.call(a,e[l],l,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(l.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 l(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
  */